1. 09 Feb, 2015 10 commits
  2. 08 Feb, 2015 12 commits
  3. 07 Feb, 2015 9 commits
  4. 06 Feb, 2015 9 commits
    • PR jit/64752 - Rewrite jit testsuite to eliminate use of "file" · a82289f5
      gcc/testsuite/ChangeLog:
      	PR jit/64752
      	* jit.dg/create-code-for-hello-world-executable.h: New file, taken
      	from jit.dg/test-compile-to-executable.c's create_code, with a
      	clarification of the output message.
      	* jit.dg/harness.h (CHECK_NO_ERRORS): Add test and __func__ to the
      	pass/fail message.
      	(test_jit): Use CHECK_NO_ERRORS when calling
      	gcc_jit_context_compile_to_file.
      	* jit.dg/jit.exp (jit-dg-test): Update grep for rename of
      	jit-verify-compile-to-file to jit-verify-output-file-was-created.
      	(jit-setup-compile-to-file): Likewise.  Add a verbose comment
      	about deletions that are attempted.
      	(jit-verify-compile-to-file): Rename to...
      	(jit-verify-output-file-was-created): ...this, and drop the
      	attempt to run "file" and verify the output.
      	(jit-verify-assembler): New function.
      	(jit-verify-object): New function.
      	(jit-verify-dynamic-library): New function.
      	* jit.dg/test-compile-to-assembler.c (create_code): Eliminate in
      	favor of an implementation from new file
      	create-code-for-hello-world-executable.h, which also adds a
      	"main".
      	(dg-final): Replace jit-verify-compile-to-file with
      	jit-verify-output-file-was-created, and invoke new function
      	jit-verify-assembler.
      	* jit.dg/test-compile-to-dynamic-library.c (create_code): Clarify
      	the output message.
      	(dg-final): Replace jit-verify-compile-to-file with
      	jit-verify-output-file-was-created, and invoke new function
      	jit-verify-dynamic-library.
      	* jit.dg/test-compile-to-executable.c (create_code): Eliminate in
      	favor of an implementation from new file
      	create-code-for-hello-world-executable.h, which also adds a
      	"main".
      	(dg-final): Replace jit-verify-compile-to-file with
      	jit-verify-output-file-was-created.  Strengthen the expected stdout
      	from the built executable.
      	* jit.dg/test-compile-to-object.c (create_code): Eliminate in
      	favor of an implementation from new file
      	create-code-for-hello-world-executable.h, which also adds a
      	"main".
      	(dg-final): Replace jit-verify-compile-to-file with
      	jit-verify-output-file-was-created, and invoke new function
      	jit-verify-object.
      	* jit.dg/verify-dynamic-library.c: New source file.
      
      From-SVN: r220494
      David Malcolm committed
    • PR 64878: do not jump thread across more than one back-edge · 45beb02e
      2015-02-04  Sebastian Pop  <s.pop@samsung.com>
      	    Brian Rzycki  <b.rzycki@samsung.com>
      
      	PR tree-optimization/64878
      	* tree-ssa-threadedge.c: Include tree-ssa-loop.h.
      	(fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
      	Stop recursion at loop phi nodes after having visited a loop phi node.
      
      	* testsuite/gcc.dg/tree-ssa/ssa-dom-thread-8.c: New.
      
      Co-Authored-By: Brian Rzycki <b.rzycki@samsung.com>
      
      From-SVN: r220491
      Sebastian Pop committed
    • toplev.c (process_options): Change flag_ipa_ra before creating optimization_{default,current}_node. · f3ab4eed
      	* toplev.c (process_options): Change flag_ipa_ra before creating
      	optimization_{default,current}_node.
      
      From-SVN: r220490
      Jakub Jelinek committed
    • re PR ipa/64896 (ICE in get_address_mode, at rtlanal.c:5442) · bbd1bae2
      	PR ipa/64896
      	* cgraphunit.c (cgraph_node::expand_thunk): If
      	restype is not is_gimple_reg_type nor the thunk_fndecl
      	returns aggregate_value_p, set restmp to a temporary variable
      	instead of resdecl.
      
      	* g++.dg/ipa/pr64896.C: New test.
      
      From-SVN: r220489
      Jakub Jelinek committed
    • lra.c (lra_emit_add): Fix a typo in using disp instead of base. · 091790a7
      2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* lra.c (lra_emit_add): Fix a typo in using disp instead of base.
      
      From-SVN: r220488
      Vladimir Makarov committed
    • re PR target/64205 (powerpc64-linux --with-cpu=G5 bootstrap failure) · 46290aa8
      [gcc]
      2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/64205
      	* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
      	add a general secondary reload handler for SDmode, unless we have
      	both read/write support for SDmode.
      
      [gcc/testsuite]
      2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/64205
      	* gcc.target/powerpc/pr64205.c: New file.
      
      From-SVN: r220485
      Michael Meissner committed
    • pr64317.c: Compile for 32bit *-*-linux* targets. · 828be03a
      	* gcc.target/i386/pr64317.c: Compile for 32bit *-*-linux* targets.
      	(dg-options): Use -fpie instead of -fPIE -pie.
      
      From-SVN: r220484
      Uros Bizjak committed
    • re PR middle-end/64937 (compare debug failure with -fsanitize=address) · 62276744
      	PR middle-end/64937
      	* dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
      	Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
      	or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
      	1 before, push it to abstract_vec.
      	(dwarf2out_abstract_function): Adjust caller.  Don't call
      	set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
      	DECL_ABSTRACT_P flags for all abstract_vec elts.
      
      	* g++.dg/asan/pr64937.C: New test.
      
      From-SVN: r220483
      Jakub Jelinek committed
    • re PR fortran/63205 ([OOP] Wrongly rejects type = class (for identical declared type)) · 43a68a9d
      2015-02-06  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/63205
      	* gfortran.h: Add 'must finalize' field to gfc_expr and
      	prototypes for gfc_is_alloc_class_scalar_function and for
      	gfc_is_alloc_class_array_function.
      	* expr.c (gfc_is_alloc_class_scalar_function,
      	gfc_is_alloc_class_array_function): New functions.
      	* trans-array.c (gfc_add_loop_ss_code): Do not move the
      	expression for allocatable class scalar functions outside the
      	loop.
      	(conv_array_index_offset): Cope with deltas being NULL_TREE.
      	(build_class_array_ref): Do not return with allocatable class
      	array functions. Add code to pick out the returned class array.
      	Dereference if necessary and return if not a class object.
      	(gfc_conv_scalarized_array_ref): Cope with offsets being NULL.
      	(gfc_walk_function_expr): Return an array ss for the result of
      	an allocatable class array function.
      	* trans-expr.c (gfc_conv_subref_array_arg): Remove the assert
      	that the argument should be a variable. If an allocatable class
      	array function, set the offset to zero and skip the write-out
      	loop in this case.
      	(gfc_conv_procedure_call): Add allocatable class array function
      	to the assert. Call gfc_conv_subref_array_arg for allocatable
      	class array function arguments with derived type formal arg..
      	Add the code for handling allocatable class functions, including
      	finalization calls to prevent memory leaks.
      	(arrayfunc_assign_needs_temporary): Return if an allocatable
      	class array function.
      	(gfc_trans_assignment_1): Set must_finalize to rhs expression
      	for allocatable class functions. Set scalar_to_array as needed
      	for scalar class allocatable functions assigned to an array.
      	Nullify the allocatable components corresponding the the lhs
      	derived type so that the finalization does not free them.
      
      2015-02-06  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/63205
      	* gfortran.dg/class_to_type_4.f90: New test
      
      From-SVN: r220482
      Paul Thomas committed