gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -I. -I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include -I/opt/cfarm/mpc/include -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I. -I. -I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include -I/opt/cfarm/mpc/include -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber \ ../../../gcc/gcc/config/i386/netware.c ../../../gcc/gcc/config/i386/netware.c: In function ‘i386_nlm_maybe_mangle_decl_assembler_name’: ../../../gcc/gcc/config/i386/netware.c:163:13: error: ‘cvt’ undeclared (first use in this function) ../../../gcc/gcc/config/i386/netware.c:163:13: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [netware.o] Error 1
Typo, can you please try this patch: Index: netware.c =================================================================== --- netware.c (revision 173469) +++ netware.c (working copy) @@ -160,7 +160,7 @@ } else if ((ccvt & IX86_CALLCVT_FASTCALL) != 0) new_id = gen_stdcall_or_fastcall_decoration (decl, id, FASTCALL_PREFIX); - else if ((cvt & IX86_CALLCVT_REGPARM) != 0 + else if ((ccvt & IX86_CALLCVT_REGPARM) != 0 && (new_id = lookup_attribute ("regparm", type_attributes))) new_id = gen_regparm_prefix (decl, id, TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (new_id))));
Introduced by [1]. [1] http://gcc.gnu.org/viewcvs?view=revision&revision=172268
(In reply to comment #1) > Typo, can you please try this patch: > > Index: netware.c > =================================================================== > --- netware.c (revision 173469) > +++ netware.c (working copy) > @@ -160,7 +160,7 @@ > } > else if ((ccvt & IX86_CALLCVT_FASTCALL) != 0) > new_id = gen_stdcall_or_fastcall_decoration (decl, id, FASTCALL_PREFIX); > - else if ((cvt & IX86_CALLCVT_REGPARM) != 0 > + else if ((ccvt & IX86_CALLCVT_REGPARM) != 0 > && (new_id = lookup_attribute ("regparm", type_attributes))) > new_id = gen_regparm_prefix (decl, id, > TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (new_id)))); Yes, that allows me to finish the build of "all-gcc".
Author: uros Date: Fri May 6 10:07:35 2011 New Revision: 173475 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173475 Log: PR target/48898 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name): Fix typo in "ccvt" variable name. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/netware.c
Fixed.