https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117300

            Bug ID: 117300
           Summary: guality tests always fail on Fedora 41
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

On Fedora 41, gdb defaults to use debuginfod.  I got

Spawning: gdb -nx -nw -quiet -batch -x pr36728-2.gdb ./pr36728-2.exe
spawn gdb -nx -nw -quiet -batch -x pr36728-2.gdb ./pr36728-2.exe
Breakpoint 1 at 0x4004ba: file
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/gcc.dg/guality/pr36728-2.c,
line 18.

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.fedoraproject.org/>
Enable debuginfod for this session? (y or [n]) [answered N; input not from
terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Breakpoint 1, foo (arg7=<optimized out>, arg6=<optimized out>, arg5=<optimized
out>, arg4=<optimized out>, arg3=<optimized out>, arg2=<optimized out>,
arg1=<optimized out>) at
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/gcc.dg/guality/pr36728-2.c:18
18        asm (NOP : "=m" (x[0]), "=m" (a) : "m" (x[0]), "m" (b));
$1 = <optimized out>~
$2 = 3
<optimized out> != 3
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  -DPREVENT_OPTIMIZATION line 18 arg3 == 3

I added 'set debuginfod enabled off' to ~/.gdbinit.  Since -nx option ignores
~/.gdbinit, guality tests always fail.

Reply via email to