Skip to content

Commit

Permalink
pp_sort.c: move the definitions of comparators
Browse files Browse the repository at this point in the history
This is a workaround for a bug in GCC 12:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107931

For some reason, when compiling with the -Og flag, GCC 12 is unable to
inline the comparators. It's fatal because they're marked with
__attribute__((always_inline)).

To avoid the bug, the comparators have to be defined before their
first use.

Fixes Perl#19776, fixes Perl#20395
  • Loading branch information
xenu committed Nov 30, 2022
1 parent 54ca894 commit c71fca5
Showing 1 changed file with 649 additions and 650 deletions.
Loading

0 comments on commit c71fca5

Please sign in to comment.