From: Florian Weimer <fweimer@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH releases/gcc-13 2/2] libgcc: Fix -Wint-conversion warning in find_fde_tail
Date: Tue, 18 Jul 2023 16:15:45 +0200 [thread overview]
Message-ID: <6f9dfb4d759146eebf7f88ad519010ea2191bf3a.1689689650.git.fweimer@redhat.com> (raw)
In-Reply-To: <7302f8a2fa2f95252b32de2dc826591e75230662.1689689650.git.fweimer@redhat.com>
Fixes commit r14-1614-g49310a99330849 ("libgcc: Fix eh_frame fast path
in find_fde_tail").
libgcc/
PR libgcc/110179
* unwind-dw2-fde-dip.c (find_fde_tail): Add cast to avoid
implicit conversion of pointer value to integer.
(cherry picked from commit 104b09005229ef48a79a33511ea192bb3ec3c415)
---
libgcc/unwind-dw2-fde-dip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgcc/unwind-dw2-fde-dip.c b/libgcc/unwind-dw2-fde-dip.c
index 4e0b880513f..28ea0e64e0e 100644
--- a/libgcc/unwind-dw2-fde-dip.c
+++ b/libgcc/unwind-dw2-fde-dip.c
@@ -403,7 +403,7 @@ find_fde_tail (_Unwind_Ptr pc,
BFD ld generates. */
signed value __attribute__ ((mode (SI)));
memcpy (&value, p, sizeof (value));
- eh_frame = p + value;
+ eh_frame = (_Unwind_Ptr) (p + value);
p += sizeof (value);
}
else
--
2.41.0
next prev parent reply other threads:[~2023-07-18 14:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-18 14:15 [PATCH releases/gcc-13 1/2] libgcc: Fix eh_frame fast path " Florian Weimer
2023-07-18 14:15 ` Florian Weimer [this message]
2023-07-18 14:56 ` Richard Biener
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=6f9dfb4d759146eebf7f88ad519010ea2191bf3a.1689689650.git.fweimer@redhat.com \
--to=fweimer@redhat.com \
--cc=gcc-patches@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).