diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-07-13 10:15:52 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-07-13 10:15:52 +0000 |
commit | 86b43436b761589f46ace3adca63dfeaf602b237 (patch) | |
tree | 534ff72fa6ed22d5532ad985687f03fbf77be225 /gcc/ada/gcc-interface/utils.c | |
parent | bdaa2c546bee30f44c39076d2b75a349ab84adf9 (diff) | |
download | gcc-86b43436b761589f46ace3adca63dfeaf602b237.zip gcc-86b43436b761589f46ace3adca63dfeaf602b237.tar.gz gcc-86b43436b761589f46ace3adca63dfeaf602b237.tar.bz2 |
lang.opt (funsigned-char): New option.
* 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
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r-- | gcc/ada/gcc-interface/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index af85a0f..432bafe 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -1684,7 +1684,7 @@ record_builtin_type (const char *name, tree type, bool artificial_p) 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 |