This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to fix -gdwarf


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]