This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch java]: Intialize va_list_type_node to avoid segfault for x86_64 targets in respect for alignment


On 07/01/2011 19:36, Kai Tietz wrote:

> Index: decl.c
> ===================================================================
> --- decl.c      (revision 168580)
> +++ decl.c      (working copy)
> @@ -1153,8 +1153,8 @@
>    soft_lrem_node
>      = add_builtin_function ("_Jv_remJ", t,
>                             0, NOT_BUILT_IN, NULL, NULL_TREE);
> -
>    /* Initialize va_list_type_node.  */
> +  unsigned_type_node = make_unsigned_type (INT_TYPE_SIZE);
>    t = targetm.build_builtin_va_list ();
> 
>    /* Many back-ends define record types without setting TYPE_NAME.


  I think this should go somewhat further up, along with all the other
xxxx_type_nodes around the start of java_init_decl_processing().

    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]