This is the mail archive of the gcc@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: [switch conv] Bootsrap error because of the (CERT) pointer wraparound warning


On Mon, Apr 28, 2008 at 05:59:54PM -0700, Ian Lance Taylor wrote:
> 
> The warnings I added for the CERT advisory say "assuming pointer
> wraparound does not occur"....  You are running into one of the older
> signed overflow warnings.
> 

Oh, sorry for that oversight.  It has started happening (when testing
exactly the same  code) shortly after the CERT patch got  in and so I
got misled.

> 
> Make branch_num an unsigned int.
> 

That did it.

Thank you,

Martin


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