[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2
dodji at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 28 07:20:00 GMT 2008
------- Comment #10 from dodji at gcc dot gnu dot org 2008-07-28 07:19 -------
Created an attachment (id=15968)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15968&action=view)
try scanning DECL_EXPR instead of VAR_DECLs directly.
@Jason: I have tried scanning DECL_EXPR and setting only VAR_DECL that are
children of DECL_EXPR. It does not work. This patch is what I have done. Maybe
I have done something bad ?
My understanding is that by walking DECL_EXPRs and getting their associated
VAR_DECL (using DECL_EXPR_DECL), all VAR_DECLs should be touched because every
single variable must be declared at least once.
So, are there cases where a VAR_DECL has never had a parent DECL_EXPR ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36767
More information about the Gcc-bugs
mailing list