This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, GCC] Move MEMMODEL_* and enum memmodel from coretypes.h to memmodel.h
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Thomas Preudhomme <thomas dot preudhomme at foss dot arm dot com>
- Cc: Richard Biener <rguenther at suse dot de>, Jakub Jelinek <jakub at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 12 Oct 2016 20:00:59 +0000
- Subject: Re: [PATCH, GCC] Move MEMMODEL_* and enum memmodel from coretypes.h to memmodel.h
- Authentication-results: sourceware.org; auth=none
- References: <8a3078cc-f8fd-d6aa-4717-b8fdb21af076@foss.arm.com>
On Wed, 12 Oct 2016, Thomas Preudhomme wrote:
> This patch is a follow up of [1] which aims to have all memory model related
> declarations in memmodel.h. To achieve that, this patch moves memory model
> related declaration from coretypes.h into memmodel.h. Note that since
> memmodel.h is now included from libgcc it needs to have a runtime library
> exception.
I think libgcc should be using the __ATOMIC_* predefines instead of the
MEMMODEL_* host-side constants. (In general, we should be moving away
from including host-side headers in target-side code.)
--
Joseph S. Myers
joseph@codesourcery.com