From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 71116] [any/all(?) cards below nv50(?)] libdrm built with gcc4.8 causes crashes/lockups during normal operation, and resume from disk/memory Date: Thu, 07 Nov 2013 12:07:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0960121382==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0960121382== Content-Type: multipart/alternative; boundary="1383826021.d3776C2.25065"; charset="us-ascii" --1383826021.d3776C2.25065 Date: Thu, 7 Nov 2013 12:07:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=71116 --- Comment #24 from Maarten Lankhorst --- 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. -- You are receiving this mail because: You are the assignee for the bug. --1383826021.d3776C2.25065 Date: Thu, 7 Nov 2013 12:07:01 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 24 on bug 71116 from
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.


You are receiving this mail because:
  • You are the assignee for the bug.
--1383826021.d3776C2.25065-- --===============0960121382== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============0960121382==--