Compiler bug found?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiler bug found?



I am presently in the process of trying to compile a linux kernel
2.6.17.10 for a coldfire variant with gcc version 4.1.0 (CodeSourcery
Freescale 4.1-14).  Unfortunately I am running into the compiler fault:

 

 

fs/proc/proc_misc.c: In function 'show_stat':

fs/proc/proc_misc.c:512: internal compiler error: in
find_reloads_address_1, at reload.c:5571

Please submit a full bug report,

with preprocessed source if appropriate.

See <URL:mailto:coldfire-gnu-discuss@xxxxxxxxxxxxxxxx> for instructions.

 

I have isolated the fault to the inclusion of the <asm/div64.h> header
file.  More specifically if the following define is present in this
file, the compiler chokes:

 

#define do_div(n,base) ({
\

            uint32_t __base = (base);
\

            uint32_t __rem;
\

            __rem = ((uint64_t)(n)) % __base;
\

            (n) = ((uint64_t)(n)) / __base;
\

            __rem;
\

 })

 

If it is taken out, the linker obviously can't find "do_div" at the end
but the compiler doesn't fail.

 

Has this problem been seen before?

 

Gary Carlson