This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] hppa-hpux10: Clean up config.gcc logic
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 30 Sep 2003 14:04:51 -0400
- Subject: [patch] hppa-hpux10: Clean up config.gcc logic
This avoids setting ${enable_threads} so that it's always what the
user specified. There should be no behavioral changes, as enable_threads
isn't used after this point.
I'd like to get an hppa-hpux test of this though. :-)
* config.gcc (hppa1.1-*-hpux10* | hppa2*-*-hpux10*,
hppa1.0-*-hpux10*): Clean up ${enable_threads} handling.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.390
diff -u -r1.390 config.gcc
--- config.gcc 30 Sep 2003 17:23:47 -0000 1.390
+++ config.gcc 30 Sep 2003 17:59:36 -0000
@@ -759,13 +759,17 @@
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
- if test x$enable_threads = x; then
- enable_threads=$have_pthread_h
- fi
- case x${enable_threads} in
- xyes | xdce)
- tmake_file="${tmake_file} pa/t-dce-thr"
- ;;
+ case ${enable_threads} in
+ "")
+ case ${have_pthread_h} in
+ yes)
+ tmake_file="${tmake_file} pa/t-dce-thr"
+ ;;
+ esac
+ ;;
+ yes | dce)
+ tmake_file="${tmake_file} pa/t-dce-thr"
+ ;;
esac
use_collect2=yes
use_fixproto=yes
@@ -773,13 +777,17 @@
hppa1.0-*-hpux10*)
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
- if test x$enable_threads = x; then
- enable_threads=$have_pthread_h
- fi
- case x${enable_threads} in
- xyes | xdce)
- tmake_file="${tmake_file} pa/t-dce-thr"
- ;;
+ case ${enable_threads} in
+ "")
+ case ${have_pthread_h} in
+ yes)
+ tmake_file="${tmake_file} pa/t-dce-thr"
+ ;;
+ esac
+ ;;
+ yes | dce)
+ tmake_file="${tmake_file} pa/t-dce-thr"
+ ;;
esac
use_collect2=yes
use_fixproto=yes
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html