OSDN Git Service

* builtins.c (expand_builtin_strncat): Remove redundant check for
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jan 2002 14:47:12 +0000 (14:47 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jan 2002 14:47:12 +0000 (14:47 +0000)
INTEGER_CST.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49246 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/builtins.c

index 560d6e6..3afa3ac 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * builtins.c (expand_builtin_strncat): Remove redundant check for
+       INTEGER_CST.
+
 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
 
        * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
index 0747806..e3adb05 100644 (file)
@@ -2608,8 +2608,7 @@ expand_builtin_strncat (arglist, target, mode)
 
       /* If the requested length is zero, or the src parameter string
           length is zero, return the dst parameter.  */
-      if ((TREE_CODE (len) == INTEGER_CST && integer_zerop (len))
-         || (p && *p == '\0'))
+      if (integer_zerop (len) || (p && *p == '\0'))
         {
          /* Evaluate and ignore the src and len parameters in case
             they have side-effects.  */