• 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
..
ast.go Loading commit data...
doc.go Loading commit data...
gcc.go Loading commit data...
godefs.go Loading commit data...
main.go Loading commit data...
out.go Loading commit data...
util.go Loading commit data...