1. 08 Feb, 2015 11 commits
  2. 07 Feb, 2015 9 commits
  3. 06 Feb, 2015 20 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
    • mksysinfo.sh: Remove _zone_net_addr_t handling. · 898c81f8
      From Rainer Orth.
      
      The recent godump changes broke Solaris 11.1+ bootstrap in
      libgo: before, gen-sysinfo.so had
      
      type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 _in6_addr; }; }
      
      which was filtered out by mksysinfo.sh due to the use of
      _in6_addr.
      
      After the change, there's now
      
      type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 [16]byte; Godump_0_align [0]uint32; }; }
      
      instead, not filtered, but added a second time by the
      _zone_net_addr_t code in mksysinfo.sh, which leads to
      redefinition warnings/errors.
      
      Simply removing the old _zone_net_addr_t fragment fixes this
      and restores bootstrap.
      
      From-SVN: r220481
      Ian Lance Taylor committed
    • [PATCH]Keep location info when expand complex component-wise load/store. · f376994a
      gcc/
      	* tree-ssa-forwprop.c (execute): Keep location info while rewrite
      	complex gimple.
      	* tree-ssa.c (execute_update_addresses_taken): Likewise.
      
      From-SVN: r220480
      Renlin Li committed
    • Fix 404 in "Show Source" in jit docs · 9baa38b7
      maintainer-scripts/ChangeLog:
      	PR jit/64257
      	* update_web_docs_svn: When copying up files for the built jit
      	documentation, also copy up .txt files.
      
      From-SVN: r220479
      David Malcolm committed
    • re PR target/64889 ([h8300] ICE maybe_record_trace_start, at dwarf2cfi.c:2318) · 1901e8d6
      	PR target/64889
      	* config/h8300/h8300.c (push): New argument "in_prologue".
      	Pass "in_prologue" along to "F".
      	(h8300_push_pop): Corresponding changes.
      	(h8300_expand_prologue): Likewise.
      	(h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
      
      From-SVN: r220478
      Jeff Law committed
    • Revert the PR lto/64837 fix · 514ba9e4
      It breaks gold:
      
      % echo "int main () {}" | gcc -fuse-ld=gold -flto -x c++ -
      ld.gold: internal error in remove_writer, at token.h:132
      collect2: error: ld returned 1 exit status
      
      	* lto-plugin.c (release_input_file): Removed.
      	(claim_file_handler): Don't call release_input_file.
      	(onload): Don't set release_input_file.
      
      From-SVN: r220477
      H.J. Lu committed
    • re PR rtl-optimization/64957 (wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu) · d26ac279
      	PR rtl-optimization/64957
      	PR debug/64817
      	* simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
      	IOR rather than for AND.
      
      	* gcc.c-torture/execute/pr64957.c: New test.
      
      From-SVN: r220475
      Jakub Jelinek committed
    • re PR fortran/60289 (allocating class(*) pointer as character gives type-spec… · e3a7c6cf
      re PR fortran/60289 (allocating class(*) pointer as character gives type-spec requires the same character-length parameter)
      
      	PR fortran/60289
      	Initial patch by Janus Weil
      	* resolve.c (resolve_allocate_expr): Add check for comp. only when 
      	target is not unlimited polymorphic.
      	* trans-stmt.c (gfc_trans_allocate): Assign correct value to _len
      	component of unlimited polymorphic entities.
      
      	* gfortran.dg/unlimited_polymorphic_22.f90: New test.
      
      From-SVN: r220474
      Andre Vehreschild committed
    • re PR target/62631 (gcc.dg/tree-ssa/ivopts-lt-2.c FAILs) · 9fb87eb0
      	PR target/62631
      	* tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
      	of shift-add and (add + shift) operations.  Rename local variable.
      
      From-SVN: r220473
      Eric Botcazou committed
    • re PR target/17306 (function_vector attribute in H8300H/H8S) · 9f9ab303
      	PR target/17306
      	* config/h8300/constraints.md (U): Correctly dectect
      	"eightbit_data" memory addresses.
      	* config/h8300/h8300.c (eightbit_constant_address_p): Also
      	handle (const (plus (symbol_ref (x)))) where x is declared
      	as an 8-bit data memory address.
      	* config/h8300/h8300.md (call, call_value): Correctly detect
      	"funcvec" functions.
      
      	PR target/17306
      	* gcc.target/h8300/pr17306-1.c: New test.
      	* gcc.target/h8300/pr17306-2.c: New test.
      
      From-SVN: r220472
      Jeff Law committed
    • re PR target/43264 (Arithmetic expression error) · d00f6ca6
      	PR target/43264
      	* config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
      	24 to 28 bits for the H8/300.
      
      From-SVN: r220471
      Jeff Law committed
    • runtime: Add memprofilerate to GODEBUG · 8c5c44aa
      Add memprofilerate as a value recognized
      in the GODEBUG env var.  The value provided
      is used as the new setting for
      runtime.MemProfileRate, allowing the user
      to adjust memory profiling.
      
      From-SVN: r220470
      Ian Lance Taylor committed