Hello,

With SDCC rev9853, the bug 2198 (http://sourceforge.net/p/sdcc/bugs/2198/) can not be reproduced. The attached test.c (http://sourceforge.net/p/sdcc/bugs/2198/attachment/test.c) is not compiled into the expected

                                 89 ; genAssign
  000009 72 5Fu00u01      [ 1]   90     clr _count+1
  00000D 72 5Fu00u00      [ 1]   91     clr _count+0
                                 92 ;   gen/stm8/test/test.c: 30: callViaPtrAnsi(incCount);
                                 93 ; genIPush
  000011 4Br00            [ 1]   94     push    #<_incCount
  000013 4Bs00            [ 1]   95     push    #>_incCount
                                 96 ; genCall
  000015 CDr00r08         [ 4]   97     call    _callViaPtrAnsi
  000018 5B 02            [ 2]   98     addw    sp, #2


but actually

     000009                         67 _testBug:
                                    68 ;       b.c: 19: count = 0;
     000009 72 5Fu00u01      [ 1]   69         clr     _count+1
     00000D 72 5Fu00u00      [ 1]   70         clr     _count+0
                                    71 ;       b.c: 20: callViaPtrAnsi(incCount);
     000011 AEr00r00         [ 2]   72         ldw     x, #_incCount
     000014 89               [ 2]   73         pushw   x
     000015 CDr00r08         [ 4]   74         call    _callViaPtrAnsi
     000018 5B 02            [ 2]   75         addw    sp, #2
     00001A 81               [ 4]   76         ret

Seems OK ?

Ben