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?


Dave Korn wrote:

  Why isn't that just a buggy program with wilful disregard for the use of
correct synchronisation techniques?

Right, I think most people would agree it is.


But for sure, if you consider that making the code go faster is itself
a change in behavior, then obviously all optimization changes the
behavior, but so does any improvement in the compiler in terms of
the unoptimized code generated.


    cheers,
      DaveK


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