• Hiroshi Ioka's avatar
    cmd/cgo: support large unsigned macro again · f74b52cf
    Hiroshi Ioka authored
    The approach of https://golang.org/cl/43476 turned out incorrect.
    The problem is that the sniff introduced by the CL only work for simple
    expression. And when it fails it fallback to uint64, not int64, which
    breaks backward compatibility.
    In this CL, we use DWARF for guessing kind instead. That should be more
    reliable than previous approach. And importanly, it fallbacks to int64 even
    if it fails to guess kind.
    
    Fixes #21708
    
    Change-Id: I39a18cb2efbe4faa9becdcf53d5ac68dba180d46
    Reviewed-on: https://go-review.googlesource.com/60510
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    f74b52cf
Name
Last commit
Last update
..
android Loading commit data...
arm Loading commit data...
cgo Loading commit data...
chrome/gophertool Loading commit data...
git Loading commit data...
ios Loading commit data...
linkcheck Loading commit data...
nacl Loading commit data...
sortac Loading commit data...
swig Loading commit data...
trace Loading commit data...
benchcmp Loading commit data...
editors Loading commit data...