From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by sourceware.org (Postfix) with ESMTP id 984DD3850402 for ; Thu, 3 Sep 2020 11:43:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 984DD3850402 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-236-piAA3PLAOlSh9r4zty0H9Q-1; Thu, 03 Sep 2020 07:43:45 -0400 X-MC-Unique: piAA3PLAOlSh9r4zty0H9Q-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6B00189CCC3 for ; Thu, 3 Sep 2020 11:43:44 +0000 (UTC) Received: from calimero.vinschen.de (ovpn-118-162.rdu2.redhat.com [10.10.118.162]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3D29962968 for ; Thu, 3 Sep 2020 11:43:44 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 39341A83A7D; Thu, 3 Sep 2020 13:43:42 +0200 (CEST) Date: Thu, 3 Sep 2020 13:43:42 +0200 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: [PATCH] Fix warnings when building for msp430-elf Message-ID: <20200903114342.GN4127@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <20200903101320.4mvbhodaqi4bhef4@jozef-acer-manjaro> MIME-Version: 1.0 In-Reply-To: <20200903101320.4mvbhodaqi4bhef4@jozef-acer-manjaro> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2020 11:43:48 -0000 > >From ddb84425f54bbcff9531f7230cf2d86db2ae4cde Mon Sep 17 00:00:00 2001 > From: Jozef Lawrynowicz > Date: Wed, 2 Sep 2020 15:50:07 +0100 > Subject: [PATCH] Fix warnings when building for msp430-elf > > The MSP430 target supports both 16-bit and 20-bit size_t and intptr_t. > Some implicit casts in Newlib expect these types to be > "long", (a 32-bit type on MSP430) which causes warnings during > compilation such as: > "cast from pointer to integer of different size" > > --- > libgloss/msp430/sbrk.c | 3 +++ > newlib/libc/include/sys/config.h | 4 ++-- > newlib/libc/search/db_local.h | 2 +- > newlib/libc/search/hcreate_r.c | 5 +++++ > newlib/libc/stdio/open_memstream.c | 4 ++-- > newlib/libc/stdlib/arc4random.c | 3 ++- > newlib/libc/stdlib/nano-mallocr.c | 22 ++++++++++++---------- > 7 files changed, 27 insertions(+), 16 deletions(-) Pushed. Thanks, Corinna