Commit 668f73d4 by Jan Hubicka Committed by Jan Hubicka

builtins.c (simplify_builtin_strrchr, [...]): Add missing casts.

	* builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
	missing casts.

From-SVN: r73296
parent 37783865
2003-11-06 Jan Hubicka <jh@suse.cz>
* builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
missing casts.
2003-11-06 Zack Weinberg <zack@codesourcery.com> 2003-11-06 Zack Weinberg <zack@codesourcery.com>
* genmodes.c: Change the word "bitsize" to "precision" throughout. * genmodes.c: Change the word "bitsize" to "precision" throughout.
......
...@@ -2261,7 +2261,8 @@ expand_builtin_strstr (tree arglist, rtx target, enum machine_mode mode) ...@@ -2261,7 +2261,8 @@ expand_builtin_strstr (tree arglist, rtx target, enum machine_mode mode)
/* Return an offset into the constant string argument. */ /* Return an offset into the constant string argument. */
return expand_expr (fold (build (PLUS_EXPR, TREE_TYPE (s1), 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); target, mode, EXPAND_NORMAL);
} }
...@@ -2318,7 +2319,8 @@ expand_builtin_strchr (tree arglist, rtx target, enum machine_mode mode) ...@@ -2318,7 +2319,8 @@ expand_builtin_strchr (tree arglist, rtx target, enum machine_mode mode)
/* Return an offset into the constant string argument. */ /* Return an offset into the constant string argument. */
return expand_expr (fold (build (PLUS_EXPR, TREE_TYPE (s1), 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); target, mode, EXPAND_NORMAL);
} }
...@@ -2362,7 +2364,8 @@ expand_builtin_strrchr (tree arglist, rtx target, enum machine_mode mode) ...@@ -2362,7 +2364,8 @@ expand_builtin_strrchr (tree arglist, rtx target, enum machine_mode mode)
/* Return an offset into the constant string argument. */ /* Return an offset into the constant string argument. */
return expand_expr (fold (build (PLUS_EXPR, TREE_TYPE (s1), 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); target, mode, EXPAND_NORMAL);
} }
...@@ -2408,7 +2411,8 @@ expand_builtin_strpbrk (tree arglist, rtx target, enum machine_mode mode) ...@@ -2408,7 +2411,8 @@ expand_builtin_strpbrk (tree arglist, rtx target, enum machine_mode mode)
/* Return an offset into the constant string argument. */ /* Return an offset into the constant string argument. */
return expand_expr (fold (build (PLUS_EXPR, TREE_TYPE (s1), 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); target, mode, EXPAND_NORMAL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment