unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
To: Andrea Corallo <akrl@sdf.org>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: How does nativecomp compile circular lists?
Date: Tue, 3 Aug 2021 08:23:25 +0100	[thread overview]
Message-ID: <07d2e975-95e9-009e-0361-3dbcd907dbc5@gmail.com> (raw)
In-Reply-To: <xjfsfzwdxhi.fsf@sdf.org>


[-- Attachment #1.1: Type: text/plain, Size: 1048 bytes --]

On 30/07/2021 9:20 AM, Andrea Corallo wrote:
> Jimmy Yuen Ho Wong <wyuenho@gmail.com> writes:
>> Here's a new patch. Thanks in advance for installing it.
>>
>> diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el
>> index 6ac76f1c19..bb2e4849ad 100644
>> --- a/lisp/emacs-lisp/disass.el
>> +++ b/lisp/emacs-lisp/disass.el
>> @@ -95,6 +95,7 @@ disassemble-internal
>>                 (re-search-forward (concat "^.*"
>>                                            (regexp-quote
>>                                             (concat "<"
>> +                                                  (when (eq system-type 'darwin) "_")
>>                                                     (comp-c-func-name
>>                                                      (subr-name obj) "F" t)
>>                                                     ">:"))))
> Hi Jimmy,
>
> as mentioned please write a Changelog entry (see the CONTRIBUTE file).
>
> TIA
>
>    Andrea
>    

Here's a new patch with a Changelog commit message. Thanks.

-- 
Jimmy Wong


[-- Attachment #1.2: Type: text/html, Size: 1620 bytes --]

[-- Attachment #2: 0001-Fix-error-while-disassembling-native-code-on-macOS.patch --]
[-- Type: text/plain, Size: 1112 bytes --]

From 2d1fbfc87b87e2726252e05db6f27177c6965b09 Mon Sep 17 00:00:00 2001
From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
Date: Tue, 3 Aug 2021 08:14:38 +0100
Subject: [PATCH] Fix error while disassembling native code on macOS

* lisp/emacs-lisp/disass.el (disassemble-internal): Make sure the
regexp that searches for a symbol takes into account of llvm-objdump's
output format.
---
 lisp/emacs-lisp/disass.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el
index 6ac76f1c19..bb2e4849ad 100644
--- a/lisp/emacs-lisp/disass.el
+++ b/lisp/emacs-lisp/disass.el
@@ -95,6 +95,7 @@ disassemble-internal
               (re-search-forward (concat "^.*"
                                          (regexp-quote
                                           (concat "<"
+                                                  (when (eq system-type 'darwin) "_")
                                                   (comp-c-func-name
                                                    (subr-name obj) "F" t)
                                                   ">:"))))
-- 
2.32.0


  reply	other threads:[~2021-08-03  7:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27  7:21 How does nativecomp compile circular lists? Jimmy Yuen Ho Wong
2021-07-27  9:28 ` Andrea Corallo via Emacs development discussions.
2021-07-28  2:09   ` Jimmy Yuen Ho Wong
     [not found]     ` <6247f78b-282f-27e7-e0cf-6bc3b1cdee26@gmail.com>
2021-07-28  7:20       ` Andrea Corallo via Emacs development discussions.
2021-07-28 13:49         ` Jimmy Yuen Ho Wong
2021-07-28 15:11           ` Andrea Corallo via Emacs development discussions.
2021-07-29 10:43             ` Jimmy Yuen Ho Wong
2021-07-30  8:20               ` Andrea Corallo via Emacs development discussions.
2021-08-03  7:23                 ` Jimmy Yuen Ho Wong [this message]
2021-08-03  8:28                   ` Andrea Corallo via Emacs development discussions.
2021-07-28  1:15 ` Michael Heerdegen
2021-07-28  2:18   ` Jimmy Yuen Ho Wong

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=07d2e975-95e9-009e-0361-3dbcd907dbc5@gmail.com \
    --to=wyuenho@gmail.com \
    --cc=akrl@sdf.org \
    --cc=emacs-devel@gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).