Changeset 3805


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

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

Location:
branches/libc-0.6/src/emx
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/include/emx/startup.h

    r2295 r3805  
    5050
    5151#define _CRT_EXIT1(fun) __asm__ (".stabs \"___crtexit1__\", 23, 0, 0, _" #fun);
     52 
     53#if __GNUC_PREREQ__(4,2)
     54# define CRT_DATA_USED __attribute__((__used__))
     55#else
     56# define CRT_DATA_USED
     57#endif
    5258
    5359extern char ** _org_environ;
  • branches/libc-0.6/src/emx/src/lib/app/stdio.c

    r2548 r3805  
    5353 * _CRT_init() via the __crtinit1__ set vector.
    5454 */
     55CRT_DATA_USED
    5556void _init_streams(void);
     57CRT_DATA_USED
    5658void _init_streams(void)
    5759{
     
    147149   print something.  (ISO 9899-1990 lets this undefined.) */
    148150
     151CRT_DATA_USED
    149152void _exit_streams(void);
     153CRT_DATA_USED
    150154void _exit_streams(void)
    151155{
  • branches/libc-0.6/src/emx/src/lib/io/_tmp.c

    r1454 r3805  
    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{
  • branches/libc-0.6/src/emx/src/lib/sys/DosEx.c

    r2260 r3805  
    172172 * Initialize the semaphore.
    173173 */
     174CRT_DATA_USED
    174175void dosexInit(void)
    175176{
  • branches/libc-0.6/src/emx/src/lib/sys/b_processWait.c

    r3775 r3805  
    163163 * wait facilities.
    164164 */
     165CRT_DATA_USED
    165166static void waitInit(void)
    166167{
     
    192193 * the _CRT_EXIT1() stuff isn't good enough alone.
    193194 */
     195CRT_DATA_USED
    194196void __libc_back_processWaitNotifyTerm(void)
    195197{
  • branches/libc-0.6/src/emx/src/lib/sys/libcfork.c

    r3795 r3805  
    4444#include <setjmp.h>
    4545#include <emx/syscalls.h>
     46#include <emx/startup.h>
    4647#include <386/builtin.h>
    4748#include <sys/fmutex.h>
     
    196197 */
    197198/* sequential */
     199CRT_DATA_USED
    198200static int                  forkParDo(void *pvForkRet, void *pvStackRet, __LIBC_PFORKXCPTREGREC pXcptRegRec);
    199201static int                  forkParCanFork(__LIBC_PFORKMODULE pModules);
     
    15251527 * This worker is called on after relocating the stack.
    15261528 */
     1529CRT_DATA_USED
    15271530int                  forkChlDoFork2(__LIBC_PFORKHANDLE pForkHandle)
    15281531{
  • branches/libc-0.6/src/emx/src/lib/sys/sharedpm.c

    r3795 r3805  
    20872087 * process structure very early in the LIBC init process.
    20882088 */
     2089CRT_DATA_USED
    20892090static void spmCrtInit1(void)
    20902091{
  • branches/libc-0.6/src/emx/src/lib/sys/timebomb.c

    r1661 r3805  
    3636#endif
    3737
     38CRT_DATA_USED
    3839void __libc_Timebomb(void)
    3940{
Note: See TracChangeset for help on using the changeset viewer.