* PATCH: remove libiberty/ternary.c et al
@ 2007-07-25 1:40 Ben Elliston
2007-07-25 2:02 ` DJ Delorie
0 siblings, 1 reply; 7+ messages in thread
From: Ben Elliston @ 2007-07-25 1:40 UTC (permalink / raw)
To: gcc-patches, gdb-patches, binutils; +Cc: dj, ian, dberlin
Daniel Berlin has confirmed that libiberty/ternary.c was committed with
plans to use it in GDB, but that this never eventuated. The following
patch removes that file, its header, and stops building it into
libiberty.
While I was at it, I made a few cosmetic improvements to the comments in
libiberty/Makefile.in.
Okay for the trunk?
Ben
libiberty/ChangeLog
2007-07-25 Ben Elliston <bje@au.ibm.com>
* Makefile.in (CFILES): Remove ternary.c.
(REQUIRED_OFILES): Remove ./ternary.o.
(INSTALLED_HEADERS): Remove ternary.h.
(ternary.o): Remove.
* ternary.c: Remove.
include/ChangeLog
2007-07-25 Ben Elliston <bje@au.ibm.com>
* ternary.h: Remove.
Index: libiberty/Makefile.in
===================================================================
--- libiberty/Makefile.in (revision 126890)
+++ libiberty/Makefile.in (working copy)
@@ -1,7 +1,9 @@
+# Makefile for the libiberty library.
+# Originally written by K. Richard Pixley <rich@cygnus.com>.
#
-# Makefile
-# Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
-# Free Software Foundation
+# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
+# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+# Foundation
#
# This file is part of the libiberty library.
# Libiberty is free software; you can redistribute it and/or
@@ -18,13 +20,6 @@
# License along with libiberty; see the file COPYING.LIB. If not,
# write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
# Boston, MA 02110-1301, USA.
-#
-
-# This file was written by K. Richard Pixley <rich@cygnus.com>.
-
-#
-# Makefile for libiberty directory
-#
libiberty_topdir = @libiberty_topdir@
srcdir = @srcdir@
@@ -152,7 +147,7 @@ CFILES = alloca.c argv.c asprintf.c atex
splay-tree.c stpcpy.c stpncpy.c strcasecmp.c strchr.c strdup.c \
strerror.c strncasecmp.c strncmp.c strrchr.c strsignal.c \
strstr.c strtod.c strtol.c strtoul.c strndup.c strverscmp.c \
- ternary.c tmpnam.c \
+ tmpnam.c \
unlink-if-ordinary.c \
vasprintf.c vfork.c vfprintf.c vprintf.c vsnprintf.c vsprintf.c \
waitpid.c \
@@ -176,7 +171,6 @@ REQUIRED_OFILES = ./regex.o ./cplus-dem.
./pex-common.o ./pex-one.o @pexecute@ \
./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o \
./strsignal.o \
- ./ternary.o \
./unlink-if-ordinary.o \
./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o \
./xstrerror.o ./xstrndup.o
@@ -219,8 +213,7 @@ INSTALLED_HEADERS =
$(INCDIR)/partition.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/sort.h \
- $(INCDIR)/splay-tree.h \
- $(INCDIR)/ternary.h
+ $(INCDIR)/splay-tree.h
$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
-rm -f $(TARGETLIB) pic/$(TARGETLIB)
@@ -1083,13 +1076,6 @@ $(CONFIGURED_OFILES): stamp-picdir
else true; fi
$(COMPILE.c) $(srcdir)/strverscmp.c $(OUTPUT_OPTION)
-./ternary.o: $(srcdir)/ternary.c stamp-h $(INCDIR)/ansidecl.h \
- $(INCDIR)/libiberty.h $(INCDIR)/ternary.h
- if [ x"$(PICFLAG)" != x ]; then \
- $(COMPILE.c) $(PICFLAG) $(srcdir)/ternary.c -o pic/$@; \
- else true; fi
- $(COMPILE.c) $(srcdir)/ternary.c $(OUTPUT_OPTION)
-
./tmpnam.o: $(srcdir)/tmpnam.c
if [ x"$(PICFLAG)" != x ]; then \
$(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PATCH: remove libiberty/ternary.c et al
2007-07-25 1:40 PATCH: remove libiberty/ternary.c et al Ben Elliston
@ 2007-07-25 2:02 ` DJ Delorie
2007-07-25 2:08 ` Ben Elliston
0 siblings, 1 reply; 7+ messages in thread
From: DJ Delorie @ 2007-07-25 2:02 UTC (permalink / raw)
To: bje; +Cc: gcc-patches, gdb-patches, binutils, ian, dberlin
It's been sitting there for six years, and I'm not a fan of making new
libiberty versions not backward compatible. Are there any other
reasons to remove it besides "it's there" ?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PATCH: remove libiberty/ternary.c et al
2007-07-25 2:02 ` DJ Delorie
@ 2007-07-25 2:08 ` Ben Elliston
2007-07-25 4:01 ` DJ Delorie
0 siblings, 1 reply; 7+ messages in thread
From: Ben Elliston @ 2007-07-25 2:08 UTC (permalink / raw)
To: DJ Delorie; +Cc: gcc-patches, gdb-patches, binutils, ian, dberlin
On Tue, 2007-07-24 at 21:40 -0400, DJ Delorie wrote:
> It's been sitting there for six years, and I'm not a fan of making new
> libiberty versions not backward compatible. Are there any other
> reasons to remove it besides "it's there" ?
Only the burden of maintaining it.
There is only a backward compatibility problem if there is a client of
these routines and we have no reason to believe there is.
Ben
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PATCH: remove libiberty/ternary.c et al
2007-07-25 2:08 ` Ben Elliston
@ 2007-07-25 4:01 ` DJ Delorie
2007-07-25 5:21 ` Daniel Berlin
2007-07-25 6:54 ` Ian Lance Taylor
0 siblings, 2 replies; 7+ messages in thread
From: DJ Delorie @ 2007-07-25 4:01 UTC (permalink / raw)
To: bje; +Cc: gcc-patches, gdb-patches, binutils, ian, dberlin
Well, I can't think of any other reasons to not remove it. Ian?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PATCH: remove libiberty/ternary.c et al
2007-07-25 4:01 ` DJ Delorie
@ 2007-07-25 5:21 ` Daniel Berlin
2007-07-25 6:54 ` Ian Lance Taylor
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Berlin @ 2007-07-25 5:21 UTC (permalink / raw)
To: DJ Delorie; +Cc: bje, gcc-patches, gdb-patches, binutils, ian
The patches that used it were never committed into gdb mainline, and
they were the only client, so it's most certainly dead.
On 7/24/07, DJ Delorie <dj@redhat.com> wrote:
>
> Well, I can't think of any other reasons to not remove it. Ian?
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PATCH: remove libiberty/ternary.c et al
2007-07-25 4:01 ` DJ Delorie
2007-07-25 5:21 ` Daniel Berlin
@ 2007-07-25 6:54 ` Ian Lance Taylor
2007-07-25 8:29 ` Ben Elliston
1 sibling, 1 reply; 7+ messages in thread
From: Ian Lance Taylor @ 2007-07-25 6:54 UTC (permalink / raw)
To: DJ Delorie; +Cc: bje, gcc-patches, gdb-patches, binutils, dberlin
DJ Delorie <dj@redhat.com> writes:
> Well, I can't think of any other reasons to not remove it. Ian?
I'm OK with removing it.
Ian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PATCH: remove libiberty/ternary.c et al
2007-07-25 6:54 ` Ian Lance Taylor
@ 2007-07-25 8:29 ` Ben Elliston
0 siblings, 0 replies; 7+ messages in thread
From: Ben Elliston @ 2007-07-25 8:29 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: DJ Delorie, gcc-patches, gdb-patches, binutils, dberlin
On Tue, 2007-07-24 at 22:21 -0700, Ian Lance Taylor wrote:
> I'm OK with removing it.
Committed, thanks.
Ben
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-07-25 6:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-25 1:40 PATCH: remove libiberty/ternary.c et al Ben Elliston
2007-07-25 2:02 ` DJ Delorie
2007-07-25 2:08 ` Ben Elliston
2007-07-25 4:01 ` DJ Delorie
2007-07-25 5:21 ` Daniel Berlin
2007-07-25 6:54 ` Ian Lance Taylor
2007-07-25 8:29 ` Ben Elliston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).