Commit b2ace8a4 by Jakub Jelinek Committed by Jakub Jelinek

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
parent b3340046
2001-11-29 Jakub Jelinek <jakub@redhat.com>
* gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
macros for the supported debugging types.
2001-11-29 Craig Rodrigues <rodrigc@gcc.gnu.org> 2001-11-29 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR other/4932 PR other/4932
......
...@@ -590,19 +590,18 @@ proper position among the other output files. */ ...@@ -590,19 +590,18 @@ proper position among the other output files. */
/* Define ASM_DEBUG_SPEC to be a spec suitable for translating '-g' /* Define ASM_DEBUG_SPEC to be a spec suitable for translating '-g'
to the assembler. */ to the assembler. */
#ifndef ASM_DEBUG_SPEC #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) \
# 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 \ # define ASM_DEBUG_SPEC \
(PREFERRED_DEBUGGING_TYPE == DBX_DEBUG \ (PREFERRED_DEBUGGING_TYPE == DBX_DEBUG \
? "%{gdwarf-2*:--gdwarf2}%{!gdwarf-2*:%{g*:--gstabs}}" \ ? "%{gdwarf-2*:--gdwarf2}%{!gdwarf-2*:%{g*:--gstabs}}" \
: "%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}") : "%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}")
# else # else
# ifdef DBX_DEBUGGING_INFO # if defined(DBX_DEBUGGING_INFO) && defined(HAVE_AS_GSTABS_DEBUG_FLAG)
# define ASM_DEBUG_SPEC "%{g*:--gstabs}" # define ASM_DEBUG_SPEC "%{g*:--gstabs}"
# endif # endif
# ifdef DWARF2_DEBUGGING_INFO # if defined(DWARF2_DEBUGGING_INFO) && defined(HAVE_AS_GDWARF2_DEBUG_FLAG)
# define ASM_DEBUG_SPEC "%{g*:--gdwarf2}" # define ASM_DEBUG_SPEC "%{g*:--gdwarf2}"
# endif
# endif # endif
# endif # endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment