Skip to content

Commit

Permalink
Sync libiberty from gcc
Browse files Browse the repository at this point in the history
Picks up copyright year update and other recent fixes.
  • Loading branch information
amodra committed Jan 4, 2017
1 parent 0913ae5 commit e495212
Show file tree
Hide file tree
Showing 95 changed files with 113 additions and 134 deletions.
6 changes: 5 additions & 1 deletion libiberty/ChangeLog
@@ -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
Expand All @@ -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>

Expand Down
7 changes: 3 additions & 4 deletions libiberty/Makefile.in
@@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion libiberty/_doprnt.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/argv.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/asprintf.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/choose-temp.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/clock.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/concat.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/configure
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/copying-lib.texi
Expand Up @@ -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
Expand Down
11 changes: 7 additions & 4 deletions libiberty/cp-demangle.c
@@ -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.
Expand Down Expand Up @@ -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]);
Expand Down Expand Up @@ -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. */
Expand Down
3 changes: 1 addition & 2 deletions libiberty/cp-demangle.h
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/cp-demint.c
@@ -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.
Expand Down
3 changes: 1 addition & 2 deletions libiberty/cplus-dem.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/crc32.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/d-demangle.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/dwarfnames.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/dyn-string.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/fdmatch.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/fibheap.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/filename_cmp.c
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions libiberty/floatformat.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/fnmatch.c
@@ -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).
Expand Down
2 changes: 1 addition & 1 deletion libiberty/fopen_unlocked.c
@@ -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.
Expand Down
3 changes: 1 addition & 2 deletions libiberty/gather-docs
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions libiberty/getopt.c
Expand Up @@ -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).
Expand Down
3 changes: 1 addition & 2 deletions libiberty/getopt1.c
@@ -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).
Expand Down
2 changes: 1 addition & 1 deletion libiberty/getruntime.c
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions libiberty/hashtab.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/hex.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/lbasename.c
@@ -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
Expand Down
6 changes: 2 additions & 4 deletions libiberty/libiberty.texi
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/lrealpath.c
@@ -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.
Expand Down
3 changes: 1 addition & 2 deletions libiberty/maint-tool
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions libiberty/make-relative-prefix.c
@@ -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.
Expand Down
3 changes: 1 addition & 2 deletions libiberty/make-temp-file.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/md5.c
@@ -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).
Expand Down
2 changes: 1 addition & 1 deletion libiberty/memmem.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/mempcpy.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/mkstemps.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/objalloc.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/obstack.c
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libiberty/partition.c
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libiberty/pex-common.c
@@ -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.
Expand Down
3 changes: 1 addition & 2 deletions libiberty/pex-common.h
@@ -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
Expand Down

0 comments on commit e495212

Please sign in to comment.