[Bug c/25732] New: Compiling GCC 3.3 per Definitive Guide to GCC book; directory layout per book
ldmiller at rcn dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 10 08:17:00 GMT 2006
Halts compile with
In file included from ../../gcc-3.3/gcc/read-rtl.c:24:
../../gcc-3.3/gcc/rtl.h:132: warning: type of bit-field Âcode is a GCC
extension
../../gcc-3.3/gcc/rtl.h:135: warning: type of bit-field Âmode is a GCC
extension
../../gcc-3.3/gcc/read-rtl.c: In function Âfatal_with_file_and_lineÂ:
../../gcc-3.3/gcc/read-rtl.c:53: warning: traditional C rejects ISO C style
function definitions
../../gcc-3.3/gcc/read-rtl.c: In function Âread_rtxÂ:
../../gcc-3.3/gcc/read-rtl.c:653: error: invalid lvalue in increment
make[2]: *** [read-rtl.o] Error 1
make[2]: Leaving directory `/home/ldmiller/ldmiller/src/gccbuild/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/ldmiller/ldmiller/src/gccbuild/gcc'
make: *** [bootstrap] Error 2
ldmiller@millermini:~/ldmiller/src/gccbuild$
File rtl.c reads:
case 'E':
{
/* Obstack to store scratch vector in. */
struct obstack vector_stack;
int list_counter = 0;
rtvec return_vec = NULL_RTVEC;
c = read_skip_spaces (infile);
if (c != '[')
fatal_expected_char (infile, '[', c);
/* add expressions to a list, while keeping a count */
obstack_init (&vector_stack);
while ((c = read_skip_spaces (infile)) && c != ']')
{
ungetc (c, infile);
list_counter++;
obstack_ptr_grow (&vector_stack, (PTR) read_rtx (infile));
<<<COMPILE CRASHES HERE>>>
}
if (list_counter > 0)
{
return_vec = rtvec_alloc (list_counter);
memcpy (&return_vec->elem[0], obstack_finish (&vector_stack),
list_counter * sizeof (rtx));
}
XVEC (return_rtx, i) = return_vec;
obstack_free (&vector_stack, NULL);
/* close bracket gotten */
}
break;
--
Summary: Compiling GCC 3.3 per Definitive Guide to GCC book;
directory layout per book
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ldmiller at rcn dot com
GCC build triplet: powerpc_unknown
GCC host triplet: powerpc_unknown
GCC target triplet: powerpc_unknown
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25732
More information about the Gcc-bugs
mailing list