Message ID | b8ac11b2-771d-3b59-22b0-4f10ab4bbf4a@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
On 6/30/17 10:56 AM, Kelvin Nilsen wrote: > While reviewing regression test results for a back port of the PR80103 > patch, I discovered a typographic error in the test case. This patch > corrects the error. > > I have tested this fix on powerpc64le-unknown-linux-gnu with no > regressions. Is this ok for trunk? This falls under the "obvious" rule. Go ahead. Peter
On Fri, Jun 30, 2017 at 09:56:03AM -0600, Kelvin Nilsen wrote: > > While reviewing regression test results for a back port of the PR80103 > patch, I discovered a typographic error in the test case. This patch > corrects the error. A syntax error, even... I wonder why we haven't noticed that before. It won't compile as-is afaics? > --- gcc/testsuite/gcc.target/powerpc/pr80103-1.c (revision 249798) > +++ gcc/testsuite/gcc.target/powerpc/pr80103-1.c (working copy) > @@ -12,5 +12,5 @@ > int a; > void b (__attribute__ ((__vector_size__ (16))) char c) > { > - a = ((__attributes__ ((__vector_size__ (2 * sizeof (long)))) long) c)[0]; > + a = ((__attribute__ ((__vector_size__ (2 * sizeof (long)))) long) c)[0]; > } Segher
Index: gcc/testsuite/gcc.target/powerpc/pr80103-1.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/pr80103-1.c (revision 249798) +++ gcc/testsuite/gcc.target/powerpc/pr80103-1.c (working copy) @@ -12,5 +12,5 @@ int a; void b (__attribute__ ((__vector_size__ (16))) char c) { - a = ((__attributes__ ((__vector_size__ (2 * sizeof (long)))) long) c)[0]; + a = ((__attribute__ ((__vector_size__ (2 * sizeof (long)))) long) c)[0]; }