From: Steve Peters Date: Wed, 10 May 2006 23:02:20 +0000 (+0000) Subject: Add -fno-delete-null-pointer-checks to ccflags on Itaniums when X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f88ad25708e2ee09c318081130c8106f3d340846;p=p5sagit%2Fp5-mst-13.2.git Add -fno-delete-null-pointer-checks to ccflags on Itaniums when compiling with gcc's 3.2, 3.3, or 3.4. This fixes RT #37156. p4raw-id: //depot/perl@28155 --- diff --git a/hints/linux.sh b/hints/linux.sh index 7412049..8dbe32f 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -98,9 +98,19 @@ case "$optimize" in case "`uname -m`" in ppc*) # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy - # with -O2 ; so downgrade to -O1. + # with -O2 ; so downgrade to -O1. optimize='-O1' ;; + ia64*) + # This architecture has had various problems with gcc's + # in the 3.2, 3.3, and 3.4 releases when optimized to -O2. See + # RT #37156 for a discussion of the problem. + case "`${cc:-gcc} -v 2>&1`" in + *"version 3.2"*|*"version 3.3"*|*"version 3.4"*) + ccflags="-fno-delete-null-pointer-checks $ccflags" + ;; + esac + ;; esac ;; esac