This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [switch conv] Bootsrap error because of the (CERT) pointer wraparound warning
- From: Martin Jambor <mjambor at suse dot cz>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 30 Apr 2008 14:19:16 +0200
- Subject: Re: [switch conv] Bootsrap error because of the (CERT) pointer wraparound warning
- References: <20080428101519.GA2856@virgil.suse.cz> <m3ve21h3w5.fsf@google.com>
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