* explow.c (set_stack_check_libfunc): Adjust to accept name as a
string instead of SYMBOL_REF rtx.
* rtl.h (set_stack_check_libfunc): Move prototype from here...
* libfuncs.h: ...to here. Adjust for explow.c change.
ada/ChangeLog:
* gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
(gigi): Adjust call to set_stack_check_libfunc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159900
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
+
+ * explow.c (set_stack_check_libfunc): Adjust to accept name as a
+ string instead of SYMBOL_REF rtx.
+ * rtl.h (set_stack_check_libfunc): Move prototype from here...
+ * libfuncs.h: ...to here. Adjust for explow.c change.
+
2010-05-26 Joseph Myers <joseph@codesourcery.com>
* pretty-print.c: Don't include ggc.h.
+2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
+
+ * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
+ (gigi): Adjust call to set_stack_check_libfunc.
+
2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
* gcc-interface/utils.c: Do not include rtl.h.
#include "tm.h"
#include "tree.h"
#include "flags.h"
-#include "rtl.h" /* FIXME: For set_stack_check_libfunc and
- gen_rtx_SYMBOL_REF -- here is a front end
- still trying to generate RTL! */
#include "ggc.h"
#include "output.h"
+#include "libfuncs.h" /* For set_stack_check_libfunc. */
#include "tree-iterator.h"
#include "gimple.h"
/* Enable GNAT stack checking method if needed */
if (!Stack_Check_Probes_On_Target)
- set_stack_check_libfunc (gen_rtx_SYMBOL_REF (Pmode, "_gnat_stack_check"));
+ set_stack_check_libfunc ("_gnat_stack_check");
/* Retrieve alignment settings. */
double_float_alignment = get_target_double_float_alignment ();
#include "function.h"
#include "expr.h"
#include "optabs.h"
+#include "libfuncs.h"
#include "hard-reg-set.h"
#include "insn-config.h"
#include "ggc.h"
static GTY(()) rtx stack_check_libfunc;
void
-set_stack_check_libfunc (rtx libfunc)
+set_stack_check_libfunc (const char *libfunc_name)
{
- stack_check_libfunc = libfunc;
+ gcc_assert (stack_check_libfunc == NULL_RTX);
+ stack_check_libfunc = gen_rtx_SYMBOL_REF (Pmode, libfunc_name);
}
\f
/* Emit one stack probe at ADDRESS, an address within the stack. */
#define gcov_flush_libfunc (libfunc_table[LTI_gcov_flush])
+/* In explow.c */
+extern void set_stack_check_libfunc (const char *);
+
#endif /* GCC_LIBFUNCS_H */
extern int ceil_log2 (unsigned HOST_WIDE_INT);
/* In explow.c */
-extern void set_stack_check_libfunc (rtx);
extern HOST_WIDE_INT trunc_int_for_mode (HOST_WIDE_INT, enum machine_mode);
extern rtx plus_constant (rtx, HOST_WIDE_INT);