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]

Re: 9 bcopys (5 top dir, 4 cp dir), please help identify memmoves


"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:

|> cp/class.c:1220:	  bcopy ((PTR) &TREE_VEC_ELT (method_vec, 0),

This is clearly a memcpy.

|> cp/class.c:1259:	      bcopy ((PTR) &TREE_VEC_ELT (method_vec, slot),

And this one's a memmove.

|> cp/decl.c:3694:      bcopy ((char *) newdecl + sizeof (struct tree_common),
|> cp/decl.c:3732:      bcopy ((char *) newdecl + sizeof (struct tree_common),

Both are memcpy's.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


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