pgsql: Add simplified sparc8 ASM for solaris_sparc.s, from Alan Stange.

Lists: pgsql-committerspgsql-hackers
From: momjian(at)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add simplified sparc8 ASM for solaris_sparc.s, from Alan Stange.
Date: 2006-05-18 00:05:02
Message-ID: [email protected]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Log Message:
-----------
Add simplified sparc8 ASM for solaris_sparc.s, from Alan Stange.

Modified Files:
--------------
pgsql/src/backend/port/tas:
solaris_sparc.s (r1.7 -> r1.8)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/tas/solaris_sparc.s.diff?r1=1.7&r2=1.8)


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Add simplified sparc8 ASM for solaris_sparc.s, from Alan Stange.
Date: 2006-05-18 20:23:29
Message-ID: [email protected]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

momjian(at)postgresql(dot)org (Bruce Momjian) writes:
> Add simplified sparc8 ASM for solaris_sparc.s, from Alan Stange.

Has this actually been tested at all?

The reason I don't think it works is that ldstub and cas are not
interchangeable; they don't even work on the same data width.
Surely there need to be some #ifdefs in s_lock.h as well.

regards, tom lane


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Add simplified sparc8 ASM for solaris_sparc.s,
Date: 2006-05-18 21:20:25
Message-ID: [email protected]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> momjian(at)postgresql(dot)org (Bruce Momjian) writes:
> > Add simplified sparc8 ASM for solaris_sparc.s, from Alan Stange.
>
> Has this actually been tested at all?
>
> The reason I don't think it works is that ldstub and cas are not
> interchangeable; they don't even work on the same data width.
> Surely there need to be some #ifdefs in s_lock.h as well.

What I did was to assign to %o1 like is done with ldstub, so I assume
that will work. You are right that we had trouble with 'cas' until we
changed the typedef for slock_t from unsigned char to int, so I added
this patch to use 'unsigned char' for sparcv8.

As far as testing, I think we are going to have to wait for someone who
cares about sparcv8 because none of our current Sparc guys are testing
on that.

--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [COMMITTERS] pgsql: Add simplified sparc8 ASM for solaris_sparc.s, from Alan Stange.
Date: 2006-05-18 21:47:19
Message-ID: [email protected]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> As far as testing, I think we are going to have to wait for someone who
> cares about sparcv8 because none of our current Sparc guys are testing
> on that.

Yeah, I don't see anyone at all in the buildfarm testing Solaris-on-Sparc
with the Sun tools. So all these patches are completely untested, in
either the cas or ldstub paths. Ugh.

regards, tom lane


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [COMMITTERS] pgsql: Add simplified sparc8 ASM for solaris_sparc.s,
Date: 2006-05-18 21:55:52
Message-ID: [email protected]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > As far as testing, I think we are going to have to wait for someone who
> > cares about sparcv8 because none of our current Sparc guys are testing
> > on that.
>
> Yeah, I don't see anyone at all in the buildfarm testing Solaris-on-Sparc
> with the Sun tools. So all these patches are completely untested, in
> either the cas or ldstub paths. Ugh.

Yep, "Ugh" is right. I spent months trying to get someone to look at
this, so I think we are better than we were. We have done our best.

--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +