Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-07 Thread Paolo Bonzini
On 11/07/2011 06:01 PM, Rainer Orth wrote: Ok for mainline? Ok, thanks. Paolo

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-07 Thread Rainer Orth
Hi Paolo, >>> ./config/t-rtems:HOST_LIBGCC2_CFLAGS = >>> -I$(srcdir)/../newlib/libc/sys/rtems/include > > This was LIBGCC2_INCLUDES before your patches. > > You're also missing it in many cases: arm, avr, bfin, moxie, h8300, lm32, > m32r, m68k, mips, powerpc, sh, m32c. As mentioned, I've added a

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-04 Thread Paolo Bonzini
On 11/04/2011 06:24 PM, Rainer Orth wrote: Ok, but unless it's urgent, I'd like to go over it over the weekend and commit on monday. I'm about to leave relatively soon. Sure. Let me know if you cannot fix arm and sh. Paolo

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-04 Thread Rainer Orth
Paolo Bonzini writes: >>> ./config/t-rtems:HOST_LIBGCC2_CFLAGS = >>> -I$(srcdir)/../newlib/libc/sys/rtems/include > > This was LIBGCC2_INCLUDES before your patches. > > You're also missing it in many cases: arm, avr, bfin, moxie, h8300, lm32, > m32r, m68k, mips, powerpc, sh, m32c. Right, no ide

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-04 Thread Paolo Bonzini
Ok, so let's do the analysis. Looks like there are problems in t-rtems and sh/t-sh, in addition to ARM. But I think all of them can be changed. ./config/mcore/t-mcore:HOST_LIBGCC2_CFLAGS = -O3 -DNO_FLOATLIB_FIXUNSDFSI #-msifilter Used as tmake_file="mcore/t-mcore t-fdpbit" would

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-04 Thread Rainer Orth
Paolo Bonzini writes: >> yes, using += gets my behind this point, now in stage2. > > Grep finds: > > ./config/mcore/t-mcore:HOST_LIBGCC2_CFLAGS = -O3 -DNO_FLOATLIB_FIXUNSDFSI > #-msifilter > ./config/m32r/t-m32r:HOST_LIBGCC2_CFLAGS = -G 0 > ./config/t-rtems:HOST_LIBGCC2_CFLAGS = > -I$(srcdir)/.

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-04 Thread Paolo Bonzini
On 11/04/2011 04:59 PM, Matthias Klose wrote: > On 11/04/2011 10:58 AM, Rainer Orth wrote: >> Matthias Klose writes: >> >>> emutls_s.o indeed isn't built with -fPIC (it is on the 4.6 branch); PICFLAG >>> in >>> libgcc/Makefile is set but apparently not used. >> >> I think I see what's going on: c

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-04 Thread Matthias Klose
On 11/04/2011 10:58 AM, Rainer Orth wrote: > Matthias Klose writes: > >> emutls_s.o indeed isn't built with -fPIC (it is on the 4.6 branch); PICFLAG >> in >> libgcc/Makefile is set but apparently not used. > > I think I see what's going on: config/arm/t-elf (and > config/arm/t-strongarm-elf) ov

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-04 Thread Rainer Orth
Matthias Klose writes: > emutls_s.o indeed isn't built with -fPIC (it is on the 4.6 branch); PICFLAG in > libgcc/Makefile is set but apparently not used. I think I see what's going on: config/arm/t-elf (and config/arm/t-strongarm-elf) override HOST_LIBGCC2_CFLAGS instead of appending to it. Thi

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-04 Thread Rainer Orth
Matthias Klose writes: > still fails to build on arm-linux-gnueabi, configured with > --with-arch=armv7-a > --with-float=hard > --with-fpu=vfpv3-d16 > --with-mode=thumb > > /usr/bin/ld: emutls_s.o: relocation R_ARM_THM_MOVW_ABS_NC against > `pthread_cancel' can

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-04 Thread Matthias Klose
On 11/03/2011 12:50 PM, Rainer Orth wrote: > This patch restores arm-none-eabi bootstrap, which had been broken by my > libgcc patches. They accidentally removed arm/t-bpabi in gcc/config.gcc > while the file is still needed for its addition to EXTRA_HEADERS. > > Matt confirmed in the PR that it

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-03 Thread Paolo Bonzini
On 11/03/2011 05:50 PM, Rainer Orth wrote: This patch restores arm-none-eabi bootstrap, which had been broken by my libgcc patches. They accidentally removed arm/t-bpabi in gcc/config.gcc while the file is still needed for its addition to EXTRA_HEADERS. Matt confirmed in the PR that it restored

Re: [build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-03 Thread Ramana Radhakrishnan
. > > Ok for mainline? This is OK. Ramana

[build] Restore arm-eabi bootstrap (PR target/50978)

2011-11-03 Thread Rainer Orth
This patch restores arm-none-eabi bootstrap, which had been broken by my libgcc patches. They accidentally removed arm/t-bpabi in gcc/config.gcc while the file is still needed for its addition to EXTRA_HEADERS. Matt confirmed in the PR that it restored bootstrap for him. Ok for mainline?