This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add -fno-delete-null-pointer-checks to ccflags on Itaniums when
authorSteve Peters <steve@fisharerojo.org>
Wed, 10 May 2006 23:02:20 +0000 (23:02 +0000)
committerSteve Peters <steve@fisharerojo.org>
Wed, 10 May 2006 23:02:20 +0000 (23:02 +0000)
compiling with gcc's 3.2, 3.3, or 3.4.  This fixes RT #37156.

p4raw-id: //depot/perl@28155

hints/linux.sh

index 7412049..8dbe32f 100644 (file)
@@ -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