gcc-4.9 miscompiles linux kernel zlib for armv3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro GCC |
New
|
Undecided
|
Kugan Vivekanandarajah | ||
gcc |
Fix Released
|
Medium
|
Bug Description
I did some more kernel build tests with random configurations, using the latest gcc-4.9 snapshot (20140413)
$ arm-linux-
arm-linux-
$ arm-linux-
/tmp/inffast.i: In function 'inflate_fast':
/tmp/inffast.
}
^
0x997a5f crash_signal
0xc46dbb arm_reload_
0xcb5b24 gen_reload_
0x8924c3 insn_gen_
0x8924c3 check_and_
0x8924c3 curr_insn_transform
0x893134 lra_constraints
0x883c2c lra(_IO_FILE*)
0x845276 do_reload
0x845276 rest_of_
0x845276 execute
The source code comes from the Linux kernel, but is fact a copy of the popular zlib library. I have taken all unrelated code out of the preprocessed source file, but have not attempted to reduce the inflate_fast funcion any further. The same problem happens with today's gcc-4.10.0 snapshot (20140413).
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in gcc-linaro: | |
assignee: | nobody → Kugan Vivekanandarajah (kugan-vivekanandarajah) |
Changed in gcc: | |
status: | New → Fix Released |
Should this get mirrored into the main gcc bug tracker?