Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ben Elliston <bje@au1.ibm.com>
To: gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org,
	        binutils@sourceware.org
Cc: dj@redhat.com, ian@airs.com, dberlin@dberlin.org
Subject: PATCH: remove libiberty/ternary.c et al
Date: Wed, 25 Jul 2007 01:40:00 -0000	[thread overview]
Message-ID: <1185324590.19345.28.camel@localhost> (raw)

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/$@; \



             reply	other threads:[~2007-07-25  0:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-25  1:40 Ben Elliston [this message]
2007-07-25  2:00 ` DJ Delorie
2007-07-25  2:08   ` Ben Elliston
2007-07-25  3:58     ` DJ Delorie
2007-07-25  5:21       ` Daniel Berlin
2007-07-25  6:39       ` Ian Lance Taylor
2007-07-25 15:25         ` Ben Elliston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1185324590.19345.28.camel@localhost \
    --to=bje@au1.ibm.com \
    --cc=binutils@sourceware.org \
    --cc=dberlin@dberlin.org \
    --cc=dj@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=ian@airs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox