------- Comment #10 from aldot at gcc dot gnu dot org  2006-05-22 17:43 -------
Created an attachment (id=11494)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11494&action=view)
fix MAKEINFO invocation for gcc-4_1-branch

I cannot test this patch right now since i have to bootstrap gcc-4.2 on the
OSF5.1a box first in order to be able to bootstrap 4.1..

gcc-4_1-branch from today fails due to the use of __VA_ARGS__ in the
preprocessor:
cc -c   -O2 -DIN_GCC     -DHAVE_CONFIG_H -I. -I.
-I../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc
-I../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/.
-I../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/../include
-I../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/../libcpp/include    
../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/c-parser.c -o c-parser.o
cc: Warning: ../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/tree.h, line 3147:
Formal parameter isn't an identifier. (badformalparm)
#define build(code, ...) \
--------------------^
cc: Warning: ../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/tree.h, line 3151:
Formal parameter isn't an identifier. (badformalparm)
#define _buildC1(...)           _buildC2(__VA_ARGS__,9,8,7,6,5,4,3,2,1,0,0)
-----------------^
cc: Warning: ../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/tree.h, line 3152:
Formal parameter isn't an identifier. (badformalparm)
#define _buildC2(x,a1,a2,a3,a4,a5,a6,a7,a8,a9,c,...) c
------------------------------------------------^
cc: Warning: ../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/c-parser.c, line
3632: Too many actual parameters in macro call. (toomanyactls)
    add_stmt (build (NOP_EXPR, NULL_TREE, NULL_TREE));
---------------------^
cc: Warning: ../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/c-parser.c, line
3632: Too many actual parameters in macro call. (toomanyactls)
    add_stmt (build (NOP_EXPR, NULL_TREE, NULL_TREE));
--------------^
cc: Warning: ../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/c-parser.c, line
3695: Too many actual parameters in macro call. (toomanyactls)
    add_stmt (build (LABEL_EXPR, void_type_node, c_break_label));
---------------------^
cc: Warning: ../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/c-parser.c, line
3695: Too many actual parameters in macro call. (toomanyactls)
    add_stmt (build (LABEL_EXPR, void_type_node, c_break_label));
--------------^
cc: Error: ../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/c-parser.c, line
3632: In this statement, "__VA_ARGS__" is not declared. (undeclared)
    add_stmt (build (NOP_EXPR, NULL_TREE, NULL_TREE));
--------------^
cc: Error: ../../../cvs/alphaev56-dec-osf5.1a/gcc-4.1/gcc/c-parser.c, line
3695: In this statement, "__VA_ARGS__" is not declared. (undeclared)
    add_stmt (build (LABEL_EXPR, void_type_node, c_break_label));
--------------^
gmake[2]: *** [c-parser.o] Error 1
gmake[2]: Leaving directory `/usr/local/scratch/obj/gcc-4.1/gcc'

oh joy


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27516

Reply via email to