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 properlyhandled for builtin functions


On Thu, 3 Mar 2005, H. J. Lu wrote:
> 2005-03-03  H.J. Lu  <hongjiu.lu@intel.com>
>
> 	PR middle-end/20297
> 	* builtins.c (expand_builtin_1): Renamed from expand_builtin.
> 	(expand_builtin): Save/restore default_visibility and
> 	visibility_options.inpragma when calling expand_builtin_1.

Can you explain exactly how this helps?  expand_builtin is called
in the middle-end during RTL expansion for calls *to* intrinsic
functions.  I don't understand how this could possibly affect the
visibility of a "memcpy" symbol.  expand_builtin doesn't emit any
symbols, and often doesn't reference any.

Isn't "pragma visibility" a front-end concept that should be attached
to DECLs?

Confused of Santa Fe,

Roger
--


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