aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorLuis Silva <Luis.Silva1@synopsys.com>2024-07-03 09:41:05 -0600
committerJeff Law <jlaw@ventanamicro.com>2024-07-03 09:41:05 -0600
commitc41eb4c702ed04993a475d5910c190af1ff66720 (patch)
tree7a4d6a1975df6db77b0adbd609027fbd373238dc /gcc
parentde9254e224eb3d89303cb9b3ba50b4c479c55f7c (diff)
downloadgcc-c41eb4c702ed04993a475d5910c190af1ff66720.zip
gcc-c41eb4c702ed04993a475d5910c190af1ff66720.tar.gz
gcc-c41eb4c702ed04993a475d5910c190af1ff66720.tar.bz2
[PATCH] ARC: Update gcc.target/arc/pr9001184797.c test
... to comply with new standards due to stricter analysis in the latest GCC versions. gcc/testsuite/ChangeLog: * gcc.target/arc/pr9001184797.c: Fix compiler warnings.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/arc/pr9001184797.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/arc/pr9001184797.c b/gcc/testsuite/gcc.target/arc/pr9001184797.c
index e76c676..6c5de5f 100644
--- a/gcc/testsuite/gcc.target/arc/pr9001184797.c
+++ b/gcc/testsuite/gcc.target/arc/pr9001184797.c
@@ -4,13 +4,15 @@
/* This test studies the use of anchors and tls symbols. */
+extern int h();
+
struct a b;
struct a {
long c;
long d
} e() {
static __thread struct a f;
- static __thread g;
+ static __thread int g;
g = 5;
h();
if (f.c)