[Bug optimization/12800] [tree-ssa] Store dropped after cast to pointer from integer of different size
falk dot hueffner at student dot uni-tuebingen dot de
gcc-bugzilla@gcc.gnu.org
Tue Oct 28 01:05:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12800
------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de 2003-10-28 00:56 -------
Subject: Re: [tree-ssa] Store dropped after cast to pointer from integer of different size
"dnovillo at redhat dot com" <gcc-bugzilla@gcc.gnu.org> writes:
> On Mon, 2003-10-27 at 19:15, falk at debian dot org wrote:
> > void op_stw_raw_T0_A0(int T2)
> > {
> > *(char *) T2 = 0;
> > }
> >
> Why do you expect this to work? T2 is an integer, not a pointer.
Well, the result of this is implementation defined, and gcc used to
support converting pointers to numbers and back. Do you think this
should be dropped?
More information about the Gcc-bugs
mailing list