public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/112823] New: -Wincompatible-pointer-types errors in libiberty/simple-object-mach-o.c (missing backport for gcc-11)
@ 2023-12-02  4:19 sjames at gcc dot gnu.org
  2023-12-02  4:19 ` [Bug other/112823] " sjames at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-12-02  4:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112823
           Summary: -Wincompatible-pointer-types errors in
                    libiberty/simple-object-mach-o.c (missing backport for
                    gcc-11)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: fw at gcc dot gnu.org, iains at gcc dot gnu.org
  Target Milestone: ---

```
make[3]: Leaving directory
'/var/tmp/portage/sys-devel/gcc-11.4.1_p20231123/work/build/build-x86_64-pc-linux-gnu/libiberty'
make[3]: Entering directory
'/var/tmp/portage/sys-devel/gcc-11.4.1_p20231123/work/build/build-x86_64-pc-linux-gnu/libiberty'
x86_64-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -march=native -pipe -Wa,-O2
-Wa,-mtune=znver2 -fcf-protection=none -fdiagnostics-color=always
-fdiagnostics-urls=never -ggdb3 -g -O3  -I.
-I/var/tmp/portage/sys-devel/gcc-11.4.1_p20231123/work/gcc-11-20231123/libiberty/../include
 -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local
-pedantic  -D_GNU_SOURCE -fcf-protection
/var/tmp/portage/sys-devel/gcc-11.4.1_p20231123/work/gcc-11-20231123/libiberty/simple-object-mach-o.c
-o simple-object-mach-o.o
/var/tmp/portage/sys-devel/gcc-11.4.1_p20231123/work/gcc-11-20231123/libiberty/simple-object-mach-o.c:
In function ‘simple_object_mach_o_write_segment’:
/var/tmp/portage/sys-devel/gcc-11.4.1_p20231123/work/gcc-11-20231123/libiberty/simple-object-mach-o.c:1231:17:
error: passing argument 1 of ‘set_32’ from incompatible pointer type
[-Wincompatible-pointer-types]
 1231 |         set_32 (&index[i], index[i]);
      |                 ^~~~~~~~~
      |                 |
      |                 unsigned int *
/var/tmp/portage/sys-devel/gcc-11.4.1_p20231123/work/gcc-11-20231123/libiberty/simple-object-mach-o.c:1231:17:
note: expected ‘unsigned char *’ but argument is of type ‘unsigned int *’
make[3]: *** [Makefile:1309: simple-object-mach-o.o] Error 1
make[3]: Leaving directory
'/var/tmp/portage/sys-devel/gcc-11.4.1_p20231123/work/build/build-x86_64-pc-linux-gnu/libiberty'
make[3]: *** Waiting for unfinished jobs....
make[3]: Entering directory
'/var/tmp/portage/sys-devel/gcc-11.4.1_p20231123/work/build/build-x86_64-pc-linux-gnu/libiberty'
```

r12-3005-g220c410162ebec was backported to releases/gcc-11 but the fixup commit
r12-3092-g38757aa88735ab wasn't yet backported, so we just need to pull that
in.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug other/112823] -Wincompatible-pointer-types errors in libiberty/simple-object-mach-o.c (missing backport for gcc-11)
  2023-12-02  4:19 [Bug other/112823] New: -Wincompatible-pointer-types errors in libiberty/simple-object-mach-o.c (missing backport for gcc-11) sjames at gcc dot gnu.org
@ 2023-12-02  4:19 ` sjames at gcc dot gnu.org
  2023-12-02  4:24 ` [Bug other/112823] [11 only] " pinskia at gcc dot gnu.org
  2023-12-02 20:16 ` sjames at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-12-02  4:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
At some point, I think we should consider using formal Fixes: git trailers or
something to help find missed backports, but that's another story.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug other/112823] [11 only] -Wincompatible-pointer-types errors in libiberty/simple-object-mach-o.c (missing backport for gcc-11)
  2023-12-02  4:19 [Bug other/112823] New: -Wincompatible-pointer-types errors in libiberty/simple-object-mach-o.c (missing backport for gcc-11) sjames at gcc dot gnu.org
  2023-12-02  4:19 ` [Bug other/112823] " sjames at gcc dot gnu.org
@ 2023-12-02  4:24 ` pinskia at gcc dot gnu.org
  2023-12-02 20:16 ` sjames at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-02  4:24 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
   Target Milestone|---                         |11.5
            Summary|-Wincompatible-pointer-type |[11 only]
                   |s errors in                 |-Wincompatible-pointer-type
                   |libiberty/simple-object-mac |s errors in
                   |h-o.c (missing backport for |libiberty/simple-object-mac
                   |gcc-11)                     |h-o.c (missing backport for
                   |                            |gcc-11)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug other/112823] [11 only] -Wincompatible-pointer-types errors in libiberty/simple-object-mach-o.c (missing backport for gcc-11)
  2023-12-02  4:19 [Bug other/112823] New: -Wincompatible-pointer-types errors in libiberty/simple-object-mach-o.c (missing backport for gcc-11) sjames at gcc dot gnu.org
  2023-12-02  4:19 ` [Bug other/112823] " sjames at gcc dot gnu.org
  2023-12-02  4:24 ` [Bug other/112823] [11 only] " pinskia at gcc dot gnu.org
@ 2023-12-02 20:16 ` sjames at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-12-02 20:16 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
https://inbox.sourceware.org/gcc-patches/87plzp5ac8.fsf@gentoo.org/T/#m8edd6947776f6d591121340d391f824d897605d0

It got merged w/o the PR #:

commit 02cd761eb1198df50453b2e39653f48053609ffc (HEAD -> releases/gcc-11,
origin/releases/gcc-11)
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Mon Aug 23 17:34:43 2021 +0100

    libiberty, Darwin: Fix a build warning.

    r12-3005-g220c410162ebece4f missed a cast for the set_32 call.
    Fixed thus.

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

    libiberty/ChangeLog:

            * simple-object-mach-o.c (simple_object_mach_o_write_segment):
            Cast the first argument to set_32 as needed.

    (cherry picked from commit 38757aa88735ab2e511bc428e2407a5a5e9fa0be)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-02 20:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-02  4:19 [Bug other/112823] New: -Wincompatible-pointer-types errors in libiberty/simple-object-mach-o.c (missing backport for gcc-11) sjames at gcc dot gnu.org
2023-12-02  4:19 ` [Bug other/112823] " sjames at gcc dot gnu.org
2023-12-02  4:24 ` [Bug other/112823] [11 only] " pinskia at gcc dot gnu.org
2023-12-02 20:16 ` sjames 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).