#452 closed defect (fixed)

USE_INIT_FINI obsolete?

Reported by: Ralf Corsepius Owned by: Joel Sherrill
Priority: normal Milestone: 2
Component: bsps Version: 4.6
Severity: major Keywords:
Cc: bugs@…, ralf.corsepius@… Blocked By:


Several issues with USE_INIT_FINI:

  1. Many BSPs append -DUSE_INIT_FINI to CPPFLAGS in their


A grep through the sources shows that not a single file inside of RTEMS applies USE_INIT_FINI.

=> Appending -DUSE_INIT_FINI in startup/Makefile.ams is meaningless

  1. Many startup/Makefile.ams contain this comment:

# USE_INIT_FINI tells main.c what C++ help we need.

IMO, this comment is wrong, because
a) USE_INIT_FINI is not used at all.
b) The relevant files would be
which apply USE_INIT_FINI (Note the underscores).

  1. The genmongoosev's and jmr3904's bsp_specs append -DUSE_INIT_FINI to their *cpp-specs, all other BSPs

rely on USE_INIT_FINI being provided by gcc.

RTEMS-4.6 + RTEMS-CVS-trunk

Change History (4)

comment:1 Changed on 08/11/03 at 12:31:04 by Joel Sherrill

Status: assignedwaiting

comment:2 Changed on 08/11/03 at 15:11:01 by Ralf Corsepius

Status: waitingsuspended

comment:3 Changed on 08/14/03 at 19:13:48 by Joel Sherrill

Status: suspendedwaiting

comment:4 Changed on 08/21/03 at 16:12:47 by Joel Sherrill

Status: waitingclosed

State-Changed-From-To: feedback->closed
State-Changed-Why: Patch alaready on trunk. I applied to the 4.6 branch.

Note: See TracTickets for help on using tickets.