This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

Re: internal gcc error during compile of 2.3.47pre6 linux kernel


> 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


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