[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] bug !

From: Kang Tin LAI
Subject: Re: [avr-gcc-list] bug !
Date: Mon, 13 Aug 2001 23:33:51 +0800

"Very sorry" (The US Government said that to The China Government :) to
disturb the list, it was a logic failure of my brain. I forgot that
pointer is also passed by value in this case, not reference. I want to
copy something pointed by m2 to a location pointed by m1, so m1 should
be a pointer to pointer, it is OK now.

I surprise for all people here their responses, the list is quite silent
these days.

Kang Tin LAI wrote:
> void fxn(void *m1, void *m2)
> {
>         m1 = m2;
> }
> -O1 -O2 -O3 or -Os except -O0
> The only generated code is: ret
> Any idea?
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]