[Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
t dot artem at mailcity dot com
gcc-bugzilla@gcc.gnu.org
Wed May 19 23:17:00 GMT 2004
**********************************************************************
Backgroung and bug information:
Splay library is used for decoding Mpeg I Layer 1,2,3 audio
streams. The bug can be heard when you are listening to
particular mp3 files (not every) using noatun, kaboodle, or
any other application using shared libmpeg-0.3.0.so KDE 3.2.2
library. (The easiest way to do so is to `artsplay file.mp3`).
The problem occurs as a constant sound distortion that is
cleary heard when listening to vocal without background
instruments.
**********************************************************************
Technical information:
GCC 3.4.0 release (vanilla, no patches applied) miscompiles
splay library found in kdemultimedia-3.2.2 package under
mpeglib/lib/splay path. C++ and C FLAGS used for compilation
are "-march=pentium2 -O2" and the ones set by KDE multimedia
package configure script. GCC 3.3.3 compiles this library
correctly.
These are the sizes of the objects compiled by different GCC
versions:
-rw-r--r-- 1 root root 155532 May 18 18:22 libsplay.o.333
-rw-r--r-- 1 root root 165628 May 18 18:46 libsplay.o.340
I also attach (C++) PreProcessor results
-rw-r--r-- 1 root root 278256 May 18 18:51 source.cpp.333
-rw-r--r-- 1 root root 272603 May 18 18:47 source.cpp.340
**********************************************************************
KDE Multimedia library was configured this way:
export CFLAGS="-march=pentium2 -O2"
export CXXFLAGS="-march=pentium2 -O2"
./configure --prefix=/opt/kde3 --with-gnu-ld --enable-final --disable-debug \
--with-xinerama --with-xine-prefix=/usr/local --with-esd-prefix=/usr \
--with-alsa-prefix=/usr --with-alsa --with-arts-alsa
**********************************************************************
The splay library was compiled this way:
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/opt/kde3/include -I/usr/lib/qt3/include \
-I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor \
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align \
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG \
-DNO_DEBUG -O2 -march=pentium2 -O2 -Wformat-security -Wmissing-format-attribute \
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST \
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT source.cpp -o libsplay.o
**********************************************************************
I'm running Fedore Core 1 x86 i386 compatible distributive with
1) Glibc 2.3.2 library
2) Binutils 2.15.90.0.3 (taken from Fedore Core 2)
3) Vanilla QT 3.2.2 library
4) Vanilla kernels 2.4.26 (GCC 2.95) and 2.6.6 (GCC 3.4.0)
GCC 3.3.3, 3.4.0 (both vanilla) were compiled (by themselves) this way:
./configure --enable-shared --enable-threads=posix --disable-checking \
--with-system-zlib --enable-__cxa_atexit --enable-multilib --with-gnu-as \
--with-gnu-ld --enable-languages="c,c++" --without-x --prefix=/opt/gcc3 \
--enable-long-long
**********************************************************************
I have a 600Mhz Pentium 3EB processor and Sound Blaster Live audio PC
using both Open Sound System and ALSA kernel sound modules.
With respect, Artem Tashkinov
--
Summary: GCC 3.4.0 release (vanilla, no patches applied)
miscompiles splay library
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: t dot artem at mailcity dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15537
More information about the Gcc-bugs
mailing list