This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: #pragma redefine_extname and local declarations
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: zack at codesourcery dot com, gcc at gcc dot gnu dot org
- Date: Tue, 21 Sep 2004 15:41:42 +0000 (UTC)
- Subject: Re: #pragma redefine_extname and local declarations
- References: <414F64CE.3080909@codesourcery.com>
On Mon, 20 Sep 2004, Mark Mitchell wrote:
> This did not work in GCC 3.4 either, so I don't think it had anything to do
> with Zack's changes to redefine_extname in GCC 4.0. But, I'd be curious as to
> whether or not you think that this behavior is as desired. If you don't think
> this is the desired behavior, then perhaps we should be calling
> maybe_apply_renaming_pragma more often -- after every function declaration
> with external linkage in finish_decl, rather than just those with global
> scope.
I think the pragma should apply to all external function declarations (and
this should probably be the case for extern_prefix as well), explicit and
implicit. This also appears to be what the Solaris 9 compiler does.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
http://www.srcf.ucam.org/~jsm28/gcc/#c90status - status of C90 for GCC 4.0
jsm@polyomino.org.uk (personal mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)