* gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
authorJoseph Myers <jsm28@cam.ac.uk>
Mon, 18 Sep 2000 16:24:25 +0000 (17:24 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 18 Sep 2000 16:24:25 +0000 (17:24 +0100)
From-SVN: r36489

gcc/ChangeLog
gcc/gcc.c

index 8145f5fffb7a0e3f567584dcafe4d8fe25e98bc5..86567644ba482b8ac30f7a2b626c31036ec88943 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
+
 2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
 
        * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
index bdd354b6669f83d102db431f660f0ae03495363a..95cea0b6fae4d5f681f9c75f3662bb37808e56b7 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -564,6 +564,8 @@ static const char *cpp_options =
  %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
  %{ffast-math:-D__FAST_MATH__}\
  %{fshort-wchar:-U__WCHAR_TYPE__ -D__WCHAR_TYPE__=short\\ unsigned\\ int}\
+ %{ffreestanding:-D__STDC_HOSTED__=0} %{fno-hosted:-D__STDC_HOSTED__=0}\
+ %{!ffreestanding:%{!fno-hosted:-D__STDC_HOSTED__=1}}\
  %{fshow-column} %{fno-show-column}\
  %{fleading-underscore} %{fno-leading-underscore}\
  %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{U*} %{D*} %{i*} %Z %i\