#1040444 g++-12: internal compiler error: output_operand: '%&' used without any local dynamic TLS references

Package:
g++-12
Source:
g++-12
Description:
GNU C++ compiler
Submitter:
Mike Hommey
Date:
2023-07-09 15:21:08 UTC
Severity:
normal
#1040444#5
Date:
2023-07-06 00:17:39 UTC
From:
To:
Dear Maintainer,

GCC ICEs while building Firefox on powerpc64el:
https://buildd.debian.org/status/fetch.php?pkg=firefox&arch=ppc64el&ver=115.0-1&stamp=1688557472&raw=0

Steps to reproduce:
- Uncompress the attached file
- On ppc64el, run: g++ -o Unified_cpp_gfx_skia17.o -c Unified_cpp_gfx_skia17.ii -fno-exceptions -fno-strict-aliasing -fPIC -O2

GCC prints:
/home/glandium/firefox-115.0/gfx/skia/skia/src/sksl/SkSLInliner.cpp:468:1: internal compiler error: output_operand: '%&' used without any local dynamic TLS references
  468 | }
      | ^
0x119605a7 internal_error(char const*, ...)
        ???:0
0x107679f3 output_operand_lossage(char const*, ...)
        ???:0
0x10f8f5ef print_operand(_IO_FILE*, rtx_def*, int)
        ???:0
0x10ba9bd7 default_print_operand(_IO_FILE*, rtx_def*, int)
        ???:0
0x10767ff3 output_operand(rtx_def*, int)
        ???:0
0x10768e33 output_asm_insn(char const*, rtx_def**)
        ???:0
0x1076e4b3 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.

This doesn't happen with gcc-snapshot (1:20230613-1)

Mike