1. 24 Dec, 2018 4 commits
    • powerpc-darwin, skip ident tests. · 22424617
      The c-c++-common tests fail (or XPASS depending on which) on
      powerpc Darwin because it doesn't currently emit .ident marker. 
      
      Since there's no support for .ident in the assembler, we can't
      enable the output and therefore these tests should be skipped.
      
      2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* c-c++-common/ident-0a.c: Skip for powerpc-darwin.
      	* c-c++-common/ident-0b.c: Likewise.
      	* c-c++-common/ident-1a.c: Likewise.
      	* c-c++-common/ident-1b.c: Likewise.
      	* c-c++-common/ident-2a.c: Likewise.
      	* c-c++-common/ident-2b.c: Likewise.
      
      From-SVN: r267394
      Iain Sandoe committed
    • darwin, configuration, check properly for dwarf2 debug line support · f1b2727f
      This corrects a long-standing misconfiguration for Darwin.
      The assembler supports the “.file” and “.loc” directives, but
      the GCC configury was not detecting this because it was 
      using objdump, which does not exist on most Darwin installations.
      
      We added support for “otool” to GCC and now we can use that to
      make the check that’s done with objdump on ELF targets.
      
      2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* configure.ac (dwarf2_debug_line): Check for the debug_line
      	section using otool when there’s no objdump available.
      	* configure: Regenerate.
      
      From-SVN: r267393
      Iain Sandoe committed
    • ipa-utils.c (ipa_merge_profiles): Fix updating of fnsummary; also handle… · 959b8c82
      ipa-utils.c (ipa_merge_profiles): Fix updating of fnsummary; also handle rescaling of mismatched profiles.
      
      
      	* ipa-utils.c (ipa_merge_profiles): Fix updating of fnsummary;
      	also handle rescaling of mismatched profiles.
      	* ipa-fnsummary.c (analyze_function): Handle speculative edges.
      
      From-SVN: r267392
      Jan Hubicka committed
    • Daily bump. · d0a6fcf5
      From-SVN: r267391
      GCC Administrator committed
  2. 23 Dec, 2018 16 commits
    • 2018-12-23 François Dumont <fdumont@gcc.gnu.org> · 4483dd3f
      	* libstdc++-v3/testsuite/util/testsuite_allocator.h
      	(CustomPointerAlloc<>::allocate(size_t, pointer)): Replace by...
      	(CustomPointerAlloc<>::allocate(size_t, const_void_pointer)): ...this.
      
      From-SVN: r267381
      François Dumont committed
    • Respect pointer_traits on node deallocation in _ReuseOrAllocNode parenthesis operator. · 23d5fd6c
      2018-12-23  François Dumont  <fdumont@gcc.gnu.org>
      
      	Respect pointer_traits on node deallocation in _ReuseOrAllocNode
      	parenthesis operator.
      
      	* include/bits/hashtable_policy.h
      	(_Hashtable_alloc<>::_M_deallocate_node_ptr(__node_type*)): New.
      	(_Hashtable_alloc<>::_M_deallocate_node(__node_type*)): Use latter.
      	(_ReuseOrAllocNode<>::operator<_Arg>()(_Arg&&)): Likewise.
      
      From-SVN: r267380
      François Dumont committed
    • re PR fortran/77703 (ICE on assignment to pointer function) · 18246c42
      2018-12-23  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/77703
      	* resolve.c (get_temp_from_expr): Use the string length of
      	constant character expressions.
      
      2018-12-23  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/77703
      	* gfortran.dg/ptr_func_assign_5.f08 : New test.
      
      From-SVN: r267379
      Paul Thomas committed
    • builtins.h (c_strlen_data): Add new fields and comments. · b71bbbe2
      	* builtins.h (c_strlen_data): Add new fields and comments.
      	* builtins.c (unterminated_array): Change field reference from
      	"len" to "minlen" in c_strlen_data instance.
      	* gimple-fold.c (get_range_strlen): Likewise.
      	* gimple-ssa-sprintf.c (get_string_length): Likewise.
      
      Co-Authored-By: Jeff Law <law@redhat.com>
      
      From-SVN: r267378
      Martin Sebor committed
    • builtins.c (unterminated_array): Rename "data" to "lendata". · e09aa5bd
      	* builtins.c (unterminated_array): Rename "data" to "lendata".  Fix
      	a few comments.
      	(expand_builtin_strnlen, expand_builtin_stpcpy_1): Likewise.
      	(fold_builtin_strlen): Likewise.
      	* gimple-fold.c (get_range_strlen): Likewise.  Also rename a couple
      	instances of "type" to "optype" and "arg" to "fld".
      
      Co-Authored-By: Jeff Law <law@redhat.com>
      
      From-SVN: r267377
      Martin Sebor committed
    • builtins.c (unterminated_array): Use empty brace initialization for c_strlen_data. · 3f46ef1f
      2018-12-23  Martin Sebor  <msebor@redhat.com>
      	    Jeff Law  <law@redhat.com>
      
      	* builtins.c (unterminated_array): Use empty brace initialization
      	for c_strlen_data.
      	(c_strlen, expand_builtin_strnlen): Likewise.
      	(expand_builtin_stpcpy_1, fold_builtin_strlen): Likewise.
      	* gimple-fold.c (get_range_strlen): Likewise.
      	(gimple_fold_builtin_stpcpy): Likewise.
      	* gimple-ssa-sprintf.c (get_string_length): Likewise.
      
      Co-Authored-By: Jeff Law <law@redhat.com>
      
      From-SVN: r267376
      Martin Sebor committed
    • [RS6000] PR88346, Inconsistent list of CPUs supported after r266502 · f7bdd292
      This patch removes the %e error for AIX, since it seems there has been
      no attempt to keep cpu support up to date for AIX, and adds missing
      entries to ASM_CPU_SPEC in rs6000.h.  The rs64a->rs64 name change
      happened a long time ago as a fix for PR20813 (git commit c92b4c3f5b).
      
      	PR 88346
      	* config/rs6000/rs6000.h (ASM_CPU_SPEC): Correct %e message.  Handle
      	-mcpu=rs64, not -mcpu=rs64a.  Handle -mcpu=powerpc64 and -mcpu=titan.
      	* config/rs6000/driver-rs6000.c (asm_names): Similarly.
      	* config/rs6000/aix71.h (ASM_CPU_SPEC): Delete %e message.  Handle
      	-mcpu=rs64, not -mcpu=rs64a.
      	* config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
      
      From-SVN: r267375
      Alan Modra committed
    • Fix Ada bootstrap for Darwin9 and earlier. · 3f5c0b6b
      2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>
      
      gcc/ada/
      
      	* adaint.c [__APPLE__] (__gnat_lwp_self): Ensure that the system
      	interface used is available on the target.
      
      From-SVN: r267374
      Iain Sandoe committed
    • LTO-wrapper, don't pre-link early debug objects. · b5327e50
      Pass them to the final link, the pre-link wasn't effective.
      Make the temp filenames easier to follow.
      Also save them in the CWD when save-temps is given.
      
      2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* lto-wrapper.c (tool_cleanup): Don’t report ficticious temp files.
      	(debug_objcopy): Improve temp filenames.  Append the early
      	debug objects to the outfiles.  Remove the phase prelinking the
      	early debug. Emit the early debug filenames for ld.
      
      From-SVN: r267373
      Iain Sandoe committed
    • Fix ident tests by Enabling ident output for X86 Darwin. · d590d99a
      The c-c++-common tests fail (or XPASS depending on which) on Darwin
      because it doesn't currently emit .ident marker.  For X86 Darwin, this
      is a trivial oversight; the assembler supports the directive.  We can
      therefore use the default target hook there.
      
      2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>
      
              * config/i386/darwin.h (TARGET_ASM_OUTPUT_IDENT): New.
      
      From-SVN: r267372
      Iain Sandoe committed
    • use simple-object instead of nm to determine if files contain LTO. · 4098a6d4
      This replaces the use of nm to search for the LTO common symbol marker
      and uses simple object to see if there's a section starting with
      ".gnu.lto_." or ".gnu.offload_lto_"
      
      2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* collect2.c (maybe_run_lto_and_relink): Don’t say we have a temp file
      	unless we actually did some LTO.
      	(has_lto_section, is_lto_object_file): New.
      	(maybe_lto_object_file): Remove.
      	(scan_prog_file): Use is_lto_object_file() instead of scanning the
      	output of nm.
      
      From-SVN: r267371
      Iain Sandoe committed
    • Handle -save-temps in collect2 · 513825f0
      Handle the option, make the saved filenames and paths easier to handle.
      Don't print '[Leaving...]' for files we never created and don't exist - or unless
      verbose is true.
      
      2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* collect2.c (main): Parse the output file early so we can make nicer
      	temp names.  Respond to “-save-temps” in the GCC OPTIONS.
      	(maybe_unlink): Don’t print “[Leaving…”] for files we never created
      	and don’t exist.
      
      From-SVN: r267370
      Iain Sandoe committed
    • Ensure collect2 responds to intended commmand line options. · f67eeb79
      To ensure compatibility with the flags consumed by ld, some of the flags
      needed by collect2 come from the command line and some are passed
      in the COLLECT_GCC_OPTIONS.
      
      Here we combine initial parses of both and then set the LTO mode accordingly.
      
      2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* collect2.c (main): Combine flags from both the command line and
      	COLLECT_GCC_OPTIONS to determine the set in force
      
      From-SVN: r267369
      Iain Sandoe committed
    • re PR fortran/88328 (ICE in resolve_tag_format, at fortran/io.c:1641) · 0652a151
      2018-12-22  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/88328
      	* io.c (resolve_tag_format): Add error for zero-sized array.
      	(gfc_resolve_dt): Manipulate gfc_current_locus to get sensible error
      	message locus.
      
      2018-12-22  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/88328
      	* gfortran.dg/pr88328.f90: New test.
      
      From-SVN: r267367
      Steven G. Kargl committed
    • Daily bump. · e2385f4e
      From-SVN: r267366
      GCC Administrator committed
    • Remove support for demangling GCC 2.x era mangling schemes. · 6c8120c5
      libiberty/
      	* cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname,
      	internal_cplus_demangle, and all subroutines.
      	(libiberty_demanglers): Remove entries for ancient GNU (pre-3.0),
      	Lucid, ARM, HP, and EDG demangling styles.
      	(cplus_demangle): Remove 'work' variable.  Don't call
      	internal_cplus_demangle.
      include/
      	* demangle.h: Remove support for ancient GNU (pre-3.0), Lucid,
      	ARM, HP, and EDG demangling styles.
      
      From-SVN: r267363
      Jason Merrill committed
  3. 22 Dec, 2018 8 commits
  4. 21 Dec, 2018 12 commits