1. 13 Jan, 2012 12 commits
  2. 12 Jan, 2012 17 commits
  3. 11 Jan, 2012 11 commits
    • compiler: Permit type B byte; type S []B; var v = S("x"). · 7b31a84d
      From-SVN: r183112
      Ian Lance Taylor committed
    • re PR bootstrap/51796 (internal compiler error: in distribute_notes, at… · 319638ed
      re PR bootstrap/51796 (internal compiler error: in distribute_notes, at combine.c:13285 for libgomp/alloc.c on m68k-linux)
      
      	PR bootstrap/51796
      	* combine.c (distribute_notes): If i3 is a noreturn call,
      	allow old_size to be equal to args_size and make sure the
      	noreturn call gets REG_ARGS_SIZE note.
      	* expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
      	on noreturn calls even when the delta is 0.
      
      	* gcc.dg/pr51796.c: New test.
      
      From-SVN: r183111
      Jakub Jelinek committed
    • comment · ef079a56
      From-SVN: r183108
      Jason Merrill committed
    • re PR c++/51818 ([C++0x] Name mangling error using lambda expressions in GCC47) · b34e0e6f
      	PR c++/51818
      	* mangle.c (find_substitution): A type is only a substitution
      	match if we're looking for a type.
      	(write_nested_name): Use decl_mangling_context.
      
      From-SVN: r183107
      Jason Merrill committed
    • adjust comment · faf00d3c
      From-SVN: r183106
      Jason Merrill committed
    • gcov.c (STRING_SIZE): Remove. · 8f961b22
      	* gcov.c (STRING_SIZE): Remove.
      	(generate_results): Erase annotations for source files with no
      	coverage information.
      	(read_line): New.
      	(output_lines): Use it.
      
      From-SVN: r183105
      Nathan Sidwell committed
    • gimple.h (gimplify_body): Remove first argument. · 3ad065ef
      	* gimple.h (gimplify_body): Remove first argument.
      	* gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
      	pointer set here, instead just pass DATA to walk_tree.
      	(unshare_body): Remove BODY_P argument and adjust.  Create the pointer
      	set here and invoke copy_if_shared on the size trees of DECL_RESULT.
      	(unvisit_body): Likewise, but with unmark_visited.
      	(gimplify_body): Remove BODY_P argument and adjust.
      	(gimplify_function_tree): Adjust call to gimplify_body.
      	* omp-low.c (finalize_task_copyfn): Likewise.
      
      From-SVN: r183104
      Eric Botcazou committed
    • tree.h (build_function_decl_skip_args): Add boolean parameter. · 1a2c27e9
      	* tree.h (build_function_decl_skip_args): Add boolean parameter.
      	(build_function_type_skip_args): Delete.
      	* tree.c (build_function_type_skip_args): Make static and add
      	SKIP_RETURN parameter.  Fix thinko in the handling of variants.
      	(build_function_decl_skip_args): Add SKIP_RETURN parameter and
      	pass it to build_function_type_skip_args.
      	* cgraph.h (cgraph_function_versioning): Add boolean parameter.
      	(tree_function_versioning): Likewise.
      	* cgraph.c (cgraph_create_virtual_clone): Adjust call to
      	build_function_decl_skip_args.
      	* cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
      	and pass it to build_function_decl_skip_args/tree_function_versioning.
      	(cgraph_materialize_clone): Adjust call to tree_function_versioning.
      	* ipa-inline-transform.c (save_inline_function_body): Likewise.
      	* trans-mem.c (ipa_tm_create_version): Likewise.
      	* tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
      	* tree-inline.c (declare_return_variable): Remove always-true test.
      	(tree_function_versioning): Add SKIP_RETURN parameter.  If the function
      	returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
      	* ipa-split.c (split_function): Skip the return value for the split
      	part if it doesn't return.
      
      From-SVN: r183102
      Eric Botcazou committed
    • re PR tree-optimization/49642 (constant part of a macro not optimized away as… · b2e25729
      re PR tree-optimization/49642 (constant part of a macro not optimized away as expected due to splitter)
      
      gcc:
      
      2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	PR tree-optimization/49642
      	* ipa-split.c (forbidden_dominators): New variable.
      	(check_forbidden_calls): New function.
      	(dominated_by_forbidden): Likewise.
      	(consider_split): Check for forbidden dominators.
      	(execute_split_functions): Initialize and free forbidden
      	dominators info; call check_forbidden_calls.
      
      gcc/testsuite:
      
      2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	PR tree-optimization/49642
      	* gcc.dg/tree-ssa/pr49642-1.c: New test.
      	* gcc.dg/tree-ssa/pr49642-2.c: New test.
      
      From-SVN: r183101
      Bill Schmidt committed