From e71fae15a34bd64c266236f27a554468369571f1 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sun, 1 May 2005 11:33:37 +0100 Subject: [PATCH] re PR c/11459 (-ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode) PR c/11459 PR c/18502 * gcc.c (cpp_unique_options): Remove %{trigraphs}. (cpp_options, cc1_options): Change %{std*} %{ansi} to %{std*&ansi&trigraphs}. testsuite: * gcc.dg/pr11459-1.c, gcc.dg/pr18502-1.c: New tests. From-SVN: r99060 --- gcc/ChangeLog | 8 ++++++++ gcc/gcc.c | 9 +++++---- gcc/testsuite/ChangeLog | 6 ++++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e84420387f86..e2d23c876b39 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2005-05-01 Joseph S. Myers + + PR c/11459 + PR c/18502 + * gcc.c (cpp_unique_options): Remove %{trigraphs}. + (cpp_options, cc1_options): Change %{std*} %{ansi} to + %{std*&ansi&trigraphs}. + 2005-04-29 Alan Modra PR target/21098 diff --git a/gcc/gcc.c b/gcc/gcc.c index 730ac9a8a597..5d77e23e3340 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -746,7 +746,7 @@ static const char *cpp_unique_options = %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}}\ %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*}\ %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}}\ - %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i\ + %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i\ %{E|M|MM:%W{o*}}"; /* This contains cpp options which are common with cc1_options and are passed @@ -755,8 +755,9 @@ 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*}\ - %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef}"; +"%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w}\ + %{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*}\ + %{undef}"; /* This contains cpp options which are not passed when the preprocessor output will be used by another program. */ @@ -767,7 +768,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&trigraphs}\ %{v:-version} %{pg:-p} %{p} %{f*} %{undef}\ %{Qn:-fno-ident} %{--help:--help}\ %{--target-help:--target-help}\ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6a0ee4dec07c..f4d7eb4a72c5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-05-01 Joseph S. Myers + + PR c/11459 + PR c/18502 + * gcc.dg/pr11459-1.c, gcc.dg/pr18502-1.c: New tests. + 2005-04-25 Roger Sayle PR c++/20995 -- 2.47.2