This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52445] [4.6/4.7 Regression] conditional store replacement causes segfault in generated code
- 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: Thu, 01 Mar 2012 08:54:51 +0000
- Subject: [Bug tree-optimization/52445] [4.6/4.7 Regression] conditional store replacement causes segfault in generated code
- Auto-submitted: auto-generated
- References: <bug-52445-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52445
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-01 08:54:51 UTC ---
I'd say the problem is that add_or_mark_expr hasn't been properly adjusted for
MEM_REFs, it ignores the offset of the MEM_REFs altogether.
Before MEM_REF, this function would just track INDIRECT_REFs dereferencing the
same pointer SSA_NAME (i.e. all of them would be same offset, same size).
Now it should take into account not just the offset, but also the access size.