2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-03 09:10:36 +08:00

decl.c (java_init_decl_processing): Setup va_list_type_node.

2011-01-07  Kai Tietz  <kai.tietz@onevision.com>

        * decl.c (java_init_decl_processing): Setup va_list_type_node.

From-SVN: r168569
This commit is contained in:
Kai Tietz 2011-01-07 13:50:15 +00:00 committed by Kai Tietz
parent 2ac6bb044f
commit d6bcbb40dd
2 changed files with 17 additions and 0 deletions

@ -1,3 +1,7 @@
2011-01-07 Kai Tietz <kai.tietz@onevision.com>
* decl.c (java_init_decl_processing): Setup va_list_type_node.
2011-01-03 Jakub Jelinek <jakub@redhat.com>
* jcf-dump.c (version): Update copyright notice dates.

@ -1154,6 +1154,19 @@ java_init_decl_processing (void)
= add_builtin_function ("_Jv_remJ", t,
0, NOT_BUILT_IN, NULL, NULL_TREE);
/* Initialize va_list_type_node. */
t = targetm.build_builtin_va_list ();
/* Many back-ends define record types without setting TYPE_NAME.
If we copied the record type here, we'd keep the original
record type without a name. This breaks name mangling. So,
don't copy record types and let c_common_nodes_and_builtins()
declare the type to be __builtin_va_list. */
if (TREE_CODE (t) != RECORD_TYPE)
t = build_variant_type_copy (t);
va_list_type_node = t;
initialize_builtins ();
soft_fmod_node = built_in_decls[BUILT_IN_FMOD];