aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-03-14 15:39:16 +0100
committerThomas Preud'homme <robotux@celest.fr>2012-06-05 23:09:55 +0200
commitbfb00494eb2ffaf4fbf68a8ecabe9e503f4cdf65 (patch)
treea41a8fbd6218800f38193458dd9ebc80a89457b3
parent731e07f1754527bfe537cba009f22f11da01d635 (diff)
downloadtinycc-bfb00494eb2ffaf4fbf68a8ecabe9e503f4cdf65.tar.gz
tinycc-bfb00494eb2ffaf4fbf68a8ecabe9e503f4cdf65.tar.bz2
Fix removal of vnrott
Make vrotb ST_FUNC so that arm-gen.c can use vrotb.
-rw-r--r--tcc.h1
-rw-r--r--tccgen.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/tcc.h b/tcc.h
index a53dd78..dde2832 100644
--- a/tcc.h
+++ b/tcc.h
@@ -1139,6 +1139,7 @@ ST_FUNC void vset(CType *type, int r, int v);
ST_FUNC void vswap(void);
ST_FUNC void vpush_global_sym(CType *type, int v);
ST_FUNC void vrott(int n);
+ST_FUNC void vrotb(int n);
#ifdef TCC_TARGET_ARM
ST_FUNC int get_reg_ex(int rc, int rc2);
ST_FUNC void lexpand_nr(void);
diff --git a/tccgen.c b/tccgen.c
index 9339b5f..5b9f50a 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -961,7 +961,7 @@ static void lbuild(int t)
/* rotate n first stack elements to the bottom
I1 ... In -> I2 ... In I1 [top is right]
*/
-static void vrotb(int n)
+ST_FUNC void vrotb(int n)
{
int i;
SValue tmp;