diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-08-08 16:19:27 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-08-08 16:19:27 -0700 |
commit | 654209e6a1ae75b80ea06103c6fc97ff455ba22e (patch) | |
tree | b8333fb50cf057e62f8fc390a6ea6106074807f6 /gcc | |
parent | 591b15bb1c185e2364e4e2ed65d1bebb48fbfb2b (diff) | |
download | gcc-654209e6a1ae75b80ea06103c6fc97ff455ba22e.zip gcc-654209e6a1ae75b80ea06103c6fc97ff455ba22e.tar.gz gcc-654209e6a1ae75b80ea06103c6fc97ff455ba22e.tar.bz2 |
(sparc_type_code): Support range types.
From-SVN: r5116
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/sparc/sparc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 6f0f389..827762f 100644 --- 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; |