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: [Ada] Prepare for more efficient signed integer overflow checking



Expansions for addition, subtraction and negation will no longer be
widened, but instead operands are checked before performing the
operation. Multiplication will still be widened if neither operand
is constant and if the type is not a 64-bit type.

This is 90% of the work needed to reenable -ftrapv. Great.


Paolo


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