aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include
diff options
context:
space:
mode:
authorPiotr H. Dabrowski <phd@phd.re>2020-11-13 12:27:16 -0500
committerJeff Law <law@torsion.usersys.redhat.com>2020-11-13 12:28:33 -0500
commit6f1ae1ecd351348eb33b515c5e23778651bee028 (patch)
tree78b8d2ec786a7f7dc59919238643cc01b08ff1a9 /libcpp/include
parente7e0eeeb6e6707be2a6c6da49d4b6be3199e2af8 (diff)
downloadgcc-6f1ae1ecd351348eb33b515c5e23778651bee028.zip
gcc-6f1ae1ecd351348eb33b515c5e23778651bee028.tar.gz
gcc-6f1ae1ecd351348eb33b515c5e23778651bee028.tar.bz2
Do not warn about unused macros while processing #pragma GCC optimize
libcpp PR c++/91318 * include/cpplib.h: Added cpp_define_unused(), cpp_define_formatted_unused() * directives.c: Likewise. gcc/c-family PR c++/91318 * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
Diffstat (limited to 'libcpp/include')
-rw-r--r--libcpp/include/cpplib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index 8900e77..ce00952 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -1076,8 +1076,12 @@ extern cppchar_t cpp_host_to_exec_charset (cpp_reader *, cppchar_t);
/* Used to register macros and assertions, perhaps from the command line.
The text is the same as the command line argument. */
extern void cpp_define (cpp_reader *, const char *);
+extern void cpp_define_unused (cpp_reader *, const char *);
extern void cpp_define_formatted (cpp_reader *pfile,
const char *fmt, ...) ATTRIBUTE_PRINTF_2;
+extern void cpp_define_formatted_unused (cpp_reader *pfile,
+ const char *fmt,
+ ...) ATTRIBUTE_PRINTF_2;
extern void cpp_assert (cpp_reader *, const char *);
extern void cpp_undef (cpp_reader *, const char *);
extern void cpp_unassert (cpp_reader *, const char *);