aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
AgeCommit message (Collapse)AuthorFilesLines
2006-07-04configure.ac (.eh_frame data check): Use diff -b.Andrew Stubbs1-2/+5
2006-07-04 Andrew Stubbs <andrew.stubbs@st.com> J"orn Rennecke <joern.rennecke@st.com> * configure.ac (.eh_frame data check): Use diff -b. Co-Authored-By: J"orn Rennecke <joern.rennecke@st.com> From-SVN: r115177
2006-07-03configure.in: Fix thinko in previous check-in.Paolo Bonzini1-1/+1
2006-07-03 Paolo Bonzini <bonzini@gnu.org> * configure.in: Fix thinko in previous check-in. * configure: Regenerate. gcc: 2006-07-03 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Fix thinko in previous check-in. * configure: Regenerate. From-SVN: r115146
2006-07-03re PR other/27063 (Fail to build gcc-core-4.2 snapshots)Paolo Bonzini1-20/+28
2006-07-03 Paolo Bonzini <bonzini@gnu.org> PR other/27063 * configure.in: Test subdir_requires and give an appropriate error message. * configure: Regenerate gcc: 2006-07-03 Paolo Bonzini <bonzini@gnu.org> PR other/27063 * configure.ac (for lang...): Simplify nesting of conditionals. Test subdir_requires for non-enabled languages. Move processing of lang_opt_files and lang_tree_fiels below that test. * configure: Regenerate. * doc/sourcebuild.texi (Front End Config): Document subdir_requires. gcc/objcp: 2006-07-03 Paolo Bonzini <bonzini@gnu.org> PR other/27063 * config-lang.in: Add subdir_requires. From-SVN: r115145
2006-06-21acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): When cross-compiling, put ↵Mark Mitchell1-3/+6
headers in $prefix/$target/include/c++. * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): When cross-compiling, put headers in $prefix/$target/include/c++. * configure: Regenerated. * configure.ac: Set gcc_gxx_include_dir to $target/include/c++ when cross-compiling. Do not substitute libstdcxx_incdir. * configure: Regenerated. From-SVN: r114845
2006-06-15Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS too.Paolo Bonzini1-0/+8
2006-06-15 Paolo Bonzini <bonzini@gnu.org> * Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS too. * Makefile.in: Regenerate. gcc: 2006-06-15 Paolo Bonzini <bonzini@gnu.org> * configure.ac (CFLAGS): Get them from the toplevel or from the configure invocation. * configure: Regenerate. * Makefile.in (CFLAGS): Substitute value provided by configure. From-SVN: r114673
2006-06-13Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL, html__strip_dir, html__mkdir_p.Carlos O'Donell1-0/+4
gcc/ 2006-06-13 Carlos O'Donell <carlos@codesourcery.com> * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL, html__strip_dir, html__mkdir_p. Enhance install-html target. * configure.ac: AC_SUBST datarootdir, docdir and htmldir. * configure: Regenerate. From-SVN: r114620
2006-06-13configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h> before ↵Roger Sayle1-0/+1
<ucontext.h> to define sigset_t required by... * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h> before <ucontext.h> to define sigset_t required by <sys/ucontext.h>. * configure: Regenerate. From-SVN: r114614
2006-06-06Makefile.in: Rename to htmldir to build_htmldir to avoid installing during ↵Mike Stump1-1/+19
build. * Makefile.in: Rename to htmldir to build_htmldir to avoid installing during build. java,fortran: * Make-lang.in: Rename to htmldir to build_htmldir to avoid installing during build. treelang: * Make-lang.in: Rename to gcc_htmldir to build_htmldir to avoid installing during build. From-SVN: r114426
2006-06-03Index: gcc/ChangeLogGeoffrey Keating1-0/+22
2006-06-02 Geoffrey Keating <geoffk@apple.com> * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with HAVE_DECL_SIGALTSTACK. (MC_FLD): New. (segv_handler): Use MC_FLD. * configure.ac: Check for a sigaltstack declaration. Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin. * configure: Regenerate. * config.in: Regenerate. Index: boehm-gc/ChangeLog 2006-06-02 Geoffrey Keating <geoffk@apple.com> * configure.ac: Define HAS_PPC_THREAD_STATE_R0, HAS_PPC_THREAD_STATE___R0, HAS_PPC_THREAD_STATE64_R0, HAS_PPC_THREAD_STATE64___R0, HAS_I386_THREAD_STATE_EAX, HAS_I386_THREAD_STATE___EAX. * configure: Regenerate. * include/gc_config.h.in: Regenerate. * darwin_stop_world.c (PPC_RED_ZONE_SIZE): Use standard Darwin macro names to determine value. (THREAD_STATE): New. (THREAD_FLD): New. (GC_push_all_stacks): Use THREAD_STATE and THREAD_FLD in both versions. From-SVN: r114339
2006-05-01configure.ac (gcc_cv_nm): Don't use an in-tree nm if build!=host.DJ Delorie1-2/+4
* configure.ac (gcc_cv_nm): Don't use an in-tree nm if build!=host. (gcc_cv_objdump): Likewise. * configure: Regenerated. From-SVN: r113447
2006-04-24revert: configure.ac: Completely disregard languages that are not enabled.Mark Mitchell1-4/+0
Revert: 2006-04-23 Mark Mitchell <mark@codesourcery.com> * configure.ac: Completely disregard languages that are not enabled. * configure: Regenerated. From-SVN: r113226
2006-04-23re PR c++/26534 ([4.1] bitfield wrong optimize)Mark Mitchell1-0/+4
2006-04-23 Mark Mitchell <mark@codesourcery.com> PR c++/26534 * c-common.h (c_build_bitfield_integer_type): Declare. * c-decl.c (c_build_bitfield_integer_type): Move to ... * c-common.c (c_build_bitfield_integer_type): ... here. 2006-04-23 Mark Mitchell <mark@codesourcery.com> PR c++/26534 * cp-tree.h (is_bitfield_expr_with_lowered_type): New function. * typeck.c (is_bitfield_expr_with_lowered_type): New function. (decay_conversion): Convert bitfield expressions to the correct type. (build_modify_expr): Remove spurious conversions. * class.c (layout_class_type): Modify the type of bitfields to indicate a limited range. * call.c (standard_conversion): Adjust the type of bitfield expressions used in an rvalue context. (build_conditional_expr): Likewise. 2006-04-23 Mark Mitchell <mark@codesourcery.com> PR c++/26534 * g++.dg/opt/bitfield1.C: New test. * g++.dg/compat/abi/bitfield1_main.C: Add -w. * g++.dg/compat/abi/bitfield1_x.C: Likewise. * g++.dg/compat/abi/bitfield1_y.C: Likewise. * g++.dg/compat/abi/bitfield2_main.C: Likewise. * g++.dg/compat/abi/bitfield2_x.C: Likewise. * g++.dg/compat/abi/bitfield2_y.C: Likewise. * g++.dg/abi/bitfield1.C: Add dg-warning markers. * g++.dg/abi/bitfield2.C: Likewise. * g++.dg/init/bitfield1.C: Likewise. From-SVN: r113199
2006-02-24Index: gcc/ChangeLogGeoffrey Keating1-1/+1
2006-02-24 Geoffrey Keating <geoffk@apple.com> * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS. * doc/invoke.texi (C++ Dialect Options): Document -fno-use-cxa-get-exception-ptr. * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1. * configure: Regenerate. * c.opt (fuse-cxa-get-exception-ptr): New. * c-opts.c (c_common_handle_option): Handle OPT_fuse_cxa_get_exception_ptr. * c-common.c (flag_use_cxa_atexit): Update documentation. (flag_use_cxa_get_exception_ptr): New. * c-common.h (flag_use_cxa_get_exception_ptr): New. * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve documentation. (C_COMMON_OVERRIDE_OPTIONS): New. Index: gcc/testsuite/ChangeLog 2006-02-24 Geoffrey Keating <geoffk@apple.com> * g++.dg/eh/uncaught1.C: Add dg-options for ppc-darwin. * g++.dg/eh/uncaught2.C: New. * g++.dg/eh/uncaught3.C: New. Index: gcc/cp/ChangeLog 2006-02-24 Geoffrey Keating <geoffk@apple.com> * except.c (expand_start_catch_block): Handle flag_use_cxa_get_exception_ptr. From-SVN: r111427
2006-02-23[multiple changes]Jakub Jelinek1-0/+33
2006-02-23 Jakub Jelinek <jakub@redhat.com> * configure.ac: Add --with{,out}-long-double-128 configure option. (TARGET_DEFAULT_LONG_DOUBLE_128): New test. * configure: Rebuilt. * config.in: Rebuilt. * doc/install.texi (Options specification): Document --with-long-double-128. * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128] (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128. * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128] (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128. 2006-02-23 Aldy Hernandez <aldyh@redhat.com> * config/s390/s390.c (override_options): Handle TARGET_DEFAULT_LONG_DOUBLE_128. * config/alpha/alpha.c (override_options): Handle TARGET_DEFAULT_LONG_DOUBLE_128. * config/sparc/sparc.c (sparc_override_options): Handle TARGET_DEFAULT_LONG_DOUBLE_128. From-SVN: r111381
2006-02-20configure.ac (target_list): Add install-info, dvi, html.Paolo Bonzini1-1/+1
2006-02-20 Paolo Bonzini <bonzini@gnu.org> * configure.ac (target_list): Add install-info, dvi, html. * configure: Regenerate. * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in, java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in, treelang/Make-lang.in: Do not use double-colon rules. From-SVN: r111304
2006-02-20re PR bootstrap/25670 (build fail with 'make all-gcc')Paolo Bonzini1-75/+79
2006-02-20 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/25670 * Makefile.tpl ([+compare-target+]): Print explanation messages. * Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, LANGUAGES): New flags_to_pass. * Makefile.tpl (BASE_FLAGS_TO_PASS): Support optional flags_to_pass. (EXTRA_GCC_FLAGS): Remove ADAFLAGS, BOOT_ADAFLAGS, LANGUAGES, BUILD_PREFIX, BUILD_PREFIX_1. * configure.in: (BUILD_PREFIX, BUILD_PREFIX_1): Don't substitute. * Makefile.def (bootstrap stage 1): Pass LIBCFLAGS too. * Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Override LIBCFLAGS too. * Makefile.tpl (configure-stage[+id+]-[+prefix+][+module+], all-stage[+id+]-[+prefix+][+module+], : Use $(current_stage) instead of `cat stage_current`. Always provide the `r' and `s' variables. (clean-stage[+id+]-[+prefix+][+module+]): Likewise, and make it into a single shell execution. (configure-[+prefix+][+module+], all-[+prefix+][+module+]): For bootstrapped modules, make the stage1 module if the build was not started yet, else build the current stage. (all-host, all-target): Omit bootstrapped modules (if bootstrapping). (all-build, all-host, all-target, [+make_target+]-host, [+make_target+]-target): Do not use \-continued lines. (target modules): Depend on stage_last, not all-gcc, if bootstrapping. (current_stage, restrap, stage_last): New. * Makefile.in: Regenerate. * configure: Regenerate. gcc: 2006-02-20 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/25476 * Makefile.in (LDFLAGS): Define from autoconf substitution. * Makefile.in (BOOTSTRAPPING): New. (quickstrap): New definition if BOOTSTRAPPING=yes. * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages. * configure.ac: Substitute all_selected_languages with the languages that were configured. For all the other variables except lang_specs_files, include all the languages in the tree. * configure: Regenerate. * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory, if there is one. Run the commands to run fixincludes in the same subshell. * doc/makefile.texi: Document new makefile targets from toplevel bootstrap. * doc/install.texi: Document exact conventions for searching target tools. Document --with-build-time-tools. Document toplevel bootstrap. Document something more about building an Ada cross-compiler. Don't list GNU Make requirements which affect all platforms. From-SVN: r111295
2006-02-14re PR bootstrap/26053 (Misdetection of COMDAT group support with GNU as and ↵Rainer Orth1-4/+7
non-GNU ld) PR bootstrap/26053 * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers support COMDAT group. * configure: Regenerate. From-SVN: r110985
2006-02-07configure.ac (TLS assembler check): Do not enable TLS by default on ↵Eric Botcazou1-0/+9
SPARC/Solaris before version 10. * configure.ac (TLS assembler check): Do not enable TLS by default on SPARC/Solaris before version 10. * configure: Regenerate. From-SVN: r110707
2006-02-06configure.ac: Unconditionally disable decimal float by default.Ben Elliston1-11/+2
* configure.ac: Unconditionally disable decimal float by default. * configure: Regenerate. From-SVN: r110637
2006-01-29configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.Gabriel Dos Reis1-0/+17
* configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported. * Makefile.in (CXX_COMPAT_WARN): Define. * configure: Regenerate. cp/ * Make-lang.in (cp-warn): Include CXX_COMPAT_WARN. * repo.c (extract_string, afgets): Use cast when converting from void *. From-SVN: r110380
2006-01-29c.opt: Add -W(no-)overlength-strings.Zack Weinberg1-2/+15
gcc: * c.opt: Add -W(no-)overlength-strings. * doc/invoke.texi: Document it. * c-opts.c (c_common_handle_option): -pedantic implies -Woverlength-strings, if not explicitly disabled already. (c_common_post_options): -Woverlength-strings defaults to off, and is always off for C++. * c-common.c (fix_string_type): Issue warning about strings longer than is portable only if warn_overlength_strings. Rearrange code a little for clarity. * configure.in: Check for -Wno-overlength-strings as well before enabling -pedantic in stage 1. * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings. (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete. * genconditions.c (write_header, write_one_condition) (write_conditions, write_writer): Consolidate very long strings that were broken up to fit in C89 portable limit. Don't use printf when fputs will do. gcc/testsuite: * gcc.dg/Woverlength-strings.c * gcc.dg/Woverlength-strings-pedantic-c89.c * gcc.dg/Woverlength-strings-pedantic-c89-no.c * gcc.dg/Woverlength-strings-pedantic-c99.c * gcc.dg/Woverlength-strings-pedantic-c99-no.c: New tests. ================================================================== From-SVN: r110360
2006-01-26configure.in: Set with_gnu_as, with_gnu_ld, with_newlib earlier.Paolo Bonzini1-57/+74
2006-01-26 Paolo Bonzini <bonzini@gnu.org> * configure.in: Set with_gnu_as, with_gnu_ld, with_newlib earlier. Set md_exec_prefix. Use ACX_CHECK_INSTALLED_TARGET_TOOL to find the assembler, linker and binutils. * configure: Regenerate. 2006-01-26 Paolo Bonzini <bonzini@gnu.org> * config/acx.m4 (NCN_STRICT_CHECK_TARGET_TOOLS): Test $with_build_time_tools. (ACX_PATH_SEP): New. (ACX_TOOL_DIRS): Move here from the gcc directory. (ACX_CHECK_INSTALLED_TARGET_TOOL): New. (GCC_TARGET_TOOL): Do not use a host tool if we found a target tool with a complete path in either $with_build_time_tools or $exec_prefix. 2006-01-26 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Expect target tools paths to be passed from the toplevel and wrap the detection into AS_SET_VAR_IF. Extract side-effects out of AS_SET_VAR_IF. * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove. From-SVN: r110266
2006-01-25re PR libgcj/25816 (Configure detects TLS, but glibc does not support it.)David Daney1-3/+22
PR java/25816 * configure.ac (enable_tls): New enable option. (HAVE_AS_TLS): Don't do assembler check if enable_tls set. * configure: Regenerate. * doc/install.texi (--enable-tls): Document new option. (--disable-tls): Ditto. From-SVN: r110199
2005-12-21configure.ac: Enable C extension for decimal float if invoked with ↵Ben Elliston1-0/+32
--enable-decimal-float. * configure.ac: Enable C extension for decimal float if invoked with --enable-decimal-float. * doc/install.texi (Configuration): Document it. * configure, config.in: Regenerate. From-SVN: r108887
2005-12-07sourcebuild.texi (all.build, [...]): Remove.Rafael Ávila de Espíndola1-2/+2
gcc/ * doc/sourcebuild.texi (all.build, install-normal): Remove. * configure.ac: Remove all.build and install-normal from target_list * configure: Regenerate. * Makefile.in (install): Don't depend on install-normal. gcc/java/ * Make-lang.in (java.all.build, java.install-normal): Remove. gcc/objc/ * Make-lang.in (objc.all.build, objc.install-normal): Remove. gcc/objcp/ * Make-lang.in (obj-c++.all.build, obj-c++.install-normal): Remove. gcc/cp/ * Make-lang.in (c++.all.build, c++.install-normal): Remove. gcc/ada/ * Make-lang.in (ada.install-normal): Remove. gcc/fortran/ * Make-lang.in (fortran.all.build, fortran.install-normal): Remove. gcc/treelang/ * Make-lang.in (treelang.all.build, treelang.install-normal): Remove. From-SVN: r108158
2005-11-24configure.ac: Require at least texinfo 4.4.Uros Bizjak1-1/+1
* configure.ac: Require at least texinfo 4.4. * configure: Regenerate. * doc/install.texi (Tools/packages necessary for building GCC): Update required version of texinfo to at least 4.4. (Installing GCC: Building): Update required version of texinfo to at least 4.4. (Installing GCC: Final installation): Update required version of texi2dvi to at least 4.4. (Host/target specific installation notes for GCC): Update required version of texinfo to at least 4.4. From-SVN: r107465
2005-11-15configure.ac: Use .machine power5 not power5x.David Edelsohn1-1/+1
* configure.ac: Use .machine power5 not power5x. * configure: Regenerate. From-SVN: r107064
2005-11-15invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf, -mpopcntb, -mfprnd.David Edelsohn1-0/+15
* doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf, -mpopcntb, -mfprnd. Add -mcpu=power5+. * configure.ac: Add test for FP rounding instructions. * configure: Regenerate. * config.in: Regenerate. * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if features enabled. * config/rs6000/rs6000.opt (mfprnd): New. * config/rs6000/rs6000.c (processor_target_table): Add power5+. (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND. * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+. (TARGET_FPRND): New. * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP, UNSPEC_FRIZ): New. (btrunc<mode>2): New. (ceil<mode>2): New. (floor<mode>2): New. (round<mode>2): New. From-SVN: r106938
2005-11-09re PR other/4372 (#pragma weak pthread* inclusion causes applications to ↵Alexandre Oliva1-0/+5
crash without a linker error when one forgets to link with -lpthread) PR other/4372 * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New. (TREE_DEPRECATED): Adjust comment. Check for a DECL. * c-common.c (handle_weakref_attribute): New. (c_common_attribute_table): Add weakref. * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support in the assembler. * configure, config.in: Rebuilt. * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF. * doc/extend.texi: Document weakref attribute. * varasm.c (ultimate_transparent_alias_target): New (assemble_name): Use it. (weak_finish_1): Split out of... (weak_finish): ... and deal with weakrefs in... (weakref_targets): ... new list. (globalize_decl): Clean up weakref_targets. (do_assemble_alias): Handle weakrefs. (finish_aliases_1): Do not reject weakrefs to external symbols. (assemble_alias): Handle weakrefs. From-SVN: r106703
2005-11-07configure.ac: Enable checking assembler dwarf2 support for bfin target.Jie Zhang1-1/+1
* configure.ac: Enable checking assembler dwarf2 support for bfin target. * configure: Regenerate. From-SVN: r106598
2005-11-04configure.ac: Add test for ARM TLS support.Daniel Jacobowitz1-1/+14
* configure.ac: Add test for ARM TLS support. * configure: Regenerated. * config/arm/arm-protos.h (legitimize_tls_address) (arm_tls_referenced_p, tls_mentioned_p) (arm_output_addr_const_extra): New prototypes. (thumb_legitimize_pic_address): Delete. * config/arm/arm.c: Include "gt-arm.h". (enum tls_reloc): New. (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand) (pcrel_constant_p, get_tls_get_addr, arm_load_tp) (arm_call_tls_get_addr, legitimize_tls_address) (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p) (arm_init_tls_builtins, arm_emit_tls_decoration) (arm_output_addr_const_extra): New functions. (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM) (TARGET_HAVE_TLS): Define. (target_thread_pointer): New. (arm_override_options): Handle -mtp=. (legitimize_pic_address): Ignore UNSPECs. (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC relative symbols. (arm_legitimize_address, thumb_legitimize_address): Handle TLS. (tls_get_addr_libfunc): New variable. (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS. (arm_init_builtins): Call arm_init_tls_builtins. (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER. (arm_encode_section_info): Call default_encode_section_info. * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define. (enum arm_tp_type): New. (target_thread_pointer): Add declaration. (LEGITIMATE_CONSTANT_P): Handle TLS. (LEGITIMATE_PIC_OPERAND_P): Handle TLS. (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra. (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER. * config/arm/arm.md: Add UNSPEC_TLS. (movsi): Handle TLS. (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for non-PIC. (tls_load_dot_plus_eight): New insn and a peephole to create it. (load_tp_hard, load_tp_soft): New insns. * arm.opt: Add -mtp=. * doc/invoke.texi (ARM Options): Document -mtp. Co-Authored-By: Paul Brook <paul@codesourcery.com> Co-Authored-By: Phil Blundell <pb@reciva.com> From-SVN: r106489
2005-10-10re PR target/12098 (gcc build fails without gas on ia64-hpux: error: invalid ↵Steve Ellcey1-0/+8
switch '-x') PR target/12098 * configure.ac: Move gas check from mips specific case to common case. Do check for GNU as for mips*-*-* and *-*-hpux* targets. * configure: Regenerate * doc/install.texi: Update. From-SVN: r105200
2005-10-06Makefile.def (flags_to_pass): Add OBJDUMP_FOR_TARGET.Daniel Jacobowitz1-22/+11
./ * Makefile.def (flags_to_pass): Add OBJDUMP_FOR_TARGET. * Makefile.tpl (BASE_TARGET_EXPORTS): Add OBJDUMP. (OBJDUMP_FOR_TARGET, CONFIGURED_OBJDUMP_FOR_TARGET) (USUAL_OBJDUMP_FOR_TARGET): New. (EXTRA_TARGET_FLAGS): Add OBJDUMP. * configure.in: Check for $OBJDUMP_FOR_TARGET. * configure, Makefile: Regenerated. gcc/ * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables here. Use AC_PATH_PROG for environment variables instead of test -x. * configure.ac: Update calls to gcc_AC_CHECK_TOOL. Use it for objdump also. * configure: Regenerated. From-SVN: r105038
2005-08-24configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.Alan Modra1-2/+2
* configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch. * configure: Regenerate. From-SVN: r103425
2005-08-19collect2.c (dup2): Delete.Kaveh R. Ghazi1-1/+1
* collect2.c (dup2): Delete. * configure.ac: Don't check for dup2. * config.in, configure: Regenerate. From-SVN: r103263
2005-08-16aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.Kaveh R. Ghazi1-1/+0
* aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete. * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR. * system.h (HOST_PTR_PRINTF): Don't define, poison it. * bitmap.c, c-decl.c, config/i386/i386-interix.h, config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c: Delete HOST_PTR_PRINTF. * configure, config.in: Regenerate. cp: * name-lookup.c, ptree.c: Delete HOST_PTR_PRINTF. From-SVN: r103135
2005-07-29re PR bootstrap/23131 (Fixincludes on cross-build is scanning /usr/include)Mark Mitchell1-8/+12
PR bootstrap/23131 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty string. * configure: Regenerated. From-SVN: r102562
2005-07-25gcc.c (option_map): Add --sysroot.Mark Mitchell1-4/+13
* gcc.c (option_map): Add --sysroot. (process_command): Handle --sysroot. (display_help): Document it. * doc/cppopts.tex (-isysroot): Document. * doc/invoke.texi (--sysroot): Document. * doc/install.texi (--with-build-sysroot): Document. * Makefile.in (inhibit_libc): New variable. (INHIBIT_LIBC_CFLAGS): Likewise. (LIBGCC2_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS). (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS). ($(T)crtbegin.o): Do not use @inhibit_libc@. ($(T)crtend.o): Likewise. ($(T)crtbeginS.o): Do not use @inhibit_libc@. ($(T)crtendS.o): Likewise. ($(T)crtbeginT.o): Do not use @inhibit_libc@. ($(T)crtendT.o): Likewise. (stmp-fixinc): Do not complain about missing headers if inhibit_libc. * configure.ac (inhibit_libc): Set it to true/false. (--with-build-sysroot): New option. Use it to set SYSTEM_HEADER_DIR. * configure: Regenerated. From-SVN: r102367
2005-07-24Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.Kaveh R. Ghazi1-1/+17
* Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute. * configure.ac: Check for -Wmissing-format-attribute. * configure: Regenerate. From-SVN: r102326
2005-07-08Index: ChangeLogGeoffrey Keating1-2/+3
2005-07-07 Geoffrey Keating <geoffk@apple.com> * config.gcc (*-*-darwin*): Only one target-specific header file for generic darwin. (powerpc-*-darwin*): Add version-specific header files. * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp. * config.in: Regenerate. * configure: Regenerate. * gcc.c: Include xregex.h. (version_compare_spec_function): New. (spec_function): Add version-compare. (replace_outfile_spec_function): Reformat comment. (compare_version_strings): New. * config/darwin-c.c (version_as_macro): New. (builtin_define): New. (darwin_cpp_builtins): New. * config/darwin-protos.h (darwin_cpp_builtins): New. * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here. (LIB_SPEC): Make unconditional, update comment. (TARGET_C99_FUNCTIONS): Define. * config/darwin.opt: Sort. (mmacosx-version-min=): New. * config/darwin7.h: Delete. * config/darwin8.h: Delete. * config/i386/darwin.h (): Call darwin_cpp_builtins. * config/rs6000/darwin.h (): Call darwin_cpp_builtins. (TARGET_C99_FUNCTIONS): Define. * config/rs6000/darwin7.h: New. * config/rs6000/darwin8.h: New. * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min= (-mmacosx-version-min): Document. Index: testsuite/ChangeLog 2005-07-07 Geoffrey Keating <geoffk@apple.com> * gcc.dg/darwin-version-1.c: New. * gcc.dg/builtins-18.c: On Darwin, needs -mmacosx-version-min=10.3. * gcc.dg/builtins-20.c: Likewise. * gcc.dg/builtins-53.c: Likewise. * gcc.dg/torture/builtins-convert-1.c: Likewise. * gcc.dg/torture/builtins-convert-2.c: Likewise. * gcc.dg/torture/builtins-convert-3.c: Likewise. * gcc.dg/torture/builtins-power-1.c: Likewise. * gcc.dg/builtins-config.h: Complain if macosx-version-min not set on Darwin. From-SVN: r101753
2005-07-06configure.ac (hppa*-*-linux*): Check for a TLS capable gas.Randolph Chung1-0/+29
* configure.ac (hppa*-*-linux*: Check for a TLS capable gas. * configure: Regenerate. * config/pa/pa-protos.h (tls_symbolic_operand): Declare. (pa_tls_referenced_p): Declare. * config/pa/pa.c (legitimize_pic_address): Reject TLS operands. (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New. (legitimize_tls_address): New. (hppa_legitimize_address): Handle TLS addresses. (pa_tls_symbol_ref_1, pa_tls_referenced_p): New. (TARGET_CANNOT_FORCE_CONST_MEM): Define. (emit_move_sequence): Handle TLS addresses. (pa_encode_section_info): Call default handler to handle common sections. * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New. (CONSTANT_ADDRESS_P): Reject TLS operands. (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define. * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM) (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE) (UNSPEC_TLSLE): Define new constants. (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New. * config/pa/predicates.md (symbolic_operand): Reject TLS operands. (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand) (tie_symbolic_operand, tle_symbolic_operand): New From-SVN: r101648
2005-07-06aclocal.m4: Update macros for autoconf 2.59 style.Kelley Cook1-30/+30
2005-07-06 Kelley Cook <kcook@gcc.gnu.org> * aclocal.m4: Update macros for autoconf 2.59 style. * configure.ac: Likewise. From-SVN: r101647
2005-07-02Makefile.def (target_modules): Add libssp.Jakub Jelinek1-0/+39
* Makefile.def (target_modules): Add libssp. * configure.in (target_libraries): Add target-libssp. * configure: Rebuilt. * Makefile.in: Rebuilt. gcc/ * gcc.c (LINK_SSP_SPEC): Define. (link_ssp_spec): New variable. (LINK_COMMAND_SPEC): Add %(link_ssp). (static_specs): Add link_ssp_spec. * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test. * configure: Rebuilt. * config.in: Rebuilt. * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define. * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise. * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise. * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise. * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test): If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp. -0x7008(2) instead of reading __stack_chk_guard variable. * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change number. (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants. (stack_protect_set, stack_protect_test): Use *_tls* patterns if TARGET_THREAD_SSP_OFFSET is defined. (stack_tls_protect_set_si, stack_tls_protect_set_di, stack_tls_protect_test_si, stack_tls_protect_test_di): New insns. Revert: 2005-06-27 Richard Henderson <rth@redhat.com> * libgcc-std.ver (GCC_4.1.0): New. * libgcc.h (__stack_chk_guard): Declare. (__stack_chk_fail, __stack_chk_fail_local): Declare. * libgcc2.c (L_stack_chk, L_stack_chk_local): New. * mklibgcc.in (lib2funcs): Add them. From-SVN: r101531
2005-06-25Update FSF address.Kelley Cook1-2/+2
From-SVN: r101317
2005-06-16Alan Modra <amodra.bigpond.net.au>Paolo Bonzini1-159/+22
2005-06-16 Paolo Bonzini <bonzini@gnu.org> Daniel Jacobowitz <dan@codesourcery.com> Alan Modra <amodra.bigpond.net.au> * configure.ac (gcc_version): Set near the beginning. (as, ld, nm): Do not link in-tree tools. Set gcc_cv_* if tools are found in the tree. Use gcc_AC_PROG to find the tools in the system. (objdump): Do not look for it. * Makefile.in (NM_FOR_TARGET): Point to ./nm. (ORIGINAL_AS_FOR_TARGET, ORIGINAL_LD_FOR_TARGET, ORIGINAL_NM_FOR_TARGET): Substitute from autoconf. (as, ld, nm): New rules. (libgcc.mk): Depend on them. * aclocal.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL, gcc_AC_BUILD_EXEEXT): New. (gcc_AC_CHECK_PROG_VER): Use gcc_AC_BUILD_EXEEXT. * configure: Regenerate. Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com> From-SVN: r101084
2005-06-03configure.ac: Check declaration for asprintf, needed by libiberty.h.Gabriel Dos Reis1-1/+1
* configure.ac: Check declaration for asprintf, needed by libiberty.h. * configure: Regenerate. * config.in: Likewise. From-SVN: r100555
2005-06-01configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.Richard Henderson1-0/+8
* configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New. * config.in, configure: Rebuild. * config/alpha/alpha.c (print_operand): Add 'j'. * alpha.md (divmodsi_internal_er_1): Use it. (divmoddi_internal_er_1): Likewise. From-SVN: r100435
2005-06-01configure.ac: Add --enable-secureplt.Alan Modra1-0/+22
* configure.ac: Add --enable-secureplt. (HAVE_AS_REL16): Test for R_PPC_REL16 relocs. * config.in: Regenerate. * configure: Regenerate. * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add rs6000/secureplt.h to tm_file when enable_secureplt. * doc/invoke.texi (msecure-plt, mbss-plt): Document. * doc/install.texi: Document --enable-targets and --enable-secureplt. Correct xrefs to "Using the GNU Compiler Collection (GCC)". * config/rs6000/secureplt.h: New file. * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define. (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without assembler support. (CC1_SECURE_PLT_DEFAULT_SPEC): Define. (CC1_SPEC): Delete duplicate mno-sdata. Invoke cc1_secure_plt_default. (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default. * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options. * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define. * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle TARGET_SECURE_PLT got register load sequence. (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when TARGET_SECURE_PLT. (rs6000_elf_declare_function_name): Don't emit toc address offset word when TARGET_SECURE_PLT. * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*. (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT. (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns. (call, call_value): Mark pic_offset_table_rtx used for sysv pic and TARGET_SECURE_PLT. (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT and -fPIC. * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31". (__trampoline_setup): Likewise. Init r30 before plt call. From-SVN: r100415
2005-05-25configure.ac: Don't use gcc_AC_C_LONG_LONG.Kelley Cook1-8/+2
2005-05-24 Kelley Cook <kcook@gcc.gnu.org> * configure.ac: Don't use gcc_AC_C_LONG_LONG. Check for existence of long long and __int64 before determining their size. * aclocal.m4: Delete gcc_AC_C_LONG_LONG. * configure, config.h.in: Regenerate. From-SVN: r100131
2005-05-17configure.ac: Remove spaces around assignment to gcc_cv_ld_sysroot.Daniel Jacobowitz1-1/+1
* configure.ac: Remove spaces around assignment to gcc_cv_ld_sysroot. * configure: Regenerated. From-SVN: r99833