2011/6/9 Georg-Johann Lay <a...@gjlay.de>: > This patch fixes a thinko in avr_function_arg_advance. > > Without the patch, following code will report false positive for > passing args in fixed regs like: > > error: Register r0 is needed to pass a parameter but is fixed > error: Register r1 is needed to pass a parameter but is fixed > > This is the code: > > typedef struct > { > char c[18]; > } S; > > typedef struct > { > char c[26]; > } T; > > char foo (S b, T a) > { > return b.c[9]; > } > > The patch also uses same constraint for cfun->machine->sibcall_fails > (even though it would not hut to have false positived there).
Approved. Denis.