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 <[email protected]>
---
 gcc/testsuite/c-c++-common/torture/asm-inline.c | 5 +++--
 gcc/testsuite/gcc.dg/torture/restrict-8.c       | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/c-c++-common/torture/asm-inline.c 
b/gcc/testsuite/c-c++-common/torture/asm-inline.c
index dea89658be4..03cb434173f 100644
--- a/gcc/testsuite/c-c++-common/torture/asm-inline.c
+++ b/gcc/testsuite/c-c++-common/torture/asm-inline.c
@@ -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:  */
diff --git a/gcc/testsuite/gcc.dg/torture/restrict-8.c 
b/gcc/testsuite/gcc.dg/torture/restrict-8.c
index 0118de0133c..420ba2c64b3 100644
--- a/gcc/testsuite/gcc.dg/torture/restrict-8.c
+++ b/gcc/testsuite/gcc.dg/torture/restrict-8.c
@@ -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; };
-- 
2.43.0

Reply via email to