From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32144 invoked by alias); 18 Aug 2012 17:41:18 -0000 Received: (qmail 32125 invoked by uid 22791); 18 Aug 2012 17:41:17 -0000 X-SWARE-Spam-Status: No, hits=-8.6 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Aug 2012 17:41:00 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 5A0771B4020; Sat, 18 Aug 2012 17:40:59 +0000 (UTC) From: Mike Frysinger To: binutils@sourceware.org Subject: Re: PATCH: Add x32 support to config.guess Date: Sat, 18 Aug 2012 17:41:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.5.0; KDE/4.6.5; x86_64; ; ) Cc: Mike Stump , "H.J. Lu" , Ben Elliston , "config-patches@gnu.org" , "gcc-patches@gcc.gnu.org" References: <20120816172648.GA7120@intel.com> <2B0F3BA1-1864-492F-AE6E-064FD62EBE47@comcast.net> In-Reply-To: <2B0F3BA1-1864-492F-AE6E-064FD62EBE47@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2735702.HRpJQHV1xX"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201208181340.59752.vapier@gentoo.org> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-08/txt/msg01259.txt.bz2 --nextPart2735702.HRpJQHV1xX Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 582 On Saturday 18 August 2012 13:32:59 Mike Stump wrote: > On Aug 18, 2012, at 6:52 AM, "H.J. Lu" wrote: > > In case of x32, the only difference between x32 and x86-64 is > > the default output of CC. What do you recommend how to > > detect x32? >=20 > So, is there a cpp symbol that is defined for code-gen? If so, something > like >=20 > If [ $(gcc -x c /dev/null -dM -E | grep x32) =3D x32 ]; then fi >=20 > Would do it. how is executing `gcc` any better than $CC_FOR_BUILD ? your code suggestion here is pretty much what H.J. Lu is already doing. -mike --nextPart2735702.HRpJQHV1xX Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJQL9OrAAoJEEFjO5/oN/WBVRQP/jnRBhm3UDmvN/7y8QLGkzI0 M80hqBowwhrLn56PfSrWxohtGjWvdJe79BsLNguIUhg/E8wCOVr0YDVDMASo2D4m OgXuElCORXUu5bDu3pDGLWEwc3kmQK1ZaaN3CECJmFVUXUx5qYQ0KRGUBUr3ljVe pLmPtJMq/m/0AT9yogqlJxR/BG5HtgyM1+s/plE5HBPmkKeyRAn6I9yck10xIrP7 PO8V9vDkK3/Qew6B5KD4Ctp4BjrIeIdm/TEtHGZMJ/FC+BgEG6xk2z08L+b+N3Ne F6PGtLQSbbzcwqhZPatrQaoMbTu7EvH26FPKP83lDyFL43X6PfuieDAtrwVkMVNn lfAQRxWfchIu7ihxtctXTursajMqYk9gudy4lFFSeatZntf8GN0mc9cgerM/xZ4B bLIiGyjZkqpJTibiyvCU0KFXbmV3Z6j6axNyTfMACG/QpjC/WBkE3OPRFwd+/TGh BB8Kh4XyMIu9SErF+1BwvnBPG+Dt+ht0JO3208XeO0eibb7pkQ6PBcfAm4/Gt+72 ePOHRsuKIcZnD5tLJp7cgQrUXtZahcrmvk38GvTzI8Ya61O12vhAB4ZFmUJrVsSY jYyvGJPxy3yalLOWxDBFL+zECCWm74cTA1UbpfOPkckZnUbWxFuesTcZj3HrBNKz eZTvVYMh4yBokeWlM16K =AIYH -----END PGP SIGNATURE----- --nextPart2735702.HRpJQHV1xX--