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

Internal compiler error in set_designator, at c-typeck.c:5570


I get this problem on my linuxppc,
When gcc-2.97 was compiling kernel-2.4.1-pre10,glibc is glibc-2.1.3. 
Gcc-2.95.3pre is noproblem there.


make[1]: Entering directory `/usr/src/redhat/BUILD/linux/lib'
make all_targets
make[2]: Entering directory `/usr/src/redhat/BUILD/linux/lib'
gcc -D__KERNEL__ -I/usr/src/redhat/BUILD/linux/include -Wall -Wstrict-prototypes -
O2 -fomit-frame-pointer -fno-strict-aliasing -D__powerpc__ -fsigned-char -msoft-float -
pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring    -c -o brlock.o brlock.c
brlock.c:42: Internal compiler error in set_designator, at c-typeck.c:5570
Please submit a full bug report, with preprocessed source
if appropriate.  See <URL:> for instructions.
make[2]: *** [brlock.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/linux/lib'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/linux/lib'
make: *** [_dir_lib] Error 2
[root@g4mpKFUKUI linux]# 

[root@g4mpKFUKUI redhat]# gcc -v
Reading specs from /usr/lib/gcc-lib/ppc-redhat-linux/2.97/specs
Configured with: /usr/src/redhat/BUILD/gcc-2.97/configure --prefix=/usr --enable-shared -
-enable-threads --host=ppc-redhat-linux --with-cpp-install-dir=../lib --enable-libstdcxx-v3 
gcc version 2.97 20010125 (experimental)
[root@g4mpKFUKUI redhat]# 

----------- brlock.c line 42 around -----------------------------
#else /* ! __BRLOCK_USE_ATOMICS */

brlock_read_lock_t __brlock_array[NR_CPUS][__BR_IDX_MAX] =
   { [0 ... NR_CPUS-1] = { [0 ... __BR_IDX_MAX-1] = 0 } }; <-- here is line 

struct br_wrlock __br_write_locks[__BR_IDX_MAX] =
   { [0 ... __BR_IDX_MAX-1] = { SPIN_LOCK_UNLOCKED } };

------------ gcc-29.7/gcc/c-type.c line 5570 around -------------

static int
set_designator (array)
     int array;
  tree subtype;
  enum tree_code subcode;

  /* Don't die if an entire brace-pair level is superfluous
     in the containing level.  */
  if (constructor_type == 0)
    return 1;

  /* If there were errors in this designator list already, bail out silently. 
  if (designator_errorneous)
    return 1;

  if (!designator_depth)
      if (constructor_range_stack)
	abort ();                         <---------- here is line 5570

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