1 Dec 18:38
Re: [parisc-linux] Re: [2.6 patch] parisc: "extern inline" -> "static
John David Anglin <dave <at> hiauly1.hia.nrc.ca>
2006-12-01 17:38:16 GMT
2006-12-01 17:38:16 GMT
> The parisc point intentionally switched to "extern inline" at one > point and unless what jda wrote is now incorrect, I'm not inclined > to change it. The handling of "extern inline" is changing in GCC 4.3 to the C99 specified behavior. The attribute gnu_inline on an inline declaration results in the old GNU C89 inline behavior even in the ISO C99 mode. The C99 behavior allows the function being inlined to be externally called. As a result, conflicts will occur if the function is defined in a header included by multiple objects. So, code that assumed the previous GNU treatment unfortunately needs to change. The main difference between "static inline" and "extern inline" in the old GNU treatment was that with "extern inline" the function was never compiled on its own, even if its address was explicitly referenced. With "static inline", the function would be compiled on its own in some circumstances. So, this is mostly a code size issue. More details are present in extend.texi in the GCC head. This has also been discussed on the gcc list a few times. Dave -- -- J. David Anglin dave.anglin <at> nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
RSS Feed