On Mon, Nov 12, 2018 at 10:19:04PM +1030, Alan Modra wrote: > I'd like to remove -many from the options passed by default to the > assembler, on the grounds that a gcc bug in instruction selection (eg. > emitting a power9 insn for -mcpu=power8) is better found at assembly > time than run time. > > This might annoy people for a while fixing user asm that we didn't > diagnose previously, but I believe this is the right direction to go. > Of course, -Wa,-many is available for anyone who just wants their > dodgy old code to work. > > Bootstrapped etc. powerpc64le-linux. OK?
I forgot to mention something important. This exposes a bug with our target_clones support, in that we don't emit .machine directives when changing cpu. eg. gcc.target/powerpc/clone2.c fails with "unrecognized opcode: `modsd'". __attribute__((__target__("cpu=..."))) also doesn't emit a .machine directive before the affected function code. -- Alan Modra Australia Development Lab, IBM