#pragma redefine_extname warnings

Martin Sebor sebor@roguewave.com
Sat Oct 5 14:32:00 GMT 2002


Richard Henderson wrote:
> On Thu, Oct 03, 2002 at 03:56:14PM -0600, Martin Sebor wrote:
> 
>>extern "C" void foo ();
>>#pragma redefine_extname foo bar
>>
>>t.cpp:3: warning: #pragma redefine_extname conflicts with declaration
> 
> 
> Actually, that's a C++ front end bug.  It indicates that the
> pragma isn't doing what it's supposed to be doing.

Is the pragma documented somewhere? I'm hoping to figure out
how to silence the warnings by means other than #undefining
the __PRAGMA_REDEFINE_EXTNAME macro because that introduces
a bunch of warnigs about unused functions (the statics in
the #else block controlled by the macro).

Thanks
Martin



More information about the Gcc-bugs mailing list