Patch: PR driver/30246
Tom Tromey
tromey@redhat.com
Mon Jan 22 02:41:00 GMT 2007
This patch fixes PR driver/30246.
The bug is that:
gcc -ggdb3 -E foo.c > foo.i
gcc -ggdb3 -c foo.i
does not put macro definitions into the .o, while:
gcc -ggdb3 -c foo.c
does.
Andrew Pinski suggested the fix, namely to make sure that -dD is
passed when -ggdb3 is seen.
Bootstrapped and tested on x86 FC 6.
Ok?
Tom
:ADDPATCH driver:
2007-01-20 Tom Tromey <tromey@redhat.com>
PR driver/30246
* gcc.c (cpp_unique_options): -ggdb3 implies -dD.
Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c (revision 120997)
+++ gcc/gcc.c (working copy)
@@ -1,7 +1,7 @@
/* Compiler driver program that can handle many languages.
Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
- Inc.
+ 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+ 2007 Free Software Foundation, Inc.
This file is part of GCC.
@@ -776,7 +784,7 @@
%{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:-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*}}";
More information about the Gcc-patches
mailing list