develooper Front page | perl.perl5.changes | Postings from October 2020

[Perl/perl5] bd4646: Fix __builtin_unreachable

From:
Karl Williamson via perl5-changes
Date:
October 16, 2020 03:41
Subject:
[Perl/perl5] bd4646: Fix __builtin_unreachable
Message ID:
Perl/perl5/push/refs/heads/blead/9eabb0-02c53a@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: bd464609a141701e70f805b71870449e5f2a5e48
      https://github.com/Perl/perl5/commit/bd464609a141701e70f805b71870449e5f2a5e48
  Author: Karl Williamson <khw@cpan.org>
  Date:   2020-10-15 (Thu, 15 Oct 2020)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  Fix __builtin_unreachable

Tomasz Konojacki pointed out on #irc that the formulation in
5d5b9c460e2a06563d2b5e35a1a79991460696eb was wrong, and the correction
here is the right way of doing it.


  Commit: 43e087d14b89f1ebc65c2a20a6a6f70fa6de5e6c
      https://github.com/Perl/perl5/commit/43e087d14b89f1ebc65c2a20a6a6f70fa6de5e6c
  Author: Karl Williamson <khw@cpan.org>
  Date:   2020-10-15 (Thu, 15 Oct 2020)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  Change name of intermediary macro, and #undef it

Instead of using an underscore to mark this as private, we can #undef
this intermediary after use, as it isn't needed to be defined outside
the small area is is used in in perl.h


  Commit: 02c53a431e8c99d69a002753de31af1dc2d9f30e
      https://github.com/Perl/perl5/commit/02c53a431e8c99d69a002753de31af1dc2d9f30e
  Author: Karl Williamson <khw@cpan.org>
  Date:   2020-10-15 (Thu, 15 Oct 2020)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  HP cc can't handle NOT_REACHED

Like solaris, trying to give the hint to the compiler that we know this
area of the code is unreachable, merely results in the warning we were
trying to suppress.  So turn it off.


Compare: https://github.com/Perl/perl5/compare/9eabb0a9870f...02c53a431e8c



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About