https://gcc.gnu.org/g:c41eb4c702ed04993a475d5910c190af1ff66720

commit r15-1823-gc41eb4c702ed04993a475d5910c190af1ff66720
Author: Luis Silva <luis.sil...@synopsys.com>
Date:   Wed Jul 3 09:41:05 2024 -0600

    [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.

Diff:
---
 gcc/testsuite/gcc.target/arc/pr9001184797.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/arc/pr9001184797.c 
b/gcc/testsuite/gcc.target/arc/pr9001184797.c
index e76c6769042..6c5de5fe729 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)

Reply via email to