This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/12086] memcmp(i,j,4) should use word (SI) subtraction
- 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: 28 Aug 2003 03:21:10 -0000
- Subject: [Bug optimization/12086] memcmp(i,j,4) should use word (SI) subtraction
- References: <20030828030040.12086.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12086
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-08-28 03:21:10
date| |
Target Milestone|--- |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-28 03:21 -------
I have got my own bug.
Add the attribute may_alias to the (const unsigned int *) when creating the type will make sure
there is no aliasing problems.
The 2 (short case) instead of 4 should be able to be done the same way and also the 8 case (long
long). I have to check on the size of the types but that is the only thing different than the 1 size
case that is already there besides the extra attribute, I should be able to do this tonight.