This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix option handling when -std=gnu++14 is not used (PR 69865)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>, Jonathan Wakely <jwakely at redhat dot com>
- Date: Fri, 19 Feb 2016 13:26:46 +0100
- Subject: Re: [C++ PATCH] Fix option handling when -std=gnu++14 is not used (PR 69865)
- Authentication-results: sourceware.org; auth=none
- References: <HE1PR07MB090548A2180950184AF65A60E4A00 at HE1PR07MB0905 dot eurprd07 dot prod dot outlook dot com> <20160219105612 dot GA3017 at tucnak dot redhat dot com> <HE1PR07MB09054F1EE94A5C0E57E41AAEE4A00 at HE1PR07MB0905 dot eurprd07 dot prod dot outlook dot com> <20160219113126 dot GB3017 at tucnak dot redhat dot com> <HE1PR07MB09050AD7717125F4428FF773E4A00 at HE1PR07MB0905 dot eurprd07 dot prod dot outlook dot com> <20160219115945 dot GC3017 at tucnak dot redhat dot com> <20160219122212 dot GD3017 at tucnak dot redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Feb 19, 2016 at 01:22:12PM +0100, Jakub Jelinek wrote:
> wants the C inline __attribute__((gnu_inline)) semantics.
> IMHO gperf should be fixed to only use __attribute__((gnu_inline)) for C++.
For C of course.
Thus emit
#ifndef __cplusplus
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif
or something similar.
Jakub