diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2010-05-26 21:46:22 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2010-05-26 21:46:22 +0000 |
commit | d477d1fedaa481b2fe74a616dd759b1adc7b2f9d (patch) | |
tree | ad7259ce24747dd2921ce430e66c80cabba90848 /gcc/explow.c | |
parent | 6484716cf617de9bf0fbca8d1003fbc30898acc0 (diff) | |
download | gcc-d477d1fedaa481b2fe74a616dd759b1adc7b2f9d.zip gcc-d477d1fedaa481b2fe74a616dd759b1adc7b2f9d.tar.gz gcc-d477d1fedaa481b2fe74a616dd759b1adc7b2f9d.tar.bz2 |
explow.c (set_stack_check_libfunc): Adjust to accept name as a string instead of SYMBOL_REF rtx.
gcc/ChangeLog:
* 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.
From-SVN: r159900
Diffstat (limited to 'gcc/explow.c')
-rw-r--r-- | gcc/explow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/explow.c b/gcc/explow.c index 1f66f3e..40b3a6e 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -33,6 +33,7 @@ along with GCC; see the file COPYING3. If not see #include "function.h" #include "expr.h" #include "optabs.h" +#include "libfuncs.h" #include "hard-reg-set.h" #include "insn-config.h" #include "ggc.h" @@ -1346,9 +1347,10 @@ allocate_dynamic_stack_space (rtx size, rtx target, int known_align) 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); } /* Emit one stack probe at ADDRESS, an address within the stack. */ |