x86: Reject target("no-general-regs-only")
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 26 Aug 2020 19:37:05 +0000 (12:37 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 26 Aug 2020 19:56:18 +0000 (12:56 -0700)
commit8f1ea8ddccc34c28f72910d9f61bacd35cc73270
tree65f014bee28aa0a57ed15c50ffc630a9876bd1b7
parent703e049aa72e01c15087750fe63deba779c9b2dd
x86: Reject target("no-general-regs-only")

Reject target("no-general-regs-only") pragma and attribute.

gcc/

PR target/96802
* config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
Reject target("no-general-regs-only").

gcc/testsuite/

PR target/96802
* gcc.target/i386/pr96802-1.c: New test.
* gcc.target/i386/pr96802-2.c: Likewise.
gcc/config/i386/i386-options.c
gcc/testsuite/gcc.target/i386/pr96802-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr96802-2.c [new file with mode: 0644]