[Ada] Fix bogus style check failure with pragma Style_Checks (Off)
Pierre-Marie de Rodat
derodat@adacore.com
Tue Aug 13 08:32:00 GMT 2019
This fixes a bogus style check failure for long lines in rare cases
where the compiler is invoked, with a -gnatyX switch where X is neither
'm' nor 'M', on a unit which contains "with" clauses for other units
that contain a pragma Style_Checks (Off).
Tested on x86_64-pc-linux-gnu, committed on trunk
2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* sem.adb (Do_Analyze): Recompute Style_Check_Max_Line_Length
after restoring Style_Max_Line_Length.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 342 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190813/c4a8c4e4/attachment.bin>
More information about the Gcc-patches
mailing list