Message ID | AANLkTinQ6qO2QYfYSGrQNxTyev54bu0b=RJ8uZs0LXH6@mail.gmail.com |
---|---|
State | New |
Headers | show |
2011/1/7 Dave Korn <dave.korn.cygwin@gmail.com>: > 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 > Well, not sure here. The other type_node language ones AFAICS, but that one is just related to x86_64 ABI's record structure generation. Btw the other unsigned_type_nodes (like short_... etc) aren't necessary here. My multilib bootstrap on linux x86_64 for this patch passed. I got no segmentation fault on libjava. So is patch ok for apply? Or should I move the unsigned_type_node initialization more up? Regards, Kai
On Fri, Jan 7, 2011 at 12:39 PM, Kai Tietz <ktietz70@googlemail.com> wrote: > 2011/1/7 Dave Korn <dave.korn.cygwin@gmail.com>: >> 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 >> > > Well, not sure here. The other type_node language ones AFAICS, but > that one is just related to x86_64 ABI's record structure generation. > Btw the other unsigned_type_nodes (like short_... etc) aren't > necessary here. > > My multilib bootstrap on linux x86_64 for this patch passed. I got no > segmentation fault on libjava. > So is patch ok for apply? Or should I move the unsigned_type_node > initialization more up? > Let's fix the bootstrap now. Thanks.
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
>>>>> "Kai" == Kai Tietz <ktietz70@googlemail.com> writes:
Kai> My multilib bootstrap on linux x86_64 for this patch passed. I got no
Kai> segmentation fault on libjava.
Kai> So is patch ok for apply? Or should I move the unsigned_type_node
Kai> initialization more up?
This is ok as-is.
thanks,
Tom
2011/1/7 Tom Tromey <tromey@redhat.com>: >>>>>> "Kai" == Kai Tietz <ktietz70@googlemail.com> writes: > > Kai> My multilib bootstrap on linux x86_64 for this patch passed. I got no > Kai> segmentation fault on libjava. > Kai> So is patch ok for apply? Or should I move the unsigned_type_node > Kai> initialization more up? > > This is ok as-is. > > thanks, > Tom > Thanks, applied at revision 168585. Regards, Kai
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.