public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/110179] New: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast
@ 2023-06-08 16:27 dcb314 at hotmail dot com
2023-06-08 16:37 ` [Bug libgcc/110179] " dcb314 at hotmail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2023-06-08 16:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110179
Bug ID: 110179
Summary: unwind-dw2-fde-dip.c:406: assignment makes integer
from pointer without a cast
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
I just tried a build of gcc trunk with clang 16.04 on x86_64.
It said:
libgcc/unwind-dw2-fde-dip.c:406:16: warning: assignment to ‘_Unwind_Ptr’ {aka
‘long unsigned int’} from ‘const unsigned char *’ makes integer from pointer
without a cast [-Wint-conversion]
Git blame says:
49310a9933 (Florian Weimer 2023-06-06 11:01:07 +0200 406) eh_frame = p +
value;
This warning might be worth fixing. I suspect a cast will do it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcc/110179] unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast
2023-06-08 16:27 [Bug libgcc/110179] New: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast dcb314 at hotmail dot com
@ 2023-06-08 16:37 ` dcb314 at hotmail dot com
2023-06-09 6:26 ` egallager at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2023-06-08 16:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110179
David Binderman <dcb314 at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fw at gcc dot gnu.org
--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Adding author of code.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcc/110179] unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast
2023-06-08 16:27 [Bug libgcc/110179] New: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast dcb314 at hotmail dot com
2023-06-08 16:37 ` [Bug libgcc/110179] " dcb314 at hotmail dot com
@ 2023-06-09 6:26 ` egallager at gcc dot gnu.org
2023-07-10 11:55 ` fw at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: egallager at gcc dot gnu.org @ 2023-06-09 6:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110179
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
CC| |egallager at gcc dot gnu.org
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Does GCC's -Wint-conversion catch this, too? Might be something to consider in
the context of the discussion around GCC possibly turning on
-Werror=int-conversion by default.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcc/110179] unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast
2023-06-08 16:27 [Bug libgcc/110179] New: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast dcb314 at hotmail dot com
2023-06-08 16:37 ` [Bug libgcc/110179] " dcb314 at hotmail dot com
2023-06-09 6:26 ` egallager at gcc dot gnu.org
@ 2023-07-10 11:55 ` fw at gcc dot gnu.org
2023-07-11 4:21 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: fw at gcc dot gnu.org @ 2023-07-10 11:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110179
Florian Weimer <fw at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2023-07-10
Assignee|unassigned at gcc dot gnu.org |fw at gcc dot gnu.org
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=109712
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcc/110179] unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast
2023-06-08 16:27 [Bug libgcc/110179] New: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast dcb314 at hotmail dot com
` (2 preceding siblings ...)
2023-07-10 11:55 ` fw at gcc dot gnu.org
@ 2023-07-11 4:21 ` cvs-commit at gcc dot gnu.org
2023-07-11 4:54 ` fw at gcc dot gnu.org
2023-07-18 15:02 ` cvs-commit at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-07-11 4:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110179
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@gcc.gnu.org>:
https://gcc.gnu.org/g:104b09005229ef48a79a33511ea192bb3ec3c415
commit r14-2426-g104b09005229ef48a79a33511ea192bb3ec3c415
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Jul 11 06:19:39 2023 +0200
libgcc: Fix -Wint-conversion warning in find_fde_tail
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcc/110179] unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast
2023-06-08 16:27 [Bug libgcc/110179] New: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast dcb314 at hotmail dot com
` (3 preceding siblings ...)
2023-07-11 4:21 ` cvs-commit at gcc dot gnu.org
@ 2023-07-11 4:54 ` fw at gcc dot gnu.org
2023-07-18 15:02 ` cvs-commit at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: fw at gcc dot gnu.org @ 2023-07-11 4:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110179
Florian Weimer <fw at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Florian Weimer <fw at gcc dot gnu.org> ---
Fixed in trunk.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcc/110179] unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast
2023-06-08 16:27 [Bug libgcc/110179] New: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast dcb314 at hotmail dot com
` (4 preceding siblings ...)
2023-07-11 4:54 ` fw at gcc dot gnu.org
@ 2023-07-18 15:02 ` cvs-commit at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-07-18 15:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110179
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Florian Weimer <fw@gcc.gnu.org>:
https://gcc.gnu.org/g:6f9dfb4d759146eebf7f88ad519010ea2191bf3a
commit r13-7583-g6f9dfb4d759146eebf7f88ad519010ea2191bf3a
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Jul 11 06:19:39 2023 +0200
libgcc: Fix -Wint-conversion warning in find_fde_tail
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)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-07-18 15:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-08 16:27 [Bug libgcc/110179] New: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast dcb314 at hotmail dot com
2023-06-08 16:37 ` [Bug libgcc/110179] " dcb314 at hotmail dot com
2023-06-09 6:26 ` egallager at gcc dot gnu.org
2023-07-10 11:55 ` fw at gcc dot gnu.org
2023-07-11 4:21 ` cvs-commit at gcc dot gnu.org
2023-07-11 4:54 ` fw at gcc dot gnu.org
2023-07-18 15:02 ` cvs-commit at gcc dot gnu.org
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).