The following avoids VRP to access the constant initializer.

Pushed.

        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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/vect-pr123002.c 
b/gcc/testsuite/gcc.dg/vect/vect-pr123002.c
index 9d9da280800..3b45c48fba3 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-pr123002.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-pr123002.c
@@ -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,    },
-- 
2.51.0

Reply via email to