trans.c (Pragma_to_gnu): Replace linear search with call to find_opt and issue warnin...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 2 Oct 2015 09:28:56 +0000 (09:28 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 2 Oct 2015 09:28:56 +0000 (09:28 +0000)
commit0cec1c2da3ad278d0ab987883a19475b1546675f
tree6dc50d08224fdb4cf18ae702a432094a90f9915b
parente0512e8dc4145e32dbf235f693104af68ba9f1c8
trans.c (Pragma_to_gnu): Replace linear search with call to find_opt and issue warnings if...

* gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Warnings>: Replace
linear search with call to find_opt and issue warnings if the -W
switch is not appropriate.

From-SVN: r228379
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/warn13.adb [new file with mode: 0644]