This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch expand_builtin_memmove: optimize any rodata source, not just strings


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]