Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agbcc build error: incompatible function pointer types #663

Closed
laqieer opened this issue Aug 17, 2024 · 0 comments
Closed

agbcc build error: incompatible function pointer types #663

laqieer opened this issue Aug 17, 2024 · 0 comments

Comments

@laqieer
Copy link
Contributor

laqieer commented Aug 17, 2024

Error

expr.c:1044:30: error: incompatible function pointer types passing 'rtx (rtx, ...)' (aka 'struct rtx_def *(struct rtx_def *, ...)') to parameter of type 'rtx (*)(rtx, rtx)' (aka 'struct rtx_def *(*)(struct rtx_def *, struct rtx_def *)') [-Wincompatible-function-pointer-types]
            move_by_pieces_1(GEN_FCN(icode), mode, &data);
                             ^~~~~~~~~~~~~~
expr.c:1216:27: error: incompatible function pointer types initializing 'rtx (*)(rtx, rtx, rtx, rtx)' (aka 'struct rtx_def *(*)(struct rtx_def *, struct rtx_def *, struct rtx_def *, struct rtx_def *)') with an expression of type 'rtx (rtx, ...)' (aka 'struct rtx_def *(struct rtx_def *, ...)') [-Wincompatible-function-pointer-types]
                    rtx (*gen_insn)(rtx, rtx, rtx, rtx) = GEN_FCN ((int) code);
                          ^                               ~~~~~~~~~~~~~~~~~~~~
expr.c:1729:31: error: incompatible function pointer types passing 'rtx (rtx, ...)' (aka 'struct rtx_def *(struct rtx_def *, ...)') to parameter of type 'rtx (*)(rtx, rtx)' (aka 'struct rtx_def *(*)(struct rtx_def *, struct rtx_def *)') [-Wincompatible-function-pointer-types]
            clear_by_pieces_1(GEN_FCN(icode), mode, &data);
                              ^~~~~~~~~~~~~~
expr.c:1835:31: error: incompatible function pointer types initializing 'rtx (*)(rtx, rtx, rtx)' (aka 'struct rtx_def *(*)(struct rtx_def *, struct rtx_def *, struct rtx_def *)') with an expression of type 'rtx (rtx, ...)' (aka 'struct rtx_def *(struct rtx_def *, ...)') [-Wincompatible-function-pointer-types]
                        rtx (*gen_insn)(rtx, rtx, rtx) = GEN_FCN ((int) code);
                              ^                          ~~~~~~~~~~~~~~~~~~~~
expr.c:1995:15: error: incompatible function pointer types initializing 'rtx (*)(rtx, rtx)' (aka 'struct rtx_def *(*)(struct rtx_def *, struct rtx_def *)') with an expression of type 'rtx (rtx, ...)' (aka 'struct rtx_def *(struct rtx_def *, ...)') [-Wincompatible-function-pointer-types]
        rtx (*gen_insn)(rtx, rtx) = GEN_FCN (mov_optab->handlers[(int) mode].insn_code);
              ^                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
expr.c:2012:15: error: incompatible function pointer types initializing 'rtx (*)(rtx, rtx)' (aka 'struct rtx_def *(*)(struct rtx_def *, struct rtx_def *)') with an expression of type 'rtx (rtx, ...)' (aka 'struct rtx_def *(struct rtx_def *, ...)') [-Wincompatible-function-pointer-types]
        rtx (*gen_insn)(rtx, rtx) = GEN_FCN (mov_optab->handlers[(int) submode].insn_code);
              ^                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
expr.c:2328:31: error: incompatible function pointer types initializing 'rtx (*)(rtx, rtx, rtx, rtx)' (aka 'struct rtx_def *(*)(struct rtx_def *, struct rtx_def *, struct rtx_def *, struct rtx_def *)') with an expression of type 'rtx (rtx, ...)' (aka 'struct rtx_def *(struct rtx_def *, ...)') [-Wincompatible-function-pointer-types]
                        rtx (*gen_insn)(rtx, rtx, rtx, rtx) = GEN_FCN ((int) code);
                              ^                               ~~~~~~~~~~~~~~~~~~~~
expr.c:8854:19: error: incompatible function pointer types initializing 'rtx (*)(rtx, rtx, rtx)' (aka 'struct rtx_def *(*)(struct rtx_def *, struct rtx_def *, struct rtx_def *)') with an expression of type 'rtx (rtx, ...)' (aka 'struct rtx_def *(struct rtx_def *, ...)') [-Wincompatible-function-pointer-types]
            rtx (*gen_insn)(rtx, rtx, rtx) = GEN_FCN (icode);
                  ^                          ~~~~~~~~~~~~~~~
expr.c:8863:19: error: incompatible function pointer types initializing 'rtx (*)(rtx, rtx, rtx)' (aka 'struct rtx_def *(*)(struct rtx_def *, struct rtx_def *, struct rtx_def *)') with an expression of type 'rtx (rtx, ...)' (aka 'struct rtx_def *(struct rtx_def *, ...)') [-Wincompatible-function-pointer-types]
            rtx (*gen_insn)(rtx, rtx, rtx) = GEN_FCN (icode);
                  ^                          ~~~~~~~~~~~~~~~
29 warnings and 9 errors generated.

Solution

laqieer/agbcc@ec3f48a

Reference

pret/agbcc#68, pret/agbcc#69, pret/agbcc#73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant