]> git.gag.com Git - fw/sdcc/commitdiff
* src/SDCCicode.c,
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 5 Oct 2003 19:54:28 +0000 (19:54 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 5 Oct 2003 19:54:28 +0000 (19:54 +0000)
* src/SDCCval.c: removed superflous test for pedantic

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2925 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCicode.c
src/SDCCval.c

index 2120cf3bd1e43f17b505ded728386fc28a31800b..e74a0fb284d719d01b17136b484b810cebc8e4ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,8 @@
        * clean.mk: fixed removal of files in bin/CVS/
        * device/lib/clean.mk: fixed removal of directories small and large
        * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
+       * src/SDCCicode.c,
+       * src/SDCCval.c: removed superflous test for pedantic
 
 2003-10-05  Borut Razem <borut.razem@siol.net>
 
index 960a6964ac563891238a9eaef7a24b8d8cce2946..eef790d2fe8894d1ed9b01ace2d8b18bcd465b3d 100644 (file)
@@ -1094,8 +1094,7 @@ operandOperation (operand * left, operand * right,
                               (TYPE_UWORD) operandLitValue (right);
 
              retval = operandFromValue (valCastLiteral (type, (TYPE_UWORD) ul));
-             if (!options.lessPedantic &&
-                 ul != (TYPE_UWORD) ul)
+             if (ul != (TYPE_UWORD) ul)
                werror (W_INT_OVL);
            }
          else /* signed int */
@@ -1105,8 +1104,7 @@ operandOperation (operand * left, operand * right,
                             (TYPE_WORD) operandLitValue (right);
 
              retval = operandFromValue (valCastLiteral (type, (TYPE_WORD) l));
-             if (!options.lessPedantic &&
-                 l != (TYPE_WORD) l)
+             if (l != (TYPE_WORD) l)
                werror (W_INT_OVL);
            }
        }
index fdb2c4be0a491999e3aedde062033bc193951a18..bdb88d300e48be6b2b988404feaa998da8b9209d 100644 (file)
@@ -1113,8 +1113,7 @@ valMult (value * lval, value * rval)
                        (TYPE_UWORD) floatFromVal (rval);
 
       SPEC_CVAL (val->type).v_uint = (TYPE_UWORD) ul;
-      if (!options.lessPedantic &&
-          ul != (TYPE_UWORD) ul)
+      if (ul != (TYPE_UWORD) ul)
         werror (W_INT_OVL);
     }
   else /* int */
@@ -1123,8 +1122,7 @@ valMult (value * lval, value * rval)
                      (TYPE_WORD) floatFromVal (rval);
 
       SPEC_CVAL (val->type).v_int = (TYPE_WORD) l;
-      if (!options.lessPedantic &&
-          l != (TYPE_WORD) l)
+      if (l != (TYPE_WORD) l)
         werror (W_INT_OVL);
     }
   return cheapestVal(val);