On Linux-PPC, using gcc, downgrade to the -O1 optimisation
Rafael Garcia-Suarez [Fri, 16 Apr 2004 15:53:37 +0000 (15:53 +0000)]
level (with -O2 miniperl behaves really badly.)

p4raw-id: //depot/perl@22706

hints/linux.sh

index 551d96e..61d9fc8 100644 (file)
@@ -86,7 +86,16 @@ esac
 
 case "$optimize" in
 # use -O2 by default ; -O3 doesn't seem to bring significant benefits with gcc
-'') optimize='-O2' ;;
+'')
+    optimize='-O2'
+    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.
+            optimize='-O1'
+        ;;
+    esac
+    ;;
 esac
 
 # Are we using ELF?  Thanks to Kenneth Albanowski <kjahds@kjahds.com>