[COMMITTED] ada: Move warnings switches

2022-11-21 Thread Marc Poulhiès via Gcc-patches
From: Bob Duff This patch moves warning switches from Opt into Warnsw, fixes some minor discrepancies, and cleans up the code. No change in behavior. gcc/ada/ * warnsw.ads, warnsw.adb: Move warning flags here from package Opt. Rename Warning_Record to be Warnings_State. Use an

[COMMITTED] ada: Move warnings switches -- initial work

2022-11-08 Thread Marc Poulhiès via Gcc-patches
From: Bob Duff This patch prepares to move warning switches from Opt into Warnsw. gcc/ada/ * warnsw.ads, warnsw.adb, fe.h, err_vars.ads, errout.ads: Move Warning_Doc_Switch from Err_Vars to Warnsw. Access Warn_On_Questionable_Layout on the C side via a function rather