cmd/go: different cgo output for gc and gccgo #20910
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
I have a wrapper for PAM which involves calling a Go function from C. The Go function returns multiple values.
An issue was reported when compiling with gccgo. After some investigation I noticed the name of the struct generated for gccgo is different:
Everything else appears to be the same. Changing the struct name in my C program solves the problem. Is this intended? If so, what is the correct way to detect gccgo in the C program in order to use the alternate definition?
I saw the same result with 1.7 and 1.8.
What did you expect to see?
The same cgo struct names for gc and gccgo.
What did you see instead?
The struct names differ.
The text was updated successfully, but these errors were encountered: