Patch expand_builtin_memmove: optimize any rodata source, not just strings

Richard Henderson rth@redhat.com
Wed May 7 21:15:00 GMT 2003


On Wed, May 07, 2003 at 12:09:06AM -0400, Kaveh R. Ghazi wrote:
> +  if (IS_EXPR_CODE_CLASS(TREE_CODE_CLASS (TREE_CODE (exp))))
> +    switch (TREE_CODE (exp))
> +      {
> +      case ADDR_EXPR:
> +	return decl_readonly_section (TREE_OPERAND (exp, 0), 0);

That seems like an awfully complicated way to say

	TREE_CODE (exp) == ADDR_EXPR

The patch is otherwise ok.


r~



More information about the Gcc-patches mailing list