Re: using -ftracer stops buildworld at shutdown.c
From: Stefan Farfeleder (stefan_at_fafoe.narf.at)
Date: 07/27/05
- Previous message: loader: "Re: FreeBSD ported to the XBox!"
- In reply to: jason henson: "using -ftracer stops buildworld at shutdown.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Jul 2005 15:31:35 +0200 To: jason henson <jason@ec.rr.com>
On Tue, Jul 26, 2005 at 06:46:55PM -0400, jason henson wrote:
> To avoid this warning, the variables and/or arguments should be
> prevented from being optimized by declaring them as volatile.
>
> So I sprinkled some volatiles around, but mostly got more errors that
> said "gcc volatile discards qualifiers from pointer target type" in the
> fprintf functions.
Replacing line 276 with 'FILE *volatile pf;' fixes the warning. But the
usage of {long,set}jmp() is wrong anyway since timeout() can jump back
into timewarn() while that isn't executed at all.
Stefan
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- text/plain attachment: shutdown.c.diff
- Previous message: loader: "Re: FreeBSD ported to the XBox!"
- In reply to: jason henson: "using -ftracer stops buildworld at shutdown.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|