From 49cc0354ba64de2a2408b4b9d48cbe0292f304c0 Mon Sep 17 00:00:00 2001 From: Kelvin Nilsen Date: Wed, 14 Feb 2018 19:20:30 +0000 Subject: [PATCH] rs6000.c (rs6000_option_override_internal): Issue warning message if user requests -maltivec=be. gcc/ChangeLog: 2018-02-14 Kelvin Nilsen * config/rs6000/rs6000.c (rs6000_option_override_internal): Issue warning message if user requests -maltivec=be. * doc/invoke.texi: Document deprecation of -maltivec=be. gcc/testsuite/ChangeLog: 2018-02-14 Kelvin Nilsen * gcc.dg/vmx/extract-be-order.c: Disable -maltivec=be warning so this test case still works ok. * gcc.dg/vmx/extract-vsx-be-order.c: Likewise. * gcc.dg/vmx/insert-be-order.c: Likewise. * gcc.dg/vmx/insert-vsx-be-order.c: Likewise. * gcc.dg/vmx/ld-be-order.c: Likewise. * gcc.dg/vmx/ld-vsx-be-order.c: Likewise. * gcc.dg/vmx/lde-be-order.c: Likewise. * gcc.dg/vmx/ldl-be-order.c: Likewise. * gcc.dg/vmx/ldl-vsx-be-order.c: Likewise. * gcc.dg/vmx/merge-be-order.c: Likewise. * gcc.dg/vmx/merge-vsx-be-order.c: Likewise. * gcc.dg/vmx/mult-even-odd-be-order.c: Likewise. * gcc.dg/vmx/pack-be-order.c: Likewise. * gcc.dg/vmx/perm-be-order.c: Likewise. * gcc.dg/vmx/splat-be-order.c: Likewise. * gcc.dg/vmx/splat-vsx-be-order.c: Likewise. * gcc.dg/vmx/st-be-order.c: Likewise. * gcc.dg/vmx/st-vsx-be-order.c: Likewise. * gcc.dg/vmx/ste-be-order.c: Likewise. * gcc.dg/vmx/stl-be-order.c: Likewise. * gcc.dg/vmx/stl-vsx-be-order.c: Likewise. * gcc.dg/vmx/sum2s-be-order.c: Likewise. * gcc.dg/vmx/unpack-be-order.c: Likewise. * gcc.dg/vmx/vsums-be-order.c: Likewise. * gcc.target/powerpc/vec-setup-be-long.c: Likewise. From-SVN: r257668 --- gcc/ChangeLog | 6 ++++ gcc/config/rs6000/rs6000.c | 7 +++++ gcc/doc/invoke.texi | 4 ++- gcc/testsuite/ChangeLog | 29 +++++++++++++++++++ gcc/testsuite/gcc.dg/vmx/extract-be-order.c | 3 +- .../gcc.dg/vmx/extract-vsx-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/insert-be-order.c | 3 +- .../gcc.dg/vmx/insert-vsx-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/ld-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/ld-vsx-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/lde-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/ldl-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/ldl-vsx-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/merge-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/merge-vsx-be-order.c | 3 +- .../gcc.dg/vmx/mult-even-odd-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/pack-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/perm-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/splat-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/splat-vsx-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/st-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/st-vsx-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/ste-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/stl-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/stl-vsx-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/sum2s-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/unpack-be-order.c | 3 +- gcc/testsuite/gcc.dg/vmx/vsums-be-order.c | 3 +- .../gcc.target/powerpc/vec-setup-be-long.c | 3 +- 29 files changed, 95 insertions(+), 26 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 62c78631f01..e0b2e0f8df0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-02-14 Kelvin Nilsen + + * config/rs6000/rs6000.c (rs6000_option_override_internal): Issue + warning message if user requests -maltivec=be. + * doc/invoke.texi: Document deprecation of -maltivec=be. + 2018-02-14 Will Schmidt PR target/84220 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index ddfc10666a3..3bb8d2a9224 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4028,6 +4028,13 @@ rs6000_option_override_internal (bool global_init_p) if (global_init_p) rs6000_isa_flags_explicit = global_options_set.x_rs6000_isa_flags; + /* We plan to deprecate the -maltivec=be option. For now, just + issue a warning message. */ + if (global_init_p + && rs6000_altivec_element_order == 2) + warning (0, "%qs command-line option is deprecated", + "-maltivec=be"); + /* On 64-bit Darwin, power alignment is ABI-incompatible with some C library functions, so warn about it. The flag may be useful for performance studies from time to time though, so don't disable it diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 48194c825f3..f0b11a01354 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -23371,7 +23371,9 @@ little-endian platform. @opindex maltivec=be Generate AltiVec instructions using big-endian element order, regardless of whether the target is big- or little-endian. This is -the default when targeting a big-endian platform. +the default when targeting a big-endian platform. Using this option +is currently deprecated. Support for this feature will be removed in +GCC 9. The element order is used to interpret element numbers in AltiVec intrinsics such as @code{vec_splat}, @code{vec_extract}, and diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7b6ba1d7336..33967f23813 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,32 @@ +2018-02-14 Kelvin Nilsen + + * gcc.dg/vmx/extract-be-order.c: Disable -maltivec=be warning so + this test case still works ok. + * gcc.dg/vmx/extract-vsx-be-order.c: Likewise. + * gcc.dg/vmx/insert-be-order.c: Likewise. + * gcc.dg/vmx/insert-vsx-be-order.c: Likewise. + * gcc.dg/vmx/ld-be-order.c: Likewise. + * gcc.dg/vmx/ld-vsx-be-order.c: Likewise. + * gcc.dg/vmx/lde-be-order.c: Likewise. + * gcc.dg/vmx/ldl-be-order.c: Likewise. + * gcc.dg/vmx/ldl-vsx-be-order.c: Likewise. + * gcc.dg/vmx/merge-be-order.c: Likewise. + * gcc.dg/vmx/merge-vsx-be-order.c: Likewise. + * gcc.dg/vmx/mult-even-odd-be-order.c: Likewise. + * gcc.dg/vmx/pack-be-order.c: Likewise. + * gcc.dg/vmx/perm-be-order.c: Likewise. + * gcc.dg/vmx/splat-be-order.c: Likewise. + * gcc.dg/vmx/splat-vsx-be-order.c: Likewise. + * gcc.dg/vmx/st-be-order.c: Likewise. + * gcc.dg/vmx/st-vsx-be-order.c: Likewise. + * gcc.dg/vmx/ste-be-order.c: Likewise. + * gcc.dg/vmx/stl-be-order.c: Likewise. + * gcc.dg/vmx/stl-vsx-be-order.c: Likewise. + * gcc.dg/vmx/sum2s-be-order.c: Likewise. + * gcc.dg/vmx/unpack-be-order.c: Likewise. + * gcc.dg/vmx/vsums-be-order.c: Likewise. + * gcc.target/powerpc/vec-setup-be-long.c: Likewise. + 2018-02-14 Paolo Carlini PR c++/84350 diff --git a/gcc/testsuite/gcc.dg/vmx/extract-be-order.c b/gcc/testsuite/gcc.dg/vmx/extract-be-order.c index 5c09471d99b..f03c356781a 100644 --- a/gcc/testsuite/gcc.dg/vmx/extract-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/extract-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx -w" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/extract-vsx-be-order.c b/gcc/testsuite/gcc.dg/vmx/extract-vsx-be-order.c index 8c965f6fd66..509a7b62181 100644 --- a/gcc/testsuite/gcc.dg/vmx/extract-vsx-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/extract-vsx-be-order.c @@ -1,6 +1,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx -w" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/insert-be-order.c b/gcc/testsuite/gcc.dg/vmx/insert-be-order.c index 592ef28c0fc..7aa28f85b77 100644 --- a/gcc/testsuite/gcc.dg/vmx/insert-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/insert-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/insert-vsx-be-order.c b/gcc/testsuite/gcc.dg/vmx/insert-vsx-be-order.c index 6cb59dd8a63..569a86606c7 100644 --- a/gcc/testsuite/gcc.dg/vmx/insert-vsx-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/insert-vsx-be-order.c @@ -1,6 +1,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/ld-be-order.c b/gcc/testsuite/gcc.dg/vmx/ld-be-order.c index 903b997c9a3..f7361cfd372 100644 --- a/gcc/testsuite/gcc.dg/vmx/ld-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/ld-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/ld-vsx-be-order.c b/gcc/testsuite/gcc.dg/vmx/ld-vsx-be-order.c index c870c55e856..f02366756b9 100644 --- a/gcc/testsuite/gcc.dg/vmx/ld-vsx-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/ld-vsx-be-order.c @@ -1,6 +1,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/lde-be-order.c b/gcc/testsuite/gcc.dg/vmx/lde-be-order.c index 9a6d5bae52d..53c3b78a71d 100644 --- a/gcc/testsuite/gcc.dg/vmx/lde-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/lde-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/ldl-be-order.c b/gcc/testsuite/gcc.dg/vmx/ldl-be-order.c index 397849fe1f5..49ba48b0462 100644 --- a/gcc/testsuite/gcc.dg/vmx/ldl-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/ldl-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/ldl-vsx-be-order.c b/gcc/testsuite/gcc.dg/vmx/ldl-vsx-be-order.c index 222d1db0d75..edac6764fc2 100644 --- a/gcc/testsuite/gcc.dg/vmx/ldl-vsx-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/ldl-vsx-be-order.c @@ -1,6 +1,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/merge-be-order.c b/gcc/testsuite/gcc.dg/vmx/merge-be-order.c index 2de888fa444..4cc0d4490e5 100644 --- a/gcc/testsuite/gcc.dg/vmx/merge-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/merge-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/merge-vsx-be-order.c b/gcc/testsuite/gcc.dg/vmx/merge-vsx-be-order.c index b01208d5f40..67193278ae6 100644 --- a/gcc/testsuite/gcc.dg/vmx/merge-vsx-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/merge-vsx-be-order.c @@ -1,6 +1,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/mult-even-odd-be-order.c b/gcc/testsuite/gcc.dg/vmx/mult-even-odd-be-order.c index 6ba12d04634..84a89515b0d 100644 --- a/gcc/testsuite/gcc.dg/vmx/mult-even-odd-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/mult-even-odd-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/pack-be-order.c b/gcc/testsuite/gcc.dg/vmx/pack-be-order.c index c400fc882dd..3e71b3130a1 100644 --- a/gcc/testsuite/gcc.dg/vmx/pack-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/pack-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/perm-be-order.c b/gcc/testsuite/gcc.dg/vmx/perm-be-order.c index 604f63dc95f..3a7942840f5 100644 --- a/gcc/testsuite/gcc.dg/vmx/perm-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/perm-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/splat-be-order.c b/gcc/testsuite/gcc.dg/vmx/splat-be-order.c index e265ae4be20..96d086939ef 100644 --- a/gcc/testsuite/gcc.dg/vmx/splat-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/splat-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/splat-vsx-be-order.c b/gcc/testsuite/gcc.dg/vmx/splat-vsx-be-order.c index 620a31f7692..e0dca6b5dfb 100644 --- a/gcc/testsuite/gcc.dg/vmx/splat-vsx-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/splat-vsx-be-order.c @@ -1,6 +1,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/st-be-order.c b/gcc/testsuite/gcc.dg/vmx/st-be-order.c index 1a7b01bb5a1..e1cd826665a 100644 --- a/gcc/testsuite/gcc.dg/vmx/st-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/st-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/st-vsx-be-order.c b/gcc/testsuite/gcc.dg/vmx/st-vsx-be-order.c index 48814462106..1ce8f41552e 100644 --- a/gcc/testsuite/gcc.dg/vmx/st-vsx-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/st-vsx-be-order.c @@ -1,6 +1,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/ste-be-order.c b/gcc/testsuite/gcc.dg/vmx/ste-be-order.c index 75f2004f372..cfc6877af3c 100644 --- a/gcc/testsuite/gcc.dg/vmx/ste-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/ste-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/stl-be-order.c b/gcc/testsuite/gcc.dg/vmx/stl-be-order.c index 7f00a036499..28fd9e77454 100644 --- a/gcc/testsuite/gcc.dg/vmx/stl-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/stl-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/stl-vsx-be-order.c b/gcc/testsuite/gcc.dg/vmx/stl-vsx-be-order.c index 65e2f256d06..1abd3edefe9 100644 --- a/gcc/testsuite/gcc.dg/vmx/stl-vsx-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/stl-vsx-be-order.c @@ -1,6 +1,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mvsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/sum2s-be-order.c b/gcc/testsuite/gcc.dg/vmx/sum2s-be-order.c index 0981cc1d52b..03c6faa0ca6 100644 --- a/gcc/testsuite/gcc.dg/vmx/sum2s-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/sum2s-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/unpack-be-order.c b/gcc/testsuite/gcc.dg/vmx/unpack-be-order.c index 6eb98f4cf72..0d65a4fafbb 100644 --- a/gcc/testsuite/gcc.dg/vmx/unpack-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/unpack-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx -Wno-shift-overflow" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx -Wno-shift-overflow" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.dg/vmx/vsums-be-order.c b/gcc/testsuite/gcc.dg/vmx/vsums-be-order.c index e4a34e9f966..1f640e76112 100644 --- a/gcc/testsuite/gcc.dg/vmx/vsums-be-order.c +++ b/gcc/testsuite/gcc.dg/vmx/vsums-be-order.c @@ -1,4 +1,5 @@ -/* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -maltivec=be -mabi=altivec -std=gnu99 -mno-vsx" } */ #include "harness.h" diff --git a/gcc/testsuite/gcc.target/powerpc/vec-setup-be-long.c b/gcc/testsuite/gcc.target/powerpc/vec-setup-be-long.c index 492cd2d76a2..691b378698f 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-setup-be-long.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-setup-be-long.c @@ -1,6 +1,7 @@ /* { dg-do run { target { powerpc64le*-*-linux* } } } */ /* { dg-require-effective-target vsx_hw } */ -/* { dg-options "-O2 -mvsx -maltivec=be" } */ +/* Disable warnings to squelch deprecation message about -maltivec=be. */ +/* { dg-options "-w -O2 -mvsx -maltivec=be" } */ /* Test various ways of creating vectors with 2 double words and accessing the elements. This test uses the long (on 64-bit systems) or long long datatype -- 2.30.2