Sync libiberty from gcc
authorAlan Modra <amodra@gmail.com>
Wed, 4 Jan 2017 13:17:07 +0000 (23:47 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 4 Jan 2017 13:33:07 +0000 (00:03 +1030)
Picks up copyright year update and other recent fixes.

95 files changed:
libiberty/ChangeLog
libiberty/Makefile.in
libiberty/_doprnt.c
libiberty/argv.c
libiberty/asprintf.c
libiberty/choose-temp.c
libiberty/clock.c
libiberty/concat.c
libiberty/configure
libiberty/copying-lib.texi
libiberty/cp-demangle.c
libiberty/cp-demangle.h
libiberty/cp-demint.c
libiberty/cplus-dem.c
libiberty/crc32.c
libiberty/d-demangle.c
libiberty/dwarfnames.c
libiberty/dyn-string.c
libiberty/fdmatch.c
libiberty/fibheap.c
libiberty/filename_cmp.c
libiberty/floatformat.c
libiberty/fnmatch.c
libiberty/fopen_unlocked.c
libiberty/gather-docs
libiberty/getopt.c
libiberty/getopt1.c
libiberty/getruntime.c
libiberty/hashtab.c
libiberty/hex.c
libiberty/lbasename.c
libiberty/libiberty.texi
libiberty/lrealpath.c
libiberty/maint-tool
libiberty/make-relative-prefix.c
libiberty/make-temp-file.c
libiberty/md5.c
libiberty/memmem.c
libiberty/mempcpy.c
libiberty/mkstemps.c
libiberty/objalloc.c
libiberty/obstack.c
libiberty/partition.c
libiberty/pex-common.c
libiberty/pex-common.h
libiberty/pex-djgpp.c
libiberty/pex-msdos.c
libiberty/pex-one.c
libiberty/pex-unix.c
libiberty/pex-win32.c
libiberty/pexecute.c
libiberty/physmem.c
libiberty/putenv.c
libiberty/regex.c
libiberty/rust-demangle.c
libiberty/safe-ctype.c
libiberty/setenv.c
libiberty/setproctitle.c
libiberty/sha1.c
libiberty/simple-object-coff.c
libiberty/simple-object-common.h
libiberty/simple-object-elf.c
libiberty/simple-object-mach-o.c
libiberty/simple-object-xcoff.c
libiberty/simple-object.c
libiberty/snprintf.c
libiberty/sort.c
libiberty/spaces.c
libiberty/splay-tree.c
libiberty/stack-limit.c
libiberty/stpcpy.c
libiberty/stpncpy.c
libiberty/strndup.c
libiberty/strtod.c
libiberty/strverscmp.c
libiberty/testsuite/Makefile.in
libiberty/testsuite/demangle-expected
libiberty/testsuite/demangler-fuzzer.c
libiberty/testsuite/test-demangle.c
libiberty/testsuite/test-expandargv.c
libiberty/testsuite/test-pexecute.c
libiberty/testsuite/test-strtol.c
libiberty/timeval-utils.c
libiberty/unlink-if-ordinary.c
libiberty/vasprintf.c
libiberty/vfprintf.c
libiberty/vprintf-support.c
libiberty/vprintf-support.h
libiberty/vsnprintf.c
libiberty/vsprintf.c
libiberty/xasprintf.c
libiberty/xexit.c
libiberty/xmalloc.c
libiberty/xstrndup.c
libiberty/xvasprintf.c

index 33ad3c71191ddce542efdb1b3bcc4cbee5f3eaf3..de41f89d5e9714f8c05c46c2831b533440caf13c 100644 (file)
@@ -1,3 +1,7 @@
+2017-01-04  Alan Modra  <amodra@gmail.com>
+
+       Sync with gcc.
+
 2016-12-12  Nathan Sidwell  <nathan@acm.org>
 
        PR c++/78252
@@ -10,7 +14,7 @@
        is_lambda_arg.
        <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
        printing.
-       * testsuite/demangle-expected: Add lambda auto mangling cases. 
+       * testsuite/demangle-expected: Add lambda auto mangling cases.
 
 2016-12-08  Alan Modra  <amodra@gmail.com>
 
index 0ff9e45e45ef6fd6b96bef3de53c620f48e2b7f3..25cfa29ad5eb2ff9a0593038077bf9be15e89857 100644 (file)
@@ -1,9 +1,7 @@
 # Makefile for the libiberty library.
 # Originally written by K. Richard Pixley <rich@cygnus.com>.
 #
-# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
-# 2012, 2014, 2015 Free Software Foundation
+# Copyright (C) 1990-2017 Free Software Foundation, Inc.
 #
 # This file is part of the libiberty library.
 # Libiberty is free software; you can redistribute it and/or
@@ -484,7 +482,8 @@ configure_deps = $(srcdir)/aclocal.m4 \
        $(srcdir)/../config/acx.m4 \
        $(srcdir)/../config/no-executables.m4 \
        $(srcdir)/../config/override.m4 \
-       $(srcdir)/../config/warnings.m4 \
+       $(srcdir)/../config/picflag.m4 \
+       $(srcdir)/../config/warnings.m4
 
 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
        cd $(srcdir) && $(AUTOCONF)
index 9723f32e6c055ebf5e27d013177be1687eff1c14..6aa3fd88f0523d8b07c080f90b87728bd9331a57 100644 (file)
@@ -1,5 +1,5 @@
 /* Provide a version of _doprnt in terms of fprintf.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002   Free Software Foundation, Inc.
+   Copyright (C) 1998-2017 Free Software Foundation, Inc.
    Contributed by Kaveh Ghazi  (ghazi@caip.rutgers.edu)  3/29/98
 
 This program is free software; you can redistribute it and/or modify it
index fd43e78b170fbf71eebfc269fcf1947b8175227a..c544dad73eec8f18c2725fd25b88a033fec223fc 100644 (file)
@@ -1,5 +1,5 @@
 /* Create and destroy argument vectors (argv's)
-   Copyright (C) 1992, 2001, 2010, 2012 Free Software Foundation, Inc.
+   Copyright (C) 1992-2017 Free Software Foundation, Inc.
    Written by Fred Fish @ Cygnus Support
 
 This file is part of the libiberty library.
index 961ad4dbb002edad88b4feb3a53eb73f8ca14800..c3f73cdb782e58b598de6bae5cecab4e46616655 100644 (file)
@@ -1,6 +1,6 @@
 /* Like sprintf but provides a pointer to malloc'd storage, which must
    be freed by the caller.
-   Copyright (C) 1997, 2003, 2013 Free Software Foundation, Inc.
+   Copyright (C) 1997-2017 Free Software Foundation, Inc.
    Contributed by Cygnus Solutions.
 
 This file is part of the libiberty library.
index 8e1e84be7651d05962810979c34696733b338fb3..16edb20f3ea46ee61132d8416ced4e3ffd4d3e26 100644 (file)
@@ -1,5 +1,5 @@
 /* Utility to pick a temporary filename prefix.
-   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1996-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 07d902e8a1600afa0bbd6cb803500f6adf6dbb18..4af8d24b3d3798218d42f090563a3d83e62d9de1 100644 (file)
@@ -1,5 +1,5 @@
 /* ANSI-compatible clock function.
-   Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.  This library is free
 software; you can redistribute it and/or modify it under the
index 7846a19393bde021841b75a7f06803c7d965c6dd..e9671bb94cc07fa65e6ba148037dd4c05ccb1f3b 100644 (file)
@@ -1,5 +1,5 @@
 /* Concatenate variable number of strings.
-   Copyright (C) 1991, 1994, 2001, 2011, 2013 Free Software Foundation, Inc.
+   Copyright (C) 1991-2017 Free Software Foundation, Inc.
    Written by Fred Fish @ Cygnus Support
 
 This file is part of the libiberty library.
index b95e000f2e410c784042c834ffe88d5a2951f152..868793558f06d6c46c0b6978bebe5e59d67321a8 100755 (executable)
@@ -5097,7 +5097,7 @@ case "${host}" in
          # If we are using a compiler supporting mdynamic-no-pic
          # and the option has been tested as safe to add, then cancel
          # it here, since the code generated is incompatible with shared
-         # libs.
+         # libs.
          *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
          *) PICFLAG=-fno-common ;;
        esac
index 31ef68bf49529a30fb941b34fb2d17a435629a45..3ff3a104a8acd766256cf2a81ed87542f79fd8e2 100644 (file)
@@ -5,7 +5,7 @@
 @center Version 2.1, February 1999
 
 @display
-Copyright @copyright{} 1991, 1999 Free Software Foundation, Inc.
+Copyright @copyright{} 1991-2017 Free Software Foundation, Inc.
 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA
 
 Everyone is permitted to copy and distribute verbatim copies
index 4671bc2eb0e5e7a27b7a81c2547f1c451a35fea4..15ef3b48785f0ef49408cabbacb1f1352fbaef9e 100644 (file)
@@ -1,6 +1,5 @@
 /* Demangler for g++ V3 ABI.
-   Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2014
-   Free Software Foundation, Inc.
+   Copyright (C) 2003-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor <ian@wasabisystems.com>.
 
    This file is part of the libiberty library, which is part of GCC.
@@ -2593,7 +2592,11 @@ cplus_demangle_type (struct d_info *di)
          /* auto */
          ret = d_make_name (di, "auto", 4);
          break;
-         
+       case 'c':
+         /* decltype(auto) */
+         ret = d_make_name (di, "decltype(auto)", 14);
+         break;
+
        case 'f':
          /* 32-bit decimal floating point */
          ret = d_make_builtin_type (di, &cplus_demangle_builtin_types[26]);
@@ -4568,7 +4571,7 @@ d_maybe_print_fold_expression (struct d_print_info *dpi, int options,
 
 static void
 d_print_comp_inner (struct d_print_info *dpi, int options,
-                 const struct demangle_component *dc)
+                   const struct demangle_component *dc)
 {
   /* Magic variable to let reference smashing skip over the next modifier
      without needing to modify *dc.  */
index 197883e25602f4d8d506de50c6b5d6f800babc97..a2657755f11d5359794857eb43e61bbd1656ae49 100644 (file)
@@ -1,6 +1,5 @@
 /* Internal demangler interface for g++ V3 ABI.
-   Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010
-   Free Software Foundation, Inc.
+   Copyright (C) 2003-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor <ian@wasabisystems.com>.
 
    This file is part of the libiberty library, which is part of GCC.
index efcc5b7f5c02a3ae1cda503a80fe1f85609e85bd..64baffac8ddcc24e03c3c2ac1b8472aac72e0207 100644 (file)
@@ -1,5 +1,5 @@
 /* Demangler component interface functions.
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor <ian@wasabisystems.com>.
 
    This file is part of the libiberty library, which is part of GCC.
index 0386da59c3deddab8def287c1177145d57534f8f..a990e072975e2b7137817ec8b316201954c34a6e 100644 (file)
@@ -1,6 +1,5 @@
 /* Demangler for GNU C++
-   Copyright 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2010 Free Software Foundation, Inc.
+   Copyright (C) 1989-2017 Free Software Foundation, Inc.
    Written by James Clark (jjc@jclark.uucp)
    Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling
    Modified by Satish Pai (pai@apollo.hp.com) for HP demangling
index 52c982fb58327c0a7b2970d1126684da04dd71ba..6fa935b4b5bcf161b7ba8a2f16629a454231000e 100644 (file)
@@ -1,5 +1,5 @@
 /* crc32.c
-   Copyright (C) 2009, 2011 Free Software Foundation, Inc.
+   Copyright (C) 2009-2017 Free Software Foundation, Inc.
 
    This file is part of the libiberty library.
 
index 4ad90a6c58c3f7583fc21079fb5ac264a3c60b31..12457f003b11b66e466597f3ad55368c431d20c9 100644 (file)
@@ -1,5 +1,5 @@
 /* Demangler for the D programming language
-   Copyright 2014, 2015, 2016 Free Software Foundation, Inc.
+   Copyright (C) 2014-2017 Free Software Foundation, Inc.
    Written by Iain Buclaw (ibuclaw@gdcproject.org)
 
 This file is part of the libiberty library.
index 7017308d987e99fdfc03acdb95dc811d245439dd..62563b75c8f047a8adcaa8d0c939c38189cb523a 100644 (file)
@@ -1,5 +1,5 @@
 /* Names of various DWARF tags.
-   Copyright (C) 2012 Free Software Foundation, Inc.
+   Copyright (C) 2012-2017 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
    
index faa8d9477117f6778627954a4bdba5f3bf4631ef..804821425b54c93ab448ea4b84a29d2fe28a7779 100644 (file)
@@ -1,5 +1,5 @@
 /* An abstract string datatype.
-   Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1998-2017 Free Software Foundation, Inc.
    Contributed by Mark Mitchell (mark@markmitchell.com).
 
 This file is part of GNU CC.
index f613cb3c01ea05fb95cb0f3b4a526124e75eef58..a28251511fdc7d18b20a771e759c9072cc23dd60 100644 (file)
@@ -1,5 +1,5 @@
 /* Compare two open file descriptors to see if they refer to the same file.
-   Copyright (C) 1991 Free Software Foundation, Inc.
+   Copyright (C) 1991-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index a37ee4ef270a55d9df7d47c5722272a9b5f78cab..48db33aa3f52e02ddfe53ec0e486c4c272cdb42e 100644 (file)
@@ -1,5 +1,5 @@
 /* A Fibonacci heap datatype.
-   Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998-2017 Free Software Foundation, Inc.
    Contributed by Daniel Berlin (dan@cgsoftware.com).
    
 This file is part of GNU CC.
index 150488cbab1cc6011ea3c2f0371b2c52caae9d40..e196bdfadd8549cf405d6ea7fdcf23a263b9de0a 100644 (file)
@@ -1,6 +1,6 @@
 /* File name comparison routine.
 
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2017 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
index 9190e1469d9fdf4587a5ed600197489a684148d9..7e7c4165ecaef203c06d81e54e7dbd4c16b0a72b 100644 (file)
@@ -1,6 +1,5 @@
 /* IEEE floating point support routines, for GDB, the GNU Debugger.
-   Copyright 1991, 1994, 1999, 2000, 2003, 2005, 2006, 2010, 2012, 2015
-   Free Software Foundation, Inc.
+   Copyright (C) 1991-2017 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
index fc897be2c6f7d7b289d2815485034f6ab8379284..8530be8d07d4bc78406b198f7108553478c03504 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2017 Free Software Foundation, Inc.
 
 NOTE: This source is derived from an old version taken from the GNU C
 Library (glibc).
index d1f78c46244163829255f71d12df8553930bc2f3..e76358e73091b0a15ea0d51f4e656f65fe28e03f 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement fopen_unlocked and related functions.
-   Copyright (C) 2005, 2011 Free Software Foundation, Inc.
+   Copyright (C) 2005-2017 Free Software Foundation, Inc.
    Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
 
 This file is part of the libiberty library.
index 2f1f3b1f699e62407f4864fd669af6cebbbc2d9a..d6f2f06e8477c5b4a86c9f6cea8b4be78d7de7df 100644 (file)
@@ -1,8 +1,7 @@
 #!/usr/bin/perl
 # -*- perl -*-
 
-#   Copyright (C) 2001, 2009, 2011
-#   Free Software Foundation
+#   Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is part of the libiberty library.
 # Libiberty is free software; you can redistribute it and/or
index d9c3532ce1136b41ff027439ce7ee6067a7c8673..bb778140446faff1e73431438a7ea13598a994aa 100644 (file)
@@ -3,8 +3,7 @@
    "Keep this file name-space clean" means, talk to drepper@gnu.org
    before changing it!
 
-   Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
-   1996, 1997, 1998, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1987-2017 Free Software Foundation, Inc.
 
    NOTE: This source is derived from an old version taken from the GNU C
    Library (glibc).
index 255b1445637fb1c8c879550e21d6a691353ac7c3..02f8487fa0d33410623c03569fd87bcb499ba42f 100644 (file)
@@ -1,6 +1,5 @@
 /* getopt_long and getopt_long_only entry points for GNU getopt.
-   Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98,2005
-     Free Software Foundation, Inc.
+   Copyright (C) 1987-2017 Free Software Foundation, Inc.
 
    NOTE: This source is derived from an old version taken from the GNU C
    Library (glibc).
index 1e0daad19ac0e4bdebbe4b2ed15dc50b6fa40e0d..3a85d9ef4a94d2e4f7181f296f6736458b4ec70e 100644 (file)
@@ -1,5 +1,5 @@
 /* Return time used so far, in microseconds.
-   Copyright (C) 1994, 1999, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 99381b17fd60805883a8eb665c73821292b9b8b3..7c4d3d9ca830a8b4591ce7c63209b4dcb8e0f128 100644 (file)
@@ -1,6 +1,5 @@
 /* An expandable hash tables datatype.  
-   Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
-   Free Software Foundation, Inc.
+   Copyright (C) 1999-2017 Free Software Foundation, Inc.
    Contributed by Vladimir Makarov (vmakarov@cygnus.com).
 
 This file is part of the libiberty library.
index 5eeafdbd15860f55457ac635cda89237db6e3652..d93508c896a1836ede7947fc284a69ba8f1c7c63 100644 (file)
@@ -1,5 +1,5 @@
 /* Hex character manipulation support.
-   Copyright (C) 1995, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1995-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 87c50faad403b6f54f905a0749f8dc13f178ea47..4241a3bd699bfc444c134725e5df87c75d3fe5e9 100644 (file)
@@ -1,6 +1,6 @@
 /* Libiberty basename.  Like basename, but is not overridden by the
    system C library.
-   Copyright (C) 2001, 2002, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2001-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index f4af66d40b9185a3cd0bc10ed26c430ccc875c81..f1ea3950059f87ff6844b3bc20aa4be44376bea0 100644 (file)
@@ -24,8 +24,7 @@
 @ifinfo
 This manual describes the GNU @libib library of utility subroutines.
 
-Copyright @copyright{} 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
-2009, 2010 Free Software Foundation, Inc.
+Copyright @copyright{} 2001-2017 Free Software Foundation, Inc.
 
       Permission is granted to copy, distribute and/or modify this document
       under the terms of the GNU Free Documentation License, Version 1.3
@@ -51,8 +50,7 @@ notice identical to this one except for the removal of this paragraph
 
 
 @vskip 0pt plus 1filll
-Copyright @copyright{} 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
-2009, 2010 Free Software Foundation, Inc.
+Copyright @copyright{} 2001-2017 Free Software Foundation, Inc.
 
       Permission is granted to copy, distribute and/or modify this document
       under the terms of the GNU Free Documentation License, Version 1.3
index b27c8de990e974c7294dfc4024ef44fbd3844a52..0a19a5e318510265f503d07f852e8f9e13dd9015 100644 (file)
@@ -1,7 +1,7 @@
 /* Libiberty realpath.  Like realpath, but more consistent behavior.
    Based on gdb_realpath from GDB.
 
-   Copyright 2003 Free Software Foundation, Inc.
+   Copyright (C) 2003-2017 Free Software Foundation, Inc.
 
    This file is part of the libiberty library.
 
index 1c94cdc79cdabf41dd3d56d8d43ff4f86b6580d2..4328a9a7234507a0a1e5f17f3d411c491d58352c 100644 (file)
@@ -1,8 +1,7 @@
 #!/usr/bin/perl
 # -*- perl -*-
 
-#   Copyright (C) 2001, 2007, 2010, 2014
-#   Free Software Foundation
+#   Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is part of the libiberty library.
 # Libiberty is free software; you can redistribute it and/or
index fa813998be3e97052a5215d1f411586161f64ebc..f74bbdc9038e3c55507d81a3e8abc5ae826c6c6a 100644 (file)
@@ -1,6 +1,5 @@
 /* Relative (relocatable) prefix support.
-   Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000, 2001, 2002, 2006, 2012 Free Software Foundation, Inc.
+   Copyright (C) 1987-2017 Free Software Foundation, Inc.
 
 This file is part of libiberty.
 
index 244cc23c5090e1c0d227820dc703adbc8022f8d5..98e215d15e79b666d99ce75316b723f2786c166b 100644 (file)
@@ -1,6 +1,5 @@
 /* Utility to pick a temporary filename prefix.
-   Copyright (C) 1996, 1997, 1998, 2001, 2009, 2010
-   Free Software Foundation, Inc.
+   Copyright (C) 1996-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index b30a6b7bfc511c045499c76d61c517859f6d2252..7bcc1ff4428c12b2c880f25bdf09780dfb8a8018 100644 (file)
@@ -1,6 +1,6 @@
 /* md5.c - Functions to compute MD5 message digest of files or memory blocks
    according to the definition of MD5 in RFC 1321 from April 1992.
-   Copyright (C) 1995, 1996, 2011 Free Software Foundation, Inc.
+   Copyright (C) 1995-2017 Free Software Foundation, Inc.
 
    NOTE: This source is derived from an old version taken from the GNU C
    Library (glibc).
index 147253f5bad9cba2f98f8f8cde62b68846a28083..ec330f29a31f706e2733a5ef12971f5dd9018307 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,94,96,97,98,2000,2004,2007,2011 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2017 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    This program is free software; you can redistribute it and/or modify
index f85a07f2910f9a798e4e1aa8769038de3c5a8ba6..46a9bc7df40e8f681f633100744d44cd2889695c 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement the mempcpy function.
-   Copyright (C) 2003, 2004, 2005, 2011 Free Software Foundation, Inc.
+   Copyright (C) 2003-2017 Free Software Foundation, Inc.
    Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
 
 This file is part of the libiberty library.
index 0e06fe17059a03c9a0d343beecaa5d60b8dae00d..8a0effdd5bf1c152f02c5f4df38b4b755d6f46d3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1996, 1998, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2017 Free Software Foundation, Inc.
    This file is derived from mkstemp.c from the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
index 72e92d2ddce986820c9f8adaf1678ee75d588ac0..d7e9ad03ccfa61f7a9ecf1a1ff31ca382e6680b0 100644 (file)
@@ -1,5 +1,5 @@
 /* objalloc.c -- routines to allocate memory for objects
-   Copyright 1997-2012 Free Software Foundation, Inc.
+   Copyright (C) 1997-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Cygnus Solutions.
 
 This program is free software; you can redistribute it and/or modify it
index 6d8d67261ddc470733ad6ccdccd925dd8afe9e8d..45e5a30ee6ab115464f816a9388c6a2a17a1a8e3 100644 (file)
@@ -1,5 +1,5 @@
 /* obstack.c - subroutines used implicitly by object stack macros
-   Copyright (C) 1988-2015 Free Software Foundation, Inc.
+   Copyright (C) 1988-2017 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
index 5f0745c91424ea2ec299b580d86a88f33a78cedd..97d2b94eb0469bc1a9b2ec00da22287504eaa1b1 100644 (file)
@@ -1,5 +1,5 @@
 /* List implementation of a partition of consecutive integers.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000-2017 Free Software Foundation, Inc.
    Contributed by CodeSourcery, LLC.
 
    This file is part of GNU CC.
index 146010a6fcac85bb7bf6964daed37321c4b30d3d..3a6c7d45b9bcb4f77e36948b3358fa384de9e3a8 100644 (file)
@@ -1,5 +1,5 @@
 /* Common code for executing a program in a sub-process.
-   Copyright (C) 2005, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2005-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor <ian@airs.com>.
 
 This file is part of the libiberty library.
index b6db248f692e57d42b99002b4cdfe6b85fc8c236..cddcf6b18f15b7e8041eba3342aa9432ec9a2188 100644 (file)
@@ -1,7 +1,6 @@
 /* Utilities to execute a program in a subprocess (possibly linked by pipes
    with other subprocesses), and wait for it.  Shared logic.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
-   Free Software Foundation, Inc.
+   Copyright (C) 1996-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index b014ffa33177a20b9669e465771b8a0fbd866b37..ecb418abdb428d5bcaa1a949fdb4a8e3de03bd75 100644 (file)
@@ -1,7 +1,6 @@
 /* Utilities to execute a program in a subprocess (possibly linked by pipes
    with other subprocesses), and wait for it.  DJGPP specialization.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005
-   Free Software Foundation, Inc.
+   Copyright (C) 1996-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index fa0f40ac9edaad32e9834abf6d1cb94010a152b6..c9e837d04e721791ceaa0f44f83bfb33f13a1297 100644 (file)
@@ -1,7 +1,6 @@
 /* Utilities to execute a program in a subprocess (possibly linked by pipes
    with other subprocesses), and wait for it.  Generic MSDOS specialization.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005
-   Free Software Foundation, Inc.
+   Copyright (C) 1996-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 696b8bcc62a36ab867489c9d8ae187cb2b13c278..6b38860f4fd82199378dec3323f55d9dbc7a7ffd 100644 (file)
@@ -1,5 +1,5 @@
 /* Execute a program and wait for a result.
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index b48f315f83fa9b744426bd3f89acfce0f72e861a..034194e4815ae3f61029e175c375e7b2e2ad2a9b 100644 (file)
@@ -1,8 +1,7 @@
 /* Utilities to execute a program in a subprocess (possibly linked by pipes
    with other subprocesses), and wait for it.  Generic Unix version
    (also used for UWIN and VMS).
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2009,
-   2010, 2015 Free Software Foundation, Inc.
+   Copyright (C) 1996-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 4c15b0d11a0e0b89ec3e188b57020b55aebed8dc..9131158a188f02a11fe7c9d6d74506cc7b4f5e85 100644 (file)
@@ -1,7 +1,6 @@
 /* Utilities to execute a program in a subprocess (possibly linked by pipes
    with other subprocesses), and wait for it.  Generic Win32 specialization.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
-   Free Software Foundation, Inc.
+   Copyright (C) 1996-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 97f157447b71407b6804afc071cdd5c49b37c289..b99a1e55c6867e6a92698e4ee15fd03683ca5150 100644 (file)
@@ -1,6 +1,6 @@
 /* Utilities to execute a program in a subprocess (possibly linked by pipes
    with other subprocesses), and wait for it.
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 09fbf3f8c83ec179a4cbdfd3a7ccacd4602809ee..8068104bdc2a813a6bc8f410f896f23642ed9323 100644 (file)
@@ -1,5 +1,5 @@
 /* Calculate the size of physical memory.
-   Copyright 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2000-2017 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
index 248f50e9203393d593591406bbed9ea88a4b80e5..9ea7f771d31f7578415e528be187922753c11707 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 1995, 1996, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2017 Free Software Foundation, Inc.
    This file based on putenv.c in the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
index 6854e3b41a018dca47e68afb74e33b12e93dd8b3..66d09d935a2f83f673311ec0c5eb9437a5ce1458 100644 (file)
@@ -3,8 +3,7 @@
    (Implements POSIX draft P1003.2/D11.2, except for some of the
    internationalization features.)
 
-   Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-   2002, 2005, 2010, 2013 Free Software Foundation, Inc.
+   Copyright (C) 1993-2017 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
index 326881e48f72f1a377e40e2b77df7527ad72567c..3d7d0905b140860501a31e52d10cfb92bbfc75a2 100644 (file)
@@ -1,5 +1,5 @@
 /* Demangler for the Rust programming language
-   Copyright 2016 Free Software Foundation, Inc.
+   Copyright (C) 2016-2017 Free Software Foundation, Inc.
    Written by David Tolnay (dtolnay@gmail.com).
 
 This file is part of the libiberty library.
index 0972b4b354fa4d6fa7b909eed72c8599b3829c11..5a13f827f8da0397012c58a6e8d7b5fe0600ba3d 100644 (file)
@@ -1,7 +1,6 @@
 /* <ctype.h> replacement macros.
 
-   Copyright (C) 2000, 2001, 2002, 2003, 2004,
-   2005 Free Software Foundation, Inc.
+   Copyright (C) 2000-2017 Free Software Foundation, Inc.
    Contributed by Zack Weinberg <zackw@stanford.edu>.
 
 This file is part of the libiberty library.
index 5b51193319de57d81f8f7f9c751175850f107819..d41b62176a3ea9b8b25d30d1bac2180d7f7baf84 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (C) 1992, 1995, 1996, 1997, 2002, 2011, 2015
-   Free Software Foundation, Inc.
+/* Copyright (C) 1992-2017 Free Software Foundation, Inc.
    This file based on setenv.c in the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
index 6a2fe8ce3a5b6fffa5bd0bd68c73b12f92a6b681..f42a112b63753eda3e8734083a12ffd0572af154 100644 (file)
@@ -1,5 +1,5 @@
 /* Set the title of a process.
-   Copyright (C) 2010, 2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 617e743a15e8dfea47e4fc325044e0309153150c..df1518e96fe4561d05972792019752d3f55f32d2 100644 (file)
@@ -1,8 +1,7 @@
 /* sha1.c - Functions to compute SHA1 message digest of files or
    memory blocks according to the NIST specification FIPS-180-1.
 
-   Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free Software
-   Foundation, Inc.
+   Copyright (C) 2000-2017 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
index a7802a520760e8a96dcd030b286dbe46579df0ff..0283b15c8033fd5f75739d642b7e1ded2447d86e 100644 (file)
@@ -1,5 +1,5 @@
 /* simple-object-coff.c -- routines to manipulate COFF object files.
-   Copyright 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Google.
 
 This program is free software; you can redistribute it and/or modify it
index bef9b08cef852e16612c1e92cac34c059175e116..cda4038c9d79a7d59fc3b21fbc84e34da5944966 100644 (file)
@@ -1,5 +1,5 @@
 /* simple-object-common.h -- common structs for object file manipulation.
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 8594cf99f417c5742066a39d62a9e41299c75de1..a733e4b1a2af788d85ff02473e838d2b4844a73b 100644 (file)
@@ -1,5 +1,5 @@
 /* simple-object-elf.c -- routines to manipulate ELF object files.
-   Copyright 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Google.
 
 This program is free software; you can redistribute it and/or modify it
index d1b676d777c1604bbfef86d84a3ec6c51d4d907a..bbadf5d83307fa7b4024e9f572918bb989d386db 100644 (file)
@@ -1,5 +1,5 @@
 /* simple-object-mach-o.c -- routines to manipulate Mach-O object files.
-   Copyright 2010, 2011, 2013 Free Software Foundation, Inc.
+   Copyright (C) 2010-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Google.
 
 This program is free software; you can redistribute it and/or modify it
index ff1dc18079eb3a510362d494cf590a55d9262997..8a159398787ff08937cf7e7398d2b448848ec11a 100644 (file)
@@ -1,5 +1,5 @@
 /* simple-object-coff.c -- routines to manipulate XCOFF object files.
-   Copyright 2013 Free Software Foundation, Inc.
+   Copyright (C) 2013-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Google and David Edelsohn, IBM.
 
 This program is free software; you can redistribute it and/or modify it
index 5d379d053c419cfacf812ba89e60fe93b8d7b73d..8ea9cf129fd6711319c31f899ec9e8f5e4560e80 100644 (file)
@@ -1,5 +1,5 @@
 /* simple-object.c -- simple routines to read and write object files.
-   Copyright 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Google.
 
 This program is free software; you can redistribute it and/or modify it
index 49bcd8300d240d48ca25923cd3654344e3371447..a37a47ebb8cd0db336749adb9962e0cd02a4a3b0 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement the snprintf function.
-   Copyright (C) 2003, 2011, 2013 Free Software Foundation, Inc.
+   Copyright (C) 2003-2017 Free Software Foundation, Inc.
    Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
 
 This file is part of the libiberty library.  This library is free
index 3738dd733e5863502cbb3eef1ea677ca632952d6..326986e09e0f8ebf61d6a3c168d263b806cbc28f 100644 (file)
@@ -1,5 +1,5 @@
 /* Sorting algorithms.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000-2017 Free Software Foundation, Inc.
    Contributed by Mark Mitchell <mark@codesourcery.com>.
 
 This file is part of GNU CC.
index 69d7a2d3f834778242b24840f1c3c9fdbb351a26..0612f87c72f9bca050cd5adbafaf3687a247e90f 100644 (file)
@@ -1,5 +1,5 @@
 /* Allocate memory region filled with spaces.
-   Copyright (C) 1991 Free Software Foundation, Inc.
+   Copyright (C) 1991-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 12bfa8bbdcc97990d837b6e1280007481ea5c3b5..383afa2ab7ede3b13b8cbbc516855cb8d5588420 100644 (file)
@@ -1,6 +1,5 @@
 /* A splay-tree datatype.  
-   Copyright (C) 1998, 1999, 2000, 2001, 2009,
-   2010, 2011 Free Software Foundation, Inc.
+   Copyright (C) 1998-2017 Free Software Foundation, Inc.
    Contributed by Mark Mitchell (mark@markmitchell.com).
 
 This file is part of GNU CC.
index 82c3d44498eeeee66f45b0dc3ac39dd1bf3b72b7..3dbd8a875b4c35351df12f09a3590960149b740a 100644 (file)
@@ -1,5 +1,5 @@
 /* Increase stack size limit if possible.
-   Copyright (C) 2011 Free Software Foundation, Inc.
+   Copyright (C) 2011-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.  This library is free
 software; you can redistribute it and/or modify it under the
index 57b32d1c841a57bb22a2788a952099958484edde..ddbef285f2768dcd5c5a83a604c69b3e3efad7d1 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement the stpcpy function.
-   Copyright (C) 2003 Free Software Foundation, Inc.
+   Copyright (C) 2003-2017 Free Software Foundation, Inc.
    Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
 
 This file is part of the libiberty library.
index 83d54e60cb8edf5e3ed0f719325c1d61864ab026..eb91f723a040e6045c26631c17ebf861bc22ffdb 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement the stpncpy function.
-   Copyright (C) 2003, 2011 Free Software Foundation, Inc.
+   Copyright (C) 2003-2017 Free Software Foundation, Inc.
    Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
 
 This file is part of the libiberty library.
index 9e9b4e2991f833082acd176f48825f76d5a888b9..0a4cda470abdc15cf1f7149d93f9021d61c11781 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement the strndup function.
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005-2017 Free Software Foundation, Inc.
    Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
 
 This file is part of the libiberty library.
@@ -33,7 +33,7 @@ memory was available.  The result is always NUL terminated.
 #include "ansidecl.h"
 #include <stddef.h>
 
-extern size_t  strlen (const char*);
+extern size_t  strnlen (const char *s, size_t maxlen);
 extern PTR     malloc (size_t);
 extern PTR     memcpy (PTR, const PTR, size_t);
 
@@ -41,10 +41,7 @@ char *
 strndup (const char *s, size_t n)
 {
   char *result;
-  size_t len = strlen (s);
-
-  if (n < len)
-    len = n;
+  size_t len = strnlen (s, n);
 
   result = (char *) malloc (len + 1);
   if (!result)
index e4da2113f5b24798f2c54bae2aa18246782051d5..bf9d0576f3bd201beecf8140a30ba6d7b2f2475d 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of strtod for systems with atof.
-   Copyright (C) 1991, 1995, 2002, 2011 Free Software Foundation, Inc.
+   Copyright (C) 1991-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.  This library is free
 software; you can redistribute it and/or modify it under the
index 04e1e4ae99ef6fbb0e271fd468ddae873a7d2a0e..01bff6c9948a5b05bbe72b3215fc0b5d006303d4 100644 (file)
@@ -1,5 +1,5 @@
 /* Compare strings while treating digits characters numerically.
-   Copyright (C) 1997, 2002, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1997-2017 Free Software Foundation, Inc.
    This file is part of the libiberty library.
    Contributed by Jean-François Bignolles <bignolle@ecoledoc.ibp.fr>, 1997.
 
index da0b2f41c0c46d061d2902d9c07cfe10445d0e1b..97e486623df72511c85feab2f97d2109a0bb9c5f 100644 (file)
@@ -1,7 +1,6 @@
 #
 # Makefile
-#   Copyright (C) 1999, 2002, 2006
-#   Free Software Foundation
+#   Copyright (C) 1999-2017 Free Software Foundation, Inc.
 #
 # This file is part of the libiberty library.
 # Libiberty is free software; you can redistribute it and/or
index 803decdb096babc2e1b3d4e7bdac3dda2f83aff2..b65dcd3450e9a7de1788b25aeae25fe2ef62a83b 100644 (file)
@@ -4200,6 +4200,9 @@ decltype (new auto({parm#1})) f<int>(int)
 _Z1fIiERDaRKT_S1_
 auto& f<int>(int const&, int)
 --format=gnu-v3
+_Z1gIiEDcRKT_S0_
+decltype(auto) g<int>(int const&, int)
+--format=gnu-v3
 _Z1gILi1EEvR1AIXT_EER1BIXscbT_EE
 void g<1>(A<1>&, B<static_cast<bool>(1)>&)
 --format=gnu-v3
index aff702473010fd0518871dd334df3a60b7e4eb3d..5663513862bb737d3e9a2163da4e784daeacf5cc 100644 (file)
@@ -1,6 +1,6 @@
 /* Demangler fuzzer.
 
-   Copyright (C) 2014 Free Software Foundation, Inc.
+   Copyright (C) 2014-2017 Free Software Foundation, Inc.
 
    This file is part of GNU libiberty.
 
index 44062478c09391eddb672dc85dc0d863b3a3f9d5..9e06b33476df6c3206341e62cca99755dddf6c03 100644 (file)
@@ -1,5 +1,5 @@
 /* Demangler test program,
-   Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2002-2017 Free Software Foundation, Inc.
    Written by Zack Weinberg <zack@codesourcery.com
 
    This file is part of GNU libiberty.
index 0edd751722be1aaf2e7f6d670738b6313966b150..6d7ee8bccb61ef4f6ec832e1cd62ab81596baef1 100644 (file)
@@ -1,5 +1,5 @@
 /* expandargv test program,
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006-2017 Free Software Foundation, Inc.
    Written by Carlos O'Donell <carlos@codesourcery.com>
 
    This file is part of the libiberty library, which is part of GCC.
index f62239d49b8d40dfcadb37400da929afa3c96cad..66d2d370b84bb1a037a79bfc1929a0126abed780 100644 (file)
@@ -1,5 +1,5 @@
 /* Pexecute test program,
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005-2017 Free Software Foundation, Inc.
    Written by Ian Lance Taylor <ian@airs.com>.
 
    This file is part of GNU libiberty.
index 6faf81b5cae4d764bb8475e0cb964c0bfc1248ff..f79980bf64dbbbc6a0e4165686cf489fb22eae07 100644 (file)
@@ -1,5 +1,5 @@
 /* Test program for strtol family of funtions,
-   Copyright (C) 2014 Free Software Foundation, Inc.
+   Copyright (C) 2014-2017 Free Software Foundation, Inc.
    Written by Yury Gribov <y.gribov@samsung.com>
 
    This file is part of the libiberty library, which is part of GCC.
index 4c9f6a85ee268c6f0663c42d6bc350f0a76d58cf..c625988131c99da1916466d598b9b3c6d890b765 100644 (file)
@@ -1,5 +1,5 @@
 /* Basic struct timeval utilities.
-   Copyright (C) 2011 Free Software Foundation, Inc.
+   Copyright (C) 2011-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index c03b4dd7c7062641dafbe12969e9ff12165b93f7..69107e82a5420054eca9830425b17150e049d566 100644 (file)
@@ -1,5 +1,5 @@
 /* unlink-if-ordinary.c - remove link to a file unless it is special
-   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2004-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.  This library is free
 software; you can redistribute it and/or modify it under the
index 6ffe2dd7516b379c2a9625904a833e107a7a5813..a14bcc5e5b312f5da3af7a5519ced1276dc6300e 100644 (file)
@@ -1,6 +1,6 @@
 /* Like vsprintf but provides a pointer to malloc'd storage, which must
    be freed by the caller.
-   Copyright (C) 1994, 2003, 2011, 2013 Free Software Foundation, Inc.
+   Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 9bd3ed555d070d02e8c79f402c5d7d9fac352943..4e375c949f5a8edaa79ac1b3fd8647742d46a24d 100644 (file)
@@ -1,6 +1,6 @@
 /* Provide a version vfprintf in terms of _doprnt.
    By Kaveh Ghazi  (ghazi@caip.rutgers.edu)  3/29/98
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998-2017 Free Software Foundation, Inc.
  */
 
 #include "ansidecl.h"
index 171232f1b0f3615998cc03ae0df87ba6cf80ee00..f8cac816d88e6df068ab80429e1011918db79021 100644 (file)
@@ -1,6 +1,6 @@
 /* Estimate the length of the string generated by a vprintf-like
    function.  Used by vasprintf and xvasprintf.
-   Copyright (C) 1994, 2003, 2011, 2013, 2014 Free Software Foundation, Inc.
+   Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 9d2680aac89109dab69516a701589d62c68f4323..1ac25f93ea6480a05fd6d3b07aa7bd646c36cb64 100644 (file)
@@ -1,6 +1,6 @@
 /* Estimate the length of the string generated by a vprintf-like
    function.  Use by vasprintf and xvasprintf.
-   Copyright (C) 1994, 2003, 2011, 2013, 2014 Free Software Foundation, Inc.
+   Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 2c441a72f603ae4bae0f34708d264650f9b951a8..8217b68e81e0f0b8717f4b11fd06c3ff741b6830 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement the vsnprintf function.
-   Copyright (C) 2003, 2004, 2005, 2011, 2013 Free Software Foundation, Inc.
+   Copyright (C) 2003-2017 Free Software Foundation, Inc.
    Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
 
 This file is part of the libiberty library.  This library is free
index 99e704493f5844647387070d61c95784b6045588..1aea075a7dd5aa364ed31ab703340a5bbf219e50 100644 (file)
@@ -3,7 +3,7 @@
    implementations of stdio; newer ones should already have vsprintf.
    Written by Per Bothner of Cygnus Support.
    Based on libg++'s "form" (written by Doug Lea; dl@rocky.oswego.edu).
-   Copyright (C) 1991, 1995, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1991-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.  This library is free
 software; you can redistribute it and/or modify it under the
index 4f72bb2665554acba04241c9b508fd13b725bbc0..ab5d59219b617d975b81dac74b44ded10e13ff84 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement the xasprintf function.
-   Copyright (C) 2014 Free Software Foundation, Inc.
+   Copyright (C) 2014-2017 Free Software Foundation, Inc.
    Contributed by Manuel Lopez-Ibanez.
 
 This file is part of the libiberty library.
index 421e5e238419c012cc01cc4d3d519d6bf6a9bca6..79e57d4cd1f4954175f36bf8c0f465f308dace2b 100644 (file)
@@ -1,5 +1,5 @@
 /* xexit.c -- Run any exit handlers, then exit.
-   Copyright (C) 1994, 95, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index f849aee53e28c8581e662c872c9931bdbcca2b91..555c8b7c389680f13d95c2d1b0b9b8838ff7124c 100644 (file)
@@ -1,6 +1,5 @@
 /* memory allocation routines with error checking.
-   Copyright 1989, 1990, 1991, 1992, 1993, 1994, 2015
-   Free Software Foundation, Inc.
+   Copyright (C) 1989-2017 Free Software Foundation, Inc.
    
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
index 0a41f608ec0b9c71ddebc4975c688c88bdde30a3..53f44514a5fda6d7adf73cac2d717c65a44fad4b 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement the xstrndup function.
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005-2017 Free Software Foundation, Inc.
    Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
 
 This file is part of the libiberty library.
@@ -48,10 +48,7 @@ char *
 xstrndup (const char *s, size_t n)
 {
   char *result;
-  size_t len = strlen (s);
-
-  if (n < len)
-    len = n;
+  size_t len = strnlen (s, n);
 
   result = XNEWVEC (char, len + 1);
 
index 9e9a9d39e11d97af88379420e2d278d5f57da3cb..7842d05cedff0ccbe435d69eb75dcdf1a825faba 100644 (file)
@@ -1,5 +1,5 @@
 /* Implement the xvasprintf function.
-   Copyright (C) 2014 Free Software Foundation, Inc.
+   Copyright (C) 2014-2017 Free Software Foundation, Inc.
    Contributed by Manuel Lopez-Ibanez.
 
 This file is part of the libiberty library.
This page took 0.061428 seconds and 4 git commands to generate.