public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-modules] Remove unneeded fn
@ 2020-11-03 14:40 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2020-11-03 14:40 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b269b6ce4593768b2c37de9af4dbeebab60af520
commit b269b6ce4593768b2c37de9af4dbeebab60af520
Author: Nathan Sidwell <nathan@acm.org>
Date: Mon Nov 2 10:36:15 2020 -0800
Remove unneeded fn
libcpp/
* include/cpplib.h (cpp_enable_filename_token): Delete.
* macro.c (cpp_enable_filename_token): Delete.
Diff:
---
ChangeLog.modules | 4 ++++
libcpp/include/cpplib.h | 1 -
libcpp/macro.c | 6 ------
3 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/ChangeLog.modules b/ChangeLog.modules
index 4430110df2f..8ec8c85e04b 100644
--- a/ChangeLog.modules
+++ b/ChangeLog.modules
@@ -1,5 +1,9 @@
2020-11-02 Nathan Sidwell <nathan@acm.org>
+ libcpp/
+ * include/cpplib.h (cpp_enable_filename_token): Delete.
+ * macro.c (cpp_enable_filename_token): Delete.
+
Merge trunk b2a31e2c341
gcc/cp/
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index fca58a5f9ee..81be6457951 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -1054,7 +1054,6 @@ extern int cpp_avoid_paste (cpp_reader *, const cpp_token *,
extern const cpp_token *cpp_get_token (cpp_reader *);
extern const cpp_token *cpp_get_token_with_location (cpp_reader *,
location_t *);
-extern void cpp_enable_filename_token (cpp_reader *, bool);
inline bool cpp_user_macro_p (const cpp_hashnode *node)
{
return node->type == NT_USER_MACRO;
diff --git a/libcpp/macro.c b/libcpp/macro.c
index d1694a934a7..f5f280dfdc7 100644
--- a/libcpp/macro.c
+++ b/libcpp/macro.c
@@ -3075,12 +3075,6 @@ cpp_get_token_with_location (cpp_reader *pfile, location_t *loc)
return cpp_get_token_1 (pfile, loc);
}
-void
-cpp_enable_filename_token (cpp_reader *pfile, bool enable)
-{
- pfile->state.angled_headers += enable ? +1 : -1;
-}
-
/* Returns true if we're expanding an object-like macro that was
defined in a system header. Just checks the macro at the top of
the stack. Used for diagnostic suppression. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-03 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 14:40 [gcc/devel/c++-modules] Remove unneeded fn Nathan Sidwell
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).