From 408d137027b1c39546d39fdbca7347b3dddba8ea Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 16 Mar 2021 14:42:01 +0100 Subject: [PATCH] options: ignore flag_ipa_ra in cl_optimization_compare gcc/ChangeLog: PR target/99592 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for cl_optimization_compare function. gcc/testsuite/ChangeLog: PR target/99592 * gcc.target/arm/pr99592.c: New test. --- gcc/optc-save-gen.awk | 1 + gcc/testsuite/gcc.target/arm/pr99592.c | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 gcc/testsuite/gcc.target/arm/pr99592.c diff --git a/gcc/optc-save-gen.awk b/gcc/optc-save-gen.awk index 14b8d03888e..19afa895930 100644 --- a/gcc/optc-save-gen.awk +++ b/gcc/optc-save-gen.awk @@ -1445,6 +1445,7 @@ checked_options["TARGET_CASE_VECTOR_PC_RELATIVE"]++ checked_options["arc_size_opt_level"]++ # arm exceptions checked_options["arm_fp16_format"]++ +checked_options["flag_ipa_ra"]++ # s390 exceptions checked_options["param_max_completely_peel_times"]++ checked_options["param_max_completely_peeled_insns"]++ diff --git a/gcc/testsuite/gcc.target/arm/pr99592.c b/gcc/testsuite/gcc.target/arm/pr99592.c new file mode 100644 index 00000000000..23d6591ba16 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/pr99592.c @@ -0,0 +1,7 @@ +/* PR target/99592 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -pg" } */ + +#pragma GCC push_options +#pragma GCC target "" +#pragma GCC pop_options