diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-11-29 23:39:10 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-11-29 23:39:10 +0100 |
commit | b2ace8a47bdaeab851edd3239691b4bd9a6e94ce (patch) | |
tree | 928aa1bbb95404efdfbd8157f77ef460a1f6d459 /gcc/gcc.c | |
parent | b3340046164ef39d1a2d30e49314511f96aa8d23 (diff) | |
download | gcc-b2ace8a47bdaeab851edd3239691b4bd9a6e94ce.zip gcc-b2ace8a47bdaeab851edd3239691b4bd9a6e94ce.tar.gz gcc-b2ace8a47bdaeab851edd3239691b4bd9a6e94ce.tar.bz2 |
gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG macros for the supported debugging types.
* gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
macros for the supported debugging types.
From-SVN: r47460
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -590,19 +590,18 @@ proper position among the other output files. */ /* Define ASM_DEBUG_SPEC to be a spec suitable for translating '-g' to the assembler. */ #ifndef ASM_DEBUG_SPEC -# if defined(HAVE_AS_GDWARF2_DEBUG_FLAG) && defined(HAVE_AS_GSTABS_DEBUG_FLAG) -# if defined(DBX_DEBUGGING_INFO) && defined(DWARF2_DEBUGGING_INFO) -# define ASM_DEBUG_SPEC \ +# if defined(DBX_DEBUGGING_INFO) && defined(DWARF2_DEBUGGING_INFO) \ + && defined(HAVE_AS_GDWARF2_DEBUG_FLAG) && defined(HAVE_AS_GSTABS_DEBUG_FLAG) +# define ASM_DEBUG_SPEC \ (PREFERRED_DEBUGGING_TYPE == DBX_DEBUG \ ? "%{gdwarf-2*:--gdwarf2}%{!gdwarf-2*:%{g*:--gstabs}}" \ : "%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}") -# else -# ifdef DBX_DEBUGGING_INFO -# define ASM_DEBUG_SPEC "%{g*:--gstabs}" -# endif -# ifdef DWARF2_DEBUGGING_INFO -# define ASM_DEBUG_SPEC "%{g*:--gdwarf2}" -# endif +# else +# if defined(DBX_DEBUGGING_INFO) && defined(HAVE_AS_GSTABS_DEBUG_FLAG) +# define ASM_DEBUG_SPEC "%{g*:--gstabs}" +# endif +# if defined(DWARF2_DEBUGGING_INFO) && defined(HAVE_AS_GDWARF2_DEBUG_FLAG) +# define ASM_DEBUG_SPEC "%{g*:--gdwarf2}" # endif # endif #endif |