Message ID | 20240116111335.55596-1-iain@sandoe.co.uk |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp181700dye; Tue, 16 Jan 2024 03:14:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0JYVQJ9gOYIDMRuIYOMQambuGRrvrx38S4u3VSGmDl+8oAQ90V4qfHroMhUCKe6zLO6za X-Received: by 2002:a0d:e854:0:b0:5ff:5e88:46a2 with SMTP id r81-20020a0de854000000b005ff5e8846a2mr99471ywe.54.1705403671191; Tue, 16 Jan 2024 03:14:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705403671; cv=pass; d=google.com; s=arc-20160816; b=iNK0NKzCe9rtekpwbqwZk5R7xIQum+A/I5+BWuIODqE4U/xmr6f7/r0PqsMJxsFhGI A5KwNH7hblkRe4mwfYmQ6+T4AqkB3fULXOd6R+Vu61PzezpTU04gStR6GUeB8bDVl+wp lq6MGgWkCoqk5eNzO/FchknpXIBCcDKzJ/Xw0ONC9CXDLlKCDaMFgxbGWwGzPiZVdE6M jRLhYTXh5BqAd+tv+RCouWLQuGKhdvaFuvs5aDF/8XZbpvdOMszUJh0EmCMxO+Le/zUp RCULyc8TdPuYNav5Thg19vHdWtgR2z2+eh3BPKXF+V4NETjupCRJLi89hNSEMQ7BGNwj k+5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=3GpWprKuNTyeo4ccfINsNdONTjUHS8ZXnyXCq4WDJno=; fh=hquFfmNSiHACMF06VYcgSDOPZqbHeYlOOHoweb40YaM=; b=Bweqh/uLpzA/4pt3tsXfF946dcJ/mQbiEva+PHF+PoJHHJuoZs7vsjNImnR+DwDX3V ceE+HixkTgZMTvInNwdSSM76wvCDVInL3+uR20jxW9uGmwdRAiKZjdkZvYP+SyHBFWRc slQFqM/6Nv8hTmoOuFhAB3YrSVu7BrQINJAhcy1cmne1uR5FYDQPRxy8RsjReVp1Qu+8 BqZzVK8j90+Sep2Sm8DuLcUdDLkHQc4r8Xp2q+3xLT6GOEdpG/Z+8e2DrV8rEYKdOaqs dcfKhyDexOQpVxQt88qEeabFPuPkFbFpogpDTKVxZBDlIxLdRMe04MAkikd3SdgYU3/g ftrQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Z26NwJ8Z; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id a24-20020a0cb358000000b0067aa7e04719si5457733qvf.367.2024.01.16.03.14.31 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 03:14:31 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Z26NwJ8Z; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DE8423857BB1 for <ouuuleilei@gmail.com>; Tue, 16 Jan 2024 11:14:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id C3DF43857C55 for <gcc-patches@gcc.gnu.org>; Tue, 16 Jan 2024 11:13:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C3DF43857C55 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C3DF43857C55 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::329 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705403619; cv=none; b=qYo4a7MrXyALu/nXFBVouFpuGBE0Sjunnp5E8+1qNxsPMUNfId+f5XeMhNEDYbD82M4mgfnE2hY3bMCjtQIm+rKp2gFBU6kpFD2p6r+NXulRba+I+VjPwPjLcNz9RYuxf6ZKlKvw7y7C2iG0V4JnhU1PyLj1u0dIepkJ0jM/ZlU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705403619; c=relaxed/simple; bh=5PMXMJ+xJrqdP/85a2rSuPF26o9GrAAv0GMhm6AjLE8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=thPCrzipfNiPKCZc6Mn2fq9/OapJfEUtkdPGI3gQax0PkkWcSdTvdVuzQ22YKLBhB/ijS9faoYUtOpbSb3PsOto/Oj0YVqLmh9SWn1WWKHiNIjzkI1UzXkIYcYu5MMylIaL9TcNmlT/AThORqWyeqs0V2Doz8Eiu47EXxSRBVFc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40e86c86a6fso751225e9.2 for <gcc-patches@gcc.gnu.org>; Tue, 16 Jan 2024 03:13:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705403616; x=1706008416; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=3GpWprKuNTyeo4ccfINsNdONTjUHS8ZXnyXCq4WDJno=; b=Z26NwJ8ZuflPT0eH/qlSKeywqk3Cja17ySRZHTy/szdDnL/oI0WsqD/RWLYIXWi70I Uxxr9HHLtXmrHlisvXL7tSHE5a1Q/JjaSeRsNMvlKfDO5oyyhM8TQqJE4Lj9jSFuYBBq 43BJ07lYQlzp0U086lF600R4yAIp3NwfQaBG2zHP3i0ZAZHQLsEaZMDsb7BozZUq/krA V8LFevHGYZuo9Gwmk2syGgJ5o4pg2975Kco716r9uPMp3t56D2ICX50fmoboVC+GBFR2 MpLZDZhFBwv/z3OasqW6GLC/dT6KqCBssFEGPW2XQMdZ+PBzrUZjpgKwycKgeqIMA8MB tFjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705403616; x=1706008416; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3GpWprKuNTyeo4ccfINsNdONTjUHS8ZXnyXCq4WDJno=; b=J2riYD5clZOnfroqEaQbkA0y7ceRiZmvSKHl1fLDkRArjfWA89U7So6i0Yq4DhBLD+ GpsnqwS9W8GZaGDn08P5O15MfDpGAPxzjfxDfr+5Cvtnnzrf9QHhILKOS/ok9RvW+Fy3 ko8ML8W/YBIq0620VSQZZGIs9W+EnVXayxSeutx756abMZSYGzI7/4hTlARt8x+n0A7V 1HvtPeBacOo5/jFGmxgiFHSLSARZFno1VtLCyZ596xbxaxngpUw5al2gJDxVrjS6hu8f QxBWfSRqtxSgzdYmo4ZgEwIGd+7SLlADwGdvLi8IKpk256BoyVElwa/XDrmSwlR2PWXH Midg== X-Gm-Message-State: AOJu0Yy2ZqWbP86IWRMKPXSfn7kryk0XuPuCvEm5Hox2lk2FyCUiWc88 Szcg6B3bs58UOUmYfi1djwI= X-Received: by 2002:a05:600c:2046:b0:40d:477c:197 with SMTP id p6-20020a05600c204600b0040d477c0197mr1772287wmg.130.1705403616284; Tue, 16 Jan 2024 03:13:36 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id b7-20020adfe647000000b0033763a9ea2dsm14360755wrn.63.2024.01.16.03.13.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 16 Jan 2024 03:13:36 -0800 (PST) From: Iain Sandoe <iains.gcc@gmail.com> X-Google-Original-From: Iain Sandoe <iain@sandoe.co.uk> To: dmalcolm@redhat.com, gcc-patches@gcc.gnu.org Subject: [PATCH] testsuite, jit, Darwin: Add libSystem to a test. Date: Tue, 16 Jan 2024 11:13:35 +0000 Message-Id: <20240116111335.55596-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788245360090195384 X-GMAIL-MSGID: 1788245360090195384 |
Series |
testsuite, jit, Darwin: Add libSystem to a test.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Iain Sandoe
Jan. 16, 2024, 11:13 a.m. UTC
tested on x86_64, i686 Darwin, x86_64 Linux,
OK for trunk ? When ?
thanks
Iain
--- 8< ---
test-ggc-bugfix.c fails early on Darwin versions using a linker that
complains if libSystem is not present on user-land link lines.
Add this to fix that specific issue.
gcc/testsuite/ChangeLog:
* jit.dg/test-ggc-bugfix.c: Add libSystem for Darwin.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
---
gcc/testsuite/jit.dg/test-ggc-bugfix.c | 5 +++++
1 file changed, 5 insertions(+)
Comments
On Tue, 2024-01-16 at 11:13 +0000, Iain Sandoe wrote: > tested on x86_64, i686 Darwin, x86_64 Linux, > OK for trunk ? When ? Thanks. LGTM for trunk; given that the impact is limited to just a jit testcase I think this can go in now. Dave > thanks > Iain > > --- 8< --- > > test-ggc-bugfix.c fails early on Darwin versions using a linker that > complains if libSystem is not present on user-land link lines. > > Add this to fix that specific issue. > > gcc/testsuite/ChangeLog: > > * jit.dg/test-ggc-bugfix.c: Add libSystem for Darwin. > > Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> > --- > gcc/testsuite/jit.dg/test-ggc-bugfix.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/gcc/testsuite/jit.dg/test-ggc-bugfix.c > b/gcc/testsuite/jit.dg/test-ggc-bugfix.c > index 59eb374af8b..fb857fbf0a7 100644 > --- a/gcc/testsuite/jit.dg/test-ggc-bugfix.c > +++ b/gcc/testsuite/jit.dg/test-ggc-bugfix.c > @@ -12,6 +12,11 @@ create_code (gcc_jit_context *ctxt, void > *user_data) > { > gcc_jit_context_add_command_line_option (ctxt, "-flto"); > gcc_jit_context_add_driver_option (ctxt, "-nostdlib"); > +#if __APPLE__ > + /* On newer macOS, the test will fail with a complaint from the > linker about > + all user-land exes needing libSystem, so add it. */ > + gcc_jit_context_add_driver_option (ctxt, "-lSystem"); > +#endif > > gcc_jit_type *type_int = gcc_jit_context_get_type (ctxt, > GCC_JIT_TYPE_INT); > gcc_jit_param *params_for_func_main[0] = {
diff --git a/gcc/testsuite/jit.dg/test-ggc-bugfix.c b/gcc/testsuite/jit.dg/test-ggc-bugfix.c index 59eb374af8b..fb857fbf0a7 100644 --- a/gcc/testsuite/jit.dg/test-ggc-bugfix.c +++ b/gcc/testsuite/jit.dg/test-ggc-bugfix.c @@ -12,6 +12,11 @@ create_code (gcc_jit_context *ctxt, void *user_data) { gcc_jit_context_add_command_line_option (ctxt, "-flto"); gcc_jit_context_add_driver_option (ctxt, "-nostdlib"); +#if __APPLE__ + /* On newer macOS, the test will fail with a complaint from the linker about + all user-land exes needing libSystem, so add it. */ + gcc_jit_context_add_driver_option (ctxt, "-lSystem"); +#endif gcc_jit_type *type_int = gcc_jit_context_get_type (ctxt, GCC_JIT_TYPE_INT); gcc_jit_param *params_for_func_main[0] = {