Branch: refs/heads/yves/disable_use_after_free_on_gcc12
Home: https://github.com/Perl/perl5
Commit: 4982ac5682698d3f5a8827899fa783ce41c1a0a4
https://github.com/Perl/perl5/commit/4982ac5682698d3f5a8827899fa783ce41c1a0a4
Author: Yves Orton <[email protected]>
Date: 2023-02-10 (Fri, 10 Feb 2023)
Changed paths:
M cflags.SH
Log Message:
-----------
cflags.SH - add -Wno-use-after-free on gcc 12/13
This works around an overly eager/buggy use-after-free warning detection
in gcc 12/13, which gets upset if we copy a pointer into a UV and then
realloc the pointer and then use the UV value for diagnostics. Since the
copied value is no longer a pointer gcc should not warn, as we are not
"using" the pointer, just printing it out as a number. The gcc folks
have been informed. See:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108115
Fixes #20601.