RE: [Patch][AVR]: Support tail calls

2011-03-15 Thread Boyapati, Anitha
> >Boyapati, Anitha schrieb: > >> To be on same page, can you explain how gcc optimizes above case? > >in > >void bar0 (void); >int bar1 (int); > >int foo (int x) >{ >bar0(); >return bar1 (x); >} > >x must be saved somewhere. avr-g

RE: [Patch][AVR]: Support tail calls

2011-03-13 Thread Boyapati, Anitha
Hi Georg, >This is a patch to test/review/comment on. It adds tail call >optimization to avr backend. > >The implementation uses struct machine_function to pass information >around, i.e. from avr_function_arg_advance to avr_function_ok_for_sibcall. > >Tail call support is more general than avr-ld