[committed] testsuite: Fix up vector-subaccess-1.C test for ia32 [PR89224]

Message ID ZjyXAEGvv62k4S/4@tucnak
State New
Headers
Series [committed] testsuite: Fix up vector-subaccess-1.C test for ia32 [PR89224] |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply

Commit Message

Jakub Jelinek May 9, 2024, 9:27 a.m. UTC
  Hi!

The test FAILs on i686-linux due to
.../gcc/testsuite/g++.dg/torture/vector-subaccess-1.C:16:6: warning: SSE vector argument without SSE enabled changes the ABI [-Wpsabi]
excess warnings.

This fixes it by adding -Wno-psabi, like commonly done in other tests.

Committed to trunk as obvious after testing it on x86_64-linux with
make check-g++ RUNTESTFLAGS='--target_board=unix\{-m32/-mno-sse,-m32,-m64\} dg-torture.exp=vector-subaccess-1.C'
and backported all the way to 11 branch.

2024-05-09  Jakub Jelinek  <jakub@redhat.com>

	PR c++/89224
	* g++.dg/torture/vector-subaccess-1.C: Add -Wno-psabi as additional
	options.


	Jakub
  

Patch

--- gcc/testsuite/g++.dg/torture/vector-subaccess-1.C.jj	2024-05-08 10:16:54.045823642 +0200
+++ gcc/testsuite/g++.dg/torture/vector-subaccess-1.C	2024-05-09 11:16:46.730114871 +0200
@@ -1,4 +1,5 @@ 
 /* PR c++/89224 */
+/* { dg-additional-options "-Wno-psabi" } */
 
 /* The access of `vector[i]` has the same qualifiers as the original
    vector which was missing. */