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: PATCH: PR middle-end/20297: #pragma GCC visibility isn't properly handled for builtin functions


Roger Sayle <roger@eyesopen.com> writes:

> I suspect that a far more appropriate (and less broken) implementation
> of visibility attributes, is not to change tree.c's build_decl and thereby
> affect every call to it throughout the compiler, but instead to handle
> these attributes in the front-ends, and identify the two or three places
> where *user* functions and global variables are defined in the C/C++
> front-ends, and appropriately set the flag bits on the DECL created by
> build_decl.

Yes, I agree.  That is how I thought it worked, and I'm surprised to
find it doesn't!


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