This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14375] bad code gen for pointer inc with &&
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2004 01:43:33 -0000
- Subject: [Bug c/14375] bad code gen for pointer inc with &&
- References: <20040301231239.14375.tjb@watson.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-03-02 01:43 -------
This is not a bug.
Remember that the second part in an expression a && b
isn't executed at all, if the first part evaluates to 0.
In your case, (*src++) isn't executed the first six runs
of the loop.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Summary|bad code gen for pointer inc|bad code gen for pointer inc
|with && |with &&
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14375