This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/27761] combine miscompiles
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2006 18:19:23 -0000
- Subject: [Bug rtl-optimization/27761] combine miscompiles
- References: <bug-27761-12182@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-24 18:19 -------
> For the same reason __builtin_offsetof also hides the bug.
Because it gets lowered correctly to a constant while
"(intptr_t)(&(((struct A*)0x0)->mem1) )" is not a constant.
Why is someone using that method of offsetof?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27761