This is the mail archive of the cygwin-apps 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: setup-1.7 defaults to "Just me"


On Apr 16 02:45, Brian Dessent wrote:
> Corinna Vinschen wrote:
> 
> > Alignment?
> 
> Perhaps.  Do you know if gcc aligns VLAs higher than their natural
> alignment?  The nonworking code was just "UCHAR foo[1024]" whereas the
> working was "char buf[size]", which I cribbed from
> grp.cc:internal_getgroups().

Maybe such a dynamic stack allocation like `char buf[size]' uses an
alloca-like function under the hood which also always aligns sufficently
for all datatypes.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


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