]> git.eshelyaron.com Git - emacs.git/commitdiff
Make Emacs buildable with -std=c11.
authorPhilipp Stephani <p.stephani2@gmail.com>
Tue, 4 Mar 2025 19:50:50 +0000 (20:50 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 07:03:40 +0000 (08:03 +0100)
With -std=c11, GCC doesn't recognize 'asm' as a keyword, see
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html and
https://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html.  Use __asm__
instead.

* src/lisp.h (flush_stack_call_func): Use __asm__ instead of asm.

(cherry picked from commit e978737f57ef8447bba5796dd945ac185fcadffa)

src/lisp.h

index 88a3921ca79e832bbe3a1e0e166a64be32846d46..1d53bf544d53c4e26cc7ed2867a791fe68f4fb9d 100644 (file)
@@ -4465,7 +4465,7 @@ flush_stack_call_func (void (*func) (void *arg), void *arg)
      '__builtin_unwind_init' ineffective (bug#65727).
      See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115132>.  */
 #if defined __GNUC__ && !defined __clang__ && !defined __OBJC__
-  asm ("");
+  __asm__ ("");
 #endif
 }