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

x/sys/unix: functions redeclared in gccgo builds #18312

Closed
stjj89 opened this issue Dec 14, 2016 · 3 comments
Closed

x/sys/unix: functions redeclared in gccgo builds #18312

stjj89 opened this issue Dec 14, 2016 · 3 comments
Milestone

Comments

@stjj89
Copy link
Contributor

stjj89 commented Dec 14, 2016

In gccgo builds, the {Raw,}Syscall{,6} and gettimeofday functions in go.sys/unix are redeclared.

While gccgo tolerates this, this is technically incorrect according to the spec (https://golang.org/ref/spec#Declarations_and_scope):

"No identifier may be declared twice in the same block..."

@gopherbot
Copy link

CL https://golang.org/cl/34379 mentions this issue.

@bradfitz bradfitz added this to the Gccgo milestone Dec 14, 2016
@bradfitz
Copy link
Contributor

Is there a bug tracking why gccgo tolerates that?

/cc @ianlancetaylor

@bradfitz bradfitz changed the title go.sys/unix: functions redeclared in gccgo builds x/sys/unix: functions redeclared in gccgo builds Dec 14, 2016
@ianlancetaylor
Copy link
Contributor

@bradfitz There is an Google-internal bug report against gccgo for this behavior. I'm not aware of an external one.

@golang golang locked and limited conversation to collaborators Dec 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants