lkml.org 
[lkml]   [2000]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Kernel 2.2.17 with RedHat 7 Problem !
On Mon, Oct 23, 2000 at 12:05:22PM -0400, Aaron Sethman wrote:
> [..] gcc is doing the right thing, just not what you expected.

This code:

iv.it_interval.tv_sec = 0;
iv.it_interval.tv_usec = 250000;

iv.it_value = iv.it_interval;

got miscompiled as:

iv.it_value = iv.it_interval; /* read random */

iv.it_interval.tv_sec = 0;
iv.it_interval.tv_usec = 250000;

That is an obvious compiler bug. None legal optimization can allow the compiler
to do such reordering (not even with strict aliasing enabled).

Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.103 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site