aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1994-05-30 17:58:54 +0000
committerDoug Evans <dje@gnu.org>1994-05-30 17:58:54 +0000
commit256a105a3015c8687357ed2e685256cbb943fc9f (patch)
tree8c50bdd7a80695f815e99396c94764bfe51cbe36
parent44f51d4ad58ade74ccf9f72d488bb47b40d8e284 (diff)
downloadgcc-256a105a3015c8687357ed2e685256cbb943fc9f.zip
gcc-256a105a3015c8687357ed2e685256cbb943fc9f.tar.gz
gcc-256a105a3015c8687357ed2e685256cbb943fc9f.tar.bz2
(default_compilers): Pass -MG to cpp if present.
(option_map): New option --print-missing-file-dependencies/-MG. From-SVN: r7392
-rw-r--r--gcc/gcc.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 0a54200..519118f 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -503,7 +503,7 @@ static struct compiler default_compilers[] =
{"@c",
"cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
%{C:%{!E:%eGNU C does not support -C without using -E}}\
- %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d}\
+ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
-undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
%{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
%{!undef:%{!ansi:%p} %P} %{trigraphs} \
@@ -524,7 +524,7 @@ static struct compiler default_compilers[] =
{"-",
"%{E:cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
%{C:%{!E:%eGNU C does not support -C without using -E}}\
- %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d}\
+ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
-undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
%{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
%{!undef:%{!ansi:%p} %P} %{trigraphs}\
@@ -537,7 +537,7 @@ static struct compiler default_compilers[] =
{"@objective-c",
"cpp -lang-objc %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
%{C:%{!E:%eGNU C does not support -C without using -E}}\
- %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d}\
+ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
-undef -D__OBJC__ -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
%{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
%{!undef:%{!ansi:%p} %P} %{trigraphs}\
@@ -561,7 +561,7 @@ static struct compiler default_compilers[] =
"%{!E:%eCompilation of header file requested} \
cpp %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
%{C:%{!E:%eGNU C does not support -C without using -E}}\
- %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} \
+ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
-undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
%{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
%{!undef:%{!ansi:%p} %P} %{trigraphs}\
@@ -576,7 +576,7 @@ static struct compiler default_compilers[] =
{"@c++",
"cpp -lang-c++ %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
%{C:%{!E:%eGNU C++ does not support -C without using -E}}\
- %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} \
+ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
-undef -D__GNUC__=%v1 -D__GNUG__=%v1 -D__cplusplus -D__GNUC_MINOR__=%v2\
%{ansi:-trigraphs -$ -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
%c %{O*:%{!O0:-D__OPTIMIZE__}} %{traditional} %{ftraditional:-traditional}\
@@ -624,7 +624,7 @@ static struct compiler default_compilers[] =
{"@assembler-with-cpp",
"cpp -lang-asm %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
%{C:%{!E:%eGNU C does not support -C without using -E}}\
- %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{trigraphs} \
+ %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG} %{trigraphs}\
-undef -$ %{!undef:%p %P} -D__ASSEMBLER__ \
%c %{O*:%{!O0:-D__OPTIMIZE__}} %{traditional} %{ftraditional:-traditional}\
%{traditional-cpp:-traditional}\
@@ -765,6 +765,7 @@ struct option_map option_map[] =
{"--user-dependencies", "-MM", 0},
{"--write-dependencies", "-MD", 0},
{"--write-user-dependencies", "-MMD", 0},
+ {"--print-missing-file-dependencies", "-MG", 0},
{"--optimize", "-O", "oj"},
{"--no-line-commands", "-P", 0},
{"--assemble", "-S", 0},