This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to fix -gdwarf
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Patch to fix -gdwarf
- From: Jason Merrill <jason at cygnus dot com>
- Date: Fri, 9 Jul 1999 22:45:26 -0700
This should also be considered for 2.95; currently, we don't allow people
to specify DWARF v1 debugging on the command line.
Fri Jul 9 22:39:44 1999 Jason Merrill <jason@yorick.cygnus.com>
* toplev.c (main): Don't complain about saying -gdwarf.
Index: toplev.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/toplev.c,v
retrieving revision 1.186
diff -c -p -r1.186 toplev.c
*** toplev.c 1999/05/20 10:37:00 1.186
--- toplev.c 1999/07/10 05:41:55
*************** main (argc, argv)
*** 5247,5253 ****
else
level = 2;
! if (da_len > 1 && !strncmp (str, "gdwarf", da_len))
{
error ("use -gdwarf -g%d for DWARF v1, level %d",
level, level);
--- 5251,5257 ----
else
level = 2;
! if (da_len > 1 && *p && !strncmp (str, "gdwarf", da_len))
{
error ("use -gdwarf -g%d for DWARF v1, level %d",
level, level);