From patchwork Wed Jan 8 19:39:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zack Weinberg X-Patchwork-Id: 1219869 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-108544-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=panix.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="BNDLQaQG"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47tKLz29zfz9s29 for ; Thu, 9 Jan 2020 06:39:22 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=Ubv 9T7eYOqR4Uo3MSg3YSuFXECaeb+MWTjJIi2yRLqgtxt3UUC9B6pZEr4wYDn9xGLA NDt4I77BkZs2f6ZP4WyE52p5bwMjJ1J5WdcjQgmV91pfYF+Z1X3R7au1hfBwRjyK 45uLhQq936z1TNzFQLYTuYfuVL6clYY0IM5BOQFo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=5paAhHkZv 51Y0hot5Z9OAAOk08o=; b=BNDLQaQGr2TOyvCMmErqqf0qyX2qot6nK4jeorz+m MAiHyZqhe4xcoBBROIjA/qS6ewwjWpFc6vrptwbfHDajSgiJN2LzHrHSxtRVAcG2 a9BftL6FjD+6PCNUId6xtXpWmc6usLctEucFfbGc4cFaYjehJAyxMu4/kUdQ85/U MU= Received: (qmail 9214 invoked by alias); 8 Jan 2020 19:39:17 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 9201 invoked by uid 89); 8 Jan 2020 19:39:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1347, HContent-Transfer-Encoding:8bit X-HELO: mailbackend.panix.com From: Zack Weinberg To: libc-alpha@sourceware.org Subject: [PATCH COMMITTED] MIPS: Fix circular definition of __LDBL_MANT_DIG__ in ieee754.h Date: Wed, 8 Jan 2020 14:39:13 -0500 Message-Id: <20200108193913.25388-1-zackw@panix.com> MIME-Version: 1.0 In commit aa706e13f4bfdf32a27c498902edf4f6006e433e, sysdeps/mips/ieee754/ieee754.h was changed to use GCC’s predefined macro __LDBL_MANT_DIG__, instead of including and using LDBL_MANT_DIG (and therefore polluting the user namespace with all of the macros defined in float.h). In order to support compilers that don’t provide __LDBL_MANT_DIG__, there is a fallback #if block which was supposed to include and then define __LDBL_MANT_DIG__ to LDBL_MANT_DIG. However, at some point during the development of the patch, a typo was introduced, causing the fallback block to define __LDBL_MANT_DIG__ to expand to __LDBL_MANT_DIG__. Correct this typo. --- Since this is an obvious typo fix and time before the release is short, I have already pushed this patch to master. zw --- sysdeps/mips/ieee754/ieee754.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/mips/ieee754/ieee754.h b/sysdeps/mips/ieee754/ieee754.h index 75059f733b..62f17586f1 100644 --- a/sysdeps/mips/ieee754/ieee754.h +++ b/sysdeps/mips/ieee754/ieee754.h @@ -24,7 +24,7 @@ #ifndef __LDBL_MANT_DIG__ # include -# define __LDBL_MANT_DIG__ __LDBL_MANT_DIG__ +# define __LDBL_MANT_DIG__ LDBL_MANT_DIG #endif __BEGIN_DECLS