Commit Graph

20 Commits

Author SHA1 Message Date
Folkert de Vries
d7ea382797 Stabilize c_variadic 2026-07-22 11:42:09 +02:00
Jakub Chlanda
23a7ecb97c PR feedback: Teach bootstrap 2026-06-26 13:24:12 +00:00
Jakub Chlanda
7669c44981 Teach bootstrap how to build rust_test_helpers for pauthtest
Also:
* update tests to force dynamic library when targetting pauthtest
* various test fixes
* introduce end-to-end tests for pauthtest (in run-make)
2026-06-26 13:24:12 +00:00
Jacob Pratt
fcfdcb86a3 Rollup merge of #157627 - folkertdev:remove-llvm-va_end, r=RalfJung
remove LLVM `va_end` calls

tracking issue: https://github.com/rust-lang/rust/issues/44930

The operation is a no-op, so we skip it.
2026-06-15 16:16:08 -04:00
Folkert de Vries
d297af408d remove LLVM va_end calls
The operation is a no-op, so we skip it.
2026-06-15 19:52:50 +02:00
vad
72cad5ba2e tests: codegen-llvm: Ignore BPF targets in c-variadic-opt
BPF does not support C variadics.
2026-06-08 15:17:16 +02:00
Zalathar
028b8b6c54 Simplify //@ needs-asm-mnemonic: ret to just //@ needs-asm-ret
The `needs-asm-mnemonic` directive was very general, but in practice was only
being used for `ret`. There are very few other mnemonics that it could
plausibly be useful for (e.g. `nop`), because any instruction that requires
arguments is probably going to be non-portable.

This PR replaces `needs-asm-mnemonic` with a simpler `needs-asm-ret` directive
that uses the same machinery as other simple needs directives.

If we happend to need more mnemonics in the future, we can just add more simple
directives as appropriate (e.g. `needs-asm-nop`).
2026-05-25 17:15:32 +10:00
Folkert de Vries
44b9251b18 use the new //@ needs-asm-mnemonic: ret more 2026-04-29 01:28:35 +02:00
Folkert de Vries
84cd23b3c8 c-variadic: rename VaList::arg to VaList::next_arg 2026-04-22 16:02:11 +02:00
Josh Stone
52dfa94cdc Update the minimum external LLVM to 21 2026-03-12 16:45:42 -07:00
Folkert de Vries
dd9241d150 c_variadic: use Clone instead of LLVM va_copy 2026-01-20 18:38:50 +01:00
Eduard Stefes
e0c09b546a fix va_list test by adding a llvmir signext check
s390x has no option to directly pass 32bit values therefor i32
parameters need an optional llvmir signext attribute.
2025-12-08 15:50:21 +01:00
Folkert de Vries
08979745c9 split out va_list forwarding into its own test 2025-12-04 11:13:24 +01:00
beetrees
f7b3c1d3c0 Rework c_variadic 2025-12-04 10:51:34 +01:00
Ralf Jung
87024bd00b stabilize extern_system_varargs 2025-11-09 10:13:38 +01:00
Ralf Jung
3796f7de57 compiletest: rename add-core-stubs to add-minicore 2025-11-02 16:20:06 +01:00
Folkert de Vries
a107ea18af c-variadic: check that inline attributes are accepted on c-variadic functions
they don't do anything, because LLVM is unable to inline c-variadic functions (on most targets, anyway)
2025-09-13 21:05:12 +02:00
Ralf Jung
f6d55aea2c stabilize extended_varargs_abi_support 2025-09-02 08:48:12 +02:00
Ralf Jung
f75595d2cd add codegen test for variadics (also replacing some existing does-this-build tests) 2025-07-23 14:19:14 +02:00
Guillaume Gomez
a27f3e3fd1 Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00