https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64008
Bug ID: 64008 Summary: [SH] sh4-linux configured compiler rejects -m4-nofpu Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: olegendo at gcc dot gnu.org CC: kkojima at gcc dot gnu.org, segher at gcc dot gnu.org Target: sh*-*-* This issue has been mentioned by Segher while he was trying to build an SH4 linux kernel on a powerpc host. Segher, could you please add the configure options you have used for that? Looking at the SUPPORT_SH* macros in sh.h starting at line 161, it's not entirely clear to me what those are trying to accomplish. For instance: #if SUPPORT_SH1 #define SUPPORT_SH2 1 #endif ... to me reads that when SH1 support is enabled (-m1 option), then support for SH2 (-m2 option) is also enabled. This looks like it should be the other way around. Kaz, do you have any idea why these SUPPORT_SH* macros are needed? Why isn't just every CPU/FPU type marked as supported?