Commit a00ac533 by Nicola Pero Committed by Nicola Pero

In gcc/objc/: 2010-09-28 Nicola Pero <nicola@nicola.brainstorm.co.uk>

In gcc/objc/:
2010-09-28  Nicola Pero  <nicola@nicola.brainstorm.co.uk>

        * objc-act.c (encode_type): Fixed encoding enums with the next
        runtime.

From-SVN: r164693
parent 0d6e14fd
2010-09-28 Nicola Pero <nicola@nicola.brainstorm.co.uk>
* objc-act.c (encode_type): Fixed encoding enums with the next
runtime.
2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com> 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
Merge from 'apple/trunk' branch on FSF servers. Merge from 'apple/trunk' branch on FSF servers.
......
...@@ -8365,7 +8365,6 @@ static void ...@@ -8365,7 +8365,6 @@ static void
encode_type (tree type, int curtype, int format) encode_type (tree type, int curtype, int format)
{ {
enum tree_code code = TREE_CODE (type); enum tree_code code = TREE_CODE (type);
char c;
/* Ignore type qualifiers other than 'const' when encoding a /* Ignore type qualifiers other than 'const' when encoding a
type. */ type. */
...@@ -8387,13 +8386,14 @@ encode_type (tree type, int curtype, int format) ...@@ -8387,13 +8386,14 @@ encode_type (tree type, int curtype, int format)
/* Kludge for backwards-compatibility with gcc-3.3: enums /* Kludge for backwards-compatibility with gcc-3.3: enums
are always encoded as 'i' no matter what type they are always encoded as 'i' no matter what type they
actually are (!). */ actually are (!). */
c = 'i'; obstack_1grow (&util_obstack, 'i');
break; break;
} }
/* Else, they are encoded exactly like the integer type that is /* Else, they are encoded exactly like the integer type that is
used by the compiler to store them. */ used by the compiler to store them. */
case INTEGER_TYPE: case INTEGER_TYPE:
{ {
char c;
switch (GET_MODE_BITSIZE (TYPE_MODE (type))) switch (GET_MODE_BITSIZE (TYPE_MODE (type)))
{ {
case 8: c = TYPE_UNSIGNED (type) ? 'C' : 'c'; break; case 8: c = TYPE_UNSIGNED (type) ? 'C' : 'c'; break;
...@@ -8437,6 +8437,7 @@ encode_type (tree type, int curtype, int format) ...@@ -8437,6 +8437,7 @@ encode_type (tree type, int curtype, int format)
} }
case REAL_TYPE: case REAL_TYPE:
{ {
char c;
/* Floating point types. */ /* Floating point types. */
switch (GET_MODE_BITSIZE (TYPE_MODE (type))) switch (GET_MODE_BITSIZE (TYPE_MODE (type)))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment