This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.3.4 build report: powerpc-ibm-aix4.3.3.0
Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
> There was no "const" in K+R. I just had a quick look at gcc/system.h
> and discovered that we don't
>
> #define const /* nothing */
>
> for K+R compiler, but we should. And I believe that should have been
> done somewhere because otherwise we could not have been using K+R
> oompilers :-/
system.h includes libiberty.h which includes ansidecl.h which does
#define const
if this condition is false:
#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) || (defined(__alpha) && defined(__cplusplus))
Ian