[Bug middle-end/16187] ARRAY_REF should be used for pointers also

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 29 01:04:00 GMT 2008



------- Comment #9 from pinskia at gcc dot gnu dot org  2008-01-29 00:19 -------
With the trunk we get:
  return *(data + (long unsigned int) j * 4);


Which is much better.  The cast is still needed though.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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



More information about the Gcc-bugs mailing list