]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Disable some testcase for -Og
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sun, 5 Oct 2025 20:30:49 +0000 (13:30 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sun, 5 Oct 2025 20:57:28 +0000 (13:57 -0700)
Running the testsuite with ADDITIONAL_TORTURE_OPTIONS set include "-Og -g",
there are a few extra failures in the torture testsuite. These 2 failures
are expected so let's skip them in the same way for -O0.

asm-inline.c is because inlining does not happen as much at -Og.
restrict-8.c fails due to not building the points to aliasing info at -Og.

gcc/testsuite/ChangeLog:

* c-c++-common/torture/asm-inline.c: Disable at -Og.
* gcc.dg/torture/restrict-8.c: Likewise.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/c-c++-common/torture/asm-inline.c
gcc/testsuite/gcc.dg/torture/restrict-8.c

index dea89658be443651c9232620b3b10ea3ec794a47..03cb434173ff22f667b7be5549beb1f69ce1a8fc 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
-/* -O0 does no inlining, and -O3 does it too aggressively for this test:  */
-/* { dg-skip-if "" { *-*-* } { "-O0" "-O3" } { "" } }
+/* -O0 does no inlining, and -O3 does it too aggressively for this test: 
+   -Og does not inline either.  */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-O3" "-Og" } { "" } }
 /* The normal asm is not inlined:  */
 /* { dg-final { scan-assembler-times "w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w.w" 2 } } */
 /* But the asm inline is inlined:  */
index 0118de0133c84d6bbad8c9aa91b256cbed039dfe..420ba2c64b3cc43e8cf7c445fb687b44274bbd77 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* -Og does not build the points-to aliasing info.  */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-Og" } { "" } } */
 /* { dg-options "-fdump-tree-fre1" } */
 
 struct S { int i; void *p; int j; };