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: law at redhat dot com
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 06 Jun 2002 10:55:11 -0600
- Subject: Re: Convert 3.2 sources to ISO C90
- Reply-to: law at redhat dot com
In message <200206061627.g56GRgg20707@duracef.shout.net>, Michael Elizabeth
Cha
stain writes:
> On hpux 10.20 and later, hpux cc has an option "-Ae" to enable
> Ansi C, specifically including prototypes.
More correctly -Ae enables "extended ANSI"; -Aa enables strict ANSI.
I've managed to get things to build with the unbundled compiler using -Ae and
-Aa with various amounts of hackery. The problem with them is they muck up
the namespace pretty badly and suddenly functions and structures you expect
to find in the include files aren't there anymore and some which you don't
expect suddenly exist (leading to wonderful problems in some GNU code which
at least used to blindly assume it should provide a typedef for uint32_t :(
> 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.
:-) The configure code in gdb was broken last I looked (Nov 2001) in repsect
to how it deals with -Aa/-Ae. if I recall the autoconf folks told me they had
fixed those problems. There's a thread (and a todo on my list) to get this
code fixed. It just hasn't bubbled back up to the top of my list.
jeff