optimization/755: Unitialized variable in cse_insn
hpenner@de.ibm.com
hpenner@de.ibm.com
Thu Nov 9 05:36:00 GMT 2000
>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:
More information about the Gcc-bugs
mailing list