1. 01 Dec, 2008 1 commit
  2. 28 Nov, 2008 2 commits
  3. 26 Nov, 2008 1 commit
  4. 20 Nov, 2008 3 commits
  5. 19 Nov, 2008 4 commits
  6. 18 Nov, 2008 1 commit
    • re PR c++/37962 (ICE with (auto*) casts) · 3f50c846
              PR c++/37962
      cp/
              * parser.c (cp_parser_type_id): Complain about auto.
              * decl.c (grokdeclarator): Complain about parameters and
              conversion functions declared with auto.
              * call.c (standard_conversion): Use CLASS_TYPE_P instead of
              MAYBE_CLASS_TYPE_P.
              * cp-tree.h (TYPE_NON_AGGREGATE_CLASS): Likewise.
      testsuite/
              * g++.dg/cpp0x/auto[38].C: Adjust expected errors.
              * g++.dg/cpp0x/auto9.C: New test.
              * g++.dg/cpp0x/auto10.C: New test.
      
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      
      From-SVN: r141970
      Jason Merrill committed
  7. 17 Nov, 2008 1 commit
  8. 15 Nov, 2008 1 commit
  9. 14 Nov, 2008 3 commits
  10. 12 Nov, 2008 4 commits
  11. 10 Nov, 2008 1 commit
  12. 06 Nov, 2008 1 commit
  13. 05 Nov, 2008 2 commits
    • re PR c++/32519 (g++ allows access to protected template member functions of base class) · 8df7b2b6
              PR c++/35219
              * cp-tree.h: Fix DECL_NONSTATIC_MEMBER_P to handle member template
              functions.
      
      From-SVN: r141612
      Fabien Chêne committed
    • re PR middle-end/37742 (ICE in vectorizer with restrict pointer) · f7c0ffb4
      2008-11-05  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/37742
      	* tree-ssa.c (useless_type_conversion_p_1): Check different restrict
      	qualified pointer conversion before stripping qualifiers.
      	* gimplify.c (create_tmp_from_val): Use correctly qualified type.
      	* tree-flow.h (may_propagate_address_into_dereference): Declare.
      	* tree-ssa-ccp.c (may_propagate_address_into_dereference): New function.
      	(ccp_fold): Use it.
      	* tree-ssa-forwprop.c (rhs_to_tree): Remove useless conversions,
      	properly canonicalize binary ops.
      	(forward_propagate_addr_expr_1): Use
      	may_propagate_address_into_dereference.
      
      	cp/
      	* decl.c (start_preparsed_function): Use the correct type for
      	building the RESULT_DECL.
      
      	* gcc.c-torture/compile/pr37742.c: New testcase.
      	* g++.dg/pr37742.C: Likewise.
      	* gcc.dg/tree-ssa/forwprop-7.c: Check for two volatile loads.
      
      From-SVN: r141606
      Richard Guenther committed
  14. 31 Oct, 2008 2 commits
  15. 29 Oct, 2008 2 commits
    • re PR middle-end/11492 (Bogus warning with -Wsign-compare) · cdd6a337
      2008-10-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR 11492
      	* c-common.c (min_precision): Move to...
      	* tree.c (tree_int_cst_min_precision): ... to here. Renamed.
      	* tree.h (tree_int_cst_min_precision): Declare.
      	* c-common.h (min_precision): Delete declaration.
      	* fold-const.c (tree_binary_nonnegative_warnv_p): Handle
      	multiplication of non-negative integer constants.
      	* c-decl.c (check_bitfield_type_and_width): Rename min_precision to
      	tree_int_cst_min_precision.
      	(finish_enum): Likewise.
      cp/
      	* class.c (check_bitfield_decl): Rename min_precision to
      	tree_int_cst_min_precision.
      	* decl.c (finish_enum): Likewise.
      testsuite/
      	* gcc.dg/pr11492.c: New.
      	* g++.dg/warn/pr11492.C: New.
      
      From-SVN: r141434
      Manuel López-Ibáñez committed
    • re PR c++/26997 (g++ reports misleading error message when the identifier with… · d3f7b2c6
      re PR c++/26997 (g++ reports misleading  error message when the identifier with error occurs earlier on the same line)
      
      2008-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c++/26997
      cp/
      	* parser.c (cp_parser_token_starts_cast_expression): New.
      	(cp_parser_cast_expression): Peek the next token to decide whether
      	this could be a parenthesized constructor or is definitely an
      	actual cast.
      testsuite/
      	* g++.dg/parse/pr26997.C: New.
      
      From-SVN: r141429
      Manuel López-Ibáñez committed
  16. 24 Oct, 2008 2 commits
    • re PR c/7543 (no warning for always-false "if (!a & 0x4)" bitwise and on boolean value) · 100d537d
      2008-10-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c/7543
      	* value-prof.c (gimple_stringop_fixed_value): Use parentheses
      	around bit operation.
      	* profile.c (is_edge_inconsistent): Likewise.
      	* fold-const.c (truth_value_p): Move from here...
      	* tree.h (truth_value_p): ... to here.
      	* c-tree.h (c_expr): Update description of original_code.
      	* c-typeck.c (parser_build_unary_op): Set original_code.
      	(parser_build_binary_op): Update call to warn_about_parentheses.
      	* c-common.c (warn_about_parentheses): Take two additional
      	arguments of the operands. Use a switch. Quote operators
      	appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P.
      	Add warning about !x | y and !x & y.
      	* c-common.h (warn_about_parentheses): Update declaration.
      cp/	
      	* typeck.c (build_x_binary_op): Update call to
      	warn_about_parentheses.
      	* parser.c (cp_parser_binary_expression): Add note about passing
      	the correct code for unary expressions.
      testsuite/
      	* gcc.dg/Wparentheses-11.c: New.
      	* g++.dg/warn/Wparentheses-25.C: New. XFAILED.
      
      From-SVN: r141340
      Manuel López-Ibáñez committed
    • dg-extract-results.sh: New file. · 7134e605
      contrib/
      	* dg-extract-results.sh: New file.
      gcc/
      	* Makefile.in (lang_checks_parallelized, check_gcc_parallelize,
      	check_p_tool, check_p_vars, check_p_subno, check_p_comma,
      	check_p_subwork, check_p_numbers, check_p_subdir, check_p_subdirs):
      	New variables.
      	(check-subtargets, check-%-subtargets, check-parallel-%): New
      	targets.
      	(check-%): For test targets listed in lang_checks_parallelized
      	if -j is used and RUNTESTFLAGS doesn't specify tests to execute,
      	run the testing in multiple make goals, possibly parallel, and
      	afterwards run dg-extract-results.sh to merge the sum and log files.
      gcc/cp/
      	* Make-lang.in (check-c++-subtargets): New alias for
      	check-g++-subtargets.
      	(lang_checks_parallelized): Add check-g++.
      	(check_g++_parallelize): New variable.
      gcc/fortran/
      	* Make-lang.in (check-f95-subtargets, check-fortran-subtargets): New
      	aliases for check-gfortran-subtargets.
      	(lang_checks_parallelized): Add check-gfortran.
      	(check_gfortran_parallelize): New variable.
      gcc/ada/
      	* gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
      	check-acats-subtargets and check-gnat-subtargets.
      	(check_acats_targets): New variable.
      	(check-acats-subtargets, check-acats%): New targets.
      	(check-acats): If -j is used and CHAPTERS is empty, run the testing
      	in multiple make goals, possibly parallel, and afterwards run
      	dg-extract-results.sh to merge the sum and log files.
      gcc/java/
      	* Make-lang.in (check-java-subtargets): New target.
      libstdc++-v3/
      	* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu.
      	(RUNTESTDEFAULTFLAGS, EXPECT, check_DEJAGNU_normal_targets): New
      	variables.
      	(%/site.exp, check-DEJAGNU%): New targets.
      	(check-am): Run $(MAKE) check-DEJAGNU.
      	* testsuite/Makefile.in: Regenerated.
      
      From-SVN: r141337
      Jakub Jelinek committed
  17. 21 Oct, 2008 1 commit
  18. 19 Oct, 2008 1 commit
    • re PR c++/37004 ([C++ only] Wconversion warns for short y = 0x7fff; short z = (short) x & y;) · 98f2f3a2
      2008-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c++/37004
      cp/
      	* typeck.c (cp_common_type): New. The same as
      	type_after_usual_arithmetic_conversions but without promotions.
      	(type_after_usual_arithmetic_conversions): Do the promotions and
      	call cp_common_type.
      	(common_type): Make it behave like the C version of this
      	function. Do not handle pointer types.
      	(common_pointer_type): Move handling of pointer types from
      	common_type to here.
      	(cp_build_binary_op): Use common_pointer_type instead of
      	common_type in call to pointer_diff.
      	Use cp_common_type instead of common_type.
      	* cp-tree.h (common_pointer_type): Declare.
      testsuite/
      	* g++.dg/warn/Wconversion-pr34389.C: Remove XFAIL.
      
      From-SVN: r141233
      Manuel López-Ibáñez committed
  19. 14 Oct, 2008 2 commits
  20. 13 Oct, 2008 1 commit
  21. 10 Oct, 2008 1 commit
  22. 09 Oct, 2008 1 commit
  23. 07 Oct, 2008 1 commit
  24. 06 Oct, 2008 1 commit
    • PR c++/37376, other mangling issues · 38179091
      gcc/cp/:
              PR c++/37376, other mangling issues
              * mangle.c (write_type): Update TYPE_PACK_EXPANSION mangling.
              (write_member_name): Break out from...
              (write_expression): ...here.  Handle dependent COMPONENT_REF.
              (write_template_arg): Wrap an argument pack in 'I'/'E'.
              (write_builtin_type): Update char16/32_t mangling.
              (write_nested_name, write_prefix): Don't forget template args
              for typename types.
              * operators.def: Add ARROW_EXPR, update COMPONENT_REF and
              EXPR_PACK_EXPANSION.
      libstdc++-v3/:
              * config/abi/pre/gnu.ver: Update char16/32_t manglings.
      include/:
              * demangle.h (enum demangle_component_type): Add
              DEMANGLE_COMPONENT_PACK_EXPANSION.
      libiberty/:
              * cp-demangle.c (struct d_print_info): Add pack_index.
              (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
              (d_make_comp): Likewise.  DEMANGLE_COMPONENT_ARGLIST and
              DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
              (cplus_demangle_builtin_types): Add char16/32_t.
              (cplus_demangle_type): Recognize them.
              (d_template_args): Handle empty argument packs.
              (d_template_arg): Handle argument packs.
              (d_expression): Handle dependent name.
              (d_index_template_argument): New fn.
              (d_lookup_template_argument): New fn.
              (d_find_pack, d_pack_length): New fn.
              (d_print_subexpr): Split out...
              (d_print_comp): ...from here.  Use d_*_template_argument.
              Handle empty arg lists.  Support pack expansions.
              * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
      
      From-SVN: r140916
      Jason Merrill committed