Changeset 94ab166 in rtems


Ignore:
Timestamp:
11/20/01 18:22:35 (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
904e185
Parents:
82a48d0
Message:

2001-11-20 Joel Sherrill <joel@…>

  • src/threadhandler.c: When USEMAIN is defined by the toolset, invoke the global constructors via main. Reported as tested by Alexandra Kossovsky <sasha@…> and Victor V. Vengerov <vvv@…> in conjunction with a new set of tool RPMs (gcc2.95.3newlib1.9.0-3). This was tracked as GNATS PR tools/84.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/ChangeLog

    r82a48d0 r94ab166  
     12001-11-20      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/threadhandler.c: When __USE__MAIN__ is defined by the toolset,
     4        invoke the global constructors via __main.  Reported as tested by
     5        Alexandra Kossovsky <sasha@oktet.ru> and  Victor V. Vengerov
     6        <vvv@oktet.ru> in conjunction with a new set of tool RPMs
     7        (gcc2.95.3newlib1.9.0-3).  This was tracked as GNATS PR tools/84.
     8
    192001-11-07      Joel Sherrill <joel@OARcorp.com>
    210
  • c/src/exec/score/src/threadhandler.c

    r82a48d0 r94ab166  
    5959  ISR_Level  level;
    6060  Thread_Control *executing;
    61 #if defined(__USE_INIT_FINI__)
     61#if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__)
    6262  static char doneConstructors;
    6363  char doneCons;
     
    7474  _ISR_Set_level(level);
    7575
    76 #if defined(__USE_INIT_FINI__)
     76#if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__)
    7777  doneCons = doneConstructors;
    7878  doneConstructors = 1;
     
    9696    _init ();
    9797#endif
     98#if defined(__USE__MAIN__)
     99  if (!doneCons)
     100    __main ();
     101#endif
     102
    98103 
    99104  switch ( executing->Start.prototype ) {
  • cpukit/score/ChangeLog

    r82a48d0 r94ab166  
     12001-11-20      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/threadhandler.c: When __USE__MAIN__ is defined by the toolset,
     4        invoke the global constructors via __main.  Reported as tested by
     5        Alexandra Kossovsky <sasha@oktet.ru> and  Victor V. Vengerov
     6        <vvv@oktet.ru> in conjunction with a new set of tool RPMs
     7        (gcc2.95.3newlib1.9.0-3).  This was tracked as GNATS PR tools/84.
     8
    192001-11-07      Joel Sherrill <joel@OARcorp.com>
    210
  • cpukit/score/src/threadhandler.c

    r82a48d0 r94ab166  
    5959  ISR_Level  level;
    6060  Thread_Control *executing;
    61 #if defined(__USE_INIT_FINI__)
     61#if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__)
    6262  static char doneConstructors;
    6363  char doneCons;
     
    7474  _ISR_Set_level(level);
    7575
    76 #if defined(__USE_INIT_FINI__)
     76#if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__)
    7777  doneCons = doneConstructors;
    7878  doneConstructors = 1;
     
    9696    _init ();
    9797#endif
     98#if defined(__USE__MAIN__)
     99  if (!doneCons)
     100    __main ();
     101#endif
     102
    98103 
    99104  switch ( executing->Start.prototype ) {
Note: See TracChangeset for help on using the changeset viewer.