I did some changes to SDCC, because I think they may be useful. If I remember correctely (about 1-2 years ago?), some of them were already discused as RFE.
Furthermore I added today a cosmetic change to src/SDCCmem.c in "printAllocInfoSeg" and "printAllocInfo" to omitt the unneccessary second trailing line in the listing.
All of the changes are in the attached "changes.dif" file
"diff" of all changes I made in the sources
Applied 2nd (src/SDCCopt.c) and 3rd part (src/SDCCmem.c) of patch in svn revision: #6666.
Maarten, can you please review and apply the 1st part (src/mcs51/gen.c) of the patch?
Borut
I've added a modified approach based on this patch for removing MOV PSW in SDCC 3.0.4 #6700.
Still have to look at the other parts in gen.c
Reverted (disabled) 2nd (src/SDCCopt.c) part of the patch in svn revision #8676. See #2165 Broken comparison.
Borut
Applied modified second part of src/mcs51/gen.c in [r9296].
Still have to look at the third part in gen.c.
The last part is already covered by genLiteralAssign(). So this no longer applies.