diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-07-18 19:23:30 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-07-18 19:23:30 -0400 |
commit | 3d13060543568522aa44ad5a6f82bd8c91d6ae03 (patch) | |
tree | 432b3adec7e4f4049d8152b9669dd712a5f26b76 /gcc/gcc.c | |
parent | bc35f8c25684ba2c09eee78b9b45ecb6205fd43a (diff) | |
download | gcc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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\ |