diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-11-25 19:24:13 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-11-25 19:24:13 (GMT) |
commit | 5be9d3a22c9f8a5a782ec692a6f645bf57124e61 (patch) | |
tree | 9e9d1888b2f202a123339d12ac4a4684daf0938e /config/dec-flags | |
parent | 378b5ad0f1bd0f15e6dd8f479c19f25502555184 (diff) | |
download | hdf5-5be9d3a22c9f8a5a782ec692a6f645bf57124e61.zip hdf5-5be9d3a22c9f8a5a782ec692a6f645bf57124e61.tar.gz hdf5-5be9d3a22c9f8a5a782ec692a6f645bf57124e61.tar.bz2 |
[svn-r7880] Purpose:
Update DEC compiler support
Description:
Updated DEC/Compaq compiler detection to handle DEC->Compaq switchover
in compiler version string.
Also, copied v5.x compiler flags to V6.x compiler flags and included the
-ieee and -misalign flags necessary for correct floating-point support.
Platforms tested:
Pittsburgh Alpha Cluster (lemieux.psc.edu)
Diffstat (limited to 'config/dec-flags')
-rw-r--r-- | config/dec-flags | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/config/dec-flags b/config/dec-flags index d35dee8..291cc93 100644 --- a/config/dec-flags +++ b/config/dec-flags @@ -12,8 +12,18 @@ # if test X = "X$cc_flags_set"; then cc_vendor=DEC - cc_version="`$CC $CFLAGS -V 2>&1 |head -1 |\ - sed 's/.*DEC C \(V[0-9][-\.0-9]*\).*/\1/'`" + cc_version="`$CC $CFLAGS -V 2>&1 |head -1`" + case "$cc_version" in + DEC*) + cc_version="`echo $cc_version |\ + sed 's/.*DEC C \(V[0-9][-\.0-9]*\).*/\1/'`" + ;; + Compaq*) + cc_version="`echo $cc_version |\ + sed 's/.*Compaq C \(V[0-9][-\.0-9]*\).*/\1/'`" + ;; + esac + if test X != "$gcc_version"; then echo "compiler '$CC' is $cc_vendor-$cc_version" else @@ -39,15 +49,32 @@ esac case "$cc_vendor-$cc_version" in DEC-V5.*) # Production - PROD_CFLAGS="-g0 -verbose -warnprotos -std -O4 $ARCH -ansi_args -fp_reorder -readonly_strings -inline speed" + PROD_CFLAGS="-std -verbose -warnprotos -ieee -misalign -O4 $ARCH -ansi_args -fp_reorder -readonly_strings -inline speed" + PROD_CPPFLAGS="-D_INTRINSICS -D_INLINE_INTRINSICS" + + # Debug + DEBUG_CFLAGS="-g -std -verbose -warnprotos -ieee -misalign" + DEBUG_CPPFLAGS= + + # Profile + PROFILE_CFLAGS="-pg -std -verbose -warnprotos -ieee -misalign" + PROFILE_CPPFLAGS= + + # Flags are set + cc_flags_set=yes + ;; + + DEC-V6.*) + # Production + PROD_CFLAGS="-std1 -verbose -warnprotos -ieee -misalign -O4 $ARCH -fp_reorder -readonly_strings -inline speed" PROD_CPPFLAGS="-D_INTRINSICS -D_INLINE_INTRINSICS" # Debug - DEBUG_CFLAGS="-g -std -verbose -warnprotos" + DEBUG_CFLAGS="-g -std1 -verbose -warnprotos -ieee -misalign" DEBUG_CPPFLAGS= # Profile - PROFILE_CFLAGS="-pg -std -verbose -warnprotos" + PROFILE_CFLAGS="-pg -std1 -verbose -warnprotos -ieee -misalign" PROFILE_CPPFLAGS= # Flags are set |