re PR target/90096 (Misleading option hint for AVX intrinsics)
authorJakub Jelinek <jakub@redhat.com>
Tue, 16 Apr 2019 08:40:58 +0000 (10:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 16 Apr 2019 08:40:58 +0000 (10:40 +0200)
commit8feb61a3c53240194d76c1a8e57a07faa5ef5d4c
tree4b40e536f9e0cd00e3228d2ad25e0286894927dd
parent234b5365c5485a0606a0d2faac7e9f1e30ce8303
re PR target/90096 (Misleading option hint for AVX intrinsics)

PR target/90096
* config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
print -m64/-mx32/-m32 if it is true.
(ix86_debug_options, ix86_function_specific_print): Pass true as
ADD_ABI_P to ix86_target_string.
(ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.

* gcc.target/i386/pr90096.c: New test.
* gcc.target/i386/pr69255-1.c: Adjust expected diagnostics.
* gcc.target/i386/pr69255-2.c: Likewise.
* gcc.target/i386/pr69255-3.c: Likewise.

From-SVN: r270381
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr69255-1.c
gcc/testsuite/gcc.target/i386/pr69255-2.c
gcc/testsuite/gcc.target/i386/pr69255-3.c
gcc/testsuite/gcc.target/i386/pr90096.c [new file with mode: 0644]