[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#796076: gcc-5: undefined reference errors with extern __inline__ (regression)



On 2015-08-19 17:36:47 +0200, Matthias Klose wrote:
> On 08/19/2015 10:48 AM, Vincent Lefevre wrote:
> > extern __inline__ fn1() { fn2(); }
> > 
> > main() {}
> 
> not a bug. if you want to keep gnu89 inline semantics, build using -fgnu89-inline.

Well, I haven't chosen the gnu89 inline semantics. This comes from
gmp.h (GMP 4.1). So, that's actually a bug in GMP, which uses this
semantics unconditionally with all GCC versions. Fortunately,
GMP 4.1 is very old and this has been improved in later GMP
versions.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: