From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70504 invoked by alias); 30 Jul 2018 08:49:07 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 70426 invoked by uid 10080); 30 Jul 2018 08:49:05 -0000 Date: Mon, 30 Jul 2018 08:49:00 -0000 Message-ID: <20180730084905.70424.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] ctype: Avoid GCC note in towctrans_l.c X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: d8d18c3e80b029449240de8b3d970c03674e9617 X-Git-Newrev: 0e5f252bc79f137a7747643dd1bc2693d98c0668 X-SW-Source: 2018-q3/txt/msg00024.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0e5f252bc79f137a7747643dd1bc2693d98c0668 commit 0e5f252bc79f137a7747643dd1bc2693d98c0668 Author: Sebastian Huber Date: Fri Jul 27 09:28:55 2018 +0200 ctype: Avoid GCC note in towctrans_l.c 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 Diff: --- 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 7b8a23c..b829266 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 [] = {