This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The HP-UX optimizer fails again (on Itanium only this time)
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Sun, 5 Aug 2018 07:56:10 +0000 (09:56 +0200)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Sun, 5 Aug 2018 07:56:10 +0000 (09:56 +0200)
hints/hpux.sh

index a2a6bb0..d224cee 100644 (file)
@@ -82,13 +82,13 @@ case `$cc -v 2>&1`"" in
                fi
            case "$gccversion" in
                [012]*) # HP-UX and gcc-2.* break UINT32_MAX :-(
-                       ccflags="$ccflags -DUINT32_MAX_BROKEN"
-                       ;;
+                   ccflags="$ccflags -DUINT32_MAX_BROKEN"
+                   ;;
                [34]*) # GCC (both 32bit and 64bit) will define __STDC_EXT__
                        # by default when using GCC 3.0 and newer versions of
                        # the compiler.
-                       cppflags="$cc_cppflags"
-                       ;;
+                  cppflags="$cc_cppflags"
+                  ;;
                esac
            case "`getconf KERNEL_BITS 2>/dev/null`" in
                *64*)
@@ -433,10 +433,11 @@ case "$ccisgcc" in
            esac
        if [ $maxdsiz -le 64 ]; then
            case "$optimize" in
-               *O2*)   opt=`echo "$optimize" | sed -e 's/O2/O1/'`
-                       toke_cflags="$toke_cflags;optimize=\"$opt\""
-                       regexec_cflags="optimize=\"$opt\""
-                       ;;
+               *O2*)
+                   opt=`echo "$optimize" | sed -e 's/O2/O1/'`
+                   toke_cflags="$toke_cflags;optimize=\"$opt\""
+                   regexec_cflags="optimize=\"$opt\""
+                   ;;
                esac
            fi
        ;;
@@ -491,11 +492,13 @@ case "$ccisgcc" in
                        # +Onolibcalls=strcmp
                        # passes all tests (with/without -DDEBUGGING) [Nov 17 2011]
                        case "$optimize" in
-                               *O2*) optimize="$optimize +Onoprocelim +Ostore_ordering +Onolibcalls=strcmp" ;;
-                               esac
+                           *O2*) optimize="$optimize +Onoprocelim +Ostore_ordering +Onolibcalls=strcmp" ;;
+                           esac
                        ;;
                    *)  doop_cflags="optimize=\"$opt\""
-                       op_cflags="optimize=\"$opt\""   ;;
+                       op_cflags="optimize=\"$opt\""
+                       #opt=`echo "$optimize" | sed -e 's/O1/O0/'`
+                       globals_cflags="optimize=\"$opt\""      ;;
                    esac
                ;;
            esac