]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR preprocessor/7862 (Interrupting gcc -MD removes .d file but not .o)
authorNeil Booth <neil@daikokuya.co.uk>
Mon, 14 Oct 2002 21:55:26 +0000 (21:55 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 14 Oct 2002 21:55:26 +0000 (17:55 -0400)
2002-10-14  Neil Booth  <neil@daikokuya.co.uk>

        PR preprocessor/7862
        PR preprocessor/8190
        * gcc.c (cpp_unique_options): Don't delete .d files.
        Remove stray whitespace.

From-SVN: r58140

gcc/ChangeLog
gcc/gcc.c

index 7f6c7fb2a1c937204df82cef532180e70958b8a3..bc48fcf5d882c1581cb1840a3e176fc52fa24a97 100644 (file)
@@ -1,3 +1,10 @@
+2002-10-14  Neil Booth  <neil@daikokuya.co.uk>
+
+       PR preprocessor/7862
+       PR preprocessor/8190
+       * gcc.c (cpp_unique_options): Don't delete .d files.
+       Remove stray whitespace.
+
 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
 
        * config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
index cf86f9bc2f22abacd966f923773c1d282ffdd5f6..8a5bfeeb67cb5ab70a6b19dd1465d31eed1314a0 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -674,12 +674,15 @@ static const char *link_libgcc_spec = LINK_LIBGCC_SPEC;
 static const char *trad_capable_cpp =
 "%{traditional|ftraditional|traditional-cpp:trad}cpp0";
 
+/* We don't wrap .d files in %W{} since a missing .d file, and
+   therefore no dependency entry, confuses make into thinking a .o
+   file that happens to exist is up-to-date.  */
 static const char *cpp_unique_options =
 "%{C:%{!E:%eGNU C does not support -C without using -E}}\
  %{nostdinc*} %{C} %{v} %{I*} %{P} %{$} %I\
- %{MD:-MD %W{!o: %b.d}%W{o*:%.d%*}}\
- %{MMD:-MMD %W{!o: %b.d}%W{o*:%.d%*}}\
- %{M} %{MM} %W{MF*} %{MG} %{MP} %{MQ*} %{MT*}\
+ %{MD:-MD %{!o:%b.d}%{o*:%.d%*}}\
+ %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}}\
+ %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*}\
  %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}}\
  %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3 -D__GXX_ABI_VERSION=102}\
  %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\