public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix tree-ssa-structalias.c bug with BUILT_IN_{MEM,ST}PCPY_CHK
@ 2011-06-30 10:12 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2011-06-30 10:12 UTC (permalink / raw)
  To: gcc-patches

Hi!

In my recent patch
http://gcc.gnu.org/ml/gcc-patches/2011-06/msg01609.html
I've missed a spot where it was special casing the builtins that
don't return their first argument, but instead of that return their
first argument plus something.

Fixed thusly, committed as obvious.

2011-06-30  Jakub Jelinek  <jakub@redhat.com>

	* tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
	handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.

--- gcc/tree-ssa-structalias.c	(revision 175681)
+++ gcc/tree-ssa-structalias.c	(working copy)
@@ -4014,7 +4014,9 @@ find_func_aliases_for_builtin_call (gimp
 	      get_constraint_for (res, &lhsc);
 	      if (DECL_FUNCTION_CODE (fndecl) == BUILT_IN_MEMPCPY
 		  || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_STPCPY
-		  || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_STPNCPY)
+		  || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_STPNCPY
+		  || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_MEMPCPY_CHK
+		  || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_STPCPY_CHK)
 		get_constraint_for_ptr_offset (dest, NULL_TREE, &rhsc);
 	      else
 		get_constraint_for (dest, &rhsc);

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-30  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-30 10:12 [PATCH] Fix tree-ssa-structalias.c bug with BUILT_IN_{MEM,ST}PCPY_CHK Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).