From afb09b5a31a558709b7a8c577e447c60ff25ca1b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 23 Dec 2003 22:15:07 +0000 Subject: Use inlined TAS() on PA-RISC, if we are compiling with gcc. Patch inspired by original submission from ViSolve. --- src/template/hpux | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/template') diff --git a/src/template/hpux b/src/template/hpux index 154b5743aa..775c55a935 100644 --- a/src/template/hpux +++ b/src/template/hpux @@ -5,7 +5,13 @@ if test "$GCC" != yes ; then CFLAGS="+O2" fi -# Pick right test-and-set (TAS) code. +# Pick right test-and-set (TAS) code. We need out-of-line assembler +# when not using gcc. case $host in - hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.s ;; + hppa*-*-hpux*) + if test "$GCC" != yes ; then + need_tas=yes + tas_file=hpux_hppa.s + fi + ;; esac -- cgit v1.2.3