This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/64715] [5 Regression] __builtin_object_size (..., 1) fails to locate subobject
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Mar 2015 12:52:48 +0000
- Subject: [Bug tree-optimization/64715] [5 Regression] __builtin_object_size (..., 1) fails to locate subobject
- Auto-submitted: auto-generated
- References: <bug-64715-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64715
--- Comment #18 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 24 Mar 2015, jakub at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64715
>
> --- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> In
> *r_2(D) = 0;
> _4 = r_2(D) + 4;
> *_4 = 1;
> _6 = *r_2(D);
> there are no handled components, so there is no reason not to create
> &MEM_REF[r_2, 4]. But it shouldn't be hard to construct similar testcase where
> there are fields and we would regress.
Yes, this is also somewhat related to PR63916.