From: maartenbrock Date: Tue, 20 Jul 2004 10:54:24 +0000 (+0000) Subject: * src/SDCCast.c (decorateType): removed buggy fix for bug #979599 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=02145445be0ebf42381575e10e0012235dd93422;p=fw%2Fsdcc * src/SDCCast.c (decorateType): removed buggy fix for bug #979599 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3386 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index f4bb390c..c4f0be8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-07-20 Maarten Brock + + * src/SDCCast.c (decorateType): removed buggy fix for bug #979599 + 2004-07-11 Maarten Brock * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah @@ -117,8 +121,8 @@ 2004-06-25 Frieder Ferlemann - * src/mcs51/peeph.def: added peepholes 182.d (return 0.0), - 256 (range check), 257 (do while), 258.a-f (bit banging + * src/mcs51/peeph.def: added peepholes 182.d (return 0.0), + 256 (range check), 257 (do while), 258.a-f (bit banging f.e. on 3-wire SPI bus) 2004-06-21 Erik Petrich @@ -190,7 +194,7 @@ * src/z80/ralloc.c (serialRegAssign), * src/ds390/ralloc.c (serialRegAssign), * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479 - + 2004-06-08 Erik Petrich * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601 @@ -215,7 +219,7 @@ command argument --denable-peeps, for testing, * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words, --pomit-ivt in COMPILE_FLAGS - + 2004-06-06 Maarten Brock * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails diff --git a/src/SDCCast.c b/src/SDCCast.c index 9e7d4fbb..7769a818 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -1216,7 +1216,7 @@ stringToSymbol (value * val) static int charLbl = 0; symbol *sym; set *sp; - int size; + unsigned int size; // have we heard this before? for (sp=statsg->syms; sp; sp=sp->next) { @@ -2594,15 +2594,6 @@ decorateType (ast * tree, RESULT_TYPE resultType) LRVAL (tree) = RRVAL (tree) = 1; - /* AND is signless so make signedness of literal equal */ - /* to signedness of left for better optimized code */ - if (IS_LITERAL (RTYPE (tree)) && - (getSize(LTYPE(tree)) == getSize(RTYPE(tree))) && - (SPEC_USIGN(LTYPE(tree)) != SPEC_USIGN(RTYPE(tree))) ) - { - SPEC_USIGN(RTYPE(tree)) = SPEC_USIGN(LTYPE(tree)); - } - TTYPE (tree) = computeType (LTYPE (tree), RTYPE (tree), resultType, @@ -2792,15 +2783,6 @@ decorateType (ast * tree, RESULT_TYPE resultType) } } - /* OR/XOR are signless so make signedness of literal equal */ - /* to signedness of left for better optimized code */ - if (IS_LITERAL (RTYPE (tree)) && - (getSize(LTYPE(tree)) == getSize(RTYPE(tree))) && - (SPEC_USIGN(LTYPE(tree)) != SPEC_USIGN(RTYPE(tree))) ) - { - SPEC_USIGN(RTYPE(tree)) = SPEC_USIGN(LTYPE(tree)); - } - LRVAL (tree) = RRVAL (tree) = 1; TTYPE (tree) = computeType (LTYPE (tree),