AIX 4.3.3 pthread.h and proc.h errors
David Edelsohn
dje@watson.ibm.com
Fri Dec 31 20:54:00 GMT 1999
I do not understand your proc.h problem unless you originally
built GCC on AIX 4.3.2 or earlier and did not rebuild the GCC header file
cache when updating to AIX 4.3.3. Building gcc on an AIX 4.3.3 system
generates a correct "fixed" version of types.h.
The pthread.h problem is in the AIX 4.3.3 pthread.h header file.
AIX 4.3.3 header file has, as you showed in your example, a number of
macros defined like:
#define PTHREAD_COND_INITIALIZER\
{\
0,\
...\
}
Note that there is no space between the macro name and he backslash
continuation character beginning of the definition of the macro. IBM's
compiler accepts this but GCC does not. I do not know what the IBM
compiler is recognizing as the end of the token or which behavior is
correct according to the ISO C standard. For the time being, you can add
a space between the macro name and the backslash on the first line of each
definition -- either in the system copy or copy the fixed file to GCC's
header file cache.
David
===============================================================================
David Edelsohn T.J. Watson Research Center
dje@watson.ibm.com P.O. Box 218
+1 914 945 4364 (TL 862) Yorktown Heights, NY 10598
More information about the Gcc-bugs
mailing list