This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix some -Wunreachable-code issues


On Tue, Nov 05, 2002 at 03:15:16PM -0800, Jason R Thorpe wrote:
> 	* gcc.dg/duff-1.c: New test.
> 	* gcc.dg/duff-2.c: New test.
> 	* gcc.dg/duff-3.c: New test.

Nearly.

> + 	ck ^= (int)*src++ << 24;

Fails for INT_MAX < 0x7fffffff.  Should check limits.h
and chose either int or long.


r~


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