public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/107641] [13 Regression] libgomp/env.c:286:20: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
Date: Sat, 12 Nov 2022 08:50:21 +0000	[thread overview]
Message-ID: <bug-107641-4-Merw45iter@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-107641-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107641

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:2a193e9df82917eaf440a20f99a3febe91dcb5fe

commit r13-3927-g2a193e9df82917eaf440a20f99a3febe91dcb5fe
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sat Nov 12 09:47:50 2022 +0100

    libgomp: Fix up build on mingw [PR107641]

    Pointers should be first casted to intptr_t/uintptr_t before casting
    them to another integral type to avoid warnings.
    Furthermore, the function has code like
      else if (upper <= UINT_MAX)
        something;
      else
        something_else;
    so it seems using unsigned type for upper where upper <= UINT_MAX is always
    true is not intended.

    2022-11-12  Jakub Jelinek  <jakub@redhat.com>

            PR libgomp/107641
            * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather
than
            unsigned long.  Change type of upper from unsigned to unsigned
long.

  parent reply	other threads:[~2022-11-12  8:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-11 16:11 [Bug libgomp/107641] New: " redi at gcc dot gnu.org
2022-11-11 16:51 ` [Bug libgomp/107641] [13 Regression] " redi at gcc dot gnu.org
2022-11-11 17:26 ` jakub at gcc dot gnu.org
2022-11-12  8:50 ` cvs-commit at gcc dot gnu.org [this message]
2022-11-12  8:54 ` jakub at gcc dot gnu.org

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=bug-107641-4-Merw45iter@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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).