From 1be75d8fe00c1ac44e38b5d5867ade7f6a3ffce2 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 15 Jul 2004 17:45:29 -0500 Subject: [svn-r8886] Purpose: bug fix. Description: The previous patch of -D__GNUC__ was causing failure in the newer compiler. The previous failure could not be repeated any more. So, removed it. Platforms tested: Tested only in TG-NCSA since the change affects only the ia64 platform. Misc. update: --- config/ia64-linux-gnu | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/config/ia64-linux-gnu b/config/ia64-linux-gnu index d6762bb..77faf0c 100644 --- a/config/ia64-linux-gnu +++ b/config/ia64-linux-gnu @@ -16,34 +16,34 @@ fi # `--enable-debug' switch of configure. For ecc 7.1, because of the # overlapping definitions of int64_t(starting from int8_t) in sys/types.h # and stdint.h, we added -D__GNUC__ to CFLAGS. +# This problem is no longer true and the -D_GNUC__ actually caused failure. +# So it is removed. case $CC_BASENAME in - ecc) - CFLAGS="$CFLAGS -std=c99 -w2 -Wall -D__GNUC__" + ecc) + # Default to C99 standard. + CFLAGS="${CFLAGS:--std=c99}" + DEBUG_CFLAGS="-w2 -Wall -g -O0" + DEBUG_CPPFLAGS= + PROD_CFLAGS="" # ecc has -O2 as default + PROD_CPPFLAGS= + PROFILE_CFLAGS="-p" + PROFILE_CPPFLAGS= + ;; - DEBUG_CFLAGS="-g -O0" - DEBUG_CPPFLAGS= + gcc) + . $srcdir/config/gnu-flags + ;; - PROD_CFLAGS="" - PROD_CFLAGS="" # ecc has -O2 as default - PROD_CPPFLAGS= - PROFILE_CFLAGS="-p" - PROFILE_CPPFLAGS= - ;; - - gcc) - . $srcdir/config/gnu-flags - ;; - - *) - CFLAGS="$CFLAGS -ansi" - DEBUG_CFLAGS="-g" - DEBUG_CPPFLAGS= - PROD_CFLAGS="-O" - PROD_CPPFLAGS= - PROFILE_CFLAGS="-pg" - PROFILE_CPPFLAGS= - ;; + *) + CFLAGS="$CFLAGS -ansi" + DEBUG_CFLAGS="-g" + DEBUG_CPPFLAGS= + PROD_CFLAGS="-O" + PROD_CPPFLAGS= + PROFILE_CFLAGS="-pg" + PROFILE_CPPFLAGS= + ;; esac # The default Fortran 90 compiler -- cgit v0.12