]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/11459 (-ansi -std=c99 -pedantic warns about C90's non long-long support when...
authorJoseph Myers <joseph@codesourcery.com>
Sun, 1 May 2005 10:33:37 +0000 (11:33 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 1 May 2005 10:33:37 +0000 (11:33 +0100)
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
gcc/gcc.c
gcc/testsuite/ChangeLog

index e84420387f86d349c33afd542ba666e3e66ca3a2..e2d23c876b396e3ef72f1f7f013ba6a58b2f80c0 100644 (file)
@@ -1,3 +1,11 @@
+2005-05-01  Joseph S. Myers  <joseph@codesourcery.com>
+
+       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  <amodra@bigpond.net.au>
 
        PR target/21098
index 730ac9a8a597ca1d780bddf8e161ce4f93df2bf6..5d77e23e3340e12e78f10200812c2d2579680446 100644 (file)
--- 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}\
index 6a0ee4dec07cbeed58efc8741eb5a0832f6d59f9..f4d7eb4a72c52e956aced277ecbcb5c12afa5b79 100644 (file)
@@ -1,3 +1,9 @@
+2005-05-01  Joseph S. Myers  <joseph@codesourcery.com>
+
+       PR c/11459
+       PR c/18502
+       * gcc.dg/pr11459-1.c, gcc.dg/pr18502-1.c: New tests.
+
 2005-04-25  Roger Sayle  <roger@eyesopen.com>
 
        PR c++/20995