#84 closed enhancement (fixed)

__main ctor support for sh

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: normal Milestone: 2
Component: tool Version: unknown
Severity: minor Keywords:
Cc: bugs@… Blocked By:
Blocking:

Description

This is mostly a tool fix to add the predefine USEMAIN
to the sh and other targets using that C++ constructor
mechanism.

The mods to RTEMS are minor and mirror the call to init.

We do need to verify that it is safe to invoke main
twice.

Release:
CVS

Attachments (2)

__main_patch.diff (1.7 KB) - added by Joel Sherrill on Dec 3, 2006 at 1:31:13 PM.
main_patch.diff
threadhandler.diff (965 bytes) - added by Joel Sherrill on Dec 3, 2006 at 1:31:13 PM.
threadhandler.diff

Download all attachments as: .zip

Change History (2)

comment:1 Changed on Nov 20, 2001 at 5:36:00 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: analyzed->closed
State-Changed-Why: New RPMs (gcc2.95.3newlib1.9.0-3) and attached patch

allow sh-rtems which uses main to invoke the global
constructors just like
init does in the space of the
1st task begin execution. If other targets use main,
then they must be modified to have their cpp predefines
define
USEMAIN.

Changed on Dec 3, 2006 at 1:31:13 PM by Joel Sherrill

Attachment: threadhandler.diff added

threadhandler.diff

Note: See TracTickets for help on using tickets.