This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: sparc-rtems defines unix and ada/sysdep.c
- From: "Joel Sherrill <joel at OARcorp dot com>" <joel dot sherrill at OARcorp dot com>
- To: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- Cc: GCC List <gcc at gcc dot gnu dot org>
- Date: Wed, 10 Mar 2004 08:14:33 -0600
- Subject: Re: sparc-rtems defines unix and ada/sysdep.c
- Organization: OAR Corporation
- References: <404F1522.8030304@OARcorp.com> <1078925101.17313.2856.camel@mccallum.corsepiu.faw.uni-ulm.de>
- Reply-to: joel dot sherrill at OARcorp dot com
Ralf Corsepius wrote:
On Wed, 2004-03-10 at 14:16, Joel Sherrill wrote:
Hi,
In trying to get gcc 3.4 to build Ada for *-rtems, I have noticed that
sysdep.c seems
to now be dependent on termios.h for sparc-rtems. In tracking this
down, it seems
as though unix is a predefine for sparc-rtems. This causes gnat to
think that we
should have termios installed when the run-time is built.
So I am left with two issues:
+ why is sparc-rtems defining unix?
Because sparc-rtems-gcc is broken. It bogusly applies config-files from
sparc-solaris.
As does sparc-elf which sparc-rtems is closely modeled upon.
Can we safely turn it off? How?
My attempts to fix this can be found in:
http://www.rtems.com/cgi-bin/gnatsweb.pl?database=RTEMS&cmd=view&pr=517
It looks like you just inlined the solaris files and marked sections
as unused. Is that right?
Would config/sparc/linux.h be closer to use as a starting point for
a new config/sparc/rtemself.h?
Ralf
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985