From a0bff95ffc4fa6262b6125172e2c5bc0760b46a9 Mon Sep 17 00:00:00 2001 From: Greg McGary Date: Mon, 28 Aug 2000 05:51:27 +0000 Subject: [PATCH] cpplex.c (parse_string): Don't look for backslash before first char in `namebuf'. * cpplex.c (parse_string): Don't look for backslash before first char in `namebuf'. * loop.c (strength_reduce): Skip NOTEs. From-SVN: r36015 --- gcc/ChangeLog | 6 ++++++ gcc/cpplex.c | 2 +- gcc/loop.c | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 14ade14d0c5..c8925f2f7f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-08-27 Greg McGary + + * cpplex.c (parse_string): Don't look for backslash + before first char in `namebuf'. + * loop.c (strength_reduce): Skip NOTEs. + 2000-08-27 Jason Merrill * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear diff --git a/gcc/cpplex.c b/gcc/cpplex.c index c5855266785..ba53e5cd616 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1106,7 +1106,7 @@ parse_string (pfile, list, token, terminator) if (is_vspace (c)) { /* Drop a backslash newline, and continue. */ - if (namebuf[-1] == '\\') + if (namebuf > list->namebuf && namebuf[-1] == '\\') { handle_newline (cur, buffer->rlimit, c); namebuf--; diff --git a/gcc/loop.c b/gcc/loop.c index 4400cbf40e9..04fe7ccbab0 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -4188,8 +4188,9 @@ strength_reduce (loop, insn_count, flags) /* Some bivs are incremented with a multi-insn sequence. The first insn contains the add. */ next_loc_insn = next->insn; - while (! loc_mentioned_in_p (next->location, - PATTERN (next_loc_insn))) + while (NOTE_P (next_loc_insn) + || ! loc_mentioned_in_p (next->location, + PATTERN (next_loc_insn))) next_loc_insn = PREV_INSN (next_loc_insn); if (next_loc_insn == v->insn) -- 2.30.2