This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/68860] [6 regression] FAIL: gcc.dg/guality/pr36728-1.c -O3 -g line 16 arg1 == 1
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Dec 2015 17:07:45 +0000
- Subject: [Bug debug/68860] [6 regression] FAIL: gcc.dg/guality/pr36728-1.c -O3 -g line 16 arg1 == 1
- Auto-submitted: auto-generated
- References: <bug-68860-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68860
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 37097
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37097&action=edit
gcc6-pr68860-lto.patch
I've noticed that the new tests still fail with LTO.
It seems the reason is that LTO ignores DECL_HAS_DEBUG_ARGS_P etc., so this
stuff is just lost.
I've added some changes so that this is streamed, but it seems that is not
enough, DECL_ORIGIN of the decls is wrong, so it isn't used anyway.
BTW, Honza, why is:
if (code == VAR_DECL
&& DECL_HAS_DEBUG_EXPR_P (t))
visit (DECL_DEBUG_EXPR (t));
used in hash_tree? Depends on what the function is used for, if it is for code
generation or something like that, better it should not depend on the debug
info stuff...