]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] Fix nios2 tests
authorJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:12:55 +0000 (22:12 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:14:02 +0000 (22:14 -0700)
The nios2 port has two tests that are affected by the recent changes.  In
cdx-ldstwm-1.c it was easiest to just add -fpermissive.  for cdx-ldstwm-2.c
adding an prototype for exit and abort is all that's needed.

gcc/testsuite
* gcc.target/nios2/cdx-ldstwm-1.c: Add -fpermissive.
* gcc.target/nios2/cdx-ldstwm-2.c: Add prototypes fro abort and exit.

gcc/testsuite/gcc.target/nios2/cdx-ldstwm-1.c
gcc/testsuite/gcc.target/nios2/cdx-ldstwm-2.c

index 7beeea15e2fb739350c482ed260cf812c6bd835b..6b7a7d0e7f4261398447e7fd57a5d546f5f8b137 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do assemble } */
-/* { dg-options "-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -march=r2 -mcdx -w" } */
+/* { dg-options "-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -march=r2 -mcdx -w -fpermissive" } */
 
 /* Based on gcc.c-torture/compile/920501-23.c.
    This test used to result in assembler errors with R2 CDX because of
index 0e69534dcc1b1deb53c9af2703fef872874beeeb..eb273bbc5ecbc76ca0df3a25b4f5b107c99f4d84 100644 (file)
@@ -1,6 +1,9 @@
 /* { dg-do assemble } */
 /* { dg-options "-O3 -fomit-frame-pointer -funroll-loops -march=r2 -mcdx -w" } */
 
+extern void abort (void);
+extern int exit (int);
+
 /* Based on gcc.c-torture/execute/20021120-1.c.
    This test used to result in assembler errors with R2 CDX because of
    a bug in regrename; it wasn't re-validating insns after renaming, so