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 int overflow behavior in the security context


Paul Schlie wrote:

I'm game; how might multiple specified references to the same non-volatileS
variable with no specified intervening assignments in a single threaded
language ever justifiably be interpreted to validly yield differing values?

Sorry, I'm not "game", it's something you should be able to figure out if you know how compilers generate code and how typical compiler optimization circuits propagate undefined information.

(any logically consistent concrete example absent reliance on undefined
hand-waving would be greatly appreciated; as any such interpretation or
implementation would seem clearly logically inconsistent and thereby
useless; as although the value of a variable may be undefined, variable
reference semantics are well defined and are independent of its value)

Nope, you are making this up again, if you reference an uninitialized variables, the value is undefined, period.


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