From: johanknol Date: Tue, 26 Jun 2001 11:57:26 +0000 (+0000) Subject: removed some warnings X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=4c2406aa9b2d5b4e9b9b3f72d336a4c0e7eb7add;p=fw%2Fsdcc removed some warnings git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@953 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index 639d3bbe..27942fc6 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -31,7 +31,7 @@ man2dir = $(mandir)/man2 infodir = @infodir@ srcdir = @srcdir@ -CPPFLAGS = -I$(INCDIR) +CPPFLAGS = -I$(INCDIR) -lang-c++ CFLAGS = OBJECTS = _atoi.rel _atol.rel _autobaud.rel _bp.rel _schar2fs.rel \ diff --git a/src/avr/gen.c b/src/avr/gen.c index fe2a666f..c24c4010 100644 --- a/src/avr/gen.c +++ b/src/avr/gen.c @@ -231,6 +231,26 @@ isLiteralBit (unsigned long lit) return idx + 1; return 0; } + +/*-----------------------------------------------------------------*/ +/* outAcc - output Acc */ +/*-----------------------------------------------------------------*/ +static void +outAcc (operand * result) +{ + int size, offset; + size = getDataSize (result); + if (size) { + aopPut (AOP (result), "r0", 0); + size--; + offset = 1; + /* unsigned or positive */ + while (size--) { + aopPut (AOP (result), zero, offset++); + } + } +} + #endif // End Unused code section /*-----------------------------------------------------------------*/ @@ -1197,25 +1217,6 @@ getDataSize (operand * op) return size; } -/*-----------------------------------------------------------------*/ -/* outAcc - output Acc */ -/*-----------------------------------------------------------------*/ -static void -outAcc (operand * result) -{ - int size, offset; - size = getDataSize (result); - if (size) { - aopPut (AOP (result), "r0", 0); - size--; - offset = 1; - /* unsigned or positive */ - while (size--) { - aopPut (AOP (result), zero, offset++); - } - } -} - /*-----------------------------------------------------------------*/ /* toBoolean - emit code for orl a,operator(sizeop) */ /*-----------------------------------------------------------------*/