target: support spaces in target attribute.
authorMartin Liska <mliska@suse.cz>
Mon, 4 Oct 2021 12:06:14 +0000 (14:06 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 19 Oct 2021 06:51:32 +0000 (08:51 +0200)
commitdf592811f950301ed3b10a08e476dad0f2eff26a
treec216102d4300a4d9c094dd51fbf023c31369debf
parent38f6ee6bfc4633175ca6f6d29e597d379ccae820
target: support spaces in target attribute.

PR target/102374

gcc/ChangeLog:

* config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
* system.h (strip_whilespaces): New function.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr102374.c: New test.
gcc/config/i386/i386-options.c
gcc/system.h
gcc/testsuite/gcc.target/i386/pr102374.c [new file with mode: 0644]