* gcc-interface/lang.opt (funsigned-char): New option.
* gcc-interface/misc.c (gnat_handle_option): Accept it.
* gcc-interface/utils.c (finish_character_type): Tweak comment.
From-SVN: r262629
+2018-07-13 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/lang.opt (funsigned-char): New option.
+ * gcc-interface/misc.c (gnat_handle_option): Accept it.
+ * gcc-interface/utils.c (finish_character_type): Tweak comment.
+
2018-07-07 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity): Add GNAT_DECL local
2018-05-21 Jerome Lambourg <lambourg@adacore.com>
* gcc-interface/Makefile.in: Add g-soliop__qnx.ads to the runtime build
- for QNX.
+ for QNX.
2018-05-21 Hristian Kirtchev <kirtchev@adacore.com>
Ada AdaWhy AdaSCIL
Make \"char\" signed by default.
+funsigned-char
+Ada AdaWhy AdaSCIL
+Make \"char\" unsigned by default.
+
gant
Ada AdaWhy AdaSCIL Driver Joined Undocumented RejectNegative
Catch typos.
case OPT_fshort_enums:
case OPT_fsigned_char:
+ case OPT_funsigned_char:
/* These are handled by the middle-end. */
break;
integral types are unsigned.
Unfortunately the signedness of 'char' in C is implementation-defined
- and GCC even has the option -fsigned-char to toggle it at run time.
+ and GCC even has the option -f{un}signed-char to toggle it at run time.
Since GNAT's philosophy is to be compatible with C by default, to wit
Interfaces.C.char is defined as a mere copy of Character, we may need
to declare character types as signed types in GENERIC and generate the