Branch: refs/heads/yves/disable_use_after_free_on_gcc12
  Home:   https://github.com/Perl/perl5
  Commit: 836a99902d51890a6fbd966d7b673197436f091f
      
https://github.com/Perl/perl5/commit/836a99902d51890a6fbd966d7b673197436f091f
  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.


Reply via email to