Commit 43c2d67a by Jeffrey A Law Committed by Jeff Law

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
parent 088e7160
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
......
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment