]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make gcc.dg/vect/vect-pr123002.c trigger on unfixed trunk
authorRichard Biener <rguenther@suse.de>
Fri, 5 Dec 2025 12:25:02 +0000 (13:25 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 5 Dec 2025 12:26:56 +0000 (13:26 +0100)
The following avoids VRP to access the constant initializer.

PR tree-optimization/123002
* gcc.dg/vect/vect-pr123002.c: Make global data non-const
and non-static.

gcc/testsuite/gcc.dg/vect/vect-pr123002.c

index 9d9da280800d8e24a7d3e9edf7c1d4bd5bf36ff7..3b45c48fba374eaf20484ff872384f2dec36c6ff 100644 (file)
@@ -2,7 +2,7 @@
 
 #include "tree-vect.h"
 
-static unsigned int const enc_table_32[8][3] = {
+unsigned int enc_table_32[8][3] = {
     {513735U, 77223048U, 437087610U },
     {0U,      78508U,    646269101U },
     {0U,      0U,        11997U,    },