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

2015-08-20 Thread Vincent Lefevre
On 2015-08-20 13:19:23 +0200, Matthias Klose wrote: > see https://gcc.gnu.org/gcc-5/porting_to.html > > __attribute__ ((gnu_inline)) should be your fix. Yes, this has been fixed in GMP 4.2, but the (very old) GMP 4.1 branch will never be fixed. This is a bit annoying, as for MPFR up to 3.1.x, we

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

2015-08-20 Thread Matthias Klose
On 08/20/2015 02:39 AM, Vincent Lefevre wrote: > 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

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

2015-08-19 Thread Vincent Lefevre
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 semantic

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

2015-08-19 Thread Vincent Lefevre
Package: gcc-5 Version: 5.2.1-15 Severity: important On the following C code obtained with creduce (on a code obtained when I wanted to test MPFR 3.1.3 against GMP 4.1.4): extern __inline__ fn1() { fn2(); } main() {} I get the following error with gcc-5: $ gcc-5 -w ct.i /tmp/ccFWIDKK.o: In fun