This is the mail archive of the
mailing list for the GCC project.
Re: Patch to support C99 __STDC_HOSTED__
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: Patch to support C99 __STDC_HOSTED__
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 18 Sep 2000 09:52:57 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <Pine.LNX.firstname.lastname@example.org
> This patch adds support for C99's __STDC_HOSTED__. It isn't perfect -
> suitable combinations of the -ffreestanding, -fhosted,
> -fno-freestanding and -fno-hosted will get the wrong definition
> (e.g. `-ffreestanding -fhosted') - but it works for any single one of
> these options or none of them. This is no worse than `-funsigned-char
> -fsigned-char' which (at least on systems with char signed) will lead
> to a signed char but __CHAR_UNSIGNED__ defined as well. Perhaps a
> specs expert can explain how to fix such problems in general - i.e.,
> how to ensure that what the specs do agrees with the compiler's
> internal logic setting the variables controlling its behaviour,
> including where headers that override each other are used multiple
> times and interleaved.
> Bootstrapped with no regressions on i686-pc-linux-gnu. OK to commit?
> 2000-09-16 Joseph S. Myers <email@example.com>
> * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
Approved. Please install.