[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: status of inline ?
From: Anders Magnusson <ragge () ludd ! ltu ! se>
Date: 2008-07-28 11:11:20
Message-ID: 488DA958.1080309 () ludd ! ltu ! se
[Download RAW message or body]
Now at last (after 10 months?) the inline syntax should at last be fixed :-)
-- Ragge
Marc Espie wrote:
> Tried to build some code which uses inline functions.
>
> Specifically, I have a function that's defined as inline in a header.
>
> It appears pcc is not able to inline it, and more annoyingly it's
> producing external linkage stuff from it.
>
> If I annotate the function `static inline', this no longer happens.
>
> But unless I'm misinterpreting my C standard, I read in 6.7.4.6:
>
> `If *all* of the file scope declarations for a function in a translation
> unit include the inline function specifier without extern, then the
> definition in that translation unit is an inline definition. An inline
> definition *does not provide an external definition of the function*.
>
> (emphasis mine)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic