Re: [PATCHES] [BUGS] Solaris cc compiler on amd: PostgreSQL does not have native

2006-01-05 Thread Bruce Momjian
Pierre Girard wrote: Bruce Momjian wrote: I have applied your patch with only minor comment additions. Let us know if additional changes are required. Thanks. Are these flags required to be supplied to configure, or just the ASM file? -Xa -xtarget=opteron -xarch=amd64 OK, I

Re: [PATCHES] [BUGS] Solaris cc compiler on amd: PostgreSQL does not have native

2006-01-05 Thread Tom Lane
Bruce Momjian pgman@candle.pha.pa.us writes: Pierre Girard wrote: MAKE=gmake CC=/opt/SUNWspro/bin/cc CFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=opteron -xarch=amd64 -xregs=no%frameptr CXX=/opt/SUNWspro/bin/CC CXXFLAGS=-xO3 -mt -fsimple=1

Re: [PATCHES] [BUGS] Solaris cc compiler on amd: PostgreSQL does not have native

2006-01-05 Thread Bruce Momjian
Pierre Girard wrote: Bruce Momjian wrote: MAKE=gmake CC=/opt/SUNWspro/bin/cc CFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=opteron -xarch=amd64 -xregs=no%frameptr CXX=/opt/SUNWspro/bin/CC CXXFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore

Re: [PATCHES] [BUGS] Solaris cc compiler on amd: PostgreSQL does not have native

2005-12-30 Thread Bruce Momjian
I have applied your patch with only minor comment additions. Let us know if additional changes are required. Thanks. Are these flags required to be supplied to configure, or just the ASM file? -Xa -xtarget=opteron -xarch=amd64 I am thinking the port isn't 100% fool-proof yet, but it

Re: [PATCHES] [BUGS] Solaris cc compiler on amd: PostgreSQL does not have native

2005-12-17 Thread Bruce Momjian
Pierre Girard wrote: Tom Lane wrote: You'd need to do something about adapting src/backend/port/tas/solaris_i386.s It's possible that the assembly code would work as-is on amd, in which case you'd just need a one-liner change in s_lock.h and maybe some adjustment of the template file.

Re: [PATCHES] [BUGS] Solaris cc compiler on amd: PostgreSQL does not have native

2005-12-17 Thread Tom Lane
Bruce Momjian pgman@candle.pha.pa.us writes: Looking before that, the 64-bit registers are now prefixed with 'r' instead of 'e', so what I did was to convert all the long/l assembler instructions to quad/64-bit/q, and rename the registers to use 64-bit versions. I also modified the function