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

  1. Visit godbolt.org
  2. Use the “mips64 (el) gcc 13.2.0” compiler (or any other “mips64 (el) gcc”)
  3. 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

Most upvoted comments

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.

 199   │ 2024-01-15T20:44:51.4758686Z [INFO ]  =================================================================
 200   │ 2024-01-15T20:44:51.4766803Z [INFO ]  Installing GMP for host
 201   │ 2024-01-15T20:44:51.4796778Z [EXTRA]    Configuring GMP
 202   │ 2024-01-15T20:44:53.5513580Z [ERROR]    configure: error: C++ compiler not available, see config.log for details
 203   │ 2024-01-15T20:44:53.5707377Z [ERROR]  
 204   │ 2024-01-15T20:44:53.5716779Z [ERROR]  >>
 205   │ 2024-01-15T20:44:53.5724581Z [ERROR]  >>  Build failed in step 'Installing GMP for host'
 206   │ 2024-01-15T20:44:53.5732373Z [ERROR]  >>        called in step '(top-level)'
 207   │ 2024-01-15T20:44:53.5739989Z [ERROR]  >>
 208   │ 2024-01-15T20:44:53.5748698Z [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@377]
 209   │ 2024-01-15T20:44:53.5758630Z [ERROR]  >>        called from: do_gmp_backend[scripts/build/companion_libs/100-gmp.sh@128]
 210   │ 2024-01-15T20:44:53.5766991Z [ERROR]  >>        called from: do_gmp_for_host[scripts/build/companion_libs/100-gmp.sh@58]
 211   │ 2024-01-15T20:44:53.5775627Z [ERROR]  >>        called from: do_companion_libs_for_host[scripts/build/companion_libs.sh@36]
 212   │ 2024-01-15T20:44:53.5784011Z [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@707]
 213   │ 2024-01-15T20:44:53.5804155Z [ERROR]  >>
 214   │ 2024-01-15T20:44:53.5815050Z [ERROR]  >>  For more info on this error, look at the file: 'build.log'
 215   │ 2024-01-15T20:44:53.5824382Z [ERROR]  >>  There is a list of known issues, some with workarounds, in:
 216   │ 2024-01-15T20:44:53.5834610Z [ERROR]  >>      https://crosstool-ng.github.io/docs/known-issues/

Probably something stupid.