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

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
>Originator:     Stanislav Brabec
>Release:        3.1
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
	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.)

	<When reporting a compiler error, preprocessor output must be included>
	<how to correct or work around the problem, if known (multiple lines)>

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