Re: m32r tas() implementation

Lists: Postg윈 토토SQL
From: Martin Pitt <martin(at)piware(dot)de>
To: pgsql-ports(at)postgresql(dot)org
Cc: Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com>
Subject: m32r tas() implementation
Date: 2007-04-14 18:54:59
Message-ID: 20070414185459.GF5920@piware.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-ports

Hi PostgreSQL developers,

Kazuhiro Inaoka recently sent me a tas() implementation for the m32r
architecture [1]. It applies cleanly to 8.2.3 and seems otherwise
harmless. Do you consider applying it upstream?

Thank you,

Martin

[1] http://en.wikipedia.org/wiki/M32R

--
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntu.com
Debian Developer http://www.debian.org

Attachment Content-Type Size
13-m32r-tas.patch text/x-diff 526 bytes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martin Pitt <martin(at)piware(dot)de>
Cc: pgsql-ports(at)postgresql(dot)org, Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com>
Subject: Re: m32r tas() implementation
Date: 2007-04-14 22:17:05
Message-ID: 23547.1176589025@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-ports

Martin Pitt <martin(at)piware(dot)de> writes:
> Kazuhiro Inaoka recently sent me a tas() implementation for the m32r
> architecture [1]. It applies cleanly to 8.2.3 and seems otherwise
> harmless. Do you consider applying it upstream?

The patch seems strongly dependent on an OS as well as a chip, since
<sys/tas.h> is hardly to be expected to exist everywhere. Therefore,
it is at least short an #ifdef or so. More generally I wonder if it's
not going at it backwards: if <sys/tas.h> exists, could we use it
regardless of CPU type?

regards, tom lane


From: Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com>
To: pgsql-ports(at)postgresql(dot)org, Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com>
Subject: Re: m32r tas() implementation
Date: 2007-04-16 03:40:45
Message-ID: 4622F03D.70909@renesas.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg윈 토토SQL

Yes, I'm expecting it to be applied to upstream.

Regards,
Kazuhiro Inaoka

Martin Pitt wrote:
> Hi PostgreSQL developers,
>
> Kazuhiro Inaoka recently sent me a tas() implementation for the m32r
> architecture [1]. It applies cleanly to 8.2.3 and seems otherwise
> harmless. Do you consider applying it upstream?
>
> Thank you,
>
> Martin
>
> [1] http://en.wikipedia.org/wiki/M32R
>
>


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com>
Cc: Martin Pitt <martin(at)piware(dot)de>, pgsql-ports(at)postgresql(dot)org
Subject: Re: m32r tas() implementation
Date: 2007-04-24 02:22:23
Message-ID: 19228.1177381343@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-ports

Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com> writes:
> I'm porting only for Linux on m32r. I think m32r's tas() is depend on
> glibc's implementation.
> It's a system call now. So <sys/tas.h> should be used for Linux/m32r only.

Well, my point stands: sys/tas.h is not present on every Linux, so we
need at least another #ifdef here. I'm not sure what it should be though.

regards, tom lane


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-ports(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com>, Martin Pitt <martin(at)piware(dot)de>
Subject: Re: m32r tas() implementation
Date: 2007-04-24 05:27:52
Message-ID: 200704240727.54617.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg스포츠 토토

Tom Lane wrote:
> Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com> writes:
> > I'm porting only for Linux on m32r. I think m32r's tas() is depend
> > on glibc's implementation.
> > It's a system call now. So <sys/tas.h> should be used for
> > Linux/m32r only.
>
> Well, my point stands: sys/tas.h is not present on every Linux, so we
> need at least another #ifdef here. I'm not sure what it should be
> though.

But every Linux on m32r does have sys/tas.h. It's among the glibc
header files for that port.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Martin Pitt <martin(at)piware(dot)de>
Cc: pgsql-ports(at)postgresql(dot)org, Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com>
Subject: Re: m32r tas() implementation
Date: 2007-04-27 01:21:30
Message-ID: 200704270121.l3R1LUO24700@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-ports


Your patch has been added to the PostgreSQL unapplied patches list at:

http://momjian.postgresql.org/cgi-bin/pgpatches

It will be applied as soon as one of the PostgreSQL committers reviews
and approves it.

---------------------------------------------------------------------------

Martin Pitt wrote:
-- Start of PGP signed section.
> Hi PostgreSQL developers,
>
> Kazuhiro Inaoka recently sent me a tas() implementation for the m32r
> architecture [1]. It applies cleanly to 8.2.3 and seems otherwise
> harmless. Do you consider applying it upstream?
>
> Thank you,
>
> Martin
>
> [1] http://en.wikipedia.org/wiki/M32R
>
> --
> Martin Pitt http://www.piware.de
> Ubuntu Developer http://www.ubuntu.com
> Debian Developer http://www.debian.org

-- End of PGP section, PGP failed!

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.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: Martin Pitt <martin(at)piware(dot)de>
Cc: pgsql-ports(at)postgresql(dot)org, Kazuhiro Inaoka <inaoka(dot)kazuhiro(at)renesas(dot)com>
Subject: Re: m32r tas() implementation
Date: 2007-05-04 15:26:28
Message-ID: 26958.1178292388@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-ports

Martin Pitt <martin(at)piware(dot)de> writes:
> Kazuhiro Inaoka recently sent me a tas() implementation for the m32r
> architecture [1]. It applies cleanly to 8.2.3 and seems otherwise
> harmless. Do you consider applying it upstream?

Applied with addition of a configure probe for <sys/tas.h>.

regards, tom lane