On Thu, Jun 04, 2020 at 01:52:53PM +0200, Richard Biener wrote:
>       * g++.dg/torture/pr95493.C: New testcase.

> +using K [[gnu::vector_size(16)]] = int;
...
> +        int a = [](K y) {
> +          for (int j = 0; j < 4; ++j)
> +            if (y[j] != 0)
> +              return j;
> +          return -1;
> +        }(x.d);

The lambda has SSE vector argument, so on i686-linux or otherwise with
-mno-sse we get a warning at -O0 when the lambda isn't inlined.

Fixed thusly, tested on x86_64-linux, committed to trunk as obvious:

2020-06-09  Jakub Jelinek  <ja...@redhat.com>

        * g++.dg/torture/pr95493.C: Add -Wno-psabi -w to dg-additional-options.

--- gcc/testsuite/g++.dg/torture/pr95493.C.jj   2020-06-05 10:42:40.635895301 
+0200
+++ gcc/testsuite/g++.dg/torture/pr95493.C      2020-06-09 08:32:47.220113011 
+0200
@@ -1,5 +1,5 @@
 // { dg-do run }
-// { dg-additional-options "-std=c++17" }
+// { dg-additional-options "-std=c++17 -Wno-psabi -w" }
 
 struct verify
 {


        Jakub

Reply via email to