• 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
..
errors Loading commit data...
fortran Loading commit data...
gmp Loading commit data...
life Loading commit data...
nocgo Loading commit data...
stdio Loading commit data...
test Loading commit data...
testasan Loading commit data...
testcarchive Loading commit data...
testcshared Loading commit data...
testgodefs Loading commit data...
testplugin Loading commit data...
testsanitizers Loading commit data...
testshared Loading commit data...
testsigfwd Loading commit data...
testso Loading commit data...
testsovar Loading commit data...
testtls Loading commit data...