From c41eb4c702ed04993a475d5910c190af1ff66720 Mon Sep 17 00:00:00 2001 From: Luis Silva Date: Wed, 3 Jul 2024 09:41:05 -0600 Subject: [PATCH] [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. --- 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 e76c6769042f..6c5de5fe7295 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) -- 2.47.2