>> Ok, will patch, many thanks. Will you submit a gcc3 bug report?
>
>I don't really know if you can consider this as a GCC bug :
>
>If you work with a "char *ptr",
>there is nothing the compiler can know about *ptr when you use ptr
>as a parameter of a function.From my point of view, you cannot blame
>the compiler for this.
In fact the char* cast is unnecessary as the corresponding formal
argument is void* which is convertible from any pointer. So I removed
it. Does the bug still happen if you remove the char* cast? The other
thing is, it's not actually a function call but an inline function
expansion. So it looks like the compiler was confused.
|