public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Corinna Vinschen <vinschen@redhat.com>
To: newlib@sourceware.org
Subject: Re: [PATCH] Fix warnings when building for msp430-elf
Date: Thu, 3 Sep 2020 13:43:42 +0200	[thread overview]
Message-ID: <20200903114342.GN4127@calimero.vinschen.de> (raw)
In-Reply-To: <20200903101320.4mvbhodaqi4bhef4@jozef-acer-manjaro>

> >From ddb84425f54bbcff9531f7230cf2d86db2ae4cde Mon Sep 17 00:00:00 2001
> From: Jozef Lawrynowicz <jozef.l@mittosystems.com>
> 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


      reply	other threads:[~2020-09-03 11:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-03 10:13 Jozef Lawrynowicz
2020-09-03 11:43 ` Corinna Vinschen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200903114342.GN4127@calimero.vinschen.de \
    --to=vinschen@redhat.com \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).