From: Eric Hodel Date: 2007-10-15T05:25:58+09:00 Subject: Re: Bug: Numeric#divmod calculates wrongly On Oct 14, 2007, at 03:44 , M. Edward (Ed) Borasky wrote: > And Eric has it broken on PowerPC Macs for both Ruby 1.8.6 and Ruby > 1.9.0 > > Eric, what compiler made the Ruby interpreters on your PowerPC? > > And everybody -- recompile ruby-1.8.6-p111 and see whether it works > or not. I say it's a compiler problem at this point -- maybe over- > aggressive floating-point optimization?? I doubt if the Ruby source > is broken. $ gcc -v [...] gcc version 4.0.1 (Apple Computer, Inc. build 5367) $ ruby19 -v -rrbconfig -e 'p Config::CONFIG["CFLAGS"]' ruby 1.9.0 (2007-10-13 patchlevel 0) [powerpc-darwin8.10.0] "-g -O2 -pipe -fno-common" $ ruby18 -v -rrbconfig -e 'p Config::CONFIG["CFLAGS"]' ruby 1.8.6 (2007-09-23 patchlevel 5000) [powerpc-darwin8.10.0] "-g -O2 -fno-schedule-insns2 -pipe -fno-common" -fno-schedule-insns2 is to work around a GCC bug. -- Poor workers blame their tools. Good workers build better tools. The best workers get their tools to do the work for them. -- Syndicate Wars