[9fans] vlong double-spill botch

2011-01-03 Thread Fernan Bolando
what does vlong double-spill botch mean in r = (a * b) + (((a * u) + (b * t)) << 18); /* low is only 35b */ a larger section of the code is shown below t_uint64 a = ABS (s1); t_uint64 b = ABS (s2); t_uint64 t, u, r; if ((a == 0) || (b == 0)) { /* operand = 0

Re: [9fans] vlong double-spill botch

2011-01-03 Thread erik quanstrom
> what does vlong double-spill botch mean in > r = (a * b) + (((a * u) + (b * t)) << 18); /* low is only 35b */ > this is a workaround that i put in the compiler; it's not in the distribution. the distribution compiler happily miscompiles. if both the left and rhs side of an expression

[9fans] pcc/8c dies compiling simh code

2011-01-03 Thread Fernan Bolando
hi all can anyone else confirm that the attached file effectively kills 8c? it dies on 9vx and virtualbox, will test it on real hardware tomorrow. cpp -D__STDC__=1 -N -I. -D_PLAN9 -D_POSIX_SOURCE -D_BSD_EXTENSION -D_C99_SNPRINTF_EXTENSION -DVM_PDP10 -IPDP10 -IPDP11 -I/386/include/ape -I/sys/inclu

Re: [9fans] pcc/8c dies compiling simh code

2011-01-03 Thread ron minnich
On Mon, Jan 3, 2011 at 8:11 AM, Fernan Bolando wrote: > hi all > > can anyone else confirm that the attached file effectively kills 8c? > it dies on 9vx and virtualbox, will test it on real hardware tomorrow. > > cpp -D__STDC__=1 -N -I. -D_PLAN9 -D_POSIX_SOURCE -D_BSD_EXTENSION > -D_C99_SNPRINTF_E

Re: [9fans] pcc/8c dies compiling simh code

2011-01-03 Thread erik quanstrom
On Mon Jan 3 11:12:58 EST 2011, fernanbola...@mailc.net wrote: > hi all > > can anyone else confirm that the attached file effectively kills 8c? > it dies on 9vx and virtualbox, will test it on real hardware tomorrow. > > cpp -D__STDC__=1 -N -I. -D_PLAN9 -D_POSIX_SOURCE -D_BSD_EXTENSION > -D_C9

Re: [9fans] plan 9 compose sequences under X

2011-01-03 Thread pmarin
On Sun, Jan 2, 2011 at 9:41 PM, Russ Cox wrote: > Based on information from Anthony Martin, Tony Lainson, and > Kris Maglione (thanks all!), I have added a -x flag to mklatinkbd, > so that you can get the same compose sequences in GTK and QT > programs that you can in Plan 9 programs.  Quoting th

Re: [9fans] pcc/8c dies compiling simh code

2011-01-03 Thread erik quanstrom
this function (here reorganized to avoid the register allocation problem) was the problem: if *buf were a d10 already, i don't think you'd have seen this problem. int32 Map_WriteB (uint32 ba, int32 bc, uint8 *buf) { uint32 lim; a10 pa10; d10 mask, shift; lim = ba