aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2002-10-10 07:33:25 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-10-10 07:33:25 +0000
commit5febdf0d787fd08b4bf087fa4b74d17486c3a85a (patch)
tree8bdf11437c9e6f3c5dce7d6cb18700c82a393ecb
parentd05c919997fe51495c95fa426636a2903facadd1 (diff)
downloadgcc-5febdf0d787fd08b4bf087fa4b74d17486c3a85a.zip
gcc-5febdf0d787fd08b4bf087fa4b74d17486c3a85a.tar.gz
gcc-5febdf0d787fd08b4bf087fa4b74d17486c3a85a.tar.bz2
re PR preprocessor/8179 (`echo | gcc -E -dM -ansi -` not working in gcc-3.3)
PR preprocessor/8179 * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location as cc1_options. (default_compilers): Pass debug options when preprocessing stdin. From-SVN: r58010
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/gcc.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9a73ea4..767e607 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2002-10-10 Neil Booth <neil@daikokuya.co.uk>
+
+ PR preprocessor/8179
+ * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location
+ as cc1_options.
+ (default_compilers): Pass debug options when preprocessing
+ stdin.
+
2002-10-06 Richard Henderson <rth@redhat.com>
* toplev.c (rest_of_compilation): Revert opt/2960 change.
diff --git a/gcc/gcc.c b/gcc/gcc.c
index df69430..4f360c8 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -692,7 +692,7 @@ static const char *cpp_unique_options =
options used to set target flags. Those special target flags settings may
in turn cause preprocessor symbols to be defined specially. */
static const char *cpp_options =
-"%(cpp_unique_options) %1 %{std*} %{W*&pedantic*} %{w} %{m*} %{f*}\
+"%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*}\
%{O*} %{undef}";
/* This contains cpp options which are not passed when the preprocessor
@@ -847,7 +847,7 @@ static const struct compiler default_compilers[] =
%{!fsyntax-only:%(invoke_as)}}}}", 0},
{"-",
"%{!E:%e-E required when input is from standard input}\
- %(trad_capable_cpp) %(cpp_options)", 0},
+ %(trad_capable_cpp) %(cpp_options) %(cpp_debug_options)", 0},
{".h", "@c-header", 0},
{"@c-header",
"%{!E:%ecompilation of header file requested} \