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: GCC optimizes integer overflow: bug or feature?


> > Actually they will with multi threaded program, since you can have a case
> > where it works and now it is broken because one thread has speed up so
> > much it writes to a variable which had a copy on another thread's stack.
>
>   Why isn't that just a buggy program with wilful disregard for the use of
> correct synchronisation techniques?

As opposed to a buggy program with wilful disregard for signed overflow 
semantics? ;-)

Paul


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