avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] Re: [bug #19050] gcrt1.S should call main rather than jum


From: Joerg Wunsch
Subject: [avr-libc-dev] Re: [bug #19050] gcrt1.S should call main rather than jumping to it
Date: Tue, 13 Feb 2007 23:41:08 +0100
User-agent: Mutt/1.5.11

As Anatoly Sokolov wrote:

> These changes should be reverted: 
> 
> -  if (main_p)
> -    {
> -      fprintf (file, ("\t" 
> -                   AS1 (ldi,r28) ",lo8(%s - " HOST_WIDE_INT_PRINT_DEC ")" 
> CR_TAB
> -                   AS1 (ldi,r29) ",hi8(%s - " HOST_WIDE_INT_PRINT_DEC ")" 
> CR_TAB
> -                   AS2 (out,__SP_H__,r29)     CR_TAB
> -                   AS2 (out,__SP_L__,r28) "\n"),
> -            avr_init_stack, size, avr_init_stack, size);
> -      
> -      prologue_size += 4;
> -    }
> -  else if (minimize && (frame_pointer_needed || live_seq > 6)) 
> +  if (minimize && (frame_pointer_needed || live_seq > 6)) 

That would restore the old (buggy) stack pointer initialization.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]