mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 16:35:30 +08:00
* decl2.c (lang_decode_option): Use read_integral_parameter.
From-SVN: r24986
This commit is contained in:
parent
132e01b1e6
commit
0daa67d1d6
@ -1,3 +1,7 @@
|
||||
Tue Feb 2 22:38:48 1999 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
|
||||
|
||||
* decl2.c (lang_decode_option): Use read_integral_parameter.
|
||||
|
||||
1999-02-01 Mark Mitchell <mark@markmitchell.com>
|
||||
|
||||
* pt.c (tsubst, case TYPENAME_TYPE): Check TYPE_BEING_DEFINED
|
||||
|
@ -601,35 +601,13 @@ lang_decode_option (argc, argv)
|
||||
}
|
||||
else if (!strncmp (p, "template-depth-", 15))
|
||||
{
|
||||
char *endp = p + 15;
|
||||
while (*endp)
|
||||
{
|
||||
if (*endp >= '0' && *endp <= '9')
|
||||
endp++;
|
||||
else
|
||||
{
|
||||
error ("Invalid option `%s'", p - 2);
|
||||
goto template_depth_lose;
|
||||
}
|
||||
}
|
||||
max_tinst_depth = atoi (p + 15);
|
||||
template_depth_lose: ;
|
||||
max_tinst_depth =
|
||||
read_integral_parameter (p + 15, p - 2, max_tinst_depth);
|
||||
}
|
||||
else if (!strncmp (p, "name-mangling-version-", 22))
|
||||
{
|
||||
char *endp = p + 22;
|
||||
while (*endp)
|
||||
{
|
||||
if (*endp >= '0' && *endp <= '9')
|
||||
endp++;
|
||||
else
|
||||
{
|
||||
error ("Invalid option `%s'", p - 2);
|
||||
goto mangling_version_lose;
|
||||
}
|
||||
}
|
||||
name_mangling_version = atoi (p + 22);
|
||||
mangling_version_lose: ;
|
||||
name_mangling_version =
|
||||
read_integral_parameter (p + 22, p - 2, name_mangling_version);
|
||||
}
|
||||
else for (j = 0;
|
||||
!found && j < sizeof (lang_f_options) / sizeof (lang_f_options[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user