[Bug fortran/105037] gfortran emits incorrect debug information if compiled with -finit-real=snan

2022-03-24 Thread christian.friedl at gmx dot at via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105037

--- Comment #2 from Christian Friedl  ---
> What do you think is wrong?

The lines

  IF(IREST.EQ.0) THEN
  CALL WO2(1,N1,N2,O2)
  ENRGOLD=EMP2

get emitted twice when -finit-real=snan is used. The first time that they are
emitted, they don't fit the assembly that they refer to.

> Have you raised the gdb issue with the gdb folks?

No. I wasn't really able to provide a minimal example for the error. Using
objdump, I saw that the cause probably was the debug information and not gdb
itself.

[Bug fortran/105037] gfortran emits incorrect debug information if compiled with -finit-real=snan

2022-03-24 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105037

--- Comment #1 from Richard Biener  ---
What do you think is wrong?  Have you raised the gdb issue with the gdb folks?