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
gollvm: add 32bit (i386) port #40244
Comments
CC @thanm @cherrymui I'm not clear: do you have patches to send? Thanks. |
@ianlancetaylor , I am on my way to find what to patch. Would require some verification from the committers.
|
In driver/GollvmOptions.td: |
In cmake/modules/LibbacktraceUtils.cmake : |
In cmake/modules/GoVars.cmake : |
In cmake/modules/AutoGenGo.cmake : |
Function CompileGoImpl::setCConv() , at https://go.googlesource.com/gollvm/+/refs/heads/master/driver/CompileGo.cpp#816 should have switches for i386 and i686 related scenarios.
|
not clear if there is something that should be hardcode, specifically for scenarios of i386 and i686 CPUs (respectively), as it is done for x86_64 - at https://go.googlesource.com/gollvm/+/refs/heads/master/libgo/CMakeLists.txt#447.
Add attributes for i38 and i686 architectures, respectively. |
@thanm, why can't your project integrate https://github.com/intel-go/cpuid ? |
@linux4life798 , @bramp - please follow up |
Lots of comments and observations here, sounds like the next step is to write some patches. |
@thanm , I was trying to say that a cooperated review is required (a reason for a community call?). |
Closing this in favor of #42440 |
What version of Go are you using (
go version
)?go1.14.4
Does this issue reproduce with the latest release?
Not yet - that is yet to be implemented
What operating system and processor architecture are you using (
go env
)?386
Intel® Core™2 Quad CPU Q9400
Suggesting patches, while would allow https://go.googlesource.com/gollvm/ to support 32bit version of Golang.
Currently suggesting tests on Linux (Fedora 25; Ubuntu 16) and Windows 10 (32bit).
Ivan
The text was updated successfully, but these errors were encountered: