Re: LTO and C99 inline functions broken (was: Type-generic macros with C)

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

 



Jörg Leis <joerg@xxxxxxxxxxxxx> writes:

> The problem seemed to have gone for a while, but I have a test case now:
>
> 	inline int f()
> 	{
> 	    return 5;
> 	}
>
> 	extern inline int f();
>
> With
>
> 	gcc -std=c99 -c test.c
>
> it compiles just fine and emits the an externally callable definition
> of f. However, with LTO,
>
> 	gcc -std=c99 -flto -c test.c
>
> the function f is not emitted. The GCC version is "gcc (GCC) 4.5.0
> 20100610 (prerelease)".

This looks like a bug.  Can you report it as described at
http://gcc.gnu.org/bugs ?  Thanks.

Ian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux