Bug 5594

Summary: Apparent optimizing bug in egcs
Product: [Retired] Red Hat Linux Reporter: guichard
Component: egcsAssignee: Cristian Gafton <gafton>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-07 21:50:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test case and further discussion from reporter none

Description guichard 1999-10-05 17:17:21 UTC
Trying to compile amaya 2.1 I get errors like this:

../../thotlib/unicode/ustring.c: In function `ustrcpy':
../../thotlib/unicode/ustring.c:380: void value not ignored
as it ought to be
../../thotlib/unicode/ustring.c: In function `ustrdup':
../../thotlib/unicode/ustring.c:397: void value not ignored
as it ought to be
../../thotlib/unicode/ustring.c: In function `ustrncpy':
../../thotlib/unicode/ustring.c:481: void value not ignored
as it ought to be

When I compile without -O it works fine. I get this behavior
in egcs-1.1.2-12 on intel and egcs-1.1.2-12 & -13 on sparc,
both with 6.0 (sparc with updated kernel). There is no
problem with gcc-2.7.2.3-11 on my redhat 5.1 machine.

Comment 1 Jim Kingdon 1999-10-05 20:39:59 UTC
Please send the output of gcc -E on the file in question, combined
with the exact command line (e.g "gcc -g -O foo.c") required to
get the error.

Incidentally, I would guess the difference between your two
systems is because of different libraries rather than
gcc2.7 vs. egcs.  But send in the code and I'll have a look.

Comment 2 Jim Kingdon 2000-01-26 17:52:59 UTC
Created attachment 79 [details]
Test case and further discussion from reporter

Comment 3 Cristian Gafton 2000-02-07 21:50:59 UTC
The glibc headers should fix this in the current rawhide version