This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/58920] Overeager optimization based on TREE_THIS_NOTRAP
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Oct 2013 04:07:36 +0000
- Subject: [Bug tree-optimization/58920] Overeager optimization based on TREE_THIS_NOTRAP
- Auto-submitted: auto-generated
- References: <bug-58920-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58920
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The problem is the middle-end treats pointers and references as the same so
sometimes it removes the casting between the pointer type and reference types.
GCC has no representation of conditional no trapping which is what is needed
here.