This is the mail archive of the cygwin mailing list for the Cygwin 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: sys/cdefs.h or maybe gcc build issue


On 10/30/2016 5:09 PM, Brian Inglis wrote:
> On 2016-10-30 12:23, cyg Simple wrote:
>> The below sample code will give a warning that visibility isn't
>> supported in this configuration.  Either the GCC build is incorrect or
>> the sys/cdefs.h needs to be modified to define __hidden to empty.
> 
> https://cygwin.com/ml/cygwin/2005-08/msg01057.html
> 

I figured that out but that means sys/cdefs.h as delivered needs to ...

> gcc wiki demonstrates what needs to be done instead:
> 
> https://gcc.gnu.org/wiki/Visibility#line-76
> 
> at a minimum add `&& !define(__CYGWIN__)`; other posts also exclude

consider this and define __hidden and other visibility helper macros as
empty.

> MinGW and ARM-PE (W10 Surface, IoT) targets using PE format not ELF;
> gcc notes not all ELF targets support this:
>  

If others deliver a sys/cdefs.h then it should at least declare these
helper macros as empty but that isn't for this list.

> https://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/Function-Attributes.html#index-_0040code_007bvisibility_007d-attribute-1624
> 
> 
> Which raises the interesting question - anyone tried porting Cygwin
> to non-x86 arch?
> 

Maybe but I don't know.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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