From: Richard Sandiford Date: Tue, 24 Jan 2012 19:23:56 +0000 (+0000) Subject: scal-to-vec1.c (one): New volatile variable. X-Git-Tag: releases/gcc-4.7.0~817 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=r0-114701-g2c49569ecea56d;p=thirdparty%2Fgcc.git scal-to-vec1.c (one): New volatile variable. gcc/testsuite/ * gcc.c-torture/execute/scal-to-vec1.c (one): New volatile variable. (main): Use it instead of argc. From-SVN: r183489 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b34ea63af365..2d3bc6588961 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-01-24 Richard Sandiford + + * gcc.c-torture/execute/scal-to-vec1.c (one): New volatile variable. + (main): Use it instead of argc. + 2012-01-24 Jason Merrill PR c++/51973 diff --git a/gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c b/gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c index e2b43f426353..f03be6418226 100644 --- a/gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c +++ b/gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c @@ -24,13 +24,14 @@ do {\ } \ } while (0) +volatile int one = 1; int main (int argc, char *argv[]) { #define fvec_2 (vector(4, float)){2., 2., 2., 2.} #define dvec_2 (vector(2, double)){2., 2.} - vector(8, short) v0 = {argc, 1,2,3,4,5,6,7}; + vector(8, short) v0 = {one, 1, 2, 3, 4, 5, 6, 7}; vector(8, short) v1; vector(4, float) f0 = {1., 2., 3., 4.};