internal gcc error during compile of 2.3.47pre6 linux kernel

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Wed Feb 23 02:49:00 GMT 2000


> 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



More information about the Gcc-bugs mailing list