Commit 654209e6 by Jim Wilson

(sparc_type_code): Support range types.

From-SVN: r5116
parent 591b15bb
...@@ -2947,6 +2947,14 @@ sparc_type_code (type) ...@@ -2947,6 +2947,14 @@ sparc_type_code (type)
return (qualifiers | 16); return (qualifiers | 16);
case INTEGER_TYPE: case INTEGER_TYPE:
/* If this is a range type, consider it to be the underlying
type. */
if (TREE_TYPE (type) != 0)
{
type = TREE_TYPE (type);
break;
}
/* Carefully distinguish all the standard types of C, /* Carefully distinguish all the standard types of C,
without messing up if the language is not C. without messing up if the language is not C.
Note that we check only for the names that contain spaces; Note that we check only for the names that contain spaces;
......
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