1. 12 Dec, 2016 1 commit
  2. 11 Dec, 2016 9 commits
  3. 10 Dec, 2016 8 commits
  4. 09 Dec, 2016 22 commits
    • re PR fortran/77903 ([F08] gfortran 6.1.0/7.0.0 accept invalid code with… · c064374d
      re PR fortran/77903 ([F08] gfortran 6.1.0/7.0.0 accept invalid code with conflicting module/submodule interfaces)
      
      2016-12-09  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/77903
      	* decl.c (get_proc_name): Use the symbol tlink field instead of
      	the typespec interface field.
      	(gfc_match_function_decl, gfc_match_submod_proc): Ditto.
      	* gfortran.h : Since the symbol tlink field is no longer used
      	by the frontend for change management, change the comment to
      	reflect its current uses.
      	* parse.c (get_modproc_result): Same as decl.c changes.
      	* resolve.c (resolve_fl_procedure): Ditto.
      
      2016-12-09  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/77903
      	* gfortran.dg/submodule_20.f08: New test.
      
      From-SVN: r243507
      Paul Thomas committed
    • re PR testsuite/78740 (test case powerpc/pr78691-ppc.c fails starting with its… · 36823125
      re PR testsuite/78740 (test case powerpc/pr78691-ppc.c fails starting with its introduction in r243335)
      
      2016-12-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	PR testsuite/78740
      	* gcc.target/powerpc/pr78691-ppc.c: Remove -m32.
      
      From-SVN: r243506
      Bill Schmidt committed
    • rs6000-passes.def: New file. · 5715e980
      2016-12-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	* config/rs6000/rs6000-passes.def: New file.
      	* config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
      	* config/rs6000/rs6000.c (rs6000_option_override): Remove
      	registration of machine-specific passes.
      	(pass_analyze_swaps::clone): New function.
      	* config/rs6000/t-rs6000: Define PASSES_EXTRA.
      
      From-SVN: r243504
      Bill Schmidt committed
    • fold-vec-add-7.c: Require effective target to support __int128. · 46c08482
      2016-12-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	* gcc.target/powerpc/fold-vec-add-7.c: Require effective target to
      	support __int128.
      
      From-SVN: r243503
      Bill Schmidt committed
    • Add missing part of entry. · a6aba17d
      From-SVN: r243502
      Martin Sebor committed
    • re PR tree-optimization/78721 (ICE on valid code at -O2 and -O3 on… · 7d22d5a3
      re PR tree-optimization/78721 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in set_value_range, at tree-vrp.c:371)
      
      gcc/testsuite/ChangeLog:
      
      2016-12-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	PR ipa/78721
      	* gcc.dg/pr78721.c: New test.
      
      gcc/ChangeLog:
      
      2016-12-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	PR ipa/78721
      	* ipa-cp.c (propagate_vr_accross_jump_function): drop_tree_overflow
      	after fold_convert.
      
      From-SVN: r243501
      Kugan Vivekanandarajah committed
    • re PR target/72742 (ICE in extract_insn, at recog.c:2309 (error: unrecognizable insn) w/ -Os -mlra) · 424c77c2
      	PR target/72742
      	* config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
      	*and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
      	condition.
      
      	* gcc.c-torture/compile/pr72742.c: New test.
      
      From-SVN: r243500
      Jakub Jelinek committed
    • rs6000: clz/ctz/ffs improvement (PR78683) · bb0f9c02
      On CPUs that implement popcnt[wd] but not cnttz[wd] we can do better for
      the ctz sequences than we do today.
      
      CL[TZ]_DEFINED_VALUE_AT_ZERO can return 2, since we always return the
      same fixed value (only dependent on TARGET_* options).
      
      
      	PR target/78683
      	* config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
      	GET_MODE_BITSIZE.  Return 2.
      	(CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE.  Return 2.  Handle
      	TARGET_POPCNTD the same as TARGET_CTZ.
      	* config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
      	(ffs<mode>2): Reimplement.
      
      From-SVN: r243499
      Segher Boessenkool committed
    • re PR middle-end/78750 (ICE in get_range_info, at tree-ssanames.c:375) · 59ab1319
      	PR middle-end/78750
      	* builtins.c (check_sizes): Use POINTER_TYPE_P.
      
      	* g++.dg/torture/pr78750.C: New.
      
      From-SVN: r243498
      Marek Polacek committed
    • gcc/testsuite/ChangeLog: · c915eee6
      	on arm-unknown-linux-gnueabi (and likely other ILP32) targets.
      
      From-SVN: r243497
      Martin Sebor committed
    • PR78255: Make postreload aware of NO_FUNCTION_CSE · d5a752eb
      gcc/ChangeLog:
      2016-12-09  Andre Vieira <andre.simoesdiasvieira@arm.com>
      
      	PR rtl-optimization/78255
      	* gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
      	NO_FUNCTION_CSE is true.
      
      gcc/testsuite/ChangeLog:
      2016-12-09  Andre Vieira <andre.simoesdiasvieira@arm.com>
      
      	PR rtl-optimization/78255
      	* gcc.target/aarch64/pr78255.c: New.
      	* gcc.target/arm/pr78255-1.c: New.
      	* gcc.target/arm/pr78255-2.c: New.
      
      From-SVN: r243494
      Andre Vieira committed
    • dimode-1.c: Update syntax on scan-assembler strings · d9e0fdff
      
      	* gcc.target/powerpc/dimode-1.c: Update syntax on scan-assembler
      	strings
      	* gcc.target/powerpc/dimode-2.c: Likewise.
      
      From-SVN: r243493
      Will Schmidt committed
    • Fix std::variant for gnu-versioned--namespace build · 9b796223
      	* include/std/variant: Remove misplaced
      	_GLIBCXX_BEGIN_NAMESPACE_VERSION macro.
      
      From-SVN: r243489
      Jonathan Wakely committed
    • re PR ipa/78027 (ICE in new_oacc_loop_routine, at omp-low.c:19000) · 97ad3aef
      	PR ipa/78027
      
      	gcc/
      	* ipa-icf.c (sem_function::parse): Don't process functions with
      	oacc decl attributes, as they may be OpenACC routines.
      
      	gcc/testsuite/
      	* c-c++-common/goacc/acc-icf.c: New test.
      	* gfortran.dg/goacc/pr78027.f90: New test.
      
      From-SVN: r243488
      Cesar Philippidis committed
    • Prevent use of MEM_* attr accessor macros as lvalues · 6bd8a5c7
      gcc/ChangeLog:
      	* rtl.h (get_mem_attrs): Add "const" qualifier to returned
      	pointer.
      
      From-SVN: r243487
      David Malcolm committed
    • Add the test this time... · ac9e52e7
              PR target/78733
              * gcc.target/aarch64/pr78733.c: New test.
      
      From-SVN: r243486
      Wilco Dijkstra committed
    • re PR fortran/61767 ([OOP] ICE in generate_finalization_wrapper at fortran/class.c:1491) · cdeb16cb
      2016-12-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/61767
      	* class.c (has_finalizer_component): Fix this function to detect only
      	non-pointer non-allocatable components which have a finalizer.
      
      2016-12-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/61767
      	* gfortran.dg/finalize_31.f90: New test.
      
      From-SVN: r243483
      Janus Weil committed
    • re PR fortran/78505 ([F08] Coarray source allocation not synchronizing on oversubscribed cores) · ffaf9305
      gcc/fortran/ChangeLog:
      
      2016-12-09  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	PR fortran/78505
      	* trans-stmt.c (gfc_trans_allocate): Add sync all after the execution
      	of the whole allocate-statement to adhere to the standard.
      
      gcc/testsuite/ChangeLog:
      
      2016-12-09  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	PR fortran/78505
      	* gfortran.dg/coarray_alloc_with_implicit_sync_1.f90: New test.
      
      From-SVN: r243482
      Andre Vehreschild committed
    • trans-array.c (gfc_array_deallocate): Remove wrapper. · 39da5866
      gcc/fortran/ChangeLog:
      
      2016-12-09  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	* trans-array.c (gfc_array_deallocate): Remove wrapper.
      	(gfc_trans_dealloc_allocated): Same.
      	(structure_alloc_comps): Restructure deallocation of (nested)
      	allocatable components.  Insert dealloc of sub-component into the block
      	guarded by the if != NULL for the component.
      	(gfc_trans_deferred_array): Use the almightly deallocate_with_status.
      	* trans-array.h: Remove prototypes.
      	* trans-expr.c (gfc_conv_procedure_call): Use the almighty deallocate_
      	with_status.
      	* trans-openmp.c (gfc_walk_alloc_comps): Likewise.
      	(gfc_omp_clause_assign_op): Likewise. 
      	(gfc_omp_clause_dtor): Likewise.
      	* trans-stmt.c (gfc_trans_deallocate): Likewise.
      	* trans.c (gfc_deallocate_with_status): Allow deallocation of scalar
      	and arrays as well as coarrays.
      	(gfc_deallocate_scalar_with_status): Get the data member for coarrays
      	only when freeing an array with descriptor.  And set correct caf_mode
      	when freeing components of coarrays.
      	* trans.h: Change prototype of gfc_deallocate_with_status to allow
      	adding statements into the block guarded by the if (pointer != 0) and
      	supply a coarray handle.
      
      gcc/testsuite/ChangeLog:
      
      2016-12-09  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	* gfortran.dg/coarray_alloc_comp_3.f08: New test.
      	* gfortran.dg/coarray_alloc_comp_4.f08: New test.
      	* gfortran.dg/finalize_18.f90: Add count for additional guard against
      	accessing null-pointer.
      	* gfortran.dg/proc_ptr_comp_47.f90: New test.
      
      From-SVN: r243480
      Andre Vehreschild committed
    • re PR c++/78550 (bit field and std::initializer_list) · 32913637
      	PR c++/78550
      	* convert.c (convert_to_integer_1): Maybe fold conversions to
      	integral types with fewer bits than its mode.
      
      	testsuite/
      	PR c++/78550
      	* g++.dg/cpp1y/pr78550.C: New.
      
      From-SVN: r243479
      Nathan Sidwell committed
    • re PR fortran/44265 (Link error with reference to parameter array in specification expression) · 345bd7eb
      2016-12-09  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/44265
      	* gfortran.h : Add fn_result_spec bitfield to gfc_symbol.
      	* resolve.c (flag_fn_result_spec): New function.
      	(resolve_fntype): Call it for character result lengths.
      	* symbol.c (gfc_new_symbol): Set fn_result_spec to zero.
      	* trans-decl.c (gfc_sym_mangled_identifier): Include the
      	procedure name in the mangled name for symbols with the
      	fn_result_spec bit set.
      	(gfc_finish_var_decl): Mark the decls of these symbols
      	appropriately for the case where the function is external.
      	(gfc_get_symbol_decl): Mangle the name of these symbols.
      	(gfc_create_module_variable): Allow them through the assert.
      	(gfc_generate_function_code): Remove the assert before the
      	initialization of sym->tlink because the frontend no longer
      	uses this field.
      	* trans-expr.c (gfc_map_intrinsic_function): Add a case to
      	treat the LEN_TRIM intrinsic.
      	(gfc_trans_string_copy): Deal with Wstringop-overflow warning
      	that can occur with constant source lengths at -O3.
      
      2016-12-09  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/44265
      	* gfortran.dg/char_result_14.f90: New test.
      	* gfortran.dg/char_result_15.f90: New test.
      
      From-SVN: r243478
      Paul Thomas committed
    • Escape non-printable chars in strings. · cdecc83f
      	* tree-pretty-print.c (pretty_print_string): Escape non-printable
      	chars in strings.
      	* gcc.dg/tree-ssa/dump-3.c: New test.
      
      From-SVN: r243477
      Martin Liska committed