Prefs:Printer - Add terrible hack for m68k
commit14c89d90bf457af8a71723f0823facc11648744d
authorjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 14 May 2013 02:59:51 +0000 (14 02:59 +0000)
committerjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 14 May 2013 02:59:51 +0000 (14 02:59 +0000)
tree1b2ae98cc6faa24f0c31f6af5af82f7a358dd2ec
parentfea589b547ff5564854bcbbc0c3bcb8615d84b35
Prefs:Printer - Add terrible hack for m68k

There is something terribly wrong with the assembly generated
here. If D() or bug() is not defined, the call to PopChunk()
after the if() clobbers the return value of WriteChunkBytes()
*before* the '== sizeof(head)' comparison.

I lack the time to fix gencall.c right now, so this will have
to suffice for now.

I have a sinking suspicion that many other silent clobbers like
this are occurring throughout the m68k codebase.

Signed-off-by: Jason S. McMullan <jason.mcmullan@gmail.com>
git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@47421 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
workbench/prefs/printer/prefs.c