From owner-freebsd-current@freebsd.org Fri Aug 10 05:53:39 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4917F105D14C for ; Fri, 10 Aug 2018 05:53:39 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from out3-6.antispamcloud.com (out3-6.antispamcloud.com [185.201.18.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B79467A5B9 for ; Fri, 10 Aug 2018 05:53:38 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from [153.92.8.106] (helo=srv31.niagahoster.com) by mx61.antispamcloud.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fo0Lq-0001BI-U4; Fri, 10 Aug 2018 07:53:30 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sumeritec.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zDs4Zvwsci0NatmEKySu++oTIXRMDObhrevFyBLW6YU=; b=DRvM9GYARNYPfdKmKKKc1M3yS4 D5syUIK8qFJ0zVkNLhCJWCuNiXaYgcwD2tx0/PU3eF2ndhRhtqNgFhKP8q80VpLRgjFMaMyM84NnA t/aPQxHF9ImWHSqFHsUxlsKbaqC7gJXy5k5l67EE4mbqu6LdYVPXXMavWwY392uIfJJBHB/+qXgxW yYSe8DxevARckAOLkGfFb74Z41JZLuhbb4wCMXvvPcyuLjpKEZWz/+svF7DpsvYgLsTTGww8lLh7v /M+fBVcQ/ggaov/q0MHtoR5nAFIZQ2rpV0nPpzy71tntKVKwaVol+YHDF5sQ/Cf8CBMHxr9nl4srv hKfXpSsg==; Received: from [182.1.67.218] (port=36705 helo=X220.sumeritec.com) by srv31.niagahoster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fo0L2-0007ya-EW; Fri, 10 Aug 2018 12:51:56 +0700 Date: Fri, 10 Aug 2018 13:51:49 +0800 From: Erich Dollansky To: blubee blubeeme Cc: FreeBSD current Subject: Re: #includes and #defined Message-ID: <20180810135149.6a95b233.freebsd.ed.lists@sumeritec.com> In-Reply-To: References: <20180810082813.3a165d2b.freebsd.ed.lists@sumeritec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.0 X-AuthUser: freebsd.ed.lists@sumeritec.com X-Originating-IP: 153.92.8.106 X-AntiSpamCloud-Domain: out.niagahoster.com X-AntiSpamCloud-Username: niaga Authentication-Results: antispamcloud.com; auth=pass (login) smtp.auth=niaga@out.niagahoster.com X-AntiSpamCloud-Outgoing-Class: unsure X-AntiSpamCloud-Outgoing-Evidence: Combined (0.16) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5iXKIuEbMzrNC1RTWGN2YJJ602E9L7XzfQH6nu9C/Fh9KJzpNe6xgvOx q3u0UDjvO5ps25p6HgaX1Di+cGj2jFIpYXV/tm1OBh+UB9U/PQdSLxCwBER673e6KlCxPNFmHdWZ i5bIIYa9S0h67ZH5SXuHqKcxAFnrEgU7BH1fDkRn4pWx7WxWFZpsjT/483ewgu5JfusABNhIyJPP 5Nt4ch+eRLJ04XV6OFjIn/GGaHZcFHMPEyA05gafMZGwGiJNAwgts4D9rHMwYttlWJ53KUNFN1Mi Jvo7144GK03YqHgHibeRcXFPc8cqkLwvhK2OeezUrQIHG+qb7m6rsUJYqrkBWDoGJ+0yh69KXxwj Ya+s1lKjr5bPbebPOmRT2bIcf8x7BZzVdsrUJ1TjYZWWhhRIvwk+SzBXVEwrOfaE35eVP3PPkAMO qDnlk3PJ0+RlnD3dKxLhoxcmaInYbR5vlqHVuAvhr5K1q2gYP7Ih8AmzTAas0edmB2q/yBRqnQY9 Wn0gkfr9gZNk8zP+i4B7/fwZ8mt1cw3xO4d92gv79zMNfJSBBCR2DZDiEWpSuwB+0+idX4Ts4xdG +C13IyWeZaKKIPrZJ10kMvva8ovj3zAHojmX5u6QQ8A3tr7Vu+yOd8bUaATraYxKScY2wcDsUT3V EOSluRuLNfsptaOx3KS5w8R7gzpD8RVzGPbBbjse8REVniihuDwEGDcmr6e3OPQamfIaV9iZxMet Odr1ksZ4D8mH+MQeTjkMIwAaFOppWfygWwtQusJNsCkJq7/gGevMQVQxNzuCe7oCzbqDAuy6kC60 Pll3Rp6No9F02OQBU8pz01J8ygQ5/Ih9YWo2D+ec0TwPIBJnngHP89wHBJTrUR5P22vfHRUlzBGr PpFcJc8b3TdJXiMWjSI7O3Gz2XWZ3JKVmi72ocgY5kMQSjs7XKBCcuSSP1pxFExLxCRrSvoi5gf8 MRzbGeW+PX/PpGl5+4x+hbGIaKoDk7dEfv2S X-Report-Abuse-To: spam@quarantine1.antispamcloud.com X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2018 05:53:39 -0000 Hi, On Fri, 10 Aug 2018 12:40:48 +0800 blubee blubeeme wrote: > On Fri, Aug 10, 2018 at 8:28 AM Erich Dollansky < > freebsd.ed.lists@sumeritec.com> wrote: > > > Hi, > > > > On Fri, 10 Aug 2018 08:01:42 +0800 > > blubee blubeeme wrote: > > > > > What's the proper way to define and include FreeBSD amd64 in GNU > > > Makefiles > > > > > > Do we define FreeBSD as x86_64 or amd64 also is it __FreeBSD__, > > > FreeBSD__, or __FreeBSD > > > > > > I've seen all of the above looking through different projects. > > > > clang defines '__FreeBSD__' > > > > Erich > > > > What about the architecture name is it recommended to use x86_64 or > amd64? my clang reports on an Intel CPU: #define __amd64 1 #define __amd64__ 1 #define __x86_64 1 #define __x86_64__ 1 as defined. It reports #define __aarch64__ 1 on an 64 bit ARM CPU. Erich