diff options
author | Bob Duff <duff@adacore.com> | 2022-07-19 17:06:30 -0400 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-05 09:21:03 +0200 |
commit | a0998ca3add191e76f151e541fc18a6d9dd5a1f0 (patch) | |
tree | 990cf306958f63118a95e7465579cb4d2fe62ff3 /gcc/limitx.h | |
parent | 44bd2755a8bfd4c8849d97f058141c3d5a17647b (diff) | |
download | gcc-a0998ca3add191e76f151e541fc18a6d9dd5a1f0.zip gcc-a0998ca3add191e76f151e541fc18a6d9dd5a1f0.tar.gz gcc-a0998ca3add191e76f151e541fc18a6d9dd5a1f0.tar.bz2 |
[Ada] Enable Error_Msg_GNAT_Extension for mixed decl/stmts
Enable mixing of declarative items and statements under
the -gnatX switch. The previous version used the -gnat2022
switch.
In addition, change the error message so that it advertises
the new feature when it is disabled. Instead of:
declarations must come before "begin"
we now say (without -gnatX):
declarations mixed with statements is a GNAT-specific extension
unit must be compiled with -gnatX or use pragma Extensions_Allowed (On)
gcc/ada/
* par-ch5.adb
(P_Sequence_Of_Statements): Call Error_Msg_GNAT_Extension to give
the error message.
Diffstat (limited to 'gcc/limitx.h')
0 files changed, 0 insertions, 0 deletions