diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-04-27 22:28:42 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-04-27 22:28:42 +0000 |
commit | 128bed948fb17b3c0bf47ecc0274c7701a5cf18a (patch) | |
tree | 84d2450deaef8fa1bbae2ed6c16407cbba1fe541 /src/template/solaris | |
parent | 4ade4fe422ed5b34010e7f016be3e3abc1192e7b (diff) | |
download | postgresql-128bed948fb17b3c0bf47ecc0274c7701a5cf18a.tar.gz |
Rewrite Solaris compiler tas() assembly routines, merge i386 and x86_64
assembler files, renamed as solaris_x86.s.
Theo Schlossnagle
Diffstat (limited to 'src/template/solaris')
-rw-r--r-- | src/template/solaris | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/src/template/solaris b/src/template/solaris index 2efe24949b..c8b522cc4a 100644 --- a/src/template/solaris +++ b/src/template/solaris @@ -4,29 +4,21 @@ if test "$GCC" != yes ; then if test "$enable_debug" != yes; then CFLAGS="$CFLAGS -O" # any optimization breaks debug fi -fi - -# Pick right test-and-set (TAS) code. We need out-of-line assembler -# when not using gcc. -case $host in - sparc-*-solaris*) - if test "$GCC" != yes ; then - need_tas=yes - tas_file=solaris_sparc.s - fi +else + # Pick the right test-and-set (TAS) code for the Sun compiler. + # We would like to use in-line assembler, but the compiler + # requires *.il files to be on every compile line, making + # the build system too fragile. + case $host in + sparc-*-solaris*) + need_tas=yes + tas_file=solaris_sparc.s ;; - i?86-*-solaris*) - if test "$GCC" != yes ; then - if isainfo | grep amd64 - then - need_tas=yes - tas_file=solaris_x86_64.s - else - need_tas=yes - tas_file=solaris_i386.s - fi - fi + i?86-*-solaris*) + need_tas=yes + tas_file=solaris_x86.s ;; -esac + esac +fi # -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things |