lkml.org 
[lkml]   [2001]   [Nov]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: VM-related Oops: 2.4.15pre1
DateSun, 18 Nov 2001 12:05:14 +0000 (GMT)
FromAlan Cox <>
> No. It would be a _gcc_ bug if gcc did things to "page->flags" that the
> code did not ask it to do. And that is _regardless_ of any notions of
> "strictly conforming C code". The fact is, that if gcc were to clear a
> bit that the code never clears, that is a HUGE AND GAPING GCC BUG.

Why is it a compiler bug. You've not declared that variable to be volatile
therefore it is only touched in the code flow the compiler is analysing.

> signals. See "sig_atomic_t" and friends - the compiler simply _has_ to
> guarantee that the semantics you write in C code are actually upheld.

Most programmers get signal handling wrong, they call stdio functions in
the handlers and far far worse. Nothing new there, even the BSD mail program
was broken.

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

\
 
 \ /
  Last update: 2005-03-22 12:18    [from the cache]
©2003-2008