Makefile.in: Remove references to cppulp.{c,o}.
authorNeil Booth <neilb@earthling.net>
Thu, 7 Sep 2000 20:31:06 +0000 (20:31 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Thu, 7 Sep 2000 20:31:06 +0000 (20:31 +0000)
* Makefile.in: Remove references to cppulp.{c,o}.
* cppinit.c (initialize_builtins, cpp_start_read,
cpp_handle_option): Update to use cpp_options structure.
* cppulp.c: Remove.

From-SVN: r36245

gcc/ChangeLog
gcc/Makefile.in
gcc/cppinit.c
gcc/cppulp.c [deleted file]

index 20a9fff06ee0ae71010f0e93eb39d591005a2279..ddc9abf920f80b2e541c4c31cecd527f4ad5d69c 100644 (file)
@@ -1,3 +1,10 @@
+Thu 07-Sep-2000 21:29:00 BST  Neil Booth  <NeilB@earthling.net>
+
+       * Makefile.in: Remove references to cppulp.{c,o}.
+       * cppinit.c (initialize_builtins, cpp_start_read,
+       cpp_handle_option): Update to use cpp_options structure.
+       * cppulp.c: Remove.
+
 2000-09-07  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * c-common.c (time_char_table): Allow %#b and %#h.
index 7bc2797d9e3d7b4177ff7e4ed499e36b73cac0c4..fd51627648b663fd5bce8c48e25d44a802522794 100644 (file)
@@ -1789,7 +1789,7 @@ PREPROCESSOR_DEFINES = \
   -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\"
 
 LIBCPP_OBJS =  cpplib.o cpplex.o cppmacro.o cppexp.o cppfiles.o \
-               cpphash.o cpperror.o cppinit.o cppulp.o cppdefault.o \
+               cpphash.o cpperror.o cppinit.o cppdefault.o \
                mkdeps.o prefix.o version.o mbchar.o @extra_cpp_objs@
 
 LIBCPP_DEPS =  cpplib.h cpphash.h intl.h system.h
@@ -1807,7 +1807,6 @@ cpp0$(exeext): cppmain.o intl.o libcpp.a $(LIBDEPS)
 
 cppmain.o:  cppmain.c  $(CONFIG_H) cpplib.h intl.h system.h
 
-cppulp.o:   cppulp.c   $(CONFIG_H) system.h output.h
 cpperror.o: cpperror.c $(CONFIG_H) $(LIBCPP_DEPS)
 cppexp.o:   cppexp.c   $(CONFIG_H) $(LIBCPP_DEPS)
 cpplex.o:   cpplex.c   $(CONFIG_H) $(LIBCPP_DEPS)
index fbccfc358ed24bff5cccbb325705e448d3767154..f8dc69000ee5c7e9e7e069f1c0717a8728e6ec8a 100644 (file)
@@ -598,6 +598,7 @@ initialize_builtins (pfile)
      cpp_reader *pfile;
 {
   const struct builtin *b;
+
   for(b = builtin_array; b < builtin_array_end; b++)
     {
       if (b->flags & CPLUS && ! CPP_OPTION (pfile, cplusplus))
@@ -617,7 +618,7 @@ initialize_builtins (pfile)
          else
            {
              if (b->flags & ULP)
-               val = user_label_prefix;
+               val = CPP_OPTION (pfile, user_label_prefix);
              else
                val = b->value;
 
@@ -825,8 +826,8 @@ cpp_start_read (pfile, print, fname)
     CPP_OPTION (pfile, warn_paste) = 0;
 
   /* Set this if it hasn't been set already. */
-  if (user_label_prefix == NULL)
-    user_label_prefix = USER_LABEL_PREFIX;
+  if (CPP_OPTION (pfile, user_label_prefix) == NULL)
+    CPP_OPTION (pfile, user_label_prefix) = USER_LABEL_PREFIX;
 
   /* Figure out if we need to save function macro parameter spellings.
      We don't use CPP_PEDANTIC() here because that depends on whether
@@ -1224,10 +1225,10 @@ cpp_handle_option (pfile, argc, argv)
        case N_OPTS: /* shut GCC up */
          break;
        case OPT_fleading_underscore:
-         user_label_prefix = "_";
+         CPP_OPTION (pfile, user_label_prefix) = "_";
          break;
        case OPT_fno_leading_underscore:
-         user_label_prefix = "";
+         CPP_OPTION (pfile, user_label_prefix) = "";
          break;
        case OPT_fpreprocessed:
          CPP_OPTION (pfile, preprocessed) = 1;
diff --git a/gcc/cppulp.c b/gcc/cppulp.c
deleted file mode 100644 (file)
index c419f4a..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/* CPP Library.
-   Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999 Free Software Foundation, Inc.
-   Contributed by Per Bothner, 1994-95.
-   Based on CCCP program by Paul Rubin, June 1986
-   Adapted to ANSI C, Richard Stallman, Jan 1987
-
-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
-Free Software Foundation; either version 2, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
-
-#include "config.h"
-#include "system.h"
-
-#include "output.h"
-
-const char *user_label_prefix = 0;