From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1865 invoked by alias); 20 Feb 2007 23:54:40 -0000 Received: (qmail 1817 invoked by alias); 20 Feb 2007 23:54:29 -0000 Date: Tue, 20 Feb 2007 23:54:00 -0000 Message-ID: <20070220235429.1816.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/30684] [4.1 regression] boostrap failed with undefined reference to system__pure_exceptions_* 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-02/txt/msg02416.txt.bz2 ------- Comment #3 from ebotcazou at gcc dot gnu dot org 2007-02-20 23:54 ------- Subject: Bug 30684 Author: ebotcazou Date: Tue Feb 20 23:54:16 2007 New Revision: 122181 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122181 Log: PR ada/30684 Backport from 4.2 branch: 2006-11-17 Eric Botcazou * 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_1-branch/gcc/ada/ChangeLog branches/gcc-4_1-branch/gcc/ada/ada-tree.h branches/gcc-4_1-branch/gcc/ada/decl.c branches/gcc-4_1-branch/gcc/ada/trans.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30684