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
