From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZHkeA-00066N-Q8 for mharc-grub-devel@gnu.org; Tue, 21 Jul 2015 23:24:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHke9-00066H-9h for grub-devel@gnu.org; Tue, 21 Jul 2015 23:24:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHke5-0003pD-4h for grub-devel@gnu.org; Tue, 21 Jul 2015 23:24:41 -0400 Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:36140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHke4-0003oZ-2A for grub-devel@gnu.org; Tue, 21 Jul 2015 23:24:37 -0400 Received: by lbbqi7 with SMTP id qi7so47699449lbb.3 for ; Tue, 21 Jul 2015 20:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=GaYKcGjO1TVClKFm4kq5mNtEKgWH5oQBLoP94vv+Y/g=; b=0VlDc96tEkMc2kVtus8htd8M1UFBmmldZO49DZ5OVlaEtCbWHmOx5UIk9Hj5fXuz1p efFUMn/R9YzUinFAFcM2KjXulk52LgLZUrhaX5vQtrT+OFImdekeE0uPCdLyrhbg3PwP JzYItiqAPzF4CzZWnLxe7aCu2+8IFyDaTK+hPYjUt7C6kZSS4RXrmn5JSH0cgGX9O1no s3+Lbc5sW7SbmWesZJP4fOt8Zm00FlgnWc/l/d9zXk9rBlSf1FVaHsLjnaZ/SX3cUwDW lXufmutM6lRKflKPFLRwVKh/BFk050mhi1zsUT/kEWPFQNwyEoDA3b1T+Qv2TZK5fZMY 4wxw== X-Received: by 10.112.118.210 with SMTP id ko18mr218808lbb.75.1437535475317; Tue, 21 Jul 2015 20:24:35 -0700 (PDT) Received: from opensuse.site (ppp91-76-6-204.pppoe.mtu-net.ru. [91.76.6.204]) by smtp.gmail.com with ESMTPSA id kb5sm21826lbc.16.2015.07.21.20.24.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2015 20:24:34 -0700 (PDT) Date: Wed, 22 Jul 2015 06:24:33 +0300 From: Andrei Borzenkov To: Vladimir =?UTF-8?B?J8+GLWNvZGVyL3BoY29kZXIn?= Serbinenko Subject: Re: On MIPS clang default to different arch than GNU Message-ID: <20150722062433.2757387d@opensuse.site> In-Reply-To: <55AEDE49.6060408@gmail.com> References: <20150719103350.7c6096db@opensuse.site> <55AEDE49.6060408@gmail.com> X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.28; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/8wlSy._9ga3X/y5eox183Gm"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22e Cc: grub-devel@gnu.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 03:24:42 -0000 --Sig_/8wlSy._9ga3X/y5eox183Gm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Wed, 22 Jul 2015 02:05:29 +0200 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > On 19.07.2015 09:33, Andrei Borzenkov wrote: > > clang -cc1 version 3.8.0 based upon LLVM 3.8.0svn default target x86_64= -unknown-linux-gnu > > ignoring nonexistent directory "/include" > > #include "..." search starts here: > > #include <...> search starts here: > > /usr/local/include > > /home/bor/build/clang/bin/../lib/clang/3.8.0/include > > /usr/include > > End of search list. > > "/usr/bin/mips-suse-linux-as" -march mips32r2 -mabi 32 -call_nonpic -E= B -msoft-float -KPIC -o conftest /tmp/foo-3da0d2.s > > bor@opensuse:~/src/llvm/tools/clang> file conftest=20 > > conftest: ELF 32-bit MSB relocatable, MIPS, MIPS32 rel2 version 1 (SYSV= ), not stripped > >=20 > > While for the same file GAS creates > >=20 > > bor@opensuse:~/build/grub> mips-suse-linux-as -v asm-tests/mips.S=20 > > GNU assembler version 2.24.0 (mips-suse-linux) using BFD version (GNU B= inutils; openSUSE 13.2) 2.24.0.20140403-6.1 > > bor@opensuse:~/build/grub> file a.out=20 > > a.out: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not s= tripped > > bor@opensuse:~/build/grub>=20 > >=20 > > (using -integrated-as does not change it - arch is still the same). > >=20 > > Not sure if it matters. > >=20 > >=20 > I think it doesn't. It's just on the level of flags. I don't think that > it really generates any non-mips1 instructions unless specifically asked > for. Does not -march mips32r2 does it? > Just it fails to reflect this in flags in resulting binary. > Unlike in the case of x86, on mips there is no need to enable > instruction subsets, so if compiler generates instructions not supported > by target, then it's misconfigured and it's likely bigger problem than > just GRUB. > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel > >=20 >=20 >=20 --Sig_/8wlSy._9ga3X/y5eox183Gm Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlWvDPEACgkQR6LMutpd94x8fQCgkYoHvhrhULiBe+cfxTelq5bh tdMAn0VsJDjldYBwNocbmMFxd4NabQNx =VaQD -----END PGP SIGNATURE----- --Sig_/8wlSy._9ga3X/y5eox183Gm--