]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix inconsistent handling of character set control switches
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 1 Jan 2021 23:51:21 +0000 (00:51 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 4 May 2021 09:17:29 +0000 (05:17 -0400)
commitd4b0a294694a145aa33a25d1f923f4085b8f7d99
tree255d19fc97528d34027860dabd117c0291addec9
parentb65d9aff59bdaa77578de0666077fdf671a020bc
[Ada] Fix inconsistent handling of character set control switches

gcc/ada/

* csets.adb (Initialize): Refactor into CASE statement; raise
exception on unsupported code of character set (it will be
gently rejected earlier when scanning command line switches).
* switch-b.adb (Scan_Binder_Switches): Refactor into a
membership expression; add missing '9' choice; reorder as
described by GNAT UG, section 4.3.11.
* switch-c.adb (Scan_Front_End_Switches): Refactor into a
membership expression and reorder as above.
* doc/gnat_ugn/building_executable_programs_with_gnat.rst
(gnatic): Mention '5' as an allowed value for "c".
* gnat_ugn.texi: Regenerate.
gcc/ada/csets.adb
gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
gcc/ada/gnat_ugn.texi
gcc/ada/switch-b.adb
gcc/ada/switch-c.adb