]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix pr125453-1.c at -O2 on some targets
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Fri, 29 May 2026 16:02:10 +0000 (09:02 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Fri, 29 May 2026 20:48:37 +0000 (13:48 -0700)
On some targets at -O2, pr125453-1.c testcase produces
a -Wstringop-overflow warning. Since this testcase is not testing
the warnings but rather an ICE, we can just add -w to the additional
options.

Pushed as obvious after testing it on x86_64-linux-gnu.

gcc/testsuite/ChangeLog:

* gcc.dg/torture/pr125453-1.c: Add -w to the options.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/gcc.dg/torture/pr125453-1.c

index d4ee478253de2ae3d22c9c4831e2c7d57907391c..e3072d6d6b13d821e75db5b1058ac3c4fb010615 100644 (file)
@@ -1,5 +1,8 @@
 /* { dg-do compile } */
 /* { dg-additional-options "-fgimple" } */
+/* Disable all warnings since the code in h is undefined and could
+   invoke -Wstringop-overflow warnigns and others. */
+/* { dg-additional-options "-w" } */
 /* PR tree-optimization/125453 */
 
 int b[10];