[0/6] libgloss: i386: fix compilation issues

Message ID 20251029-fix-libgloss-i386-compile-issues-v1-0-26edcb02f69c@kernel.org
Headers
Series libgloss: i386: fix compilation issues |

Message

Vincent Mailhol Oct. 29, 2025, 6:58 a.m. UTC
  libgloss i386 build is currently broken because of some new constraint
violations implemented in the compiler. Note that I only tested with
GCC 14 and did not check from which version number the build is
broken.

A quick fix would be to disable the constraint violation checks, for
example by adding those flags to GCC:

  -Wno-implicit-int
  -Wno-implicit-function-declaration
  -Wno-return-mismatch

Instead, this series fixes the root cause by addressing all the
compiler's errors.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>

---
Vincent Mailhol (6):
      libgloss: i386: cygmon-gmon.c: add missing libc headers
      libgloss: i386: cygmon-gmon.c: add profil() prototype
      libgloss: i386: cygmon-gmon.c: make moncontrol() visible to its users
      libgloss: i386: move profil_write() from cygmon-salib.c to cygmon-gmon.c
      libgloss: i386: cygmon-gmon.c: add functions return type
      libgloss: i386: cygmon-gmon.c: fix _mcount() return type

 libgloss/i386/cygmon-gmon.c  | 84 +++++++++++++++++++++++++++++---------------
 libgloss/i386/cygmon-salib.c | 19 ----------
 2 files changed, 56 insertions(+), 47 deletions(-)
---
base-commit: c43ec5f5951c7f4b882a0f8e619601a45ae70a91
change-id: 20251028-fix-libgloss-i386-compile-issues-23661b6ca055

Best regards,
  

Comments

Jeff Johnston Nov. 3, 2025, 8:34 p.m. UTC | #1
Patches pushed.  Thanks.

-- Jeff J.

On Wed, Oct 29, 2025 at 3:00 AM Vincent Mailhol <mailhol@kernel.org> wrote:

> libgloss i386 build is currently broken because of some new constraint
> violations implemented in the compiler. Note that I only tested with
> GCC 14 and did not check from which version number the build is
> broken.
>
> A quick fix would be to disable the constraint violation checks, for
> example by adding those flags to GCC:
>
>   -Wno-implicit-int
>   -Wno-implicit-function-declaration
>   -Wno-return-mismatch
>
> Instead, this series fixes the root cause by addressing all the
> compiler's errors.
>
> Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
>
> ---
> Vincent Mailhol (6):
>       libgloss: i386: cygmon-gmon.c: add missing libc headers
>       libgloss: i386: cygmon-gmon.c: add profil() prototype
>       libgloss: i386: cygmon-gmon.c: make moncontrol() visible to its users
>       libgloss: i386: move profil_write() from cygmon-salib.c to
> cygmon-gmon.c
>       libgloss: i386: cygmon-gmon.c: add functions return type
>       libgloss: i386: cygmon-gmon.c: fix _mcount() return type
>
>  libgloss/i386/cygmon-gmon.c  | 84
> +++++++++++++++++++++++++++++---------------
>  libgloss/i386/cygmon-salib.c | 19 ----------
>  2 files changed, 56 insertions(+), 47 deletions(-)
> ---
> base-commit: c43ec5f5951c7f4b882a0f8e619601a45ae70a91
> change-id: 20251028-fix-libgloss-i386-compile-issues-23661b6ca055
>
> Best regards,
> --
> Vincent Mailhol <mailhol@kernel.org>
>
>