1
0
mirror of https://github.com/golang/go synced 2024-11-17 19:25:13 -07:00
go/misc/cgo
Ian Lance Taylor dcaac4b365 cmd/cgo: match note following error in compiler errors
With current GCC a macro that refers to another macro can report an
error on the macro definition line, with a note on the use.
When cgo is trying to decide which line an error refers to,
it is looking at the uses. So if we see an error on a line that we
don't recognize followed by a note on a line that we do recognize,
treat the note as an error.

Fixes #20125.

Change-Id: I389cd0eb7d56ad2d54bef70e278d9f76c4d36448
Reviewed-on: https://go-review.googlesource.com/44290
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Hiroshi Ioka <hirochachacha@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-06-14 17:07:19 +00:00
..
errors cmd/cgo: show pos info in undefined name errors 2017-06-03 16:08:49 +00:00
fortran *.bash: always use the same string equality operator 2017-03-14 21:46:31 +00:00
gmp
life
nocgo
stdio
test cmd/cgo: match note following error in compiler errors 2017-06-14 17:07:19 +00:00
testasan
testcarchive misc/cgo/testcarchive: fix go env error message 2017-05-24 22:27:16 +00:00
testcshared runtime: use hardware divider to improve performance 2017-04-11 12:25:55 +00:00
testgodefs cmd/cgo: add -srcdir option 2016-10-30 19:14:08 +00:00
testplugin plugin: resolve plugin import path issue 2017-04-26 00:54:54 +00:00
testsanitizers *.bash: always use the same string equality operator 2017-03-14 21:46:31 +00:00
testshared cmd/link: only include the version info and export data in ABI hash 2017-04-17 22:02:01 +00:00
testsigfwd misc/cgo/testsigfwd: add missing return statement 2016-08-30 21:44:14 +00:00
testso
testsovar
testtls