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: neuffer at alpha dot mz dot rhein-main dot de
- Subject: Re: internal gcc error during compile of 2.3.47pre6 linux kernel
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 23 Feb 2000 11:35:01 +0100
- CC: gcc-bugs at gcc dot gnu dot org, <rth at twiddle dot net>, <mdharnois at home dot com>
- References: <20000219091704.A5324@itserv-gmbh.com>
> 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.
There is a patch available in
http://gcc.gnu.org/ml/gcc-patches/2000-02/msg00637.html
I notice this patch is not installed in the release branch. Are there
reasons for that omission, or is it just not done yet?
Regards,
Martin