Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 1999 11:40:40 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cracauer@cons.org, freebsd-bugs@FreeBSD.ORG, steve@FreeBSD.ORG
Subject:   Re: kern/2142: FP mask not saved for signal handlers
Message-ID:  <19990503114038.A24124@cons.org>
In-Reply-To: <199905011743.DAA03750@godzilla.zeta.org.au>; from Bruce Evans on Sun, May 02, 1999 at 03:43:03AM %2B1000
References:  <199905011743.DAA03750@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In <199905011743.DAA03750@godzilla.zeta.org.au>, Bruce Evans wrote: 
> You are allowed to do silly things like:
[...]
> This does floating point computations in a signal handler and doesn't
> have any side effects except the one permitted by ANSI (assigning a value
> to an object declared as volatile_sig_atomic_t).  The volatile doubles
> just prevent some of the floating point computations being optimised away.
> This shows that the FP state needs to be preserved by signal handlers.

When I closed my bug report, I misread the ANSI standard. I thought
you were not allowed to manipulate any variables that aren't volatile
sig_atomic_t, where this applies only for variables visible outside
the signal handler, thus FreeBSD is broken here.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
  Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990503114038.A24124>