1. 22 Feb, 2010 2 commits
    • re PR c++/43126 ("at this point in file" warnings are upside down) · a98c2819
      2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c++/43126
      	* c-typeck.c (convert_arguments): Print declaration location.
      	* c-common.c (validate_nargs): Rename as
      	builtin_function_validate_nargs.
      	(check_builtin_function_arguments): Update.
      cp/
      	* typeck.c (convert_arguments): Update error message.
      	
      testsuite/
      	* gcc.dg/cleanup-1.c: Update.
      	* gcc.dg/func-args-1.c: Update.
      	* gcc.dg/format/sentinel-1.c: Update.
      	* g++.old-deja/g++.jason/scoping10.C: Update.
      	* g++.old-deja/g++.ns/lookup5.C: Update.
      	* g++.dg/ext/cleanup-1.C: Update.
      	* g++.dg/parse/varmod1.C: Update.
      	* g++.dg/parse/error33.C: Update.
      	* g++.dg/expr/call3.C: Update.
      	* g++.dg/func-args-1.C: New.
      
      From-SVN: r156979
      Manuel López-Ibáñez committed
    • Merge DECL_PRESERVE_P for C++. · 3a7ba040
      2010-02-22  Mike Stump  <mikestump@comcast.net>
      
      	PR c++/43125
      	* decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
      
      From-SVN: r156977
      Mike Stump committed
  2. 21 Feb, 2010 2 commits
  3. 20 Feb, 2010 1 commit
    • re PR c++/35669 (NULL (__null) not considered different from 0 with C++) · 17251338
      2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c++/35669
      	* c.opt (Wconversion-null): New option.
      	* doc/invoke.texi (Wconversion-null): Document.
      
      cp/
      	* call.c (conversion_null_warnings): Replace -Wconversion with
      	-Wconversion-null.
      	* cvt.c (build_expr_type_conversion): Likewise.
      
      testsuite/
      	* g++.dg/warn/Wconversion2.C: Replace -Wconversion with
      	-Wconversion-null.
      	* g++.dg/warn/Wconversion-null.C: New test.
      	* g++.old-deja/g++.other/null1.C: Move to...
      	* g++.dg/warn/Wconversion-null-2.C: ... here. Remove -Wconversion.
      
      libstdc++-v3/	
      	* testsuite/18_support/headers/cstddef/macros.cc: Add
      	-Wno-conversion-null.
      
      From-SVN: r156928
      Manuel López-Ibáñez committed
  4. 19 Feb, 2010 1 commit
  5. 18 Feb, 2010 4 commits
  6. 17 Feb, 2010 4 commits
  7. 16 Feb, 2010 3 commits
  8. 14 Feb, 2010 1 commit
  9. 12 Feb, 2010 4 commits
  10. 11 Feb, 2010 1 commit
  11. 10 Feb, 2010 4 commits
  12. 09 Feb, 2010 2 commits
  13. 05 Feb, 2010 2 commits
  14. 03 Feb, 2010 3 commits
  15. 29 Jan, 2010 2 commits
    • Fix PRs c++/42758, c++/42634, c++/42797 · 1a048f82
      ... and mitigate PR c++/42336
      
      gcc/cp/ChangeLog:
      	PR c++/42758
      	PR c++/42634
      	PR c++/42336
      	PR c++/42797
      	PR c++/42880
      	* cp-tree.h (NON_DEFAULT_TEMPLATE_ARGS_COUNT,
      	SET_NON_DEFAULT_TEMPLATE_ARGS_COUNT,
      	GET_NON_DEFAULT_TEMPLATE_ARGS_COUNT): New accessor macros.
      	* pt.c (coerce_template_parms, type_unification_real,
      	expand_template_argument_pack, coerce_template_parameter_pack):
      	Set the non default template args count.
      	(current_template_args): Always set non defaulted
      	template args count when compiled with --enable-checking
      	(tsubst_template_args, type_unification_real): Propagate the non
      	defaulted template args count.
      	* error.c (get_non_default_template_args_count): Renamed
      	count_non_default_template_args into this. Don't calculate the
      	non default template argument count anymore. Use the new
      	accessor macros above to get it.
      	(dump_template_argument_list, dump_type, dump_decl,
      	dump_template_parms): Adjust.
      	* parser.c (cp_parser_template_argument_list): Always set defaulted
      	template args count when compiled with --enable-checking.
      
      gcc/testsuite/ChangeLog:
      	PR c++/42758
      	PR c++/42634
      	PR c++/42336
      	PR c++/42797
      	PR c++/42880
      	* g++.dg/other/crash-5.C: New test.
      	* g++.dg/other/crash-6.C: New test.
      	* g++.dg/other/crash-7.C: New test.
      	* g++.dg/other/crash-8.C: New test.
      
      From-SVN: r156351
      Dodji Seketeli committed
    • decl.c (redeclaration_error_message): Wrap the return messages to G_() for easy translation. · 9ee5ebeb
      2010-01-29  Shujing Zhao  <pearly.zhao@oracle.com>
      
              * decl.c (redeclaration_error_message): Wrap the return messages to
              G_() for easy translation.
      
      From-SVN: r156340
      Shujing Zhao committed
  16. 28 Jan, 2010 2 commits
    • re PR c++/42880 (trunk does not compile boost MPL) · cd924144
      	PR c++/42880
      	* semantics.c (begin_class_definition): Don't use type_as_string.
      
      From-SVN: r156336
      Jason Merrill committed
    • re PR c++/42713 (ICE - segfault in tsubst) · 20c202f3
      Fix PR c++/42713
      
      gcc/cp/ChangeLog:
      	PR c++/42713
      	PR c++/42820
      	* typeck.c (get_template_parms_of_dependent_type): Factorized
      	this out of incompatible_template_type_parms_p
      	(incompatible_dependent_types_p): Renamed
      	incompatible_template_type_parms_p into this. Make it detect
      	two incompatible dependent typedefs too.
      	(structural_comptypes): Use incompatible_dependent_types_p.
      	* pt.c (get_template_info):
      	Handle BOUND_TEMPLATE_TEMPLATE_PARAM.
      
      gcc/testsuite/ChangeLog:
      	PR c++/42713
      	PR c++/42820
      	* g++.dg/template/typedef27.C: New test case.
      	* g++.dg/template/typedef28.C: New test case.
      
      From-SVN: r156316
      Dodji Seketeli committed
  17. 27 Jan, 2010 1 commit
  18. 21 Jan, 2010 1 commit
    • tree.h (TYPE_TRANSPARENT_UNION): Replace with ... · ebf0bf7f
      	* tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
      	(TYPE_TRANSPARENT_AGGR): this, for union and record.
      	* calls.c (initialize argument_information): Handle it.
      	* c-common.c (handle_transparent_union_attribute): Use new name.
      	* c-decl.c (finish_struct): Ditto.
      	* c-typeck.c (type_lists_compatible_p): Ditto.
      	(convert_for_assignment): Use new name and also handle record.
      	* function.c (aggregate_value_p): Handle it.
      	(pass_by_reference): Ditto.
      	(assign_parm_data_types): Ditto.
      	* print-tree.c (print_node): Ditto.
      	* lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
      	* lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
      	* tree.c (first_field): New fn.
      
      gcc/cp/
      	* mangle.c (write_type): Mangle transparent record as member type.
      	* semantics.c (begin_class_definition): Recognize decimal classes
      	and set TYPE_TRANSPARENT_AGGR.
      
      Co-Authored-By: Jason Merrill <jason@redhat.com>
      
      From-SVN: r156106
      Janis Johnson committed