From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4801 invoked by alias); 17 Nov 2006 15:11:45 -0000 Received: (qmail 4008 invoked by alias); 17 Nov 2006 15:11:32 -0000 Date: Fri, 17 Nov 2006 15:11:00 -0000 Message-ID: <20061117151132.4007.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/27936] [4.2/4.3 regression] gnatbind fails to link In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ebotcazou at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg01548.txt.bz2 List-Id: ------- Comment #12 from ebotcazou at gcc dot gnu dot org 2006-11-17 15:11 ------- Subject: Bug 27936 Author: ebotcazou Date: Fri Nov 17 15:11:17 2006 New Revision: 118940 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118940 Log: PR ada/27936 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro. * decl.c (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in addition to TREE_READONLY to assert the constantness of variables for elaboration purposes. * trans.c (add_decl_expr): Do not dynamically elaborate padded objects if the initializer takes into account the padding. Set DECL_READONLY_ONCE_ELAB flag on variables originally TREE_READONLY but whose elaboration cannot be performed statically. Modified: branches/gcc-4_2-branch/gcc/ada/ChangeLog branches/gcc-4_2-branch/gcc/ada/ada-tree.h branches/gcc-4_2-branch/gcc/ada/decl.c branches/gcc-4_2-branch/gcc/ada/trans.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27936