RTEMS ada/env.c minor patch

Ralf Corsepius ralf.corsepius@rtems.org
Wed Sep 19 12:56:00 GMT 2007


On Wed, 2007-09-19 at 07:34 -0500, Joel Sherrill wrote:
> Arnaud Charlet wrote:
> >> 2007-09-18  Joel Sherrill <joel.sherrill@oarcorp.com>
> >>
> >>    * env.c: Newlib does not include clearenv().  Use
> >>    built-in alternative.
> >>     
> >
> > You mention newlib but use __rtems__ as the discriminant. ISn't there
> > a newlib macro to use instead ?
> >   
> 
> Not that I know of.  Cygwin also uses newlib and it follows
> this pattern.
A newlib define alone is not significant enough, because both primary
newlib-OS-based OSes (Cygwin and RTEMS) apply customizations and have
additional stuff implemented outside of newlib.

Besides that, newlib is also being used by "bare-metal" targets w/ and
w/o libgloss.

Ralf




More information about the Gcc-patches mailing list