1. 30 Jul, 2015 13 commits
    • gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison binaries. · 819ec64c
      2015-07-30  Richard Biener  <rguenther@suse.de>
      
      	* gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
      	binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
      	(fold_stmt_1): ... here and work on GIMPLE directly.  Remove
      	redundant operand canonicalization.
      
      From-SVN: r226404
      Richard Biener committed
    • aarch64-simd.md (aarch64_ext<mode>): Replace call to GET_MODE_SIZE… · cb5ca315
      aarch64-simd.md (aarch64_ext<mode>): Replace call to GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
      
      gcc/
      2015-07-30  David Sherwood  <david.sherwood@arm.com>
      
      	* config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
      	GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
      	* config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
      	* config/arm/arm.c (neon_valid_immediate): Likewise.
      	* config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
      	(expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
      	(expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
      	(expand_vec_perm_vpshufb2_vpermq): Likewise.
      	(expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
      	(expand_vec_perm_vpshufb4_vpermq2): Likewise.
      	* config/i386/sse.md
      	(<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
      	(*ssse3_palignr<mode>_perm): Likewise.
      	* config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
      	* config/spu/spu.c (arith_immediate_p): Likewise.
      	* simplify-rtx.c (simplify_const_unary_operation): Likewise.
      	(simplify_binary_operation_1, simplify_ternary_operation): Likewise.
      
      From-SVN: r226403
      David Sherwood committed
    • current_path.cc: Use canonical paths for comparisons. · 155bfacb
      	* testsuite/experimental/filesystem/operations/current_path.cc: Use
      	canonical paths for comparisons.
      
      From-SVN: r226402
      Jonathan Wakely committed
    • genmatch.c (decision_tree::gen_gimple): Merge with ... · b21ce9ce
      2015-07-30  Richard Biener  <rguenther@suse.de>
      
      	* genmatch.c (decision_tree::gen_gimple): Merge with ...
      	(decision_tree::gen_generic): ... this into ...
      	(decision_tree::gen): ... this.
      	(main): Adjust callers.
      
      From-SVN: r226396
      Richard Biener committed
    • regex_automaton.h (_State_base, _State<>): Remove _TraitsT dependency from _State<>... · 81b7ff07
      	* include/bits/regex_automaton.h (_State_base, _State<>):
      	Remove _TraitsT dependency from _State<>; Make matcher member
      	into the union to reduce struct size.
      	* include/bits/regex_automaton.tcc (_State_base<>::_M_print,
      	_State_base<>::_M_dot, _StateSeq<>::_M_clone):
      	Adjust to fit the interface. Factor out common parts in
      	_M_clone as _State<>::_M_has_alt.
      	* include/bits/regex_executor.h (_Executer<>::_M_lookahead):
      	Only pass state id instead of the whole state.
      	* include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
      	_Executer<>::_M_lookahead): Adjust to fit the interface.
      	* include/std/regex: Include <ext/aligned_buffer.h>
      
      From-SVN: r226395
      Tim Shen committed
    • class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD" in warning_at… · 15827d12
      class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD" in warning_at instead of "%q+D" in warning.
      
      2015-07-30  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD"
      	in warning_at instead of "%q+D" in warning.
      	(warn_hidden): Likewise but use location_of.
      	(finish_struct_anon_r): Likewise use DECL_SOURCE_LOCATION in permerror.
      	(check_bitfield_decl, check_field_decls): Likewise in warning_at.
      	(check_field_decls): Likewise for permerror.
      	(explain_non_literal_class): Likewise for inform.
      	(check_bases_and_members, layout_class_type): Likewise for warning_at.
      	(note_name_declared_in_class): Use location_of in permerror.
      	* name-lookup.c (diagnose_name_conflict): Use location_of in inform.
      	(pushdecl_maybe_friend_1): Use DECL_SOURCE_LOCATION in pedwarn,
      	inform, and warning_at.
      	(check_for_out_of_scope_variable): Likewise for warning_at and
      	permerror.
      
      From-SVN: r226394
      Paolo Carlini committed
    • any (any::operator=(const any&)): Check for self-assignment. · 2e3f48dc
      	* include/experimental/any (any::operator=(const any&)): Check for
      	self-assignment.
      	* testsuite/experimental/any/assign/self.cc: New.
      	* testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
      
      From-SVN: r226393
      Jonathan Wakely committed
    • c-common.c (warn_tautological_cmp): Bail for float types. · 173864e8
      	* c-common.c (warn_tautological_cmp): Bail for float types.
      
      	* c-c++-common/Wtautological-compare-3.c: New test.
      
      From-SVN: r226388
      Marek Polacek committed
    • genmatch.c (verbose): New global. · 53a19317
      2015-07-30  Richard Biener  <rguenther@suse.de>
      
      	* genmatch.c (verbose): New global.
      	(warning_at): Add overload with source_location.
      	(capture_info::capture_info): Add bool whether generating gimple
      	or generic.  Add gimple member.
      	(capture_info::cinfo): Add capture member.
      	(capture_info::walk_match): Record capture.  Warn on
      	non-captured leafs.
      	(capture_info::walk_c_expr): Add more fragments captures cannot
      	escape through.  Warn on escaped captures.
      	(dt_simplify::gen_1): Warn on operands we force to have no
      	side-effects.
      	(main): Initialize verbose.
      	* match.pd: Add integer_nonzerop and HONOR_NANS predicates.
      
      From-SVN: r226386
      Richard Biener committed
    • re PR middle-end/67053 (FAIL: experimental/optional/constexpr/make_optional.cc) · f501d5cd
      2015-07-30  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/67053
      	* match.pd: Allow both operands to independently have conversion
      	when simplifying compares of addresses.
      
      From-SVN: r226384
      Richard Biener committed
    • DR 1558 PR c++/67021 · 4fdfdd4f
      	DR 1558
      	PR c++/67021
      	* pt.c (tsubst_decl) [TYPE_DECL]: Clear TYPE_DEPENDENT_P_VALID.
      
      From-SVN: r226381
      Jason Merrill committed
    • re PR target/66217 (PowerPC rotate/shift/mask instructions not optimal) · 2d590ab0
      	PR target/66217
      	PR target/67045
      	* config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
      	around those cases that need one.
      
      From-SVN: r226378
      Segher Boessenkool committed
    • Daily bump. · dfe8fbc2
      From-SVN: r226377
      GCC Administrator committed
  2. 29 Jul, 2015 22 commits
  3. 28 Jul, 2015 5 commits