]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Cleanup repeated code in expansion of stream attributes
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 5 Feb 2024 18:41:50 +0000 (19:41 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 10 Jun 2024 09:03:59 +0000 (11:03 +0200)
commit2d20aaaa8a3cb807431fcd74bec02967fcd60995
treea215ff59281f5f2a9f4e244b9042028cf3b99b3a
parent3da7847e82e8416af107a64fa980ae0f7cf0a110
ada: Cleanup repeated code in expansion of stream attributes

In expansion of various attributes, in particular for the Input/Output
and Read/Write attributes, we can use constants that are already used
for expansion of many other attributes.

gcc/ada/

* exp_attr.adb (Expand_N_Attribute_Reference): Use constants
declared at the beginning of subprogram; tune layout.
* exp_ch3.adb (Predefined_Primitive_Bodies): Tune layout.
gcc/ada/exp_attr.adb
gcc/ada/exp_ch3.adb