This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libgcc sparc-rtems config on gcc head
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- Cc: "gcc\ at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Eric Botcazou <ebotcazou at adacore dot com>
- Date: Thu, 03 Nov 2011 14:06:30 +0100
- Subject: Re: libgcc sparc-rtems config on gcc head
- References: <4EB1B739.2050703@oarcorp.com>
Hi Joel,
> The sparc libgcc configure magic looks very
> different on the head versus 4.6. sparc-rtems4.11
> was not building because it was missing crti.
>
> In 4.6, we got the makefile stub from sparc/t-crtin
> but that no longer exists. It looks like the
> rules are on t-sol2 now.
>
> I made this change to libgcc/config.host and
> it is getting further. Does this look like
> what the intended change?
>
> Index: config.host
> ===================================================================
> --- config.host (revision 180798)
> +++ config.host (working copy)
> @@ -1028,7 +1028,7 @@
> md_unwind_header=sparc/linux-unwind.h
> ;;
> sparc-*-rtems*)
> - tmake_file="sparc/t-elf t-crtfm t-rtems t-fdpbit"
> + tmake_file="sparc/t-elf t-crtfm t-sol2 t-rtems t-fdpbit"
> extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
> ;;
> sparc*-*-solaris2*)
No, I'd like to avoid non-Solaris targets using Solaris config fragments
if at all possible. AFAICS there's nothing Solaris-specific in
config/sparc/sol2-c[in].S. If so, the simplest solution would be to
rename the files to crt[in].S. On RTEMS, the generic crt[in].o rules in
Makefile.in would deal with building them, on Solaris I'd have to juggle
around the CUSTOM_CRTIN setting so it's only used on Solaris/x86.
Eric, am I missing something about the sparc/sol2-c[in].S files?
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University