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 1/2, libgcc]: Implement _divmoddi4


This function will be used in a follow-up patch to implement
TARGET_EXPAND_DIVMOD_LIBFUNC for x86 targets. Other targets can call
this function, so IMO it should be part of a generic library.

2016-10-31  Uros Bizjak  <ubizjak@gmail.com>

    * Makefile.in (LIB2_DIVMOD_FUNCS): Add _divmoddi4.
    * libgcc2.c (__divmoddi4): New function.
    * libgcc2.h (__divmoddi4): Declare.
    * libgcc-std.ver.in (GCC_7.0.0): New. Add __PFX_divmoddi4
    and __PFX_divmodti4.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32} with a
follow-up target-dependent  patch.

OK for mainline?

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]