This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36385] Assume that long is scalar size of a pointer
- From: "ktietz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2008 10:14:29 -0000
- Subject: [Bug tree-optimization/36385] Assume that long is scalar size of a pointer
- References: <bug-36385-15155@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from ktietz at gcc dot gnu dot org 2008-05-30 10:14 -------
It true. Just two warnings are shown, but the back-cast of a long to a pointer
on w64 in insert_operand_rank() is evil. If the pointer is on heap, it can be
easily truncated and point to nowhere.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36385