On Fri, 12 Jan 2018, Jeff Law wrote: > > What is the status of this PR > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61152 > > > > now? Can it be closed with a notice that this must be decided file by file? > Seems reasonable with a note that it needs to be decided file by file.
And the ideal solution for such issues is clear: stop target code using host-side headers so that we can end up with no such headers needing the exception at all. (If a target macro is only used in target side code, move it to libgcc's tm.h headers. If it can be replaced by use of predefined macros, do so. Otherwise, make the compiler predefine suitable macros if -fbuilding-libgcc. See <https://gcc.gnu.org/wiki/Top-Level_Libgcc_Migration> for possibly out of date lists of target macros that needs to be addressed in one of those ways.) -- Joseph S. Myers jos...@codesourcery.com