[PATCH] add gcc_assert
Andreas Tobler
toa@pop.agri.ch
Sat Aug 28 11:59:00 GMT 2004
Nathan Sidwell wrote:
> This patch implements gcc_assert & gcc_unreachable along with
> a checking flag --enable-checking=assert.
>
> --disable-checking will disable asserts, the default is to
> enable them.
>
> I'm not sure how
> # Enable some checks by default for development versions of GCC
> gets turned into
> # By default, disable all checks for release versions of GCC.
> for releases. Can someone clue me in please? I'll set the default
> to enable the assertions on relases too.
>
> built on i686-pc-linux-gnu with a manual assert in toplev.c.
>
Well, this patch breaks bootstrap with --disable-cheking.
First occurence is cp/class.c:5023 where we get an unsued var primary.
Other instances follow.
Andreas
More information about the Gcc-patches
mailing list