Patchwork [java] : PR/47214 This time for s390 add long_integer_type_node

login
register
mail settings
Submitter Kai Tietz
Date Jan. 10, 2011, 4:44 p.m.
Message ID <AANLkTinSckgPU59ccbE-=s5k1qTQtqTrL2GhL8VP8Aed@mail.gmail.com>
Download mbox | patch
Permalink /patch/78170/
State New
Headers show

Comments

Kai Tietz - Jan. 10, 2011, 4:44 p.m.
Hello,

another type necessary not initialized in java's decl.c file. This time for s390

ChangeLog

2011-01-10  Kai Tietz

        PR bootstrap/47215
        * decl.c (java_init_decl_processing): Initialize long_integer_type_node.
Tom Tromey - Jan. 11, 2011, 2:46 p.m.
>>>>> "Kai" == Kai Tietz <ktietz70@googlemail.com> writes:

Kai> 2011-01-10  Kai Tietz
Kai>         PR bootstrap/47215
Kai>         * decl.c (java_init_decl_processing): Initialize long_integer_type_node.

This is ok.  Thanks.

Tom
Andreas Krebbel - Jan. 11, 2011, 2:47 p.m.
> 2011-01-10  Kai Tietz
> 
>         PR bootstrap/47215
>         * decl.c (java_init_decl_processing): Initialize long_integer_type_node.

As expected this fixes Java bootstrap on s390.

Thanks!

-Andreas-
Kai Tietz - Jan. 11, 2011, 2:51 p.m.
2011/1/11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>:
>> 2011-01-10  Kai Tietz
>>
>>         PR bootstrap/47215
>>         * decl.c (java_init_decl_processing): Initialize long_integer_type_node.
>
> As expected this fixes Java bootstrap on s390.
>
> Thanks!
>
> -Andreas-
>

Committed at revision 168662 to trunk.

Regards,
Kai

Patch

Index: decl.c
===================================================================
--- decl.c      (revision 168626)
+++ decl.c      (working copy)
@@ -1155,6 +1155,8 @@ 
                            0, NOT_BUILT_IN, NULL, NULL_TREE);
   /* Initialize va_list_type_node.  */
   unsigned_type_node = make_unsigned_type (INT_TYPE_SIZE);
+  long_integer_type_node = make_signed_type (LONG_TYPE_SIZE);
+
   t = targetm.build_builtin_va_list ();

   /* Many back-ends define record types without setting TYPE_NAME.