From owner-freebsd-toolchain@freebsd.org Mon Jan 25 02:22:45 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50FE47E8E for ; Mon, 25 Jan 2016 02:22:45 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-157.reflexion.net [208.70.211.157]) (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 0754F1E6 for ; Mon, 25 Jan 2016 02:22:44 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 9355 invoked from network); 25 Jan 2016 02:22:54 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 25 Jan 2016 02:22:54 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Sun, 24 Jan 2016 21:22:39 -0500 (EST) Received: (qmail 17352 invoked from network); 25 Jan 2016 02:22:39 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 25 Jan 2016 02:22:39 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 900221C43AE; Sun, 24 Jan 2016 18:22:37 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: native powerpc64-gcc and clang 3.7.1 on powerpc64: __BIGGEST_ALIGNMENT__ mismatch and a few more Message-Id: Date: Sun, 24 Jan 2016 18:22:42 -0800 To: FreeBSD PowerPC ML , FreeBSD Toolchain Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 02:22:45 -0000 Intersting powerpc64-gcc's g++ (5.2) vs. clang++ (3.7.1) (all native on = powerpc64) macro differences for default conditions: > # more just_main.cpp=20 > int main(void) > { return 0; } > $ pkg which /usr/local/bin/powerpc64-portbld-freebsd11.0-g++ > /usr/local/bin/powerpc64-portbld-freebsd11.0-g++ was installed by = package powerpc64-gcc-5.2.0_1 > # /usr/local/bin/powerpc64-portbld-freebsd11.0-g++ -std=3Dc++11 -dM -E = just_main.cpp | sort > ~/powerpc64_gcc_52_macros.txt > # clang++ -std=3Dc++11 -dM -E just_main.cpp | sort > = ~/clang++371_macros.txt > # diff -U 100 ~/powerpc64_gcc_52_macros.txt ~/clang++371_macros.txt > --- /root/powerpc64_gcc_52_macros.txt 2016-01-24 17:51:51.333696000 = -0800 > +++ /root/clang++371_macros.txt 2016-01-24 17:49:34.592012000 -0800 . . . > -#define __BIGGEST_ALIGNMENT__ 16 > +#define __BIGGEST_ALIGNMENT__ 8 . . . > -#define __CHAR16_TYPE__ short unsigned int > +#define __CHAR16_TYPE__ unsigned short . . . > -#define __CMODEL_MEDIUM__ 1 . . . > -#define __GNUC__ 5 > -#define __GNUG__ 5 > -#define __GXX_ABI_VERSION 1009 . . . > +#define __GNUC__ 4 > +#define __GNUG__ 4 > +#define __GXX_ABI_VERSION 1002 . . . > +#define __NATURAL_ALIGNMENT__ 1 . . . > -#define __cpp_binary_literals 201304 . . . > -#define __cpp_runtime_arrays 198712 > -#define __cpp_rvalue_reference 200610 > +#define __cpp_rvalue_references 200610 . . . =3D=3D=3D Mark Millard markmi at dsl-only.net