diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2014-05-07 19:17:09 -0400 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2014-05-12 10:56:47 -0400 |
commit | 1a6070bdaf85b384b2e178a361d28d801a6481d3 (patch) | |
tree | bdf75576bb0c6ba27f2ec2e3c1c226f6f34daf49 /Porting | |
parent | fdc8c43447f59d8a875d8a64b515591fd934bb59 (diff) | |
download | perl-1a6070bdaf85b384b2e178a361d28d801a6481d3.tar.gz |
perl5200delta: Correct which gcc versions we add -fwrapv for
Diffstat (limited to 'Porting')
-rw-r--r-- | Porting/perl5200delta.pod | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Porting/perl5200delta.pod b/Porting/perl5200delta.pod index 388d779a53..36c9a77c76 100644 --- a/Porting/perl5200delta.pod +++ b/Porting/perl5200delta.pod @@ -1326,12 +1326,12 @@ up as /system/bin/sh, and "sh" as /bin/sh. =item * By default, B<gcc> 4.9 does some optimizations that break perl. The B<-fwrapv> -option disables those optimizations (and probably others), so for B<gcc> 4.9 -(and later, since the optimizations probably won't go away), F<Configure> now -adds B<-fwrapv> unless the user requests B<-fno-wrapv>, which disables -B<-fwrapv>, or B<-fsanitize=undefined>, which turns the overflows B<-fwrapv> -ignores into runtime errors. (This is not done prior to B<gcc> 4.3, since -B<-fwrapv> was broken then.) +option disables those optimizations (and probably others), so for B<gcc> 4.3 +and later (since the there might be similar problems lurking on older versions +too, but B<-fwrapv> was broken before 4.3, and the optimizations probably won't +go away), F<Configure> now adds B<-fwrapv> unless the user requests +B<-fno-wrapv>, which disables B<-fwrapv>, or B<-fsanitize=undefined>, which +turns the overflows B<-fwrapv> ignores into runtime errors. [L<perl #121505|https://rt.perl.org/Public/Bug/Display.html?id=121505>] =back |