From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31477 invoked by alias); 13 Mar 2014 15:43:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31063 invoked by uid 55); 13 Mar 2014 15:43:36 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/51483] [4.7/4.8/4.9 regression] cstand.adb:Register_Float_Type makes invalid assumption about FP modes Date: Thu, 13 Mar 2014 15:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg01066.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51483 --- Comment #23 from Eric Botcazou --- Author: ebotcazou Date: Thu Mar 13 15:43:01 2014 New Revision: 208548 URL: http://gcc.gnu.org/viewcvs?rev=208548&root=gcc&view=rev Log: PR ada/51483 * back_end.ads (Register_Type_Proc): Add 'precision' parameter. * cstand.adb (Register_Float_Type): Add 'precision' parameter and use it to set the RM size. Use directly 'size' for the Esize. * gcc-interface/gigi.h (enumerate_modes): Add integer parameter. * gcc-interface/misc.c (enumerate_modes): Likewise. Do not register types for vector modes, pass the size in addition to the precision. Modified: branches/gcc-4_7-branch/gcc/ada/ChangeLog branches/gcc-4_7-branch/gcc/ada/back_end.ads branches/gcc-4_7-branch/gcc/ada/cstand.adb branches/gcc-4_7-branch/gcc/ada/gcc-interface/gigi.h branches/gcc-4_7-branch/gcc/ada/gcc-interface/misc.c