aboutsummaryrefslogtreecommitdiff
path: root/gcc/read-rtl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r--gcc/read-rtl.c5
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);
}