Changeset 513


Ignore:
Timestamp:
Aug 2, 2003, 11:13:25 AM (22 years ago)
Author:
zap
Message:

Some fixes.

Location:
trunk/src/gcc/gcc/config/i386
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/gcc/config/i386/emx-dllinit.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r512 r513  
    1 /* This is the startup code for gcc.dll it should not be exposed to anyone
    2    else as we don't wanna have duplicate startup code around. The right
    3    startup code is in libc.
    4    
    5    */
     1/* This is the startup code for GCC version-specific runtime dll.
     2   It should not be exposed to anyone else as we don't wanna have
     3   duplicate startup code around. The right startup code is in libc. */
    64
    75extern int _CRT_init (void);
     
    97extern void __ctordtorTerm (void);
    108extern void __ehInitDLL (void);
    11 /* #pragma weak __ehInitDLL - ld crashing on #pragma weak __ehInitDLL. */
    129extern void __ehTermDLL (void);
    13 /* #pragma weak __ehTermDLL - ld crashing on #pragma weak __ehTermDLL. */
    1410
    1511unsigned long _System _DLL_InitTerm (unsigned long mod_handle, unsigned long flag)
     
    2016      if (_CRT_init () != 0)
    2117        break;
    22       /*if (__ehInitDLL)*/
    23         __ehInitDLL ();
     18      __ehInitDLL ();
    2419      __ctordtorInit ();
    2520      return 1;
    2621    case 1:
    2722      __ctordtorTerm ();
    28       /*if (__ehTermDLL)*/
    29         __ehTermDLL ();
     23      __ehTermDLL ();
    3024      return 1;
    3125  }
  • trunk/src/gcc/gcc/config/i386/emx-eh.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r512 r513  
    66extern void __register_frame_table (void *begin);
    77extern void __deregister_frame (void *begin);
    8 extern int  atexit(void (*f)());
    9 
     8extern int atexit(void (*f)());
    109
    1110/** Exception handler stuff init indicator. 0 means not inited, 1 means inited. */
    1211static int inited;
    13 
    14 extern void __ehTermDLL (void);
    15 extern void __ehInitDLL (void);
    16 extern void __ehInit (void);
    17 static void __ehTerm (void);
    18 
    1912
    2013/**
     
    4639}
    4740
    48 
    4941/**
    50  * atexit() procedure used pto terminate exception stuff in programs.
     42 * atexit() procedure used to terminate exception stuff in programs.
    5143 * Registered by __ehInit.
    5244 */
    5345static void __ehTerm (void)
    5446{
    55   __ehTermDLL();
     47  __ehTermDLL ();
    5648}
    5749
     
    6557    {
    6658      atexit (__ehTerm);
    67       __ehInitDLL();
     59      __ehInitDLL ();
    6860    }
    6961}
    70 
  • trunk/src/gcc/gcc/config/i386/emx.h

    • Property cvs2svn:cvs-rev changed from 1.12 to 1.13
    r512 r513  
    253253 *
    254254 *                            - S - P - E - C - S -
    255  *                            - S - P - E - C - S -
    256  *                            - S - P - E - C - S -
    257255 *
    258256 *
  • trunk/src/gcc/gcc/config/i386/xm-emx.h

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r512 r513  
    3030
    3131#ifndef CROSS_COMPILE
    32 
    33 #define TOOLDIR_BASE_PREFIX             "/gcc/"
    34 #define STANDARD_BINDIR_PREFIX          "/gcc/bin/"
    35 #define STANDARD_STARTFILE_PREFIX       "/gcc/lib/"
    36 #define STANDARD_EXEC_PREFIX            "/gcc/lib/gcc-lib/"
     32#undef LOCAL_INCLUDE_DIR
     33#undef CROSS_INCLUDE_DIR
     34#undef TOOL_INCLUDE_DIR
     35#undef STANDARD_INCLUDE_DIR
    3736#define STANDARD_INCLUDE_DIR            "/gcc/include/"
    38 #define STANDARD_INCLUDE_COMPONENT      "GCC"
    39 #define LOCAL_INCLUDE_DIR               "/gcc/local/include"
    40 #define LOCAL_INCLUDE_COMPONENT         "GCC"
    41 
    42 #define GCC_INCLUDE_DIR                 "/gcc/lib/gcc-lib/i386-pc-os2-emx/3.2.2/include"
    43 #define GPLUSPLUS_INCLUDE_DIR           "/gcc/include/c++/3.2.2"
    44 #define GPLUSPLUS_TOOL_INCLUDE_DIR      "/gcc/include/c++/3.2.2/i386-pc-os2-emx"
    45 #define GPLUSPLUS_BACKWARD_INCLUDE_DIR  "/gcc/include/c++/3.2.2/backward"
    46 
    47 #undef CROSS_INCLUDE_DIR
     37#define STANDARD_INCLUDE_COMPONENT      "GCC"
     38#undef LOCAL_INCLUDE_DIR
    4839#undef PREFIX_INCLUDE_DIR
     40#undef TOOL_INCLUDE_DIR
    4941#undef SYSTEM_INCLUDE_DIR
    50 #undef TOOL_INCLUDE_DIR
    51 
    5242#endif /* not CROSS_COMPILE */
    5343
     
    119109        const char *arg [4];                                                   \
    120110        arg [0] = argv [i];                                                    \
    121         if (!strcmp (argv [i], "-Zmts"))                                       \
    122           {                                                                    \
    123             arg [0] = "-Zmt";                                                  \
    124             arg [1] = "-static";                                               \
    125             arg_count = 2;                                                     \
    126           }                                                                    \
    127         else if (!strcmp (argv [i], "-Zmtd"))                                  \
    128           {                                                                    \
    129             arg [0] = "-Zmt";                                                  \
    130             arg [1] = "-Zcrtdll=c_dll";                                        \
    131             arg_count = 2;                                                     \
    132           }                                                                    \
    133         else if (!strcmp (argv [i], "-Zcrtdll"))                               \
    134             arg [0] = "-Zcrtdll=c_dll";                                        \
     111        if (!strcmp (argv [i], "-Zcrtdll"))                                    \
     112          arg [0] = "-Zcrtdll=c_dll";                                          \
    135113        else if (!strcmp (argv [i], "-Zlinker"))                               \
    136114          {                                                                    \
     
    150128      }                                                                        \
    151129    argv = new_argv; argc = new_argc;                                          \
    152     EMX_INITIALIZE_ENVIRONMENT(2)                                                      \
     130    EMX_INITIALIZE_ENVIRONMENT(2)                                              \
    153131  }
    154132
Note: See TracChangeset for help on using the changeset viewer.