This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 2/2] ctype: Avoid GCC note in towctrans_l.c
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: Andre dot SimoesDiasVieira at arm dot com
- Date: Fri, 27 Jul 2018 09:37:45 +0200
- Subject: [PATCH 2/2] ctype: Avoid GCC note in towctrans_l.c
- References: <20180727073745.23440-1-sebastian.huber@embedded-brains.de>
The previous version genenerated the following GCC note:
towctrans_l.c:44:1: note: offset of packed bit-field 'diff' has changed in GCC 4.4
caseconv_table [] = {
^~~~~~~~~~~~~~
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/ctype/towctrans_l.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/newlib/libc/ctype/towctrans_l.c b/newlib/libc/ctype/towctrans_l.c
index 7b8a23c9c..b829266a4 100644
--- a/newlib/libc/ctype/towctrans_l.c
+++ b/newlib/libc/ctype/towctrans_l.c
@@ -37,8 +37,8 @@ enum {TO1, TOLO, TOUP, TOBOTH};
enum {EVENCAP, ODDCAP};
static struct caseconv_entry {
uint_least32_t first: 21;
- uint_least8_t diff: 8;
- uint_least8_t mode: 2;
+ uint_least32_t diff: 8;
+ uint_least32_t mode: 2;
int_least32_t delta: 17;
} __attribute__ ((packed))
caseconv_table [] = {
--
2.13.7