PATCH: PR middle-end/20297: #pragma GCC visibility isn't properly handled for builtin functions
Roger Sayle
roger@eyesopen.com
Fri Mar 4 03:50:00 GMT 2005
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
--
More information about the Gcc-patches
mailing list