public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/34434] internal compiler error: in insert_save, at caller-save.c:725
       [not found] <bug-34434-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-28  4:00 ` pinskia at gcc dot gnu.org
  2012-01-28  4:07 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-28  4:00 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
           Severity|major                       |normal


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

* [Bug target/34434] internal compiler error: in insert_save, at caller-save.c:725
       [not found] <bug-34434-4@http.gcc.gnu.org/bugzilla/>
  2012-01-28  4:00 ` [Bug target/34434] internal compiler error: in insert_save, at caller-save.c:725 pinskia at gcc dot gnu.org
@ 2012-01-28  4:07 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-28  4:07 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.3.5
               Host|x86_64-linux-gnu            |
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.5
              Build|x86_64-linux-gnu            |

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-28 03:53:51 UTC ---
Fixed in 4.3.5.
Reduced testcase:
typedef unsigned long Word_t;
typedef struct struct_vproc VProc_t;
struct struct_vproc {
    unsigned long globNextW;
    unsigned long globLimit;
};
void GetChunkForVProc ();
static inline Word_t CompareAndSwapWord (Word_t *ptr, Word_t old, Word_t new)
{
    register Word_t result __asm__ ("%rax");
    __asm__ __volatile__ ( "movq %2,%%rbx\n\t": "=m" (*ptr): "g" (old), "g"
(new): "memory", "%rax");
    return result;
}
void StartGlobalGC (VProc_t *vp, unsigned long **scanPtr, Word_t *scanTop)
{
    GetChunkForVProc (0);
    do
    {
     Word_t hdr = *scanPtr++;
     if (isMixedHdr(hdr))
     {
       int len = GetVectorLen(hdr);
       for (int i = 0; i < len; i++, scanPtr++)
       {
         Word_t *v = *scanPtr;
         if (isPtr(v)&& AddrToChunk() == 0) 
     {
      Word_t oldHdr = v[-1];
      if (isForwardPtr(oldHdr))
      {
        Word_t *nextW = (Word_t *)vp->globNextW;
        int len = GetLength(oldHdr);
        if (nextW >= (Word_t *)(vp->globLimit)) 
          nextW = (Word_t *)vp->globNextW;
        Word_t hdr = CompareAndSwapWord(v-1, oldHdr, nextW);
        nextW[-1] = hdr;
      }
    }
       }
     }
    }
 while (scanPtr < scanTop);
}


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

end of thread, other threads:[~2012-01-28  3:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-34434-4@http.gcc.gnu.org/bugzilla/>
2012-01-28  4:00 ` [Bug target/34434] internal compiler error: in insert_save, at caller-save.c:725 pinskia at gcc dot gnu.org
2012-01-28  4:07 ` pinskia at gcc dot gnu.org

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).