[pushed] options: ignore flag_ipa_ra in cl_optimization_compare

Message ID 41f06874-d860-81b7-c2dd-7bca3ff27303@suse.cz
State New
Headers show
Series
  • [pushed] options: ignore flag_ipa_ra in cl_optimization_compare
Related show

Commit Message

Martin Liška March 16, 2021, 1:44 p.m.
One more exception for cl_optimization_compare.

Pushed to master,
thanks,
Martin

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

-- 
2.30.2

Patch

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