Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/cgo: -Waddress-of-packed-member warnings poping up with gcc9 in cgo-gcc-prolog [1.11 backport] #29967

gopherbot opened this issue Jan 28, 2019 · 2 comments


Copy link

commented Jan 28, 2019

@ianlancetaylor requested issue #29962 to be considered for backport to the next 1.11 minor release.

@gopherbot please open backport issues


This comment has been minimized.

Copy link

commented Jan 30, 2019

Change mentions this issue: [release-branch.go1.11] cmd/cgo: disable GCC 9 warnings triggered by cgo code

gopherbot pushed a commit that referenced this issue Feb 1, 2019
[release-branch.go1.11] cmd/cgo: disable GCC 9 warnings triggered by …
…cgo code

GCC 9 has started emitting warnings when taking the address of a field
in a packed struct may cause a misaligned pointer. We use packed
structs in cgo to ensure that our field layout matches the C
compiler's layout. Our pointers are always aligned, so disable the warning

Updates #29962
Fixes #29967

Change-Id: I7e290a7cf694a2c2958529e340ebed9fcd62089c
Run-TryBot: Ian Lance Taylor <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: Bryan C. Mills <>
(cherry picked from commit f2a416b)
Run-TryBot: Brad Fitzpatrick <>
Reviewed-by: Brad Fitzpatrick <>

This comment has been minimized.

Copy link

commented Feb 1, 2019

Closed by merging e104ebf to release-branch.go1.11.

@gopherbot gopherbot closed this Feb 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.