AArch64: Make every option in options.def one line

Programming / Compilers / GCC - tnfchris [138bc75d-0d04-0410-961f-82ee72b054a4] - 1 March 2019 13:34 EST

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.

gcc/ChangeLog:

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

94aadd3917a AArch64: Make every option in options.def one line
gcc/ChangeLog | 6 +++
gcc/config/aarch64/aarch64-option-extensions.def | 49 +++++++++---------------
2 files changed, 25 insertions(+), 30 deletions(-)

Upstream: gcc.gnu.org


  • Share