Re: [SH] Pass --isa to assembler

2013-11-25 Thread Oleg Endo
On Mon, 2013-11-25 at 09:12 +0900, Kaz Kojima wrote: Oleg Endo oleg.e...@t-online.de wrote: Currently GCC doesn't pass the --isa parameter to the assembler for SH targets other than SH2A and SH5. This makes the assembler accept any kind of ISA and happily produce e.g. SH2A code even though

[SH] Pass --isa to assembler

2013-11-24 Thread Oleg Endo
Hello, Currently GCC doesn't pass the --isa parameter to the assembler for SH targets other than SH2A and SH5. This makes the assembler accept any kind of ISA and happily produce e.g. SH2A code even though the target is SH4, which will then fail to link. The attach patch fixes this by passing

Re: [SH] Pass --isa to assembler

2013-11-24 Thread Kaz Kojima
Oleg Endo oleg.e...@t-online.de wrote: Currently GCC doesn't pass the --isa parameter to the assembler for SH targets other than SH2A and SH5. This makes the assembler accept any kind of ISA and happily produce e.g. SH2A code even though the target is SH4, which will then fail to link. The