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: bug fix for testsuite/gcc.c-torture/execute/memcpy-1.c


> You mean __PTRDIFF_TYPE__?

Can we rely on that being defined for all targets?

> > ! #define MEMCPY_SIZE (sizeof (char) << 17)
> 
> sizeof(char) is 1 by definition.

It has the value of 1, but a wider type.

> > ! void *copy (void *o, const void *i, unsigned ptrdiff_t l)
> 
> You mean size_t, ie __SIZE_TYPE__?

See above - can we rely on that being available?

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