Sync libiberty from gcc
Picks up copyright year update and other recent fixes.
This commit is contained in:
parent
0913ae5ad7
commit
e495212d22
|
@ -1,3 +1,7 @@
|
||||||
|
2017-01-04 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
Sync with gcc.
|
||||||
|
|
||||||
2016-12-12 Nathan Sidwell <nathan@acm.org>
|
2016-12-12 Nathan Sidwell <nathan@acm.org>
|
||||||
|
|
||||||
PR c++/78252
|
PR c++/78252
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
# Makefile for the libiberty library.
|
# Makefile for the libiberty library.
|
||||||
# Originally written by K. Richard Pixley <rich@cygnus.com>.
|
# Originally written by K. Richard Pixley <rich@cygnus.com>.
|
||||||
#
|
#
|
||||||
# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
|
# Copyright (C) 1990-2017 Free Software Foundation, Inc.
|
||||||
# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
|
||||||
# 2012, 2014, 2015 Free Software Foundation
|
|
||||||
#
|
#
|
||||||
# This file is part of the libiberty library.
|
# This file is part of the libiberty library.
|
||||||
# Libiberty is free software; you can redistribute it and/or
|
# 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/acx.m4 \
|
||||||
$(srcdir)/../config/no-executables.m4 \
|
$(srcdir)/../config/no-executables.m4 \
|
||||||
$(srcdir)/../config/override.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)
|
$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(configure_deps)
|
||||||
cd $(srcdir) && $(AUTOCONF)
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Provide a version of _doprnt in terms of fprintf.
|
/* 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
|
Contributed by Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Create and destroy argument vectors (argv's)
|
/* 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
|
Written by Fred Fish @ Cygnus Support
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Like sprintf but provides a pointer to malloc'd storage, which must
|
/* Like sprintf but provides a pointer to malloc'd storage, which must
|
||||||
be freed by the caller.
|
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.
|
Contributed by Cygnus Solutions.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Utility to pick a temporary filename prefix.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* ANSI-compatible clock function.
|
/* 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
|
This file is part of the libiberty library. This library is free
|
||||||
software; you can redistribute it and/or modify it under the
|
software; you can redistribute it and/or modify it under the
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Concatenate variable number of strings.
|
/* 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
|
Written by Fred Fish @ Cygnus Support
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -5097,7 +5097,7 @@ case "${host}" in
|
||||||
# If we are using a compiler supporting mdynamic-no-pic
|
# If we are using a compiler supporting mdynamic-no-pic
|
||||||
# and the option has been tested as safe to add, then cancel
|
# and the option has been tested as safe to add, then cancel
|
||||||
# it here, since the code generated is incompatible with shared
|
# it here, since the code generated is incompatible with shared
|
||||||
# libs.
|
# libs.
|
||||||
*-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
|
*-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
|
||||||
*) PICFLAG=-fno-common ;;
|
*) PICFLAG=-fno-common ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
@center Version 2.1, February 1999
|
@center Version 2.1, February 1999
|
||||||
|
|
||||||
@display
|
@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
|
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* Demangler for g++ V3 ABI.
|
/* Demangler for g++ V3 ABI.
|
||||||
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2014
|
Copyright (C) 2003-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
Written by Ian Lance Taylor <ian@wasabisystems.com>.
|
Written by Ian Lance Taylor <ian@wasabisystems.com>.
|
||||||
|
|
||||||
This file is part of the libiberty library, which is part of GCC.
|
This file is part of the libiberty library, which is part of GCC.
|
||||||
|
@ -2593,6 +2592,10 @@ cplus_demangle_type (struct d_info *di)
|
||||||
/* auto */
|
/* auto */
|
||||||
ret = d_make_name (di, "auto", 4);
|
ret = d_make_name (di, "auto", 4);
|
||||||
break;
|
break;
|
||||||
|
case 'c':
|
||||||
|
/* decltype(auto) */
|
||||||
|
ret = d_make_name (di, "decltype(auto)", 14);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'f':
|
case 'f':
|
||||||
/* 32-bit decimal floating point */
|
/* 32-bit decimal floating point */
|
||||||
|
@ -4568,7 +4571,7 @@ d_maybe_print_fold_expression (struct d_print_info *dpi, int options,
|
||||||
|
|
||||||
static void
|
static void
|
||||||
d_print_comp_inner (struct d_print_info *dpi, int options,
|
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
|
/* Magic variable to let reference smashing skip over the next modifier
|
||||||
without needing to modify *dc. */
|
without needing to modify *dc. */
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* Internal demangler interface for g++ V3 ABI.
|
/* Internal demangler interface for g++ V3 ABI.
|
||||||
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010
|
Copyright (C) 2003-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
Written by Ian Lance Taylor <ian@wasabisystems.com>.
|
Written by Ian Lance Taylor <ian@wasabisystems.com>.
|
||||||
|
|
||||||
This file is part of the libiberty library, which is part of GCC.
|
This file is part of the libiberty library, which is part of GCC.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Demangler component interface functions.
|
/* 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>.
|
Written by Ian Lance Taylor <ian@wasabisystems.com>.
|
||||||
|
|
||||||
This file is part of the libiberty library, which is part of GCC.
|
This file is part of the libiberty library, which is part of GCC.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* Demangler for GNU C++
|
/* Demangler for GNU C++
|
||||||
Copyright 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999,
|
Copyright (C) 1989-2017 Free Software Foundation, Inc.
|
||||||
2000, 2001, 2002, 2003, 2004, 2010 Free Software Foundation, Inc.
|
|
||||||
Written by James Clark (jjc@jclark.uucp)
|
Written by James Clark (jjc@jclark.uucp)
|
||||||
Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling
|
Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling
|
||||||
Modified by Satish Pai (pai@apollo.hp.com) for HP demangling
|
Modified by Satish Pai (pai@apollo.hp.com) for HP demangling
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* crc32.c
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Demangler for the D programming language
|
/* 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)
|
Written by Iain Buclaw (ibuclaw@gdcproject.org)
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Names of various DWARF tags.
|
/* 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.
|
This file is part of GNU CC.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* An abstract string datatype.
|
/* 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).
|
Contributed by Mark Mitchell (mark@markmitchell.com).
|
||||||
|
|
||||||
This file is part of GNU CC.
|
This file is part of GNU CC.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Compare two open file descriptors to see if they refer to the same file.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* A Fibonacci heap datatype.
|
/* 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).
|
Contributed by Daniel Berlin (dan@cgsoftware.com).
|
||||||
|
|
||||||
This file is part of GNU CC.
|
This file is part of GNU CC.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* File name comparison routine.
|
/* 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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* IEEE floating point support routines, for GDB, the GNU Debugger.
|
/* IEEE floating point support routines, for GDB, the GNU Debugger.
|
||||||
Copyright 1991, 1994, 1999, 2000, 2003, 2005, 2006, 2010, 2012, 2015
|
Copyright (C) 1991-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
|
||||||
|
|
|
@ -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
|
NOTE: This source is derived from an old version taken from the GNU C
|
||||||
Library (glibc).
|
Library (glibc).
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement fopen_unlocked and related functions.
|
/* 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>.
|
Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
# -*- perl -*-
|
# -*- perl -*-
|
||||||
|
|
||||||
# Copyright (C) 2001, 2009, 2011
|
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
||||||
# Free Software Foundation
|
|
||||||
#
|
#
|
||||||
# This file is part of the libiberty library.
|
# This file is part of the libiberty library.
|
||||||
# Libiberty is free software; you can redistribute it and/or
|
# Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
"Keep this file name-space clean" means, talk to drepper@gnu.org
|
"Keep this file name-space clean" means, talk to drepper@gnu.org
|
||||||
before changing it!
|
before changing it!
|
||||||
|
|
||||||
Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
|
Copyright (C) 1987-2017 Free Software Foundation, Inc.
|
||||||
1996, 1997, 1998, 2005 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
NOTE: This source is derived from an old version taken from the GNU C
|
NOTE: This source is derived from an old version taken from the GNU C
|
||||||
Library (glibc).
|
Library (glibc).
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* getopt_long and getopt_long_only entry points for GNU getopt.
|
/* 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
|
Copyright (C) 1987-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
NOTE: This source is derived from an old version taken from the GNU C
|
NOTE: This source is derived from an old version taken from the GNU C
|
||||||
Library (glibc).
|
Library (glibc).
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Return time used so far, in microseconds.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* An expandable hash tables datatype.
|
/* An expandable hash tables datatype.
|
||||||
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
|
Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
Contributed by Vladimir Makarov (vmakarov@cygnus.com).
|
Contributed by Vladimir Makarov (vmakarov@cygnus.com).
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Hex character manipulation support.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Libiberty basename. Like basename, but is not overridden by the
|
/* Libiberty basename. Like basename, but is not overridden by the
|
||||||
system C library.
|
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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
@ifinfo
|
@ifinfo
|
||||||
This manual describes the GNU @libib library of utility subroutines.
|
This manual describes the GNU @libib library of utility subroutines.
|
||||||
|
|
||||||
Copyright @copyright{} 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
Copyright @copyright{} 2001-2017 Free Software Foundation, Inc.
|
||||||
2009, 2010 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
Permission is granted to copy, distribute and/or modify this document
|
Permission is granted to copy, distribute and/or modify this document
|
||||||
under the terms of the GNU Free Documentation License, Version 1.3
|
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
|
@vskip 0pt plus 1filll
|
||||||
Copyright @copyright{} 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
Copyright @copyright{} 2001-2017 Free Software Foundation, Inc.
|
||||||
2009, 2010 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
Permission is granted to copy, distribute and/or modify this document
|
Permission is granted to copy, distribute and/or modify this document
|
||||||
under the terms of the GNU Free Documentation License, Version 1.3
|
under the terms of the GNU Free Documentation License, Version 1.3
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* Libiberty realpath. Like realpath, but more consistent behavior.
|
/* Libiberty realpath. Like realpath, but more consistent behavior.
|
||||||
Based on gdb_realpath from GDB.
|
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.
|
This file is part of the libiberty library.
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
# -*- perl -*-
|
# -*- perl -*-
|
||||||
|
|
||||||
# Copyright (C) 2001, 2007, 2010, 2014
|
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
||||||
# Free Software Foundation
|
|
||||||
#
|
#
|
||||||
# This file is part of the libiberty library.
|
# This file is part of the libiberty library.
|
||||||
# Libiberty is free software; you can redistribute it and/or
|
# Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* Relative (relocatable) prefix support.
|
/* Relative (relocatable) prefix support.
|
||||||
Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
|
Copyright (C) 1987-2017 Free Software Foundation, Inc.
|
||||||
1999, 2000, 2001, 2002, 2006, 2012 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of libiberty.
|
This file is part of libiberty.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* Utility to pick a temporary filename prefix.
|
/* Utility to pick a temporary filename prefix.
|
||||||
Copyright (C) 1996, 1997, 1998, 2001, 2009, 2010
|
Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* md5.c - Functions to compute MD5 message digest of files or memory blocks
|
/* 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.
|
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
|
NOTE: This source is derived from an old version taken from the GNU C
|
||||||
Library (glibc).
|
Library (glibc).
|
||||||
|
|
|
@ -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 file is part of the GNU C Library.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement the mempcpy function.
|
/* 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>.
|
Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -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.
|
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
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* objalloc.c -- routines to allocate memory for objects
|
/* 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.
|
Written by Ian Lance Taylor, Cygnus Solutions.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* obstack.c - subroutines used implicitly by object stack macros
|
/* 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.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* List implementation of a partition of consecutive integers.
|
/* 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.
|
Contributed by CodeSourcery, LLC.
|
||||||
|
|
||||||
This file is part of GNU CC.
|
This file is part of GNU CC.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Common code for executing a program in a sub-process.
|
/* 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>.
|
Written by Ian Lance Taylor <ian@airs.com>.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
||||||
with other subprocesses), and wait for it. Shared logic.
|
with other subprocesses), and wait for it. Shared logic.
|
||||||
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
|
Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
||||||
with other subprocesses), and wait for it. DJGPP specialization.
|
with other subprocesses), and wait for it. DJGPP specialization.
|
||||||
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005
|
Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
||||||
with other subprocesses), and wait for it. Generic MSDOS specialization.
|
with other subprocesses), and wait for it. Generic MSDOS specialization.
|
||||||
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005
|
Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Execute a program and wait for a result.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
||||||
with other subprocesses), and wait for it. Generic Unix version
|
with other subprocesses), and wait for it. Generic Unix version
|
||||||
(also used for UWIN and VMS).
|
(also used for UWIN and VMS).
|
||||||
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2009,
|
Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||||
2010, 2015 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
||||||
with other subprocesses), and wait for it. Generic Win32 specialization.
|
with other subprocesses), and wait for it. Generic Win32 specialization.
|
||||||
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
|
Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
/* Utilities to execute a program in a subprocess (possibly linked by pipes
|
||||||
with other subprocesses), and wait for it.
|
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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Calculate the size of physical memory.
|
/* 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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -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.
|
This file based on putenv.c in the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
(Implements POSIX draft P1003.2/D11.2, except for some of the
|
(Implements POSIX draft P1003.2/D11.2, except for some of the
|
||||||
internationalization features.)
|
internationalization features.)
|
||||||
|
|
||||||
Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
|
Copyright (C) 1993-2017 Free Software Foundation, Inc.
|
||||||
2002, 2005, 2010, 2013 Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Demangler for the Rust programming language
|
/* 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).
|
Written by David Tolnay (dtolnay@gmail.com).
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* <ctype.h> replacement macros.
|
/* <ctype.h> replacement macros.
|
||||||
|
|
||||||
Copyright (C) 2000, 2001, 2002, 2003, 2004,
|
Copyright (C) 2000-2017 Free Software Foundation, Inc.
|
||||||
2005 Free Software Foundation, Inc.
|
|
||||||
Contributed by Zack Weinberg <zackw@stanford.edu>.
|
Contributed by Zack Weinberg <zackw@stanford.edu>.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/* Copyright (C) 1992, 1995, 1996, 1997, 2002, 2011, 2015
|
/* Copyright (C) 1992-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
This file based on setenv.c in the GNU C Library.
|
This file based on setenv.c in the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Set the title of a process.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
/* sha1.c - Functions to compute SHA1 message digest of files or
|
/* sha1.c - Functions to compute SHA1 message digest of files or
|
||||||
memory blocks according to the NIST specification FIPS-180-1.
|
memory blocks according to the NIST specification FIPS-180-1.
|
||||||
|
|
||||||
Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free Software
|
Copyright (C) 2000-2017 Free Software Foundation, Inc.
|
||||||
Foundation, Inc.
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it
|
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
|
under the terms of the GNU General Public License as published by the
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* simple-object-coff.c -- routines to manipulate COFF object files.
|
/* 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.
|
Written by Ian Lance Taylor, Google.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* simple-object-common.h -- common structs for object file manipulation.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* simple-object-elf.c -- routines to manipulate ELF object files.
|
/* 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.
|
Written by Ian Lance Taylor, Google.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* simple-object-mach-o.c -- routines to manipulate Mach-O object files.
|
/* 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.
|
Written by Ian Lance Taylor, Google.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* simple-object-coff.c -- routines to manipulate XCOFF object files.
|
/* 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.
|
Written by Ian Lance Taylor, Google and David Edelsohn, IBM.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* simple-object.c -- simple routines to read and write object files.
|
/* 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.
|
Written by Ian Lance Taylor, Google.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it
|
This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement the snprintf function.
|
/* 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>.
|
Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
|
||||||
|
|
||||||
This file is part of the libiberty library. This library is free
|
This file is part of the libiberty library. This library is free
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Sorting algorithms.
|
/* Sorting algorithms.
|
||||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
Copyright (C) 2000-2017 Free Software Foundation, Inc.
|
||||||
Contributed by Mark Mitchell <mark@codesourcery.com>.
|
Contributed by Mark Mitchell <mark@codesourcery.com>.
|
||||||
|
|
||||||
This file is part of GNU CC.
|
This file is part of GNU CC.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Allocate memory region filled with spaces.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* A splay-tree datatype.
|
/* A splay-tree datatype.
|
||||||
Copyright (C) 1998, 1999, 2000, 2001, 2009,
|
Copyright (C) 1998-2017 Free Software Foundation, Inc.
|
||||||
2010, 2011 Free Software Foundation, Inc.
|
|
||||||
Contributed by Mark Mitchell (mark@markmitchell.com).
|
Contributed by Mark Mitchell (mark@markmitchell.com).
|
||||||
|
|
||||||
This file is part of GNU CC.
|
This file is part of GNU CC.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Increase stack size limit if possible.
|
/* 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
|
This file is part of the libiberty library. This library is free
|
||||||
software; you can redistribute it and/or modify it under the
|
software; you can redistribute it and/or modify it under the
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement the stpcpy function.
|
/* 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>.
|
Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement the stpncpy function.
|
/* 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>.
|
Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement the strndup function.
|
/* 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>.
|
Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
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 "ansidecl.h"
|
||||||
#include <stddef.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 malloc (size_t);
|
||||||
extern PTR memcpy (PTR, const PTR, size_t);
|
extern PTR memcpy (PTR, const PTR, size_t);
|
||||||
|
|
||||||
|
@ -41,10 +41,7 @@ char *
|
||||||
strndup (const char *s, size_t n)
|
strndup (const char *s, size_t n)
|
||||||
{
|
{
|
||||||
char *result;
|
char *result;
|
||||||
size_t len = strlen (s);
|
size_t len = strnlen (s, n);
|
||||||
|
|
||||||
if (n < len)
|
|
||||||
len = n;
|
|
||||||
|
|
||||||
result = (char *) malloc (len + 1);
|
result = (char *) malloc (len + 1);
|
||||||
if (!result)
|
if (!result)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implementation of strtod for systems with atof.
|
/* 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
|
This file is part of the libiberty library. This library is free
|
||||||
software; you can redistribute it and/or modify it under the
|
software; you can redistribute it and/or modify it under the
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Compare strings while treating digits characters numerically.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Contributed by Jean-François Bignolles <bignolle@ecoledoc.ibp.fr>, 1997.
|
Contributed by Jean-François Bignolles <bignolle@ecoledoc.ibp.fr>, 1997.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#
|
#
|
||||||
# Makefile
|
# Makefile
|
||||||
# Copyright (C) 1999, 2002, 2006
|
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
||||||
# Free Software Foundation
|
|
||||||
#
|
#
|
||||||
# This file is part of the libiberty library.
|
# This file is part of the libiberty library.
|
||||||
# Libiberty is free software; you can redistribute it and/or
|
# Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -4200,6 +4200,9 @@ decltype (new auto({parm#1})) f<int>(int)
|
||||||
_Z1fIiERDaRKT_S1_
|
_Z1fIiERDaRKT_S1_
|
||||||
auto& f<int>(int const&, int)
|
auto& f<int>(int const&, int)
|
||||||
--format=gnu-v3
|
--format=gnu-v3
|
||||||
|
_Z1gIiEDcRKT_S0_
|
||||||
|
decltype(auto) g<int>(int const&, int)
|
||||||
|
--format=gnu-v3
|
||||||
_Z1gILi1EEvR1AIXT_EER1BIXscbT_EE
|
_Z1gILi1EEvR1AIXT_EER1BIXscbT_EE
|
||||||
void g<1>(A<1>&, B<static_cast<bool>(1)>&)
|
void g<1>(A<1>&, B<static_cast<bool>(1)>&)
|
||||||
--format=gnu-v3
|
--format=gnu-v3
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Demangler fuzzer.
|
/* Demangler fuzzer.
|
||||||
|
|
||||||
Copyright (C) 2014 Free Software Foundation, Inc.
|
Copyright (C) 2014-2017 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU libiberty.
|
This file is part of GNU libiberty.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Demangler test program,
|
/* 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
|
Written by Zack Weinberg <zack@codesourcery.com
|
||||||
|
|
||||||
This file is part of GNU libiberty.
|
This file is part of GNU libiberty.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* expandargv test program,
|
/* 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>
|
Written by Carlos O'Donell <carlos@codesourcery.com>
|
||||||
|
|
||||||
This file is part of the libiberty library, which is part of GCC.
|
This file is part of the libiberty library, which is part of GCC.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Pexecute test program,
|
/* 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>.
|
Written by Ian Lance Taylor <ian@airs.com>.
|
||||||
|
|
||||||
This file is part of GNU libiberty.
|
This file is part of GNU libiberty.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Test program for strtol family of funtions,
|
/* 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>
|
Written by Yury Gribov <y.gribov@samsung.com>
|
||||||
|
|
||||||
This file is part of the libiberty library, which is part of GCC.
|
This file is part of the libiberty library, which is part of GCC.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Basic struct timeval utilities.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* unlink-if-ordinary.c - remove link to a file unless it is special
|
/* 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
|
This file is part of the libiberty library. This library is free
|
||||||
software; you can redistribute it and/or modify it under the
|
software; you can redistribute it and/or modify it under the
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Like vsprintf but provides a pointer to malloc'd storage, which must
|
/* Like vsprintf but provides a pointer to malloc'd storage, which must
|
||||||
be freed by the caller.
|
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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Provide a version vfprintf in terms of _doprnt.
|
/* Provide a version vfprintf in terms of _doprnt.
|
||||||
By Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98
|
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"
|
#include "ansidecl.h"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Estimate the length of the string generated by a vprintf-like
|
/* Estimate the length of the string generated by a vprintf-like
|
||||||
function. Used by vasprintf and xvasprintf.
|
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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Estimate the length of the string generated by a vprintf-like
|
/* Estimate the length of the string generated by a vprintf-like
|
||||||
function. Use by vasprintf and xvasprintf.
|
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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement the vsnprintf function.
|
/* 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>.
|
Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
|
||||||
|
|
||||||
This file is part of the libiberty library. This library is free
|
This file is part of the libiberty library. This library is free
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
implementations of stdio; newer ones should already have vsprintf.
|
implementations of stdio; newer ones should already have vsprintf.
|
||||||
Written by Per Bothner of Cygnus Support.
|
Written by Per Bothner of Cygnus Support.
|
||||||
Based on libg++'s "form" (written by Doug Lea; dl@rocky.oswego.edu).
|
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
|
This file is part of the libiberty library. This library is free
|
||||||
software; you can redistribute it and/or modify it under the
|
software; you can redistribute it and/or modify it under the
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement the xasprintf function.
|
/* Implement the xasprintf function.
|
||||||
Copyright (C) 2014 Free Software Foundation, Inc.
|
Copyright (C) 2014-2017 Free Software Foundation, Inc.
|
||||||
Contributed by Manuel Lopez-Ibanez.
|
Contributed by Manuel Lopez-Ibanez.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* xexit.c -- Run any exit handlers, then exit.
|
/* 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.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* memory allocation routines with error checking.
|
/* memory allocation routines with error checking.
|
||||||
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 2015
|
Copyright (C) 1989-2017 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
Libiberty is free software; you can redistribute it and/or
|
Libiberty is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement the xstrndup function.
|
/* 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>.
|
Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
@ -48,10 +48,7 @@ char *
|
||||||
xstrndup (const char *s, size_t n)
|
xstrndup (const char *s, size_t n)
|
||||||
{
|
{
|
||||||
char *result;
|
char *result;
|
||||||
size_t len = strlen (s);
|
size_t len = strnlen (s, n);
|
||||||
|
|
||||||
if (n < len)
|
|
||||||
len = n;
|
|
||||||
|
|
||||||
result = XNEWVEC (char, len + 1);
|
result = XNEWVEC (char, len + 1);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Implement the xvasprintf function.
|
/* Implement the xvasprintf function.
|
||||||
Copyright (C) 2014 Free Software Foundation, Inc.
|
Copyright (C) 2014-2017 Free Software Foundation, Inc.
|
||||||
Contributed by Manuel Lopez-Ibanez.
|
Contributed by Manuel Lopez-Ibanez.
|
||||||
|
|
||||||
This file is part of the libiberty library.
|
This file is part of the libiberty library.
|
||||||
|
|
Loading…
Reference in New Issue