Re: [PATCH 1/2 gnumach] tests: Remove compile flag (not in gcc-10)

2026-01-21 Thread Samuel Thibault
Damien Zammit, le mer. 21 janv. 2026 21:54:01 +, a ecrit:
> This allows the tests to be built using gcc-10.
> 
> ---
>  tests/user-qemu.mk | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tests/user-qemu.mk b/tests/user-qemu.mk
> index 968a5bfc..19faff73 100644
> --- a/tests/user-qemu.mk
> +++ b/tests/user-qemu.mk
> @@ -112,7 +112,6 @@ TEST_FAILURE_MARKER = gnumach-test-failure
>  
>  TESTCFLAGS = -static -nostartfiles -nolibc \
>   -ffreestanding \
> - -ftrivial-auto-var-init=pattern \

We really want to have it whenever it's available. We should rather test
in tests/configfrag.ac whether the option is supported by the compiler.

Samuel



[PATCH 1/2 gnumach] tests: Remove compile flag (not in gcc-10)

2026-01-21 Thread Damien Zammit
This allows the tests to be built using gcc-10.

---
 tests/user-qemu.mk | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/user-qemu.mk b/tests/user-qemu.mk
index 968a5bfc..19faff73 100644
--- a/tests/user-qemu.mk
+++ b/tests/user-qemu.mk
@@ -112,7 +112,6 @@ TEST_FAILURE_MARKER = gnumach-test-failure
 
 TESTCFLAGS = -static -nostartfiles -nolibc \
-ffreestanding \
-   -ftrivial-auto-var-init=pattern \
-I$(srcdir)/tests/include \
-I$(MACH_TESTINCLUDE) \
-I$(MIG_OUTDIR) \
-- 
2.51.0