From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10692 invoked by alias); 17 Sep 2004 20:52:46 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 10675 invoked from network); 17 Sep 2004 20:52:44 -0000 Received: from unknown (HELO mail16.ha.ovh.net) (213.186.33.51) by sourceware.org with SMTP; 17 Sep 2004 20:52:44 -0000 Received: (qmail 8026 invoked by uid 503); 17 Sep 2004 20:51:48 -0000 Received: from d213-101-192-51.cust.tele2.fr (HELO ?192.168.1.100?) (laurent%guerby.net@213.101.192.51) by ns0.ovh.net with SMTP; 17 Sep 2004 20:51:48 -0000 Subject: Re: Ada system.fat_lflt.fat_long_float.scaling problem analysis From: Laurent GUERBY To: Robert Dewar Cc: Richard Kenner , gcc@gcc.gnu.org In-Reply-To: <414B4B74.6090608@gnat.com> References: <10409132124.AA11452@vlsi1.ultra.nyu.edu> <1095450828.6762.125.camel@pc.site> <414B4B74.6090608@gnat.com> Content-Type: text/plain Message-Id: <1095454332.6762.133.camel@pc.site> Mime-Version: 1.0 Date: Fri, 17 Sep 2004 21:34:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg01087.txt.bz2 On Fri, 2004-09-17 at 22:39, Robert Dewar wrote: > This does not look like a bug to me, but in any case, surely > the proper procedure is to file a bug report! Well technically it's a regression shown by the testsuite in CVS, are you suggesting I file a PR in GCC bugzilla or to ACT? Very similar code is present in GNAT sources and is causing the ACATS failures, see s-fatgen.adb, function Valid: XA : constant System.Address := To_Address (Float_Access (X)); R : Float_Rep; pragma Import (Ada, R); for R'Address use XA; -- R is a view of the input floating-point parameter. Note that we -- must avoid copying the actual bits of this parameter in float -- form (since it may be a signalling NaN. (I believe it's your code BTW, and the comment misses a closing parenthesis :) Since it's a generic, it might lead to generated code as I've writen in my example if multiple instanciation are present. Such a construct has worked for all versions of GNAT, but might depend on some specific code generation behaviour that is no longer present. Laurent