From 7acf9aa86275a24b468786d6ea9f308ae33f011c Mon Sep 17 00:00:00 2001 From: grischka Date: Tue, 25 Apr 2017 21:01:54 +0200 Subject: final adjustments for release - configure/Makefiles: minor adjustments - build-tcc.bat: add -static to gcc options (avoids libgcc_s*.dll dependency with some mingw versions) - tccpe.c/tcctools.c: eliminate MAX_PATH (not available for cross compilers) - tccasm.c: use uint64_t/strtoull in unary() (unsigned long sometimes is only uint32_t, as always on windows) - tccgen.c: Revert (f077d16c) "tccgen: gen_cast: cast FLOAT to DOUBLE" Was a rather experimental, tentative commit, not really necessary and somewhat ugly too. - cleanup recent osx support: - Makefile/libtcc.c: cleanup copy&paste code - tccpp.c: restore deleted function --- tccgen.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'tccgen.c') diff --git a/tccgen.c b/tccgen.c index 4c5e4d6..2cdb4f1 100644 --- a/tccgen.c +++ b/tccgen.c @@ -906,10 +906,6 @@ ST_FUNC void save_reg_upstack(int r, int n) #else type = &int_type; #endif - if ((type->t & VT_BTYPE) == VT_FLOAT) { - /* cast to DOUBLE to avoid precision loss */ - type->t = (type->t & ~VT_BTYPE) | VT_DOUBLE; - } size = type_size(type, &align); loc = (loc - size) & -align; sv.type.t = type->t; @@ -2383,11 +2379,6 @@ static void gen_cast(CType *type) vpushi(0); gen_op(TOK_NE); } else { - if (sbt == VT_FLOAT) { - /* cast to DOUBLE to avoid precision loss */ - gen_cvt_ftof(VT_DOUBLE); - vtop->type.t = (vtop->type.t & ~VT_BTYPE) | VT_DOUBLE; - } /* we handle char/short/etc... with generic code */ if (dbt != (VT_INT | VT_UNSIGNED) && dbt != (VT_LLONG | VT_UNSIGNED) && -- cgit v1.3.1