aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-05-24 16:21:14 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2007-05-24 14:21:14 +0000
commit9dbe7947ab75f391620dd69a1e4e500d6da11da3 (patch)
treefa0c13cb0e70d6ed10a21b63a57adb511b304704 /gcc/emit-rtl.c
parent7544f94a79e5e9c0683e8d40de919941c9bd5271 (diff)
downloadgcc-9dbe7947ab75f391620dd69a1e4e500d6da11da3.zip
gcc-9dbe7947ab75f391620dd69a1e4e500d6da11da3.tar.gz
gcc-9dbe7947ab75f391620dd69a1e4e500d6da11da3.tar.bz2
invoke.texi (-fdump-unnumbered): Update docs when line number notes are gone.
* doc/invoke.texi (-fdump-unnumbered): Update docs when line number notes are gone. * print-rtl.c (flag_dump_unnumbered): Update comments. (print_rtl): Fix my previous change. * emit-rtl.c (emit_note_before, emit_note_after): Clear out note specific data. From-SVN: r125026
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index afd3a40..17f8c2d 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -3881,6 +3881,7 @@ emit_note_before (enum insn_note subtype, rtx before)
INSN_UID (note) = cur_insn_uid++;
NOTE_KIND (note) = subtype;
BLOCK_FOR_INSN (note) = NULL;
+ memset (&NOTE_DATA (note), 0, sizeof (NOTE_DATA (note)));
add_insn_before (note, before);
return note;
@@ -4078,6 +4079,7 @@ emit_note_after (enum insn_note subtype, rtx after)
INSN_UID (note) = cur_insn_uid++;
NOTE_KIND (note) = subtype;
BLOCK_FOR_INSN (note) = NULL;
+ memset (&NOTE_DATA (note), 0, sizeof (NOTE_DATA (note)));
add_insn_after (note, after);
return note;
}