* toplev.c (main): Complain about -gdwarfn.

From-SVN: r16742
This commit is contained in:
Jason Merrill 1997-11-26 19:13:02 +00:00 committed by Jason Merrill
parent 328d03d794
commit 33e5c8c3ae
2 changed files with 14 additions and 1 deletions

View File

@ -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.

View File

@ -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)