[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-08-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #14 from CVS Commits --- The master branch has been updated by Bernd Edlinger : https://gcc.gnu.org/g:96c82a16b2076891a9974d0f0e96a0b85fbc2df4 commit r12-2735-g96c82a16b2076891a9974d0f0e96a0b85fbc2df4 Author: Bernd Edlinger Date:

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-24 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #13 from Eric Botcazou --- > one minor remark, while working on a patch, I became aware, > that probably the same will happen when using -gdwarf-5 > with old binutils, since we have this code in dwarf2out.c: People should stick to

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-24 Thread bernd.edlinger at hotmail dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #12 from Bernd Edlinger --- (In reply to Eric Botcazou from comment #1) > Not going to be fixed, just stick to the default setting (DWARF 5). one minor remark, while working on a patch, I became aware, that probably the same will ha

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-24 Thread bernd.edlinger at hotmail dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #11 from Bernd Edlinger --- (In reply to Eric Botcazou from comment #10) > > I can of course make the .loc go away. If you really want that. > > > > It is basically the DECL_SOURCE_LOCATION of an > > otherwise ignored decl. If the

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-23 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #10 from Eric Botcazou --- > I can of course make the .loc go away. If you really want that. > > It is basically the DECL_SOURCE_LOCATION of an > otherwise ignored decl. If the DECL_SOURCE_LOCATION > is UNKNOWN_LOCATION the functio

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-23 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #9 from Tom de Vries --- (In reply to Eric Botcazou from comment #7) > (> More specifically, it's gone because we have: > > ... > > $ more defs.s > > .file "defs.adb" > > .text > > .Ltext0: > > .align 2 > >

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-23 Thread bernd.edlinger at hotmail dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #8 from Bernd Edlinger --- I can of course make the .loc go away. If you really want that. It is basically the DECL_SOURCE_LOCATION of an otherwise ignored decl. If the DECL_SOURCE_LOCATION is UNKNOWN_LOCATION the function should h

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-22 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #7 from Eric Botcazou --- (> More specifically, it's gone because we have: > ... > $ more defs.s > .file "defs.adb" > .text > .Ltext0: > .align 2 > .globl defs__struct1IP > .type defs__str

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-22 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #6 from Tom de Vries --- (In reply to Eric Botcazou from comment #3) > > Because ? > > No straightforward solution in DWARF < 5 and, therefore, not worth the > hassle. How about backporting the commit to gcc-11-branch? WDYT?

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-22 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 --- Comment #5 from Tom de Vries --- (In reply to Bernd Edlinger from comment #4) > Hi, > > I think my commit e69ac020372 ("Add line debug info for virtual thunks") > has a mitigating effect on this test case: > due to such functions have DECL_

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-22 Thread bernd.edlinger at hotmail dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 Bernd Edlinger changed: What|Removed |Added CC||bernd.edlinger at hotmail dot de ---

[Bug ada/101575] [gcc-11, -gdwarf-4] Missing .file directive causes invalid line info

2021-07-22 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101575 Eric Botcazou changed: What|Removed |Added Component|debug |ada --- Comment #3 from Eric Botcazou