public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* what's required for builtin_memcpy to be inlined
@ 1999-09-08 19:21 Artur Skawina
  1999-09-08 19:35 ` Joe Buck
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: Artur Skawina @ 1999-09-08 19:21 UTC (permalink / raw)
  To: gcc

..other than constant size argument?

i used to have memcpy defined as

#define memcpy(t, f, n) \
(__builtin_constant_p(n) ? \
 __builtin_memcpy((t),(f),(n)) : \
 __memcpy((t),(f),(n)))

but this is apparently not enough, as it breaks for this construct
(from linux-2.3.17/fs/udf/namei.c):

> 		len = sizeof(struct FileIdentDesc);
> 
> 		if (len <= offset)
> 			memcpy((Uint8 *)sfi, (Uint8 *)cfi, len);


[gcc 2.95 19990716]

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~1999-09-30 18:02 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-08 19:21 what's required for builtin_memcpy to be inlined Artur Skawina
1999-09-08 19:35 ` Joe Buck
1999-09-09 14:39   ` Artur Skawina
1999-09-30 18:02     ` Artur Skawina
1999-09-30 18:02   ` Joe Buck
1999-09-09  1:47 ` Martin v. Loewis
1999-09-10  8:45   ` Jamie Lokier
1999-09-10 12:20     ` Richard Henderson
1999-09-10 15:33       ` Artur Skawina
1999-09-10 16:12         ` Richard Henderson
1999-09-13 10:31           ` Joern Rennecke
1999-09-13 12:01             ` Richard Henderson
1999-09-13 16:43               ` Joern Rennecke
1999-09-30 18:02                 ` Joern Rennecke
1999-09-30 18:02               ` Richard Henderson
1999-09-30 18:02             ` Joern Rennecke
1999-09-30 18:02           ` Richard Henderson
1999-09-30 18:02         ` Artur Skawina
1999-09-30 18:02       ` Richard Henderson
1999-09-10 13:47     ` Martin v. Loewis
1999-09-30 18:02       ` Martin v. Loewis
1999-09-30 18:02     ` Jamie Lokier
1999-09-30 18:02   ` Martin v. Loewis
1999-09-30 18:02 ` Artur Skawina

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).