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: Autoconf manual's coverage of signed integer overflow & portability


Andrew Pinski <pinskia@physics.uc.edu> writes:

| > 
| > kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:
| > 
| > >> >> Many portable C programs assume that signed integer overflow wraps around
| > >> >> reliably using two's complement arithmetic.
| > >> >
| > >>
| > >> I was looking for an adjective that mean the programs work on a wide
| > >> variety of platforms, and "portable" seems more appropriate than
| > >> "widely-used".
| > >
| > > Maybe just say what you mean, then:  "Many C programs that work on a wide
| > > variety of platforms assume that ..."
| > 
| > That's too long!  I'll prepend an "In practice" instead.
| 
| What about this:
| Old C programs that written against the C standard depend on signed
| overflow being defined as wrapping.
| 
| And then reference the paper, "C traps and pitfalls" (which by the way
| was written by the founder of ADL for C++).

Andrew Keonig did not invent ADL.  He, himself, finds it embarassing
people credit him for ADL.  If you're interested in how ADL comes to
life, just go to the ISO C++ committee website and google for "name
lookup" for papers between 1991 and 1997.

-- Gaby


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