Skip to content
Snippets Groups Projects
  1. Nov 05, 2019
  2. Nov 04, 2019
    • Kamlesh Kumar's avatar
      PR c++/91979 - mangling nullptr expression · e0c866dd
      Kamlesh Kumar authored
      2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
      
      gcc/cp
              * cp/mangle.c (write_template_arg_literal): Handle nullptr
              mangling.
      gcc
      	* common.opt (-fabi-version): Document =14.
      	* doc/invoke.texi (C++ Dialect Options): Likewise.
      gcc/c-family
              * c-opts.c (c_common_post_options): Update
              latest_abi_version.
      libiberty
              * cp-demangle.c (d_expr_primary): Handle
              nullptr demangling.
              * testsuite/demangle-expected: Added test.
      
      From-SVN: r277801
      e0c866dd
    • Aldy Hernandez's avatar
      Do not special case pointers in value_range_base::set. · 04373f92
      Aldy Hernandez authored
      From-SVN: r277799
      04373f92
    • Jason Merrill's avatar
      * typeck.c (check_return_expr): Avoid redundant error. · 1dee8996
      Jason Merrill authored
      From-SVN: r277798
      1dee8996
    • Tobias Burnus's avatar
      Add gcc/config/gcn/t-omp-device for OpenMP declare variant kind/arch/isa · 955cd057
      Tobias Burnus authored
              gcc/
              * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
              (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
              gcn_omp_device_kind_arch_isa.
              * config/gcn/t-omp-device: New file.
              * configure.ac: Support gcn for omp_device_property.
              * configure: Regenerate.
      
      From-SVN: r277797
      955cd057
    • Aldy Hernandez's avatar
      Remove handle_pointers argument from all the vrp_val*{min,max} functions. · 9ac6cb7e
      Aldy Hernandez authored
      Remove handle_pointers argument from all the vrp_val*{min,max} functions.  Always
      assume pointers should be handled.
      
      From-SVN: r277796
      9ac6cb7e
    • Jan Hubicka's avatar
      ipa-reference.c (init_function_info): Initialize info->global.statics_read. · 74b6e216
      Jan Hubicka authored
      	* ipa-reference.c (init_function_info): Initialize
      	info->global.statics_read.
      
      From-SVN: r277795
      74b6e216
    • Aldy Hernandez's avatar
      Use the value_range_base constructors in value_range_base::invert to · 8ced1d76
      Aldy Hernandez authored
      make sure we build canonically correct ranges.
      
      From-SVN: r277794
      8ced1d76
    • Richard Sandiford's avatar
      [D] Remove unchecked to_constant in VECTOR_TYPE handling · a1b68059
      Richard Sandiford authored
      The SVE port now tries to register variable-length VECTOR_TYPEs
      at start-up, so it's no longer possible to use the asserting
      to_constant on the number of vector elements.  This patch punts
      on variable element counts instead, just like we do for other
      things that the frontend doesn't recognise.
      
      The brace indentation matches the surrounding style.
      
      2019-11-04  Richard Sandiford  <richard.sandiford@arm.com>
      
      gcc/d/
      	* d-builtins.cc (build_frontend_type): Cope with variable
      	TYPE_VECTOR_SUBPARTS.
      
      From-SVN: r277793
      a1b68059
    • Aldy Hernandez's avatar
      Remove unused range_int_cst_singleton_p. · 63b7a614
      Aldy Hernandez authored
      From-SVN: r277792
      63b7a614
    • Aldy Hernandez's avatar
      Handle VR_UNDEFINED in value_range_base::normalize_addresses(). · c58d5046
      Aldy Hernandez authored
      From-SVN: r277791
      c58d5046
    • Aldy Hernandez's avatar
      Implement debugging functions for assert_info's. · dbb640fa
      Aldy Hernandez authored
      From-SVN: r277790
      dbb640fa
    • Jan Hubicka's avatar
      ipa-inline-transform.c: Include ipa-utils.h · 2bc2379b
      Jan Hubicka authored
      	* ipa-inline-transform.c: Include ipa-utils.h
      	(inline_call): Set thunk_expansion flag.
      	* ipa-utils.h (thunk_expansion): Declare.
      	* ipa-devirt.c (thunk_expansion): New global var.
      	(devirt_node_removal_hook): Do not invalidate cache while
      	doing thunk expansion.
      
      From-SVN: r277789
      2bc2379b
    • Tamar Christina's avatar
      SLP: Initialize variable to fix bootstrap after r277784. · 0ec77a6c
      Tamar Christina authored
      This initializes the rstmt variable with NULL and adds an assert to
      check that a value has been given by one of the if cases before use.
      
      This fixes the bootstrap failure due to -Werror.
      
      Committed under the gcc obvious rule.
      
      gcc/ChangeLog:
      
      	* tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
      
      From-SVN: r277788
      0ec77a6c
    • Eric Botcazou's avatar
      re PR testsuite/92302 (gcc.target/sparc/sparc-ret-3.c FAILs) · 57d4aea2
      Eric Botcazou authored
      	PR testsuite/92302
      	* gcc.target/sparc/sparc-ret-3.c: Accept more registers in address.
      
      From-SVN: r277787
      57d4aea2
    • Martin Sebor's avatar
      PR tree-optimization/92349 - ICE in -Warray-bounds of a VLA member · 2f967bc4
      Martin Sebor authored
      gcc/testsuite/ChangeLog:
      
      	PR tree-optimization/92349
      	* gcc.dg/Warray-bounds-50.c: New test.
      
      gcc/ChangeLog:
      
      	PR tree-optimization/92349
      	* tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
      	memebers have constant sizes.
      
      From-SVN: r277786
      2f967bc4
    • Andre Vieira's avatar
      [vect] Clean up orig_loop_vinfo from vect_analyze_loop · 494d6c28
      Andre Vieira authored
      gcc/ChangeLog:
      2019-11-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>
      
      	* tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
      	parameter.
      	* tree-vectorizer.h (vect_analyze_loop): Update declaration.
      	* tree-vectorizer.c (try_vectorize_loop_1): Update calls to
      	vect_analyze_loop.
      
      From-SVN: r277785
      494d6c28
    • Joel Hutton's avatar
      [SLP] SLP vectorization: vectorize vector constructors · 818b3293
      Joel Hutton authored
      gcc/ChangeLog:
      2019-11-04  Joel Hutton  <Joel.Hutton@arm.com>
      
      	* expr.c (store_constructor): Modify to handle single element vectors.
      	* tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
      	constructors.
      	(vect_slp_check_for_constructors): New function.
      	(vect_slp_analyze_bb_1): Call new function to check for vector
      	constructors.
      	(vectorize_slp_instance_root_stmt): New function.
      	(vect_schedule_slp): Call new function to vectorize root stmt of vector
      	constructors.
      	* tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
      
      gcc/testsuite/ChangeLog:
      2019-11-04  Joel Hutton  <Joel.Hutton@arm.com>
      
      	* gcc.dg/vect/bb-slp-40.c: New test.
      	* gcc.dg/vect/bb-slp-41.c: New test.
      
      From-SVN: r277784
      818b3293
    • Richard Biener's avatar
      re PR tree-optimization/92345 (ICE in vec<_stmt_vec_info*, va_heap,... · a6ba6237
      Richard Biener authored
      re PR tree-optimization/92345 (ICE in vec<_stmt_vec_info*, va_heap, vl_embed>::space (vect_get_and_check_slp_defs))
      
      2019-11-04  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/92345
      	* tree-vect-loop.c (vect_is_simple_reduction): Return whether
      	we produced a reduction chain.
      	(vect_analyze_scalar_cycles_1): Do not add reduction chains to
      	LOOP_VINFO_REDUCTIONS.
      
      	* gcc.dg/torture/pr92345.c: New testcase.
      
      From-SVN: r277782
      a6ba6237
    • Jan Hubicka's avatar
      cgraphclones.c (cgraph_node::create_version_clone): Do not duplicate summaries. · 7237f93e
      Jan Hubicka authored
      	* cgraphclones.c (cgraph_node::create_version_clone): Do not
      	duplicate summaries.
      	* ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
      	first.
      	(ipa_fn_summary_t::duplicate): Use get instead of get_create to
      	access call summaries.
      	(dump_ipa_call_summary): Be ready for missing edge summaries.
      	(analyze_function_body): Use get instead of get_create to access
      	edge summary.
      	(estimate_calls_size_and_time): Do not access summaries of
      	inlined edges; sanity check they are missing.
      	(ipa_call_context::estimate_size_and_time): Use get instead
      	of get_create to access node summary.
      	(inline_update_callee_summaries): Do not update depth of
      	inlined edge.
      	(ipa_merge_fn_summary_after_inlining): Remove inline edge from
      	growth caches.
      	(ipa_merge_fn_summary_after_inlining): Use get instead
      	of get_create.
      	* ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
      	* ipa-inline-analyssi.c (edge_growth_cache): Turn to
      	fast summary.
      	(initialize_growth_caches): Update.
      	(do_estimate_edge_time): Remove redundant copy of context.
      	(ipa_remove_from_growth_caches): New function.
      	* ipa-inline.c (flatten_function): Update overall summary
      	only when optimizing.
      	(inline_to_all_callers): Update overall summary of function
      	inlined to.
      	* ipa-inline.h (edge_growth_cache): Turn to fast summary.
      	* symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
      	to false.
      
      From-SVN: r277780
      7237f93e
    • Richard Biener's avatar
      system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO. · 6fb34954
      Richard Biener authored
      2019-11-04  Richard Biener  <rguenther@suse.de>
      
      	* system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
      	* ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
      
      From-SVN: r277779
      6fb34954
    • David Edelsohn's avatar
      * ggc-common.c: Include system.h before malloc.h. · 253f29f1
      David Edelsohn authored
      From-SVN: r277778
      253f29f1
    • Alexandre Oliva's avatar
      pass --enable-obsolete down to gcc/configure for auto-build.h · 499d66aa
      Alexandre Oliva authored
      Configuring GCC for obsolete targets works as long as build = host.
      When it isn't, --enable-obsolete is not passed down to the additional
      build configure started by gcc/configure, used to generate
      auto-build.h.  The build configure fails and we end up without a
      auto-build.h, but the host configure proceeds, so we only get a fatal
      failure much later, when make realizes auto-build.h is not there and
      there's no rule to create it.
      
      This patch gets the host configure to fail when the build configure
      does, leaving the temporary build configure dir behind for
      investigation.  It also arranges for --eanble-obsolete to be passed
      down to the build configure.
      
      Alas, the latter triggered a warning in the build configure because
      --enable-obsolete is not a recognized configure option.  That's not
      reported in the host configure because of the
      --disable-option-checking passed by the top-level configure, so I
      arranged for that to be passed down to the build configure as well.
      
      Finally, since my initial suspicion when investigating this failure
      was that auto-build.h had been removed after configuration and there
      was no rule to rebuild it, I'm adding rules to gcc/Makefile to get it
      created or updated as needed.  Since it is configure that creates it,
      as run by e.g. config.status --recheck, and config.status is created
      after auto-build.h, I've made config.status depend on auto-build.h,
      and added a dummy rule to create auto-build.h.  This would normally
      not be enough to create a header when needed, but since Makefile
      depends on config.status, and make first updates Makefile, it ends up
      working, as long as nothing else that Makefile depends on requires
      auto-build.h but not config.status.  The config.status dependency and
      the auto-build.h rule are only enabled in the cases in which
      auto-build.h is actually used, namely when build != host.
      
      
      for  gcc/ChangeLog
      
      	* configure.ac: Pass --enable-obsolete=* and
      	--enable-option-checking=* down to build configure, and fail
      	if it fails.  AC_SUBST HAVE_AUTO_BUILD.
      	* configure: Rebuild.
      	* Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
      	[HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
      
      From-SVN: r277777
      499d66aa
    • Tobias Burnus's avatar
      libgomp - remove dg-run if dg-options O2 is used · d8f03b03
      Tobias Burnus authored
      	* testsuite/libgomp.fortran/pr66199-1.f90: Remove
      	'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
      	* testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
      	* testsuite/libgomp.fortran/taskloop2.f90: Ditto.
      	* testsuite/libgomp.fortran/taskloop3.f90: Ditto.
      	* testsuite/libgomp.fortran/taskloop4.f90: Ditto.
      
      From-SVN: r277776
      d8f03b03
    • Jozef Lawrynowicz's avatar
      libgcc: Fix incorrect use of USE_TM_CLONE_REGISTRY · 62ec242e
      Jozef Lawrynowicz authored
      2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
      
      	* crtstuff.c: Define USE_TM_CLONE_REGISTRY to 0 if it's undefined and
      	the target output object format is not ELF.
      	s/defined(USE_TM_CLONE_REGISTRY)/USE_TM_CLONE_REGISTRY.
      
      From-SVN: r277775
      62ec242e
    • Jozef Lawrynowicz's avatar
      MSP430: Add -mtiny-printf option · 02afb6a9
      Jozef Lawrynowicz authored
      2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
      
      gcc/
      	* config.in: Regenerate.
      	* config/msp430/msp430.c (msp430_option_override): Emit an error if
      	-mtiny-printf is used without GCC being configured with
      	--enable-newlib-nano-formatted-io.
      	* config/msp430/msp430.h (LINK_SPEC): Pass 
      	"--wrap puts --wrap printf" when -mtiny-printf is used.
      	* config/msp430/msp430.opt: Document -mtiny-printf.
      	* configure: Regenerate.
      	* configure.ac: Enable --enable-newlib-nano-formatted-io flag.
      	Define HAVE_NEWLIB_NANO_FORMATTED_IO if
      	--enable-newlib-nano-formatted-io is passed.
      	* doc/invoke.texi: Document -mtiny-printf.
      
      gcc/testsuite/
      	* gcc.target/msp430/tiny-printf.c: New test.
      
      From-SVN: r277774
      02afb6a9
    • Jozef Lawrynowicz's avatar
      Regenerate gcc/configure · e0f8e3da
      Jozef Lawrynowicz authored
      From-SVN: r277773
      e0f8e3da
    • Jozef Lawrynowicz's avatar
      MSP430: Add new methods of finding external MCU data file · d7eabfd4
      Jozef Lawrynowicz authored
      MCU data file can now be specified with an environment variable or installed
      into a toolchain subdirectory.
      
      2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
      
      gcc/
      	* config/msp430/driver-msp430.c
      	(msp430_get_linker_devices_include_path): New spec function.
      	* config/msp430/msp430-devices.c (msp430_dirname): New function.
      	(extract_devices_dir_from_exec_prefix): New function.
      	(extract_devices_dir_from_collect_gcc): New function.
      	(msp430_check_env_var_for_devices): New function.
      	(msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
      	(parse_devices_csv): Call msp430_check_env_var_for_devices if
      	devices.csv was not found using other methods.
      	* config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
      	New prototype.
      	(msp430_dirname): Likewise.
      	* config/msp430/msp430.c (msp430_register_pre_includes): New function.
      	* config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
      	msp430_get_linker_devices_include_path.
      	(TARGET_EXTRA_PRE_INCLUDES): Define.
      	* doc/invoke.texi: Document new ways of searching for support files.
      
      gcc/testsuite/
      	* gcc.target/msp430/devices/csv-using-env-var.c: New test.
      	* gcc.target/msp430/devices/csv-using-installed.c: New test.
      	* gcc.target/msp430/devices/csv-using-option.c: New test.
      	* gcc.target/msp430/devices/devices-main.c: New test source file.
      	* gcc.target/msp430/devices/msp430-devices.h: New test.
      	* gcc.target/msp430/msp430.exp (msp430_device_permutations_runtest):
      	Add special cases for csv-using* tests.
      	Define TESTING_HARD_DATA when running tests that use hard-coded device
      	data.
      	(get_installed_device_data_path): New.
      	(msp430_hide_installed_devices_data): New.
      	(msp430_restore_installed_devices_data): New.
      	(msp430_test_installed_device_data): New.
      	(msp430_install_device_data): New.
      
      From-SVN: r277772
      d7eabfd4
    • Richard Biener's avatar
      re PR bootstrap/92301 (Wrong vectorizer code since r277566) · b76f4e6c
      Richard Biener authored
      2019-11-04  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/92301
      	* tree-vect-stmts.c (process_use): Force reduction PHI defs live
      	as required by epilogue generation
      
      	* gcc.dg/pr92301.c: New testcase.
      
      From-SVN: r277771
      b76f4e6c
    • Tobias Burnus's avatar
      libgomp/testsuite - use unique numbers with Fortran's 'stop' · 12fd2ec5
      Tobias Burnus authored
              PR fortran/92305
              * testsuite/libgomp.fortran/allocatable2.f90: Use
              unique numbers with 'stop'.
              * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
              * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
              * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
              * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
              * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
      
      From-SVN: r277769
      12fd2ec5
    • Martin Liska's avatar
      Fix hash_operand for fields of a CONSTRUCTOR. · 2323aa04
      Martin Liska authored
      2019-11-04  Martin Liska  <mliska@suse.cz>
      
      	PR ipa/92304
      	* fold-const.c (operand_compare::hash_operand): Fix field
      	hashing of CONSTRUCTOR.
      
      From-SVN: r277768
      2323aa04
    • Martin Liska's avatar
      Come up with ggc_delete. · ddf628e4
      Martin Liska authored
      2019-11-04  Martin Liska  <mliska@suse.cz>
      
      	* ggc.h (ggc_delete): New function.
      	* ipa-fnsummary.c (ipa_free_fn_summary): Use it.
      	* ipa-prop.c (ipa_free_all_edge_args): Likewise.
      	(ipa_free_all_node_params): Likewise.
      	* ipa-sra.c (ipa_sra_analysis): Likewise.
      
      From-SVN: r277767
      ddf628e4
    • Thomas Koenig's avatar
      re PR fortran/92113 (r276673 causes segfault in gfortran.dg/pr51434.f90) · cedaa3f6
      Thomas Koenig authored
      2019-11-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
          PR fortran/92113
          * ChangeLog: Fix PR number
      
      From-SVN: r277766
      cedaa3f6
    • GCC Administrator's avatar
      Daily bump. · e10ed125
      GCC Administrator authored
      From-SVN: r277764
      e10ed125
  3. Nov 03, 2019
    • Thomas Koenig's avatar
      re PR fortran/92113 (r276673 causes segfault in gfortran.dg/pr51434.f90) · b8dd4aa1
      Thomas Koenig authored
      2019-11-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
          PR fortran/92133
          * trans-decl.c (gfc_get_symbol_decl): If __def_init actually
          contains a value, put it into  the read-only section.
      
      From-SVN: r277760
      b8dd4aa1
    • Jan Hubicka's avatar
      Improve effectivity of ipa_polymorphi_context cache. · 40a777e8
      Jan Hubicka authored
              * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
      	set_switch_stmt_execution_predicate, compute_bb_predicates,
      	will_be_nonconstant_expr_predicate,
      	phi_result_unknown_predicate,
      	analyze_function_body): Pass arround params summary.
      	(ipa_call_context::duplicate_from): New comment;
      	only duplicate useful values.
      	(ipa_call_context::equal_to): Only compare useful values.
      	(remap_edge_summaries): Pass params_summary.
      	(remap_hint_predicate): Likewise.
      	(ipa_merge_fn_summary_after_inlining): Likewise.
      	(inline_read_section): Initialize params summary used flags.
      	* ipa-predicate.c (predicate::remap_after_inlining): Pass
      	around param_summary.
      	(add_condition): Initialized used params summary flags.
      	* ipa-predicate.h (inline_param_summary::equals_to): Make const.
      	(inline_param_summary::useless_p): New predicate.
      	(remap_after_inlining, add_condition): Update prototype
      	* ipa-prop.c (ipa_populate_param_decls): Watch overflow in
      	move_cost.
      	(ipa_note_param_call): Add parameter POLYMORPHIC; update params
      	summaries.
      	(ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
      	(ipa_analyze_virtual_call_uses): Likewise.
      	(update_indirect_edges_after_inlining): Update param summaries.
      	(ipa_print_node_params): Print used flags.
      	(ipa_read_indirect_edge_info): Update param summareis.
      	* ipa-prop.h (ipa_param_descriptor): Add
      	used_by_ipa_predicates, used_by_indirect_call
      	and used_by_polymorphic_call.
      	(ipa_set_param_used_by_ipa_predicates,
      	ipa_set_param_used_by_indirect_call,
      	ipa_set_param_used_by_polymorphic_call,
      	ipa_is_param_used_by_ipa_predicates,
      	ipa_is_param_used_by_indirect_call,
      	ipa_is_param_used_by_polymorphic_call): New inline functions.
      
      From-SVN: r277759
      40a777e8
    • Martin Sebor's avatar
      PR c++/88565 - enhance -Warray-bounds for C++ trailing class member arrays · 4bcd578a
      Martin Sebor authored
      gcc/testsuite/ChangeLog:
      
      	* g++.dg/warn/Warray-bounds-9.C: New test.
      
      From-SVN: r277758
      4bcd578a
Loading