> -----Original Message----- > From: Anatoly Sokolov [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 13, 2007 11:32 AM > To: Eric Weddington; 'Joerg Wunsch'; Joerg Wunsch; > [email protected] > Subject: Re: [avr-libc-dev] [bug #19050] gcrt1.S should call > main rather thanjumping to it > > ----- Original Message ----- > From: "Eric Weddington" <[EMAIL PROTECTED]> > Sent: Tuesday, February 13, 2007 8:35 PM > Subject: RE: [avr-libc-dev] [bug #19050] gcrt1.S should call > main rather > thanjumping to it > > > > > You make some very good points. Unfortunately, main() is > already converted > > over to a normal function in gcc 4.x. Do you propose that > we convert it > > back? > > No. In oficial GCC 4.x main() do not converted to a normal function. > 'atmega256' patch does it. > > > Can someone remember what was the reasoning behind making > main() a normal > > function? Is the reason still valid? > > Marek suggested to make main() a normal function, for simplification > transitions to RTL prologues/epilogues: > https://savannah.nongnu.org/task/?4355 > > I sent a patch to use RTL prologues/epilogues in GCC two > months ago. 'main' > function is processed separately, to be called with XJMP. > Marek reason do > not valid.
Ah! Thank you for making this clear. Joerg, what do you think of this? Time to revisit the atmega256x patch? Eric _______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
