* toplev.c (main): Complain about -gdwarfn.
From-SVN: r16742
This commit is contained in:
parent
328d03d794
commit
33e5c8c3ae
|
@ -1,3 +1,7 @@
|
|||
Wed Nov 26 11:12:26 1997 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* toplev.c (main): Complain about -gdwarfn.
|
||||
|
||||
Tue Nov 25 23:37:27 1997 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* integrate.c (output_inline_function): Just unset DECL_INLINE.
|
||||
|
|
11
gcc/toplev.c
11
gcc/toplev.c
|
@ -4271,7 +4271,16 @@ main (argc, argv, envp)
|
|||
while (*q && (*q >= '0' && *q <= '9'))
|
||||
q++;
|
||||
if (*p)
|
||||
level = atoi (p);
|
||||
{
|
||||
level = atoi (p);
|
||||
if (len > 1 && !strncmp (str, "gdwarf", len))
|
||||
{
|
||||
error ("use -gdwarf -g%d for DWARF v1, level %d",
|
||||
level, level);
|
||||
if (level == 2)
|
||||
error ("use -gdwarf-2 for DWARF v2");
|
||||
}
|
||||
}
|
||||
else
|
||||
level = 2; /* default debugging info level */
|
||||
if (*q || level > 3)
|
||||
|
|
Loading…
Reference in New Issue