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

Avoid internal compiler error on gccgo #582

Merged
merged 1 commit into from Mar 23, 2016

Conversation

bz2
Copy link

@bz2 bz2 commented Mar 23, 2016

Something in the handling of constants by gccgo 4.9 blows up
when trying to compile api.go:

In function ‘v5.WillIncludeMetadata.pN59_gopkg_in_juju_charmstore_v5_unstable_internal_v5.ReqHandler’:
go1: internal compiler error: in fold_binary_loc, at fold-const.c:10124

Adjusting the switch statement to look at type rather than compare
against literals avoids the issue.

Something in the handling of constants by gccgo 4.9 blows up
when trying to compile api.go:

In function ‘v5.WillIncludeMetadata.pN59_gopkg_in_juju_charmstore_v5_unstable_internal_v5.ReqHandler’:
go1: internal compiler error: in fold_binary_loc, at fold-const.c:10124

Adjusting the switch statement to look at type rather than compare
against literals avoids the issue.
@jujugui
Copy link
Contributor

jujugui commented Mar 23, 2016

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmstore/1668/
Test PASSed.

@cherylj
Copy link

cherylj commented Mar 23, 2016

@cherylj
Copy link

cherylj commented Mar 23, 2016

LGTM

@bz2
Copy link
Author

bz2 commented Mar 23, 2016

:shipit:

@jujugui
Copy link
Contributor

jujugui commented Mar 23, 2016

Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/charmstore-merge

@jujugui jujugui merged commit dab0340 into juju:v5-unstable Mar 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants