[Ada] Minor cleanup in translation of calls to subprograms

2021-11-10 Thread Pierre-Marie de Rodat via Gcc-patches
This gets rid of the DECL_STUBBED_P macro and adjusts Call_to_gnu. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * gcc-interface/ada-tree.h (DECL_STUBBED_P): Delete. * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set it. * gcc-interface/trans.c (Call_to_

[Ada] Minor cleanup in Expand_Call_Helper

2020-06-18 Thread Pierre-Marie de Rodat
This makes a couple of changes in the code dealing with a call to a derived subprogram: first, it removes useless calls to Relocate_Node before calls to OK_Convert_To and Unchecked_Convert_To (these functions already call Relocate_Node on their second operand) and merge calls to Analyze and Resolve

[Ada] Minor cleanup in repinfo unit

2018-05-29 Thread Pierre-Marie de Rodat
This factors out the various cases where a marker for an unknown value is output by the -gnatR switches. No functional changes. Tested on x86_64-pc-linux-gnu, committed on trunk 2018-05-29 Eric Botcazou gcc/ada/ * repinfo.adb (Write_Unknown_Val): New procedure. (List_GCC_Exp

[Ada] Minor cleanup in repinfo unit

2018-05-28 Thread Pierre-Marie de Rodat
This removes the Truth_Andif_Expr and Truth_Orif_Expr codes for expressions handled by the repinfo unit, since they are redundant with Truth_And_Expr and Truth_Or_Expr respectively in this context. No functional changes. Tested on x86_64-pc-linux-gnu, committed on trunk 2018-05-28 Eric Botcazou

[Ada] Minor cleanup in support machinery for inter-unit inlining

2017-09-06 Thread Arnaud Charlet
The inter-unit inlining done by the compiler requires a dedicated machinery to deal with the public status of library-level entities, since it breaks the private/plublic semantic barrier of the language. This is a minor cleanup to this machinery, no functional changes. Tested on x86_64-pc-linux-g

[Ada] Minor cleanup 2/2

2016-05-02 Thread Eric Botcazou
This consistently passes NULL_TREE as operand #2 of COMPONENT_REF and #3 of ARRAY_REF/ARRAY_RANGE_REF in gigi. There is no functional change since we never build them with these operands in the first place. Tested on x86_64-suse-linux, applied on the mainline. 2016-05-02 Eric Botcazou

[Ada] Minor cleanup 1/2

2016-05-02 Thread Eric Botcazou
This is a small refactoring of the handling of ranges of values. Tested on x86_64-suse-linux, applied on the mainline. 2016-05-02 Eric Botcazou * gcc-interface/trans.c (Range_to_gnu): New static function. (Raise_Error_to_gnu) : Call it to translate the range. (gnat_to

[Ada] Minor cleanup in finalization support of the runtime

2015-10-16 Thread Arnaud Charlet
This removes a couple of redundant/unused things. No functional changes. Tested on x86_64-pc-linux-gnu, committed on trunk 2015-10-16 Eric Botcazou * a-tags.ads (Parent_Size): Remove obsolete pragma Export. * s-finmas.ads (Header_Offset): Delete. * s-finmas.adb (Heade

[Ada] Minor cleanup in gigi (4/4)

2015-05-25 Thread Eric Botcazou
Tested on x86_64-suse-linux, applied on the mainline. 2015-05-25 Eric Botcazou * get_targ.adb (C_Get_Float_Words_BE): Adjust import name. (C_Get_Words_BE): Likewise. (C_Get_Bytes_BE): Likewise. (C_Get_Bits_BE): Likewise. (Width_From_Size): Remove superf

[Ada] Minor cleanup in gigi (3/4)

2015-05-25 Thread Eric Botcazou
Tested on x86_64-suse-linux, applied on the mainline. 2015-05-25 Eric Botcazou * gcc-interface/decl.c (elaborate_expression): Take a const string suffix instead of a tree. (elaborate_expression_1): Likewise. (elaborate_expression_2): Likewise. (gnat_to_

[Ada] Minor cleanup in gigi (2/4)

2015-05-25 Thread Eric Botcazou
Tested on x86_64-suse-linux, applied on the mainline. 2015-05-25 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity) : Move around. : Merge with E_Variable case. : Remove 'object' label. -- Eric BotcazouIndex: gcc-interface/decl.c =

[Ada] Minor cleanup in gigi (1/4)

2015-05-25 Thread Eric Botcazou
Tested on x86_64-suse-linux, applied on the mainline. 2015-05-25 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity): Minor tweak. * gcc-interface/trans.c (finalize_nrv_unc_r): Use CONSTRUCTOR_ELT. * gcc-interface/utils.c (convert): Likewise and simplify.

[Ada] Minor cleanup #2

2014-05-18 Thread Eric Botcazou
This exports End_Location from sinfo and uses it in gigi, instead of redoing the computation locally. Tested on x86_64-suse-linux, applied on the mainline. 2014-05-18 Eric Botcazou * fe.h (Set_Present_Expr): Move around. (End_Location): New macro. * gcc-interface/tra

[Ada] Minor cleanup

2014-05-18 Thread Eric Botcazou
This replaces an explicit test for private types by Underlying_Type, which does the test automatically. Tested on x86_64-suse-linux, applied on the mainline. 2014-05-18 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in lieu of more verbose con

[Ada] Minor cleanup

2013-08-13 Thread Eric Botcazou
Tested on x86_64-suse-linux, applied on the mainline. 2013-08-13 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity): Replace True with true. (is_cplusplus_method): Likewise, and False with false. (components_need_strict_alignment): Likewise. * gcc-interf