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

aarch64_multibinary.h: Fix -Wasm-operand-widths #286

Closed
wants to merge 1 commit into from

Commits on Apr 28, 2024

  1. aarch64_multibinary.h: Fix -Wasm-operand-widths

    Compilation with clang gave warnings as per below.
    Arm64 is has a width of 64 bit and these warnings came up.
    
    In file included from igzip/aarch64/igzip_multibinary_aarch64_dispatcher.c:29:
    ./include/aarch64_multibinary.h:338:35: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
                    asm("mrs %0, MIDR_EL1 " : "=r" (id));
                                                    ^
    ./include/aarch64_multibinary.h:338:12: note: use constraint modifier "w"
                    asm("mrs %0, MIDR_EL1 " : "=r" (id));
                             ^~
                             %w0
    1 warning generated.
    In file included from mem/aarch64/mem_aarch64_dispatcher.c:29:
    ./include/aarch64_multibinary.h:338:35: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
                    asm("mrs %0, MIDR_EL1 " : "=r" (id));
                                                    ^
    ./include/aarch64_multibinary.h:338:12: note: use constraint modifier "w"
                    asm("mrs %0, MIDR_EL1 " : "=r" (id));
                             ^~
                             %w0
    1 warning generated.
    
    Signed-off-by: Bernd Schubert <bschubert@ddn.com>
    bsbernd committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    1951de3 View commit details
    Browse the repository at this point in the history