Re: Re: Stack and Function parameters alignment

2005-04-15 Thread Petar Penchev
p 0) ) ] " /*PUT_MODE(operands[0],HImode);*/ operands[0] = force_reg(HImode,operands[0]); " ) I tried to use force_reg or PUT_MODE but it does nothing and PUSH AL, inc S remain. May be the problem is that the mode of the operand is different in both sides of the peephole? On F

Stack and Function parameters alignment

2005-04-15 Thread Petar Penchev
] " operands[1] = gen_rtx(REG, HImode, A_HREG); " ) The asm code I expect this RTL to generate is PUSH A BUT instead of that it generates PUSH A ; stack is even INC S ; incorrect (the stack is ODD) What am I doing wrong ? Can somebody tell me how to solve this problem ? Regards Petar Penchev Software engineer