From 654209e6a1ae75b80ea06103c6fc97ff455ba22e Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Sun, 8 Aug 1993 16:19:27 -0700 Subject: [PATCH] (sparc_type_code): Support range types. From-SVN: r5116 --- gcc/config/sparc/sparc.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.30.2