libgcc sparc-rtems config on gcc head
Joel Sherrill
joel.sherrill@oarcorp.com
Thu Nov 3 13:50:00 GMT 2011
On 11/03/2011 08:06 AM, Rainer Orth wrote:
> 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.
>
I suspect this would take seconds for you and multiple
revisions from me to match what you have in your head. :)
Would you mind doing this? I am happy to provide quick
feedback.
> Eric, am I missing something about the sparc/sol2-c[in].S files?
>
> Rainer
>
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the Gcc
mailing list