Without this patch, gnat would use `-gnatw?` as the default option for
some of the default warnings.
gcc/ada/
* erroutc.adb (Get_Warning_Option): Don't consider `?` as a
valid option switch.
Warn : constant Boolean := Errors.Table (Id).Warn;
Warn_Chr : constant String (1 .. 2) := Errors.Table (Id).Warn_Chr;
begin
- if Warn and then Warn_Chr /= " " then
+ if Warn and then Warn_Chr /= " " and then Warn_Chr (1) /= '?' then
if Warn_Chr = "$ " then
return "-gnatel";
elsif Warn_Chr (2) = ' ' then