builtins.c (expand_builtin_strncat): Remove redundant check for INTEGER_CST.

* builtins.c (expand_builtin_strncat): Remove redundant check for
	INTEGER_CST.

From-SVN: r49246
This commit is contained in:
Kaveh R. Ghazi 2002-01-26 14:47:12 +00:00 committed by Kaveh Ghazi
parent 2198265a72
commit 93051e0f93
2 changed files with 6 additions and 2 deletions

View 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

View 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. */