[12/25] libcpu: Use "#define FCT_mod$64r_m FCT_mod$r_m" is enough and can be recognized by clang-cl on windows in i386_data.h
Message ID | 20221020182603.815-13-luoyonggang@gmail.com |
---|---|
State | Committed |
Headers |
Return-Path: <elfutils-devel-bounces+patchwork=sourceware.org@sourceware.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 F1162384BC3C for <patchwork@sourceware.org>; Thu, 20 Oct 2022 18:27:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1162384BC3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666290422; bh=OhQZOrLsCYaSA3FHumu+RfJnl9p6stSeO/QMKLz+Gpg=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Help:List-Subscribe:From:Reply-To:From; b=fuvuVPJaSAfGAWiXo27iapIy2T2nQUppTFUbSl7FyX9b7+wHoLkRAeqg/8D5vzUED Nzckx9EMJWMcp1P0CdBg5AyFWnyp/PkQ53YDedv375PFF4QRUoXgleLFvZD76JlD1x eqOhpSZQpZB9vPYw2/TwzQAaN81v/dOKabpwMqrk= X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 3AD74384B82B for <elfutils-devel@sourceware.org>; Thu, 20 Oct 2022 18:26:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3AD74384B82B Received: by mail-pf1-x430.google.com with SMTP id y8so303349pfp.13 for <elfutils-devel@sourceware.org>; Thu, 20 Oct 2022 11:26:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OhQZOrLsCYaSA3FHumu+RfJnl9p6stSeO/QMKLz+Gpg=; b=014yhgaSSf0oSr4SUnrd38yiQMMpMo2Aw9/0925A1ZbTU3k2fpT2ZcydOC0Qu4Rkg0 sioYusKgSdtSKjJrGKz3/aLFm9U1YMBRJhLsHvztiAR07FOlUZjbpwZYc98zVWo0aoUu +3bj7QwPHlGUKhh2y66we2tSHadINi+RtG5bH3GVicMqDU02/AQsrxuT0bKjiZxYK72a f2UHToS6qz2i7c4/weU+GqTCEzwXNj4cEEOLGYsfxCYeoEv0HpRKGOlHz54TGe6bDTMW 4vDc5qWvIA6ra8v88mnHAcUJh1mlNTPbIHpe0rhJ2ySaKVRSOXb7L8K7wOP69dR3T5iw yF4Q== X-Gm-Message-State: ACrzQf0eiTmSrK/e0GbLcIBJO2eEoJB3isUv/0zhY5F7V2PZAUrUh6kp zEnDsGGREBiYoitnjKvD+FuJeLM4BLF4ow== X-Google-Smtp-Source: AMsMyM4nYjHtOykmr2M00NYw1GlunmDnNMTqMQwQYN0sKrRbofk869o2psYqYFiZ2Q66mEAIfsPRVA== X-Received: by 2002:a63:4a41:0:b0:452:bab5:156a with SMTP id j1-20020a634a41000000b00452bab5156amr12900449pgl.486.1666290407702; Thu, 20 Oct 2022 11:26:47 -0700 (PDT) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id w15-20020a17090a460f00b00202fbd9c21dsm115067pjg.48.2022.10.20.11.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 11:26:46 -0700 (PDT) To: elfutils-devel@sourceware.org Subject: [PATCH 12/25] libcpu: Use "#define FCT_mod$64r_m FCT_mod$r_m" is enough and can be recognized by clang-cl on windows in i386_data.h Date: Fri, 21 Oct 2022 02:25:51 +0800 Message-Id: <20221020182603.815-13-luoyonggang@gmail.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20221020182603.815-1-luoyonggang@gmail.com> References: <20221020182603.815-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 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 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: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list <elfutils-devel.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/elfutils-devel/> List-Help: <mailto:elfutils-devel-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=subscribe> From: Yonggang Luo via Elfutils-devel <elfutils-devel@sourceware.org> Reply-To: Yonggang Luo <luoyonggang@gmail.com> Errors-To: elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org Sender: "Elfutils-devel" <elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Patches for building with mingw/gcc msvc/clang-cl
|
|
Commit Message
Yonggang Luo
Oct. 20, 2022, 6:25 p.m. UTC
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
---
libcpu/i386_data.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi, On Fri, 2022-10-21 at 02:25 +0800, Yonggang Luo via Elfutils-devel wrote: > Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> > --- > libcpu/i386_data.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libcpu/i386_data.h b/libcpu/i386_data.h > index 06356b8a..fe3c4ae1 100644 > --- a/libcpu/i386_data.h > +++ b/libcpu/i386_data.h > @@ -1153,7 +1153,7 @@ FCT_mod$64r_m (struct output_data *d) > return general_mod$r_m (d); > } > #else > -static typeof (FCT_mod$r_m) FCT_mod$64r_m __attribute__ ((alias > ("FCT_mod$r_m"))); > +#define FCT_mod$64r_m FCT_mod$r_m > #endif Thanks, this indeed looks simpler. Added a ChangeLog entry and pushed as: commit dab89fba0e84c948fb270e541d1d1313afd2c2c3 (HEAD -> master) Author: Yonggang Luo <luoyonggang@gmail.com> Date: Fri Oct 21 02:25:51 2022 +0800 libcpu: Use "#define FCT_mod$64r_m FCT_mod$r_m" in i386_data.h This is enough and can be recognized by clang-cl on windows Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Cheers, Mark
diff --git a/libcpu/i386_data.h b/libcpu/i386_data.h index 06356b8a..fe3c4ae1 100644 --- a/libcpu/i386_data.h +++ b/libcpu/i386_data.h @@ -1153,7 +1153,7 @@ FCT_mod$64r_m (struct output_data *d) return general_mod$r_m (d); } #else -static typeof (FCT_mod$r_m) FCT_mod$64r_m __attribute__ ((alias ("FCT_mod$r_m"))); +#define FCT_mod$64r_m FCT_mod$r_m #endif