diff mbox series

ARC: Update gcc.target/arc/pr9001184797.c test

Message ID 20240703142452.157126-1-luiss@synopsys.com
State New
Headers show
Series ARC: Update gcc.target/arc/pr9001184797.c test | expand

Commit Message

Luis Silva July 3, 2024, 2:24 p.m. UTC
... 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/ChangeLog                     | 4 ++++
 gcc/testsuite/gcc.target/arc/pr9001184797.c | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

Comments

Jeff Law July 3, 2024, 3:42 p.m. UTC | #1
On 7/3/24 8:24 AM, Luis Silva wrote:
> ... 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)
I fixed the ChangeLog entry and pushed this to the trunk for you.

I guess we shouldn't be surprised that some of the target tests slipped 
through the cracks.

Thanks!
Jeff
diff mbox series

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9aeec32f9e6..bd825881b75 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@ 
+2024-07-03  Luis Silva  <luiss@synopsys.com>
+
+	* gcc.target/arc/pr9001184797.c: (Fix compiler warnings)
+
 2024-07-02  Pengxuan Zheng  <quic_pzheng@quicinc.com>
 
 	PR target/113859
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)