On Fri, Dec 20, 2019 at 06:22:10PM -0500, Marek Polacek wrote:
> > > 2019-12-20  Marek Polacek  <pola...@redhat.com>
> > > 
> > >   PR c++/92745 - bogus error when initializing array of vectors.
> > >   * decl.c (reshape_init_r): For a nested compound literal, do
> > >   call reshape_init_{class,array,vector}.
> > > 
> > >   * g++.dg/cpp0x/initlist118.C: New test.

I've missed that the testcase FAILs on i686-linux, with
/home/jakub/src/gcc/gcc/testsuite/g++.dg/cpp0x/initlist118.C: In function 
'array<__vector(4) float, 4> transpose(array<__vector(4) float, 4>)':
/home/jakub/src/gcc/gcc/testsuite/g++.dg/cpp0x/initlist118.C:20:28: warning: 
SSE vector return without SSE enabled changes the ABI [-Wpsabi]
/home/jakub/src/gcc/gcc/testsuite/g++.dg/cpp0x/initlist118.C:17:1: note: the 
ABI for passing parameters with 16-byte alignment has changed in GCC 4.6
FAIL: g++.dg/cpp0x/initlist118.C  -std=c++11 (test for excess errors)
Excess errors:
/home/jakub/src/gcc/gcc/testsuite/g++.dg/cpp0x/initlist118.C:20:28: warning: 
SSE vector return without SSE enabled changes the ABI [-Wpsabi]
etc.

Fixed thusly, tested on {x86_64,i686}-linux, committed to trunk as obvious.
The -w in there is for targets which don't use -Wno-psabi for their
ABI warnings.

2019-12-30  Jakub Jelinek  <ja...@redhat.com>

        PR c++/92745
        * g++.dg/cpp0x/initlist118.C: Add -Wno-psabi -w to dg-options.

--- gcc/testsuite/g++.dg/cpp0x/initlist118.C.jj 2019-12-21 00:50:54.405407491 
+0100
+++ gcc/testsuite/g++.dg/cpp0x/initlist118.C    2019-12-30 00:15:59.429857194 
+0100
@@ -1,5 +1,6 @@
 // PR c++/92745 - bogus error when initializing array of vectors.
 // { dg-do compile { target c++11 } }
+// { dg-options "-Wno-psabi -w" }
 
 template <typename a, int b> struct c {
   typedef a d[b];


        Jakub

Reply via email to