re PR testsuite/55186 (gcc.dg/const-uniq-1.c fails due to vector expected but not...
authorHans-Peter Nilsson <hp@axis.com>
Mon, 5 Nov 2012 22:17:14 +0000 (22:17 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Mon, 5 Nov 2012 22:17:14 +0000 (22:17 +0000)
PR testsuite/55186
* gcc.dg/const-uniq-1.c (a): Increase length four times.

From-SVN: r193194

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/const-uniq-1.c

index a14ad8b99121bcb905299630216168a6235638b1..0757405ba6a1021c4658bb31777821a46975d0c4 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-05  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR testsuite/55186
+       * gcc.dg/const-uniq-1.c (a): Increase length four times.
+
 2012-11-05  Jack Howarth <howarth@bromo.med.uc.edu>
 
        * gcc.dg/torture/pr53922.c: Use -Wl,-undefined,dynamic_lookup on
index 8172c678b246807e3385f732da97d6436fc821eb..6e2b6a38ce4eebc07281844ff6f584522321d43f 100644 (file)
@@ -5,13 +5,18 @@
 
 int lookup1 (int i)
 {
-  int a[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
+  /* We use vectors long enough that piece-wise initialization is not
+     reasonably preferable even for size (when including the constant
+     vectors for initialization) for any target.  */
+  int a[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+             16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 };
   return a[i];
 }
 
 int lookup2 (int i)
 {
-  int a[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
+  int a[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+             16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 };
   return a[i+1];
 }