DragonFly kernel List (threaded) for 2007-11
DragonFly BSD
DragonFly kernel List (threaded) for 2007-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: GCC-4 compiler bug


From: "Thomas Zander" <thomas.e.zander@xxxxxxxxxxxxxx>
Date: Thu, 29 Nov 2007 08:47:48 +0900

On 29/11/2007, Simon 'corecode' Schubert <corecode@fs.ei.tum.de> wrote:
> Yes, I think it is stupid.  But I don't think that any newer GCC version fixes this.  We'll probably have to change GCC not to include this optimization.  Mind you that this happens only for signed overflows.  Unsigned overflow should still work as we expect.

Maybe it would be helpful to know if this is actually a bug in the
gcc-4.1.x branch or if it was on purpose. What about Mezz's posting?
If gcc-4.2 on FreeBSD behaves differently, what happened? Did they
hack gcc in their base system or has the stock gcc-4.2 reverted to the
old (and desired) behaviour?

Riggs



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]