This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: inline functions not getting internal linkage in x86 without optimization


David Edelsohn <dje@watson.ibm.com> writes:

> Are explicitly declared *inline* functions no longer considered
> local to the translation unit in whatever equivalent wording now
> exists?

In C++, declaring a function as inline does not affect its linkage, so
a non-member inline function is extern unless explicitly declared as
static.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]