]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Testsuite: Various fixes for nios2.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 11 Nov 2021 14:31:02 +0000 (06:31 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 11 Nov 2021 14:38:58 +0000 (06:38 -0800)
2021-11-11  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* g++.dg/warn/Wmismatched-new-delete-5.C: Add
-fdelete-null-pointer-checks.
* gcc.dg/attr-returns-nonnull.c: Likewise.
* gcc.dg/debug/btf/btf-datasec-1.c: Add -G0 option for nios2.
* gcc.dg/ifcvt-4.c: Skip on nios2.
* gcc.dg/struct-by-value-1.c: Add -G0 option for nios2.

gcc/testsuite/g++.dg/warn/Wmismatched-new-delete-5.C
gcc/testsuite/gcc.dg/attr-returns-nonnull.c
gcc/testsuite/gcc.dg/debug/btf/btf-datasec-1.c
gcc/testsuite/gcc.dg/ifcvt-4.c
gcc/testsuite/gcc.dg/struct-by-value-1.c

index 92c75df40d9c964ca7af0019283c7ba4e77164a3..bac2b68aa641f25a0da1ebf420d8d3436bd152bd 100644 (file)
@@ -1,7 +1,7 @@
 /* PR c++/100876 - -Wmismatched-new-delete should either look through
    or ignore placement new
    { dg-do compile }
-   { dg-options "-O2 -Wall" } */
+   { dg-options "-O2 -Wall -fdelete-null-pointer-checks" } */
 
 extern "C" {
   void* malloc (__SIZE_TYPE__);
index 22ee30ac5df48330abe7927c443d3c350bcd5897..e4e20b889acab02729f808d9a68b2e12b999c56e 100644 (file)
@@ -1,7 +1,7 @@
 /* Verify that attribute returns_nonnull on global and local function
    declarations is merged.
    { dg-do compile }
-   { dg-options "-Wall -fdump-tree-optimized" } */
+   { dg-options "-Wall -fdump-tree-optimized -fdelete-null-pointer-checks" } */
 
 void foo (void);
 
index f809d9347cfdf9057f4a41c6051306609d9e7b02..dbb236bbda1b22856520e6b4b463f58d025a8682 100644 (file)
@@ -12,6 +12,7 @@
 /* { dg-do compile )  */
 /* { dg-options "-O0 -gbtf -dA" } */
 /* { dg-options "-O0 -gbtf -dA -msdata=none" { target { { powerpc*-*-* } && ilp32 } } } */
+/* { dg-options "-O0 -gbtf -dA -G0" { target { nios2-*-* } } } */
 
 /* Check for two DATASEC entries with vlen 3, and one with vlen 1.  */
 /* { dg-final { scan-assembler-times "0xf000003\[\t \]+\[^\n\]*btt_info" 2 } } */
index e74e449b40212632517201ab772e0bd31f7e320f..05251024a814a30f8972e07ffa6989b905268d78 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */
 /* { dg-additional-options "-march=z196" { target { s390x-*-* } } } */
 /* { dg-additional-options "-mtune-ctrl=^one_if_conv_insn" { target { i?86-*-* x86_64-*-* } } } */
-/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* avr-*-* hppa*64*-*-* s390-*-* visium-*-*" riscv*-*-* msp430-*-* } }  */
+/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* avr-*-* hppa*64*-*-* s390-*-* visium-*-*" riscv*-*-* msp430-*-* nios2-*-*} }  */
 /* { dg-skip-if "" { "s390x-*-*" } { "-m31" } }  */
 
 typedef int word __attribute__((mode(word)));
index addf253d8e2ccc58b40c41d4ec5124253c9829a9..ae7adb5fc8386df5752ba6fe6205406faa6dbc95 100644 (file)
@@ -1,6 +1,7 @@
 /* Test structure passing by value.  */
 /* { dg-do run } */
 /* { dg-options "-O2" } */
+/* { dg-options "-O2 -G0" { target { nios2-*-* } } } */
 
 #define T(N)                                   \
 struct S##N { unsigned char i[N]; };           \