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

[BUG]: debug labels are not hidden on GCC MIPS and LoongArch #6392

Open
jf2048 opened this issue Apr 23, 2024 · 0 comments
Open

[BUG]: debug labels are not hidden on GCC MIPS and LoongArch #6392

jf2048 opened this issue Apr 23, 2024 · 0 comments
Labels

Comments

@jf2048
Copy link

jf2048 commented Apr 23, 2024

Describe the bug

When using gcc mips, gcc mips64, or gcc loongarch64, many debug labels beginning with $LVL $LBE and $LBB are present in the assembly output. This makes the output very hard to read. The problem is pronounced when using optimization flags as they add a lot more of these labels.

As a workaround, the labels can be disabled by manually passing the -g0 flag, but that also prevents the line colouring from working.

Steps to reproduce

  1. Visit gcc.godbolt.org
  2. Select any of the mips gcc, mips64 gcc or loongarch64 gcc compilers
  3. Write a function with a few statements
  4. Add the -O flag to compiler options
  5. Look in the assembly output

Expected behavior

I expect the output to match the behavior of the other compilers, where these labels are hidden.

Reproduction link

https://gcc.godbolt.org/z/qvr915Ysz

Screenshots

Screenshot

Operating System

No response

Browser version

No response

@jf2048 jf2048 added the bug label Apr 23, 2024
jf2048 added a commit to jf2048/compiler-explorer that referenced this issue May 11, 2024
jf2048 added a commit to jf2048/compiler-explorer that referenced this issue May 15, 2024
jf2048 added a commit to jf2048/compiler-explorer that referenced this issue May 15, 2024
jf2048 added a commit to jf2048/compiler-explorer that referenced this issue May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant