[PATCH][GCC][AArch64] Make every option in options.def one line

Tamar Christina Tamar.Christina@arm.com
Fri Mar 1 12:57:00 GMT 2019


Hi All,

Due to config.gcc all the options need to be on one line because of the grep
lines which would select only the first line of the option.

This causes it not to select the right bits on options that are spread over
multiple lines when the --with-arch configure option is used.  The issue happens
silently and you just get a compiler with an incorrect set of default flags.

This solution just collapses everything back to one line as they were in GCC7.
Unfortunately this does make some lines quite long.

I do have an alternate patch which used the pre-processors to first flatten the
file in config.gcc.  I will send that one out for GCC 10.

Bootstrapped Regtested on aarch64-none-linux-gnu and no issues.

Ok for trunk?

Thanks,
Tamar

gcc/ChangeLog:

2019-03-01  Tamar Christina  <tamar.christina@arm.com>

	PR target/89517
	* config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
	rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb10754.patch
Type: text/x-diff
Size: 5984 bytes
Desc: rb10754.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190301/1b7706d0/attachment.bin>


More information about the Gcc-patches mailing list