This is the mail archive of the gcc-bugs@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]

[Bug target/27363] ARM gcc 4.1 optimization bug



------- Comment #6 from dirk dot behme at googlemail dot com  2006-06-07 15:52 -------
Created an attachment (id=11628)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11628&action=view)
.i file of pcm_native.c and .s files for -Os, -O1 and -O2


Attached the .i and .s for -Os & -O2 (failing) and -O1 (working) (generated
with --save-temps).

Used compile options (from Linux kernel 2.6.17-rc5):

 arm-linux-gcc -Wp,-MD,sound/core/.pcm_native.o.d -nostdinc -isystem
/usr/arm/arm-linux_4_1_0/bin/../lib/gcc/arm-linux/4.1.0/include -D__KERNEL__
-Iinclude  -include include/linux/autoconf.h -mlittle-endian -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O1
-fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-omit-frame-pointer
-mapcs -mno-sched-prolog -mabi=apcs-gnu -mno-thumb-interwork
-D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi  -msoft-float -Uarm
-Wdeclaration-after-statement -Wno-pointer-sign   -DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(pcm_native)"
-D"KBUILD_MODNAME=KBUILD_STR(snd_pcm)" --save-temps -c -o
sound/core/pcm_native.o sound/core/pcm_native.c

Only -O1 & -O2 & -Os were modified.

Small note:

While compiling only pcm_native.c with -O1 and using the resulting modules (4
modules depend on it) while using -Os for all other modules make the error I
observed go away. However, I get no sound output like if I compile all sound
modules with -O1. Seems that some other files of kernels sound system have (the
same?) optimization issue as well. But I think to start we should concentrate
on this file.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27363


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