]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
read-rtl.c (validate_const_int): Once an invalid character is seen, quit the loop.
authorPo-Chun Chang <pchang9@cs.wisc.edu>
Thu, 18 Jul 2013 16:07:37 +0000 (10:07 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 18 Jul 2013 16:07:37 +0000 (10:07 -0600)
        * read-rtl.c (validate_const_int): Once an invalid character is
        seen, quit the loop.

        * gengtype.c (write_roots): Similarly once we find the
        "deletable" or "if_marked" option.

From-SVN: r201034

gcc/ChangeLog
gcc/gengtype.c
gcc/read-rtl.c

index 5d65d181d493b640ee8fd3ca00bdfd40fdefe56c..5e3fbbea600bba0d24ebeb0e3ea1412e85d627c3 100644 (file)
@@ -1,3 +1,11 @@
+2013-07-18  Chang  <pchang9@cs.wisc.edu>
+
+       * read-rtl.c (validate_const_int): Once an invalid character is
+       seen, quit the loop.
+
+       * gengtype.c (write_roots): Similarly once we find the "deletable"
+       or "if_marked" option.
+
 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
 
        * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
index eede79861f3427fd6da02874d4fbb9647c210c66..20854966facfbd975c93415a1767909212f4eb7d 100644 (file)
@@ -4682,7 +4682,10 @@ write_roots (pair_p variables, bool emit_pch)
       for (o = v->opt; o; o = o->next)
        if (strcmp (o->name, "deletable") == 0
            || strcmp (o->name, "if_marked") == 0)
-         skip_p = 1;
+         {
+           skip_p = 1;
+           break;
+         }
 
       if (skip_p)
        continue;
index 2b76c1b9db2d34091c3c30525b29b86864e4bc85..10adf472a08df8c42ae0e8eabaebd8c60620f251 100644 (file)
@@ -803,7 +803,10 @@ validate_const_int (const char *string)
     valid = 0;
   for (; *cp; cp++)
     if (! ISDIGIT (*cp))
-      valid = 0;
+      {
+        valid = 0;
+       break;
+      }
   if (!valid)
     fatal_with_file_and_line ("invalid decimal constant \"%s\"\n", string);
 }