From: hubicka Date: Thu, 6 Nov 2003 09:00:33 +0000 (+0000) Subject: * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add X-Git-Tag: upstream/4.9.2~75497 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=442547e56d806eb75160754cb9755d56f62a512d;p=platform%2Fupstream%2Flinaro-gcc.git * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add missing casts. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73296 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd0789d..1fc4e77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-06 Jan Hubicka + + * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add + missing casts. + 2003-11-06 Zack Weinberg * genmodes.c: Change the word "bitsize" to "precision" throughout. diff --git a/gcc/builtins.c b/gcc/builtins.c index 23b0acf..7ff8789 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -2261,7 +2261,8 @@ expand_builtin_strstr (tree arglist, rtx target, enum machine_mode mode) /* Return an offset into the constant string argument. */ return expand_expr (fold (build (PLUS_EXPR, TREE_TYPE (s1), - s1, ssize_int (r - p1))), + s1, convert (TREE_TYPE (s1), + ssize_int (r - p1)))), target, mode, EXPAND_NORMAL); } @@ -2318,7 +2319,8 @@ expand_builtin_strchr (tree arglist, rtx target, enum machine_mode mode) /* Return an offset into the constant string argument. */ return expand_expr (fold (build (PLUS_EXPR, TREE_TYPE (s1), - s1, ssize_int (r - p1))), + s1, convert (TREE_TYPE (s1), + ssize_int (r - p1)))), target, mode, EXPAND_NORMAL); } @@ -2362,7 +2364,8 @@ expand_builtin_strrchr (tree arglist, rtx target, enum machine_mode mode) /* Return an offset into the constant string argument. */ return expand_expr (fold (build (PLUS_EXPR, TREE_TYPE (s1), - s1, ssize_int (r - p1))), + s1, convert (TREE_TYPE (s1), + ssize_int (r - p1)))), target, mode, EXPAND_NORMAL); } @@ -2408,7 +2411,8 @@ expand_builtin_strpbrk (tree arglist, rtx target, enum machine_mode mode) /* Return an offset into the constant string argument. */ return expand_expr (fold (build (PLUS_EXPR, TREE_TYPE (s1), - s1, ssize_int (r - p1))), + s1, convert (TREE_TYPE (s1), + ssize_int (r - p1)))), target, mode, EXPAND_NORMAL); }