develooper Front page | perl.vmsperl | Postings from June 2002

[PATCH] fix stuck MD5 compile on VAX

Thread Next
From:
Craig A. Berry
Date:
June 8, 2002 21:01
Subject:
[PATCH] fix stuck MD5 compile on VAX
Message ID:
a05111b05b92881c6c8c4@[172.16.52.1]
The patch here modifies an existing hack to turn off compiler 
optimizations when building this extension with DEC/Compaq C on 
OpenVMS VAX.  Previously, compiler versions later than 5.3 were 
allowed to attempt an optimized compile, but a recent report of an 
endlessly looping build with Compaq C 6.4 suggests the compiler bug 
that prevents the optimization from converging is still (or again) 
present.  The compile has always worked fine on Alpha.

--- ext/Digest/MD5/Makefile.PL;-0       Sat Jun  1 12:02:54 2002
+++ ext/Digest/MD5/Makefile.PL  Sat Jun  8 22:51:04 2002
@@ -13,7 +13,8 @@
 my @optimize = ();
 if ($^O eq 'VMS') {
     if (defined($Config{ccname})) {
-        if ($Config{ccversion} <= 50390006 && grep(/VMS_VAX/, @INC) && ($Config{ccname} eq 'DEC')) {
+        if (grep(/VMS_VAX/, @INC) && ($Config{ccname} eq 'DEC')) {
+            # VAX compiler optimizer even as late as v6.4 gets stuck
             @optimize = ("OPTIMIZE","/Optimize=(NODISJOINT)");
         }
     }
[end of patch]
-- 
________________________________________
Craig A. Berry
mailto:craigberry@mac.com

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About