public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: inline functions not getting internal linkage in x86 without optimization
@ 1998-06-26 17:02 David Edelsohn
  1998-06-27 22:14 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: David Edelsohn @ 1998-06-26 17:02 UTC (permalink / raw)
  To: Martin von Loewis; +Cc: egcs%bugs

	The C++ reference manual previously stated: "A name of file scope
that is explicitly declared *inline* is local to the translation unit."
Elsewhere it mentions *static* as local to the translation unit and "such
names are said to have internal linkage."  Are explicitly declared
*inline* functions no longer considered local to the translation unit in
whatever equivalent wording now exists?

	More to the point, is there any way to generate something
equivalent to GCC's "extern inline" available as a feature of the C
Compiler when using G++? 

Thanks, David

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: inline functions not getting internal linkage in x86 without optimization
  1998-06-26 17:02 inline functions not getting internal linkage in x86 without optimization David Edelsohn
@ 1998-06-27 22:14 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 1998-06-27 22:14 UTC (permalink / raw)
  To: David Edelsohn; +Cc: Martin von Loewis, egcs%bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-06-27 22:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-26 17:02 inline functions not getting internal linkage in x86 without optimization David Edelsohn
1998-06-27 22:14 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).