1. 11 May, 2012 9 commits
  2. 10 May, 2012 22 commits
    • re PR target/53291 (Code generated for xtest is wrong) · 8d463d3a
      	PR target/53291
      	* config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
      
      From-SVN: r187387
      Uros Bizjak committed
    • i386.md (*movti_internal_rex64): Avoid MOVAPS size optimization for TARGET_AVX. · 63705578
      	* config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
      	optimization for TARGET_AVX.
      	(*movti_internal_sse): Ditto.
      	(*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
      	(*movdi_internal): Ditto.
      	(*movsi_internal): Ditto.
      	(*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
      	(*movdf_internal_rex64): Ditto.
      	(*movfd_internal): Ditto.
      	(*movsf_internal): Ditto.
      	* config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
      
      From-SVN: r187386
      Uros Bizjak committed
    • dwarf2out.c (add_byte_size_attribute): Handle variable reference as size attribute. · e580d8ee
      	* dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
      	reference as size attribute.
      
      From-SVN: r187384
      Eric Botcazou committed
    • md.texi (Standard Names): Document probe_stack_address. · 7b84aac0
      	* doc/md.texi (Standard Names): Document probe_stack_address.
      	* explow.c (emit_stack_probe): Handle probe_stack_address.
      	* config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
      	(UNSPECV_PROBE_STACK_RANGE): Likewise.
      	(probe_stack_address): New insn.
      	(probe_stack_range): Likewise.
      	* config/ia64/ia64.c: Include common/common-target.h.
      	(ia64_compute_frame_size): Mark r2 and r3 as used if static stack
      	checking is enabled.
      	(ia64_emit_probe_stack_range): New function.
      	(output_probe_stack_range): Likewise.
      	(ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
      	builtin stack checking is enabled.
      	(rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
      	and UNSPECV_PROBE_STACK_ADDRESS.
      	(unknown_for_bundling_p): New predicate.
      	(group_barrier_needed): Use important_for_bundling_p.
      	(ia64_dfa_new_cycle): Use unknown_for_bundling_p.
      	(issue_nops_and_insn): Likewise.
      	(bundling): Likewise.
      	(final_emit_insn_group_barriers): Likewise.
      	* config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
      	* config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
      	(STACK_CHECK_PROTECT): Likewise.
      	* config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
      
      Co-Authored-By: Tristan Gingold <gingold@adacore.com>
      
      From-SVN: r187383
      Eric Botcazou committed
    • ipa-inline.c (update_all_callee_keys): Remove. · f1016df4
      
      	* ipa-inline.c (update_all_callee_keys): Remove.
      	(inline_small_functions): Simplify priority updating.
      
      From-SVN: r187382
      Jan Hubicka committed
    • re PR c++/53158 ([C++11] Bogus error in loop condition) · 5a3c9cf2
      /cp
      2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/53158
      	* cvt.c (ocp_convert): Error out early for void -> bool conversions.
      	* typeck.c (decay_conversion): Use error_at.
      	* call.c (build_integral_nontype_arg_conv, convert_like_real,
      	convert_arg_to_ellipsis, perform_implicit_conversion_flags,
      	initialize_reference): Likewise.
      	* cvt.c (warn_ref_binding): Add location_t parameter.
      	(cp_convert_to_pointer, convert_to_reference, ocp_convert,
      	convert_to_void, ): Use error_at and warning_at.
      
      /c-family
      2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/53158
      	* c-common.c (warnings_for_convert_and_check): Use warning_at.
      
      /testsuite
      2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/53158
      	* g++.dg/cpp0x/lambda/lambda-err2.C: New.
      	* g++.dg/parse/error26.C: Tweak dg-error column number.
      
      From-SVN: r187380
      Paolo Carlini committed
    • re PR c++/53301 (Spurious -Wzero-as-null-pointer-constant with reference arguments) · e5f13bf4
      /cp
      2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/53301
      	* decl.c (check_default_argument): Fix typo (POINTER_TYPE_P
      	instead of TYPE_PTR_P) in zero-as-null-pointer-constant warning.
      
      /testsuite
      2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/53301
      	* g++.dg/warn/Wzero-as-null-pointer-constant-6.C: New.
      
      From-SVN: r187377
      Paolo Carlini committed
    • random.tcc (seed_seq::generate): Cast max() operands to size_t to ensure a template match. · 58651854
      * include/bits/random.tcc (seed_seq::generate): Cast max()
      operands to size_t to ensure a template match.
      * include/std/bitset (_M_copy_from_ptr): Cast min() operands to
      size_t to ensure a template match.
      
      From-SVN: r187376
      DJ Delorie committed
    • cgraph.h (cgraph_remove_unreachable_nodes): Rename to ... · 04142cc3
      	* cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
      	(symtab_remove_unreachable_nodes): ... this one.
      	* ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
      	* cgraphunit.c (ipa_passes): Update.
      	* cgraphclones.c (cgraph_materialize_all_clones): Update.
      	* cgraph.c (cgraph_release_function_body): Only turn initial
      	into error mark when initial was previously set.
      	* ipa-inline.c (ipa_inline): Update.
      	* ipa.c: Include ipa-inline.h
      	(enqueue_cgraph_node, enqueue_varpool_node): Remove.
      	(enqueue_node): New function.
      	(process_references): Update.
      	(symtab_remove_unreachable_nodes): Cleanup.
      	* passes.c (execute_todo, execute_one_pass): Update.
      
      From-SVN: r187375
      Jan Hubicka committed
    • Fix typo in last Changelog entry. · 3af2e3b5
      From-SVN: r187374
      Vladimir Makarov committed
    • re PR rtl-optimization/53125 (Very slow compilation on SPARC) · e8d7e3e7
      2012-05-10  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR rtl-optimization/53125
      	* ira.c (ira): Call find_moveable_pseudos or
      	move_unallocated_pseudos if only ira_conflicts_p is true.
      
      From-SVN: r187373
      Vladimir Makarov committed
    • i386.md (*movoi_internal_avx): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and… · e338c25c
      i386.md (*movoi_internal_avx): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
      
      	* config/i386/i386.md (*movoi_internal_avx): Handle
      	TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
      	(*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
      	(*movti_internal_sse): Ditto.
      	(*movtf_internal): Ditto.
      	* config/i386/sse.md (ssePSmode): New mode attribute.
      	(*move<mode>_internal): Use ssePSmode.
      	(*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
      	(*<sse2>_movdqu<avxsizesuffix>): Ditto.
      	* config/i386/i386.c (standard_sse_constant_opcode): Do not handle
      	TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
      
      From-SVN: r187372
      Uros Bizjak committed
    • Fix copyright date · 0b7ad29f
      From-SVN: r187371
      Eric Botcazou committed
    • gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the… · d400d17e
      gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the DECL_ORIGINAL_TYPE if it is present.
      
      	* gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
      	DECL_ORIGINAL_TYPE if it is present.
      
      From-SVN: r187369
      Eric Botcazou committed
    • re PR target/53120 (ICE exposing strict_low_part / in/out operand thinko -fno-tree-sra) · b5ba5188
      	PR target/53120
      	* config/m32c/bitops.md (bset_qi): Change operand 2 from having
      	a "0" constraint to being a (match_dup 0).
      
      From-SVN: r187368
      Nick Clifton committed
    • stor-layout.c (byte_from_pos): Amend comment. · 8244f252
      2012-05-10  Richard Guenther  <rguenther@suse.de>
      
      	* stor-layout.c (byte_from_pos): Amend comment.
      
      From-SVN: r187367
      Richard Guenther committed
    • Always compile atomic builtin tests with $XCFLAGS · aaea76b3
      	PR other/53284
      	* acinclude.m4 (LIBAT_TEST_ATOMIC_BUILTIN): Add -O0 -S to CFLAGS
      	instead of overriding.
      	* configure: Regenerate.
      
      From-SVN: r187366
      Rainer Orth committed
    • Use i386-cpuinfo.c on all i386 targets · aca06c90
      	libgcc:
      	* config.host (i[34567]86-*-linux*, x86_64-*-linux*)
      	(i[34567]86-*-kfreebsd*-gnu, x86_64-*-kfreebsd*-gnu)
      	(i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*): Move
      	i386/t-cpuinfo ...
      	(i[34567]86-*-*, x86_64-*-*): ... here.
      
      	* config/i386/libgcc-bsd.ver (GCC_4.8.0): New version.
      	* config/i386/libgcc-sol2.ver (GCC_4.8.0): New version.
      
      	* config/i386/i386-cpuinfo.c: Rename to ...
      	* config/i386/cpuinfo.c: ... this.
      	* config/i386/t-cpuinfo (LIB2ADD): Reflect this.
      
      	* configure.ac (AC_CONFIG_HEADER): Call for auto-target.h.
      	(libgcc_cv_init_priority): New test.
      	* configure: Regenerate.
      	* config.in: New file.
      	* Makefile.in (clean): Rename config.h to auto-target.h.
      	(config.h): Likewise.
      	(stamp-h): Likewise.
      
      	* config/i386/cpuinfo.c (auto-target.h): Include.
      	(CONSTRUCTOR_PRIORITY): Define.
      	(__cpu_indicator_init): Use it.
      
      	gcc
      	* doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
      	Document requirement to call in constructors.
      
      	* config/i386/i386.c: Update comments for i386-cpuinfo.c name
      	change.
      
      From-SVN: r187365
      Rainer Orth committed
    • expr.c (interpret_float_suffix): Add a guard. · 638d2065
      2012-05-10  Tristan Gingold  <gingold@adacore.com>
      
      	* expr.c (interpret_float_suffix): Add a guard.
      
      From-SVN: r187364
      Tristan Gingold committed
    • cuintp.c (UI_From_gnu): Remove TYPE_IS_SIZETYPE use. · 3ac8781c
      2012-05-10  Richard Guenther  <rguenther@suse.de>
      
      	ada/
      	* gcc-interface/cuintp.c (UI_From_gnu): Remove TYPE_IS_SIZETYPE use.
      
      	c-family/
      	* c-common.c (c_sizeof_or_alignof_type): Remove assert and
      	adjust commentary about TYPE_IS_SIZETYPE types.
      
      	* tree.h (TYPE_IS_SIZETYPE): Remove.
      	* fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
      	(extract_muldiv_1): Likewise.
      	* gimple.c (gtc_visit): Likewise.
      	(gimple_types_compatible_p): Likewise.
      	(iterative_hash_canonical_type): Likewise.
      	(gimple_canonical_types_compatible_p): Likewise.
      	* gimplify.c (gimplify_one_sizepos): Likewise.
      	* print-tree.c (print_node): Likewise.
      	* stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
      
      From-SVN: r187363
      Richard Guenther committed
    • Daily bump. · 26c72448
      From-SVN: r187362
      GCC Administrator committed
  3. 09 May, 2012 9 commits
    • compiler: Add -fgo-pkgpath option. · 097b12fb
      	* lang.opt: Add -fgo-pkgpath.
      	* go-lang.c (go_pkgpath): New static variable.
      	(go_prefix): New static variable.
      	(go_langhook_init): Pass go_pkgpath and go_prefix to
      	go_create_gogo.
      	(go_langhook_handle_option): Handle -fgo-pkgpath.  Change
      	-fgo-prefix handling to just set go_prefix.
      	* go-c.h (go_set_prefix): Don't declare.
      	(go_create_gogo): Add pkgpath and prefix to declaration.
      	* go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
      	to pkgpath.  Don't include the package name in the asm name.
      	* gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
      	docs for -fgo-prefix.
      
      From-SVN: r187356
      Ian Lance Taylor committed
    • re PR c++/53289 (unnecessary repetition of caret diagnostics) · 1b8b126f
      2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c++/53289
      gcc/
      	* diagnostic.h (diagnostic_context): Add last_location.
      	* diagnostic.c (diagnostic_initialize): Initialize it.
      	(diagnostic_show_locus): Use it.
      
      From-SVN: r187355
      Manuel López-Ibáñez committed
    • re PR target/52908 (xop-mul-1:f9 miscompiled on bulldozer (-mxop)) · d21a7b44
      	PR target/52908
      	* config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
      	xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
      	(vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
      	instead of xop_mulv2div2di3_low.
      	(xop_p<macs>dql): Fix vec_select selector.
      	(xop_p<macs>dqh): Ditto.
      	(xop_mulv2div2di3_low): Remove insn_and_split pattern.
      	(xop_mulv2div2di3_high): Ditto.
      
      testsuite/ChangeLog:
      
      	PR target/52908
      	* gcc.target/i386/xop-imul32widen-vector.c: Update scan-assembler
      	directive to Scan for vpmuldq, not vpmacsdql.
      
      From-SVN: r187354
      Uros Bizjak committed
    • extend.texi (Function Attributes): Point xref to section about Pragmas. · c54e7136
      2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
             * doc/extend.texi (Function Attributes): Point xref to section
      	about Pragmas.
      
      From-SVN: r187353
      Manuel López-Ibáñez committed
    • i386.c (*movdf_internal_rex64): Remove TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL… · 0ba511a1
      i386.c (*movdf_internal_rex64): Remove TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
      
      	* config/i386/i386.c (*movdf_internal_rex64): Remove
      	TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
      	Calculate "mode" attribute according to
      	TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
      	(*movdf_internal): Ditto.
      
      From-SVN: r187348
      Uros Bizjak committed
    • re PR target/44141 (Redundant loads and stores generated for AMD bdver1 target) · 20f9034b
      	PR target/44141
      	* config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
      	128 bit vectors specially for TARGET_AVX.  Emit sse2_movupd and
      	sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
      	or when optimizing for size.
      	* config/i386/sse.md (*mov<mode>_internal): Remove
      	TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
      	Calculate "mode" attribute according to optimize_function_for_size_p
      	and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
      	(*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
      	depending on the mode of the instruction.  Calculate "mode" attribute
      	according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
      	and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
      	(*<sse2>_movdqu<avxsizesuffix>): Ditto.
      
      From-SVN: r187347
      Uros Bizjak committed
    • re PR target/53256 ([avr] Attribute 'interrupt' shall override attribute 'signal') · eac188c5
      	PR target/53256
      	* config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
      	* config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
      	* config/avr/avr.h (struct machine_function): Add attributes_checked_p.
      	* config/avr/avr.c (avr_asm_declare_function_name): Remove.
      	(expand_prologue): Move initialization of cfun->machine->is_naked,
      	is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
      	(avr_set_current_function): ...this new static function.
      	(TARGET_SET_CURRENT_FUNCTION): New define.
      	(avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
      	checking attributes of current_function_decl.
      	(avr_regs_to_save): Ditto.
      	(signal_function_p): Rename to avr_signal_function_p.
      	(interrupt_function_p): Rename to avr_interrupt_function_p.
      	* doc/extend.texi (Function Attributes): Better explanation of
      	'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
      	alphabetical order.
      
      From-SVN: r187342
      Georg-Johann Lay committed
    • re PR bootstrap/50461 (mpfr.h found in mpfr-3.1.0/src instead of mpfr-3.0.1/. as previously) · 5b0d38e4
      	PR bootstrap/50461
      	* configure.ac (mpfr-dir): When using in-tree MPFR sources
      	allow for the fact that from release v3.1.0 of MPFR the source
      	files were moved into a src sub-directory.
      	* configure: Regenerate.
      
      Co-Authored-By: Paul Smith <psmith@gnu.org>
      
      From-SVN: r187341
      Nick Clifton committed
    • re PR tree-optimization/53185 (segmentation fault in vectorizable_load) · 0c910378
      	PR tree-optimization/53185
      	* tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
      	peeling when we see strided loads.
      
      testsuite/
      	* gcc.dg/vect/pr53185.c: New test.
      
      From-SVN: r187340
      Michael Matz committed