[Ada] Optional warning on build-in-place function calls
authorVasiliy Fofanov <fofanov@adacore.com>
Fri, 22 May 2020 11:22:41 +0000 (13:22 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 8 Jul 2020 14:55:55 +0000 (10:55 -0400)
commitb19c922bf471e4202bf4853cab9575d4a924657c
tree0b2c729b6b94a0345e14979abd23aace1e94cba3
parent72145c1ee83fc5d7b8f65084442a7397bf154154
[Ada] Optional warning on build-in-place function calls

gcc/ada/

* debug.adb: Document new switch.
* exp_ch6.adb (Warn_BIP): New function that warns if the switch
is on.  Call it from Make_Build_In_Place_* functions.  Warn_BIP
is not needed in Make_Build_In_Place_Iface_*, because those call
Make_Build_In_Place_Call_In_Object_Declaration or similar.
gcc/ada/debug.adb
gcc/ada/exp_ch6.adb