Ken Yap a écrit :
> 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?
Still happens without the cast (char*).
> The other
> thing is, it's not actually a function call but an inline function
> expansion. So it looks like the compiler was confused.
To be safe, an alternative would be to use : "*(unsigned
short)(tx....)=nstype;"
I also had a look at the objdump output of "tulip.c" which use a similar
construction
and it looks OK without any change. This is really optimisation
dependant !
Nearly time to quit, TGIF ;-) ,
Have a nice week-end,
--
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
|