2015-11-24 Steve Ellcey <sellcey@imgtec.com>
* gcc.target/mips/frame-header-4.c: New test.
From-SVN: r230846
+2015-11-24 Steve Ellcey <sellcey@imgtec.com>
+
+ * gcc.target/mips/frame-header-4.c: New test.
+
2015-11-24 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68486
--- /dev/null
+/* Verify that we can optimize away the frame header allocation in bar
+ by having it use its frame header to store $31 in before calling foo. */
+
+/* { dg-do compile } */
+/* { dg-options "-mframe-header-opt -mabi=32" } */
+/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
+/* { dg-final { scan-assembler-not "\taddiu\t\\\$sp" } } */
+
+int __attribute__ ((noinline))
+foo (int a, int b)
+{
+ return a + b;
+}
+
+int __attribute__ ((noinline))
+bar (int a, int b)
+{
+ return 1 + foo(a,b);
+}
+