mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 17:11:01 +08:00
toplev.c (main): A debug option without a level defaults to level 2.
* toplev.c (main): A debug option without a level defaults to level 2. From-SVN: r25884
This commit is contained in:
parent
088e716060
commit
43c2d67a1a
@ -1,3 +1,8 @@
|
||||
Sun Mar 21 17:33:48 1999 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* toplev.c (main): A debug option without a level defaults to
|
||||
level 2.
|
||||
|
||||
Sun Mar 21 12:13:01 1999 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* flow.c (can_delete_label_p): Do not allow user specified
|
||||
|
16
gcc/toplev.c
16
gcc/toplev.c
@ -5128,8 +5128,20 @@ main (argc, argv)
|
||||
if (*p && (*p < '0' || *p > '9'))
|
||||
continue;
|
||||
|
||||
level = read_integral_parameter (p, 0,
|
||||
max_debug_level + 1);
|
||||
/* A debug flag without a level defaults to level 2.
|
||||
Note we do not want to call read_integral_parameter
|
||||
for that case since it will call atoi which
|
||||
will return zero.
|
||||
|
||||
??? We may want to generalize the interface to
|
||||
read_integral_parameter to better handle this case
|
||||
if this case shows up often. */
|
||||
if (*p)
|
||||
level = read_integral_parameter (p, 0,
|
||||
max_debug_level + 1);
|
||||
else
|
||||
level = 2;
|
||||
|
||||
if (da_len > 1 && !strncmp (str, "gdwarf", da_len))
|
||||
{
|
||||
error ("use -gdwarf -g%d for DWARF v1, level %d",
|
||||
|
Loading…
x
Reference in New Issue
Block a user