This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: internal gcc error during compile of 2.3.47pre6 linux kernel
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: internal gcc error during compile of 2.3.47pre6 linux kernel
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Wed, 23 Feb 2000 15:59:35 -0300
- cc: neuffer at alpha dot mz dot rhein-main dot de, gcc-bugs at gcc dot gnu dot org, rth at twiddle dot net
"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