This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47541] [4.5/4.6 Regression] For integer pointers, the value of ++*p is not written back to memory


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47541

--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-31 17:07:19 UTC ---
So, type Wrapper as seen by PTA has

Wrapper
  offset 64:  RefCount

RefCount
  offset 0: a
  offset 64: b

and the issue is that the ptr parameter gets the address of a as initial
value by PTA.  Oops.  It really needs to get offset zero as initial address!
We should always keep a subvar for offset zero.

I have a patch.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]