From owner-svn-src-head@FreeBSD.ORG Tue Oct 28 09:23:44 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B0819AEF; Tue, 28 Oct 2014 09:23:44 +0000 (UTC) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 4B425D2E; Tue, 28 Oct 2014 09:23:43 +0000 (UTC) Received: from nine.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id 6F4D5A976; Tue, 28 Oct 2014 09:16:42 +0000 (UTC) Received: by nine.des.no (Postfix, from userid 1001) id 7E664106A6; Tue, 28 Oct 2014 10:16:43 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Kurt Jaeger Subject: Re: svn commit: r273734 - head/bin/dd References: <201410271138.s9RBcHrA002447@svn.freebsd.org> <20141027153957.GZ1877@kib.kiev.ua> <20141027155427.GM1492@f10.opsec.eu> <86vbn4egjt.fsf@nine.des.no> Date: Tue, 28 Oct 2014 10:16:43 +0100 In-Reply-To: <86vbn4egjt.fsf@nine.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8r?= =?utf-8?Q?grav=22's?= message of "Tue, 28 Oct 2014 09:37:10 +0100") Message-ID: <86r3xseepw.fsf@nine.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Konstantin Belousov , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 09:23:44 -0000 Dag-Erling Sm=C3=B8rgrav writes: > Kurt Jaeger writes: > > I do not have a working arm setup right now. > This is a bug on all platforms, and both clang and (recent) gcc should > complain about it. That printf() call will print garbage. Correction: it will print garbage on 32-bit platforms, where sizeof(int) !=3D sizeof(intmax_t), but clang and gcc should still emit a warning. You don't need "a working arm setup" to see this; all you need is to cross-build (make TARGET=3Darm TARGET_ARCH=3Darm buildworld). It won't even take long (15 minutes on my AMD FX8350) since the arm world is significantly smaller than the i386 or amd64 world. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no