Re: Fix 59828 - Broken assembly on ppc* with two -mcpu= options

2015-01-27 Thread Alan Modra
On Wed, Jan 21, 2015 at 02:01:44PM -0500, David Edelsohn wrote: I want to avoid duplicating the -mcpu parsing logic or the Rube Goldberg mechanism to re-generate the -mXXX assembler directive. Oh well, I had fun writing the patch. I thought it reasonably elegant, meeting the goals you state

Re: Fix 59828 - Broken assembly on ppc* with two -mcpu= options

2015-01-27 Thread David Edelsohn
On Tue, Jan 27, 2015 at 7:27 PM, Alan Modra amo...@gmail.com wrote: On Wed, Jan 21, 2015 at 02:01:44PM -0500, David Edelsohn wrote: I want to avoid duplicating the -mcpu parsing logic or the Rube Goldberg mechanism to re-generate the -mXXX assembler directive. Oh well, I had fun writing the

Re: Fix 59828 - Broken assembly on ppc* with two -mcpu= options

2015-01-21 Thread David Edelsohn
On Tue, Jan 20, 2015 at 7:02 PM, Alan Modra amo...@gmail.com wrote: On Tue, Jan 20, 2015 at 09:26:12AM -0500, David Edelsohn wrote: On Tue, Jan 20, 2015 at 12:41 AM, Alan Modra amo...@gmail.com wrote: On Mon, Jan 19, 2015 at 10:43:29PM -0500, David Edelsohn wrote: On Fri, Jan 17, 2014 at

Re: Fix 59828 - Broken assembly on ppc* with two -mcpu= options

2015-01-20 Thread David Edelsohn
On Tue, Jan 20, 2015 at 12:41 AM, Alan Modra amo...@gmail.com wrote: On Mon, Jan 19, 2015 at 10:43:29PM -0500, David Edelsohn wrote: On Fri, Jan 17, 2014 at 10:58 PM, Alan Modra amo...@gmail.com wrote: This patch cures PR59828 by translating all the -mcpu options at once, in order, to their

Re: Fix 59828 - Broken assembly on ppc* with two -mcpu= options

2015-01-20 Thread Alan Modra
On Tue, Jan 20, 2015 at 09:26:12AM -0500, David Edelsohn wrote: On Tue, Jan 20, 2015 at 12:41 AM, Alan Modra amo...@gmail.com wrote: On Mon, Jan 19, 2015 at 10:43:29PM -0500, David Edelsohn wrote: On Fri, Jan 17, 2014 at 10:58 PM, Alan Modra amo...@gmail.com wrote: This patch cures PR59828

Re: Fix 59828 - Broken assembly on ppc* with two -mcpu= options

2015-01-19 Thread David Edelsohn
On Fri, Jan 17, 2014 at 10:58 PM, Alan Modra amo...@gmail.com wrote: This patch cures PR59828 by translating all the -mcpu options at once, in order, to their equivalent assembler -m options by using a new spec function. In the process this removes some duplication. All the rhs of -mcpu=

Re: Fix 59828 - Broken assembly on ppc* with two -mcpu= options

2015-01-19 Thread Alan Modra
On Mon, Jan 19, 2015 at 10:43:29PM -0500, David Edelsohn wrote: On Fri, Jan 17, 2014 at 10:58 PM, Alan Modra amo...@gmail.com wrote: This patch cures PR59828 by translating all the -mcpu options at once, in order, to their equivalent assembler -m options by using a new spec function. In

Fix 59828 - Broken assembly on ppc* with two -mcpu= options

2014-01-17 Thread Alan Modra
This patch cures PR59828 by translating all the -mcpu options at once, in order, to their equivalent assembler -m options by using a new spec function. In the process this removes some duplication. All the rhs of -mcpu= options from the command line can be extracted with %{mcpu=*:%*}, and then