projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
591b15b
)
(sparc_type_code): Support range types.
author
Jim Wilson
<wilson@gcc.gnu.org>
Sun, 8 Aug 1993 23:19:27 +0000
(16:19 -0700)
committer
Jim Wilson
<wilson@gcc.gnu.org>
Sun, 8 Aug 1993 23:19:27 +0000
(16:19 -0700)
From-SVN: r5116
gcc/config/sparc/sparc.c
patch
|
blob
|
history
diff --git
a/gcc/config/sparc/sparc.c
b/gcc/config/sparc/sparc.c
index 6f0f389290d643b61ef224134c7dd273a870610f..827762f988b7d6a15a54b9630968b19549896596 100644
(file)
--- a/
gcc/config/sparc/sparc.c
+++ b/
gcc/config/sparc/sparc.c
@@
-2947,6
+2947,14
@@
sparc_type_code (type)
return (qualifiers | 16);
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,
without messing up if the language is not C.
Note that we check only for the names that contain spaces;