movmemm pattern

Paul Koning Paul_Koning@dell.com
Mon Oct 25 15:26:00 GMT 2010


Question on movmemm:

Given

extern int *i, *j;
void foo (void) { memcpy (i, j, 10); }

I would expect to see argument 4 (the shared alignment) to be sizeof(int) since both argument are pointers to int.  What I get instead is 1.  Why is that?

If I have 

extern int i[10], j[10];

then I do get larger alignment as expected.

	paul



More information about the Gcc mailing list