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 10:52:20 -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 #11 from dodji at gcc dot gnu dot org 2008-07-28 10:52 -------
Created an attachment (id=15969)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15969&action=view)
update vars more specifically, adding BIND_EXPR
After talking with Jakub, it appeared that I was forgetting to update VAR_DECLS
that were attached to a BIND_EXPR.
Walking those VAR_DECLS appears to fix the problem.
Regtesting now. Will update the patch with a proper testcase when regtesting
passes.
Please feel free to comment in the meantime.
--
dodji at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #15968|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36767