Changeset 9
- Timestamp:
- Apr 16, 2003, 4:03:38 PM (22 years ago)
- Location:
- trunk/src/gcc
- Files:
-
- 24 added
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gcc/configure.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 245 245 *-*-sysv*) 246 246 host_makefile_frag="${host_makefile_frag} config/mh-sysv" 247 ;; 248 i[3456]86-*-os2*) 249 host_makefile_frag="${host_makefile_frag} config/mh-emx" 247 250 ;; 248 251 esac -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/Makefile.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 590 590 # of HOST_CFLAGS in build-make to match. 591 591 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) \ 592 $(CFLAGS) $(WARN_CFLAGS) $(XCFLAGS) @DEFS@592 $(CFLAGS) $(WARN_CFLAGS) $(XCFLAGS) $(CLH_CFLAGS) @DEFS@ 593 593 594 594 # Likewise. … … 620 620 HOST_PRINT = $(HOST_PREFIX)print-rtl.o 621 621 HOST_ERRORS = $(HOST_PREFIX)errors.o 622 623 # This gets linked into gcc if command-line help was enabled 624 CLH_LIBS = @gcc_clh_libs@ 625 # These definitions enables --help for gcc 626 CLH_CFLAGS = @gcc_clh_cflags@ 627 CLH_GCC = @gcc_clh_gcc@ 628 CLH_CPP = @gcc_clh_cpp@ 629 CLH_G77 = @gcc_clh_g77@ 630 CLH_GCJ = @gcc_clh_gcj@ 622 631 623 632 # Specify the directories to be searched for header files. … … 944 953 # and CC is `gcc'. It is renamed to `gcc' when it is installed. 945 954 xgcc$(exeext): gcc.o gccspec.o version.o intl.o prefix.o \ 946 version.o $(LIBDEPS) $(EXTRA_GCC_OBJS) 955 version.o $(LIBDEPS) $(EXTRA_GCC_OBJS) $(CLH_GCC) 947 956 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o gccspec.o intl.o \ 948 prefix.o version.o $(EXTRA_GCC_OBJS) $( LIBS)957 prefix.o version.o $(EXTRA_GCC_OBJS) $(CLH_GCC) $(LIBS) 949 958 950 959 # cpp is to cpp0 as gcc is to cc1. … … 952 961 # instead of gccspec.o. 953 962 cpp$(exeext): gcc.o cppspec.o version.o intl.o prefix.o \ 954 version.o $(LIBDEPS) $(EXTRA_GCC_OBJS) 963 version.o $(LIBDEPS) $(EXTRA_GCC_OBJS) $(CLH_CPP) 955 964 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o cppspec.o intl.o \ 956 prefix.o version.o $(EXTRA_GCC_OBJS) $( LIBS)965 prefix.o version.o $(EXTRA_GCC_OBJS) $(CLH_CPP) $(LIBS) 957 966 958 967 # Dump a specs file to make -B./ read these specs over installed ones. … … 1623 1632 halfpic.o: halfpic.c $(CONFIG_H) $(RTL_H) $(TREE_H) $(SYSTEM_H) halfpic.h 1624 1633 1634 clh.o: clh.c $(CONFIG_H) 1635 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 1636 -c `echo $(srcdir)/clh.c | sed 's,^\./,,'` 1637 1638 clh_gcc.c: doc/invoke.texi mkoptdesc.sh 1639 ./mkoptdesc.sh doc/invoke.texi gcc > clh_gcc.c 1640 1641 clh_cpp.c: doc/invoke.texi mkoptdesc.sh 1642 ./mkoptdesc.sh doc/invoke.texi cpp > clh_cpp.c 1643 1625 1644 # 1626 1645 … … 2741 2760 RANLIB_FOR_TARGET="$$r_f_t" \ 2742 2761 DESTDIR="$(DESTDIR)" \ 2762 DESTDIR="$(DESTDIR)" \ 2743 2763 libsubdir="$(libsubdir)" \ 2744 2764 slibdir="$(slibdir)" \ … … 2767 2787 INSTALL_DATA="$(INSTALL_DATA)" \ 2768 2788 RANLIB_FOR_TARGET="$$r_f_t" \ 2769 DESTDIR="$(DESTDIR)" \2770 2789 libsubdir="$(libsubdir)" \ 2771 2790 slibdir="$(slibdir)" \ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/config.gcc
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 1578 1578 fi 1579 1579 ;; 1580 i*86-pc-*emx) # i?86 running OS/2 1581 xm_file=i386/xm-emx.h 1582 tm_file=i386/emx.h 1583 extra_objs=emx.o 1584 xm_defines="USG BSTRING NO_SYS_SIGLIST" 1585 exeext=.exe 1586 tmake_file=i386/t-emx 1587 fixincludes=Makefile.in 1588 target_alias=${host} 1589 CFLAGS="-Zstack 1024 -Zcrtdll" 1590 if test x$enable_threads = xyes; then 1591 thread_file=os2 1592 fi 1593 gas=yes 1594 gnu_ld=yes 1595 ;; 1580 1596 i[34567]86-*-interix*) 1581 1597 tm_file="i386/i386-interix.h interix.h" -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/config/i386/i386.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 629 629 const char *ix86_align_jumps_string; 630 630 631 /* Power of two alignment for constant strings in bytes. */ 632 const char *ix86_align_constr_string; 633 631 634 /* Power of two alignment for stack boundary in bytes. */ 632 635 const char *ix86_preferred_stack_boundary_string; … … 641 644 /* Power of two alignment for functions. */ 642 645 const char *ix86_align_funcs_string; 646 647 /* Power of two alignment for constant strings. */ 648 int ix86_align_constr; 643 649 644 650 /* Prefix built by ASM_GENERATE_INTERNAL_LABEL. */ … … 852 858 const int align_jump_max_skip; 853 859 const int align_func; 860 const int align_constr; 854 861 const int branch_cost; 855 862 } 856 863 const processor_target_table[PROCESSOR_max] = 857 864 { 858 {&i386_cost, 0, 0, 4, 3, 4, 3, 4, 1},859 {&i486_cost, 0, 0, 16, 15, 16, 15, 16, 1},860 {&pentium_cost, 0, 0, 16, 7, 16, 7, 16, 1},861 {&pentiumpro_cost, 0, 0, 16, 15, 16, 7, 16, 1},862 {&k6_cost, 0, 0, 32, 7, 32, 7, 32, 1},863 {&athlon_cost, 0, 0, 16, 7, 64, 7, 16, 1},864 {&pentium4_cost, 0, 0, 0, 0, 0, 0, 0, 1}865 {&i386_cost, 0, 0, 4, 3, 4, 3, 4, 2, 1}, 866 {&i486_cost, 0, 0, 16, 15, 16, 15, 16, 2, 1}, 867 {&pentium_cost, 0, 0, 16, 7, 16, 7, 16, 5, 1}, 868 {&pentiumpro_cost, 0, 0, 16, 15, 16, 7, 16, 5, 1}, 869 {&k6_cost, 0, 0, 32, 7, 32, 7, 32, 5, 1}, 870 {&athlon_cost, 0, 0, 16, 7, 64, 7, 16, 5, 1}, 871 {&pentium4_cost, 0, 0, 0, 0, 0, 0, 0, 0, 1} 865 872 }; 866 873 … … 1123 1130 } 1124 1131 1132 /* Validate -malign-strings= value, or provide default. */ 1133 ix86_align_constr = processor_target_table[ix86_cpu].align_constr; 1134 if (ix86_align_constr_string) 1135 { 1136 i = atoi (ix86_align_constr_string); 1137 if (i < 0 || i > MAX_CODE_ALIGN) 1138 error ("-malign-strings=%d is not between 0 and %d", i, MAX_CODE_ALIGN); 1139 else 1140 ix86_align_constr = i; 1141 } 1142 1125 1143 /* Validate -mbranch-cost= value, or provide default. */ 1126 1144 ix86_branch_cost = processor_target_table[ix86_cpu].branch_cost; … … 1267 1285 { "shared", 0, 0, true, false, false, ix86_handle_shared_attribute }, 1268 1286 #endif 1287 #ifdef EMX 1288 { "system", 0, 0, false, true, true, ix86_handle_cdecl_attribute }, 1289 { "optlink", 0, 0, false, true, true, ix86_handle_optlink_attribute }, 1290 #endif 1269 1291 { NULL, 0, 0, false, false, false, NULL } 1270 1292 }; … … 1583 1605 if (attr) 1584 1606 cum->nregs = TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (attr))); 1607 #ifdef EMX 1608 if (lookup_attribute ("optlink", TYPE_ATTRIBUTES (fntype))) 1609 { 1610 cum->nregs = 3; cum->optlink = 1; 1611 } 1612 #endif /* EMX */ 1585 1613 } 1586 1614 cum->maybe_vaarg = false; … … 2176 2204 { 2177 2205 cum->words += words; 2206 #ifdef EMX 2207 if (cum->optlink && mode == BLKmode) 2208 return; /* Skip aggregates */ 2209 #endif /* EMX */ 2178 2210 cum->nregs -= words; 2179 2211 cum->regno += words; … … 2240 2272 2241 2273 case BLKmode: 2274 #ifdef EMX 2275 if (cum->optlink) 2276 break; 2277 /* fall through */ 2278 #endif /* EMX */ 2242 2279 case DImode: 2243 2280 case SImode: … … 2245 2282 case QImode: 2246 2283 if (words <= cum->nregs) 2284 #ifdef EMX 2285 if (cum->optlink) 2286 { 2287 ret = gen_rtx (PARALLEL, mode, rtvec_alloc (2)); 2288 XVECEXP (ret, 0, 0) = gen_rtx (EXPR_LIST, VOIDmode, 2289 NULL_RTX, const0_rtx); 2290 XVECEXP (ret, 0, 1) = gen_rtx (EXPR_LIST, VOIDmode, 2291 gen_rtx (REG, mode, cum->regno), 2292 const0_rtx); 2293 } 2294 else 2295 #endif /* EMX */ 2247 2296 ret = gen_rtx_REG (mode, cum->regno); 2248 2297 break; … … 2259 2308 words, cum->words, cum->nregs, GET_MODE_NAME (mode), named); 2260 2309 2310 #ifdef EMX 2311 if (ret && GET_CODE (ret) == PARALLEL) 2312 fprintf (stderr, ", stack/reg=%%e%s", 2313 reg_names[ REGNO(XEXP (XVECEXP (ret, 0, 1), 0))]); 2314 else 2315 #endif /* EMX */ 2261 2316 if (ret) 2262 2317 fprintf (stderr, ", reg=%%e%s", reg_names[ REGNO (ret) ]); … … 3673 3728 struct ix86_frame frame; 3674 3729 3730 #ifdef EMX 3731 if (TARGET_EPILOGUE) 3732 return 0; 3733 #endif /* EMX */ 3675 3734 #ifdef NON_SAVING_SETJMP 3676 3735 if (NON_SAVING_SETJMP && current_function_calls_setjmp) … … 10764 10823 } 10765 10824 else if (TREE_CODE (exp) == STRING_CST && TREE_STRING_LENGTH (exp) >= 31 10766 && align < 256)10767 return 256;10825 && !optimize_size && align < (8 << ix86_align_constr)) 10826 return 8 << ix86_align_constr; 10768 10827 10769 10828 return align; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/config/i386/i386.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 439 439 { "align-functions=", &ix86_align_funcs_string, \ 440 440 N_("Function starts are aligned to this power of 2") }, \ 441 { "align-strings=", &ix86_align_constr_string, \ 442 N_("Constant strings are aligned to this power of 2") }, \ 441 443 { "preferred-stack-boundary=", \ 442 444 &ix86_preferred_stack_boundary_string, \ … … 1689 1691 int sse_regno; /* next available sse register number */ 1690 1692 int maybe_vaarg; /* true for calls to possibly vardic fncts. */ 1693 #ifdef EMX 1694 int optlink; /* nonzero if optlink (vs. regparm) */ 1695 #endif /* EMX */ 1691 1696 } CUMULATIVE_ARGS; 1692 1697 … … 3160 3165 extern const char *ix86_align_jumps_string; /* power of two alignment for non-loop jumps */ 3161 3166 extern const char *ix86_align_funcs_string; /* power of two alignment for functions */ 3167 extern const char *ix86_align_constr_string; /* power of two alignment for constant strings */ 3162 3168 extern const char *ix86_preferred_stack_boundary_string;/* power of two alignment for stack boundary */ 3163 3169 extern const char *ix86_branch_cost_string; /* values 1-5: see jump.c */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/configure.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 343 343 ], [enable_shared=yes]) 344 344 AC_SUBST(enable_shared) 345 346 # Enable command-line help 347 AC_ARG_ENABLE(clh, 348 [ --enable-clh enable GCC command-line help (+~90K executable!)]) 345 349 346 350 # Determine the host, build, and target systems … … 2113 2117 .4byte 0 2114 2118 EOF 2115 if ($gcc_cv_as -o conftest.o conftest.s; exit $?) 1>&AC_FD_CC 2>&1; then2116 if ($gcc_cv_ld --eh-frame-hdr -shared -o conftest.so conftest.o; exit $?) 1>&AC_FD_CC 2>&1; then2117 changequote(,)dnl2118 if $gcc_cv_objdump -h conftest.so 2>&AC_FD_CC \2119 | grep 'eh_frame_hdr[ ]*0*[01][048cC][ ]' 1>&AC_FD_CC 2>&1; then2120 gcc_cv_ld_eh_frame_hdr_works=yes; break2121 else2122 $gcc_cv_objdump -h conftest.so 2>/dev/null | grep eh_frame_hdr 1>&AC_FD_CC 2>&12123 fi2124 changequote([,])dnl2119 dnl if ($gcc_cv_as -o conftest.o conftest.s; exit $?) 1>&AC_FD_CC 2>&1; then 2120 dnl if ($gcc_cv_ld --eh-frame-hdr -shared -o conftest.so conftest.o; exit $?) 1>&AC_FD_CC 2>&1; then 2121 dnl changequote(,)dnl 2122 dnl if $gcc_cv_objdump -h conftest.so 2>&AC_FD_CC \ 2123 dnl | grep 'eh_frame_hdr[ ]*0*[01][048cC][ ]' 1>&AC_FD_CC 2>&1; then 2124 dnl gcc_cv_ld_eh_frame_hdr_works=yes; break 2125 dnl else 2126 dnl $gcc_cv_objdump -h conftest.so 2>/dev/null | grep eh_frame_hdr 1>&AC_FD_CC 2>&1 2127 dnl fi 2128 dnl changequote([,])dnl 2125 2129 fi 2126 2130 fi … … 2491 2495 AC_SUBST(objdir) 2492 2496 2497 # Test if command-line help was enabled 2498 if [[ "x${enable_clh}" = xyes ]]; then 2499 echo "Including GCC Command-Line Help" 2500 host_extra_gcc_objs="$host_extra_gcc_objs clh${objext}" 2501 gcc_clh_libs=-ltermcap 2502 gcc_clh_cflags=-DCLH 2503 gcc_clh_gcc="clh_gcc"${objext} 2504 gcc_clh_cpp="clh_cpp"${objext} 2505 gcc_clh_g77="clh_g77"${objext} 2506 gcc_clh_gcj="clh_gcj"${objext} 2507 fi 2508 2493 2509 # Process the language and host/target makefile fragments. 2494 2510 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" … … 2524 2540 AC_SUBST(gcc_version_full) 2525 2541 AC_SUBST(gcc_version_trigger) 2542 AC_SUBST(gcc_clh_libs) 2543 AC_SUBST(gcc_clh_cflags) 2544 AC_SUBST(gcc_clh_gcc) 2545 AC_SUBST(gcc_clh_cpp) 2546 AC_SUBST(gcc_clh_g77) 2547 AC_SUBST(gcc_clh_gcj) 2526 2548 AC_SUBST(host_exeext) 2527 2549 AC_SUBST(host_extra_gcc_objs) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/cp/Make-lang.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 73 73 74 74 # Create the compiler driver for g++. 75 GXX_OBJS = gcc.o g++spec.o intl.o prefix.o version.o 76 g++$(exeext): $(GXX_OBJS) $(EXTRA_GCC_OBJS) $( LIBDEPS)75 GXX_OBJS = gcc.o g++spec.o intl.o prefix.o version.o 76 g++$(exeext): $(GXX_OBJS) $(EXTRA_GCC_OBJS) $(CLH_GCC) $(LIBDEPS) 77 77 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \ 78 $(GXX_OBJS) $(EXTRA_GCC_OBJS) $( LIBS)78 $(GXX_OBJS) $(EXTRA_GCC_OBJS) $(CLH_GCC) $(LIBS) 79 79 80 80 # Create a version of the g++ driver which calls the cross-compiler. -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/cppinit.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 44 44 # define INO_T_COPY(DEST, SRC) memcpy(&(DEST), &(SRC), sizeof (SRC)) 45 45 #else 46 # if (defined _WIN32 && ! defined (_UWIN)) || defined __MSDOS__ 46 # if (defined _WIN32 && ! defined (_UWIN)) || defined __MSDOS__ || defined __EMX__ 47 47 # define INO_T_EQ(A, B) 0 48 48 # else … … 655 655 return result; 656 656 } 657 658 657 659 658 /* This structure defines one built-in identifier. A node will be -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/cppmain.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 75 75 char **argv; 76 76 { 77 #ifdef COMPILER_HOST_INITIALIZATION 78 /* Perform host dependant initialization when needed. */ 79 COMPILER_HOST_INITIALIZATION; 80 #endif 81 77 82 general_init (argv[0]); 78 83 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/doc/invoke.texi
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 2362 2362 @item -W 2363 2363 @opindex W 2364 Print extra warning messages for these events:2364 Print extra warning messages. The following events will produce warnings: 2365 2365 2366 2366 @itemize @bullet … … 3804 3804 @opindex fbranch-probabilities 3805 3805 After running a program compiled with @option{-fprofile-arcs} 3806 (@pxref{Debugging Options,, Options for Debugging Your Program or 3807 @command{gcc}}),you can compile it a second time using3806 (@pxref{Debugging Options,, Options for Debugging Your Program or @command{gcc}}), 3807 you can compile it a second time using 3808 3808 @option{-fbranch-probabilities}, to improve optimizations based on 3809 3809 the number of times each branch was taken. When the program … … 10199 10199 compiler will use mblen and mbtowc as defined by the default locale to 10200 10200 recognize and translate multibyte characters. 10201 10202 @item CLH_TERM 10203 @item TERM 10204 @findex CLH_TERM 10205 @findex TERM 10206 If @code{CLH_TERM} is set, or as a fallback @code{TERM} is set, @i{GCC} 10207 built-in command-line help will use it as a index into @code{TERMCAP} file 10208 to highlight the text of command-line help. 10209 10210 These variables affects only the appearance of @i{GCC} built-in command-line 10211 help, and only if @i{GCC} was configured using @i{--enable-clh}. 10212 @code{CLH_TERM} is preferred over @code{TERM}, and can additionaly have a 10213 value of "-" which indicates to display command-line help with no highlighting. 10201 10214 @end table 10202 10215 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/dwarf2out.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 2035 2035 } 2036 2036 2037 #if ndef EH_FRAME_SECTION_NAME2037 #if !defined (EH_FRAME_SECTION_NAME) || defined (DWARF2_FRAMEINFO_NULL_TERMINATED) 2038 2038 if (for_eh) 2039 2039 dw2_asm_output_data (4, 0, "End of Table"); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/f/Make-lang.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 68 68 f77.stage1 f77.stage2 f77.stage3 f77.stage4 69 69 70 clh_g77.c: f/invoke.texi mkoptdesc.sh 71 ./mkoptdesc.sh f/invoke.texi g77 > clh_g77.c 72 70 73 g77spec.o: $(srcdir)/f/g77spec.c $(srcdir)/f/version.h $(SYSTEM_H) $(GCC_H) \ 71 74 $(CONFIG_H) … … 81 84 # Create the compiler driver for g77. 82 85 g77$(exeext): gcc.o g77spec.o g77version.o version.o prefix.o intl.o \ 83 $(LIBDEPS) $(EXTRA_GCC_OBJS) 86 $(LIBDEPS) $(EXTRA_GCC_OBJS) $(CLH_G77) 84 87 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o g77spec.o g77version.o \ 85 version.o prefix.o intl.o $(EXTRA_GCC_OBJS) $( LIBS)88 version.o prefix.o intl.o $(EXTRA_GCC_OBJS) $(CLH_G77) $(LIBS) 86 89 87 90 # Create a version of the g77 driver which calls the cross-compiler. -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/fix-header.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 1079 1079 long int inf_size; 1080 1080 struct symbol_list *cur_symbols; 1081 1082 #if defined (__EMX__) 1083 return 0; // fix-header does only harm to emx` includes 1084 #endif 1081 1085 1082 1086 if (argv[0] && argv[0][0]) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/fixinc/mkfixinc.sh
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 28 28 MAKE="${MAKE} TARGETS=oneprocess" 29 29 ;; 30 30 *-*-os2* ) 31 fixincludes= 32 ;; 31 33 * ) 32 34 MAKE="${MAKE} TARGETS=oneprocess" -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/fixinc/procopen.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 46 46 * If you do not wish that, delete this exception notice. 47 47 */ 48 #include "auto-host.h" 49 #include "ansidecl.h" 50 #include "system.h" 51 48 49 #include "fixlib.h" 52 50 #include "server.h" 53 #include "fixlib.h"54 51 55 52 STATIC const char* def_args[] = -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/fixinc/server.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 46 46 * If you do not wish that, delete this exception notice. 47 47 */ 48 #include "auto-host.h" 49 50 #include "ansidecl.h" 51 #include "system.h" 48 49 #include "fixlib.h" 50 #include "server.h" 52 51 #include <signal.h> 53 54 #include "server.h"55 52 56 53 #if !defined(volatile) && !defined(HAVE_VOLATILE) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/function.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 6497 6497 emit_library_call (gen_rtx_SYMBOL_REF (Pmode, NAME__MAIN), LCT_NORMAL, 6498 6498 VOIDmode, 0); 6499 #ifdef NAME__EH_INIT 6500 if (flag_exceptions) 6501 emit_library_call (gen_rtx_SYMBOL_REF (Pmode, NAME__EH_INIT), LCT_NORMAL, 6502 VOIDmode, 0); 6503 #endif 6499 6504 #endif 6500 6505 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/gcc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 333 333 const char *)); 334 334 #endif 335 #if defined(HAVE_TARGET_OBJECT_SUFFIX) || defined(HAVE_TARGET_EXECUTABLE_SUFFIX)335 #if (defined(HAVE_TARGET_OBJECT_SUFFIX) || defined(HAVE_TARGET_EXECUTABLE_SUFFIX)) && !defined (NO_FORCE_EXEOBJ_SUFFIX) 336 336 static const char *convert_filename PARAMS ((const char *, int, int)); 337 337 #endif … … 1004 1004 {"--write-dependencies", "-MD", 0}, 1005 1005 {"--write-user-dependencies", "-MMD", 0}, 1006 #ifdef CLH 1007 {"--help", "-h", "oj"}, 1008 #endif 1006 1009 {"--", "-f", "*j"} 1007 1010 }; … … 1190 1193 i++; 1191 1194 } 1192 1193 1195 /* Handle old-fashioned options--just copy them through, 1194 1196 with their arguments. */ … … 1709 1711 /* Name with which this program was invoked. */ 1710 1712 1711 staticconst char *programname;1713 const char *programname; 1712 1714 1713 1715 … … 3023 3025 3024 3026 3025 #if defined(HAVE_TARGET_OBJECT_SUFFIX) || defined(HAVE_TARGET_EXECUTABLE_SUFFIX)3027 #if (defined(HAVE_TARGET_OBJECT_SUFFIX) || defined(HAVE_TARGET_EXECUTABLE_SUFFIX)) && !defined (NO_FORCE_EXEOBJ_SUFFIX) 3026 3028 3027 3029 /* Convert NAME to a new name if it is the standard suffix. DO_EXE … … 3343 3345 } 3344 3346 3347 #ifndef __EMX__ 3345 3348 /* Use LPATH like LIBRARY_PATH (for the CMU build program). */ 3349 /* Under OS/2 (__EMX__) LPATH is used in LANManager client & server */ 3346 3350 GET_ENV_PATH_LIST (temp, "LPATH"); 3347 3351 if (temp && *cross_compile == '0') … … 3375 3379 } 3376 3380 } 3381 #endif /* not __EMX__ */ 3377 3382 3378 3383 /* Convert new-style -- options to old-style. */ … … 3577 3582 verbose_flag++; 3578 3583 } 3584 #ifdef CLH 3585 else if (! strncmp (argv[i], "-h", 2)) 3586 { 3587 extern int clh_display (const char *text, const char *selector); 3588 extern char *gcc_clh_text; 3589 exit (clh_display (gcc_clh_text, &argv[i][2])); 3590 } 3591 #endif /* CLH */ 3579 3592 else if (argv[i][0] == '-' && argv[i][1] != 0) 3580 3593 { … … 3723 3736 case 'o': 3724 3737 have_o = 1; 3738 #ifndef NO_FORCE_EXEOBJ_SUFFIX 3725 3739 #if defined(HAVE_TARGET_EXECUTABLE_SUFFIX) 3726 3740 if (! have_c) … … 3758 3772 argv[i] = convert_filename (argv[i], ! have_c, 0); 3759 3773 #endif 3774 #endif 3760 3775 goto normal_switch; 3761 3776 … … 3826 3841 /* Use 2 as fourth arg meaning try just the machine as a suffix, 3827 3842 as well as trying the machine and the version. */ 3828 #ifndef OS23829 3843 add_prefix (&exec_prefixes, standard_exec_prefix, "GCC", 3830 3844 PREFIX_PRIORITY_LAST, 1, warn_std_ptr, 0); … … 3833 3847 add_prefix (&exec_prefixes, standard_exec_prefix_1, "BINUTILS", 3834 3848 PREFIX_PRIORITY_LAST, 2, warn_std_ptr, 0); 3835 #endif3836 3849 3837 3850 add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS", … … 4078 4091 else 4079 4092 { 4080 #if def HAVE_TARGET_OBJECT_SUFFIX4093 #if defined (HAVE_TARGET_OBJECT_SUFFIX) && !defined (NO_FORCE_EXEOBJ_SUFFIX) 4081 4094 argv[i] = convert_filename (argv[i], 0, access (argv[i], F_OK)); 4082 4095 #endif … … 6162 6175 6163 6176 if (n_infiles == added_libraries) 6177 #ifdef CLH 6178 fatal ("no input files, try \"%s --help\"", programname); 6179 #else 6164 6180 fatal ("no input files"); 6181 #endif 6165 6182 6166 6183 /* Make a place to record the compiler output file names -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/genattrtab.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 6115 6115 int i; 6116 6116 6117 #ifdef EMX 6118 /* Otherwise we can't use more than 32Mb memory and genattrtab uses a lot */ 6119 _uflags (_UF_SBRK_MODEL, _UF_SBRK_ARBITRARY); 6120 #endif 6121 6117 6122 progname = "genattrtab"; 6118 6123 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/genmultilib
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 41 41 # argument is empty, the option names will be used as the directory 42 42 # names. 43 # If number of elements in second argument is bigger than number of options 44 # in the first argument, the n+1'th element is used as default directory 45 # name (i.e. when no one of options specified in argument 1 was used) 43 46 44 47 # The optional third argument is a list of options which are … … 237 240 fi 238 241 242 # See if default directory was specified 243 if [ -n "$1" ]; then 244 defaultdir="$1" 245 else 246 defaultdir="." 247 fi 239 248 # We need another recursive shell script to correctly handle positive 240 249 # matches. If we are invoked as … … 276 285 done 277 286 optout=`echo ${optout} | sed -e 's/^ //'` 278 echo "\" .${optout};\","287 echo "\"${defaultdir} ${optout};\"," 279 288 280 289 # Work over the list of combinations. We have to translate each one -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/gthr.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 79 79 DCE threads with -D_DCE_THREADS 80 80 Solaris/UI threads with -D_SOLARIS_THREADS 81 OS/2 threads with -D_OS2_THREADS 81 82 */ 82 83 … … 88 89 #elif _SOLARIS_THREADS 89 90 #include "gthr-solaris.h" 91 #elif _OS2_THREADS 92 #include "gthr-os2.h" 90 93 91 94 /* Include GTHREAD_FILE if one is defined. */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/java/Make-lang.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 69 69 # Create the compiler driver for $(GCJ). 70 70 $(GCJ)$(exeext): gcc.o jvspec.o version.o \ 71 prefix.o intl.o $(LIBDEPS) $(EXTRA_GCC_OBJS) 71 prefix.o intl.o $(LIBDEPS) $(EXTRA_GCC_OBJS) $(CLH_GCJ) 72 72 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o jvspec.o prefix.o intl.o \ 73 version.o $(EXTRA_GCC_OBJS) $( LIBS)73 version.o $(EXTRA_GCC_OBJS) $(CLH_GCJ) $(LIBS) 74 74 75 75 # Create a version of the $(GCJ) driver which calls the cross-compiler. … … 97 97 exit 1; } ; \ 98 98 mv -f k$$$$.h keyword.h) 99 100 clh_gcj.c: java/gcj.texi mkoptdesc.sh 101 ./mkoptdesc.sh java/gcj.texi gcj > clh_gcj.c 99 102 100 103 # Executables built by this Makefile: -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/libgcc2.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 1916 1916 } 1917 1917 #endif 1918 #if defined (EH_FRAME_SECTION_NAME) && !defined (HAS_INIT_SECTION) 1918 #if defined (EH_FRAME_SECTION_NAME) && !defined (HAS_INIT_SECTION) && !defined (DONT_AUTOREGISTER_FRAME_INFO) 1919 1919 { 1920 1920 static int completed = 0; … … 1935 1935 __do_global_ctors (void) 1936 1936 { 1937 #if def EH_FRAME_SECTION_NAME1937 #if defined (EH_FRAME_SECTION_NAME) && !defined (DONT_AUTOREGISTER_FRAME_INFO) 1938 1938 { 1939 1939 static struct object object; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/mklibgcc.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 17 17 # LIB2ADDEH 18 18 # LIB2ADDEHDEP 19 # LIB2FUNCS_OMIT 19 20 # FPBIT 20 21 # FPBIT_FUNCS -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/prefix.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 274 274 #ifdef UPDATE_PATH_HOST_CANONICALIZE 275 275 /* Perform host dependent canonicalization when needed. */ 276 UPDATE_PATH_HOST_CANONICALIZE ( path);276 UPDATE_PATH_HOST_CANONICALIZE (result); 277 277 #endif 278 278 … … 297 297 int len; 298 298 { 299 #ifndef __EMX__ 299 300 std_prefix = save_string (prefix, len); 300 } 301 #endif 302 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/target-def.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 58 58 #define TARGET_ASM_FUNCTION_EPILOGUE default_function_pro_epilogue 59 59 #define TARGET_ASM_FUNCTION_END_PROLOGUE no_asm_to_stream 60 #ifndef TARGET_ASM_FUNCTION_BEGIN_EPILOGUE 60 61 #define TARGET_ASM_FUNCTION_BEGIN_EPILOGUE no_asm_to_stream 62 #endif 61 63 62 64 #if !defined(TARGET_ASM_CONSTRUCTOR) && !defined(USE_COLLECT2) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/toplev.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 4656 4656 int i; 4657 4657 4658 #ifdef COMPILER_HOST_INITIALIZATION 4659 /* Perform host dependant initialization when needed. */ 4660 COMPILER_HOST_INITIALIZATION; 4661 #endif 4662 4658 4663 /* Save in case md file wants to emit args as a comment. */ 4659 4664 save_argc = argc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/tradcpp.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 524 524 pending_dir *pend = (pending_dir *) xcalloc (argc, sizeof (pending_dir)); 525 525 int no_standard_includes = 0; 526 527 #ifdef COMPILER_HOST_INITIALIZATION 528 /* Perform host dependant initialization when needed. */ 529 COMPILER_HOST_INITIALIZATION; 530 #endif 526 531 527 532 hex_init (); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/libiberty/basename.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 22 22 23 23 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ 24 defined (__OS2__) 24 defined (__OS2__) || defined (__EMX__) 25 25 #define HAVE_DOS_BASED_FILE_SYSTEM 26 26 #ifndef DIR_SEPARATOR_2 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/libiberty/config.table
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 7 7 i370-*-opened*) frag=mh-openedition ;; 8 8 i[345]86-*-windows*) frag=mh-windows ;; 9 *-*-*emx) frag=mh-emx ;; 9 10 esac 10 11 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/libiberty/getpwd.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 57 57 #endif 58 58 59 #if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__)) )59 #if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__EMX__)) 60 60 61 61 /* Get the working directory. Use the PWD environment variable if it's -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/libiberty/pexecute.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 82 82 (??? It's not clear that GCC passes this flag correctly). (@code{@var{flags} & 83 83 PEXECUTE_FIRST}) is nonzero for the first process in chain. 84 (@code{@var{flags} & PEXECUTE_ FIRST}) is nonzero for the last process84 (@code{@var{flags} & PEXECUTE_LAST}) is nonzero for the last process 85 85 in chain. The first/last flags could be simplified to only mark the 86 86 last of a chain of processes but that requires the caller to always … … 484 484 #ifdef OS2 485 485 486 /* ??? Does OS2 have process.h?*/486 /* This is for non-EMX OS/2 port (is it floating around anyway?) */ 487 487 extern int spawnv (); 488 488 extern int spawnvp (); … … 663 663 /* include for Unix-like environments but not for Dos-like environments */ 664 664 #if ! defined (__MSDOS__) && ! defined (OS2) && ! defined (MPW) \ 665 && ! (defined (_WIN32) && ! defined (_UWIN)) 665 && ! (defined (_WIN32) && ! defined (_UWIN)) && ! defined (__EMX__) 666 666 667 667 extern int execv (); … … 790 790 } 791 791 792 #endif /* ! __MSDOS__ && ! OS2 && ! MPW && ! (_WIN32 && ! _UWIN) */ 792 #endif /* ! __MSDOS__ && ! OS2 && ! MPW && ! (_WIN32 && ! _UWIN) && ! && ! __EMX__ */ 793 794 #ifdef __EMX__ 795 796 #undef abort 797 #include <process.h> 798 #include <stdlib.h> 799 #define INCL_DOSPROCESS 800 #include <os2.h> 801 802 int 803 pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags) 804 const char *program; 805 char * const *argv; 806 const char *this_pname; 807 const char *temp_base; 808 char **errmsg_fmt, **errmsg_arg; 809 int flags; 810 { 811 static int last_pipe_input = STDIN_FILE_NO; 812 int pid; 813 int pdes[2], org_stdin, org_stdout; 814 int input_desc = last_pipe_input; 815 int output_desc = STDOUT_FILE_NO; 816 int pipes_supported = _osmode != DOS_MODE || (_emx_env & 0x1000); 817 818 /* Since the function can reside in a DLL, we should take care 819 environ to not be NULL. Unfortunately this involves os2.h :-( - A.Z. */ 820 if (!environ) 821 { 822 PTIB tib; 823 PPIB pib; 824 if (!DosGetInfoBlocks (&tib, &pib)) 825 { 826 int count = 1; 827 char *env = pib->pib_pchenv; 828 char **cur; 829 while (*env++) 830 if (!*env) 831 count++, env++; 832 cur = environ = malloc (sizeof (char *) * count); 833 env = pib->pib_pchenv; 834 *cur++ = env; 835 while (*env++) 836 if (!*env) 837 env++, *cur++ = env; 838 cur [-1] = NULL; 839 } 840 } 841 842 if (!pipes_supported && (flags & PEXECUTE_ONE) != PEXECUTE_ONE) 843 { 844 static char *errtpl = "%s: exec %s (pipes not supported)"; 845 *errmsg_fmt = (char *) xmalloc (strlen(errtpl) + \ 846 strlen(this_pname) + strlen(program)); 847 sprintf (*errmsg_fmt, errtpl, this_pname, program); 848 *errmsg_arg = NULL; 849 return -1; 850 } 851 /* If this isn't the last process, make a pipe for its output, 852 and record it as waiting to be the input to the next process. */ 853 if (!(flags & PEXECUTE_LAST)) 854 { 855 if (pipe (pdes) < 0) 856 { 857 static char *errtpl = "%s: pipe to/from %s"; 858 *errmsg_fmt = (char *) xmalloc (strlen(errtpl) + \ 859 strlen(this_pname) + strlen(program)); 860 sprintf (*errmsg_fmt, errtpl, this_pname, program); 861 *errmsg_arg = NULL; 862 return -1; 863 } 864 output_desc = pdes[WRITE_PORT]; 865 last_pipe_input = pdes[READ_PORT]; 866 } 867 else 868 last_pipe_input = STDIN_FILE_NO; 869 if (pipes_supported && input_desc != STDIN_FILE_NO) 870 { 871 org_stdin = dup (STDIN_FILE_NO); 872 dup2 (input_desc, STDIN_FILE_NO); 873 close (input_desc); 874 } 875 if (pipes_supported && output_desc != STDOUT_FILE_NO) 876 { 877 org_stdout = dup (STDOUT_FILE_NO); 878 dup2 (output_desc, STDOUT_FILE_NO); 879 close (output_desc); 880 } 881 pid = (flags & PEXECUTE_SEARCH ? spawnvp : spawnv) (P_NOWAIT, program, argv); 882 if (pipes_supported && input_desc != STDIN_FILE_NO) 883 { 884 dup2 (org_stdin, STDIN_FILE_NO); 885 close (org_stdin); 886 } 887 if (pipes_supported && output_desc != STDOUT_FILE_NO) 888 { 889 dup2 (org_stdout, STDOUT_FILE_NO); 890 close (org_stdout); 891 } 892 if (pid == -1) 893 { 894 static char *errtpl = "%s: error executing %s"; 895 *errmsg_fmt = (char *) xmalloc (strlen(errtpl) + \ 896 strlen(this_pname) + strlen(program)); 897 sprintf (*errmsg_fmt, errtpl, this_pname, program); 898 *errmsg_arg = NULL; 899 } 900 return pid; 901 } 902 903 int 904 pwait (pid, status, flags) 905 int pid; 906 int *status; 907 int flags; 908 { 909 int rc; 910 do 911 rc = waitpid (pid, status, flags); 912 while (rc < 0 && errno == EINTR); 913 return rc; 914 } 915 916 #endif /* __EMX__ */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/libiberty/strerror.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 21 21 #include <errno.h> 22 22 23 #ifdef HAVE_SYS_ERRLIST24 #undef sys_nerr25 #undef sys_errlist26 #endif27 28 23 /* Routines imported from standard C runtime libraries. */ 29 24 … … 38 33 #else 39 34 extern PTR memset (); 35 #endif 36 37 #ifdef HAVE_SYS_ERRLIST 38 #undef sys_nerr 39 #undef sys_errlist 40 40 #endif 41 41 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/libobjc/thr-os2.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 43 43 #undef BOOL 44 44 45 #define __MT__ 45 46 #include <stdlib.h> 46 47 … … 179 180 __objc_mutex_allocate(objc_mutex_t mutex) 180 181 { 181 if (DosCreateMutexSem (NULL, ( HMTX)(&(mutex->backend)),0L,0) > 0)182 if (DosCreateMutexSem (NULL, (PHMTX)(&(mutex->backend)),0L,0) > 0) 182 183 return -1; 183 184 else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/libstdc++-v3/configure.target
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r8 r9 122 122 c_model=c 123 123 ;; 124 *emx) 125 os_include_dir="config/os/os2emx" 126 ;; 124 127 *) 125 128 os_include_dir="config/os/generic" -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.