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 RFC: -fstrict-overflow


Mark Mitchell <mark@codesourcery.com> writes:

[...]

| > * signed overflow traps (flag_trapv)
| 
| Here, we still make a promise, but not an assumption.  The compiler
| promises that any overflow will result in a trap.  This is a variant of
| the language in which signed arithmetic has defined semantics: it causes
| a trap.

This also conforms to LIA-1 semantics.

-- Gaby


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