arm: Fix up gcc.target/arm/lto/pr96939_* FAIL
authorJakub Jelinek <jakub@redhat.com>
Mon, 14 Sep 2020 08:53:50 +0000 (10:53 +0200)
committerJakub Jelinek <jakub@redhat.com>
Mon, 14 Sep 2020 08:53:50 +0000 (10:53 +0200)
commitd106029c2aaf18f25bacf0d6faf9934d858ec8e6
tree0836ec0f07a3861220f25f0d28cc9170286b7046
parent02321f62f8d25d53296defea29538f5030e70967
arm: Fix up gcc.target/arm/lto/pr96939_* FAIL

The following patch on top of the
https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553801.html
patch fixes the gcc.target/arm/lto/pr96939_* test in certain ARM
configurations.
As said in the above mentioned patch, the generic code takes care of
saving/restoring TargetVariables or Target Save options, so this just
arranges for the generic code to save those instead of needing the
arm backend to do it manually.

2020-09-14  Jakub Jelinek  <jakub@redhat.com>

* config/arm/arm.opt (x_arm_arch_string, x_arm_cpu_string,
x_arm_tune_string): Remove TargetSave entries.
(march=, mcpu=, mtune=): Add Save keyword.
* config/arm/arm.c (arm_option_save): Remove.
(TARGET_OPTION_SAVE): Don't redefine.
(arm_option_restore): Don't restore x_arm_*_string here.
gcc/config/arm/arm.c
gcc/config/arm/arm.opt