From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZHhXn-0004og-5i for mharc-grub-devel@gnu.org; Tue, 21 Jul 2015 20:05:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHhXj-0004mo-UF for grub-devel@gnu.org; Tue, 21 Jul 2015 20:05:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHhXi-0007ks-P4 for grub-devel@gnu.org; Tue, 21 Jul 2015 20:05:51 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:34497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHhXi-0007ki-Hq for grub-devel@gnu.org; Tue, 21 Jul 2015 20:05:50 -0400 Received: by wibud3 with SMTP id ud3so132229420wib.1 for ; Tue, 21 Jul 2015 17:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=ZI8ssp1LG5nQSR6yPRsuSYCIjK8jbCmHyh9ytsOBypM=; b=WYjgoHUkreYiwr5fgv4kU8pDLboLLzwNV1b4I/YnZcxbEO5p8NiSqKxkiz/Mu7gvx7 5+8xhsde98wUoyp1xyFyn7LUV67OqemPe+YN2d/Wl4dVtH0vT8Lo2ohKY4uYC9/fZEjQ ALEryYrDlDdXjj9mGZ/64RzpO44XTclYZHkMJ+pzw6mgdQqox0yTS+6t7msmSpQbEbX5 3ohDAsvctgrC6oiXD0QdTzQw7xkCZ+GOFfAzjMdNMOQzk+I3QmdkuPbQfmI/vI6Vda5U nVkmKOvKetshASByY4PZaSv2NgBdqfLdAxRXOTB0ms+tRuwTa95IxFBAlEHhbIMM1jzL pDtg== X-Received: by 10.194.103.130 with SMTP id fw2mr76394082wjb.121.1437523549210; Tue, 21 Jul 2015 17:05:49 -0700 (PDT) Received: from ?IPv6:2a02:1205:34c8:dc00:863a:4bff:fe50:abc4? ([2a02:1205:34c8:dc00:863a:4bff:fe50:abc4]) by smtp.gmail.com with ESMTPSA id sc16sm39380016wjb.28.2015.07.21.17.05.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2015 17:05:48 -0700 (PDT) Message-ID: <55AEDE49.6060408@gmail.com> Date: Wed, 22 Jul 2015 02:05:29 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: On MIPS clang default to different arch than GNU References: <20150719103350.7c6096db@opensuse.site> In-Reply-To: <20150719103350.7c6096db@opensuse.site> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KPoNOdE0Ko7vPWpcWDwm5TvqCeaJHTnUe" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::236 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 00:05:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KPoNOdE0Ko7vPWpcWDwm5TvqCeaJHTnUe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. 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 --KPoNOdE0Ko7vPWpcWDwm5TvqCeaJHTnUe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREKAAYFAlWu3lsACgkQmBXlbbo5nOsCSgD9FKrdTgz3L5dutP3bciY9C/Mv 7yodkqliXEx5YcLG5AUA/3UhIc0jSu/2v5YEA3HcFIeQzGqJkQk/eb+UyMewOXm1 =rzAP -----END PGP SIGNATURE----- --KPoNOdE0Ko7vPWpcWDwm5TvqCeaJHTnUe--