]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: use SHA1-hash for symname for long gcbits symbols
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 May 2019 13:48:18 +0000 (13:48 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 May 2019 13:48:18 +0000 (13:48 +0000)
commitef1ddaf3e250eec28adf7530c6bd08da2f5eee94
tree9c3427f65a71ef2e1e9898a94bca32ad10c9b59e
parent46feabd30d3f69a60bf6ce2dd194f48b7f06090a
compiler: use SHA1-hash for symname for long gcbits symbols

    The current scheme used by the compiler for "gcbits" symbols involves
    generating a symbol name based on a 32-char encoding of the bits data.
    This scheme works well in most cases but can generate very long symbol
    names in rare cases. To help avoid such long symbol names, switch to a
    different encoding scheme based on the SHA1 digest of the payload if
    the symbol size would be too large.

    Fixes golang/go#32083.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/177598

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271322 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.cc