multi-arched alpha won't build with OSF1 4.0d's cc
Alexandre Oliva
aoliva@redhat.com
Sun May 5 09:04:00 GMT 2002
OSF1 4.0d's cc complains when a non-constant value is used as the
array size of a formal parameter. The first patch below fixes the
problem without removing the documentation value of the array size at
that point. I wonder if just commenting out the (variable) array size
would be a better choice.
It also rightfully refuses to compile functions containing automatic
arrays of non-constant sizes. The second patch below fixes this
problem.
With these two patches, GDB mainline builds on this platform again,
using this picky/dumb compiler.
Ok to install?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-osf-cc.patch
Type: text/x-patch
Size: 797 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020505/7662904d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: insight-osf-cc.patch
Type: text/x-patch
Size: 1200 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020505/7662904d/attachment-0001.bin>
-------------- next part --------------
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Gdb-patches
mailing list