[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin
Subject:    Re: sys/cdefs.h or maybe gcc build issue
From:       cyg Simple <cygsimple () gmail ! com>
Date:       2016-10-31 1:01:02
Message-ID: e2ab48da-47f6-8f1d-48a0-7c1e8059836c () gmail ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic