diff options
author | Po-Chun Chang <pchang9@cs.wisc.edu> | 2013-07-18 10:07:37 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2013-07-18 10:07:37 -0600 |
commit | bcb97fbdad14cd8f5dda7ebe3617a14ddc56bb08 (patch) | |
tree | b8bdedc62caf6c90b896158130cf8d85efe139a7 /gcc/read-rtl.c | |
parent | 37cd74abd752d7580bedfe4cca9594fb5fa66beb (diff) | |
download | gcc-bcb97fbdad14cd8f5dda7ebe3617a14ddc56bb08.zip gcc-bcb97fbdad14cd8f5dda7ebe3617a14ddc56bb08.tar.gz gcc-bcb97fbdad14cd8f5dda7ebe3617a14ddc56bb08.tar.bz2 |
read-rtl.c (validate_const_int): Once an invalid character is seen, quit the loop.
* 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
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r-- | gcc/read-rtl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index 2b76c1b..10adf47 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -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); } |