This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.3.4 build report: powerpc-ibm-aix4.3.3.0


Ian Lance Taylor <ian@wasabisystems.com> writes:

| 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))

Ah, so we're not truly restricting to K+R.  I'm still puzzled by this
diagnostic from the system compiler:

   "plural.y", line 264.1: 1506-343 (S) Redeclaration of __gettextlex differs from previous declaration on line 73 of "plural.y".
   "plural.y", line 264.1: 1506-381 (I) The type "const unsigned char**" of parameter 2 in the prototype declaration is not compatible with the corresponding parameter type "unsigned char**" in the nonprototype declaration.
 
The compiler must be using a very specific definition for "prototype".

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]