summaryrefslogtreecommitdiff
path: root/gcc/configure
Commit message (Collapse)AuthorAgeFilesLines
* alpha.h (TARGET_SWITCHES): Turn on MASK_EXPLICIT_RELOCS if the assembler ↵Richard Henderson2001-12-151-23/+74
| | | | | | | | | | | supports it. * config/alpha/alpha.h (TARGET_SWITCHES): Turn on MASK_EXPLICIT_RELOCS if the assembler supports it. * configure.in (HAVE_AS_EXPLICIT_RELOCS): New. * configure, config.in: Rebuild. From-SVN: r48054
* configure.in: Check for ld.Jakub Jelinek2001-12-151-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Check for ld. (HAVE_LD_EH_FRAME_HDR): Define if ld supports --eh-frame-hdr option. * configure, config.in: Rebuilt. * config.gcc: Add crtbeginT.o to extra_parts where needed. * config/t-linux (LIB2ADDEH, LIB2ADDEHDEP): Use unwind-dw2-fde-glibc frame unwinding on Linux. * config/t-linux-gnulibc1 (LIB2ADDEH, LIB2ADDEHDEP): Use unwind-dw2-fde frame unwinding. * config/linux.h (STARTFILE_SPEC): Use crtbeginT.o for -static. (LINK_EH_SPEC): Define. * config/i386/gnu.h (STARTFILE_SPEC): Use crtbeginT.o for -static. * config/ia64/linux.h (STARTFILE_SPEC, LINK_EH_SPEC): Define. * config/ia64/fde-glibc.c (_Unwind_IteratePhdrCallback): Don't iterate further if pc falls into current library, but fde was not found. * config/sparc/linux.h (STARTFILE_SPEC): Use crtbeginT.o for -static if using glibc. (LINK_EH_SPEC): Define. * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64): Use crtbeginT.o for -static. (LINK_EH_SPEC): Define. * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtbeginT.o. * Makefile.in (crtbeginT.o): Add rule. * gcc.c (init_gcc_specs): For -static-libgcc, use -lgcc -lgcc_eh. If neither -static-libgcc nor -shared-libgcc is passed and -shared, use -lgcc if LINK_EH_SPEC is defined and -lgcc_s -lgcc if not. If none of the above switches are passed, use -lgcc -lgcc_eh. (init_spec): If LINK_EH_SPEC is defined, prepend it to link_spec. * mklibgcc.in: Don't include LIB2ADDEH objects into libgcc.a if creating libgcc_s.so, put them into separate libgcc_eh.a instead. * unwind-dw2-fde.c: Don't include any headers if this file is included from other .c file. * unwind-dw2-fde-glibc.c: New file. * crtstuff.c (USE_PT_GNU_EH_FRAME, USE_EH_FRAME_REGISTRY): Define. Use it instead of EH_FRAME_SECTION_NAME where appropriate. From-SVN: r48039
* configure.in: Hardcode that vfork works on VMS host.Douglas B Rupp2001-12-111-147/+153
| | | | | | | | | * gcc/configure.in: Hardcode that vfork works on VMS host. * gcc/configure: Regenerated. * libiberty/configure.in: Hardcode that vfork works on VMS host. * libiberty/configure: Regenerated. From-SVN: r47869
* build-make, cross-make: Delete file.Zack Weinberg2001-12-041-45/+60
| | | | | | | | | | | | | | | | | | | | | | | | | * build-make, cross-make: Delete file. * configure.in: Set and substitute CROSS, ALL, SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC, HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on whether build == host and host == target. Do not AC_SUBST_FILE build_overrides or cross_overrides. Do not AC_SUBST cross_defines or extra_c_flags. * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New. (SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX, HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set partially or completely with autoconf-substituted @variable@ notation. (INSTALL_TARGET, @cross_defines@, @cross_overrides@, @build_overrides@, @extra_c_flags@, all.build, install-build, install-cross-rest, install-float-h-cross): Deleted. (install-normal): Rename to install. Delete old "install" indirection rule. * ada/Makefile.in, ch/Makefile.in: Don't set ALL. Delete @cross_defines@, @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS is now @CROSS@ -DIN_GCC; update comment. From-SVN: r47617
* configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen, strchr, ↵Kaveh R. Ghazi2001-12-011-166/+164
| | | | | | | | | | | | | | strrchr, isascii, gettimeofday. * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen, strchr, strrchr, isascii, gettimeofday. * config.in, configure: Regenerate. f: * Make-lang.in: Delete references to proj.[co], proj-h.[co]. * proj.c: Delete file. From-SVN: r47501
* Purge cruft now we have build libiberty.Zack Weinberg2001-11-301-326/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR, HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR, USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT, USE_HOST_STRSTR): Delete variables. (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o, hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o, $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules. (LIBIBERTY, BUILD_LIBIBERTY): New variables. (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY). (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY). (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY). (HOST_LIBS): Ditto. (HOST_RTL): Remove hashtab.o safe-ctype.o. (OBJS): Remove splay-tree.o. (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a. (distclean): No need to delete splay-tree.c obstack.c hashtab.c safe-ctype.c. (mostlyclean): Delete build copies of print-rtl.c bitmap.c errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1). * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR): Delete. * configure.in: Don't use them. Set and substitute @FORBUILD@. * config.in, configure: Regenerate. * doprint.c: Move to libiberty/_doprnt.c. * doc/configterms.texi: Document that libiberty is now built up to three times. Fix typo. * f/Make-lang.in (f/fini, f/intdoc): Depend on $(HOST_LIBDEPS) and link with $(HOST_LIBS), not safe-ctype.o. From-SVN: r47475
* configure.in (target_list): Add generated-manpages.Joseph Myers2001-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in (target_list): Add generated-manpages. * configure: Regenerate. * Makefile.in (generated-manpages): Depend on lang.generated-manpages. * objc/Make-lang.in (objc.generated-manpages): New dummy target. ada: * Make-lang.in (ada.generated-manpages): New dummy target. ch: * Make-lang.in (CHILL.generated-manpages): New dummy target. cp: * Make-lang.in (c++.generated-manpages): New dummy target. f: * Make-lang.in (f77.generated-manpages): New target. ($(srcdir)/f/g77.1): Don't check $(GENERATED_MANPAGES). Allow manpage generation to fail. (f77.info): Don't depend on $(srcdir)/f/g77.1. (f77.install-man): Depend on $(GENERATED_MANPAGES) rather than directly on $(srcdir)/g77.1. java: * Make-lang.in (java.generated-manpages): New dummy target. From-SVN: r47442
* collect2.c: Check HAVE_DUP2 instead of NO_DUP2.Kaveh R. Ghazi2001-11-271-2/+2
| | | | | | | | | | * collect2.c: Check HAVE_DUP2 instead of NO_DUP2. (dup2): Make static and add prototype. * m68k/plexus.h: Don't define NO_DUP2. * configure.in (AC_CHECK_FUNCS): Add dup2. * config.in, configure: Regenerate. From-SVN: r47379
* configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.Geoffrey Keating2001-11-201-2/+59
| | | | | | | | | | | | | | | | * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define. (HAVE_AS_GSTABS_DEBUG_FLAG): Define. * configure: Regenerate. * config.in: Add dummy definitions of new flags. * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to... * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here. * gcc.c (ASM_DEBUG_SPEC): New macro. (asm_debug): New static variable. (default_compilers): Add asm_debug when assembling from user input. (static_specs): Add asm_debug. From-SVN: r47210
* configure.in: Setup ability to run ./stage[1234]/xgcc in fixinc *as if* it ↵Loren J. Rittle2001-11-201-1/+1
| | | | | | | | | | | were a proper lang... bootstrap/4422 * configure.in: Setup ability to run ./stage[1234]/xgcc in fixinc *as if* it were a proper lang subdirectory. * configure: Rebuilt. From-SVN: r47204
* configure.in: Check for target objdump and use that in eh_frame optimization ↵Andreas Schwab2001-11-151-19/+31
| | | | | | | | | | test. * configure.in: Check for target objdump and use that in eh_frame optimization test. * configure: Regenerated. From-SVN: r47051
* ChangeLog.2, [...]: Fix spelling errors.Joseph Myers2001-11-111-1/+1
| | | | | | | | | | | | * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog, cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, collect2.c, combine.c, config.in, configure, configure.in, conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c, genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c, reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix spelling errors. From-SVN: r46928
* configure.in (--enable-languages): Be more permissive about syntax.Phil Edwards2001-11-081-4/+10
| | | | | | | | * configure.in (--enable-languages): Be more permissive about syntax. Check for empty lists better. Warn about $LANGUAGES. * configure: Regenerated. From-SVN: r46870
* configure.in: Add AC_ARG_PROGRAM to support program name transformation with ↵Andreas Franck2001-11-081-303/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --program-prefix... * configure.in: Add AC_ARG_PROGRAM to support program name transformation with --program-prefix, --program-suffix and --program-transform-name. * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME, PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME, GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME, PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle program_transform_name the way suggested by autoconf. (GCC_TARGET_INSTALL_NAME): Define. (install-driver): Use the transformed target alias name. * Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME, DEMANGLER_CROSS_NAME): Handle program_transform_name the way suggested by autoconf. (GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define. (c++.install-common): Use the transformed target alias names. * Make-lang.in (G77_INSTALL_NAME, G77_CROSS_NAME): Handle program_transform_name the way suggested by autoconf. * Make-lang.in (JAVA_INSTALL_NAME, JAVA_CROSS_NAME): Handle program_transform_name the way suggested by autoconf. (java.install-common): Also transform auxiliary program names with program_transform_name. From-SVN: r46856
* aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.Zack Weinberg2001-11-061-135/+130
| | | | | | | | | | | | | | | | | | * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS. (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files corresponding to the complete set of .po and .gmo files in the source directory's po subdir, modified by LINGUAS. Don't look at ALL_LINGUAS. * configure.in: Don't set ALL_LINGUAS. * configure: Regenerate. * Makefile.in (.po.gmo): Don't move into source directory. (.po.pox): Clarify comments. (install-po): Look for .gmo files in both srcdir and objdir; don't fail if a file is totally missing. (distclean): rmdir ada subdirectory too. From-SVN: r46800
* Makefile.in (INTL_TARGETS, POSUB): Delete all references.Zack Weinberg2001-10-311-28/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (INTL_TARGETS, POSUB): Delete all references. (INTL_SUBDIRS): Just intl. (.SUFFIXES): Add .gmo .po .pox. (native): Also depend on build-@POSUB@. (intl.all, intl.install): Depend on config.h and things it includes. (po-generated): New target; depend on c-parse.c and tradcif.c. (install-normal): Also depend on install-@POSUB@. (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables. (build-, install-, build-po, update-po, install-po, .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules. * aclocal.m4: Prefix each entry in CATALOGS with "po/" * configure.in: Don't munge XGETTEXT. Don't generate po/Makefile.in. * configure: Regenerate. * exgettext: Delete. * config/m68k/m68k.h: Add doc strings for -msky and -mnosky. * cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated. po: * EXCLUDES: New file. * exgettext: New helper script; completely rewritten. * Makefile.in.in, POTFILES.in: Delete. From-SVN: r46680
* configure.in: Correct previous change...Zack Weinberg2001-10-301-1/+1
| | | | | | | | | * configure.in: Correct previous change: don't assume that gas's version number _isn't_ the last thing on the line, or isn't the only number on the line, either. * configure: Regenerate. From-SVN: r46643
* configure.in: Do not assume that gas's version number is the last thing on ↵Zack Weinberg2001-10-301-1/+1
| | | | | | | | | | the first line of... * configure.in: Do not assume that gas's version number is the last thing on the first line of as --version output. * configure: Regenerate. From-SVN: r46629
* ChangeLog.0, [...]: Fix spelling errors.Joseph Myers2001-10-281-1/+1
| | | | | | | | | | | | | * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11, c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc, configure, configure.in, except.c, except.h, flow.c, function.c, gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def, predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c, sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c, unroll.c: Fix spelling errors. From-SVN: r46595
* aclocal.m4 (AM_WITH_NLS): Also create and substitute INTLDEPS variable, ↵Zack Weinberg2001-10-211-46/+50
| | | | | | | | | | | | | | | | | | | | | | which does not include $LIBICONV. * aclocal.m4 (AM_WITH_NLS): Also create and substitute INTLDEPS variable, which does not include $LIBICONV. * Makefile.in: Use INTLDEPS in LIBDEPS. * configure: Regenerate. intl: * dcigettext.c: Don't use #elif. * gettextP.h: Prototype nls_uint32 and locale_charset here. Always define ZERO to 1 to avoid warnings (ZERO is used in flexible-array-member declarations). * loadmsgcat.c: Apply __extension__ to structure definitions using C99 designated initializer syntax. Do not prototype locale_charset here. * localcharset.c: Prototype get_charset_aliases before use. Get rid of STATIC nonsense. From-SVN: r46394
* aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and USE_INCLUDED_LIBINTL ↵Zack Weinberg2001-10-191-44/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | when appropriate. * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and USE_INCLUDED_LIBINTL when appropriate. * configure, config.in: Regenerate. * Makefile.in (datadir): Set to @datadir@. (intl.o): Also depend on $(CONFIG_H) and system.h. * intl.c: Factor out common gettext initialization sequence. (gcc_init_libintl): New function. * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL; otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn off NLS. Add multiple include guard. No need to #ifdef-guard an #undef. Prototype gcc_init_libintl here. * collect2.c (main), cppmain.c (general_init), gcc.c (main), gcov.c (main), protoize.c (main), toplev.c (toplev_main): Use gcc_init_libintl. intl: * Makefile.in: Don't copy libgnuintl.h anywhere. From-SVN: r46348
* configure: Regenerated.Andreas Jaeger2001-10-191-2/+2
| | | | | | | * configure: Regenerated. * configure.in: Add x86_64 to switch statements. From-SVN: r46341
* configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.Richard Henderson2001-10-161-3/+31
| | | | | | | | | | | | | | | | | | | | | | | | * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check. * configure, config.in: Rebuild. * config/i386/i386.c (ix86_output_addr_vec_elt): New. (ix86_output_addr_diff_elt): New. * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them. (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise. (JUMP_TABLES_IN_TEXT_SECTION): New. * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA. * config/i386/i386-protos.h: Update. * config/i386/386bsd.h, config/i386/beos-elf.h, config/i386/freebsd-aout.h, config/i386/freebsd.h, config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h, config/i386/netbsd-elf.h, config/i386/netbsd.h, config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove. From-SVN: r46303
* configure.in (gcc_cv_as_bfd_srcdir): New.Alan Modra2001-10-161-105/+96
| | | | | | | | * configure.in (gcc_cv_as_bfd_srcdir): New. Use it to find gas version in single tree build. * configure: Regenerate. From-SVN: r46275
* ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.Zack Weinberg2001-10-121-714/+735
| | | | | | | | | | | | | | | | | | | | top: * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40. * configure.in, Makefile.in: Take out obsolete check-po logic. * configure, config.in: Regenerate. intl: * Update entire directory from gettext 0.10.40. * cat-compat.c, linux-msg.sed, po2tbl.sed.in, xopen-msg.sed: Removed. * config.charset, dcigettext.c, dcngettext.c, libgnuintl.h, localcharset.c, locale.alias, ngettext.c, plural.c, plural.y, ref-add.sin, ref-del.sin: New. po: * Makefile.in.in: Upgrade to gettext-0.10.40. * cat-id-tbl.c: Remove file. * stamp-cat-id: Remove file. From-SVN: r46233
* aclocal.m4 (gcc_AC_PROG_GNAT): New.Zack Weinberg2001-10-081-190/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | top: * aclocal.m4 (gcc_AC_PROG_GNAT): New. * configure.in: Use it. * configure: Regenerated. * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64, config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS. ada: * Make-lang.in (ADAFLAGS): Add -W -Wall. (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also. (gnat1): Also depend on attribs.o. (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make. * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New. (ADAC): Set to @ADAC@ in stage1, $(CC) later. (ADAFLAGS): Add -W -Wall. (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS; take out CFLAGS. (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o, s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o, s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o): Use $(ADAC), not $(CC), as compilation command. (gnattools): Depend directly on tools to build, don't use recursive make. (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make. * einfo.h, sinfo.h: New files (autogenerated). From-SVN: r46085
* cppdefault.c (cpp_include_defaults): Also search PREFIX_INCLUDE_DIR.Per Bothner2001-09-291-2/+9
| | | | | | | | | | * cppdefault.c (cpp_include_defaults): Also search PREFIX_INCLUDE_DIR. * Makefile.in (includedir): Rename to local_includedir. (includedir): Define as $(prefix)/include. * config.in (PREFIX_INCLUDE_DIR): New variable. * configure.in (PREFIX_INCLUDE_DIR): Test for new variable. From-SVN: r45884
* cpplex.c (cpp_output_token): Use a putc loop for SPELL_OPERATOR, and fwrite ↵Zack Weinberg2001-09-281-161/+170
| | | | | | | | | | | | | | for SPELL_IDENT. * cpplex.c (cpp_output_token): Use a putc loop for SPELL_OPERATOR, and fwrite for SPELL_IDENT. * configure.in: Detect fwrite_unlocked and fprintf_unlocked. * configure, config.in: Regenerate. * system.h: Replace fwrite and fprintf with their unlocked variants if available. From-SVN: r45855
* configure.in (gcc_cv_as_shf_merge): Fix a typo.Jakub Jelinek2001-09-121-2/+2
| | | | | | | | * configure.in (gcc_cv_as_shf_merge): Fix a typo. Use --fatal-warnings option for gas. * configure: Rebuilt. From-SVN: r45563
* configure.in: Check whether assembler supports section merging.Jakub Jelinek2001-09-111-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Check whether assembler supports section merging. * config.in: Rebuilt. * configure: Rebuilt. * varasm.c (variable_section, output_constant_pool): Pass alignment to SELECT_SECTION and SELECT_RTX_SECTION. (mergeable_string_section): New. (mergeable_constant_section): New. (default_elf_asm_named_section): Output SECTION_MERGE and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size. * output.h (mergeable_string_section): New. (mergeable_constant_section): New. (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define. * toplev.c (flag_merge_constants): New. (f_options): Add -fmerge-constants and -fmerge-all-constants options. (toplev_main): Default to -fno-merge-constants if not optimizing. * flags.h (flag_merge_constants): Add extern. * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document. * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third argument. * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler has working .subsection -1 support. (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument. Put constant into special SHF_MERGE sections if the linker should attempt to merge duplicates. * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument. Put constant into special SHF_MERGE sections if the linker should attempt to merge duplicates. * config/alpha/elf.h: Likewise. (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler has working .subsection -1 support. * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and SELECT_SECTION. * config/svr3.h: Likewise. * config/darwin.h: Likewise. * config/arm/aof.h: Likewise. * config/arm/linux-elf.h: Likewise. * config/avr/avr.h: Likewise. * config/c4x/c4x.h: Likewise. * config/d30v/d30v.h: Likewise. * config/i386/dgux.h: Likewise. * config/i386/osfrose.h: Likewise. * config/i386/sco5.h: Likewise. * config/i386/svr3gas.h: Likewise. * config/ia64/aix.h: Likewise. * config/m32r/m32r.h: Likewise. * config/m68k/m68k.h: Likewise. * config/m88k/dgux.h: Likewise. * config/m88k/m88k.h: Likewise. * config/mcore/mcore-pe.h: Likewise. * config/mips/mips.h: Likewise. * config/pa/pa.h: Likewise. * config/pa/pa-linux.h: Likewise. * config/romp/romp.h: Likewise. * config/rs6000/sysv4.h: Likewise. * config/rs6000/xcoff.h: Likewise. * config/s390/linux.h: Likewise. * config/sparc/sparc.h: Likewise. * config/sparc/sysv4.h: Likewise. * config/stormy16/stormy16.h: Likewise. * config/v850/v850.h: Likewise. * config/vax/vms.h: Likewise. * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size. * config/sparc/sparc.c (sparc_elf_asm_named_section): Use default_elf_asm_named_section for SHF_MERGE sections. * com.c (ffe_init_options): Default to -fmerge-all-constants if optimizing. From-SVN: r45548
* Move constructor/destructor handling into target hooks.Richard Henderson2001-08-091-32/+19
| | | | From-SVN: r44747
* configure.in: Add rtems as a supported thread model.Joel Sherrill2001-07-241-314/+303
| | | | | | | | * configure.in: Add rtems as a supported thread model. * gthr-rtems.h: Add missing entry point __gthread_active_p. * configure: Rebuilt. From-SVN: r44324
* configure.in (assembler dwarf2 debug_line support): Define nop insn for m68k.Andreas Schwab2001-07-191-1/+1
| | | | | | | | * configure.in (assembler dwarf2 debug_line support): Define nop insn for m68k. * configure: Regenerated. From-SVN: r44149
* For PR java/2812:Tom Tromey2001-07-181-296/+439
| | | | | | | | | * configure: Rebuilt. * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV instead. * aclocal.m4 (AM_ICONV): New macro from Bruno Haible. From-SVN: r44119
* configure.in (assembler eh_frame optimization): Handle big endian.Andreas Schwab2001-07-171-9/+15
| | | | | | | | * configure.in (assembler eh_frame optimization): Handle big endian. * configure: Regenerated. From-SVN: r44091
* Add CFLAGS_FOR_BUILD for canadian cross build.H.J. Lu2001-06-271-306/+298
| | | | From-SVN: r43628
* revert: configure.in (sparc*-*-*): Check assembler R_SPARC_UA32 support.Alexandre Oliva2001-06-131-363/+324
| | | | | | | | | Reverted: 2001-06-07 Nathan Sidwell <nathan@codesourcery.com> * configure.in (sparc*-*-*): Check assembler R_SPARC_UA32 support. * configure: Rebuilt. From-SVN: r43300
* configure.in: Align --help messages.Rainer Orth2001-06-111-337/+348
| | | | | | | | | | * configure.in: Align --help messages. Remove trailing full stops. Consistently use lower case. Fix DWARF 2 spelling. * configure: Rebuilt. From-SVN: r43192
* configure.in (sparc*-*-*): Check assembler R_SPARC_UA32 support.Nathan Sidwell2001-06-071-4/+47
| | | | | | | * configure.in (sparc*-*-*): Check assembler R_SPARC_UA32 support. * configure: Rebuilt. From-SVN: r42955
* configure.in: Quote $enable_win32_registry in case the value has spaces in it.Pascal Obry2001-06-051-3/+3
| | | | | | | | * configure.in: Quote $enable_win32_registry in case the value has spaces in it. * configure: Ditto. From-SVN: r42920
* configure.in (gcc_version): Remove unrequired \ on ".Nathan Sidwell2001-05-291-2/+2
| | | | | | | | * configure.in (gcc_version): Remove unrequired \ on ". (Solaris /bin/sed fails on [^\"]). (configargs.h): Likewise. From-SVN: r42689
* aclocal.m4: Quote final argument of patsubst.Zack Weinberg2001-05-261-25/+25
| | | | | | | | | | * aclocal.m4: Quote final argument of patsubst. Use 3-argument form of AC_DEFINE. Restore quotes to [] while using AC_FD_CC. * configure.in: Remove unnecessary changequote calls. * configure, config.in: Regenerate. From-SVN: r42617
* aclocal.m4: Fixed typo.Rainer Orth2001-05-251-236/+303
| | | | | | | | | | | * aclocal.m4: Fixed typo. (gcc_AC_HEADER_STDBOOL): Define. (gcc_AC_C__BOOL): Define. * configure.in: Use them. (AC_CHECK_HEADERS): Remove stdbool.h * configure, config.in: Regenerate. From-SVN: r42578
* configure.in (gcc_cv_as_eh_frame): Cope with old assemblers.Stan Shebs2001-05-181-8/+9
| | | | | | | * configure.in (gcc_cv_as_eh_frame): Cope with old assemblers. * configure: Regenerate. From-SVN: r42274
* configure.in (gcc_cv_as_eh_frame): New test.Richard Henderson2001-05-141-8/+82
| | | | | | | | * configure.in (gcc_cv_as_eh_frame): New test. * config.in, configure: Rebuild. * gcc.c (init_spec): Honor USE_AS_TRADITIONAL_FORMAT. From-SVN: r42092
* configure.in: ldopen is never in -lexc, so don't test for it.Richard Kenner2001-05-131-154/+225
| | | | | | | | * configure.in: ldopen is never in -lexc, so don't test for it. Add test for exc_resume in -lexc for Ada. * configure: Regenerated. From-SVN: r42037
* Makefile.in: Exterminate all references to assert.h.Zack Weinberg2001-05-111-18/+17
| | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: Exterminate all references to assert.h. * cross-make: Likewise. * assert.h: Delete. * configure.in: Correct commentary. * configure: Regenerate. * po/POTFILES.in: Remove assert.h. * libgcc-std.ver, libgcc2.c, libgcc2.h, sys-protos.h: Remove __eprintf. * config/t-freebsd, config/t-linux, config/t-linux-aout, config/t-netbsd, config/t-rtems, config/x-linux, config/i386/t-beos, config/mcore/t-mcore, config/mcore/t-mcore-pe: No need to override INSTALL_ASSERT_H. * fixinc/fixinc.dgux, fixinc/fixinc.interix, fixinc/fixinc.ptx, fixinc/fixinc.svr4, fixinc/fixinc.winnt, fixinc/fixinc.wrap, fixinc/fixincl.sh: Don't install assert.h into objdir/include. From-SVN: r41972
* config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.Zack Weinberg2001-05-011-167/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-01 Zack Weinberg <zackw@stanford.edu> * config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}. Remove references to deleted files. (*-*-openbsd): No need to override xmake_file. (*-*-sysv4): Treat like *-*-sysv. * configure.in: Probe for ldopen in various places, and set up collect2 to be linked with them if found. Don't dink with Windows registry stuff unless $host_os is a Win32 os name. Check to see if we need -ladvapi32. * configure: Regenerate. * Makefile: Get rid of CLIB and HOST_CLIB. Substitute in COLLECT2_LIBS and link collect2 against its contents. * build-make: Get rid of HOST_CLIB. * config/a29k/x-unix, config/alpha/x-osf, config/i386/x-aix, config/i386/x-osfrose, config/m68k/x-dpx2, config/mips/x-iris3, config/mips/x-mips, config/mips/x-osfrose, config/mips/x-sony, config/mips/x-sysv, config/rs6000/x-aix31, config/rs6000/x-aix41, config/rs6000/x-rs6000: Delete. * config/i386/x-cygwin, config/m68k/t-aux, config/mips/x-iris: Don't set CLIB. 24 x-host fragments remain, 0 x-cpu, 3 top level. 2001-05-01 Zack Weinberg <zackw@stanford.edu> * aclocal.m4 (gcc_AC_C_CHAR_BIT): Correct test program. * configure: Regenerate. From-SVN: r41732
* dbxout.c, [...]: Always include gstab.h, not system stab.h.Zack Weinberg2001-05-011-285/+274
| | | | | | | | | | | | | | | | | | | | * dbxout.c, mips-tfile.c, config/mips/mips.c, xcoffout.c: Always include gstab.h, not system stab.h. Don't provide default definitions of N_CATCH or N_OPT. Always use the gstab.h variant of STAB_CODE_TYPE. * final.c: Don't include stab.h/gstab.h at all, or provide defaults for N_SLINE and N_SOL. * xcoffout.c: Can assume N_MAIN, N_DSLINE, N_BSLINE, N_BINCL, N_EINCL, N_EXCL, N_M2C, N_SCOPE, N_CATCH, and N_OPT are available. * sdbout.c: Always include gsyms.h instead of system syms.h. * configure.in: No need to check for stab.h. * configure, config.in: Regenerate. * Makefile.in (final.o): Don't depend on gstab.h. From-SVN: r41713
* configure.in (configargs.h): Define thread_model.Alexandre Oliva2001-04-261-79/+80
| | | | | | | | * configure.in (configargs.h): Define thread_model. * configure: Rebuilt. * gcc.c (main): Print it with -v. From-SVN: r41569