<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [any/all(?) cards below nv50(?)] libdrm built with gcc4.8 causes crashes/lockups during normal operation, and resume from disk/memory"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71116#c24">Comment # 24</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [any/all(?) cards below nv50(?)] libdrm built with gcc4.8 causes crashes/lockups during normal operation, and resume from disk/memory"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71116">bug 71116</a>
from <span class="vcard"><a class="email" href="mailto:bugs@mblankhorst.nl" title="Maarten Lankhorst <bugs@mblankhorst.nl>"> <span class="fn">Maarten Lankhorst</span></a>
</span></b>
<pre>Because the function also increments the push->cur pointer, it's a subtle but
real difference:
gcc-4.7:
u32 ret = func(); // May change push->cur ptr
*push->cur = ret;
push->cur++;
gcc-4.8:
u32 *ptr = push->cur;
push->cur++;
*ptr = func(); // Already sees the push->cur ptr
I'm not a language expert, so no idea if I'm right, but it seems the updated
gcc-4.8 behavior is wrong here.</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>