This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C PATCH] Don't mark C99 inline functions as always_inline (PR c/71969)


On 07/23/2016 10:38 AM, Richard Biener wrote:
On July 22, 2016 5:09:07 PM GMT+02:00, Jakub Jelinek <jakub@redhat.com> wrote:
Hi!

As Richard reported on IRC, we are marking C99 inline (without extern)
functions as effectively always_inline, even when the intent has been
to do
this only for the GNU extern inline functions (i.e. -fgnu89-inline
extern
inline or extern inline __attribute__((gnu_inline))).

Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok
for
trunk?  The alias-11.c change is needed because the inliner decides not
to
inline new_cfi, and as it uses since -std=c11 default C99 inline
semantics
without extern, the body isn't emitted.

LGTM,
Just a note, Jakub is on PTO this week and next week -- he'll commit when he returns. Or if this is time critical, anyone with commit privileges can commit on Jakub's behalf.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]