diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-07-25 09:37:49 -0700 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-07-26 09:54:57 -0700 |
commit | 8a5f528fba788f2af40a15a999bb63a2a0f6f455 (patch) | |
tree | f80bdcc8d14d8ce0b3d2c2a50709c9b87b363d35 /include/gdb/gdb-index.h | |
parent | 9fe53beacfc5c01e24690dc70d7599db084cc8b4 (diff) | |
download | gcc-8a5f528fba788f2af40a15a999bb63a2a0f6f455.zip gcc-8a5f528fba788f2af40a15a999bb63a2a0f6f455.tar.gz gcc-8a5f528fba788f2af40a15a999bb63a2a0f6f455.tar.bz2 |
aarch64: Fix target/optimize option handling with transiting between O1 to O2
The problem here is the aarch64 backend enables -mearly-ra at -O2 and above but
it is not marked as an Optimization in the .opt file so enabling it sometimes
reset the target options when going from -O1 to -O2 for the first time.
Build and tested for aarch64-linux-gnu with no regressions.
PR target/116065
gcc/ChangeLog:
* config/aarch64/aarch64.opt (mearly-ra=): Mark as Optimization rather
than Save.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/sve/target_optimization-1.c: New test.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'include/gdb/gdb-index.h')
0 files changed, 0 insertions, 0 deletions