HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX 11.23 Patch

From: Shinji Teragaito <shinji(at)kobe(dot)hp(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Cc: Shinji Teragaito <shinji(at)kobe(dot)hp(dot)com>
Subject: HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX 11.23 Patch
Date: 2004-08-24 04:13:43
Message-ID: vvdfz6ddvgo.wl%Shinji.Teragaito@hp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Hi,

I made a patch to let PostgreSQL work in the LP64 data model on
HP-UX PA-RISC and HP-UX Itanium platform. Also this patch contains
tas code for HP-UX Itanium.

I verified this patch on the following environment and specified as
followings at executing configure script:

* HP-UX 11.11 PA-RISC

PHSS_30766 s700_800 ANSI C compiler B.11.11.10 cumulative patch
PHSS_30966 s700_800 ld(1) and linker tools cumulative patch
PHCO_30269 s700_800 cumulative sh-posix(1) patch
PHCO_29816 s700_800 rc(1M) scripts cumulative patch
gcc (GCC) 3.4.1

1) env CC=cc ./configure --without-readline --without-zlib

2) env CC=cc CFLAGS=+DD64 ./configure --without-readline \
--without-zlib

Note: you may specify +DA2.0W instead of +DD64

3) env CC=gcc ./configure --without-readline --without-zlib

4) env CC=/usr/local/pa64/bin/gcc ./configure --without-readline \
--without-zlib

The regression test has no problem to all 96 tests in the 4 cases
above.

* HP-UX 11.23 Itanium

PHSS_30848 s700_800 HP C Compiler (A.05.57)
PHSS_30849 s700_800 u2comp/be/plugin library Patch
gcc (GCC) 3.4.1

1) env CC=cc CFLAGS="+O2" ./configure --without-readline \
--without-zlib

2) env CC=cc CFLAGS="+O2 +DD64" ./configure --without-readline \
--without-zlib

3) env CC=gcc CFLAGS="-O2" ./configure --without-readline \
--without-zlib

4) env CC=gcc CFLAGS="-O2 -mlp64" ./configure --without-readline \
--without-zlib

Only 'float8' of the regression test fails in the 4 cases above.

Cheers,

Shinji Teragaito
Hewlett-Packard Japan, Ltd.

P.S. First I made this patch for PostgreSQL 7.4.3. It's easy to
backport this patch to 7.4.3. But please be carefull to build 7.4.3 on
HP-UX 11.23 (aka HP-UX 11i v2 for HP Integrity Server): you must
specify "cc -E +legacy_cpp" in CPP at running configure. Otherwise you
will see the concatenation problem caused by genbki.sh. Now you don't
need to specify CPP to the CVS tree source code because the latest
genbki.sh doesn't use the preprocessor.

Attachment Content-Type Size
postgresql-8.0.0beta1-hpux.patch application/octet-stream 6.5 KB
regression.diffs application/octet-stream 1014 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-08-24 04:30:16 Re: [COMMITTERS] pgsql-server: Rearrange pg_subtrans handling
Previous Message Tom Lane 2004-08-24 03:52:32 Re: New warning in pg_dump

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-08-24 04:39:55 Re: HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX 11.23 Patch
Previous Message Tom Lane 2004-08-24 02:53:21 Re: SGML cleanup