This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] sh: char isn't signed
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: olegendo at gcc dot gnu dot org, Segher Boessenkool <segher at kernel dot crashing dot org>
- Date: Thu, 20 Nov 2014 07:41:48 -0800
- Subject: [PATCH] sh: char isn't signed
- Authentication-results: sourceware.org; auth=none
An sh compiler fails to build on systems that have plain char unsigned.
Fix that.
2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
gcc/
PR target/60111
* config/sh/sh.c: Use signed char for signed field.
---
gcc/config/sh/sh.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index be944da..175af44 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -3013,7 +3013,7 @@ enum
struct ashl_lshr_sequence
{
char insn_count;
- char amount[6];
+ signed char amount[6];
char clobbers_t;
};
--
1.8.1.4