[HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Brent Verner
On 28 Dec 2000 at 23:08 (-0500), Tom Lane wrote: | > after fresh CVS update: geometry, float8, and oid are still failing, | | You're running this on DEC's cc, right? Geometry and float8 are a | matter of fixing the expected output, I think. I'm surprised that the | OID test is failing for you -

[HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Tom Lane
> after fresh CVS update: geometry, float8, and oid are still failing, You're running this on DEC's cc, right? Geometry and float8 are a matter of fixing the expected output, I think. I'm surprised that the OID test is failing for you --- it passes for me on that Debian box. Could you step thro

[HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Brent Verner
On 28 Dec 2000 at 17:40 (-0500), Tom Lane wrote: | Okay ... I guess the LOCK_LONG macros are our best shot. Here is a | proposed new Alpha section for s_lock.h. Would you try it and let me | know how it works for you? | | Note that this will NOT fix the CreateCheckPoint shutdown error; don't |

[HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Tom Lane
Brent Verner <[EMAIL PROTECTED]> writes: > what have I stumbled into :). 'damnit Jim!, I'm just a perl hacker.' I've found an online version of the AXP Architecture Handbook at ftp://ftp.netbsd.org/pub/NetBSD/misc/dec-docs/index.html in particular the file ec-qd2ka-te.ps.gz listed near the top

[HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Brent Verner
On 28 Dec 2000 at 12:41 (-0500), Tom Lane wrote: | Brent Verner <[EMAIL PROTECTED]> writes: | > I see this with the version of TAS() that you recently suggested, but not | > with either of the versions I'd hacked up. | | Hm. Your second version might incorrectly appear to work because it's | no

[HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Tom Lane
Brent Verner <[EMAIL PROTECTED]> writes: > I see this with the version of TAS() that you recently suggested, but not > with either of the versions I'd hacked up. Hm. Your second version might incorrectly appear to work because it's not checking for stq_c failure. The first one loops until it s

[HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Brent Verner
On 28 Dec 2000 at 10:48 (-0500), Tom Lane wrote: | Brent Verner <[EMAIL PROTECTED]> writes: | > another loop-free version of TAS that /seems/ to work as desired. | | Since it doesn't check to see if the stq_c succeeded, it can't possibly | be right... right, I just realized that while composing

Re: [HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Tom Lane
Adriaan Joubert <[EMAIL PROTECTED]> writes: > For Tru64 there are macros in /usr/include/alpha/builtins.h > which do the job. It would be interesting to see the assembly code that those macros expand to. > Doing this in assembler is totally non-trivial, as most versions are > only liable to work

Re: [HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Brent Verner
On 28 Dec 2000 at 17:03 (+0200), Adriaan Joubert wrote: | Hi, | | I missed the beginning of this thread. Are you doing this for Tru64 or | for Linux? For Tru64 there are macros in /usr/include/alpha/builtins.h | which do the job. gcc + Tru64, since gcc-2.95.2 doesn't implement the builtins

[HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Tom Lane
Brent Verner <[EMAIL PROTECTED]> writes: > another loop-free version of TAS that /seems/ to work as desired. Since it doesn't check to see if the stq_c succeeded, it can't possibly be right... > WRT to your seeing the shutdown lock failure, what are you doing to > provoke this bug? "pg_ctl stop

Re: [HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Adriaan Joubert
Hi, I missed the beginning of this thread. Are you doing this for Tru64 or for Linux? For Tru64 there are macros in /usr/include/alpha/builtins.h which do the job. Doing this in assembler is totally non-trivial, as most versions are only liable to work on single-processor machines and no

[HACKERS] Re: Alpha tas() patch

2000-12-28 Thread Brent Verner
On 27 Dec 2000 at 21:37 (-0500), Tom Lane wrote: | Brent Verner <[EMAIL PROTECTED]> writes: | > This is a revised patch that I sent earlier to allow building | > pg-7.1 with gcc as well as DEC's cc. I've had good results with this | > applied. Could some other Alpha users try this out. Even bett

[HACKERS] Re: Alpha tas() patch

2000-12-27 Thread Tom Lane
Brent Verner <[EMAIL PROTECTED]> writes: > This is a revised patch that I sent earlier to allow building > pg-7.1 with gcc as well as DEC's cc. I've had good results with this > applied. Could some other Alpha users try this out. Even better, could > an Alpha asm guru look over the asm that I'm