Message ID | 20231220180836.24936-1-palmer@rivosinc.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2825517dyi; Wed, 20 Dec 2023 10:09:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrUcgOtoWqG9pN1D79EaDmUvZqVH8Q4hyAWjqT6zZE+wMyrfWmp7Pc1MoJgHlbKXBZorkI X-Received: by 2002:a05:6102:15a4:b0:466:9faf:924d with SMTP id g36-20020a05610215a400b004669faf924dmr110818vsv.1.1703095746219; Wed, 20 Dec 2023 10:09:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703095746; cv=pass; d=google.com; s=arc-20160816; b=YK4NaP4yEXU7I9I6fXhfpGAlclP6W4KqQ+hwtgdTt7amaTRTnqV2jN0ygaZsjGz0gN Ma1hAJttIX9GwtqtTzCptumpvkD9yfPTfG9p6LSMarQRzzEKXyF3SNDZPm6/U3N5G9g+ KkKEYKwYkp7e0ihJ0TKWK8LQhrD9vuQ3IPKNxiqWQ7ZEKp8rAJs5JLSPeDuyr+bNJfae CT8ioCh+Ex30neKtUgWSXIPxXLWCVqXPvDq2BSZtWyIC0s+d1xB10Ac2mT1O81tt6Pz6 0sJjgv0CmZOhEPjxIY/zClwqUe+3GCCRmK+9pwGodZh4GKHafA0cucForMHj5BsGi9VG RbHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:to:from:cc :content-transfer-encoding:mime-version:message-id:date:subject :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=AWs250izwk54jYnV15EeVaaWL8llVCpggvobsn/j4ms=; fh=sU5DkjW7E2gzNbjuGhkUcPT8kDt9KEmCY/jPBbGVrG4=; b=Oh8GFsXp01QUhjbd+RA0i91xC+dQOIfIjCXGLjJbOqCUe1ZPPnrtsSbvnxrMmTVJsN QKehHPaGOsTa/jAyKGreoTy3bjsalPG50z6rBAPDjyHIkkAZ9d+kG7krmCS68PWc0A4Q 3UHJSC3JiPqAjz3I+YGibN8zH0uabiBSdMgz6i2dZgfsTtkFYZmmWsdyAnXjNw129Nd9 i0Z+0eblzFztZPpyZ3pJB1PTlsrJMD7uRV3CFLooN6SKlPP3oAVYdUgzZVHB1GRLnDH9 esmp0pjpXROUc1TrutkR2Ve58jung/tX3yzPh78dZt876DJCdVZsQVejngljsr+1rcVY L08g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=zruih0hg; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id bf14-20020a0561023a6e00b004668942c831si38057vsb.663.2023.12.20.10.09.06 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 10:09:06 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=zruih0hg; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C9CF33861823 for <ouuuleilei@gmail.com>; Wed, 20 Dec 2023 18:09:05 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id A304E3858D1E for <gcc-patches@gcc.gnu.org>; Wed, 20 Dec 2023 18:08:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A304E3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A304E3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::429 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703095723; cv=none; b=mhZ8gCTE98R//zHAqzp9zrHrKQnqk4fNl+whO9NBDaj7nkqcVdZsZgGzOKTbtqMQAac3b9FT/q87thhcapwTf4ET+x+Y08e6VBWRIDhxpeM8KSn0F4bw24T5ArV/2PwnSGhUNFbZLpA7g/BsFqVG87mVZ8F7Lhrp81VvYukICb0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703095723; c=relaxed/simple; bh=abiRKkwvxxf+dchqOpApLQ5+g4UkaH+4+t6pTDHDZK0=; h=DKIM-Signature:Subject:Date:Message-ID:MIME-Version:From:To; b=cyh/7vreVEH3c/rhoP05UWWMrcndod6ZuaNX7fIuAfKdrky0aXGjYI4n0W6qaOB2RHw/0jngj5z7lxZBpN2WlTKynSwu4AZvpPN54bwahDd841AJtp9msoxzvAX2JPfSAwpJtLNOqqTBfT7kYb6DdxepkSZY11dZI+JkywEEZJc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6d7f1109abcso2357022b3a.3 for <gcc-patches@gcc.gnu.org>; Wed, 20 Dec 2023 10:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1703095720; x=1703700520; darn=gcc.gnu.org; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date:message-id:reply-to; bh=AWs250izwk54jYnV15EeVaaWL8llVCpggvobsn/j4ms=; b=zruih0hgzc0hZQAbPW3tL1pQTWd9wZ7Tcd3ztBL8gtWf5ZS2LKaLomFfyZgaLTjczb jYkKCI/3Zk5vSHNfgOP79T+m+m2yDHKsm7py1i25/opIpQoPTH1jBjY/nq4oNuCFdCGz kWxjwbQ7MBBhyAH50xSfzui+EOvNGER4k3MYSJHBdQSehWQQ0NQGV0gQJ9hVZz50eYaD DivztIRP+hjxO2oSPoMXv5+xr+3zQCnu3A6SkHx3nLiL95ymubfr8/NYncXQubC2yWiY +kPPQJSsX/Lwdewxpx25a680fx/9VWJR4mrL+7kbStYVyjKjKgcrUMcbAJfXUTX5adz9 2edA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703095720; x=1703700520; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AWs250izwk54jYnV15EeVaaWL8llVCpggvobsn/j4ms=; b=QaOEGisk9wTBpK8r+bcfQ9ox4v998qu9tGcb/7DV9COd0W6l9FdSYTYZidYH8PKlTp J/9UILr985lIw7I6ZFbTnTEeH1lFMUQ022xuGTVuR/6/QxWJpIQk5XehnsIAkR3Bwmkm hl4x8HVlhLQF0OZksvCF9eEo6xw10yL43b3M3y5AJCV0JMGK+QdSsC6w/zmAxvfDorNw 007uwH+aIXOfTOhR6bxG/n/aPTpMmgeB6bkxc3xcwcH582BRlBbQ1SyaQbqSD0caWxZJ eRuTjjg1nquthaZg/pqsUS7l5UDXFH5Fm9NLZ20PuCgLpLiyh4g/rCA5LoIsOSeWE6h5 bhvQ== X-Gm-Message-State: AOJu0YxZWUMT5EpDaD3sqzHwFuX/NDBDtUWFFT3+SLK+fysEaw0k6iEc nkG5yMtkZserIiL2K/tlptVgEfmnSGaO7T20G9Y= X-Received: by 2002:a05:6a00:14c2:b0:6d9:43c9:7b30 with SMTP id w2-20020a056a0014c200b006d943c97b30mr1963807pfu.54.1703095720564; Wed, 20 Dec 2023 10:08:40 -0800 (PST) Received: from localhost ([12.44.203.122]) by smtp.gmail.com with ESMTPSA id y9-20020a056a00180900b006ce450f3e57sm56308pfa.154.2023.12.20.10.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 10:08:39 -0800 (PST) Subject: [PATCH] RISC-V: Document -mcmodel=large Date: Wed, 20 Dec 2023 10:08:36 -0800 Message-ID: <20231220180836.24936-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Palmer Dabbelt <palmer@rivosinc.com> From: Palmer Dabbelt <palmer@rivosinc.com> To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, 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> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785825325434043819 X-GMAIL-MSGID: 1785825325434043819 |
Series |
RISC-V: Document -mcmodel=large
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Palmer Dabbelt
Dec. 20, 2023, 6:08 p.m. UTC
This slipped through the cracks. Probably also NEWS-worthy. gcc/ChangeLog: * doc/invoke.texi (RISC-V): Add -mcmodel=large. --- gcc/doc/invoke.texi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Comments
On 12/20/23 11:08, Palmer Dabbelt wrote: > This slipped through the cracks. Probably also NEWS-worthy. > > gcc/ChangeLog: > > * doc/invoke.texi (RISC-V): Add -mcmodel=large. OK. And yes, I think we're going to need to to a new/changes update for the port as a whole as part of the gcc-14 process. jeff
On Wed, 20 Dec 2023 10:13:06 PST (-0800), jeffreyalaw@gmail.com wrote: > > > On 12/20/23 11:08, Palmer Dabbelt wrote: >> This slipped through the cracks. Probably also NEWS-worthy. >> >> gcc/ChangeLog: >> >> * doc/invoke.texi (RISC-V): Add -mcmodel=large. > OK. > > And yes, I think we're going to need to to a new/changes update for the > port as a whole as part of the gcc-14 process. Sent. Looks like we had no NEWS for 14, so we'll need to deal with that. If nobody else does I'll scrub the history, but I need to deal with binutils, glibc, and Linux first... > > jeff
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 5af978b0a67..d8b355627d9 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1245,7 +1245,7 @@ See RS/6000 and PowerPC Options. -msave-restore -mno-save-restore -mshorten-memrefs -mno-shorten-memrefs -mstrict-align -mno-strict-align --mcmodel=medlow -mcmodel=medany +-mcmodel=medlow -mcmodel=medany -mcmodel=large -mexplicit-relocs -mno-explicit-relocs -mrelax -mno-relax -mriscv-attribute -mno-riscv-attribute @@ -30158,6 +30158,11 @@ The code generated by the medium-any code model is position-independent, but is not guaranteed to function correctly when linked into position-independent executables or libraries. +@opindex -mcmodel=large +@item -mcmodel=large +Generate code for a large code model, which has no restrictions on size or +placement of symbols. + @item -mexplicit-relocs @itemx -mno-exlicit-relocs Use or do not use assembler relocation operators when dealing with symbolic