Re: [patch] Fix PR ada/52362

2012-06-06 Thread Diego Novillo
On 12-06-06 07:23 , Eric Botcazou wrote: So, why do we have the --with-gnu-as flag then? Because, on some platforms like Solaris, you can use the system assembler or the GNU assembler, so nothing is hardcoded in config.gcc and --with-gnu-as makes it possible to pick one. On Linux, it's always

Re: [patch] Fix PR ada/52362

2012-06-06 Thread Eric Botcazou
> So, why do we have the --with-gnu-as flag then? Because, on some platforms like Solaris, you can use the system assembler or the GNU assembler, so nothing is hardcoded in config.gcc and --with-gnu-as makes it possible to pick one. On Linux, it's always the GNU assembler so this is hardcoded.

Re: [patch] Fix PR ada/52362

2012-06-06 Thread Diego Novillo
On 12-06-06 03:32 , Eric Botcazou wrote: When doing native bootstraps, we need to set --with-gnu-as=no because binutils 'as' does not handle a flag that we pass to our own version of 'as'. That looks like a kludge to me. You can probably achieve the same effect with a script filtering out the

Re: [patch] Fix PR ada/52362

2012-06-06 Thread Eric Botcazou
> When doing native bootstraps, we need to set --with-gnu-as=no because > binutils 'as' does not handle a flag that we pass to our own version > of 'as'. That looks like a kludge to me. You can probably achieve the same effect with a script filtering out the unsupported flag. > 2- Eric, your pa

Re: [patch] Fix PR ada/52362

2012-06-05 Thread Diego Novillo
On Fri, May 18, 2012 at 5:05 PM, Eric Botcazou wrote: >        * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion. >        (HAVE_GNU_AS): Likewise. >        * config.in: Regenerate. >        * configure: Likewise. Eric, This change is breaking bootstraps in one of the google bran

Re: [patch] Fix PR ada/52362

2012-05-25 Thread Paolo Bonzini
Il 18/05/2012 23:05, Eric Botcazou ha scritto: > Hi, > > this is a regression present on mainline and 4.7 branch or, more precisely, > if > you use recent GNU linkers with LTO plugin. During the link phase, gnatlink > can decide to use a response file to pass a very long line to the linker. I

Re: [patch] Fix PR ada/52362

2012-05-25 Thread Eric Botcazou
Paolo, > The fix is mainly in the Ada tools, but there is a hitch: when you pass a > response file to the linker by means of the -Wl,@ option, it is intercepted > by collect2. And collect2 creates another response file for the linker > proper only if HAVE_GNU_LD is set to 1. Now HAVE_GNU_LD is s

[patch] Fix PR ada/52362

2012-05-18 Thread Eric Botcazou
Hi, this is a regression present on mainline and 4.7 branch or, more precisely, if you use recent GNU linkers with LTO plugin. During the link phase, gnatlink can decide to use a response file to pass a very long line to the linker. It was actually using a linker script with the GNU linker, b