This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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] |
Hi, as promised, here is a patch to centralize divdi3.c handling, based on Jakub's patch. Tested on powerpc-linux-gnu. Depending on the defines, it handles things a bit differently: - on platforms that define neither DIVDI3_VERSION nor DIVDI3_DEFAULT_VERSION, it will create hidden definitions of __[u]divdi3/__[u]moddi3 and local definitions for their *_internal counterparts - on platforms defining DIVDI3_VERSION, there will be a local *_internal definition, a hidden definition and a global definition with runtime version - on platforms defining DIVDI3_DEFAULT_VERSION, there will be a local *_internal definition and a global definition with linktime version (an additional hidden definition, saving some PLT entries, would collide with the default version) Franz. * sysdeps/arm/Makefile: Delete file. * sysdeps/i386/Makefile: Delete obsoleted db2 handling. (csu/sysdep_routines): Remove divdi3. (csu/shared_only_routines): Remove divdi3. (CPPFLAGS-divdi3.c): New macro. * sysdeps/m68k/Makefile (csu/sysdep_routines): Remove divdi3. (csu/shared_only_routines): Remove divdi3. (CPPFLAGS-divdi3.c): New macro. * sysdeps/s390/s390-32/Makefile (csu/sysdep_routines): Remove divdi3. (csu/shared_only_routines): Remove divdi3. (CPPFLAGS-divdi3.c): New macro. * sysdeps/powerpc/powerpc32/Makefile (csu/sysdep_routines): Remove divdi3. (csu/shared_only_routines): Remove divdi3. (CPPFLAGS-divdi3.c): New macro. * sysdeps/powerpc/powerpc32/divdi3.c: Delete file. * sysdeps/sh/Makefile (csu/sysdep_routines): Remove divdi3. (csu/shared_only_routines): Remove divdi3. * sysdeps/wordsize-32/Makefile: New file. * sysdeps/wordsize-32/divdi3.c: Add version handling.
Attachment:
glibc-divdi3-3.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |