]> git.ipfire.org Git - thirdparty/gcc.git/commit
[C++ PATCH] overloaded operator fns [6/N]
authorNathan Sidwell <nathan@acm.org>
Wed, 1 Nov 2017 15:46:42 +0000 (15:46 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 1 Nov 2017 15:46:42 +0000 (15:46 +0000)
commitce12115844ef8f66a28205d1f1e81ea0ccc946b1
tree1dba75c64dce051b6ee0933505d31b39046940fa
parent4a110e3478460101b4c0d6591d7cdb0b1d3a276b
[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
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