This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jul 2008 07:19:25 -0000
- Subject: [Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2
- References: <bug-36767-16437@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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