diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-11-01 15:46:42 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-11-01 15:46:42 +0000 |
commit | ce12115844ef8f66a28205d1f1e81ea0ccc946b1 (patch) | |
tree | 1dba75c64dce051b6ee0933505d31b39046940fa /libcc1 | |
parent | 4a110e3478460101b4c0d6591d7cdb0b1d3a276b (diff) | |
download | gcc-ce12115844ef8f66a28205d1f1e81ea0ccc946b1.zip gcc-ce12115844ef8f66a28205d1f1e81ea0ccc946b1.tar.gz gcc-ce12115844ef8f66a28205d1f1e81ea0ccc946b1.tar.bz2 |
[C++ PATCH] overloaded operator fns [6/N]
https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00019.html
gcc/cp/
* cp-tree.h (assign_op_identifier, call_op_identifier): Use
compressed code.
(struct lang_decl_fn): Use compressed operator code.
(DECL_OVERLOADED_OPERATOR_CODE): Replace with ...
(DECL_OVERLOADED_OPERATOR_CODE_RAW): ... this.
(DECL_OVERLOADED_OPERATOR_CODE_IS): Use it.
* decl.c (duplicate_decls): Use DECL_OVERLOADED_OPERATOR_CODE_RAW.
(build_library_fn): Likewise.
(grok_op_properties): Likewise.
* mangle.c (write_unqualified_name): Likewise.
* method.c (implicitly_declare_fn): Likewise.
* typeck.c (check_return_expr): Use DECL_OVERLOADED_OPERATOR_IS.
libcc1/
* libcp1plugin.cc (plugin_build_decl): Use
DECL_OVERLOADED_OPERATOR_CODE_RAW.
From-SVN: r254314
Diffstat (limited to 'libcc1')
-rw-r--r-- | libcc1/ChangeLog | 5 | ||||
-rw-r--r-- | libcc1/libcp1plugin.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index 70998bc..2194aa8 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,3 +1,8 @@ +2017-11-01 Nathan Sidwell <nathan@acm.org> + + * libcp1plugin.cc (plugin_build_decl): Use + DECL_OVERLOADED_OPERATOR_CODE_RAW. + 2017-10-31 Nathan Sidwell <nathan@acm.org> * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier. diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index d83521e..0307213 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -1412,7 +1412,7 @@ plugin_build_decl (cc1_plugin::connection *self, DECL_CXX_DESTRUCTOR_P (decl) = 1; else if ((sym_flags & GCC_CP_FLAG_SPECIAL_FUNCTION) && opcode != ERROR_MARK) - DECL_OVERLOADED_OPERATOR_CODE (decl) = opcode; + DECL_OVERLOADED_OPERATOR_CODE_RAW (decl) = ovl_op_mapping[opcode]; } else if (RECORD_OR_UNION_CODE_P (code)) { |