aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2017-09-19 23:43:28 -0600
committerJeff Law <law@gcc.gnu.org>2017-09-19 23:43:28 -0600
commitac9c032e4d7e6350c529707cedda7250b77190cc (patch)
tree926f3e77aacdcb0040c2b0731fb7dd61d5f8b7aa /gcc/testsuite
parent8e7a09c353842f38c05b8cb171efa9784ab84862 (diff)
downloadgcc-ac9c032e4d7e6350c529707cedda7250b77190cc.zip
gcc-ac9c032e4d7e6350c529707cedda7250b77190cc.tar.gz
gcc-ac9c032e4d7e6350c529707cedda7250b77190cc.tar.bz2
combine-stack-adj.c (combine_stack_adjustments_for_block): Do nothing for stack adjustments with REG_STACK_CHECK.
* combine-stack-adj.c (combine_stack_adjustments_for_block): Do nothing for stack adjustments with REG_STACK_CHECK. * sched-deps.c (parse_add_or_inc): Reject insns with REG_STACK_CHECK from dependency breaking. * config/i386/i386.c (pro_epilogue_adjust_stack): Return insn. (ix86_adjust_satck_and_probe_stack_clash): Add REG_STACK_NOTEs. * reg-notes.def (STACK_CHECK): New note. * gcc.target/i386/stack-check-11.c: New test. From-SVN: r252999
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/gcc.target/i386/stack-check-11.c16
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 55510b1..d2eec19 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,7 @@
2017-09-19 Jeff Law <law@redhat.com>
+ * gcc.target/i386/stack-check-11.c: New test.
+
* gcc.dg/stack-check-4.c: New test.
* gcc.dg/stack-check-5.c: New test.
* gcc.dg/stack-check-6.c: New test.
diff --git a/gcc/testsuite/gcc.target/i386/stack-check-11.c b/gcc/testsuite/gcc.target/i386/stack-check-11.c
new file mode 100644
index 0000000..183103f
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/stack-check-11.c
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fstack-clash-protection" } */
+/* { dg-require-effective-target supports_stack_clash_protection } */
+
+extern void arf (unsigned long int *, unsigned long int *);
+void
+frob ()
+{
+ unsigned long int num[859];
+ unsigned long int den[859];
+ arf (den, num);
+}
+
+/* { dg-final { scan-assembler-times "subq" 4 } } */
+/* { dg-final { scan-assembler-times "orq" 3 } } */
+