[haiku-bugs] Re: [Haiku] #6791: Missing volatile keyword

  • From: "Disreali" <trac@xxxxxxxxxxxx>
  • Date: Tue, 08 Mar 2011 01:09:39 -0000

#6791: Missing volatile keyword
-----------------------------+----------------------------
   Reporter:  kaliber        |      Owner:  axeld
       Type:  bug            |     Status:  new
   Priority:  normal         |  Milestone:  R1
  Component:  System/Kernel  |    Version:  R1/Development
 Resolution:                 |   Keywords:
 Blocked By:                 |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------
Changes (by Disreali):

 * cc: mdisreali@… (added)


Comment:

 That is how it is currently written. see [http://dev.haiku-
 os.org/browser/haiku/trunk/src/system/kernel/arch/x86/vm86.cpp#L573 here]

 I just watched the  [http://devimages.apple.com/llvm/videos/Libclang.mov
 "libclang: Thinking Beyond the Compiler" video] and if I understand
 correctly, the error is the underlined *((uint32 *)0) part, . Clang is
 suggesting a replacement:
 {{{
  note: consider using __builtin_trap() or qualifying pointer with
 'volatile'
 }}}

 However, I have no real idea what the 0xdeadbeef is all about, so take
 with a grain of salt.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6791#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: