Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it
From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Aug 08 2002 - 19:11:11 EST
- Next message: system_lists@nullzone.org: "Crash in 2.4.19 with a system with no changes (from .18)"
- Previous message: Rik van Riel: "Re: [PATCH] Linux-2.5 fix/improve get_pid()"
- In reply to: Luca Barbieri: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Next in thread: Luca Barbieri: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Reply: Luca Barbieri: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Reply: H. Peter Anvin: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
On Thu, 2002-08-08 at 23:40, Luca Barbieri wrote:
> > The compiler can cache the value in a register
> It shouldn't since it is volatile and the machine has instructions with
> memory operands.
I'm curious what part of C99 guarantees that it must generate
add 1 to memory
not
load memory
add 1
store memory
It certainly guarantees not to cache it for use next statement, but does
it actually persuade the compiler to use direct operations on memory ?
I'm not a C99 language lawyer but genuinely curious
-
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/
- Next message: system_lists@nullzone.org: "Crash in 2.4.19 with a system with no changes (from .18)"
- Previous message: Rik van Riel: "Re: [PATCH] Linux-2.5 fix/improve get_pid()"
- In reply to: Luca Barbieri: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Next in thread: Luca Barbieri: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Reply: Luca Barbieri: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Reply: H. Peter Anvin: "Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
This archive was generated by hypermail 2b29
: Thu Aug 15 2002 - 22:00:18 EST