aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/gigi.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-05-08 11:17:57 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-05-08 11:17:57 +0000
commitda01bfee1aafe6c68c2c21d9d6d77a506c7e52c7 (patch)
tree00a25473a21da8c1d6a9ebf2f7542aa0fb082e4b /gcc/ada/gcc-interface/gigi.h
parent928dfa4bd0a32e35a8366d7ef21323a76f54a97c (diff)
downloadgcc-da01bfee1aafe6c68c2c21d9d6d77a506c7e52c7.zip
gcc-da01bfee1aafe6c68c2c21d9d6d77a506c7e52c7.tar.gz
gcc-da01bfee1aafe6c68c2c21d9d6d77a506c7e52c7.tar.bz2
gigi.h (create_field_decl): Move PACKED parameter.
* gcc-interface/gigi.h (create_field_decl): Move PACKED parameter. * gcc-interface/utils.c (create_field_decl): Move PACKED parameter. (rest_of_record_type_compilation): Adjust call to create_field_decl. (make_descriptor_field): Likewise and pass correctly typed constants. (build_unc_object_type): Likewise. (unchecked_convert): Likewise. * gcc-interface/decl.c (elaborate_expression_2): New static function. (gnat_to_gnu_entity): Use it to make alignment factors explicit. Adjust call to create_field_decl. (make_aligning_type): Likewise. (make_packable_type): Likewise. (maybe_pad_type): Likewise. (gnat_to_gnu_field): Likewise. (components_to_record): Likewise. (create_field_decl_from): Likewise. (create_variant_part_from): Remove superfluous test. * gcc-interface/trans.c (gigi): Adjust call to create_field_decl. From-SVN: r159181
Diffstat (limited to 'gcc/ada/gcc-interface/gigi.h')
-rw-r--r--gcc/ada/gcc-interface/gigi.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ada/gcc-interface/gigi.h b/gcc/ada/gcc-interface/gigi.h
index b7a3200..f3a0bdd 100644
--- a/gcc/ada/gcc-interface/gigi.h
+++ b/gcc/ada/gcc-interface/gigi.h
@@ -595,15 +595,15 @@ extern void record_global_renaming_pointer (tree decl);
extern void invalidate_global_renaming_pointers (void);
/* Return a FIELD_DECL node. FIELD_NAME is the field's name, FIELD_TYPE is
- its type and RECORD_TYPE is the type of the enclosing record. PACKED is
- 1 if the enclosing record is packed, -1 if it has Component_Alignment of
- Storage_Unit. If SIZE is nonzero, it is the specified size of the field.
- If POS is nonzero, it is the bit position. If ADDRESSABLE is nonzero, it
+ its type and RECORD_TYPE is the type of the enclosing record. If SIZE is
+ nonzero, it is the specified size of the field. If POS is nonzero, it is
+ the bit position. PACKED is 1 if the enclosing record is packed, -1 if it
+ has Component_Alignment of Storage_Unit. If ADDRESSABLE is nonzero, it
means we are allowed to take the address of the field; if it is negative,
we should not make a bitfield, which is used by make_aligning_type. */
extern tree create_field_decl (tree field_name, tree field_type,
- tree record_type, int packed, tree size,
- tree pos, int addressable);
+ tree record_type, tree size, tree pos,
+ int packed, int addressable);
/* Returns a PARM_DECL node. PARAM_NAME is the name of the parameter,
PARAM_TYPE is its type. READONLY is true if the parameter is