From: Jim Wilson Date: Sun, 8 Aug 1993 23:19:27 +0000 (-0700) Subject: (sparc_type_code): Support range types. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=654209e6a1ae75b80ea06103c6fc97ff455ba22e;p=gcc.git (sparc_type_code): Support range types. From-SVN: r5116 --- diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 6f0f389290d..827762f988b 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;