aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2019-08-20 09:49:02 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-08-20 09:49:02 +0000
commit94f76dc10cdbdfcd5255b0c0cf15ab9056c0c514 (patch)
treeda58597813cb45bdeb79cc8caeb9e07beb493ab9 /gcc/function.c
parentafdc759841f8f4f464f3d5a2ba8e05e9a8e41d72 (diff)
downloadgcc-94f76dc10cdbdfcd5255b0c0cf15ab9056c0c514.zip
gcc-94f76dc10cdbdfcd5255b0c0cf15ab9056c0c514.tar.gz
gcc-94f76dc10cdbdfcd5255b0c0cf15ab9056c0c514.tar.bz2
[Ada] Warning for out-of-order record representation clauses
The compiler can now warn for out-of-order record representation clauses. A warning is given if the order of component declarations, component clauses, and bit-level layout do not all agree. The warning is disabled by default, and may be enabled by the -gnatw_r switch. 2019-08-20 Bob Duff <duff@adacore.com> gcc/ada/ * sem_ch13.adb (Component_Order_Check): New procedure to check for out-of-order clauses. * warnsw.ads, warnsw.adb: New -gnatw_r switch. * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Document new switch. * gnat_ugn.texi: Regenerate. From-SVN: r274723
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions