This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: libgcc sparc-rtems config on gcc head


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


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