This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [LIBIBERTY PATCH]: fix getopt.c compile failure with cc
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Kaveh R. Ghazi" <ghazi at caipclassic dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, dj at redhat dot com
- Date: 23 Jul 2005 07:50:37 -0700
- Subject: Re: [LIBIBERTY PATCH]: fix getopt.c compile failure with cc
- References: <200507231401.j6NE1oJQ016511@caipclassic.rutgers.edu>
"Kaveh R. Ghazi" <ghazi@caipclassic.rutgers.edu> writes:
> 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * getopt.c: Include ansidecl.h before system headers.
This is OK. Thanks.
You might want to look into why ansidecl.h is tampering with const.
That should only happen if ansidecl.h thinks that the compiler is not
C90-compliant. We currently require a C90 compliant compiler in any
case; why does ansidecl.h think the compiler is not C90 compliant?
In fact, our decision to require C90 compliance suggests that we can
simplify ansidecl.h considerably.
Ian