[Top] [All Lists]

Re: gcc -3.4.4 and linux-2.4.32

To: Kishore K <>
Subject: Re: gcc -3.4.4 and linux-2.4.32
From: David Daney <>
Date: Mon, 16 Jan 2006 09:34:19 -0800
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
Kishore K wrote:
When 2.4.32 kernel (from linux-mips) is compiled with the tool chain based on gcc 3.4.4 and binutils 2.16.1, the kernel crashes on malta board. The crash file is enclosed along with the mail. If the same kernel is compiled with the tool chain based on gcc 3.3.6, no problem is observed.

May I know, whether it is because of the changes in ABI in gcc 3.4.

Not exactly. It has to do with -funit-at-a-time. In the 2.4.x kernel it is assumed that gcc will not reorder top level asm statements and functions. For gcc-3.3.x and earlier this was a valid assumption. With 3.4.x and later it is not.

If so, has any one got the patch to make 2.4.x kernels work with gcc 3.4 compilers? From the changelog, I can infer that, some changes have been done in 2.4.28 kernel to work with gcc 3.4 for i386. If so, has the same thing been done for MIPS as well.

IIRC the patches were never applied to If you search the archives of this list for messages that I sent, you can find the patches.

David Daney.

<Prev in Thread] Current Thread [Next in Thread>