summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-12 08:49:08 +0000
committermatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-12 08:49:08 +0000
commit674ca8bff3b71e2e5aeeebcfb6b7f3dc87b3bc3c (patch)
treedd4acd2649afd8c152a2dcc87124bf19d320f62f /gcc
parente1b3cc4976152a773a0d6c236c6bd405a6c3b63d (diff)
downloadgcc-674ca8bff3b71e2e5aeeebcfb6b7f3dc87b3bc3c.tar.gz
* gcc.c (ASM_DEBUG_SPEC): Check for -g0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144122 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gcc.c8
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 <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
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