aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2006-11-10 10:30:33 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2006-11-10 09:30:33 +0000
commit9ff5780962762f262b82544d98f77e7e3a7b3fab (patch)
treecd67c6f64f70118778f83ccabe8022684c7395c0 /gcc
parent0e9dac9e169233b2cd6dcfac54c26b2a77db4808 (diff)
downloadgcc-9ff5780962762f262b82544d98f77e7e3a7b3fab.zip
gcc-9ff5780962762f262b82544d98f77e7e3a7b3fab.tar.gz
gcc-9ff5780962762f262b82544d98f77e7e3a7b3fab.tar.bz2
final.c (final): Walk from first instruction.
* final.c (final): Walk from first instruction. * cfglayout.c (insn_locators_initialize): Remove line number notes. From-SVN: r118650
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cfglayout.c1
-rw-r--r--gcc/final.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6ca8f7a..ce55f03 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-10 Jan Hubicka <jh@suse.cz>
+
+ * final.c (final): Walk from first instruction.
+ * cfglayout.c (insn_locators_initialize): Remove line number notes.
+
2006-11-10 Uros Bizjak <ubizjak@gmail.com>
PR target/29777
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c
index cddb0da..51a0a3b 100644
--- a/gcc/cfglayout.c
+++ b/gcc/cfglayout.c
@@ -277,6 +277,7 @@ insn_locators_initialize (void)
NOTE_EXPANDED_LOCATION (xloc, insn);
line_number = xloc.line;
file_name = xloc.file;
+ delete_insn (insn);
}
}
else
diff --git a/gcc/final.c b/gcc/final.c
index 9e35d53..9fd59d4 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1594,7 +1594,7 @@ final (rtx first, FILE *file, int optimize)
CC_STATUS_INIT;
/* Output the insns. */
- for (insn = NEXT_INSN (first); insn;)
+ for (insn = first; insn;)
{
#ifdef HAVE_ATTR_length
if ((unsigned) INSN_UID (insn) >= INSN_ADDRESSES_SIZE ())