internal gcc error during compile of 2.3.47pre6 linux kernel

Horst von Brand vonbrand@sleipnir.valparaiso.cl
Wed Feb 23 15:17:00 GMT 2000


"Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> said:
> Michael Neuffer on Sat, 19 Feb 2000 09:17:04 +0100 said:
> > init_task.c:24: Internal compiler error in `add_pending_init', at
> > c-typeck.c:5867

> Thanks for your bug report. Apparently, the bug is caused by
> spinlock_t being declared as
> 
>   typedef struct { } spinlock_t;
> 
> As a result, inside task_struct, because of
> 
>         spinlock_t sigmask_lock;
>         struct signal_struct *sig;
> 
> sigmask_lock and sig have the same offsets in the task_struct.
> Adding an arbitrary field to spinlock_t works around this bug.

egcs-20000221 has this fixed. I used it to compile this 2.3.47 kernel (with
the workaround removed).
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile                               +56 32 672616


More information about the Gcc-bugs mailing list