other/4520: cselib.c hash_rtx incorrectly hashes based on rtx address

dje@watson.ibm.com dje@watson.ibm.com
Wed Oct 10 07:56:00 GMT 2001


>Number:         4520
>Category:       other
>Synopsis:       cselib.c hash_rtx incorrectly hashes based on rtx address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 10 07:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     dje@watson.ibm.com
>Release:        3.1 (experimental)
>Organization:
>Environment:
powerpc-ibm-aix4.3
>Description:
cselib.c hash_rtx hashes based on the address of a symbol
or label instead of the contents, assuming that a
symbol will be unique and only appear once.  Hashing based
on the address of internal GCC data structures can produce
non-deterministic results.
>How-To-Repeat:

>Fix:
Work-around error by not applying ggc_strdup() to symbols
in rs6000.c which covers up the design mistake.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list