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 optimization/14110] altivec code misoptimized with any -O


------- Additional Comments From khalek at linuxgamers dot net  2004-03-15 12:10 -------
I have something similiar when attempting to build mpegvideo_altivec.c from ffmpeg. 

The following command always gives an ICE:
gcc -Wall  -maltivec -mabi=altivec -g -O3 -DHAVE_AV_CONFIG_H -I..
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o
ppc/mpegvideo_altivec.o ppc/mpegvideo_altivec.c

Only when dropping -O entirely does it compile.

Output when adding -v and -save-tempts is as follows:

Reading specs from /usr/lib/gcc-lib/powerpc-linux/3.3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-java-gc=boehm --enable-java-awt=xlib
--enable-objc-gc --disable-multilib powerpc-linux
Thread model: posix
gcc version 3.3.3 (Debian 20040306)
 /usr/lib/gcc-lib/powerpc-linux/3.3.3/cc1 -E -quiet -v -I.. -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D__unix__ -D__gnu_linux__
-D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix
-DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
ppc/mpegvideo_altivec.c -maltivec -mabi=altivec -Wall -O3 mpegvideo_altivec.i
ignoring nonexistent directory "/usr/powerpc-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 ..
 /usr/local/include
 /usr/lib/gcc-lib/powerpc-linux/3.3.3/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/powerpc-linux/3.3.3/cc1 -fpreprocessed mpegvideo_altivec.i
-quiet -dumpbase mpegvideo_altivec.c -maltivec -mabi=altivec -auxbase-strip
ppc/mpegvideo_altivec.o -g -O3 -Wall -version -o mpegvideo_altivec.s
GNU C version 3.3.3 (Debian 20040306) (powerpc-linux)
        compiled by GNU C version 3.3.3 (Debian 20040306).
GGC heuristics: --param ggc-min-expand=72 --param ggc-min-heapsize=80312
ppc/mpegvideo_altivec.c: In function `dct_quantize_altivec':
ppc/mpegvideo_altivec.c:516: internal compiler error: in
add_location_or_const_value_attribute, at dwarf2out.c:9496
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 


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


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