No such thing as a small change | |
PerlMonks |
Why does $Config{ccflags} include "-fwrapv" on many gcc builds of perl ?by syphilis (Archbishop) |
on Apr 19, 2021 at 04:58 UTC ( [id://11131454]=perlquestion: print w/replies, xml ) | Need Help?? |
syphilis has asked for the wisdom of the Perl Monks concerning the following question:
Hi, The -fwrapv documentation states: I thought that this was the usual (default) behaviour, anyway. And some quick experimentation I've done supports that notion. So, why is the flag specified on so many gcc bulds of perl (eg Windows and Ubuntu) ? Is it just a case of deciding that the perl flags might as well be open and specific about this ? Perhaps -fwrapv is present simply to alert us to the fact that another option (-ftrapv) is available ? (Not that I think you'd want to build perl with -ftrapv) Or are there actually cases where -fwrapv is not the gcc default ? Cheers, Rob PS: For those curious, the -ftrapv documentation states: The documentation also points out that -ftrapv and -fwrapv override each other - ie, you can have one or the other, but not both.
Back to
Seekers of Perl Wisdom
|
|