git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2125
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
+ * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
+ * support/regression/tests/bug-524697.c: fit mem usage into 8032
+
2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
* src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
lcall _gptrgetc
} if xramMovcOption
+replace {
+ mov r%1,a
+ mov dpl,r%1
+%2:
+ ret
+} by {
+ ; Peephole 234 loading dpl directly from a(ccumulator)
+ mov dpl,a
+%2:
+ ret
+}
-
+replace {
+ mov r%1,a
+ mov dpl,r%2
+ mov dph,r%1
+%3:
+ ret
+} by {
+ ; Peephole 235 loading dph directly from a(ccumulator)
+ mov dpl,r%2
+ mov dph,a
+%3:
+ ret
+}
typedef struct _Foo
{
- char sz[100];
+ char sz[90];
} Foo;
typedef struct _Bar