On Thu, Dec 15, 2011 at 2:41 PM, Amker.Cheng wrote:
> HI,
> I encountered a case with below codes:
>
> int data_0;
> int motion_test1(int data, int v)
> {
> int i;
> int t, u;
> int x;
>
> if (data)
> i = data_0 + x;
> else {
> v = 2;
>
Forgot the command line:
arm-none-eabi-gcc -O2 -mthumb -mcpu=cortex-m3 -S test.c -o test.S
-fdump-tree-all
gcc is comfigured as arm-non-eabi, but I think it's independent of target.
--
Best Regards.
HI,
I encountered a case with below codes:
int data_0;
int motion_test1(int data, int v)
{
int i;
int t, u;
int x;
if (data)
i = data_0 + x;
else {
v = 2;
i = 5;
}
t = data_0 + x;
u = i;