And now PPC32 (was Re: Taming PowerPC 64)

2015-03-05 Thread Nicholas Clark
On Thu, Mar 05, 2015 at 08:41:51PM +, Nicholas Clark wrote: > On Thu, Mar 05, 2015 at 07:57:12PM +, Nicholas Clark wrote: > > > Sadly PPC32 is a mess. With these patches NQP will build, and the nativecall > > tests pass. However 2 other tests fail (arithmetic and printf problems), and > >

Re: Taming PowerPC 64

2015-03-05 Thread Nicholas Clark
On Thu, Mar 05, 2015 at 07:57:12PM +, Nicholas Clark wrote: > Sadly PPC32 is a mess. With these patches NQP will build, and the nativecall > tests pass. However 2 other tests fail (arithmetic and printf problems), and > the Rakudo build explodes with a syntax error backtrace. [nick@gcc1-power

Taming PowerPC 64

2015-03-05 Thread Nicholas Clark
Attached are two patches needed to get nearly everything working on PPC64 (At least, Fedora 18) At the moment, nativecall goes SEGV bigtime, because dyncall is misidentifying the system as PPC32, and hence using the 32 bit calling code. D'oh! As far as I can figure out, dyncall isn't really as ro