* gcc.c (ASM_DEBUG_SPEC): Check for -g0.

From-SVN: r144122
This commit is contained in:
Michael Matz 2009-02-12 08:49:08 +00:00 committed by Michael Matz
parent 61e9896759
commit c7b94907e4
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2009-02-12 Michael Matz <matz@suse.de>
* gcc.c (ASM_DEBUG_SPEC): Check for -g0.
2009-02-12 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die

View File

@ -677,14 +677,14 @@ proper position among the other output files. */
&& 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}}" ASM_MAP \
: "%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}" ASM_MAP)
? "%{!g0:%{gdwarf-2*:--gdwarf2}%{!gdwarf-2*:%{g*:--gstabs}}}" ASM_MAP \
: "%{!g0:%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}}" ASM_MAP)
# else
# if defined(DBX_DEBUGGING_INFO) && defined(HAVE_AS_GSTABS_DEBUG_FLAG)
# define ASM_DEBUG_SPEC "%{g*:--gstabs}" ASM_MAP
# define ASM_DEBUG_SPEC "%{g*:%{!g0:--gstabs}}" ASM_MAP
# endif
# if defined(DWARF2_DEBUGGING_INFO) && defined(HAVE_AS_GDWARF2_DEBUG_FLAG)
# define ASM_DEBUG_SPEC "%{g*:--gdwarf2}" ASM_MAP
# define ASM_DEBUG_SPEC "%{g*:%{!g0:--gdwarf2}}" ASM_MAP
# endif
# endif
#endif