Re: [rs6000] Add register save/restore routines for cross

2013-05-22 Thread Alan Modra
On Wed, May 22, 2013 at 10:12:14PM +0200, Bernhard Reutner-Fischer wrote: > On 22 May 2013 16:36:52 David Edelsohn wrote: > >On Wed, May 22, 2013 at 10:35 AM, Alan Modra wrote: > >> On Wed, May 22, 2013 at 10:05:47AM -0400, David Edelsohn wrote: > >>> Why does cross need the functions in libgcc a

Re: [rs6000] Add register save/restore routines for cross

2013-05-22 Thread Bernhard Reutner-Fischer
On 22 May 2013 16:36:52 David Edelsohn wrote: On Wed, May 22, 2013 at 10:35 AM, Alan Modra wrote: > On Wed, May 22, 2013 at 10:05:47AM -0400, David Edelsohn wrote: >> Why does cross need the functions in libgcc and not provided by the linker? > > Only the ppc64 linker provides save/restore func

Re: [rs6000] Add register save/restore routines for cross

2013-05-22 Thread David Edelsohn
On Wed, May 22, 2013 at 10:35 AM, Alan Modra wrote: > On Wed, May 22, 2013 at 10:05:47AM -0400, David Edelsohn wrote: >> Why does cross need the functions in libgcc and not provided by the linker? > > Only the ppc64 linker provides save/restore functions magically. Okay, then the patch is okay.

Re: [rs6000] Add register save/restore routines for cross

2013-05-22 Thread Alan Modra
On Wed, May 22, 2013 at 10:05:47AM -0400, David Edelsohn wrote: > Why does cross need the functions in libgcc and not provided by the linker? Only the ppc64 linker provides save/restore functions magically. -- Alan Modra Australia Development Lab, IBM

Re: [rs6000] Add register save/restore routines for cross

2013-05-22 Thread David Edelsohn
Why does cross need the functions in libgcc and not provided by the linker? - David On Wed, May 22, 2013 at 10:00 AM, Alan Modra wrote: > On Wed, May 22, 2013 at 09:40:22AM -0400, David Edelsohn wrote: >> I don't believe those functions should be provided by libgcc, at least >> not by shared lib

Re: [rs6000] Add register save/restore routines for cross

2013-05-22 Thread Alan Modra
On Wed, May 22, 2013 at 09:40:22AM -0400, David Edelsohn wrote: > I don't believe those functions should be provided by libgcc, at least > not by shared libgcc.so, as explained by Alan. David, I think t-savresfgpr satifies that requirement. # These can't end up in shared libgcc LIB2ADD_ST += \ ..

Re: [rs6000] Add register save/restore routines for cross

2013-05-22 Thread David Edelsohn
I don't believe those functions should be provided by libgcc, at least not by shared libgcc.so, as explained by Alan. - David

[rs6000] Add register save/restore routines for cross

2013-05-21 Thread Eric Botcazou
Hi, this adds the register save/restore routines to libgcc for a couple of cross platforms that we use (powerpc-elf and powerpc-wrs-vxworks). OK for mainline? 2013-05-20 Eric Botcazou libgcc/ * config.host (powerpc-*-elf*): Add rs6000/t-savresfgpr to tmake_file. (powerpc-wr