This is the mail archive of the gcc-bugs@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]

AIX's xlc should have PROTO activated



When trying to build egcs-19980508 on AIX

(cd build/AIX/egcs; \
	PATH=.:/site/seg/bin:/usr/bin:/bin LD_LIBRARY_PATH=/usr/lib:/lib CFLAGS="-O2" CXXFLAGS="-O2 -fsquangle"  LANGUAGES='c c++'  \
	/home/seg/yotam/build/egcs/egcs-19980508/configure --v --prefix=/home/seg/yotam/build/egcs/AIX --enable-shared)
Configuring for a rs6000-ibm-aix4.1.4.0 host.
 ....

I get:

xlc -c  -DIN_GCC    -g  -DHAVE_CONFIG_H -DHAIFA    -I. -I/home/seg/yotam/build/egcs/egcs-19980508/gcc -I/home/seg/yotam/build/egcs/egcs-19980508/gcc/config /home/seg/yotam/build/egcs/egcs-19980508/gcc/gengenrtl.c
"/home/seg/yotam/build/egcs/egcs-19980508/gcc/gengenrtl.c", line 64.1: 1506-343 (S) Redeclaration of type_from_format differs from previous declaration on line 51 of "/home/seg/yotam/build/egcs/egcs-19980508/gcc/gengenrtl.c".
"/home/seg/yotam/build/egcs/egcs-19980508/gcc/gengenrtl.c", line 64.1: 1506-379 (I) Prototype for function type_from_format must contain only promoted types if prototype and nonprototype declarations are mixed.
"/home/seg/yotam/build/egcs/egcs-19980508/gcc/gengenrtl.c", line 64.1: 1506-380 (I) Parameter 1 has type "char" which promotes to "int".
"/home/seg/yotam/build/egcs/egcs-19980508/gcc/gengenrtl.c", line 86.1: 1506-343 (S) Redeclaration of accessor_from_format differs from previous declaration on line 52 of "/home/seg/yotam/build/egcs/egcs-19980508/gcc/gengenrtl.c".
"/home/seg/yotam/build/egcs/egcs-19980508/gcc/gengenrtl.c", line 86.1: 1506-379 (I) Prototype for function accessor_from_format must contain only promoted types if prototype and nonprototype declarations are mixed.
"/home/seg/yotam/build/egcs/egcs-19980508/gcc/gengenrtl.c", line 86.1: 1506-380 (I) Parameter 1 has type "char" which promotes to "int".

I think simply activating the PROTO macro would solve the problem.
May be it has to do with the version of xlc?

-- yotam


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