[C++ PATCH] overloaded operator fns [6/N]
commit2cc899e0608b75f67b041bc3bfcfa9716ce43b8a
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Nov 2017 15:46:42 +0000 (1 15:46 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Nov 2017 15:46:42 +0000 (1 15:46 +0000)
tree1dba75c64dce051b6ee0933505d31b39046940fa
parent5dae9486d92a0a69b9ef0d28e3282a18d50aba2b
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254314 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/mangle.c
gcc/cp/method.c
gcc/cp/typeck.c
libcc1/ChangeLog
libcc1/libcp1plugin.cc