summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-24 06:13:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-24 06:13:13 +0000
commitb5967c96bba0911f2cc6162f459bbf8cacc1c608 (patch)
tree9607abff78bbb200c1297e7cb5575c49efba2959 /ext
parentf7c722c95506edaaa4df4c02bd7f4e80523bcb93 (diff)
downloadperl-b5967c96bba0911f2cc6162f459bbf8cacc1c608.tar.gz
gcc -O3 and Storable in Linux do not like each other.
p4raw-id: //depot/perl@20861
Diffstat (limited to 'ext')
-rw-r--r--ext/Storable/hints/linux.pl13
1 files changed, 5 insertions, 8 deletions
diff --git a/ext/Storable/hints/linux.pl b/ext/Storable/hints/linux.pl
index 8ea0dc1346..ed80f8466c 100644
--- a/ext/Storable/hints/linux.pl
+++ b/ext/Storable/hints/linux.pl
@@ -1,13 +1,10 @@
-# gcc -O3 (and higher) can cause Storable.xs to produce code that
+# gcc -O3 (and higher) can cause code produced from Storable.xs that
# dumps core immediately in recurse.t and retrieve.t, in is_storing()
# and last_op_in_netorder(), respectively. In both cases the cxt is
# full of junk (and according to valgrind the cxt was never stack'd,
-# malloc'd or free'd). Observed in Debian 3.0 x86, both with gccs
-# 2.95.4 20011002 and 3.3. The failures are seen only for unthreaded
-# builds, threaded builds work okay.
+# malloc'd or free'd). Observed in Debian 3.0 x86, with gccs 2.95.4
+# 20011002 and 3.3, and in Redhat 7.1 with gcc 3.3.1. The failures
+# happen only for unthreaded builds, threaded builds work okay.
use Config;
-$self->{OPTIMIZE} = '-O2'
- if -f '/etc/debian_version' &&
- ($Config{gccversion} =~ /^2\.95\.4 20011002 / ||
- $Config{gccversion} eq '3.3');
+$self->{OPTIMIZE} = '-O2';