PR target/71958: Error on -mx32 with -mabi=ms
authorDaniel Santos <daniel.santos@pobox.com>
Tue, 22 Aug 2017 17:59:24 +0000 (17:59 +0000)
committerDaniel Santos <dansan@gcc.gnu.org>
Tue, 22 Aug 2017 17:59:24 +0000 (17:59 +0000)
commit4d68ff06e1072c26ad41d62d4789aff8180f151b
tree97e181e2b8433052176482e37cdb62bd87ca2c11
parent65d3dce8e80d0a697d63c92abfde078a11e37e64
PR target/71958: Error on -mx32 with -mabi=ms

gcc/ChangeLog:
2017-08-11  Daniel Santos  <daniel.santos@pobox.com>

* config/i386/i386.c (ix86_option_override_internal): Error when
-mx32 is combined with -mabi=ms.
(ix86_function_type_abi): Limit errors for mixing -mx32 with
attribute ms_abi.

gcc/testsuite/ChangeLog:
2017-08-11  Daniel Santos  <daniel.santos@pobox.com>

* gcc.target/i386/pr71958.c: New test to verify error on -mx32
and -mabi=ms
  * gcc.target/i386/pr64409.c: Modify to only run on x32.
* gcc.target/i386/pr46470.c: Modify to skip x32 target.
  * gcc.target/i386/pr66275.c: Likewise.
  * gcc.target/i386/pr68018.c: Likewise.

From-SVN: r251287
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr46470.c
gcc/testsuite/gcc.target/i386/pr64409.c
gcc/testsuite/gcc.target/i386/pr66275.c
gcc/testsuite/gcc.target/i386/pr68018.c
gcc/testsuite/gcc.target/i386/pr71958.c [new file with mode: 0644]