This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/77550] [6/7 Regression] std::deque with -O3 has infinite std::distance
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Sep 2016 13:49:00 +0000
- Subject: [Bug tree-optimization/77550] [6/7 Regression] std::deque with -O3 has infinite std::distance
- Auto-submitted: auto-generated
- References: <bug-77550-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77550
--- Comment #16 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
(In reply to Richard Biener from comment #15)
> The patch should at least work (loads are similarly affected). At some
> point we want some infrastructure in the middle-end to chose a better
> fallback (as Andrew says, if possible we can use the alias-set of the
> containing aggregate for example).
Good. Then I go ahead and look for a way how to fix all of the different
load and store code path. If the whole group does not agree in the
alias_set I would fall back to ptr_type_node, I think if I put that
code in an extra function it can be changed later to the alias-set
of the containing aggregate.