Re: setjmp/longjmp changed in Tiger
Re: setjmp/longjmp changed in Tiger
- Subject: Re: setjmp/longjmp changed in Tiger
- From: "David N. Williams" <email@hidden>
- Date: Wed, 01 Jun 2005 14:30:50 -0400
- Organization: University of Michigan
Matt Watson wrote:
You might consider trying your code on other systems to see what they do.
Here's what I get on FreeBSD, for instance:
% ./a.out
rounding direction before setjmp is 0
rounding direction changed to 1024
status = 15
rounding direction after longjmp is 0
If you find that other OS's do the same thing, I suggest adapting your
code to work with this behavior.
The only other OS I have easy access to is linux. There I get the
same behavior as Panther:
arkanoid% gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with: ./configure --prefix=/usr --enable-shared
--enable-languages=all --enable-threads=posix --with-slibdir=/lib
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.3.1
arkanoid% gcc -lm -o testsetjmp testsetjmp.c
arkanoid% testsetjmp
rounding direction before setjmp is 0
rounding direction changed to 1024
status = 15
rounding direction after longjmp is 1024
-- David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden