<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Screen corruption on Cayman with dpm enabled"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66932#c26">Comment # 26</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Screen corruption on Cayman with dpm enabled"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66932">bug 66932</a>
              from <span class="vcard"><a class="email" href="mailto:agd5f@yahoo.com" title="Alex Deucher <agd5f@yahoo.com>"> <span class="fn">Alex Deucher</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=66932#c24">comment #24</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=66932#c22">comment #22</a>)
> > (In reply to <a href="show_bug.cgi?id=66932#c18">comment #18</a>)
> > > Created <span class=""><a href="attachment.cgi?id=82559" name="attach_82559" title="weird fix">attachment 82559</a> <a href="attachment.cgi?id=82559&action=edit" title="weird fix">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=66932&attachment=82559'>[review]</a> [review] [review] [review]
> > > weird fix
> > > 
> > 
> > Hmmm, looks like a compiler bug.  what compiler are you using?

> gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-6ubuntu1) 

> But I think the compiler is right in this case. struct ATOM_INIT_REG_BLOCK
> doesn't represent what radeon_atom_init_mc_reg_table() is doing.

> The struct in the header reads:
> ...
> ATOM_INIT_REG_INDEX_FORMAT asRegIndexBuf[1];
> ATOM_MEMORY_SETTING_DATA_BLOCK     asRegDataBuf[1];

> So reg_block->asRegIndexBuf[i] for i>0 is not defined, its within
> asRegDataBuf or even pass the size of the struct.

> It looks like this gcc is killing the while loop because i can never be
> anything else than zero.</span >

It works on older version of gcc. I'm using 4.6.2 and 4.7.2 on several boxes
and haven't run into any problems.  Also, even if the loop gets skipped, the
"last = " lines should still get printed.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>