[pcre-dev] [Bug 1173] [PATCH] Use GCC visibility features wh…

Top Page
Delete this message
Author: Cristian Rodríguez
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1173] [PATCH] Use GCC visibility features when available
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1173




--- Comment #3 from Cristian Rodríguez <crrodriguez@???> 2011-11-02 01:08:14 ---
(In reply to comment #2)
> Would it be better to handle visibility on the linker side?  I think
> that will be less invasive -- all the visibility will be controlled in
> one place, the Makefile.  I'm thinking something like what we do
> here:
>    http://code.google.com/p/google-ctemplate/source/browse/trunk/Makefile.am
> with CTEMLPLATE_SYMBOLS.

>
> That said, I don't feel that strongly that one approach is better than
> the other.
>
> craig
>


You can the linker side, however it wont help the compiler to produce better
code.

See also

http://www.akkadia.org/drepper/dsohowto.pdf section 2.2

http://gcc.gnu.org/wiki/Visibility


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email