ada: Fix handling of pragma Warnings (Toolname, Off/On)
commit0f7d8f2f669c64529aafb24bfc0b1f59b4958f19
authorYannick Moy <moy@adacore.com>
Fri, 6 Jan 2023 10:10:53 +0000 (6 11:10 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 15 May 2023 09:36:41 +0000 (15 11:36 +0200)
tree65befbb326e7c6a66d75b9eeb5427065e2880621
parenta372273b63b17c843e93bb179c8e56a270dd9e40
ada: Fix handling of pragma Warnings (Toolname, Off/On)

Pragma Warnings On/Off with a preceding toolname (which could be GNAT
or GNATprove) was ignored due an error in accessing the expression of
a pragma association in the parser. Now fixed.

gcc/ada/

* par-prag.adb (First_Arg_Is_Matching_Tool_Name): Fix access to
expression in pragma association.
gcc/ada/par-prag.adb