Re: setjmp/longjmp changed in Tiger
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Organization: University of Michigan User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 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 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Matt Watson wrote: If you find that other OS's do the same thing, I suggest adapting your code to work with this behavior. This email sent to site_archiver@lists.apple.com
participants (1)
-
David N. Williams