summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-19 11:33:32 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-19 14:58:13 -0400
commit960d7aa95fd85d333458d7fcada31d6575981c57 (patch)
tree864f83ed826642058c2418831eb2c2549a1a6b22
parent513433ab5e8823ec87ddbae400df376a166bd0d5 (diff)
downloadperl-960d7aa95fd85d333458d7fcada31d6575981c57.tar.gz
Lower the optimization on Digest-SHA for HP-UX cc.
Upstream, but we are adding a platform specific hints file.
-rw-r--r--MANIFEST1
-rw-r--r--cpan/Digest-SHA/hints/hpux.pl13
2 files changed, 14 insertions, 0 deletions
diff --git a/MANIFEST b/MANIFEST
index dd8f08e501..6cd6a753b3 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -683,6 +683,7 @@ cpan/Digest-MD5/t/md5-aaa.t See if Digest::MD5 extension works
cpan/Digest-MD5/t/threads.t See if Digest::MD5 extension works
cpan/Digest-MD5/t/utf8.t See if Digest::MD5 extension works
cpan/Digest-MD5/typemap Digest::MD5 extension
+cpan/Digest-SHA/hints/hpux.pl Hint for HP-UX for named architecture
cpan/Digest-SHA/lib/Digest/SHA.pm Digest::SHA extension
cpan/Digest-SHA/Makefile.PL Digest::SHA Makefile.PL
cpan/Digest-SHA/shasum shasum script
diff --git a/cpan/Digest-SHA/hints/hpux.pl b/cpan/Digest-SHA/hints/hpux.pl
new file mode 100644
index 0000000000..942f223ba6
--- /dev/null
+++ b/cpan/Digest-SHA/hints/hpux.pl
@@ -0,0 +1,13 @@
+# With +O2 this HP-UX cc compiler creates code which coredumps (Bus error)
+# when running t/woodbury.t, but dropping to +O1 seems to dodge that.
+if ($Config{cc} eq 'cc' &&
+ $Config{archname} eq 'PA-RISC2.0' &&
+ $Config{ccversion} =~ /^B\.11\.11\./) {
+ if (defined $self->{OPTIMIZE}) {
+ $self->{OPTIMIZE} =~ s/\+O[2-9]/+O1/;
+ $self->{OPTIMIZE} =~ s/ \+Onolimit//;
+ } else {
+ $self->{OPTIMIZE} = '+O1';
+ }
+}
+