aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/fe.h
diff options
context:
space:
mode:
authorYannick Moy <moy@adacore.com>2022-06-08 11:58:43 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-07-12 12:24:13 +0000
commitf40948963b0847f995056fef25c41caec5a969e7 (patch)
treeb7cddd8ce9d96e87be0a7537bf39c6510aa1d049 /gcc/ada/fe.h
parent570f43b823ad9013aab5abd5868b6554f4cf019c (diff)
downloadgcc-f40948963b0847f995056fef25c41caec5a969e7.zip
gcc-f40948963b0847f995056fef25c41caec5a969e7.tar.gz
gcc-f40948963b0847f995056fef25c41caec5a969e7.tar.bz2
[Ada] Ignore switches for controlling frontend warnings in GNATprove mode
In the special mode for GNATprove, ignore switches controlling frontend warnings, like already done for the control of style checks warnings. Also remove special handling of warning mode in Errout to make up for the previous division of control between -gnatw (GNAT) and --warnings (GNATprove). gcc/ada/ * errout.adb (Record_Compilation_Errors): Remove global variable. (Compilation_Errors): Simplify. (Initialize): Inline Reset_Warnings. (Reset_Warnings): Remove. * errout.ads (Reset_Warnings): Remove. (Compilation_Errors): Update comment. * gnat1drv.adb (Adjust_Global_Switches): Ignore all frontend warnings in GNATprove mode, except regarding elaboration and suspicious contracts.
Diffstat (limited to 'gcc/ada/fe.h')
0 files changed, 0 insertions, 0 deletions