Ken Yap a écrit :
>
> >In "rtl_transmit", the variable nstype is updated only AFTER
> >the memcpy is done !
> >Moving the "nstype = htons(type)" far from the "memcpy" makes
> >the problem disappear.
>
> 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.
--
Jean-Jacques Michel mailto:jjm...@li...
Hardware Engineer - Linbox http://www.linbox.com
Technopôle Metz 2000 - 152 rue de Grigy - 57070 Metz - France
Tel : +33 (0)3 87 75 55 21 - Fax : +33 (0)3 87 75 19 26
|