blob: 8ea0dc13467ff827a4b401ddf249da7613c2c13d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# 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. The failures are seen 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');
|