1. 20 Mar, 2009 3 commits
  2. 19 Mar, 2009 8 commits
  3. 18 Mar, 2009 13 commits
  4. 17 Mar, 2009 16 commits
    • decl.c (grokfndecl): Set DECL_CONTEXT on parms. · 448545cb
              cp/:
              * decl.c (grokfndecl): Set DECL_CONTEXT on parms.
              (duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms.
              * pt.c (check_explicit_specialization): Likewise.
              (tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a
              local specialization.
              * tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name.
              * decl2.c (parm_index): New fn.
              * semantics.c (finish_decltype_type): Don't use describable_type.
              * mangle.c (write_expression): Likewise.  Mangle ALIGNOF_EXPR.
              Give a sorry for unsupported codes rather than crash.  Mangle
              conversions with other than 1 operand.  New mangling for PARM_DECL.
              * operators.def (ALIGNOF_EXPR): Mangle as az.
        
              * include/demangle.h (enum demangle_component_type): Add
              DEMANGLE_COMPONENT_FUNCTION_PARAM.
              * libiberty/cp-demangle.c (d_make_function_param): new fn.
              (cplus_demangle_mangled_name): Work around abi v2 bug.
              (d_expr_primary): Likewise.
              (cplus_demangle_operators): Add alignof ops.
              (d_expression): Handle function parameters and conversions
              with other than 1 operand.
              (d_print_comp): Handle function parameters.  Fix bug with
              function used in type of function.
      
      From-SVN: r144924
      Jason Merrill committed
    • appendix_contributing.xml: Add docbook style sheet version information. · 0075846f
      2009-03-17  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* doc/xml/manual/appendix_contributing.xml: Add docbook style
      	sheet version information. Table-ize docbook element examples.
      	* doc/xml/manual/using.xml: Human-readable header
      	markup. Alphabetized. Add new headers.
      	* doc/html: Regenerate.
      
      From-SVN: r144923
      Benjamin Kosnik committed
    • Fix a documentation issue in a previous check in. · 03f30216
      Fix a documentation issue in a previous check in.  Move C++ entry to
      cp/ChangeLog
      
      From-SVN: r144922
      Doug Kwan committed
    • re PR middle-end/37805 (gcc --help=separate) · 0631b69f
      gcc/
      	PR middle-end/37805
      	* opts.c (print_specific_help): In addition to `undocumented',
      	accept `separate' and `joined' flags if passed alone.  Describe
      	output by the first matched one of those.
      	(common_handle_option): Skip over empty strings.
      	* gcc.c (display_help): Fix help string for `--help='.
      	* doc/invoke.texi (Option Summary, Overall Options): With
      	`--help=', classes and qualifiers can both be repeated, but
      	only the latter can be negated.  One should not pass only
      	negated qualifiers.  Fix markup and examples.
      
      From-SVN: r144921
      Ralf Wildenhues committed
    • revert: re PR middle-end/37805 (gcc --help=separate) · 66811228
      gcc/
      	Revert
      	2008-10-14  Jakub Jelinek  <jakub@redhat.com>
      	PR middle-end/37805
      	* opts.c (common_handle_option): Don't ICE on -fhelp=joined
      	and -fhelp=separate.
      
      From-SVN: r144920
      Ralf Wildenhues committed
    • re PR c++/39475 (c++0x type-traits should error out in case of incompleteness) · ff284b4b
      /cp
      2009-03-17  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/39475
      	* semantics.c (check_trait_type): New.
      	(finish_trait_expr): Use it.
      
      /testsuite
      2009-03-17  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/39475
      	* g++.dg/ext/unary_trait_incomplete.C: New.
      
      From-SVN: r144919
      Paolo Carlini committed
    • re PR middle-end/39378 (Multiple inheritence thunk not working with -mthumb) · 3c072c6b
      2009-03-12  Jing Yu  <jingyu@google.com>
      
      	PR middle-end/39378
      	* function.h: Move is_thunk from rtl_data structure to function
      	structure.
      	* cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
      	* varasm.c (assemble_start_function): Change is_thunk from crtl to
      	cfun.
      	* config/alpha/alpha.c: Change is_thunk from crtl to cfun.
      	* config/rs6000/rs6000.c: Change is_thunk from crtl to cfun.
      	* config/arm/arm.h: Change is_thunk from crtl to cfun.
      	* testsuite/g++.dg/inherit/thunk10.C: New file.
      
      	Patch submitted by Doug Kwan <dougkwan@google.com>
      
      From-SVN: r144918
      Jing Yu committed
    • re PR target/39482 (ICE in inline_secondary_memory_needed, at config/i386/i386.c:25478) · 9ade279b
      	PR target/39482
      	* config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
      	from different units in a single alternative.
      	(*truncdfsf_i387): Ditto.
      	(*truncxfsf2_mixed): Ditto.
      	(*truncxfdf2_mixed): Ditto.
      
      testsuite/ChangeLog:
      
      	PR target/39482
      	* gcc.target/i386/pr39482.c: New test.
      
      From-SVN: r144915
      Uros Bizjak committed
    • re PR debug/39474 (DW_AT_location missing for unused variables even at -O0) · df5deb18
      	PR debug/39474
      	* tree-ssa-live.c (remove_unused_locals): Don't remove local
      	unused non-artificial variables when not optimizing.
      
      From-SVN: r144914
      Jakub Jelinek committed
    • re PR debug/37890 (Incorrect nesting for DW_TAG_imported_declaration) · 47512a6e
      	PR debug/37890
      	* name-lookup.c (do_namespace_alias): Don't call global_decl debug
      	hook at function scope.
      
      From-SVN: r144913
      Jakub Jelinek committed
    • dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow non-NAMESPACE_DECL… · 98381eb4
      dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
      
      	* dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
      	non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
      
      	* name-lookup.c (cp_emit_debug_info_for_using): Emit USING_STMTs
      	instead of calling imported_module_or_decl debug hook if
      	building_stmt_tree ().
      	* cp-gimplify.c (cp_gimplify_expr): Don't assert the first operand
      	is a NAMESPACE_DECL.
      
      From-SVN: r144912
      Jakub Jelinek committed
    • re PR debug/39471 (DW_TAG_imported_module should be used (not DW_TAG_imported_declaration)) · a3f596ba
      	PR debug/39471
      	* dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
      	DW_TAG_imported_module even if decl is IMPORTED_DECL with
      	NAMESPACE_DECL in its DECL_INITIAL.
      
      	* cp-gimplify.c (cp_gimplify_expr): Don't set DECL_NAME
      	on IMPORTED_DECL.
      
      	* g++.dg/debug/dwarf2/imported-module-2.C: Expect
      	DW_TAG_imported_module, not just any DW_TAG_imported prefixed tag.
      	* g++.dg/debug/dwarf2/imported-module-3.C: Likewise.
      	* g++.dg/debug/dwarf2/imported-module-4.C: Likewise.
      
      From-SVN: r144911
      Jakub Jelinek committed
    • re PR middle-end/39443 (Builtin redirection no longer working for memcmp) · 6b2b8871
      	PR middle-end/39443
      	* optabs.c (set_user_assembler_libfunc): New function.
      	* expr.h (set_user_assembler_libfunc): New prototype.
      	* c-common.c: Include libfuncs.h.
      	(set_builtin_user_assembler_name): Call set_user_assembler_libfunc
      	for memcmp, memset, memcpy, memmove and abort.
      	* Makefile.in (c-common.o): Depend on libfuncs.h.
      
      	* gcc.dg/pr39443.c: New test.
      
      From-SVN: r144910
      Jakub Jelinek committed
    • re PR debug/39412 (ICE in gen_tagged_type_instantiation_die) · 16e60c17
      	PR debug/39412
      	* dwarf2out.c (gen_inlined_enumeration_type_die,
      	gen_inlined_structure_type_die, gen_inlined_union_type_die,
      	gen_tagged_type_instantiation_die): Removed.
      	(gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
      	do nothing.
      
      	* gcc.dg/debug/pr39412.c: New test.
      
      From-SVN: r144909
      Jakub Jelinek committed
    • re PR testsuite/38526 (WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator) · 4d936aca
      gcc/
      	PR testsuite/38526
      	* Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
      	its use.
      	(check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
      	(check-parallel-%): Ditto.
      	(check-consistency): Ditto.
      testsuite/
      	PR testsuite/38526
      	* lib/target-libpath.exp (set_ld_library_path_env_vars): Save
      	existing GCC_EXEC_PREFIX, set to TEST_GCC_EXEC_PREFIX if that
      	is defined.
      	(restore_ld_library_path_env_vars): Restore GCC_EXEC_PREFIX to
      	its original value, or unset if it was not defined.
      	* gcc.dg/compat/struct-layout-1.exp: Use set/restore library
      	path procs around use of HOSTCC.
      	* g++.dg/compat/struct-layout-1.exp: Ditto.
      	* objc.dg/gnu-encoding/gnu-encoding.exp: Ditto.
      
      From-SVN: r144908
      Janis Johnson committed
    • ipa-struct-reorg.c (create_general_new_stmt): Initialize local variable rhs by NULL_TREE. · 4e9b2e50
      2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
      
              * ipa-struct-reorg.c (create_general_new_stmt): Initialize
              local variable rhs by NULL_TREE.
      
      From-SVN: r144907
      Kai Tietz committed