removed some warnings
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 26 Jun 2001 11:57:26 +0000 (11:57 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 26 Jun 2001 11:57:26 +0000 (11:57 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@953 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/lib/Makefile.in
src/avr/gen.c

index 639d3bbeaf5bc249eeaeed22e49f1a486f8ff7f4..27942fc6bc97292c8041690930463aa9be6024e1 100644 (file)
@@ -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 \
index fe2a666f9e7b1c4ec7722cf052b1200206f935f6..c24c40103d1c5a3971e2992fabf1db91ff493a10 100644 (file)
@@ -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)                */
 /*-----------------------------------------------------------------*/