diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-05-08 21:36:17 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-05-08 21:36:17 (GMT) |
commit | 01e00e23a3171bca7fa8d16856c059422998b5f1 (patch) | |
tree | e1e4fe19239c5faaecdc188bc0a35550996866c3 /config | |
parent | 6611d35258f8e10490067f3e3a8d3e26e36388f3 (diff) | |
download | hdf5-01e00e23a3171bca7fa8d16856c059422998b5f1.zip hdf5-01e00e23a3171bca7fa8d16856c059422998b5f1.tar.gz hdf5-01e00e23a3171bca7fa8d16856c059422998b5f1.tar.bz2 |
[svn-r3895] Purpose:
Feature Add
Description:
Added support for >2GB files to the Linux architecture. This is a
sync with the 1.5 branch. The CFLAGS now gets set in the gnu-flags
file instead of the configure script (as it should). There's special
logic to test for 64-bit files systems in Linux and add the
appropriate flags, etc.
Platforms tested:
Linux
Diffstat (limited to 'config')
-rw-r--r-- | config/gnu-flags | 54 |
1 files changed, 15 insertions, 39 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index 1788121..8f9733b 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -102,7 +102,7 @@ case "$host_os-$host_cpu" in *-i686) case "$cc_vendor-$cc_version" in - gcc-2.95*) + gcc-2.9[56]*) ARCH=${ARCH:="-march=i686 -malign-double"} ;; gcc-*|egcs-*|pgcc-*) @@ -119,23 +119,30 @@ case "`hostname`" in ;; esac -# Compiler flags +# Common GCC flags for various situations case "$cc_vendor-$cc_version" in - gcc-2.7*) + gcc*|egcs*|pgcc*) # General - CFLAGS="$CFLAGS $ARCH -ansi" + CFLAGS="$CFLAGS $ARCH -ansi -pedantic -Wchar-subscripts -Wall -W -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline" # Production - PROC_CFLAGS="-O3 $NOFP -finline-functions" + PROD_CFLAGS="-O2 $NOFP -finline-functions" PROD_CPPFLAGS= # Debug - DEBUG_CFLAGS="-g -fverbose-asm" + DEBUG_CFLAGS="-g -fverbose-asm -Wpointer-arith -Wconversion -Wredundant-decls" DEBUG_CPPFLAGS= # Profile PROFILE_CFLAGS=-pg PROFILE_CPPFLAGS= + ;; +esac + +# Version specific GCC flags +case "$cc_vendor-$cc_version" in + gcc-2.7*) + # No changes from default GCC flags... # Flags are set cc_flags_set=yes @@ -146,36 +153,14 @@ case "$cc_vendor-$cc_version" in CFLAGS="$CFLAGS $ARCH -Wsign-compare" # Production - PROD_CFLAGS="-O3 $NOFP -finline-functions -fschedule-insns2" - PROD_CPPFLAGS= - - # Debug - DEBUG_CFLAGS="-g -fverbose-asm" - DEBUG_CPPFLAGS= - - # Profile - PROFILE_CFLAGS=-pg - PROFILE_CPPFLAGS= + PROD_CFLAGS="$PROD_CFLAGS -fschedule-insns2" # Flags are set cc_flags_set=yes ;; gcc-2.95*) - # General - CFLAGS="$CFLAGS $ARCH -Wsign-compare" - - # Production - PROD_CFLAGS="-O2 $NOFP" - PROD_CPPFLAGS= - - # Debug - DEBUG_CFLAGS="-g -fverbose-asm" - DEBUG_CPPFLAGS= - - # Profile - PROFILE_CFLAGS=-pg - PROFILE_CPPFLAGS= + # No changes from default GCC flags... # Flags are set cc_flags_set=yes @@ -187,15 +172,6 @@ case "$cc_vendor-$cc_version" in # Production PROD_CFLAGS="-O6 $NOFP" - PROD_CPPFLAGS= - - # Debug - DEBUG_CFLAGS="-g -fverbose-asm" - DEBUG_CPPFLAGS= - - # Profile - PROFILE_CFLAGS=-pg - PROFILE_CPPFLAGS= # Flags are set cc_flags_set=yes |