[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-17 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 --- Comment #13 from rguenther at suse dot de --- On Tue, 16 May 2023, sergiodj at sergiodj dot net wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 > > --- Comment #12 from Sergio Durigan Junior --- > Sorry, I have been busy with

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-16 Thread sergiodj at sergiodj dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 --- Comment #12 from Sergio Durigan Junior --- Sorry, I have been busy with other things, but I'm paying attention to the developments here. I still have to test the workaround I suggested (passing -fdebug-prefix-map to LDFLAGS) more broadly,

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 --- Comment #11 from Richard Biener --- Btw, streaming of the CWD is prone to breakage when it changes between preprocessing and compilation stage. I think at least for C family languages the CWD would need to be recorded by the preprocessor

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 Richard Biener changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-13 Thread sergiodj at sergiodj dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 --- Comment #9 from Sergio Durigan Junior --- at(In reply to Richard Biener from comment #8) > This works for me. The consistency check is not fully implemented and > instead > of passing down no -fdebug-prefix-map the patch passes the first

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 --- Comment #8 from Richard Biener --- Created attachment 55064 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55064=edit prototype This works for me. The consistency check is not fully implemented and instead of passing down no

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-11 Thread sergiodj at sergiodj dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 --- Comment #6 from Sergio Durigan Junior --- As I mentioned in the description, a workaround for this would be to use -fdebug-prefix-map in LDFLAGS as well. I'm leaning towards implementing this in Ubuntu until we figure out how to properly

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-11 Thread sergiodj at sergiodj dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 --- Comment #5 from Sergio Durigan Junior --- (In reply to Richard Biener from comment #4) > It works for the actual source file translation units for me, it's just the > LTRANS units that have a DW_AT_comp_dir that's not remapped. It's

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org ---

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 Andrew Pinski changed: What|Removed |Added Resolution|DUPLICATE |--- Status|RESOLVED

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug debug/109805] LTO affecting -fdebug-prefix-map

2023-05-10 Thread sergiodj at sergiodj dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805 --- Comment #1 from Sergio Durigan Junior --- The formatting for the example snippet got messed up. Here's a fixed version: $ echo 'int main(){}' > foo.c $ ~/gcc/install/bin/gcc -c foo.c -O2 -g -flto=auto -ffat-lto-objects