From a8c200f7ab2cf2bfe29e4e09e35e9970b5f18f1b Mon Sep 17 00:00:00 2001
From: tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Sat, 3 Feb 2007 19:35:06 +0000
Subject: [PATCH] 	PR driver/30246 	* gcc.c (cpp_unique_options):
 Any of -ggdb3, -gstabs3, 	-gcoff3, -gxcoff3, -gvms3 implies -dD.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121549 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog | 6 ++++++
 gcc/gcc.c     | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ad45886348ee..e5287e272723 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2007-02-03  Tom Tromey  <tromey@redhat.com>
+
+	PR driver/30246
+	* gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
+	-gcoff3, -gxcoff3, -gvms3 implies -dD.
+
 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
 
 	* c-decl.c, config/avr/avr.c, config/avr/avr.h,
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 8830a498ed18..a7bb71e87603 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -776,7 +776,8 @@ static const char *cpp_unique_options =
  %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}}\
  %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*}\
  %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}}\
- %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i\
+ %{remap} %{g3|ggdb3|gstabs3|gcoff3|gxcoff3|gvms3:-dD}\
+ %{H} %C %{D*&U*&A*} %{i*} %Z %i\
  %{fmudflap:-D_MUDFLAP -include mf-runtime.h}\
  %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h}\
  %{E|M|MM:%W{o*}}";
-- 
GitLab