From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 72DAA3858010 for ; Mon, 23 Aug 2021 08:03:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 72DAA3858010 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629705825; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=HDcYTjvReqwWyXanzE6jRXTyq1keI16js1xAlY308Bc=; b=azFIMLDDFHyTzq/h+zXG4judj1A7zrBTqsCo1sWwksrylAIb2giEwgWt6G4w9VgN2qPtJc 9vGumUvHZFil06RsQDXVfTHamrzKQCAddK3sltzTW7JvLd9PUu2qEk/lBAfNGU/FTv4vWd 8lVHrJiEycPtUR4T15eGLdDDsvaX8W8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-363-fkqSyrafOqaVgPVhjgGFLA-1; Mon, 23 Aug 2021 04:03:41 -0400 X-MC-Unique: fkqSyrafOqaVgPVhjgGFLA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 47C061015184 for ; Mon, 23 Aug 2021 08:03:40 +0000 (UTC) Received: from calimero.vinschen.de (ovpn-112-10.ams2.redhat.com [10.36.112.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 199F5669F3 for ; Mon, 23 Aug 2021 08:03:40 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 9DE55A80D5E; Mon, 23 Aug 2021 10:03:38 +0200 (CEST) Date: Mon, 23 Aug 2021 10:03:38 +0200 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: Should libc/locale/lnumeric.c be in GENERAL_SOURCES (EL/IX level 1)? Message-ID: Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <02e001d79516$ee6eb1d0$cb4c1570$@nextmovesoftware.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=vinschen@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2021 08:03:56 -0000 On Aug 20 08:29, Joel Sherrill wrote: > On Fri, Aug 20, 2021 at 3:32 AM Corinna Vinschen wrote: > > > > On Aug 19 17:26, Roger Sayle wrote: > > > > > > > > > I believe that newlib/libc/locale/Makefile.am should place lnumeric.c > > > > > > in GENERAL_SOURCES [EL/IX level 1]. The motivation for doing this is > > > > > > that both stdlib/strtod.c and stdlib/gdtoa-gethex.c unconditionally > > > > > > call __get_numeric_locale, and they themselves are in GENERAL_SOURCES > > > > > > (i.e. EL/IX level 1). > > The FACE Technical Standard (https://opengroup.org/face) has four POSIX profiles > which were designed with security and avionics certification in mind has no > locale support in the lowest three profiles and only limited support > in the largest > profile. > > The Software Communications Architecture (SCA) has a few profiles and targets > software defined radios > (https://sds.wirelessinnovation.org/history-of-the-sca). It > does not include any locale support. The intended users would likely also be > subject to security audits. > > With that background, making locale as optional as possible is a good idea for > footprint both in code size and what might need to be audited. I'm happy with > the patch. Pushed. Thanks, Corinna