This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to support C99 __STDC_HOSTED__


  In message <Pine.LNX.4.21.0009170230410.1811-100000@kern.srcf.societies.cam.a
c.uk>you write:
  > 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  <jsm28@cam.ac.uk>
  > 
  > 	* gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
Approved.  Please install.


Thanks,
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]