[Bug debug/87726] -fdebug-prefix-map doesn't work with lto

2023-05-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87726

--- Comment #4 from Andrew Pinski  ---
*** Bug 109805 has been marked as a duplicate of this bug. ***

[Bug debug/87726] -fdebug-prefix-map doesn't work with lto

2023-05-10 Thread sergiodj at sergiodj dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87726

Sergio Durigan Junior  changed:

   What|Removed |Added

 CC||sergiodj at sergiodj dot net

--- Comment #3 from Sergio Durigan Junior  ---
FWIW, this is working for me (GCC 12).  I'm investigating another bug with
-fdebug-prefix-map and LTO, and thought this one would be related.

[Bug debug/87726] -fdebug-prefix-map doesn't work with lto

2021-09-24 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87726

Richard Biener  changed:

   What|Removed |Added

  Known to work||10.3.0, 11.2.1, 7.5.0,
   ||9.3.1
 Status|NEW |WAITING

--- Comment #2 from Richard Biener  ---
It works fine for me with GCC 7, 9, 10 and 11 on x86_64-linux, not sure which
version Mark used to reproduce.

Can you confirm it now works?

[Bug debug/87726] -fdebug-prefix-map doesn't work with lto

2020-07-16 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87726

Mark Wielaard  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 CC||mark at gcc dot gnu.org
 Blocks||47819
   Last reconfirmed||2020-07-16
 Status|UNCONFIRMED |NEW

--- Comment #1 from Mark Wielaard  ---
Replicated. With -flto added the result is a linker error:

g++  -g -o app/app app/app.o -L./lib -lA
/usr/bin/ld: /tmp/app.BSgkYr.ltrans0.ltrans.o: in function `main':
//app.cpp:6: undefined reference to `Lib::func()'
collect2: error: ld returned 1 exit status

Removing -fdebug-prefix-map (but keeping -flto) things build fine.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47819
[Bug 47819] [meta-bug] LTO debug information issues