This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/27936] [4.2/4.3 regression] gnatbind fails to link
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Nov 2006 15:11:32 -0000
- Subject: [Bug ada/27936] [4.2/4.3 regression] gnatbind fails to link
- References: <bug-27936-81@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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