public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][pushed] s390: add exceptions for param modified by target pragma
@ 2021-03-01 14:42 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2021-03-01 14:42 UTC (permalink / raw)
  To: gcc-patches

There are 4 more exceptions for params that are modified
in target pragma.

Martin

gcc/ChangeLog:

	PR target/99313
	* optc-save-gen.awk: Add 4 more exceptions.

gcc/testsuite/ChangeLog:

	PR target/99313
	* gcc.target/s390/target-attribute/pr99313.c: New test.
---
  gcc/optc-save-gen.awk                                    | 6 ++++++
  gcc/testsuite/gcc.target/s390/target-attribute/pr99313.c | 5 +++++
  2 files changed, 11 insertions(+)
  create mode 100644 gcc/testsuite/gcc.target/s390/target-attribute/pr99313.c

diff --git a/gcc/optc-save-gen.awk b/gcc/optc-save-gen.awk
index b9c7187a3b9..14b8d03888e 100644
--- a/gcc/optc-save-gen.awk
+++ b/gcc/optc-save-gen.awk
@@ -1445,6 +1445,12 @@ checked_options["TARGET_CASE_VECTOR_PC_RELATIVE"]++
  checked_options["arc_size_opt_level"]++
  # arm exceptions
  checked_options["arm_fp16_format"]++
+# s390 exceptions
+checked_options["param_max_completely_peel_times"]++
+checked_options["param_max_completely_peeled_insns"]++
+checked_options["param_max_unroll_times"]++
+checked_options["param_max_unrolled_insns"]++
+
  
  for (i = 0; i < n_opts; i++) {
  	name = var_name(flags[i]);
diff --git a/gcc/testsuite/gcc.target/s390/target-attribute/pr99313.c b/gcc/testsuite/gcc.target/s390/target-attribute/pr99313.c
new file mode 100644
index 00000000000..bd85983964c
--- /dev/null
+++ b/gcc/testsuite/gcc.target/s390/target-attribute/pr99313.c
@@ -0,0 +1,5 @@
+/* PR target/99313 */
+
+#pragma GCC push_options
+#pragma GCC target ("arch=z13")
+#pragma GCC pop_options
-- 
2.30.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-01 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01 14:42 [PATCH][pushed] s390: add exceptions for param modified by target pragma Martin Liška

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).