This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/13769] [tree-ssa] sparc-sun-solaris2.9 bootstrap failure: ICE in extract_insn, at recog.c:2083


------- Additional Comments From dhazeghi at yahoo dot com  2004-01-21 06:18 -------
Confirmed with current sources. Here's a mostly reduced testcase. Looks like something nasty 
between __inline__ and __builtin_extract_return_addr. Dies with -O or higher.

typedef unsigned _Unwind_Word __attribute__((__mode__(__word__)));
typedef unsigned _Unwind_Ptr __attribute__((__mode__(__pointer__)));

struct _Unwind_Context
{
  void *ra;
};

__inline__ _Unwind_Word
_Unwind_GetGR (struct _Unwind_Context *context, int index)
{
  int size;
  void *ptr;

  if (size == 1)
    return * (_Unwind_Ptr *) ptr;

  abort ();
}

__inline__ void *
_Unwind_GetPtr (struct _Unwind_Context *context, int index)
{
  return (void *)(_Unwind_Ptr) _Unwind_GetGR (context, index);
}

void
uw_update_context (struct _Unwind_Context *context)
{
  context->ra =__builtin_extract_return_addr (_Unwind_GetPtr (context, 2));
}



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-21 06:18:16
               date|                            |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]