This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [DOC Patch] symbol rename pragmas


On Tue, 13 May 2014, Rainer Orth wrote:

> right, and that's why I want to keep this info.  If it weren't for
> Solaris compatibility, this pragma wouldn't exist, and given that
> heritage, I don't want to encourage its use elsewhere, even though it
> does work.

I can see definite cases where it could be useful in glibc headers, to 
redirect functions to the appropriate version for a particular standard in 
the implicitly preincluded stdc-predef.h even if the header declaring the 
function in question isn't included (ISO C and POSIX allow you to declare 
standard functions yourself if the standard prototype for the function 
doesn't involve any type defined in a header).  So, I think it's quite 
right for it to be available on all platforms as a feature that can help 
in implementing certain standard requirements.

-- 
Joseph S. Myers
joseph@codesourcery.com


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