lkml.org 
[lkml]   [2007]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Is gcc thread-unsafe?
    Date
    On Thursday 25 October 2007 13:58:56 linux-os (Dick Johnson) wrote:
    >
    > On Thu, 25 Oct 2007, Andi Kleen wrote:
    >
    > > On Thursday 25 October 2007 05:24, Nick Piggin wrote:
    > >
    > >> Basically, what the gcc developers are saying is that gcc is
    > >> free to load and store to any memory location, so long as it
    > >> behaves as if the instructions were executed in sequence.
    > >
    > > This case is clearly a bug, a very likely code pessimization.
    > > I guess it wasn't intentional, just an optimization that is useful
    > > for local register values doing too much.
    >
    >
    > I don't think it is a BUG,

    Bug as in an optimization that makes the code slower than it was
    before. That is clearly a bug in a compiler.

    -Andi
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-10-25 14:19    [W:0.020 / U:1.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site