O1 wrong-code by cmove

Bug #786230 reported by teawater on 2011-05-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.5 (Ubuntu)
Undecided
Unassigned
Maverick
High
Unassigned
Natty
Undecided
Unassigned
Oneiric
Undecided
Unassigned

Bug Description

Binary package hint: gcc-4.5

gdb: gdb forgot how to do arithmetic
https://bugzilla.redhat.com/show_bug.cgi?id=635508
->
gcc: -O1 wrong-code by cmove
https://bugzilla.redhat.com/show_bug.cgi?id=634757
->
gcc: [4.5/4.6 Regression] -O1 wrong-code by cmove
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45695

I reproduce this issue in gcc version 4.5.1 (Ubuntu/Linaro 4.5.1-7ubuntu2)

Matthias Klose (doko) on 2011-05-23
Changed in gcc-4.5 (Ubuntu Natty):
status: New → Fix Released
Changed in gcc-4.5 (Ubuntu Oneiric):
status: New → Fix Released
Changed in gcc-4.5 (Ubuntu Maverick):
importance: Undecided → High
milestone: none → maverick-updates
status: New → Confirmed
assignee: nobody → Matthias Klose (doko)
teawater (teawater) wrote :

gcc -Wp,-MD,drivers/staging/wlan-ng/.p80211wep.o.d -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.6.0/include -I/home/teawater/kernel/linux-2.6/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/home/teawater/kernel/linux-2.6/include -include include/generated/autoconf.h -I/home/teawater/kernel/linux-2.6/drivers/staging/wlan-ng -Idrivers/staging/wlan-ng -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=core2 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(p80211wep)" -D"KBUILD_MODNAME=KBUILD_STR(prism2_usb)" -c -o drivers/staging/wlan-ng/.tmp_p80211wep.o /home/teawater/kernel/linux-2.6/drivers/staging/wlan-ng/p80211wep.c
/home/teawater/kernel/linux-2.6/drivers/staging/wlan-ng/p80211wep.c: In function 'wep_decrypt':
/home/teawater/kernel/linux-2.6/drivers/staging/wlan-ng/p80211wep.c:229:1: internal compiler error: in form_sum, at reload.c:5331
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make[3]: *** [drivers/staging/wlan-ng/p80211wep.o] Error 1
make[2]: *** [drivers/staging/wlan-ng/p80211wep.o] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

I am not sure you can very easy reproduce this issue without all kernel source.

teawater (teawater) wrote :

Faint. prev comment is for other issue. Sorry for my mistake.

Matthias Klose (doko) wrote :

updated gcc-4.5 packages can be found in
https://launchpad.net/~ubuntu-toolchain-r/+archive/ppa/

won't fix this any directly in maverick

Changed in gcc-4.5 (Ubuntu Maverick):
assignee: Matthias Klose (doko) → nobody
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers