This is the mail archive of the gcc@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: signed is undefined and has been since 1992 (in GCC)


Gabriel Dos Reis wrote:


C and C++ are general programming language geared toward system
programming.

Yes, and my two examples are completely consistent with that. A C compiler that uses the trapping arithmetic on the MIPS is entirely conforming, and has the advantage that if you develop with such a compiler you avoid silly mistakes of expecting signed integers to wrap, so your code will be more portable.

"has the semantics that Gabriel Dos Reis wants" is not an evaluable
predicate!


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