Changeset 513
- Timestamp:
- Aug 2, 2003, 11:13:25 AM (22 years ago)
- 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
to1.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. */ 6 4 7 5 extern int _CRT_init (void); … … 9 7 extern void __ctordtorTerm (void); 10 8 extern void __ehInitDLL (void); 11 /* #pragma weak __ehInitDLL - ld crashing on #pragma weak __ehInitDLL. */12 9 extern void __ehTermDLL (void); 13 /* #pragma weak __ehTermDLL - ld crashing on #pragma weak __ehTermDLL. */14 10 15 11 unsigned long _System _DLL_InitTerm (unsigned long mod_handle, unsigned long flag) … … 20 16 if (_CRT_init () != 0) 21 17 break; 22 /*if (__ehInitDLL)*/ 23 __ehInitDLL (); 18 __ehInitDLL (); 24 19 __ctordtorInit (); 25 20 return 1; 26 21 case 1: 27 22 __ctordtorTerm (); 28 /*if (__ehTermDLL)*/ 29 __ehTermDLL (); 23 __ehTermDLL (); 30 24 return 1; 31 25 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/config/i386/emx-eh.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r512 r513 6 6 extern void __register_frame_table (void *begin); 7 7 extern void __deregister_frame (void *begin); 8 extern int atexit(void (*f)()); 9 8 extern int atexit(void (*f)()); 10 9 11 10 /** Exception handler stuff init indicator. 0 means not inited, 1 means inited. */ 12 11 static int inited; 13 14 extern void __ehTermDLL (void);15 extern void __ehInitDLL (void);16 extern void __ehInit (void);17 static void __ehTerm (void);18 19 12 20 13 /** … … 46 39 } 47 40 48 49 41 /** 50 * atexit() procedure used pto terminate exception stuff in programs.42 * atexit() procedure used to terminate exception stuff in programs. 51 43 * Registered by __ehInit. 52 44 */ 53 45 static void __ehTerm (void) 54 46 { 55 __ehTermDLL ();47 __ehTermDLL (); 56 48 } 57 49 … … 65 57 { 66 58 atexit (__ehTerm); 67 __ehInitDLL ();59 __ehInitDLL (); 68 60 } 69 61 } 70 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/config/i386/emx.h
-
Property cvs2svn:cvs-rev
changed from
1.12
to1.13
r512 r513 253 253 * 254 254 * - S - P - E - C - S - 255 * - S - P - E - C - S -256 * - S - P - E - C - S -257 255 * 258 256 * -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/config/i386/xm-emx.h
-
Property cvs2svn:cvs-rev
changed from
1.7
to1.8
r512 r513 30 30 31 31 #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 37 36 #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 48 39 #undef PREFIX_INCLUDE_DIR 40 #undef TOOL_INCLUDE_DIR 49 41 #undef SYSTEM_INCLUDE_DIR 50 #undef TOOL_INCLUDE_DIR51 52 42 #endif /* not CROSS_COMPILE */ 53 43 … … 119 109 const char *arg [4]; \ 120 110 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"; \ 135 113 else if (!strcmp (argv [i], "-Zlinker")) \ 136 114 { \ … … 150 128 } \ 151 129 argv = new_argv; argc = new_argc; \ 152 EMX_INITIALIZE_ENVIRONMENT(2) 130 EMX_INITIALIZE_ENVIRONMENT(2) \ 153 131 } 154 132 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.