diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2025-07-03 14:05:59 +0200 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2025-07-03 14:05:59 +0200 |
commit | 22edba0d9c932f48545ccf60c278dd7ce299cc53 (patch) | |
tree | 2d806b4c9c79b731853bca36a56e93ef6cd8577d | |
parent | 44b9769593ac8bb01f869e0505f447d9dfe8add5 (diff) | |
download | gcc-22edba0d9c932f48545ccf60c278dd7ce299cc53.zip gcc-22edba0d9c932f48545ccf60c278dd7ce299cc53.tar.gz gcc-22edba0d9c932f48545ccf60c278dd7ce299cc53.tar.bz2 |
testsuite: Fix gcc.dg/ipa/pr120295.c on Solaris
gcc.dg/ipa/pr120295.c FAILs on Solaris:
FAIL: gcc.dg/ipa/pr120295.c (test for excess errors)
Excess errors:
ld: warning: symbol 'glob' has differing types:
(file /var/tmp//ccsDR59c.o type=OBJT; file /lib/libc.so type=FUNC);
/var/tmp//ccsDR59c.o definition taken
Fixed by renaming the glob variable to glob_ to avoid the conflict.
Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu.
gcc/testsuite:
* gcc.dg/ipa/pr120295.c (glob): Rename to glob_.
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/pr120295.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/pr120295.c b/gcc/testsuite/gcc.dg/ipa/pr120295.c index 2033ee9..4d5a266 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr120295.c +++ b/gcc/testsuite/gcc.dg/ipa/pr120295.c @@ -9,10 +9,10 @@ char c, k, g, e; short d[2] = {0}; int *i = &j; -volatile int glob; +volatile int glob_; void __attribute__((noipa)) sth (const char *, int a) { - glob = a; + glob_ = a; return; } |