This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] RTEMS: Add GCC Runtime Library Exception
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: Sebastian Huber <sebastian dot huber at embedded-brains dot de>, <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 12 Jan 2018 22:56:59 +0000
- Subject: Re: [PATCH] RTEMS: Add GCC Runtime Library Exception
- Authentication-results: sourceware.org; auth=none
- References: <20170724060358.28937-1-sebastian.huber@embedded-brains.de> <6b23b840-dde8-c2c5-0af5-2609e132d4e1@redhat.com> <6fbde401-9d72-42d0-aff0-3f478127acff@embedded-brains.de> <a2ca3131-d2ec-2853-bbd4-773b8a48a5af@embedded-brains.de> <23a10d19-e1dd-36b3-5572-5017b1a60f5a@redhat.com> <8d05c646-3f25-3058-9c46-3ed22f6a0044@embedded-brains.de> <e341ebef-6d12-a9c1-144f-1e182987638b@redhat.com>
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
joseph@codesourcery.com