compiler-explorer: [BUG]: mips64 (el) GCC appears to actually be 32-bit
Describe the bug
The MIPS64 EL compilers (e.g. “mips64 (el) gcc 13.2.0”) appear to not actually be 64-bit, instead emitting 32-bit MIPS code.
Steps to reproduce
- Visit godbolt.org
- Use the “mips64 (el) gcc 13.2.0” compiler (or any other “mips64 (el) gcc”)
- Observe the output being 32-bit code instead of 64-bit code (in particular visible when using e.g.
void *
,size_t
or 64-bit arithmetic in general - which can easily be compared with the “mips64 gcc” (not el) compilers, which do emit 64-bit code
Expected behavior
I expected 64-bit code to be emitted instead of 32-bit code.
Reproduction link
https://godbolt.org/z/oPPv7Gzn5
Screenshots
Not applicable
Operating System
Fedora release 39 (Thirty Nine)
Browser version
Mozilla Firefox 121.0
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Comments: 16 (16 by maintainers)
Commits related to this issue
- mips64*: fix ABI All mips64el and some (not enabled yet) mips64 compilers were using the 32-bits ABI instead of the 64-bits one. Setting ABI to be 64-bits for all the compilers. Refs https://github... — committed to compiler-explorer/gcc-cross-builder by dkm 6 months ago
- fix gcc toolchain overloading in build.sh The LD_LIBRARY_PATH was not pointing to correct location and was also including $PATH instead of $LD_LIBRARY_PATH. refs https://github.com/compiler-explorer... — committed to compiler-explorer/gcc-cross-builder by dkm 5 months ago
Thanks for checking!
I hadn’t been able to look at this until now, but I can say it looks good to me too
Rebuilt most compilers… only 64el 13.2 and 13.1 are not happy.
Probably something stupid.