From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Building scratch/igc with -fno-omit-frame-pointer Date: Sun, 29 Dec 2024 11:51:22 -0600 Message-ID: References: <87frmjirum.fsf@no.lan> <87h66z8tqr.fsf@protonmail.com> <875xnf8oz1.fsf@protonmail.com> <86v7vekgcy.fsf@gnu.org> <87frm7ee7e.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37315"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , =?UTF-8?Q?Gerd_M=C3=B6llmann?= , emacs-devel@gnu.org, eller.helmut@gmail.com To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 29 18:52:05 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tRxSO-0009Wf-TU for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Dec 2024 18:52:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRxRp-00015D-5K; Sun, 29 Dec 2024 12:51:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRxRn-00014q-TW for emacs-devel@gnu.org; Sun, 29 Dec 2024 12:51:27 -0500 Original-Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRxRm-0000j8-CZ; Sun, 29 Dec 2024 12:51:27 -0500 Original-Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-aa6b4cc7270so1238436766b.0; Sun, 29 Dec 2024 09:51:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735494683; x=1736099483; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=HAqqi0OaFym9qwv/Jus50P+a5PkChBb6qCjm3+8/kP8=; b=aD6y1uZqb0KVnA438eeIZ06pGCnoyXGIwm63nECLKkIWReHjfnw0bEEJ1y8jelX4D7 aXju7DCiy4QoWZrOlpAfb7bt+bTB6k+NPlpfcmtqD53aYyglO2vrjXDBjPlUxejQ7ptJ 8M1FJhFwJN8pHWGTMntHI/KSkhrEYZu8xk3fNsCSjJJfAz/hLVFPiC9SRfAHIxiVEeM7 mappvuq0fPrUVgjl304UqdaE6ciO0t3NGBM8DPzTtkmy5WOf06jbTv8K6rCbWXHS9gjA WZtep4ueSpRIwody9VzEYA3gTis3X4JHBYoxNewOLH5bObALg4n/qYVaG01a4jW1DJZS L8GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735494683; x=1736099483; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HAqqi0OaFym9qwv/Jus50P+a5PkChBb6qCjm3+8/kP8=; b=CXpSo9LhW05bUyfDGrfMK6fONdDv4c/2SPvETau4G+RRLicCDq0fl9I/BPJrpJWXlO srFMmFIgWdwvn8DQKOulK+ADPlg2TVOHg3TXFk/Tn5pY64mQtYZBm3zm5QT55fTwTzBW vbOXqrtsi+Y0vpMELzZ97la2xwpk/P4XRP6iG7BQptWZgGzOSU0t2UwY53bs0iB3NMRi AnaLxltiq5x2aSV2rp9ZG85C5Cn23OHf+3b6OUQNpW0rxy/lXm0n+BdL3vK5+iHdtS8v A9TWJ+6nQG0qqPm6e04jdEGLiYYn5LS/oSGtw1xG9OZhcKEURE0t/14lVFT0wNuxOWys Mhiw== X-Forwarded-Encrypted: i=1; AJvYcCXc3v3mgV38IanmukBme4XW4yr9WQ9ZvQVDQi5K/85so/EWmGt7ez6ql2Hm5Mi3L4wbmYXTtewxwdQVJg==@gnu.org X-Gm-Message-State: AOJu0YzhwecRuXBgYUtQ+2xowNIiUTb8Pfe+MZrn4ccaR7t8eUY8PdT4 latc5LHgLRecypS5OV2U9qG25aoOMLCkubq+AkZ+Ywygk7JLF0RpAd31qGqO4IGDhTcj7mqRoGo clEc0pcWxiEL2mxEeT16lYS3cxA5/TVeN X-Gm-Gg: ASbGnctRQjUz/n24ZurX2PnRc2pOQeNq/otmiiEuNitGeb/kHTj3omHxqfitcpZplh+ btKFFE8AMvNgW+T7j2QPOHjq+fjK9+aG1f1rjKy3n X-Google-Smtp-Source: AGHT+IEijwoULxuivDkEWmVb8s7GWyV7RtEQSUuNjzQmyB/heOpbUPTawPbPg6yCJjypftXLGILjjV+Jode9XGoVipc= X-Received: by 2002:a05:6402:2790:b0:5d0:e73c:b7f0 with SMTP id 4fb4d7f45d1cf-5d81de1c241mr82456940a12.28.1735494682963; Sun, 29 Dec 2024 09:51:22 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 29 Dec 2024 11:51:22 -0600 In-Reply-To: <87frm7ee7e.fsf@protonmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=stefankangas@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327354 Archived-At: Pip Cet writes: > Thanks! FWIW, I think this isn't a mistake in MPS. C libraries changed > to "scramble" the stack pointer and base pointer in the jump buffer in > setjmp(). They provided no good alternative way to do what MPS needs. > Assembly register spilling isn't a good option. Emacs uses > __builtin_unwind_init, FWIW. > >> diff --git a/configure.ac b/configure.ac >> index 885075a2f1d..1d8f69ff119 100644 >> --- a/configure.ac >> +++ b/configure.ac >> @@ -5622,6 +5622,7 @@ AC_DEFUN >> HAVE_MPS=no >> LIBMPS= >> IGCOBJ= >> +MPS_CFLAGS= >> if test "${with_mps}" != "no"; then >> AC_CHECK_HEADER([mps.h], >> [AC_CHECK_LIB([mps], [mps_arena_create], [HAVE_MPS=yes], [], >> [$LIB_PTHREAD])]) >> @@ -5635,12 +5636,16 @@ AC_DEFUN >> else >> LIBMPS="-lmps $LIB_PTHREAD" >> fi >> + # Force -fno-omit-frame-pointer to avoid MPS bug with register scanning: > > As explained above, I'd prefer not calling it "MPS bug". Let's just > call it "bug"? Thanks, I installed the patch with that change.