[Bug debug/68860] [12/13/14/15 regression] FAIL: gcc.dg/guality/pr36728-1.c -flto -O3 -g line 17 arg1 == 1
"danglin at gcc dot gnu.org via Gcc-bugs" <[email protected]> Sat, 01 Aug 2026 21:22:51 +0000
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68860
John David Anglin <danglin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |danglin at gcc dot gnu.org
Status|RESOLVED |REOPENED
Target|aarch64-*-*, ia64-*-*, |aarch64-*-*, ia64-*-*,
|x86_64-*-* |x86_64-*-*, hppa-*-*
Resolution|FIXED |---
--- Comment #35 from John David Anglin <danglin at gcc dot gnu.org> ---
Fails on 32-bit hppa for arguments that are optimized out:
Breakpoint 1, foo (arg1=1, arg2=2, arg3=3, arg4=4, arg5=<optimized out>,
arg6=<o
ptimized out>, arg7=<optimized out>, arg8=<optimized out>) at
/home/dave/gnu/gcc
/gcc/gcc/testsuite/gcc.dg/guality/pr68860-2.c:14
14 asm (NOP : "=m" (y) : "m" (y));
$1 = <optimized out>
$2 = 5
<optimized out> != 5
FAIL: gcc.dg/guality/pr68860-2.c -O1 -DPREVENT_OPTIMIZATION line 14 arg5 ==
5
On 32-bit hppa, the first four arguments are passed in registers and any
additional arguments are passed on the stack. I guess DW_OP_GNU_parameter_ref
is not being emitted for the stack arguments that are optimized away.
This is with master r17-2796-ga7ba10ac1e0 but I don't believe the fail is new.