[Bug target/29329] [4.1 regression] internal consistency failure at -O2

2006-10-07 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2006-10-08 02:10 ---
(In reply to comment #0)
 compilation with -O0:
 
 $ gcc -c -fPIC -g -O0 -g tree234.i
 /tmp/cco6vA7j.s: Assembler messages:
 /tmp/cco6vA7j.s:172: Error: Rn must not overlap other operands -- `swpb
 r3,r2,[r3]'

That is a bug in the source:
 asm volatile(
   # here \n\t
   swpb %0, %1, [%2] \n\t
   : =r (val)
   : r(1), r (lock) : memory
 );

I don't know how to fix that in the inline-asm.  Maybe an early clobber can fix
that.  I doubt this is related to the ICE anyways.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29329



[Bug target/29329] [4.1 regression] internal consistency failure at -O2

2006-10-03 Thread debian-gcc at lists dot debian dot org


--- Comment #1 from debian-gcc at lists dot debian dot org  2006-10-03 
09:46 ---
Created an attachment (id=12376)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12376action=view)
preprocessed source


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29329