Changeset 3804 for trunk


Ignore:
Timestamp:
Feb 6, 2014, 12:31:35 PM (12 years ago)
Author:
Yuri Dario
Message:

Mark CRT_INIT/EXIT functions as used to try convince GCC to keep them.

Location:
trunk/libc
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/include/emx/startup.h

    r2807 r3804  
    6565#endif
    6666
     67#if __GNUC_PREREQ__(4,2)
     68# define CRT_DATA_USED __attribute__((__used__))
     69#else
     70# define CRT_DATA_USED
     71#endif
    6772
    6873
  • trunk/libc/src/kNIX/os2/DosEx.c

    r2929 r3804  
    160160 * Initialize the semaphore.
    161161 */
     162CRT_DATA_USED
    162163void dosexInit(void)
    163164{
  • trunk/libc/src/kNIX/os2/b_processWait.c

    r3775 r3804  
    144144 * wait facilities.
    145145 */
     146CRT_DATA_USED
    146147static void waitInit(void)
    147148{
     
    173174 * the _CRT_EXIT1() stuff isn't good enough alone.
    174175 */
     176CRT_DATA_USED
    175177void __libc_back_processWaitNotifyTerm(void)
    176178{
  • trunk/libc/src/kNIX/os2/libcfork.c

    r3796 r3804  
    749749 * @param   pXcptRegRec     Pointer to the exception registration record (fDoneCompletion).
    750750 */
     751CRT_DATA_USED
    751752static int forkParDo(void *pvForkRet, void *pvStackRet, __LIBC_PFORKXCPTREGREC pXcptRegRec)
    752753{
     
    14881489 * This worker is called on after relocating the stack.
    14891490 */
     1491CRT_DATA_USED
    14901492int                  forkChlDoFork2(__LIBC_PFORKHANDLE pForkHandle)
    14911493{
  • trunk/libc/src/kNIX/os2/tcpipver.c

    r3632 r3804  
    13501350 * Init function which registers the tcpip cleanup handler with the exit list.
    13511351 */
     1352CRT_DATA_USED
    13521353static void tcpipInit(void)
    13531354{
  • trunk/libc/src/kNIX/os2/timebomb.c

    r2929 r3804  
    3232#endif
    3333
     34CRT_DATA_USED
    3435void __libc_Timebomb(void)
    3536{
  • trunk/libc/src/libc/app/stdio.c

    r2739 r3804  
    5353 * _CRT_init() via the __crtinit1__ set vector.
    5454 */
     55CRT_DATA_USED
    5556void _init_streams(void);
     57CRT_DATA_USED
    5658void _init_streams(void)
    5759{
     
    152154   print something.  (ISO 9899-1990 lets this undefined.) */
    153155
     156CRT_DATA_USED
    154157void _exit_streams(void);
     158CRT_DATA_USED
    155159void _exit_streams(void)
    156160{
  • trunk/libc/src/libc/io/_tmp.c

    r1454 r3804  
    2626/** Initialize the semaphore -- this function will be called by
    2727   _CRT_init() via the __crtinit1__ set vector. */
     28CRT_DATA_USED
    2829static void _init1_tmp(void)
    2930{
Note: See TracChangeset for help on using the changeset viewer.