mirror of git://gcc.gnu.org/git/gcc.git
[PATCH] Kill cpp-id-data.h
https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01149.html libcpp/ * Makefile.in (TAGS_SOURCES): Remove cpp-id-data.h. * include/cpp-id-data.h: Delete. * internal.h: Include cpplib.h not cpp-id-data.h. gcc/ * Makefile.in (CPP_ID_DATA_H): Delete. (CPP_INTERNAL_H): Don't add it. (GTFILES): Replace CPP_ID_DATA_H with CPPLIB_H. * gengtype.c (open_base_files): Replace cpp-id-data.h with cpplib.h From-SVN: r263663
This commit is contained in:
parent
4864297f78
commit
abcd1775e0
|
|
@ -1,3 +1,10 @@
|
||||||
|
2018-08-20 Nathan Sidwell <nathan@acm.org>
|
||||||
|
|
||||||
|
* Makefile.in (CPP_ID_DATA_H): Delete.
|
||||||
|
(CPP_INTERNAL_H): Don't add it.
|
||||||
|
(GTFILES): Replace CPP_ID_DATA_H with CPPLIB_H.
|
||||||
|
* gengtype.c (open_base_files): Replace cpp-id-data.h with cpplib.h
|
||||||
|
|
||||||
2018-08-20 Richard Biener <rguenther@suse.de>
|
2018-08-20 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/78655
|
PR tree-optimization/78655
|
||||||
|
|
|
||||||
|
|
@ -978,8 +978,7 @@ CPPLIB_H = $(srcdir)/../libcpp/include/line-map.h \
|
||||||
INPUT_H = $(srcdir)/../libcpp/include/line-map.h input.h
|
INPUT_H = $(srcdir)/../libcpp/include/line-map.h input.h
|
||||||
OPTS_H = $(INPUT_H) $(VEC_H) opts.h $(OBSTACK_H)
|
OPTS_H = $(INPUT_H) $(VEC_H) opts.h $(OBSTACK_H)
|
||||||
SYMTAB_H = $(srcdir)/../libcpp/include/symtab.h $(OBSTACK_H)
|
SYMTAB_H = $(srcdir)/../libcpp/include/symtab.h $(OBSTACK_H)
|
||||||
CPP_ID_DATA_H = $(CPPLIB_H) $(srcdir)/../libcpp/include/cpp-id-data.h
|
CPP_INTERNAL_H = $(srcdir)/../libcpp/internal.h
|
||||||
CPP_INTERNAL_H = $(srcdir)/../libcpp/internal.h $(CPP_ID_DATA_H)
|
|
||||||
TREE_DUMP_H = tree-dump.h $(SPLAY_TREE_H) $(DUMPFILE_H)
|
TREE_DUMP_H = tree-dump.h $(SPLAY_TREE_H) $(DUMPFILE_H)
|
||||||
TREE_PASS_H = tree-pass.h $(TIMEVAR_H) $(DUMPFILE_H)
|
TREE_PASS_H = tree-pass.h $(TIMEVAR_H) $(DUMPFILE_H)
|
||||||
TREE_SSA_H = tree-ssa.h tree-ssa-operands.h \
|
TREE_SSA_H = tree-ssa.h tree-ssa-operands.h \
|
||||||
|
|
@ -2522,7 +2521,7 @@ s-match: build/genmatch$(build_exeext) $(srcdir)/match.pd cfn-operators.pd
|
||||||
generic-match.c
|
generic-match.c
|
||||||
$(STAMP) s-match
|
$(STAMP) s-match
|
||||||
|
|
||||||
GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \
|
GTFILES = $(CPPLIB_H) $(srcdir)/input.h $(srcdir)/coretypes.h \
|
||||||
$(host_xm_file_list) \
|
$(host_xm_file_list) \
|
||||||
$(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \
|
$(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \
|
||||||
$(srcdir)/wide-int.h $(srcdir)/alias.h \
|
$(srcdir)/wide-int.h $(srcdir)/alias.h \
|
||||||
|
|
|
||||||
|
|
@ -1721,7 +1721,7 @@ open_base_files (void)
|
||||||
"tree-vrp.h", "tree-phinodes.h", "ssa-iterators.h", "stringpool.h",
|
"tree-vrp.h", "tree-phinodes.h", "ssa-iterators.h", "stringpool.h",
|
||||||
"tree-ssanames.h", "tree-ssa-loop.h", "tree-ssa-loop-ivopts.h",
|
"tree-ssanames.h", "tree-ssa-loop.h", "tree-ssa-loop-ivopts.h",
|
||||||
"tree-ssa-loop-manip.h", "tree-ssa-loop-niter.h", "tree-into-ssa.h",
|
"tree-ssa-loop-manip.h", "tree-ssa-loop-niter.h", "tree-into-ssa.h",
|
||||||
"tree-dfa.h", "tree-ssa.h", "reload.h", "cpp-id-data.h", "tree-chrec.h",
|
"tree-dfa.h", "tree-ssa.h", "reload.h", "cpplib.h", "tree-chrec.h",
|
||||||
"except.h", "output.h", "cfgloop.h", "target.h", "lto-streamer.h",
|
"except.h", "output.h", "cfgloop.h", "target.h", "lto-streamer.h",
|
||||||
"target-globals.h", "ipa-ref.h", "cgraph.h", "symbol-summary.h",
|
"target-globals.h", "ipa-ref.h", "cgraph.h", "symbol-summary.h",
|
||||||
"ipa-prop.h", "ipa-fnsummary.h", "dwarf2out.h", "omp-offload.h", NULL
|
"ipa-prop.h", "ipa-fnsummary.h", "dwarf2out.h", "omp-offload.h", NULL
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
2018-08-20 Nathan Sidwell <nathan@acm.org>
|
2018-08-20 Nathan Sidwell <nathan@acm.org>
|
||||||
|
|
||||||
|
* Makefile.in (TAGS_SOURCES): Remove cpp-id-data.h.
|
||||||
|
* include/cpp-id-data.h: Delete.
|
||||||
|
* internal.h: Include cpplib.h not cpp-id-data.h.
|
||||||
|
|
||||||
* include/cpp-id-data.h (struct answer): Delete.
|
* include/cpp-id-data.h (struct answer): Delete.
|
||||||
* include/cpplib.h (struct answer): Don't forward-declare.
|
* include/cpplib.h (struct answer): Don't forward-declare.
|
||||||
(enum cpp_macro_kind): Add cmk_assert.
|
(enum cpp_macro_kind): Add cmk_assert.
|
||||||
|
|
|
||||||
|
|
@ -261,9 +261,8 @@ po/$(PACKAGE).pot: $(libcpp_a_SOURCES)
|
||||||
sed 's:$(srcdir)/::g' <po/$(PACKAGE).pot.tmp >po/$(PACKAGE).pot
|
sed 's:$(srcdir)/::g' <po/$(PACKAGE).pot.tmp >po/$(PACKAGE).pot
|
||||||
rm po/$(PACKAGE).pot.tmp
|
rm po/$(PACKAGE).pot.tmp
|
||||||
|
|
||||||
TAGS_SOURCES = $(libcpp_a_SOURCES) internal.h ucnid.h \
|
TAGS_SOURCES = $(libcpp_a_SOURCES) internal.h system.h ucnid.h \
|
||||||
include/line-map.h include/symtab.h include/cpp-id-data.h \
|
include/cpplib.h include/line-map.h include/mkdeps.h include/symtab.h
|
||||||
include/cpplib.h include/mkdeps.h system.h
|
|
||||||
|
|
||||||
TAGS: $(TAGS_SOURCES)
|
TAGS: $(TAGS_SOURCES)
|
||||||
cd $(srcdir) && etags $(TAGS_SOURCES)
|
cd $(srcdir) && etags $(TAGS_SOURCES)
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
/* Structures that hang off cpp_identifier, for PCH.
|
|
||||||
Copyright (C) 1986-2018 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 the
|
|
||||||
Free Software Foundation; either version 3, 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; see the file COPYING3. If not see
|
|
||||||
<http://www.gnu.org/licenses/>. */
|
|
||||||
|
|
||||||
#include "cpplib.h"
|
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ along with this program; see the file COPYING3. If not see
|
||||||
#define LIBCPP_INTERNAL_H
|
#define LIBCPP_INTERNAL_H
|
||||||
|
|
||||||
#include "symtab.h"
|
#include "symtab.h"
|
||||||
#include "cpp-id-data.h"
|
#include "cpplib.h"
|
||||||
|
|
||||||
#if HAVE_ICONV
|
#if HAVE_ICONV
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue