aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/gcc/ortho-lang-6.c
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-06-17 21:50:25 +0200
committerTristan Gingold <tgingold@free.fr>2020-06-17 21:50:25 +0200
commit473c83961abe4e2fb52c8812e46bf19a41fe52cf (patch)
tree130b71c9e47b60837257ab7b104adf99d44152b8 /src/ortho/gcc/ortho-lang-6.c
parent6581cce8c6ea51b5386156fa4d21bd8f1865f851 (diff)
downloadghdl-473c83961abe4e2fb52c8812e46bf19a41fe52cf.tar.gz
ghdl-473c83961abe4e2fb52c8812e46bf19a41fe52cf.tar.bz2
ghdl-473c83961abe4e2fb52c8812e46bf19a41fe52cf.zip
src/ortho: add new_convert.
Diffstat (limited to 'src/ortho/gcc/ortho-lang-6.c')
-rw-r--r--src/ortho/gcc/ortho-lang-6.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ortho/gcc/ortho-lang-6.c b/src/ortho/gcc/ortho-lang-6.c
index 2fd5be401..550006b66 100644
--- a/src/ortho/gcc/ortho-lang-6.c
+++ b/src/ortho/gcc/ortho-lang-6.c
@@ -933,7 +933,7 @@ new_compare_op (enum ON_op_kind kind, tree left, tree right, tree ntype)
}
tree
-new_convert_ov (tree val, tree rtype)
+new_convert (tree val, tree rtype)
{
tree val_type;
enum tree_code val_code;
@@ -996,6 +996,12 @@ new_convert_ov (tree val, tree rtype)
}
tree
+new_convert_ov (tree val, tree rtype)
+{
+ return new_convert (val, rtype);
+}
+
+tree
new_alloca (tree rtype, tree size)
{
tree res;