From: Kim Barrett (kab.conundrums_at_[hidden])
Date: 2008-08-18 18:50:35


At 8:32 AM +0200 8/17/08, Zeljko Vrba wrote:
>Some machines (e.g. x86) do not raise
>an exception but set an overflow flag which may be tested by a single
>instruction, yet I don't know of a compiler which offers run-time overflow
>checking as a code-generation option.

See gcc's -ftrapv option.