Opened 11 years ago

Last modified 11 years ago

#278 closed defect

gcc 4.7.x inline behaviour change — at Initial Version

Reported by: Yuri Dario Owned by:
Priority: normal Milestone: libc-0.6.6
Component: libc Version:
Severity: major Keywords:
Cc:

Description

With newer gcc releases, code inlining is following a different path than before. This leads to many problems in the build of libc but also of other applications. See http://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/Inline.html for details.

At this time, this is fixed using -fgnu89-inline which restores old behaviour.

The right thing seems to use 'extern inline' instead of 'static inline'. But without a proper prototype, gcc will still ignore inlining.

Many heaers defines code to be inlined without a prototype.

I'm leaving this ticket open for reference.

Change History (1)

by Yuri Dario, 11 years ago

Attachment: patch-278b.txt added
Note: See TracTickets for help on using tickets.