aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/gcc/ortho-lang-6.c
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-28 08:17:29 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-28 17:47:48 +0200
commit0a51563e4e5989abe8becd1c060e06d4dec6024e (patch)
treefb63c3831b809bb953d340fe049d62afe45725c6 /src/ortho/gcc/ortho-lang-6.c
parentf75d87d33027413fac10adc7a6f5c1a48390efba (diff)
downloadghdl-0a51563e4e5989abe8becd1c060e06d4dec6024e.tar.gz
ghdl-0a51563e4e5989abe8becd1c060e06d4dec6024e.tar.bz2
ghdl-0a51563e4e5989abe8becd1c060e06d4dec6024e.zip
ortho/gcc: convert boolean and enums to int on interfaces.
Diffstat (limited to 'src/ortho/gcc/ortho-lang-6.c')
-rw-r--r--src/ortho/gcc/ortho-lang-6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ortho/gcc/ortho-lang-6.c b/src/ortho/gcc/ortho-lang-6.c
index f78017da4..2fd5be401 100644
--- a/src/ortho/gcc/ortho-lang-6.c
+++ b/src/ortho/gcc/ortho-lang-6.c
@@ -1706,8 +1706,10 @@ new_interface_decl (struct o_inter_list *interfaces,
case ENUMERAL_TYPE:
case BOOLEAN_TYPE:
DECL_ARG_TYPE (r) = integer_type_node;
+ break;
default:
DECL_ARG_TYPE (r) = atype;
+ break;
}
layout_decl (r, 0);