Perl: the Markov chain saw | |
PerlMonks |
Re^2: Why does $Config{ccflags} include "-fwrapv" on many gcc builds of perl ?by syphilis (Archbishop) |
on Apr 19, 2021 at 12:52 UTC ( [id://11131471]=note: print w/replies, xml ) | Need Help?? |
It was to fix this issue. Thanks Dave. I haven't managed to prove that the inclusion of -fwrapv achieves anything wrt perl, but there are some well credentialed perl developers saying that it does (or, at least, that it once did). I'm not about to start arguing the point with them. I guess, that if its inclusion does something useful then that's well and good. And if it doesn't do anything useful then it's harmless, anyway. UPDATE: The above sentence was incorrect. On reading the code properly (which involved minimal widening of my field of vision), I realize that -SvIVX(sv) is never reached if SvIVX(sv) is IV_MIN. I haven't yet found any evidence that, in C, that switch ever alters anything. The compilation warning relates only to "-LONG_MIN". It's exactly the same (in every respect) when I compile using the -fwrapv switch, and -ftrapv catches nothing. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|