Re: [RS6000] Make assembler command line cpu match default for gcc

2019-07-28 Thread Segher Boessenkool
On Sun, Jul 28, 2019 at 07:01:32PM +0930, Alan Modra wrote: > On Sat, Jul 27, 2019 at 01:22:57PM -0500, Segher Boessenkool wrote: > > On Sat, Jul 27, 2019 at 02:56:23PM +0930, Alan Modra wrote: > > > The patch also introduces ASM_DEFAULT_EXTRA for the altivec variant > > > targets so as to enable -

Re: [RS6000] Make assembler command line cpu match default for gcc

2019-07-28 Thread Alan Modra
On Sat, Jul 27, 2019 at 01:22:57PM -0500, Segher Boessenkool wrote: > On Sat, Jul 27, 2019 at 02:56:23PM +0930, Alan Modra wrote: > > The patch also introduces ASM_DEFAULT_EXTRA for the altivec variant > > targets so as to enable -maltivec by default. > > That is a behaviour change I think? I don

Re: [RS6000] Make assembler command line cpu match default for gcc

2019-07-27 Thread Segher Boessenkool
Hi Alan, Thank you for doing this! On Sat, Jul 27, 2019 at 02:56:23PM +0930, Alan Modra wrote: > The patch also introduces ASM_DEFAULT_EXTRA for the altivec variant > targets so as to enable -maltivec by default. That is a behaviour change I think? I don't know if it is correct... It doesn't by

[RS6000] Make assembler command line cpu match default for gcc

2019-07-26 Thread Alan Modra
When gcc is configured using --with-cpu=, the specified cpu effectively becomes a default -mcpu= passed to gcc. This then affects the cpu passed to gas via ASM_CPU_SPEC. If gcc is not configured using --with-cpu then the cpu passed to gas is that given by ASM_DEFAULT_SPEC, which currently does no