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:
parent
2198265a72
commit
93051e0f93
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user