public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: bootstrap/10229: [IA-64 HP-UX 11.22] Internal compiler error in emit_move_insn
@ 2003-05-07 17:06 Dara Hazeghi
  0 siblings, 0 replies; 2+ messages in thread
From: Dara Hazeghi @ 2003-05-07 17:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR bootstrap/10229; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-bug@bullseye.com,
   nobody@gcc.gnu.org
Cc:  
Subject: Re: bootstrap/10229: [IA-64 HP-UX 11.22] Internal compiler error in emit_move_insn
Date: Wed, 7 May 2003 10:05:50 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=10229
 
 Hello all,
 
 I can confirm this bug on gcc 3.2.3 compiler. Removing the flag -milp32  
 allows the testcase to compile successfully. Attached is a distilled  
 testcase from unwind-ia64.c which crashes the compilers (taken from a  
 cross build). With 3.3 cvs we crash at a different point, no matter  
 what flags are used, and with mainline at a still different point also  
 independent of flag. Yuck. Testcases follow.
 
 Dara
 
 3.2 crash.c
 xtern int __sync_val_compare_and_swap_si (int *, int, int);
 extern long __sync_val_compare_and_swap_di (long *, long, long);
 
 static __inline__ int
 atomic_alloc (unsigned int *mask)
 {
    unsigned int old = *mask, ret, new;
 
    while (1)
      {
        if (old == 0)
          return -1;
        ret = old & -old;
        new = old & ~ret;
        new = ((sizeof (*(mask)) == sizeof(int)) ? (__typeof__(*(mask)))  
 __sync_va
 l_compare_and_swap_si((int *)(mask),(int)(old),(int)(new)) :  
 (__typeof__(*(mask)
 )) __sync_val_compare_and_swap_di((long  
 *)(mask),(long)(old),(long)(new)));
        if (old == new)
          break;
        old = new;
      }
 
    return __builtin_ffs (ret) - 1;
 }
 
 crash.c: In function `atomic_alloc':
 crash.c:15: Internal compiler error in emit_move_insn, at expr.c:2771
 
 3.3 crash.c
 struct _Unwind_Context
 {
 
    unsigned long eh_data[4];
 
 };
 
 extern void uw_init_context_1();
 
 void
 _Unwind_RaiseException(void)
 {
    struct _Unwind_Context this_context;
 
 
    uw_init_context_1 (&this_context, __builtin_ia64_bsp ());
 
 }
 
 crash.c: In function `_Unwind_RaiseException':
 crash.ci:16: internal compiler error: in emit_move_insn, at expr.c:3144
 Please submit a full bug report,
 with preprocessed source if appropriate.
 
 3.4 crash.c:
 static int emergency_reg_state_free = 14;
 
 
 int alloc_reg_state (void)
 {
        int n = atomic_alloc (&emergency_reg_state_free);
 
 }
 
 crash.c:8: error: unrecognizable insn:
 (insn 38 29 9 0 0x1005300 (set (reg:SI 120 r36)
          (plus:DI (reg:DI 1 r1)
              (symbol_ref:SI ("emergency_reg_state_free") [flags 0x6]  
 <var_decl 0x1002e0c emergency_reg_state_free>))) -1 (nil)
      (nil))
 crash.c:8: internal compiler error: in extract_insn, at recog.c:2188
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bootstrap/10229: [IA-64 HP-UX 11.22] Internal compiler error in emit_move_insn
@ 2003-05-07 21:13 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-05-07 21:13 UTC (permalink / raw)
  To: deengert, gcc-bug, gcc-bugs, gcc-prs, nobody, reva

Synopsis: [IA-64 HP-UX 11.22] Internal compiler error in emit_move_insn

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed May  7 21:13:44 2003
State-Changed-Why:
    Confirmed by Dara

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10229


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-07 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-07 17:06 bootstrap/10229: [IA-64 HP-UX 11.22] Internal compiler error in emit_move_insn Dara Hazeghi
2003-05-07 21:13 bangerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).