RTEMS patch sweep: *types.h

Ralf Corsepius ralf.corsepius@rtems.org
Fri Mar 4 05:53:00 GMT 2005


On Fri, 2005-02-25 at 17:35 -0500, Jeff Johnston wrote:
> Ralf Corsepius wrote:
> > On Thu, 2005-02-24 at 13:52 -0500, Jeff Johnston wrote:
> > 
> >>Patch checked in.
> > 
> > 
> > Thanks.
> > 
> > What's your opinion on generalizing this patch?
> > 
> > I.e. to move libc/sys/rtems/machine/_types.h to libc/include/machine
> > and remove the first "#if !defined (__rtems__)"'ed block from
> > lib/include/sys/types.h in favor of the corresponding "#else /*
> > __rtems__ */" block.
> > 
> > I am not sure about the impact this would have on Cygwin and on Linux-
> > newlib, but as far as I can tell, this would fix fixed-size types for
> > some of "bare" embedded targets, which currently are broken (h8, avr,
> > c4x)
> > 
> 
> I've been kind of busy today.  I'll do a build with linux when I get a chance.
FWIW: Neither vanilla newlib-1.13.0, newlib-cvs nor my local version of
newlib (with further patches applied) builds for me for linux on FC3:

# ../newlib-1.13.0/configure --with-newlib
# make
...
gcc -I/users/rtems/src/rpms/BUILD/build/i686-pc-linux-gnu/newlib/targ-include -I/users/rtems/src/rpms/BUILD/newlib-1.13.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.13.0\" -I. -I../../../../../../../newlib-1.13.0/newlib/libc/sys/linux/argp -I../../../../../../../newlib-1.13.0/newlib/libc/sys/linux/argp/../include -O2 -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -O2 -g -O2 -O2 -g -O2 -c ../../../../../../../newlib-1.13.0/newlib/libc/sys/linux/argp/argp-fs-xinl.c  -fPIC -DPIC -o .libs/argp-fs-xinl.o
In file included from /users/rtems/src/rpms/BUILD/build/i686-pc-linux-gnu/newlib/targ-include/sys/types.h:53,
                 from /users/rtems/src/rpms/BUILD/newlib-1.13.0/newlib/libc/include/stdio.h:46,
                 from ../../../../../../../newlib-1.13.0/newlib/libc/sys/linux/argp/argp-fmtstream.h:33,
                 from ../../../../../../../newlib-1.13.0/newlib/libc/sys/linux/argp/argp-fs-xinl.c:28:
/usr/include/features.h:265:41: operator '&&' has no right operand
make[6]: *** [argp-fs-xinl.lo] Error 1

Ralf




More information about the Newlib mailing list