From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: scratch/igc 50f3a9309d8 1/3: scan_stack with __builtin_unwind_init Date: Sat, 20 Jul 2024 10:54:28 +0200 Message-ID: References: <172146128986.990.283901147449966365@vcs2.savannah.gnu.org> <20240720074130.5C19DC1FB72@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13294"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gerd Moellmann , Emacs Devel To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 20 10:54:59 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 1sV5rn-0003Gg-E8 for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jul 2024 10:54:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sV5rP-0007ol-BV; Sat, 20 Jul 2024 04:54:35 -0400 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 1sV5rN-0007nY-Ud for emacs-devel@gnu.org; Sat, 20 Jul 2024 04:54:33 -0400 Original-Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sV5rM-0000GC-B5; Sat, 20 Jul 2024 04:54:33 -0400 Original-Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5a156556fb4so1724943a12.3; Sat, 20 Jul 2024 01:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721465670; x=1722070470; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jfseaPxQ7yo0MHyXuhwuTpX9Ec+mjdoSZcz51ylJu3o=; b=iINknPoyWPoi5lySDH6bqP1Av+EzjlrsOwNIZsNbYFiZ63WrMMlwPsrC/XoOBa0GSB VtygQngrpxaVZPewq7u7C6RnM7DRu+BW6R91zvUE9kAMhwQDTiPTlKqzVt8YiBy4z+mB Eh/wYfvDXfXjblIajIaq3OLR9hyUN3ZkUAtEIOMiEMiYE/P+uUf7uMY+4v5Ya24yjBxE 8ZpfPAG0SIk50Glb0Hsr1Nu4hscr2tm5rE1esp7+bHhjHpq9L+83gmalhM/WYO7lZEIM ypVA1c7IcUoPSc7sb1VfPdOuAh2reiWtauGoeDNOsr/1B0ISZdY4yGNLwiZeKCztiLmi qH7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721465670; x=1722070470; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=jfseaPxQ7yo0MHyXuhwuTpX9Ec+mjdoSZcz51ylJu3o=; b=rqc14WGgO6jEU7EWiWdSy8CiDOU1I1vtJ5S4S/nijImh9KTscAsPPqAkyX0gFwIV7Z jSSXwXzTcNhxPYsB31v2OqA741Vwgkbmubh/jBobsEl1VJoTImhHdNQtnhUa+UrB+YYx pwLNL8XF9lcVUKA7PtO/SbhwP9nqtUD5zBcUvtL20CbAS1IGgDMifbPMwkAEEupmfe+E VqwgCXbrVPPA70BzFr6gXAGsqYnRKbak8xagTNGDPukGaeEPGQBGtbzPi33+aO1XjTKu YmcpJUWna3nHHnJmD467ePx6kBShIXmGkGCoekLH7+FPRCgA2efUvLEK6b++t1GtFRFF pLSA== X-Forwarded-Encrypted: i=1; AJvYcCUW92Tb7WxpXBgcW/LxGvkjJOrszsrOo1ebUmad3ODG/TsWFs9z6pckeQGTPzOu3RpkJJbJNuk6xgvu7s5IiTR73964 X-Gm-Message-State: AOJu0YyjPvE9tNVvZ+SYwDe38jg2tT/csmYhdYZ4emjaA4U4fGSREV/g TP6FekQ1sm5lobQU8yzlzbpywXfICiZRw8XsA25JD0ExFwx8dZjJ3gCNqQ== X-Google-Smtp-Source: AGHT+IEXOS8mFSZhwwXi3OJ+RGSfB68VhmbjFVDD0tnUiCl6PDVfh2qQqiA/lm/aFJ5NAdTx28rhxQ== X-Received: by 2002:a05:6402:510f:b0:5a2:68a2:ae57 with SMTP id 4fb4d7f45d1cf-5a47bb9258dmr712031a12.31.1721465669920; Sat, 20 Jul 2024 01:54:29 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36dca.dip0.t-ipconnect.de. [217.227.109.202]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5a30a4d7580sm2572692a12.12.2024.07.20.01.54.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jul 2024 01:54:29 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sat, 20 Jul 2024 10:46:23 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52f.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:321833 Archived-At: Gerd M=C3=B6llmann writes: > Pip Cet writes: > >> That assumes we're scanning the current thread, right? It appears to bre= ak >> >> (make-thread (lambda () (igc-collect))) > > Shit, yes :-(. I'll revert that. > >> here... >> >> By the way, I'm seeing weird errors when I compile with clang and >> -flto for Android. Can you check whether Apple clang maybe enables >> -flto for -O? > > Hard to tell. Any idea how I could check that? Judging from the man page, -flto is probably not the default. -flto, -flto=3Dfull, -flto=3Dthin, -emit-llvm Generate output files in LLVM formats, suitable for link time optimization. When used with -S this generates LLVM intermediate language assembly files, otherwise this generates LLVM bitcode format object files (which may be passed to the linker depending on the stage selection options). The default for -flto is "full", in which the LLVM bitcode is suitable for monolithic Link Time Optimization (LTO), where t= he linker merges all such modules into a single combined module = for optimization. With "thin", ThinLTO compilation is invoked instead. NOTE: On Darwin, when using -flto along with -g and compiling and linking in separate steps, you also need to pass -Wl,-object_path_lto,.o at the linking step = to instruct the ld64 linker not to delete the temporary object file generated during Link Time Optimization (this flag is automatically passed to the linker by Clang if compilation and linking are done in a single step). This allows debugg= ing the executable as well as generating the .dSYM bundle using dsymutil(1).