PR target/84300
gcc/
* config/rs6000/rs6000.md (split_stack_return): Remove (use ..).
Specify LR as an input.
gcc/testsuite/
* gcc.dg/pr84300.c: New.
From-SVN: r257549
+2018-02-10 Alan Modra <amodra@gmail.com>
+
+ PR target/84300
+ * config/rs6000/rs6000.md (split_stack_return): Remove (use ..).
+ Specify LR as an input.
+
2018-02-10 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/83987
;; Use r0 to stop regrename twiddling with lr restore insns emitted
;; after the call to __morestack.
(define_insn "split_stack_return"
- [(unspec_volatile [(use (reg:SI 0))] UNSPECV_SPLIT_STACK_RETURN)]
+ [(unspec_volatile [(reg:SI 0) (reg:SI LR_REGNO)] UNSPECV_SPLIT_STACK_RETURN)]
""
"blr"
[(set_attr "type" "jmpreg")])
+2018-02-10 Alan Modra <amodra@gmail.com>
+
+ PR target/84300
+ * gcc.dg/pr84300.c: New.
+
2018-02-10 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/83987
--- /dev/null
+/* { dg-do compile } */
+/* { dg-require-effective-target split_stack } */
+/* { dg-options "-g -O2 -fsplit-stack -fno-omit-frame-pointer" } */
+
+void trap () { __builtin_trap (); }