Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 68689 invoked from network); 2 Apr 2008 15:33:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 15:33:52 -0000 Received: (qmail 13190 invoked by uid 500); 2 Apr 2008 15:33:51 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 13168 invoked by uid 500); 2 Apr 2008 15:33:51 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 13159 invoked by uid 99); 2 Apr 2008 15:33:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 08:33:51 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 15:33:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 485AD234C0B1 for ; Wed, 2 Apr 2008 08:31:24 -0700 (PDT) Message-ID: <1108889757.1207150284294.JavaMail.jira@brutus> Date: Wed, 2 Apr 2008 08:31:24 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Assigned: (STDCXX-740) INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs In-Reply-To: <1526738204.1203616639424.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov reassigned STDCXX-740: ------------------------------------ Assignee: Farid Zaripov > INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs > ------------------------------------------------------------------------------------------ > > Key: STDCXX-740 > URL: https://issues.apache.org/jira/browse/STDCXX-740 > Project: C++ Standard Library > Issue Type: Bug > Components: Configuration > Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0 > Environment: gcc/Linux/i386 > Reporter: Farid Zaripov > Assignee: Farid Zaripov > Priority: Trivial > Fix For: 4.2.1 > > Attachments: INFINITY.cpp.diff > > Original Estimate: 1h > Remaining Estimate: 1h > > When I ran the INFINITY config test several times I found that the _RWSTD_LDBL_SNAN_BITS values are different from time to time. > Below is the result of 5 runs of the INFINITY test: > {noformat} > #define _RWSTD_LDBL_SNAN_BITS { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf9', '\xbf' } > #define _RWSTD_LDBL_SNAN_BITS { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xfd', '\xbf' } > #define _RWSTD_LDBL_SNAN_BITS { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf7', '\xbf' } > #define _RWSTD_LDBL_SNAN_BITS { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf2', '\xbf' } > #define _RWSTD_LDBL_SNAN_BITS { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xe8', '\xbf' } > {noformat} > I suppose that actually used 80 bits from 96 bits of long double (sizeof (long double) == 12) and the latest two bytes contains the garbage from stack. > I think we need fill by zero values the bits fields of the flt_bits, dbl_bits and ldbl_bits unions (i.e. in union ctor). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.