Received: by mail.netbsd.org (Postfix, from userid 605) id 5C87684E30; Sun, 8 Mar 2020 06:30:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CBE7484E2F for ; Sun, 8 Mar 2020 06:30:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id WVAsYnPzXeOJ for ; Sun, 8 Mar 2020 06:30:06 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 64AA084E2C for ; Sun, 8 Mar 2020 06:30:06 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 5346EFB27; Sun, 8 Mar 2020 06:30:06 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 8 Mar 2020 06:30:06 +0000 From: "Rin Okuyama" Subject: CVS commit: src/lib/libc/compiler_rt To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200308063006.5346EFB27@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Rin Okuyama" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rin Date: Sun Mar 8 06:30:06 UTC 2020 Modified Files: src/lib/libc/compiler_rt: Makefile.inc Log Message: Fix broken printf(3) %d output for numbers more than two digits, e.g., printf("%d\n", 42) ---> "::" instead of "42" Our __{,u}modsi3 codes assume that __udivsi3 returns remainder to %d1 (volatile register). __udivsi3 in libgcc does not, and therefore mixing them up results in mess. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/lib/libc/compiler_rt/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.