From c7b94907e4fe89aed97cc5f9ffcbe56696d72923 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Thu, 12 Feb 2009 08:49:08 +0000 Subject: [PATCH] * gcc.c (ASM_DEBUG_SPEC): Check for -g0. From-SVN: r144122 --- gcc/ChangeLog | 4 ++++ gcc/gcc.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dab387bf17b..2ad904d0d65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-02-12 Michael Matz + + * gcc.c (ASM_DEBUG_SPEC): Check for -g0. + 2009-02-12 Jakub Jelinek * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die diff --git a/gcc/gcc.c b/gcc/gcc.c index 0a78282d87e..b8691f93320 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -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