asm_debug_spec losage

Richard Henderson rth@redhat.com
Fri Nov 16 11:15:00 GMT 2001


(1) You can't test PREFERRED_DEBUGGING_FORMAT from the 
    preprocessor because it's an enumeration.

(2) gcc.c doesn't include flags.h.

Got any better ideas than this?


r~


Index: gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.265
diff -c -p -d -r1.265 gcc.c
*** gcc.c	2001/11/20 10:16:09	1.265
--- gcc.c	2001/11/27 00:18:37
*************** proper position among the other output f
*** 588,593 ****
--- 588,601 ----
  
  /* Define ASM_DEBUG_SPEC to be a spec suitable for translating '-g'
     to the assembler.  */
+ 
+ #define NO_DEBUG	0
+ #define DBX_DEBUG	1
+ #define SDB_DEBUG	2
+ #define DWARF_DEBUG	3
+ #define DWARF2_DEBUG	4
+ #define XCOFF_DEBUG	5
+ 
  #ifndef ASM_DEBUG_SPEC
  # if defined(HAVE_AS_GDWARF2_DEBUG_FLAG) && defined(HAVE_AS_GSTABS_DEBUG_FLAG)
  #  if PREFERRED_DEBUGGING_FORMAT == DBX_DEBUG



More information about the Gcc-patches mailing list