[ 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: