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] Re: fold_builtin_memcpy cannot optimize <retval>? (take2)


Jakub Jelinek wrote:

Is this ok to commit then assuming bootstrap/regtest are ok?
Certainly cures the testcase.

+	case POINTER_TYPE:
+	  /* If no parameters remain or the parameter's code does not
+	     match the specified code, return false.  Otherwise continue
+	     checking any remaining arguments.  POINTER_TYPE is handled
+	     specially, because REFERENCE_TYPE should match it as well.  */
+	  if (arglist == 0
+	      || ! POINTER_TYPE_P (TREE_TYPE (TREE_VALUE (arglist))))
+	    goto end;
+	  break;

Just fold this into the "default" case. OK with that change.


Thanks,

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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