1. 24 Oct, 2016 7 commits
    • re PR target/78093 ([avr] New variable attribute "absdata" and option… · b1b6774f
      re PR target/78093 ([avr] New variable attribute "absdata" and option "-mabsdata" to enable LDS / STS on Reduced Tiny)
      
      gcc/
      	PR target/78093
      	* doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
      	* config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
      	(avr_address_tiny_absdata_p): New static function.
      	(avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
      	it to determine validity of constant addresses.
      	(avr_attribute_table) [absdata]: New variable attribute...
      	(avr_handle_absdata_attribute): ...and handler.
      	(avr_decl_absdata_p): New static function.
      	(avr_encode_section_info) [AVR_TINY]: Use it to add flag
      	AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
      	(avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
      gcc/testsuite/
      	PR target/78093
      	* lib/target-supports.exp (check_effective_target_avr_tiny): New proc.
      	* gcc.target/avr/torture/tiny-absdata-1.c: New test.
      
      From-SVN: r241468
      Georg-Johann Lay committed
    • re PR tree-optimization/78076 (Conditional jump or move depends on uninitialised… · 06d1ff90
      re PR tree-optimization/78076 (Conditional jump or move depends on uninitialised value @ tree-vect-loop.c:2307)
      
      2016-10-24  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/78076
      	* tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
      	also on the loop tree root.
      
      From-SVN: r241467
      Richard Biener committed
    • pure-code.exp: Restore saved globals. · ed9760d2
      2016-10-24  Andre Vieira  <andre.simoesdiasvieira@arm.com>
      
      	* gcc.target/arm/pure-code/pure-code.exp: Restore saved globals.
      
      From-SVN: r241466
      Andre Vieira committed
    • i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_BEXTR{,I}{32,64}... · fb027a42
      	* config/i386/i386.c (ix86_fold_builtin): Handle
      	IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
      	IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
      	(ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
      	IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
      
      	* gcc.target/i386/bmi2-pext-1.c: New test.
      	* gcc.target/i386/bmi2-pdep-1.c: New test.
      	* gcc.target/i386/bmi2-bzhi-3.c: New test.
      	* gcc.target/i386/tbm-bextri-1.c: New test.
      	* gcc.target/i386/bmi-bextr-6.c: New test.
      
      From-SVN: r241465
      Jakub Jelinek committed
    • Work around 32-bit i386 STV testcases failing with -mstackrealign (PR target/77483) · 8e10302e
      	PR target/77483
      	* gcc.target/i386/mask-unpack.c (dg-options): Add -mno-stackrealign.
      	* gcc.target/i386/pr65105-1.c: Likewise.
      	* gcc.target/i386/pr65105-2.c: Likewise.
      	* gcc.target/i386/pr65105-3.c: Likewise.
      	* gcc.target/i386/pr65105-5.c: Likewise.
      	* gcc.target/i386/pr67761.c: Likewise.
      	* gcc.target/i386/pr70799-1.c: Likewise.
      
      From-SVN: r241464
      Rainer Orth committed
    • Do not disable aggressive loop opts for · 866c72a8
      	PR sanitizer/77966
      	* opts.c (finish_options): Skip conditionally.
      	PR sanitizer/77966
      	* c-c++-common/ubsan/unreachable-3.c: New test.
      
      From-SVN: r241463
      Martin Liska committed
    • Daily bump. · af460fd7
      From-SVN: r241460
      GCC Administrator committed
  2. 23 Oct, 2016 8 commits
    • PR target/77837 - missing -Wformat-length warning for %p with null argument on powerpc64 · 683068d6
      gcc/ChangeLog:
      
      	PR target/77837
      	* config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
      	* config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
      
      From-SVN: r241457
      Martin Sebor committed
    • re PR fortran/77763 (ICE in parse_struct_map, at fortran/parse.c:3064) · 0804124b
      2016-10-23  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/77763
      	* parse.c (parse_spec): Allow STRUCTURE in BLOCK DATA.  Sort
      	case labels.
      
      2016-10-23  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/77763
      	* gfortran.dg/pr77763.f90
      
      From-SVN: r241454
      Steven G. Kargl committed
    • sparc.md (cpu_feature): Minor tweak. · d94c476c
      	* config/sparc/sparc.md (cpu_feature): Minor tweak.
      	(enabled): Likewise.
      	(movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
      	movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
      	sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
      	mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
      	<code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
      	fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
      
      From-SVN: r241452
      Eric Botcazou committed
    • re PR fortran/54730 (ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1066) · 87c9fca5
      2016-10-23  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/54730
      	PR fortran/78033
      	* array.c (gfc_match_array_constructor): Remove checkpointing
      	introduced in r196416 (original fix for PR fortran/54730).  Move
      	initialization to top of function.
      	* match.c (gfc_match_type_spec): Special case matching for REAL.
      
      2016-10-23  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/54730
      	PR fortran/78033
      	* gfortran.dg/pr78033.f90: New test.
      
      From-SVN: r241451
      Steven G. Kargl committed
    • re PR fortran/69834 ([OOP] Collision in derived type hashes) · dfd6231e
      2016-10-23  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/69834
      	* class.c (gfc_find_derived_vtab): Obtain the gsymbol for the
      	derived type's module. If the gsymbol is present and the top
      	level namespace corresponds to a module, use the gsymbol name
      	space. In the search to see if the vtable exists, try the gsym
      	namespace first.
      	* dump-parse-tree (show_code_node): Modify select case dump to
      	show select type construct.
      	* resolve.c (build_loc_call): New function.
      	(resolve_select_type): Add check for repeated type is cases.
      	Retain selector expression and use it later instead of expr1.
      	Exclude deferred length TYPE IS cases and emit error message.
      	Store the address for the vtable in the 'low' expression and
      	the hash value in the 'high' expression, for each case. Do not
      	call resolve_select.
      	* trans.c(trans_code) : Call gfc_trans_select_type.
      	* trans-stmt.c (gfc_trans_select_type_cases): New function.
      	(gfc_trans_select_type): New function.
      	* trans-stmt.h : Add prototype for gfc_trans_select_type.
      
      2016-10-23  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/69834
      	* gfortran.dg/select_type_1.f03: Change error for overlapping
      	TYPE IS cases.
      	* gfortran.dg/select_type_36.f03: New test.
      
      From-SVN: r241450
      Paul Thomas committed
    • sparc-c.c (sparc_target_macros): Replace TARGET_64BIT with TARGET_ARCH64. · fb4ab5f0
      	* config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
      	with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
      
      From-SVN: r241446
      Eric Botcazou committed
    • 2016-10-22 François Dumont <fdumont@gcc.gnu.org> · 35518d76
      	* include/bits/c++config (_GLIBCXX_BEGIN_NAMESPACE_ALGO)
      	(_GLIBCXX_END_NAMESPACE_ALGO): Default to respectively
      	_GLIBCXX_BEGIN_NAMESPACE_VERSION and _GLIBCXX_END_NAMESPACE_VERSION.
      	(_GLIBCXX_BEGIN_NAMESPACE_CONTAINER, _GLIBCXX_END_NAMESPACE_CONTAINER):
      	Likewise.
      
      From-SVN: r241445
      François Dumont committed
    • Daily bump. · 8c2430bb
      From-SVN: r241444
      GCC Administrator committed
  3. 22 Oct, 2016 6 commits
    • * gcc.dg/tree-ssa/pr71347.c: Remove XFAIL on SPARC. · 66ccff98
      From-SVN: r241441
      Eric Botcazou committed
    • re PR fortran/78021 (Wrong result with optimization on character constant) · 15876cee
      2016-10-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/78021
      	* gfc_compare_functions:  Strings with different lengths in
      	argument lists compare unequal.
      
      2016-10-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/78021
      	* gfortran.dg/string_length_3.f90:  New test.
      
      From-SVN: r241440
      Thomas Koenig committed
    • re PR fortran/43366 ([OOP][F08] Intrinsic assign to polymorphic variable) · 574284e9
      gcc/fortran/ChangeLog:
      
      2016-10-22  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	PR fortran/43366
      	PR fortran/51864
      	PR fortran/57117
      	PR fortran/61337
      	PR fortran/61376
      	* primary.c (gfc_expr_attr): For transformational functions on classes
      	get the attrs from the class argument.
      	* resolve.c (resolve_ordinary_assign): Remove error message due to
      	feature implementation.  Rewrite POINTER_ASSIGNS to ordinary ones when
      	the right-hand side is scalar class object (with some restrictions).
      	* trans-array.c (trans_array_constructor): Create the temporary from
      	class' inner type, i.e., the derived type.
      	(build_class_array_ref): Add support for class array's storage of the
      	class object or the array descriptor in the decl saved descriptor.
      	(gfc_conv_expr_descriptor): When creating temporaries for class objects
      	add the class object's handle into the decl saved descriptor.
      	(structure_alloc_comps): Use the common way to get the _data component.
      	(gfc_is_reallocatable_lhs): Add notion of allocatable class objects.
      	* trans-expr.c (gfc_find_and_cut_at_last_class_ref): Remove the only ref
      	only when the expression's type is BT_CLASS.
      	(gfc_trans_class_init_assign): Correctly handle class arrays.
      	(gfc_trans_class_assign): Joined into gfc_trans_assignment_1.
      	(gfc_conv_procedure_call): Support for class types as arguments.
      	(trans_get_upoly_len): For unlimited polymorphics retrieve the _len
      	component's tree.
      	(trans_class_vptr_len_assignment): Catch all ways to assign the _vptr
      	and _len components of a class object correctly.
      	(pointer_assignment_is_proc_pointer): Identify assignments of
      	procedure pointers.
      	(gfc_trans_pointer_assignment): Enhance support for class object pointer
      	assignments.
      	(gfc_trans_scalar_assign): Removed assert.
      	(trans_class_assignment): Assign to a class object.
      	(gfc_trans_assignment_1): Treat class objects correctly.
      	(gfc_trans_assignment): Propagate flags to trans_assignment_1.
      	* trans-stmt.c (gfc_trans_allocate): Use gfc_trans_assignment now
      	instead of copy_class_to_class.
      	* trans-stmt.h: Function prototype removed.
      	* trans.c (trans_code): Less special casing for class objects.
      	* trans.h: Added flags to gfc_trans_assignment () prototype.
      
      gcc/testsuite/ChangeLog:
      
      2016-10-22  Andre Vehreschild  <vehre@gcc.gnu.org>
      
              Forgot to add on original commit.
              * gfortran.dg/coarray_alloc_comp_2.f08: New test.
      
      2016-10-22  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	PR fortran/43366
      	PR fortran/57117
      	PR fortran/61337
      	* gfortran.dg/alloc_comp_class_5.f03: New test.
      	* gfortran.dg/class_allocate_21.f90: New test.
      	* gfortran.dg/class_allocate_22.f90: New test.
      	* gfortran.dg/realloc_on_assign_27.f08: New test.
      
      From-SVN: r241439
      Andre Vehreschild committed
    • Ignore perms::symlink_nofollow on non-symlinks · 4e04812d
      	* src/filesystem/ops.cc (permissions(const path&, perms, error_code&)):
      	Ignore symlink_nofollow flag if file is not a symlink.
      	* testsuite/experimental/filesystem/operations/permissions.cc: Test
      	symlink_nofollow on non-symlinks.
      
      From-SVN: r241438
      Jonathan Wakely committed
    • aarch64-cores.def: Rewrite so IMP and PART are integer constants. · 2e721daa
      2016-10-21  Andrew Pinski  <apinski@cavium.com>
      
              * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
              integer constants.
              * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
              implementer_id to unsigned char.
              Change part_no to unsigned int.
              (AARCH64_BIG_LITTLE): New define.
              (INVALID_IMP): New define.
              (INVALID_CORE): New define.
              (cpu_data): Change the last element's implementer_id and part_no to
              integers.
              (valid_bL_string_p): Rewrite to ..
              (valid_bL_core_p): this for integers instead of strings.
              (parse_field): New function.
              (contains_string_p): Rewrite to ...
              (contains_core_p): this for integers and only for the part_no.
              (host_detect_local_cpu): Rewrite handling of implementation and
              par num to be integers; simplifying the code.
      
      From-SVN: r241437
      Andrew Pinski committed
    • Daily bump. · e1454b8c
      From-SVN: r241436
      GCC Administrator committed
  4. 21 Oct, 2016 19 commits