mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
37cd74abd7
commit
bcb97fbdad
|
|
@ -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>
|
2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
|
||||||
|
|
||||||
* config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
|
* config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
|
||||||
|
|
|
||||||
|
|
@ -4682,7 +4682,10 @@ write_roots (pair_p variables, bool emit_pch)
|
||||||
for (o = v->opt; o; o = o->next)
|
for (o = v->opt; o; o = o->next)
|
||||||
if (strcmp (o->name, "deletable") == 0
|
if (strcmp (o->name, "deletable") == 0
|
||||||
|| strcmp (o->name, "if_marked") == 0)
|
|| strcmp (o->name, "if_marked") == 0)
|
||||||
skip_p = 1;
|
{
|
||||||
|
skip_p = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (skip_p)
|
if (skip_p)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -803,7 +803,10 @@ validate_const_int (const char *string)
|
||||||
valid = 0;
|
valid = 0;
|
||||||
for (; *cp; cp++)
|
for (; *cp; cp++)
|
||||||
if (! ISDIGIT (*cp))
|
if (! ISDIGIT (*cp))
|
||||||
valid = 0;
|
{
|
||||||
|
valid = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (!valid)
|
if (!valid)
|
||||||
fatal_with_file_and_line ("invalid decimal constant \"%s\"\n", string);
|
fatal_with_file_and_line ("invalid decimal constant \"%s\"\n", string);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue