[PATCH] Cygwin GCC does not use visibility attributes

Jon TURNEY jon.turney at dronecode.org.uk
Fri Oct 16 10:01:57 PDT 2009


On 14/10/2009 01:57, Yaakov (Cygwin/X) wrote:
> From: Yaakov Selkowitz<yselkowitz-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f at public.gmane.org>
>
> Cygwin's gcc4 accepts visibility attributes but does actually use them,
> generating tons of warnings that they are not supported.

Hmm... wouldn't it be better to avoid this ELF-ism by actually checking if the 
target supports -fvisibility=hidden and __attribute__ 
((visibility("default"))) by using them (with -Werror) in the autoconf check?
(and then respecting that config check in pixman-compiler.h?)


More information about the xorg-devel mailing list