diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-22 12:14:14 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-22 12:14:14 +0000 |
commit | bb81493d5a45ab2db637176c202a1469d2cd75b7 (patch) | |
tree | d51628ea65bc4c4cb62a6d799ee0b4be46d8e7e9 /ext | |
parent | 40837afcb0b195c90e4d9b17d791c9d4dd4f223b (diff) | |
download | perl-bb81493d5a45ab2db637176c202a1469d2cd75b7.tar.gz |
Lower Storable.xs optimization to -O2 on certain
known platforms.
p4raw-id: //depot/perl@20825
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Storable/hints/linux.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/Storable/hints/linux.pl b/ext/Storable/hints/linux.pl new file mode 100644 index 0000000000..64010812c7 --- /dev/null +++ b/ext/Storable/hints/linux.pl @@ -0,0 +1,12 @@ +# gcc -O3 (and higher) can cause Storable.xs to produce code 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. +use Config; +$self->{OPTIMIZE} = '-O2' + if -f '/etc/debian_version' && + ($Config{gccversion} =~ /^2\.95\.4 20011002 / || + $Config{gccversion} eq '3.3'); + |