+Thu Sep 30 18:44:50 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node
+ for the va_list record.
+
Thu Sep 30 18:34:54 1999 Jan Hubicka <hubicka@freesoft.cz>
* i386.c (ix86_adjust_cost): Ignore false ebp dependencies in
tree
rs6000_build_va_list ()
{
- tree f_gpr, f_fpr, f_ovf, f_sav, record;
+ tree f_gpr, f_fpr, f_ovf, f_sav, record, type_decl;
tree uchar_type_node;
/* Only SVR4 needs something special. */
return ptr_type_node;
record = make_node (RECORD_TYPE);
+ type_decl = build_decl (TYPE_DECL, get_identifier ("__va_list_tag"), record);
uchar_type_node = make_unsigned_type (CHAR_TYPE_SIZE);
f_gpr = build_decl (FIELD_DECL, get_identifier ("gpr"), uchar_type_node);
DECL_FIELD_CONTEXT (f_ovf) = record;
DECL_FIELD_CONTEXT (f_sav) = record;
+ TREE_CHAIN (record) = type_decl;
+ TYPE_NAME (record) = type_decl;
TYPE_FIELDS (record) = f_gpr;
TREE_CHAIN (f_gpr) = f_fpr;
TREE_CHAIN (f_fpr) = f_ovf;