c++: contracts fixes
authorJason Merrill <jason@redhat.com>
Mon, 21 Nov 2022 22:58:07 +0000 (17:58 -0500)
committerJason Merrill <jason@redhat.com>
Tue, 22 Nov 2022 01:23:38 +0000 (20:23 -0500)
commitb20a3854c9f2923ac02c26385dac0c68f4df1e66
tree1762adf561fe112881f68a469caa411a3121be5f
parent8b7fee1de9a723ccc24d2de1c89d233f27b16a0a
c++: contracts fixes

Fixing -Wunused-parm warnings and link errors depending on where -fcontracts
appears on the command line.

gcc/cp/ChangeLog:

* contracts.cc (build_contract_condition_function):
Set DECL_ARTIFICIAL on return value parm.
* g++spec.cc (lang_specific_driver): Add -lstdc++exp
just before -lstdc++.
gcc/cp/contracts.cc
gcc/cp/g++spec.cc