]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Update test case to comply with GCC14 changes
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Sat, 10 Feb 2024 15:13:00 +0000 (16:13 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Sun, 11 Feb 2024 19:54:45 +0000 (20:54 +0100)
commitf85450819414700a7883a7de128b03f655f43d44
tree74e391bd991143dc58bc0bd8a873b271281ced60
parent67d5b10e659c3f4c02b8af507c84d5e764e264b4
testsuite: Update test case to comply with GCC14 changes

The test case for PR97969 needs updates in order to comply with recent
changes in GCC14.  Without these changes, failures like this can be seen
on arm-none-eabi:

.../pr97969.c:6:9: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
.../pr97969.c:34:1: error: return type defaults to 'int' [-Wimplicit-int]
.../pr97969.c:40:3: error: implicit declaration of function 'ae' [-Wimplicit-function-declaration]
.../pr97969.c:42:3: error: implicit declaration of function 'af' [-Wimplicit-function-declaration]
.../pr97969.c:43:7: error: implicit declaration of function 'ag' [-Wimplicit-function-declaration]
.../pr97969.c:46:10: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
.../pr97969.c:48:10: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
.../pr97969.c:50:8: error: implicit declaration of function 'setjmp' [-Wimplicit-function-declaration]
.../pr97969.c:51:5: error: implicit declaration of function 'ah' [-Wimplicit-function-declaration]
.../pr97969.c:52:5: error: implicit declaration of function 'ai' [-Wimplicit-function-declaration]
.../pr97969.c:54:5: error: implicit declaration of function 'aj' [-Wimplicit-function-declaration]

Patch has been verified on Linux.

gcc/testsuite/ChangeLog:

* gcc.target/arm/pr97969.c: Update to comply with GCC14 changes.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/testsuite/gcc.target/arm/pr97969.c