Message ID | 20210916093838.95184-1-kito.cheng@sifive.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CCA0E3857C4E for <patchwork@sourceware.org>; Thu, 16 Sep 2021 09:39:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id F13593857815 for <gcc-patches@gcc.gnu.org>; Thu, 16 Sep 2021 09:38:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F13593857815 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pg1-x529.google.com with SMTP id n18so5566814pgm.12 for <gcc-patches@gcc.gnu.org>; Thu, 16 Sep 2021 02:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=2xrP6fP7LiTBP4ZoxdcxpuojYZzMMRzK/aCFzuUc2nY=; b=FpUolORMoGtV83kZ7boTMBhoNh7VbiMfvJ/wAw+diYED2X0AnJrC3c+2R9mgn6oDr+ emxS0re9KFGSxlZu06IBCePvod/lKnvapAsr3VvhFZYJH+NeZP82LX8fQBRw/U9jlffx +r/zWCHN7Nr2D87ofZODsIblmcw5dkPyFNu1JSEluWZSi3fSaD2zmAevC0tx4OVUa23K 8XTiebbCzHJZcwOTUyZINBoFCqeh9Pb1oL4Wcdc0jbW/iSzlazxh+dxfyTU0R4Z7mt28 1OcpTaMSIESWDtoLJ+8gnHAwRdfdib1+nx/lJDUtVEjco/WFpfoo7tk2iMB5c45L8GHg O81w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=2xrP6fP7LiTBP4ZoxdcxpuojYZzMMRzK/aCFzuUc2nY=; b=xofCAvkRGdQoxse3ImUoT9ajkG7igbmH0diXvVHudjzWK76KJ2oVJGhlqgwLw2Jj2f Zci8coRspSGtpnBrnuI0KAP+vRgCX+TGhf8SnQrcusAhCAn+OZwEfS07DWSsflZzUbV0 iGeWaS8d6BREiHkNit/r+kM/pLMPv2MMPPwVB1RLzOeWkhN6PZr8JJDxKzErDZiSDVu6 NZh6w5wUUp4ALIgTVes1WGouQRih+3S4WZs0pYLsZVT8u+lKxX4TiyXoeDCdxpXCcoLk vBuWag0Jd+LegYKiNbvoEgl2/NmOmP1Y7G2et2q5aQKJQZFCOJwId16JGlBfWpEEjlDL nxTA== X-Gm-Message-State: AOAM5300SqnaT55hVwUSUU9NR38WnjDAaC9/KhC4cwciqKy3Dm5EVMSZ u2pOaJ2PFokW2mwYkEA8DEDz/8z0GyDimA== X-Google-Smtp-Source: ABdhPJwxEbeWrNd+C0JR4YLUfT1Jta2ohMqhHo2vLy1I5Qn/6tSo4zLyOP9l3ggqTIF2SNttkHySdg== X-Received: by 2002:a63:5902:: with SMTP id n2mr4173346pgb.305.1631785125704; Thu, 16 Sep 2021 02:38:45 -0700 (PDT) Received: from hsinchu02.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id 77sm2407806pfu.219.2021.09.16.02.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 02:38:45 -0700 (PDT) From: Kito Cheng <kito.cheng@sifive.com> To: gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, jimw@sifive.com, palmer@dabbelt.com, andrew@sifive.com Subject: [PATCH 0/2 v3] New target hook TARGET_COMPUTE_MULTILIB and implementation for RISC-V Date: Thu, 16 Sep 2021 17:38:36 +0800 Message-Id: <20210916093838.95184-1-kito.cheng@sifive.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series |
New target hook TARGET_COMPUTE_MULTILIB and implementation for RISC-V
|
|
Message
Kito Cheng
Sept. 16, 2021, 9:38 a.m. UTC
This patch set allow target to use customized multi-lib mechanism rather than the built-in multi-lib mechanism. The motivation of this patch is RISC-V might have very complicated multi-lib re-use rule*, which is hard to maintain and use current multi-lib scripts, we even hit the "argument list too long" error when we tried to add more multi-lib reuse rule. * Here is an example for RISC-V multi-lib rules: https://gist.github.com/kito-cheng/0289cd42d9a756382e5afeb77b42b73b V3 Changes: - Doc fix for the first patch. - Fix lots of typo. - Rewrite multi-lib option parsing in riscv_compute_multilib. - Rewrite riscv_check_conds (was riscv_check_other_cond). V2 Changes: - NO changes for the first patch(TARGET_COMPUTE_MULTILIB part) since the first version. - Handle option other than -march and -mabi for riscv_compute_multilib.