https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121623
--- Comment #21 from Frank Scheiner <frank.scheiner at web dot de> ---
Also reproduces the problem:
```
root@esprimo-e420:/usr/src# ia64-t2-linux-gnu-g++ -fcompare-debug -std=c++17
-fpermissive -nostdinc++ -fno-PIE -c -DUSE_LIBUNWIND_EXCEPTIONS -g -O2
-fchecking=1 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables
-W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual
-Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-DHAVE_CONFIG_H -fno-PIE -o trans-mem.ii.o -MT -MMD -MP -MF trans-mem.ii.o
trans-mem.ii
[...]
ia64-t2-linux-gnu-g++: error: trans-mem.ii: '-fcompare-debug' failure
```
To be sure I also produced both results separately (second one with `-gtoggle`)
and compared the stripped object files:
```
root@esprimo-e420:/usr/src# diff -Nur result-wo-debug-info result-w-debug-info
--- result-wo-debug-info 2025-09-17 19:11:26.068451571 +0000
+++ result-w-debug-info 2025-09-17 19:10:42.458745596 +0000
@@ -1,5 +1,5 @@
-trans-mem.ii.o-wo-debug-info-stripped: file format elf64-ia64-little
+trans-mem.ii.o-w-debug-info-stripped: file format elf64-ia64-little
Disassembly of section .text:
@@ -581,8 +581,8 @@
bf0: 09 18 21 49 00 21 [MMI] adds r35=72,r36
bf6: 10 83 30 00 42 00 adds r49=16,r12
bfc: 06 00 00 84 mov r48=r0;;
- c00: 08 00 00 1e 98 11 [MMI] st8 [r15]=r0
- c06: 80 00 38 30 2b 00 st8 [r14]=r0,8
+ c00: 08 40 00 1c 98 15 [MMI] st8 [r14]=r0,8
+ c06: 00 00 3c 30 23 00 st8 [r15]=r0
c0c: 00 00 04 00 nop.i 0x0
c10: 09 78 80 42 00 21 [MMI] adds r15=32,r33
c16: f0 02 bc 30 20 c0 ld8 r47=[r47
```