[Bug inline-asm/33171] GCC outputs invalid assembly when using -O2

2007-08-28 Thread pinskia at gmail dot com
--- Comment #5 from pinskia at gmail dot com 2007-08-29 00:56 --- Subject: Re: GCC outputs invalid assembly when using -O2 On 29 Aug 2007 00:53:35 -, Hans dot Boehm at hp dot com <[EMAIL PROTECTED]> wrote: > Based on Book 2, section 1.4 of the architecture manual, I believe aligned

Re: [Bug inline-asm/33171] GCC outputs invalid assembly when using -O2

2007-08-28 Thread Andrew Pinski
On 29 Aug 2007 00:53:35 -, Hans dot Boehm at hp dot com <[EMAIL PROTECTED]> wrote: > Based on Book 2, section 1.4 of the architecture manual, I believe aligned > word > access are always atomic on PowerPC. They are, even cache-inheited memory too. -- Pinski

[Bug inline-asm/33171] GCC outputs invalid assembly when using -O2

2007-08-28 Thread Hans dot Boehm at hp dot com
--- Comment #4 from Hans dot Boehm at hp dot com 2007-08-29 00:53 --- I'll make the %X1 change upstream. Are there similar issues with some of the other routines? (See http://bdwgc.cvs.sourceforge.net/bdwgc/bdwgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/powerpc.h?revision=1.3&view=

[Bug inline-asm/33171] GCC outputs invalid assembly when using -O2

2007-08-24 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-08-24 09:02 --- No, the inline-asm is just wrong, you need to use a different thing for including non indexed load/stores. The inline-asm function should be written as: static inline unsigned long load_acquire(volatile unsigned lon

[Bug inline-asm/33171] GCC outputs invalid assembly when using -O2

2007-08-23 Thread ianw at gelato dot unsw dot edu dot au
--- Comment #2 from ianw at gelato dot unsw dot edu dot au 2007-08-24 05:04 --- Created an attachment (id=14099) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14099&action=view) -S output with -O2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33171

[Bug inline-asm/33171] GCC outputs invalid assembly when using -O2

2007-08-23 Thread ianw at gelato dot unsw dot edu dot au
--- Comment #1 from ianw at gelato dot unsw dot edu dot au 2007-08-24 05:04 --- Created an attachment (id=14098) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14098&action=view) -S output with no optimisation -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33171