ICE while handling asm

Jeffrey A Law law@cygnus.com
Thu Jul 9 01:13:00 GMT 1998


  In message < r2vhp9o98y.fsf@happy.cygnus.com >you write:
  > Hi,
  > 
  > The current egcs as of 19980707 crashes on the code appended below
  > when compiled for Intel using -O2 or higher.  The same code works fine
  > with 2.91.45 (the last version I have installed).
  > 
  > c.i: In function `pthread_cancel':
  > c.i:122: internal error--unrecognizable insn:
  > (insn 120 20 122 (parallel[ 
  >             (set (reg/v:SI 27)
  >                 (asm_operands/v ("xchgl %0, %1") ("=r") 0[ 
  >                         (const_int 1)
  >                         (mem:SI (reg/v:SI 22))
  >                     ] 
  >                     [ 
  >                         (asm_input:SI ("0"))
  >                         (asm_input:SI ("1"))
  >                     ]  ("c.i") 85))
  >             (set (mem:SI (reg/v:SI 22))
  >                 (asm_operands/v ("xchgl %0, %1") ("=m") 1[ 
  >                         (const_int 1)
  >                         (mem:SI (reg/v:SI 22))
  >                     ] 
  >                     [ 
  >                         (asm_input:SI ("0"))
  >                         (asm_input:SI ("1"))
  >                     ]  ("c.i") 85))
  >         ] ) -1 (insn_list 12 (nil))
  >     (nil))
  > ../../egcs/gcc/toplev.c:1191: Internal compiler error in function fatal_ins
I believe I've just fixed this problem.

Jeff



More information about the Gcc-bugs mailing list