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 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 patch. I t

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 a

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 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 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 wrot

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 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 wrote: > >> > This patch cures PR59828 by translating all the

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 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 wrote: >> > This patch cures PR59828 by translating all the -mcpu options at once, >> > in order, to their equivalent assembler -m

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 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

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 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= options from th

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 pa