aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/trans.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-05-16 09:11:39 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-05-16 09:11:39 +0000
commit871fda0ab0dcf2732eaeb89f4db0bb3c64eaf8f7 (patch)
tree902ad77b5c5de1e8d3786003564c4495f2968739 /gcc/ada/gcc-interface/trans.c
parent1d4c5fe99b7f0551b3cafe72c63f465f5b59f215 (diff)
downloadgcc-871fda0ab0dcf2732eaeb89f4db0bb3c64eaf8f7.zip
gcc-871fda0ab0dcf2732eaeb89f4db0bb3c64eaf8f7.tar.gz
gcc-871fda0ab0dcf2732eaeb89f4db0bb3c64eaf8f7.tar.bz2
gigi.h (enum standard_datatypes): Add new value ADT_exception_data_name_id.
* gcc-interface/gigi.h (enum standard_datatypes): Add new value ADT_exception_data_name_id. (exception_data_name_id): New define. * gcc-interface/trans.c (gigi): Initialize it. * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard exception type for standard exception definitions. Do not make them volatile. <E_Record_Type>: Equate fields of types associated with an exception definition to those of the standard exception type. From-SVN: r159452
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
-rw-r--r--gcc/ada/gcc-interface/trans.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c
index c6bad43..68b496e 100644
--- a/gcc/ada/gcc-interface/trans.c
+++ b/gcc/ada/gcc-interface/trans.c
@@ -401,6 +401,10 @@ gigi (Node_Id gnat_root, int max_gnat_node, int number_name ATTRIBUTE_UNUSED,
/* Name of the _Parent field in tagged record types. */
parent_name_id = get_identifier (Get_Name_String (Name_uParent));
+ /* Name of the Exception_Data type defined in System.Standard_Library. */
+ exception_data_name_id
+ = get_identifier ("system__standard_library__exception_data");
+
/* Make the types and functions used for exception processing. */
jmpbuf_type
= build_array_type (gnat_type_for_mode (Pmode, 0),