From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C610C3858CD1; Sun, 17 Dec 2023 06:09:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C610C3858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702793394; bh=f5C/aMssTAfZ4TW+vK6r37K4IU9wFC0etpbzvUHRE5s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fxF2AOj9lxVMVSqd0leFS6qlcpSMV0MYMiFfyKdHs/mQ8m5a0W45NFRJezo80JAB+ qLERMkeC3gTGVYbaHF/t8Wf7+yZm1wetCSsi7OtsAuF863WmoJ75o4XWTDDb/xqRNu r4Pq+4yoJ+ER2XsQ31QT96TBP/AE8Dqt8lD+xK9Y= From: "vapier at gentoo dot org" To: gdb-prs@sourceware.org Subject: [Bug sim/29752] sim:frv: -Wincompatible-function-pointer-types build failure: sem.c:24343:41: error: incompatible function pointer types passing 'void (SIM_CPU *, UINT, UDI)' to parameter of type 'void (*)(SIM_CPU *, UINT, DI)' Date: Sun, 17 Dec 2023 06:09:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: sim X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vapier at gentoo dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc cf_gcctarget Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29752 Mike Frysinger changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|sim: build failure with |sim:frv: |Clang 16 |-Wincompatible-function-poi |(-Wincompatible-function-po |nter-types build failure: |inter-types, |sem.c:24343:41: error: |-Wimplicit-function-declara |incompatible function |tion) |pointer types passing 'void | |(SIM_CPU *, UINT, UDI)' to | |parameter of type 'void | |(*)(SIM_CPU *, UINT, DI)' Target| |frv-elf --- Comment #9 from Mike Frysinger --- i think all -Wimplicit-function-declaration issues are fixed the only -Wincompatible-function-pointer-types issue left is frv and its sem.c/queue logic. sem.c:24343:41: error: incompatible function pointer types passing 'void (SIM_CPU *, UINT, UDI)' (aka 'void (struct _sim_cpu *, unsigned int, unsign= ed long)') to parameter of type 'void (*)(SIM_CPU *, UINT, DI)' (aka 'void (*)(struct _sim_cpu *, unsigned int, long)') [-Wincompatible-function-pointer-types] sem.c is generated by CGEN code. not really sure where in the scheme files this comes from. but it's all related to a call like: sim_queue_fn_di_write (current_cpu, frvbf_h_acc40U_set, ... sim_queue_fn_di_write wants a func that has a param of (SIM_CPU*, UINT, DI), but frvbf_h_acc40U_set has a UDI. there isn't a sim_queue_fn_udi_write hel= per. we could change frvbf_h_acc40U_set to take a DI instead of UDI ? in practi= ce, i don't think the sign is checked ? not sure tbh. and we don't have much = of an FRV maintainer atm. --=20 You are receiving this mail because: You are on the CC list for the bug.=