This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: gcc 3.1 fails to build Linux 2.4.7 kernel on i686-linux


> I compiled 2.4.17 with the pre-emption patch applied
> (http://kpreempt.sourceforge.net). The distribution was RedHat 7.2 running
> under RedHat's latest official kernel (2.4.9-21) and library updates at the
> time of the compilation test. The version of gcc 3.1 I built was 20020311.
> When I built this version of 3.1 I built everything. After successfully
> building my version of 2.4.17 with gcc 3.1, I attempted to boot it, but the
> kernel panicked (which at this time isn't surprising). I've also built gcc

The problem is actually kernel bug (or at least I believe 2.4.17 did include
it).  THere is function declared with both __attribute__ ((regparm (0))) and
__attribute__ ((regparm (3))) and 3.1 chooses different value from previous
compilers.
The problem has been fixed in 2.4.18.

Honza


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