From: Stephen Gildea <stepheng+emacs@gildea.com>
To: Andrea Corallo <akrl@sdf.org>
Cc: 50975@debbugs.gnu.org
Subject: bug#50975: 28.0.60; mh-utils-tests fail with native compilation
Date: Mon, 04 Oct 2021 17:29:02 -0700 [thread overview]
Message-ID: <540302.1633393742@pental> (raw)
In-Reply-To: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu>
Thank you, Andrea, for the native-trampolines patch to mh-utils-tests.el.
In this patch, the test explicitly compiles trampolines before redefining
two functions that are defined in C.
Is it necessary to provide trampolines at all for these short-lived test
functions? The following works for me:
(mapc (lambda (x) (add-to-list 'native-comp-never-optimize-functions x))
'(call-process file-directory-p))
Before redefining the functions, the test could create a dynamic local
binding for native-comp-never-optimize-functions and add to it as above.
If that is a reasonable approach, can we go further? Can the
native-compile code detect that this is a test and automatically
suppress trying to compile a trampoline, without the test having
to be aware of native-compile?
< Stephen
next prev parent reply other threads:[~2021-10-05 0:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-02 18:49 bug#50975: 28.0.60; mh-utils-tests fail with native compilation Ken Brown
2021-10-02 19:11 ` Eli Zaretskii
2021-10-04 13:59 ` Robert Pluim
2021-10-04 14:07 ` Lars Ingebrigtsen
2021-10-04 14:24 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-04 20:57 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-04 22:32 ` Ken Brown
2021-10-05 0:29 ` Stephen Gildea [this message]
2021-10-05 7:54 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-05 12:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=540302.1633393742@pental \
--to=stepheng+emacs@gildea.com \
--cc=50975@debbugs.gnu.org \
--cc=akrl@sdf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.