This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Convert 3.2 sources to ISO C90
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: gcc at gcc dot gnu dot org
- Cc: law at redhat dot com
- Date: Thu, 6 Jun 2002 11:27:42 -0500
- Subject: Re: Convert 3.2 sources to ISO C90
I'm a gdb guy, not a gcc guy, and I don't have direct access to an hpux
machine. So take this with a grain of salt.
On hpux 10.20 and later, hpux cc has an option "-Ae" to enable
Ansi C, specifically including prototypes.
gdb's configure script has a section which looks for "-Ae" and enables it.
But there are some configury problems with passing this down from the
top layer to lower layers. The recommended way to build on
native hppa2.0-hp-hpux10.20 is:
'CC=cc -Ae' ./configure
Maybe someone with access to an hp machine could play with this.
Try downloading gdb 5.2 and look in "gdb/configure" and "gdb/PROBLEMS"
for more info.
This may enable gcc to use a lot more Ansi C features (including
prototypes) and still bootstrap using the vendor compiler, at least on
hpux 10.20 and later. I don't know the hp world enough to say whether
people still use hpux older than 10.20.
I agree with Jeff Law that it's important to keep gcc bootstrappable
with the vendor compiler.
My two cents,
Michael C