* config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
symbols.
+ From Jie Zhang <jie.zhang@analog.com>:
+ * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
+ save FP and RETS with saveall attribute.
+ (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
+ with saveall attribute.
+
2009-09-14 Richard Guenther <rguenther@suse.de>
PR middle-end/41350
}
expand_prologue_reg_save (spreg, all, false);
- do_link (spreg, frame_size, false);
+ do_link (spreg, frame_size, all);
if (TARGET_ID_SHARED_LIBRARY
&& !TARGET_SEP_DATA
return;
}
- do_unlink (spreg, get_frame_size (), false, e);
+ do_unlink (spreg, get_frame_size (), all, e);
expand_epilogue_reg_restore (spreg, all, false);
+2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ From Jie Zhang <jie.zhang@analog.com>:
+ * gcc.target/bfin/saveall.c: New test.
+
2009-09-14 Andrew Stubbs <ams@codesourcery.com>
* gcc.target/sh/20080410-1.c: Remove obsolete -fira option.
--- /dev/null
+/* { dg-do run { target bfin*-*-* } } */
+/* { dg-options "-fomit-frame-pointer" } */
+
+void foo (void) __attribute__ ((saveall));
+void foo ()
+{
+ asm ("R0 = 0; RETS = R0;");
+}
+
+int main ()
+{
+ foo ();
+ return 0;
+}