From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.devel Subject: Re: Native compiler - passing command line options to C compiler Date: Wed, 01 Sep 2021 15:58:19 +0100 Message-ID: <87lf4gqr3q.fsf@linaro.org> References: <83bl5fkvky.fsf@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="29391"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.0; emacs 28.0.50 Cc: Arthur Miller , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 01 17:00:13 2021 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 1mLRin-0007MH-H8 for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 17:00:13 +0200 Original-Received: from localhost ([::1]:54170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLRim-0003nw-7M for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 11:00:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLRi7-000371-9w for emacs-devel@gnu.org; Wed, 01 Sep 2021 10:59:31 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:38499) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLRi2-0005Hk-Ci for emacs-devel@gnu.org; Wed, 01 Sep 2021 10:59:30 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id d22-20020a1c1d16000000b002e7777970f0so5003994wmd.3 for ; Wed, 01 Sep 2021 07:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=5g/P4dWczRytMn0kFkrtbpRk6UOEMYtyhbrIkOJ/+nM=; b=OFVFG+I875wiymG5Gz1DUuwVTO/ZYqFx8wVqF8iyh3kJQfTTgMxoItIpPd6lLCIgq2 25hjj/0i5P8MJk2g0kXnte+5A6ZXgOcnJdwJsz6M7Tc5Rj/evORqXcGR2D7DObCSHRk5 cFed3nWs/PSE7ilhGFgYM21bt1Veu+sGlQ5dOlTfTaabEJbamV+I5+L98bmDNAmmTKkH rWnqiWUSdVIQyJyzwbOAmPtZYNzvGrL7BdOR1DjaDEaQs9HG3ptHWjPisq/+wUYqo3Sp d7VErR7+RyL1ZXACN7vNf8ERvzD8irpTfZOA1S+J3F1dNxTrClwqpy6ajnsUqkyI8qtn ilnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=5g/P4dWczRytMn0kFkrtbpRk6UOEMYtyhbrIkOJ/+nM=; b=aFny482RnsaBQ7reXarSGKUobbUtyWqTBHjnMg+2mxk5SofNTkc4wqCWo5OR6bRE6C fPTTurnPGyaz2cHWbqJM3Em2/RzvPMt9G814W7QTxuObG3EsLpAWplpVZ7BuYnqAPt+a YdFkEG4PPXIku8HrI7nVGfRGGgafWWUnv1fZ/AfrViyX3G0GJu+txtSks9bdz31M66Ct NedH2sUMsZ6Aa02vmWc9LjrBvFdtZoAT8IA+R1ErajB00Bl+mKji1Aa50fVbT6pzKAf3 KX0fKu/CKPkAwO9Ilow786H/EcBr2z2FXnkCHhjjfMSUmg5ehp8TXMU/Vxc+6ysJDsCs DuGA== X-Gm-Message-State: AOAM532JPrXRS1uDBZyprL0SCZKMCSSy6UfG9vRJdxGWZihaHB7/UIyM XSGRzYMVjNiXnF5DTLptbhjgZA== X-Google-Smtp-Source: ABdhPJxfBtBaIhUX90DyhQSqkBfXMZP4ewcplxayUlMN3YQXYWmxJyEIiDbqNbKXp7djvnhx+s3bew== X-Received: by 2002:a05:600c:3542:: with SMTP id i2mr10148362wmq.170.1630508364518; Wed, 01 Sep 2021 07:59:24 -0700 (PDT) Original-Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y6sm25474272wrm.54.2021.09.01.07.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 07:59:22 -0700 (PDT) Original-Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E64671FF96; Wed, 1 Sep 2021 15:59:21 +0100 (BST) In-reply-to: <83bl5fkvky.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:273665 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Date: Sun, 29 Aug 2021 23:47:56 +0200 >>=20 >> after the few mails the other day, I wasn't really sure if Andrea is goi= ng to >> implement it and when. I thought it was rather a tedious manual labour a= nd maybe >> not so important, so I took me a liberty to implement this myself in my = own, so >> called, personal copy of Eamcs sources. > > Thanks. > >> I am not sure if I have done it correctly though, I appreciate if Andrea= have >> time to take a look; I have just mainly copied your code for backend opt= ions. It >> seems to work for me, with a minor remark: When I pass a valid option, "= native", >> in place where it should go, I get an invalid option error. Gcc even lis= ts it in >> the error message as a valid option. Another option "skylake" works just= =20 >> fine. This seems to vary between flags. I am not sure if this is some en= coding >> error from Emacs to libgccjit, or if it is some bug in libgccjit, or is = it just >> my brain having dumps. > > I guess -march=3Dnative is something handled by GCC itself, and here we > don't have it? If you want to be sure, ask this question on the GCC > list, or report as a bug to their Bugzilla. Shouldn't we be ensuring -march=3Dnative for all JIT code anyway? Are the native eln files ever considered portable/packagable or will they always be a product of the users current system? --=20 Alex Benn=C3=A9e