]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Rely on default parameter when making non-constant nodes
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 5 Dec 2024 16:55:09 +0000 (17:55 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 3 Jan 2025 15:39:15 +0000 (16:39 +0100)
commit2789e3610ee17c153ab9dc851a4e1ae64afc4103
tree59e454148c32c3de528bfe23eea0e39dcb7f113e
parent5a843616379b1c02d6702ac6121c576bd05f4209
ada: Rely on default parameter when making non-constant nodes

When calling Make_Access_To_Object_Definition and Make_Object_Declaration we
can rely on the default value of parameter Constant_Present being False. This
makes code cleaner and consistent with relying on the default value of other
parameters of this routine, like Null_Exclusion_Present.

Code cleanup; semantics is unaffected.

gcc/ada/ChangeLog:

* exp_ch3.adb, exp_disp.adb: Remove explicit actual parameter
Constant_Present equal False; tune comments.
gcc/ada/exp_ch3.adb
gcc/ada/exp_disp.adb