#1032199 Native compilation fails to generate trampolines on certain scenarios

Package:
emacs
Source:
emacs
Submitter:
Sergio Durigan Junior
Date:
2023-03-01 13:45:04 UTC
Severity:
normal
Tags:
#1032199#5
Date:
2023-03-01 13:42:41 UTC
From:
To:
[ This is the downstream equivalent of
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61880 ]

Hello,

While investigating a few bugs affecting Debian's and Ubuntu's Emacs
packages (for example,
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028725), I stumbled
upon a problem that's affecting native compilation on Emacs 28.1+,
currently reproducible with git master as well.

I haven't been able to fully understand why the problem is happening,
but when there are two primitive functions (that would become
trampolines) being used sequentially, Emacs doesn't generate the
corresponding .eln file for the second function.

I spent some time investigating the problem and came up with a "minimal"
reproducer: