summaryrefslogtreecommitdiff
path: root/gcc/doc/invoke.texi
Commit message (Collapse)AuthorAgeFilesLines
* Add -march=core-avx-i.hjl2011-08-051-0/+4
| | | | | | | | | | | 2011-08-05 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.c (processor_alias_table): Add core-avx-i. * doc/invoke.texi: Document core-avx-i. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177429 138bc75d-0d04-0410-961f-82ee72b054a4
* Add -mlzcnt.hjl2011-08-011-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/ 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com> PR target/49547 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h. (x86_64-*-*): Likewise. * config/i386/i386.opt (mlzcnt): New. * config/i386/abmintrin.h: File removed. (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ... * config/i386/lzcntintrin.h: ... here. New file. (__lzcnt): Rename to ... (__lzcnt32): ... this. * config/i386/bmiintrin.h (head): Update copyright year. (__lzcnt_u16): Removed. (__lzcnt_u32): Likewise. (__lzcnt_u64): Likewise. * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__ is defined, remove abmintrin.h. * config/i386/cpuid.h (bit_LZCNT): New. * config/i386/driver-i386.c (host_detect_local_cpu): Detect LZCNT feature. * config/i386/i386-c.c (ix86_target_macros_internal): Define __LZCNT__ if needed. * config/i386/i386.c (ix86_target_string): New option -mlzcnt. (ix86_option_override_internal): Handle LZCNT option. (ix86_valid_target_attribute_inner_p): Likewise. (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update. * config/i386/i386.h (TARGET_LZCNT): New. (CLZ_DEFINED_VALUE_AT_ZERO): Update. * config/i386/i386.md (clz<mode>2): Update insn constraint. (clz<mode>2_lzcnt): Likewise. * doc/invoke.texi: Mention -mlzcnt option. * doc/extend.texi: Likewise. gcc/testsuite/ 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com> * gcc.target/i386/i386.exp (check_effective_target_lzcnt): New. * gcc.target/i386/lzcnt-1.c: New test. * gcc.target/i386/lzcnt-2.c: Likewise. * gcc.target/i386/lzcnt-2a.c: Likewise. * gcc.target/i386/lzcnt-3.c: Likewise. * gcc.target/i386/lzcnt-4.c: Likewise. * gcc.target/i386/lzcnt-4a.c: Likewise. * gcc.target/i386/lzcnt-5.c: Likewise. * gcc.target/i386/lzcnt-6.c: Likewise. * gcc.target/i386/lzcnt-6a.c: Likewise. * gcc.target/i386/lzcnt-check.h: Likewise. * gcc.target/i386/sse-12.c (dg-compile): Add -mlzcnt. * gcc.target/i386/sse-13.c: Likewise. * gcc.target/i386/sse-14.c: Likewise. * g++.dg/other/i386-2.C: Likewise. * g++.dg/other/i386-3.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177034 138bc75d-0d04-0410-961f-82ee72b054a4
* * params.h (ALLOW_STORE_DATA_RACES): New.aldyh2011-07-271-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * params.def (PARAM_ALLOW_STORE_DATA_RACES): New. * Makefile.in (expr.o): Depend on PARAMS_H. * machmode.h (get_best_mode): Add argument. * fold-const.c (optimize_bit_field_compare): Add argument to get_best_mode. (fold_truthop): Same. * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field. * expr.c (emit_group_store): Same. (copy_blkmode_from_reg): Same. (write_complex_part): Same. (optimize_bitfield_assignment_op): Add argument. Add argument to get_best_mode. (get_bit_range): New. (expand_assignment): Calculate maxbits and pass it down accordingly. (store_field): New argument. (expand_expr_real_2): New argument to store_field. Include params.h. * expr.h (store_bit_field): New argument. * stor-layout.c (get_best_mode): Restrict mode expansion by taking into account maxbits. * calls.c (store_unaligned_arguments_into_pseudos): New argument to store_bit_field. * expmed.c (store_bit_field_1): New argument. Use it. (store_bit_field): Same. (store_fixed_bit_field): Same. (store_split_bit_field): Same. (extract_bit_field_1): Pass new argument to get_best_mode. (extract_bit_field): Same. * stmt.c (store_bit_field): Pass new argument to store_bit_field. * doc/invoke.texi: Document parameter allow-store-data-races. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176824 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.jason2011-07-231-0/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176670 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/32998jakub2011-07-221-2/+19
| | | | | | | | | | | | | | | | | | | * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New options. * dwarf2out.c: Include opts.h. (dchar_p): New typedef. Define heap VEC for it. (producer_string): New variable. (gen_producer_string): New function. (gen_compile_unit_die): Use it. (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed. * Makefile.in (dwarf2out.o): Depend on $(OPTS_H). * doc/invoke.texi: Document -grecord-gcc-switches and -gno-record-gcc-switches, add a -grecord-gcc-switches reference to -frecord-gcc-switches description. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176652 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-18 Martin Jambor <mjambor@suse.cz>jamborm2011-07-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general comments. (ipcp_values_pool): Declare. (ipcp_sources_pool): Likewise. (ipcp_lattice): Changed to forward declaration. (ipa_param_descriptor): Removed fields ipcp_lattice, types and cannot_devirtualize. (ipa_node_params): New fields descriptors, lattices, known_vals, clone_for_all_contexts and node dead, removed fields params and count_scale. (ipa_set_param_count): Removed. (ipa_get_param_count): Made to work with descriptors vector. (ipa_get_param): Updated. (ipa_param_cannot_devirtualize_p): Removed. (ipa_param_types_vec_empty): Likewise. (ipa_set_param_used): New function. (ipa_get_param_used): Updated to use descriptors vector. (ipa_func_list): Removed. (ipa_init_func_list): Removed declaration. (ipa_push_func_to_list_1): Likewise. (ipa_pop_func_from_list): Likewise. (ipa_push_func_to_list): Removed. (ipa_lattice_from_jfunc): Remove declaration. (ipa_get_jf_pass_through_result): Declare. (ipa_get_jf_ancestor_result): Likewise. (ipa_value_from_jfunc): Likewise. (ipa_get_lattice): Update. (ipa_lat_is_single_const): New function. * ipa-prop.c (ipa_push_func_to_list_1): Removed. (ipa_init_func_list): Likewise. (ipa_pop_func_from_list): Likewise. (ipa_get_param_decl_index): Fix coding style. (count_formal_params): Removed. (count_formal_params_1): Renamed to count_formal_params. (ipa_populate_param_decls): Update to use descriptors vector. (ipa_initialize_node_params): Likewise. (visit_ref_for_mod_analysis): Use ipa_set_param_used. (ipa_analyze_params_uses): Likewise. (ipa_free_node_params_substructures): Likewise and free also lattices and known values. (duplicate_array): Removed. (ipa_edge_duplication_hook): Add the new edge to the list of edge clones. (ipa_node_duplication_hook): Update to use new lattices. (ipa_free_all_structures_after_ipa_cp): Free alloc pools. (ipa_free_all_structures_after_iinln): Likewise. (ipa_write_node_info): Update to use new lattices. (ipa_read_node_info): Likewise. (ipa_get_jf_pass_through_result): New function. (ipa_get_jf_ancestor_result): Likewise. (ipa_value_from_jfunc): Likewise. (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc. * ipa-cp.c: Reimplemented. * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed. (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter. (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise. * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies. * doc/invoke.texi (devirt-type-list-size): Removed description. (ipa-cp-value-list-size): Added description. * testsuite/gcc.dg/ipa/ipa-1.c: Updated testcase dump scan. * testsuite/gcc.dg/ipa/ipa-2.c: Likewise. * testsuite/gcc.dg/ipa/ipa-3.c: Likewise and made functions static. * testsuite/gcc.dg/ipa/ipa-4.c: Updated testcase dump scan. * testsuite/gcc.dg/ipa/ipa-5.c: Likewise. * testsuite/gcc.dg/ipa/ipa-7.c: Likewise. * testsuite/gcc.dg/ipa/ipa-8.c: Updated testcase dump scan. * testsuite/gcc.dg/ipa/ipacost-1.c: Likewise. * testsuite/gcc.dg/ipa/ipacost-2.c: Likewise and increased sizes of some functions. * testsuite/gcc.dg/ipa/ipcp-1.c: New test. * testsuite/gcc.dg/ipa/ipcp-2.c: Likewise. * testsuite/gcc.dg/tree-ssa/ipa-cp-1.c: Updated testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176424 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/bernds2011-07-151-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/invoke.texi (C6X Options): New section. * doc/md.texi (TI C6X family): New section. * config.gcc: Handle tic6x, in particular tic6x-*-elf and tic6x-*-uclinux. * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm, count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME): Provide C6X definitions. * config/c6x/c6x.md: New file. * config/c6x/constraints.md: New file. * config/c6x/predicates.md: New file. * config/c6x/c6x-sched.md.in: New file. * config/c6x/c6x-sched.md: New file. * config/c6x/gensched.sh: New file. * config/c6x/c6x-mult.md.in: New file. * config/c6x/genmult.sh: New file. * config/c6x/c6x-mult.md: New file. * config/c6x/sync.md: New file. * config/c6x/c6x-protos.h: New file. * config/c6x/sfp-machine.h: New file. * config/c6x/c6x.c: New file. * config/c6x/c6x.h: New file. * config/c6x/crti.s: New file. * config/c6x/crtn.s: New file. * config/c6x/lib1funcs.asm: New file. * config/c6x/c6x-modes.def: New file. * config/c6x/genopt.sh: New file. * config/c6x/c6x.opt: New file. * config/c6x/c6x-tables.opt: New file. * config/c6x/c6x-opts.h: New file. * config/c6x/c6x-isas.def: New file. * config/c6x/elf.h: New file. * config/c6x/elf-common.h: New file. * config/c6x/uclinux-elf.h: New file. * config/c6x/t-c6x: New file. * config/c6x/t-c6x-elf: New file. * config/c6x/t-c6x-uclinux: New file. * config/c6x/t-c6x-softfp: New file. * config/c6x/gtd.c: New file. * config/c6x/gtf.c: New file. * config/c6x/ltd.c: New file. * config/c6x/ltf.c: New file. * config/c6x/ged.c: New file. * config/c6x/gef.c: New file. * config/c6x/led.c: New file. * config/c6x/lef.c: New file. * config/c6x/eqd.c: New file. * config/c6x/eqf.c: New file. * config/c6x/libgcc-c6xeabi.ver: New file. contrib/ * gcc_update: Add C6X generated files. * contrib/config-list.mk: Add c6x-elf and c6x-uclinux. libgcc/ * config.host: Handle tic6x-*-*. * config/c6x/c6x-abi.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176308 138bc75d-0d04-0410-961f-82ee72b054a4
* Change -mno-r11 to -mno-pointers-to-nested-functionsmeissner2011-07-131-8/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176253 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove -mfused-madd and add -mfma.hjl2011-07-131-11/+6
| | | | | | | | | 2011-07-13 H.J. Lu <hongjiu.lu@intel.com> * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176230 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial x32 support.hjl2011-07-071-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-07-07 H.J. Lu <hongjiu.lu@intel.com> * config.gcc: Support --with-multilib-list for x86 Linux targets. * configure.ac: Mention x86-64 for --with-multilib-list. * configure: Regenerated. * config/i386/gnu-user64.h (SPEC_64): Support x32. (SPEC_32): Likewise. (ASM_SPEC): Likewise. (LINK_SPEC): Likewise. (TARGET_THREAD_SSP_OFFSET): Likewise. (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise. (SPEC_X32): New. * config/i386/i386.h (TARGET_X32): New. (TARGET_LP64): New. (LONG_TYPE_SIZE): Likewise. (POINTER_SIZE): Likewise. (POINTERS_EXTEND_UNSIGNED): Likewise. (OPT_ARCH64): Support x32. (OPT_ARCH32): Likewise. * config/i386/i386.opt (mx32): New. * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New. (GLIBC_DYNAMIC_LINKERX32): Likewise. * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise. (GLIBC_DYNAMIC_LINKERX32): Likewise. * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New. (BIONIC_DYNAMIC_LINKERX32): Likewise. (GNU_USER_DYNAMIC_LINKERX32): Likewise. * config/i386/t-linux64: Support TM_MULTILIB_CONFIG. * doc/install.texi: Document --with-multilib-list for Linux/x86-64. * doc/invoke.texi: Document -mx32. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175984 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/rsandifo2011-07-071-1/+1
| | | | | | | | | | * doc/invoke.texi (mwords-little-endian): Deprecate. * config/arm/arm.opt (mwords-little-endian): Likewise. * config/arm/arm.c (arm_option_override): Warn about the deprecation of -mwords-little-endian. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175981 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c (%[Spec]): Don't document.jsm282011-07-071-3/+0
| | | | | | | | | (struct spec_list): Update comment. (do_spec_1): Don't handle %[Spec]. * doc/invoke.texi (%[@var{name}]): Remove documentation of spec. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175970 138bc75d-0d04-0410-961f-82ee72b054a4
* Add -mno-r11 support to PowerPC 64meissner2011-07-061-1/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175943 138bc75d-0d04-0410-961f-82ee72b054a4
* Add --param case-values-thresholdmeissner2011-07-051-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175878 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-29 Richard Guenther <rguenther@suse.de>rguenth2011-06-291-0/+2
| | | | | | | | | | | | | * doc/invoke.texi: Document -scev dump modifier. * tree-pass.h (TDF_SCEV): New dump flag. * tree-dump.c (dump_option_value_in): Add scev. * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV. * tree-scalar-evolution.c: Likewise. * gcc.dg/tree-ssa/loop-17.c: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175642 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/invoke.texi (ARM Options): Document -mtls-dialect option.nathan2011-06-221-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/install.texi (Configuration): Document --with-tls. * config.gcc (arm*-*-linux*): Default to gnu tls. (arm*-*-*): Add --with-tls option. (all_defaults): Add 'tls'. * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ. (arm_call_tls_get_addr): Clean up. Assert not tls descriptor. (arm_tls_descseq_addr): New. (legitimize_tls_address): Add tlsdesc support. (arm_cannot_copy_insn_p): Check for tlscall. (arm_emit_tls_decoration): Likewise. * config/arm/arm.h (TARGET_GNU2_TLS): New. (OPTION_DEFAULT_SPECS): Add with-tls support. * config/arm/arm.md (R1_REGNUM): Define. (tlscall): New. * config/arm/arm.opt (tls_type): New enumeration type and values. (mtls-dialect): New switch. * config/arm/arm-opts.h (enum tls_type): New. testsuite/ * gcc.target/arm/tlscall.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175287 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>rearnsha2011-06-141-1/+3
| | | | | | | | Mingfeng Wu <mingfeng@faraday-tech.com> * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175017 138bc75d-0d04-0410-961f-82ee72b054a4
* re checking -fdump-passesdavidxl2011-06-101-1/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174930 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/ebotcazou2011-06-101-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/invoke.texi (SPARC options): Add -mflat. * config/sparc/sparc.opt: Likewise. * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter. (sparc_flat_expand_prologue): Declare. (sparc_flat_expand_epilogue): Likewise. * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float. (CPP_ENDIAN_SPEC): Replace with... (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float. (CPP_SPEC): Adjust to above change. (EXTRA_SPECS): Likewise. (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling. (INCOMING_REGNO): Likewise. (OUTGOING_REGNO): Likewise. (LOCAL_REGNO): Likewise. (SETUP_FRAME_ADDRESSES): Likewise. (FIXED_REGISTERS): Set 0 for %fp. (CALL_USED_REGISTERS): Likewise. (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf. (EXIT_IGNORE_STACK): Define to 1 unconditionally. (RETURN_ADDR_REGNUM): Define. (RETURN_ADDR_RTX): Use it. (INCOMING_RETURN_ADDR_REGNUM): Define. (INCOMING_RETURN_ADDR_RTX): Use it. (DWARF_FRAME_RETURN_COLUMN): Likewise. (EH_RETURN_REGNUM): Define. (EH_RETURN_STACKADJ_RTX): Use it. (EH_RETURN_HANDLER_RTX): Delete. (EPILOGUE_USES): Use them and add TARGET_FLAT handling. * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs): Delete. (struct machine_function): Add frame_size, apparent_frame_size, frame_base_reg, frame_base_offset, n_global_fp_regs and save_local_in_regs_p fields. (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg, sparc_frame_base_offset, sparc_n_global_fp_regs, sparc_save_local_in_regs_p): New macros. (sparc_option_override): Error out if -fcall-saved-REG is specified for Out registers. (eligible_for_restore_insn): Fix formatting. (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling. (eligible_for_sibcall_delay): Likewise. (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter. (sparc_legitimate_address_p): Adjust to above change. (save_global_or_fp_reg_p): New predicate. (return_addr_reg_needed_p): Likewise. (save_local_or_in_reg_p): Likewise. (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling. (SORR_SAVE, SORR_RESTORE): Delete. (sorr_pred_t): New typedef. (sorr_act_t): New enum. (save_or_restore_regs): Rename to... (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P, ACTION_TRUE and ACTION_FALSE parameters. Implement more general mechanism. Add CFI information for double-word saves in 32-bit mode. (emit_adjust_base_to_offset): New function extracted from... (emit_save_or_restore_regs): ...this. Rename the rest to... (emit_save_or_restore_regs_global_fp_regs): ...this. (emit_save_or_restore_regs_local_in_regs): New function. (gen_create_flat_frame_[123]): New functions. (sparc_expand_prologue): Use SIZE local variable. Adjust. (sparc_flat_expand_prologue): New function. (sparc_asm_function_prologue): Add TARGET_FLAT handling. (sparc_expand_epilogue): Use SIZE local variable. Adjust. (sparc_flat_expand_epilogue): New function. (sparc_can_use_return_insn_p): Add TARGET_FLAT handling. (output_return): Likewise. (output_sibcall): Likewise. (sparc_output_mi_thunk): Likewise. (sparc_frame_pointer_required): Likewise. (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf function optimization. * config/sparc/sparc.md (flat): New attribute. (prologue): Add TARGET_FLAT handling. (save_register_window): Disable if TARGET_FLAT. (create_flat_frame_[123]): New patterns. (epilogue): Add TARGET_FLAT handling. (sibcall_epilogue): Likewise. (eh_return): New expander. (eh_return_internal): New insn and splitter. (return_internal): Add TARGET_FLAT handling. (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM. (save_stack_nonlocal): Use RETURN_ADDR_REGNUM. (nonlocal_goto): Add TARGET_FLAT handling. * config/sparc/t-elf: Add -mflat multilib. * config/sparc/t-leon: Likewise. libgcc/ * config/sparc/linux-unwind.h (STACK_BIAS): Define. (sparc64_fallback_frame_state): Use it. (sparc64_frob_update_context): Further adjust context. * config/sparc/sol2-unwind.h (sparc64_frob_update_context): Likewise. * config/sparc/sol2-ci.S: Add TARGET_FLAT handling. * config/sparc/sol2-cn.S: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174897 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert r174848,174849davidxl2011-06-091-8/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174864 138bc75d-0d04-0410-961f-82ee72b054a4
* -fdump-pass implementationdavidxl2011-06-091-1/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174849 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/invoke.texi (ARM Options): Update description ofnickc2011-06-081-4/+5
| | | | | | | -mthumb-interwork. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174811 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/48969jason2011-06-071-1/+2
| | | | | | | | | | | | | | | PR c++/44175 gcc/c-family/ * c-common.c (max_tinst_depth): Lower default to 900. gcc/cp/ * error.c (subst_to_string): New. (cp_printer): Use it for 'S'. (print_instantiation_partial_context_line): Handle subst context. * pt.c (push_tinst_level): Handle subst context. (deduction_tsubst_fntype): Don't track specific substitutions. Use push_tinst_level. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174772 138bc75d-0d04-0410-961f-82ee72b054a4
* Handle assembler name in -fdisable/enable optionsdavidxl2011-06-071-6/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174762 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.redi2011-06-041-0/+9
| | | | | | | | | | | | | | | | c-family: * c.opt: Add -Wdelete-non-virtual-dtor. * c-opts.c (c_common_handle_option): Include it in -Wall. cp: * init.c (build_delete): Warn when deleting type with non-virtual destructor. testsuite: * testsuite/g++.dg/warn/delete-non-virtual-dtor.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174643 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-01 Paul Brook <paul@cpodesourcery.com>pbrook2011-06-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/ * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to Cortex-A15. * config/arm/arm-tune.md: Regenerate. * config/arm/arm-tables.opt: Regenerate. * config/arm/arm.c (FL_DIV): Rename... (FL_THUMB_DIV): ... to this. (FL_ARM_DIV): Define. (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV. (arm_arch_hwdiv): Remove. (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables. (arm_issue_rate): Add cortexr5. * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set __ARM_ARCH_EXT_IDIV__. (TARGET_IDIV): Define. (arm_arch_hwdiv): Remove. (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes. * config/arm/arm.md (tune_cortexr4): Add cortexr5. (divsi3, udivsi3): New patterns. * config/arm/thumb2.md (divsi3, udivsi3): Remove. * doc/invoke.texi: Document ARM -mcpu=cortex-r5 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174526 138bc75d-0d04-0410-961f-82ee72b054a4
* * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.aoliva2011-05-311-0/+10
| | | | | | | | * doc/invoke.texi: Document max-vartrack-expr-depth. * var-tracking.c (EXPR_DEPTH): New. (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174494 138bc75d-0d04-0410-961f-82ee72b054a4
* New option to disable/enable optimization passes. davidxl2011-05-301-1/+75
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174423 138bc75d-0d04-0410-961f-82ee72b054a4
* * common.opt (flag_stack_usage_info): New variable.ebotcazou2011-05-251-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (-Wstack-usage): New option. * doc/invoke.texi (Warning options): Document -Wstack-usage. * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case. <OPT_fstack_usage>: Likewise. * toplev.c (output_stack_usage): Handle -Wstack-usage. * calls.c (expand_call): Test flag_stack_usage_info variable instead of flag_stack_usage. (emit_library_call_value_1): Likewise. * explow.c (allocate_dynamic_stack_space): Likewise. * function.c (instantiate_virtual_regs ): Likewise. (prepare_function_start): Likewise. (rest_of_handle_thread_prologue_and_epilogue): Likewise. * config/alpha/alpha.c (alpha_expand_prologue): Likewise. * config/arm/arm.c (arm_expand_prologue): Likewise. (thumb1_expand_prologue): Likewise. * config/avr/avr.c (expand_prologue): Likewise. * config/i386/i386.c (ix86_expand_prologue): Likewise. * config/ia64/ia64.c (ia64_expand_prologue): Likewise. * config/m68k/m68k.c (m68k_expand_prologue): Likewise. * config/mips/mips.c (mips_expand_prologue): Likewise. * config/pa/pa.c (hppa_expand_prologue): Likewise. * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise. * config/s390/s390.c (s390_emit_prologue): Likewise. * config/sh/sh.c (sh_expand_prologue): Likewise. * config/sparc/sparc.c (sparc_expand_prologue): Likewise. * config/spu/spu.c (spu_expand_prologue): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174182 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/48780jason2011-05-211-0/+2
| | | | | | * cvt.c (type_promotes_to): Don't promote scoped enums. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174005 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>shenders2011-05-181-1/+1
| | | | | | | | | | | | | | | | | * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592. * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for bf592-none. * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise. * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise. * config/bfin/bfin.c (bfin_cpus): Add bf592. * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592. * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592. * config/bfin/elf.h (LIB_SPEC): Add bf592. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173867 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-05-14 Tobias Burnus <burnus@net-b.de>burnus2011-05-141-1/+1
| | | | | | | | | | | | | | * doc/invoke.texi (-Ofast): Also enables -fstack-arrays. 2011-05-14 Tobias Burnus <burnus@net-b.de> * options.c (gfc_init_options, gfc_post_options): Enable -fstack-arrays by default if -Ofast is used. * invoke.texi (-fstack-arrays): Document this. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173751 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-05-13 Martin Thuresson <martint@google.com>martinthuresson2011-05-131-1/+1
| | | | | | | | | | | | | | | PR gcov-profile/47793 * libgcov.c (gcov_exit): Support relative profile paths. * doc/invoke.texi (-fprofile-dir): Update for above change. 2011-05-13 Martin Thuresson <martint@google.com> PR gcov-profile/47793 * gcc.dg/pr47793.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173735 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-05-071-9/+10
| | | | | | | * doc/invoke.texi (-fuse-linker-plugin): Improve grammar. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173538 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>ramana2011-05-061-8/+8
| | | | | | | | | PR target/47930 * config/arm/arm.opt (marm): Document it. (mthumb): Reject negative variant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173481 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove extra spacing at the end of the line.mrs2011-05-041-46/+46
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173401 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/burnus2011-05-041-1/+2
| | | | | | | | | | | | | | | | | | | | | 2011-05-04 Tobias Burnus <burnus@net-b.de> PR fortran/48864 * doc/invoke.texi (Ofast): Document that it enables Fortran's -fno-protect-parens. gcc/fortran 2011-05-04 Tobias Burnus <burnus@net-b.de> PR fortran/48864 * invoke.texi (fno-protect-parens): Document that -Ofast implies -fno-protect-parens. * options.c (gfc_init_options, gfc_post_options): Make -Ofast imply -fno-protect-parens. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173385 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/48093aoliva2011-05-041-0/+13
| | | | | | * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173352 138bc75d-0d04-0410-961f-82ee72b054a4
* Implement -Wno-maybe-uninitializeddavidxl2011-04-261-18/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172978 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-04-20 Catherine Moore <clm@codesourcery.com>clm2011-04-201-0/+8
| | | | | | | | | | | | | | * config/mips/mips.opt (mfix-24k): New. * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k. * config/mips/mips.md (length): Increase by 4 for stores if fixing 24K errata. * config/mips/mips.c (mips_reorg_process_insns): Do not allow all noreorder if fixing 24K errata. * doc/invoke.texi: Document mfix-24k. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172780 138bc75d-0d04-0410-961f-82ee72b054a4
* New flag to apply SMS when SC equals 1revitale2011-04-171-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172610 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove doubled up words.mrs2011-04-101-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172247 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-04-061-1/+1
| | | | | | | * doc/invoke.texi (Spec Files): Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172020 138bc75d-0d04-0410-961f-82ee72b054a4
* * common.opt (fdebug-types-section): Move earlier.jakub2011-03-311-5/+5
| | | | | | | * doc/invoke.texi: Fix up -fno-debug-types-section documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171773 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/arm/arm.opt (mhard-float, msoft-float): Markjsm282011-03-301-9/+1
| | | | | | | | | Undocumented. Remove help text. * doc/invoke.texi (ARM Options): Don't document -msoft-float and -mhard-float. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171750 138bc75d-0d04-0410-961f-82ee72b054a4
* Introduce -fno-debug-types-section flag.mark2011-03-301-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | * common.opt (fdebug-types-section): New flag. * doc/invoke.texi: Document new -fno-debug-types-section flag. * dwarf2out.c (use_debug_types): New define. (struct die_struct): Mark die_id with GTY desc use_debug_types. (print_die): Guard output of type unit signatures using use_debug_types. (build_abbrev_table): Replace assert of dwarf_version >= 4 with assert on use_debug_types. (size_of_die): Likewise. (unmark_dies): Likewise. (value_format): Decide AT_ref_external form on use_debug_types. (output_die): Replace dwarf_version version check guard with use_debug_types where appropriate. (modified_type_die): Likewise. (gen_reference_type_die): Likewise. (dwarf2out_start_source_file): Likewise. (dwarf2out_end_source_file): Likewise. (prune_unused_types_walk_attribs): Likewise. (dwarf2out_finish): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171742 138bc75d-0d04-0410-961f-82ee72b054a4
* Split 32-byte AVX unaligned load/store.hjl2011-03-271-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/ 2011-03-27 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load and -mavx256-split-unaligned-store. (ix86_option_override_internal): Split 32-byte AVX unaligned load/store by default. (ix86_avx256_split_vector_move_misalign): New. (ix86_expand_vector_move_misalign): Use it. * config/i386/i386.opt: Add -mavx256-split-unaligned-load and -mavx256-split-unaligned-store. * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned 256bit load/store. Generate unaligned store on misaligned memory operand. (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned 256bit load/store. (*avx_movdqu<avxmodesuffix>): Likewise. * doc/invoke.texi: Document -mavx256-split-unaligned-load and -mavx256-split-unaligned-store. gcc/testsuite/ 2011-03-27 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/avx256-unaligned-load-1.c: New. * gcc.target/i386/avx256-unaligned-load-2.c: Likewise. * gcc.target/i386/avx256-unaligned-load-3.c: Likewise. * gcc.target/i386/avx256-unaligned-load-4.c: Likewise. * gcc.target/i386/avx256-unaligned-load-5.c: Likewise. * gcc.target/i386/avx256-unaligned-load-6.c: Likewise. * gcc.target/i386/avx256-unaligned-load-7.c: Likewise. * gcc.target/i386/avx256-unaligned-store-1.c: Likewise. * gcc.target/i386/avx256-unaligned-store-2.c: Likewise. * gcc.target/i386/avx256-unaligned-store-3.c: Likewise. * gcc.target/i386/avx256-unaligned-store-4.c: Likewise. * gcc.target/i386/avx256-unaligned-store-5.c: Likewise. * gcc.target/i386/avx256-unaligned-store-6.c: Likewise. * gcc.target/i386/avx256-unaligned-store-7.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171578 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/invoke.texi (max-stores-to-sink): Document.irar2011-03-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * params.h (MAX_STORES_TO_SINK): Define. * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0 if either vectorization or if-conversion is disabled. * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from tree-vect-data-refs.c vect_equal_offsets. (dr_equal_offsets_p): New function. (find_data_references_in_bb): Remove static. * tree-data-ref.h (find_data_references_in_bb): Declare. (dr_equal_offsets_p): Likewise. * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c. (vect_drs_dependent_in_basic_block): Update calls to vect_equal_offsets. (vect_check_interleaving): Likewise. * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h. (cond_if_else_store_replacement): Rename to... (cond_if_else_store_replacement_1): ... this. Change arguments and documentation. (cond_if_else_store_replacement): New function. * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies. * params.def (PARAM_MAX_STORES_TO_SINK): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171381 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-03-231-79/+79
| | | | | | | | | | | | | PR other/48179 PR other/48221 PR other/48234 * doc/extend.texi (Alignment): Move section to match order in TOC. * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise. (Warning Options): Adjust -Wno-cpp summary and remove stray backslash. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171359 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-03-23 Richard Guenther <rguenther@suse.de>rguenth2011-03-231-23/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (IPA_TYPE_ESCAPE_H): Remove. (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o. (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H. (alias.o): Likewise. (ipa-type-escape.o): Remove. (ipa-struct-reorg.o): Likewise. (GTFILES): Remove ipa-struct-reorg.c. * alias.c: Do not include ipa-type-escape.h. * tree-ssa-alias.c: Likewise. * common.opt (fipa-struct-reorg): Preserve for backward compatibility. * opts.c (finish_options): Do not reset flag_ipa_struct_reorg. * passes.c (init_optimization_passes): Remove ipa-struct-reorg and ipa-type-escape passes. * tree-pass.h (pass_ipa_type_escape): Remove. (pass_ipa_struct_reorg): Likewise. * ipa-struct-reorg.h: Remove. * ipa-struct-reorg.c: Likewise. * ipa-type-escape.h: Likewise. * ipa-type-escape.c: Likewise. * doc/invoke.texi (-fipa-struct-reorg): Remove. (--param struct-reorg-cold-struct-ratio): Likewise. * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise. * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise. * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise. * gcc.dg/struct: Remove directory and contents. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171352 138bc75d-0d04-0410-961f-82ee72b054a4