* src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 13 Aug 2003 20:10:57 +0000 (20:10 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 13 Aug 2003 20:10:57 +0000 (20:10 +0000)
commit909e288720dc2362fdce0ef27f6780dff3e49c81
tree0348e6d58536b7fd62d5e408878cc49edd96120a
parent42bb4cd0a911a487be95afc8e6dbffe3041cb824
* src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
* src/SDCCicode.c (operandOperation): rewritten some ops (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
* src/SDCCsymt.c (computeType): literals are handled the same way as any other type
* src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can be re-activated by defining REDUCE_LITERALS)
* src/SDCCval.c (constVal): fixed; hex and octal constants can be unsigned, but are signed by default
* src/SDCCval.c (constVal): rearranged
* src/SDCCval.c (valMod): preliminary fix
* src/SDCCval.c (valCastLiteral): use TYPE_* types
* support/regression/literalop.c: added, work in progress

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2825 4a8a32a2-be11-0410-ad9d-d568d2c75423
ChangeLog
src/SDCCcse.c
src/SDCCicode.c
src/SDCCsymt.c
src/SDCCval.c
support/regression/tests/literalop.c [new file with mode: 0644]