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/14375] bad code gen for pointer inc with &&


------- 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


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