all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 1069364 2/2: Simplify by using attribute.h macros
Date: Tue, 5 May 2020 17:23:30 -0700	[thread overview]
Message-ID: <6b0e6c81-bf20-5830-f729-68d8df8b3a97@cs.ucla.edu> (raw)
In-Reply-To: <cx4ksue27f.fsf@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

On 5/5/20 10:11 AM, Glenn Morris wrote:

> emacs-module.c:252:3: error: #error "__attribute__ ((cleanup)) not
> supported by this compiler; try GCC"
>   #error "__attribute__ ((cleanup)) not supported by this compiler; try GCC"
>    ^

Thanks, I installed the attached.

[-- Attachment #2: 0001-Don-t-assume-__has_attribute-in-emacs-module.c.patch --]
[-- Type: text/x-patch, Size: 1119 bytes --]

From 4658a44f1464c274f377f593717b1a40bbfd47e5 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Tue, 5 May 2020 17:16:49 -0700
Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20assume=20=5F=5Fhas=5Fattribute?=
 =?UTF-8?q?=20in=20emacs-module.c?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Problem reported by Glenn Morris in:
https://lists.gnu.org/r/emacs-devel/2020-05/msg00724.html
* src/emacs-module.c: Use HAS_ATTRIBUTE instead of assuming
the compiler supports __has_attribute.
---
 src/emacs-module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/emacs-module.c b/src/emacs-module.c
index e43e4907d2..3d1827c7da 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -248,7 +248,7 @@ module_decode_utf_8 (const char *str, ptrdiff_t len)
    of `internal_condition_case' etc., and to avoid worrying about
    passing information to the handler functions.  */
 
-#if !__has_attribute (cleanup)
+#if !HAS_ATTRIBUTE (cleanup)
  #error "__attribute__ ((cleanup)) not supported by this compiler; try GCC"
 #endif
 
-- 
2.17.1


      reply	other threads:[~2020-05-06  0:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200503221011.6736.42592@vcs0.savannah.gnu.org>
     [not found] ` <20200503221015.4C8AF20B5B@vcs0.savannah.gnu.org>
2020-05-05  6:57   ` master 1069364 2/2: Simplify by using attribute.h macros Andreas Schwab
2020-05-05  7:53     ` Paul Eggert
2020-05-05 17:11       ` Glenn Morris
2020-05-06  0:23         ` Paul Eggert [this message]

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=6b0e6c81-bf20-5830-f729-68d8df8b3a97@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@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 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.