This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, libbid]: Fix "variable âQlâ set but not used" warnings


Hello!

Attached patch fixes several "variable âQlâ set but not used" warnings
in bid128_div.c and bid64_div.c libbid sources. We can simply use
__mul_128x128_high functions when lowpart is not needed.

2014-05-26  Uros Bizjak  <ubizjak@gmail.com>

    * bid128_div.c (BID128_FUNCTION_ARG2): Remove unused variable 'Ql'.
    Call __mul_128x128_high instead of __mul_128x128_full.
    (TYPE0_FUNCTION_ARGTYPE1_ARGTYPE2): Ditto.
    (BID128_FUNCTION_ARGTYPE1_ARG128): Ditto.
    (BID128_FUNCTION_ARG128_ARGTYPE2): Ditto.
    * bid64_div.c (TYPE0_FUNCTION_ARGTYPE1_ARG128): Ditto.
    (TYPE0_FUNCTION_ARG128_ARGTYPE2): Ditto.
    (TYPE0_FUNCTION_ARG128_ARG128): Ditto.

Bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32}.

HJ, should this be fixed upstream first?

Uros.

Attachment: l.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]