diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2012-07-16 11:47:59 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2012-07-16 11:47:59 +0000 |
commit | b3c144a3a7bff42cd361d49c0b2d0f293d1627a1 (patch) | |
tree | 3d3d660e6823684fb0c90c75b887acc6ad223020 /gcc/stmt.c | |
parent | 468660d358fcc56eb30b208df4c2926ea9b5a00e (diff) | |
download | gcc-b3c144a3a7bff42cd361d49c0b2d0f293d1627a1.zip gcc-b3c144a3a7bff42cd361d49c0b2d0f293d1627a1.tar.gz gcc-b3c144a3a7bff42cd361d49c0b2d0f293d1627a1.tar.bz2 |
function.c (stack_protect_epilogue): Use expand_call to expand targetm.stack_protect_fail.
* function.c (stack_protect_epilogue): Use expand_call to expand
targetm.stack_protect_fail.
* stmt.c (expand_expr_stmt): Remove now-unused function.
* tree.h (expand_expr_stmt): Remove prototype.
* doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
hook must return a CALL_EXPR.
* doc/tm.texi: Regenerate.
From-SVN: r189522
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -1400,42 +1400,6 @@ resolve_operand_name_1 (char *p, tree outputs, tree inputs, tree labels) return p; } -/* Generate RTL to evaluate the expression EXP. */ - -void -expand_expr_stmt (tree exp) -{ - rtx value; - tree type; - - value = expand_expr (exp, const0_rtx, VOIDmode, EXPAND_NORMAL); - type = TREE_TYPE (exp); - - /* If all we do is reference a volatile value in memory, - copy it to a register to be sure it is actually touched. */ - if (value && MEM_P (value) && TREE_THIS_VOLATILE (exp)) - { - if (TYPE_MODE (type) == VOIDmode) - ; - else if (TYPE_MODE (type) != BLKmode) - copy_to_reg (value); - else - { - rtx lab = gen_label_rtx (); - - /* Compare the value with itself to reference it. */ - emit_cmp_and_jump_insns (value, value, EQ, - expand_normal (TYPE_SIZE (type)), - BLKmode, 0, lab); - emit_label (lab); - } - } - - /* Free any temporaries used to evaluate this expression. */ - free_temp_slots (); -} - - /* Generate RTL to return from the current function, with no value. (That is, we do not do anything about returning any value.) */ |