]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: stop expanding typedefs once we reach __builtin types
authorKeith Randall <khr@golang.org>
Wed, 1 Aug 2018 04:31:19 +0000 (21:31 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 1 Aug 2018 14:29:58 +0000 (14:29 +0000)
commitb8669ef1ceabd386b58a99b4e2f4e67915fec428
treeba7550386a38b542d1142512c5e1071797fff687
parent6b9c782f9fe7c2f241776f39527714bcfcc24910
cmd/cgo: stop expanding typedefs once we reach __builtin types

Expanding __builtin types (__builtin_va_list, particularly) leads
to problems because they are expanded by the compiler itself - the
expansions are not generated by anything in a .h file. The types
a __builtin type expand to are thus very confusing to cgo.

See CL 126275.

Change-Id: I66eb6a4f27f652f1b934ba702f580f6daa62a566
Reviewed-on: https://go-review.googlesource.com/127156
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/gcc.go