[EMAIL PROTECTED] wrote: > Just hint. I remember the time when "memory" clobber option > was _absent_ in gcc. And we managed to compile kernel with such gcc. 8) > To all that I understand, "asm" (like function calls) implied barrier > that time and constraints and clobber option were used only for > register allocation and reloading. Well, now GCC does CSE across "asm" and will eliminate memory loads, even though it may not move them! I suspect it always did CSE across "asm" and we just never got hit by the bug. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: spin_lock forgets to clobber memory and... Jamie Lokier
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and... David Woodhouse
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and other smp fi... kuznet
- Re: spin_lock forgets to clobber memory and other s... Andrea Arcangeli
- GCC proposal for "@" asm constraint Jamie Lokier
- Re: GCC proposal for "@" asm cons... Andrea Arcangeli
- Re: GCC proposal for "@" asm ... Linus Torvalds
- Re: GCC proposal for "@" asm ... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and other s... Jamie Lokier
- Re: spin_lock forgets to clobber memory and oth... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and... Jamie Lokier
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and... Juan J. Quintela
- Re: spin_lock forgets to clobber memory and oth... kuznet
- Re: spin_lock forgets to clobber memory and... Richard Henderson
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory... Richard Henderson
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory... kuznet