aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-07-18 19:23:30 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-07-18 19:23:30 -0400
commit3d13060543568522aa44ad5a6f82bd8c91d6ae03 (patch)
tree432b3adec7e4f4049d8152b9669dd712a5f26b76 /gcc/gcc.c
parentbc35f8c25684ba2c09eee78b9b45ecb6205fd43a (diff)
downloadgcc-3d13060543568522aa44ad5a6f82bd8c91d6ae03.zip
gcc-3d13060543568522aa44ad5a6f82bd8c91d6ae03.tar.gz
gcc-3d13060543568522aa44ad5a6f82bd8c91d6ae03.tar.bz2
(default_compilers, cpp): Specify -lang-c89 if -ansi is given.
This turns off C++ comment recognition. From-SVN: r10149
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index fef6dee..f8fdd60 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -599,7 +599,7 @@ static struct compiler default_compilers[] =
{
{".c", "@c"},
{"@c",
- "cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
+ "cpp -lang-c%{ansi:89} %{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} %{MG}\
-undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
@@ -620,7 +620,7 @@ static struct compiler default_compilers[] =
%{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
%{!pipe:%g.s} %A\n }}}}"},
{"-",
- "%{E:cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
+ "%{E:cpp -lang-c%{ansi:89} %{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} %{MG}\
-undef -D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\