[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #19050] gcrt1.S should call main rather than jumping
From: |
Joerg Wunsch |
Subject: |
[avr-libc-dev] [bug #19050] gcrt1.S should call main rather than jumping to it |
Date: |
Tue, 13 Feb 2007 12:29:03 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1) Gecko/20061208 Firefox/2.0 |
URL:
<http://savannah.nongnu.org/bugs/?19050>
Summary: gcrt1.S should call main rather than jumping to it
Project: AVR C Runtime Library
Submitted by: joerg_wunsch
Submitted on: Tuesday 02/13/2007 at 13:29
Category: Library
Severity: 4 - Important
Priority: 5 - Normal
Item Group: Startup code
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Now with GCC 4.x, main() is treated as a normal function. As
such, it must no longer be jumped to, but needs to be called
(with XCALL), and the value returned needs to be passed to
exit(). As the user can override exit() and thus implement
an exit() function that erroneously returns, we should
probably also supply an infinite loop in gcrt1.S that the
code falls into in case exit() ever returns -- much better
than having the program counter run into the wild.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?19050>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #19050] gcrt1.S should call main rather than jumping to it,
Joerg Wunsch <=
- [avr-libc-dev] [bug #19050] gcrt1.S should call main rather than jumping to it, Joerg Wunsch, 2007/02/13
- [avr-libc-dev] [bug #19050] gcrt1.S should call main rather than jumping to it, Anatoly Sokolov, 2007/02/13
- RE: [avr-libc-dev] [bug #19050] gcrt1.S should call main rather thanjumping to it, Eric Weddington, 2007/02/13
- Re: [avr-libc-dev] [bug #19050] gcrt1.S should call main rather thanjumping to it, Anatoly Sokolov, 2007/02/13
- RE: [avr-libc-dev] [bug #19050] gcrt1.S should call main rather thanjumping to it, Eric Weddington, 2007/02/13
- Re: [avr-libc-dev] [bug #19050] gcrt1.S should call main rather thanjumping to it, Joerg Wunsch, 2007/02/13
- RE: [avr-libc-dev] [bug #19050] gcrt1.S should call main rather thanjumping to it, Eric Weddington, 2007/02/13
- Re: [avr-libc-dev] [bug #19050] gcrt1.S should call main rather thanjumping to it, Anatoly Sokolov, 2007/02/13
- Re: [avr-libc-dev] [bug #19050] gcrt1.S should call main rather thanjumping to it, Björn Haase, 2007/02/13
- Re: [avr-libc-dev] [bug #19050] gcrt1.S should call main rather thanjumping to it, Joerg Wunsch, 2007/02/13