From: Joseph Myers Date: Mon, 18 Sep 2000 16:24:25 +0000 (+0100) Subject: * gcc.c (cpp_options): Add specs for __STDC_HOSTED__. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9231abf2edf23048f7f8e2e5028cc60f378e8de6;p=gcc.git * gcc.c (cpp_options): Add specs for __STDC_HOSTED__. From-SVN: r36489 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8145f5fffb7..86567644ba4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-09-18 Joseph S. Myers + + * gcc.c (cpp_options): Add specs for __STDC_HOSTED__. + 2000-09-18 Bernd Schmidt * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call. diff --git a/gcc/gcc.c b/gcc/gcc.c index bdd354b6669..95cea0b6fae 100644 --- 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\