aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2004-09-26 01:59:45 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2004-09-26 01:59:45 +0100
commit34096b92f493baa7e052bea535c03b90ab12a181 (patch)
treeb1a7af4f1a0dff04534881700349a413cb512496 /gcc/gcc.c
parente6f433fc08e74f62cbc0ae4d92b0f26cae3776f6 (diff)
downloadgcc-34096b92f493baa7e052bea535c03b90ab12a181.zip
gcc-34096b92f493baa7e052bea535c03b90ab12a181.tar.gz
gcc-34096b92f493baa7e052bea535c03b90ab12a181.tar.bz2
re PR c/11459 (-ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode)
PR c/11459 * gcc.c (cpp_options, cc1_options): Preserve relative order of -std and -ansi options. testsuite: * gcc.dg/pr11459-1.c: New test. From-SVN: r88121
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 e6f72bf..ca510f9 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -783,7 +783,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 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*}\
+"%(cpp_unique_options) %1 %{m*} %{std*&ansi} %{W*&pedantic*} %{w} %{f*}\
%{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef}\
%{save-temps:-fpch-preprocess}";
@@ -796,7 +796,7 @@ static const char *cc1_options =
"%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
%1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*}\
%{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}}\
- %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi}\
+ %{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi}\
%{v:-version} %{pg:-p} %{p} %{f*} %{undef}\
%{Qn:-fno-ident} %{--help:--help}\
%{--target-help:--target-help}\