This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

optimization/755: Unitialized variable in cse_insn



>Number:         755
>Category:       optimization
>Synopsis:       Unitialized variable in cse_insn
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 09 05:36:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Hartmut Penner
>Release:        egcs-20001109
>Organization:
>Environment:
gcc s390 backend
>Description:
Compiler does not bootstrap clean, due to uninitialized	
variable in cse. Depending on the of the optimization of the 
host compiler, the produced compiler delivers different code.

The variable is 'src_folded_regcost' in cse.c. The compiler
is complains that this variable could be used uninitialized.
The variable is only set if src_folded is set, but is always
used.
>How-To-Repeat:

>Fix:
Initialize 'src_folded_regcost' to -1. 
>Release-Note:
>Audit-Trail:
>Unformatted:

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