DragonFly BSD
DragonFly users List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Why is (void)&variable; construct used?


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Apr 2005 14:38:54 -0700 (PDT)

:
:On Tue, Apr 26, 2005 at 10:58:34AM -0700, Max Okumoto wrote:
:> With the new gcc do we still need the following construct?
:
:It's a way to force the symbols as used. Remove them.
:
:Joerg

    No, it's a way to force the variable declarations to NOT be placed
    in registers, so changes to the variables effect the parent of a
    vfork (if they are in registers then they don't effect the parent).
    GCC complains about that situation for vfork, setjmp, and longjmp
    usage.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]