From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19245 invoked by alias); 28 Nov 2014 11:07:28 -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 19195 invoked by uid 48); 28 Nov 2014 11:07:22 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/64055] [5 regression] gnat.dg/derived_aggregate.adb FAILs on 32-bit i386 Date: Fri, 28 Nov 2014 11:07: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 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-11/txt/msg03304.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64055 --- Comment #4 from Eric Botcazou --- ix86_function_arg_advance calls chkp_type_bounds_count which dies on an array type with variable bounds so the immediate workaround is: Index: tree-chkp.c =================================================================== --- tree-chkp.c (revision 218133) +++ tree-chkp.c (working copy) @@ -1565,7 +1565,9 @@ chkp_find_bound_slots_1 (const_tree type HOST_WIDE_INT esize = TREE_INT_CST_LOW (TYPE_SIZE (etype)); unsigned HOST_WIDE_INT cur; - if (!maxval || integer_minus_onep (maxval)) + if (!maxval + || integer_minus_onep (maxval) + || CONTAINS_PLACEHOLDER_P (maxval)) return; for (cur = 0; cur <= TREE_INT_CST_LOW (maxval); cur++) but a specialist needs to have a look here.