This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/49330] Integer arithmetic on addresses optimised with pointer arithmetic rules
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Jun 2011 10:56:39 +0000
- Subject: [Bug rtl-optimization/49330] Integer arithmetic on addresses optimised with pointer arithmetic rules
- Auto-submitted: auto-generated
- References: <bug-49330-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49330
--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-06-10 10:55:53 UTC ---
> Creating that pointer is perfectly valid - you are allowed to cast a
> pointer to an uintptr_t and back, which is what the code does (in some
> obfuscated way of course).
No disagreement, "problematic" only in the sense that it breaks the assumption
of the aliasing machinery, as you're creating a pointer out of nothing.