This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: multi-arched alpha won't build with OSF1 4.0d's cc
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com, insight at sources dot redhat dot cmo
- Date: Sun, 05 May 2002 14:14:27 -0400
- Subject: Re: multi-arched alpha won't build with OSF1 4.0d's cc
- References: <or4rhmr37o.fsf@livre.redhat.lsd.ic.unicamp.br>
> 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?
>
Yes (if you haven't already).
I'll add '\[MAX_REGISTER_{RAW,VIRTUAL}_SIZE\]' to the ARI.
Andrew