From: Luis Silva Date: Wed, 3 Jul 2024 15:41:05 +0000 (-0600) Subject: [PATCH] ARC: Update gcc.target/arc/pr9001184797.c test X-Git-Tag: basepoints/gcc-16~7730 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c41eb4c702ed04993a475d5910c190af1ff66720;p=thirdparty%2Fgcc.git [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 --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)