This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Factor common code for C-family and Fortran preprocessing (3rd try)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: FX <fxcoudert at gmail dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, gcc-patches at gcc dot gnu dot org, gfortran List <fortran at gcc dot gnu dot org>
- Date: Sun, 3 Oct 2010 21:52:04 +0200
- Subject: Re: [patch] Factor common code for C-family and Fortran preprocessing (3rd try)
- References: <045CFA9E-10DC-4E70-A3D9-BCDEFC9123EB@gmail.com> <Pine.LNX.4.64.1009262155470.1101@digraph.polyomino.org.uk> <966DF9FB-BE0E-4568-B3C3-BA9CF11404F0@gmail.com> <Pine.LNX.4.64.1009271429570.27296@digraph.polyomino.org.uk> <BBA779FF-5B2F-43B5-994E-1FC3F9B4D236@gmail.com> <Pine.LNX.4.64.1009282006480.25541@digraph.polyomino.org.uk> <A3558992-14A0-46EC-ACD4-8F8B38729341@gmail.com> <Pine.LNX.4.64.1010031825550.2871@digraph.polyomino.org.uk> <2E147346-A80E-475D-8C05-70D075D9B09A@gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Oct 03, 2010 at 08:45:53PM +0200, FX wrote:
> > The C changes are OK. There are more macros I would think of as
> > language-independent - __EXCEPTIONS, __USING_SJLJ_EXCEPTIONS__,
> > __GCC_HAVE_DWARF2_CFI_ASM, __SSP_ALL__, __SSP__, _OPENMP, __NO_INLINE__,
> > __SIZEOF_INT128__ at least - but they can be dealt with later.
>
> Thanks for the review, I'll look at these macros (does SSP apply to Fortran, for example?).
Yes, the first 7 definitely apply to Fortran (-fexceptions,
-fdwarf2-cfi-asm, -fstack-protector, -fopenmp, -fno-inline), not 100% sure about how
__SIZEOF_*__ applies to Fortran, given that it is the sizeof of a C/C++
types, but perhaps for interoperability with C/C++ it doesn't hurt to define
them too.
Jakub