]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Simplify construction of internal string from characters
authorPiotr Trojanek <trojanek@adacore.com>
Sun, 17 May 2026 11:39:12 +0000 (13:39 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 4 Jun 2026 08:42:19 +0000 (10:42 +0200)
commitae59b39ffb2ee07bf536ca2d45beab2199615644
tree5b0d2eac836eebea0767d120f04a3bee3d522736
parent3cf2ca62976890f78367fa93cc9e5a31d0b262ad
ada: Simplify construction of internal string from characters

Reuse a variant of Store_String_Char routine that accepts a Character parameter
and internally calls Get_Char_Code. Code cleanup.

gcc/ada/ChangeLog:

* exp_attr.adb (Expand_N_Attribute_Reference): Store chars without
converting the actual parameters.
* exp_ch11.adb (Null_String): Likewise.
* exp_disp.adb (Make_DT): Likewise.
* exp_util.adb (Fully_Qualified_Name_String): Likewise.
* sem_attr.adb (Analyze_Attribute): Likewise.
* sem_dist.adb (Full_Qualified_Name): Likewise.
* sem_prag.adb (Process_Interface_Name, Set_Encoded_Interface_Name):
Likewise.
* stringt.adb (Store_String_Chars): Likewise.
gcc/ada/exp_attr.adb
gcc/ada/exp_ch11.adb
gcc/ada/exp_disp.adb
gcc/ada/exp_util.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_dist.adb
gcc/ada/sem_prag.adb
gcc/ada/stringt.adb