aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/i386.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-09-03 16:46:39 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-09-03 16:46:39 +0200
commit87df9ea5a056a88a4fd1f28236155b30bac08ced (patch)
tree34695d8a7b5cea828396ff58d0246f0b55ae0485 /gcc/config/i386/i386.c
parent15a54c10cb41f5a84583f7359c347706a6b90c5d (diff)
downloadgcc-87df9ea5a056a88a4fd1f28236155b30bac08ced.zip
gcc-87df9ea5a056a88a4fd1f28236155b30bac08ced.tar.gz
gcc-87df9ea5a056a88a4fd1f28236155b30bac08ced.tar.bz2
re PR middle-end/45484 (Invalid memory access in gcc.c-torture/execute/builtins/sprintf-chk.c)
PR middle-end/45484 * dwarf2out.c (flush_queued_reg_saves): Rename to... (dwarf2out_flush_queued_reg_saves): ... this. No longer static. (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers. * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype. * config/i386/i386.c (output_set_got): Call it. From-SVN: r163823
Diffstat (limited to 'gcc/config/i386/i386.c')
-rw-r--r--gcc/config/i386/i386.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 0ff2993..3a8484a 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -8119,13 +8119,7 @@ output_set_got (rtx dest, rtx label ATTRIBUTE_UNUSED)
/* Ensure all queued register saves are flushed before the
call. */
if (dwarf2out_do_frame ())
- {
- rtx insn;
- start_sequence ();
- insn = emit_barrier ();
- end_sequence ();
- dwarf2out_frame_debug (insn, false);
- }
+ dwarf2out_flush_queued_reg_saves ();
#endif
xops[2] = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (name));
xops[2] = gen_rtx_MEM (QImode, xops[2]);