summaryrefslogtreecommitdiff
path: root/ortho/gcc
diff options
context:
space:
mode:
authorBrian Drummond2013-12-02 16:36:09 +0000
committerBrian Drummond2013-12-02 16:36:09 +0000
commit3cfd999c339e5c5f7b8ab814aa0d379329a22190 (patch)
tree1336bfd08455d00c75dffe5ca363453edac551ba /ortho/gcc
parent8dbf1fbe8dedb1133b31f25e98171b784dc92061 (diff)
downloadghdl-3cfd999c339e5c5f7b8ab814aa0d379329a22190.tar.gz
ghdl-3cfd999c339e5c5f7b8ab814aa0d379329a22190.tar.bz2
ghdl-3cfd999c339e5c5f7b8ab814aa0d379329a22190.zip
Temporary fix for 16 bit builds; breaks 32-bit gcc builds (has no effect on mcode)
Diffstat (limited to 'ortho/gcc')
-rw-r--r--ortho/gcc/ortho-lang.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ortho/gcc/ortho-lang.c b/ortho/gcc/ortho-lang.c
index ef4c9ee..e8387fd 100644
--- a/ortho/gcc/ortho-lang.c
+++ b/ortho/gcc/ortho-lang.c
@@ -629,7 +629,11 @@ type_for_size (unsigned int precision, int unsignedp)
if (precision <= MAX_BITS_PER_WORD)
signed_and_unsigned_types[precision][unsignedp] = t;
-
+ else
+ // Handle larger requests by returning a NULL tree and letting
+ // the back end default to another approach.
+ t = NULL_TREE;
+
return t;
}