This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/6821: GNU recode cannot be compiled with -O by gcc-3.1
- From: Stanislav Brabec <utx at penguin dot cz>
- To: gcc-gnats at gcc dot gnu dot org
- Date: Sun, 26 May 2002 21:06:39 +0200
- Subject: c/6821: GNU recode cannot be compiled with -O by gcc-3.1
>Number: 6821
>Category: c
>Synopsis: GNU recode cannot be compiled with -O by gcc-3.1
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Sun May 26 12:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Stanislav Brabec
>Release: 3.1
>Organization:
UTX
>Environment:
System: Linux utx 2.4.19-pre8 #12 Ne kvì 12 14:10:04 CEST 2002 i686 unknown
Architecture: i686
<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/var/cache --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --disable-static --with-pic --with-system-zlib --verbose --enable-static : (reconfigured) ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/var/cache --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --disable-static --with-pic --with-system-zlib --verbose
gcc was compiled with -O3
>Description:
I have tried to compile GNU recode-3.5 using gcc-3.1 on my machine
(glibc-2.2.5, target i686)
The result was immediate segfault of compiled recode:
recode latin-2..latin-1
Note that recode was compiled using --enable-shared --disable-static --prefix=/usr
Buggy codes:
gcc-3.1 -O
gcc-3.1 -O2
gcc-3.1 -O3
Correct codes:
gcc-3.1 -O0 -g
gcc-3.0.4 -O3
(Both compilers was compiled from CVS tags: gcc_3_0_4_release and
gcc_3_1_release) and self-recompiled using -O3.)
(Sorry for vague report, but I am not able to detect, which part of recode causes the problem.)
>How-To-Repeat:
<When reporting a compiler error, preprocessor output must be included>
>Fix:
<how to correct or work around the problem, if known (multiple lines)>
>Release-Note:
>Audit-Trail:
>Unformatted: