diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-19 19:48:08 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-19 19:48:08 +0000 |
commit | 3a4abd2f6c3c0606dff3ab56505c58abf79dd7e7 (patch) | |
tree | 4aead822fa7628b32e485062cd6f948ba09c32ec /gcc/asan.c | |
parent | ed27099755a9d34005b616231546f5ed017c61b9 (diff) | |
download | gcc-3a4abd2f6c3c0606dff3ab56505c58abf79dd7e7.zip gcc-3a4abd2f6c3c0606dff3ab56505c58abf79dd7e7.tar.gz gcc-3a4abd2f6c3c0606dff3ab56505c58abf79dd7e7.tar.bz2 |
asan_emit_stack_protection returns an insn
2014-08-19 David Malcolm <dmalcolm@redhat.com>
* asan.h (asan_emit_stack_protection): Strengthen return type from
rtx to rtx_insn *.
* asan.c (asan_emit_stack_protection): Likewise. Add local
"insns" to hold the return value.
From-SVN: r214189
Diffstat (limited to 'gcc/asan.c')
-rw-r--r-- | gcc/asan.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -974,11 +974,12 @@ asan_function_start (void) assigned to PBASE, when not doing use after return protection, or corresponding address based on __asan_stack_malloc* return value. */ -rtx +rtx_insn * asan_emit_stack_protection (rtx base, rtx pbase, unsigned int alignb, HOST_WIDE_INT *offsets, tree *decls, int length) { rtx shadow_base, shadow_mem, ret, mem, orig_base, lab; + rtx_insn *insns; char buf[30]; unsigned char shadow_bytes[4]; HOST_WIDE_INT base_offset = offsets[length - 1]; @@ -1248,9 +1249,9 @@ asan_emit_stack_protection (rtx base, rtx pbase, unsigned int alignb, if (lab) emit_label (lab); - ret = get_insns (); + insns = get_insns (); end_sequence (); - return ret; + return insns; } /* Return true if DECL, a global var, might be overridden and needs |