[PATCH 2/13] v2 Use new per-location warning APIs in Ada.

Martin Sebor msebor@gmail.com
Mon Jun 28 21:20:55 GMT 2021


On 6/23/21 11:07 PM, Jeff Law wrote:
> 
> 
> On 6/4/2021 3:41 PM, Martin Sebor via Gcc-patches wrote:
>> The attached patch replaces the uses of TREE_NO_WARNING in the Ada front
>> end with the new suppress_warning(), warning_suppressed_p(), and
>> copy_warning() APIs.
>>
>> gcc-no-warning-ada.diff
>>
>> Add support for per-location warning groups.
>>
>> gcc/ada/ChangeLog:
>>
>> 	* gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu):
>> 	Replace TREE_NO_WARNING with suppress_warning.
>> 	(gnat_gimplify_expr): Same.
>> 	* gcc-interface/utils.c (gnat_pushdecl): Same.
> OK once prereqs are approved.
> jeff
> 

Pushed in r12-1857.

Martin


More information about the Gcc-patches mailing list