Compiler bug found?
Carlson, Gary
gary.carlson at EADS-NAdefense.com
Wed Sep 6 17:33:20 UTC 2006
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 at codesourcery.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20060906/f1788f23/attachment.html>
More information about the coldfire-gnu-discuss
mailing list