summaryrefslogtreecommitdiff
path: root/cpan/Digest-SHA
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 /cpan/Digest-SHA
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.
Diffstat (limited to 'cpan/Digest-SHA')
-rw-r--r--cpan/Digest-SHA/hints/hpux.pl13
1 files changed, 13 insertions, 0 deletions
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';
+ }
+}
+