public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
@ 2004-05-19 23:17 t dot artem at mailcity dot com
  2004-05-19 23:26 ` [Bug c++/15537] " t dot artem at mailcity dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: t dot artem at mailcity dot com @ 2004-05-19 23:17 UTC (permalink / raw)
  To: gcc-bugs

**********************************************************************
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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
@ 2004-05-19 23:26 ` t dot artem at mailcity dot com
  2004-05-19 23:34 ` t dot artem at mailcity dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: t dot artem at mailcity dot com @ 2004-05-19 23:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From t dot artem at mailcity dot com  2004-05-19 05:13 -------
Created an attachment (id=6336)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6336&action=view)
Source after GCC 3.3.3 preprocessor


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
  2004-05-19 23:26 ` [Bug c++/15537] " t dot artem at mailcity dot com
@ 2004-05-19 23:34 ` t dot artem at mailcity dot com
  2004-05-19 23:36 ` t dot artem at mailcity dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: t dot artem at mailcity dot com @ 2004-05-19 23:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From t dot artem at mailcity dot com  2004-05-19 05:14 -------
Created an attachment (id=6337)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6337&action=view)
Source after GCC 3.4.0 preprocessor


-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
  2004-05-19 23:26 ` [Bug c++/15537] " t dot artem at mailcity dot com
  2004-05-19 23:34 ` t dot artem at mailcity dot com
@ 2004-05-19 23:36 ` t dot artem at mailcity dot com
  2004-05-20  1:11 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: t dot artem at mailcity dot com @ 2004-05-19 23:36 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet|                            |i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
                   ` (2 preceding siblings ...)
  2004-05-19 23:36 ` t dot artem at mailcity dot com
@ 2004-05-20  1:11 ` pinskia at gcc dot gnu dot org
  2004-05-20  1:18 ` [Bug c++/15537] [3.4/3.5? Regression] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-20  1:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-19 12:14 -------
Can you provide the preprocessed source code which can be compiled, the 3.3.3 
preprocessed source code gives errors when compiling with 3.3.3:
pr15537.33.cc:114: error: redeclaration of C++ built-in type `wchar_t'
pr15537.33.cc: In member function `int MpegAudioHeader::getChannelbitrate()':
pr15537.33.cc:1789: error: `cout' undeclared (first use this function)
pr15537.33.cc:1789: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
pr15537.33.cc:1789: error: `endl' undeclared (first use this function)
pr15537.33.cc: In constructor `MpegAudioStream::MpegAudioStream()':
pr15537.33.cc:2203: error: invalid conversion from `void*' to `char*'


The 3.4.0 one does with 3.4.0 also:
mpegAudioInfo.cpp: In member function `void MpegAudioInfo::print(const char*)':
mpegAudioInfo.cpp:222: error: `cout' undeclared (first use this function)
mpegAudioInfo.cpp:222: error: `endl' undeclared (first use this function)
mpegAudioInfo.cpp: In member function `int 
MpegAudioInfo::getFrame(MpegAudioFrame*)':
mpegAudioInfo.cpp:256: error: `cout' undeclared (first use this function)
mpegAudioInfo.cpp:256: error: `endl' undeclared (first use this function)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] [3.4/3.5? Regression] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
                   ` (3 preceding siblings ...)
  2004-05-20  1:11 ` pinskia at gcc dot gnu dot org
@ 2004-05-20  1:18 ` pinskia at gcc dot gnu dot org
  2004-05-20  2:34 ` t dot artem at mailcity dot com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-20  1:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-19 12:16 -------
Also does -fno-unit-at-a-time help?

Or -fno-strict-aliasing?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Summary|GCC 3.4.0 release (vanilla, |[3.4/3.5? Regression] GCC
                   |no patches applied)         |3.4.0 release (vanilla, no
                   |miscompiles splay library   |patches applied) miscompiles
                   |                            |splay library
   Target Milestone|---                         |3.4.1


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] [3.4/3.5? Regression] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
                   ` (4 preceding siblings ...)
  2004-05-20  1:18 ` [Bug c++/15537] [3.4/3.5? Regression] " pinskia at gcc dot gnu dot org
@ 2004-05-20  2:34 ` t dot artem at mailcity dot com
  2004-05-20  4:54 ` t dot artem at mailcity dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: t dot artem at mailcity dot com @ 2004-05-20  2:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From t dot artem at mailcity dot com  2004-05-19 12:59 -------
When I runned cpp on this code it warned that <iostream> file can't be included.
So I feel that the inclusion of <iostream> in the beginning of the file will let
you compile the code

-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] [3.4/3.5? Regression] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
                   ` (5 preceding siblings ...)
  2004-05-20  2:34 ` t dot artem at mailcity dot com
@ 2004-05-20  4:54 ` t dot artem at mailcity dot com
  2004-05-20  5:09 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: t dot artem at mailcity dot com @ 2004-05-20  4:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From t dot artem at mailcity dot com  2004-05-19 13:00 -------
I can attach the complete source code of this libary tomorrow if you'd like to
have it here

-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] [3.4/3.5? Regression] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
                   ` (6 preceding siblings ...)
  2004-05-20  4:54 ` t dot artem at mailcity dot com
@ 2004-05-20  5:09 ` pinskia at gcc dot gnu dot org
  2004-05-29 22:37 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-20  5:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-19 13:01 -------
Use the "-save-temps" option instead using cpp directly.

-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] [3.4/3.5? Regression] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
                   ` (7 preceding siblings ...)
  2004-05-20  5:09 ` pinskia at gcc dot gnu dot org
@ 2004-05-29 22:37 ` mmitchel at gcc dot gnu dot org
  2004-06-02  4:27 ` t dot artem at mailcity dot com
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-05-29 22:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-05-28 22:06 -------
This should not have a target milestone until we've confirmed that it's really a
bug in G++, so I've removed that.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.1                       |---


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/15537] [3.4/3.5? Regression] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
                   ` (8 preceding siblings ...)
  2004-05-29 22:37 ` mmitchel at gcc dot gnu dot org
@ 2004-06-02  4:27 ` t dot artem at mailcity dot com
  2004-08-12  7:55 ` [Bug rtl-optimization/15537] " pinskia at gcc dot gnu dot org
  2004-11-27 19:50 ` [Bug rtl-optimization/15537] [3.4/4.0? " pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: t dot artem at mailcity dot com @ 2004-06-02  4:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From t dot artem at mailcity dot com  2004-06-02 04:27 -------
The library code has been slightly changed as for KDE 3.3 alpha 1 version and
GCC 3.4 manages to compile it correctly. Though the issue with KDE 3.2.2 remains.

-- 


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug rtl-optimization/15537] [3.4/3.5? Regression] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
                   ` (9 preceding siblings ...)
  2004-06-02  4:27 ` t dot artem at mailcity dot com
@ 2004-08-12  7:55 ` pinskia at gcc dot gnu dot org
  2004-11-27 19:50 ` [Bug rtl-optimization/15537] [3.4/4.0? " pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-12  7:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-12 07:55 -------
I almost think this is the normal FP "non-bug", 323.
Can you try with -ffloat-store if that works this is the normal "non-bug"?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |rtl-optimization


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug rtl-optimization/15537] [3.4/4.0? Regression] GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library
  2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
                   ` (10 preceding siblings ...)
  2004-08-12  7:55 ` [Bug rtl-optimization/15537] " pinskia at gcc dot gnu dot org
@ 2004-11-27 19:50 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-27 19:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-27 19:50 -------
No feedback in 3 months.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-11-27 19:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-19 23:17 [Bug c++/15537] New: GCC 3.4.0 release (vanilla, no patches applied) miscompiles splay library t dot artem at mailcity dot com
2004-05-19 23:26 ` [Bug c++/15537] " t dot artem at mailcity dot com
2004-05-19 23:34 ` t dot artem at mailcity dot com
2004-05-19 23:36 ` t dot artem at mailcity dot com
2004-05-20  1:11 ` pinskia at gcc dot gnu dot org
2004-05-20  1:18 ` [Bug c++/15537] [3.4/3.5? Regression] " pinskia at gcc dot gnu dot org
2004-05-20  2:34 ` t dot artem at mailcity dot com
2004-05-20  4:54 ` t dot artem at mailcity dot com
2004-05-20  5:09 ` pinskia at gcc dot gnu dot org
2004-05-29 22:37 ` mmitchel at gcc dot gnu dot org
2004-06-02  4:27 ` t dot artem at mailcity dot com
2004-08-12  7:55 ` [Bug rtl-optimization/15537] " pinskia at gcc dot gnu dot org
2004-11-27 19:50 ` [Bug rtl-optimization/15537] [3.4/4.0? " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).