cpplex.c (parse_string): Don't look for backslash before first char in `namebuf'.
authorGreg McGary <greg@mcgary.org>
Mon, 28 Aug 2000 05:51:27 +0000 (05:51 +0000)
committerGreg McGary <gkm@gcc.gnu.org>
Mon, 28 Aug 2000 05:51:27 +0000 (05:51 +0000)
* 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
gcc/cpplex.c
gcc/loop.c

index 14ade14d0c5234487693ebb101c2c9d1b6cc041a..c8925f2f7f465d323388b5cd8cedfc483e326a15 100644 (file)
@@ -1,3 +1,9 @@
+2000-08-27  Greg McGary  <greg@mcgary.org>
+
+       * 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  <jason@redhat.com>
 
        * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
index c585526678564f490798f07af75d7215158a0143..ba53e5cd6161c0d30503addedaeac62765656391 100644 (file)
@@ -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--;
index 4400cbf40e9a10cdddac8e6a8692cd67aeeea85d..04fe7ccbab0df1fd3d2ef36aea10e8de67d81954 100644 (file)
@@ -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)