This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5200delta: Correct which gcc versions we add -fwrapv for
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Wed, 7 May 2014 23:17:09 +0000 (19:17 -0400)
committerRicardo Signes <rjbs@cpan.org>
Mon, 12 May 2014 14:56:47 +0000 (10:56 -0400)
Porting/perl5200delta.pod

index 388d779..36c9a77 100644 (file)
@@ -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