From 01c19d4774d5fde96e8f99c1f6f554a303194e8e Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Tue, 19 Apr 2005 18:50:14 +0000 Subject: [PATCH] * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs. From-SVN: r98417 --- gcc/ChangeLog | 4 ++++ gcc/config/arm/arm.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fdbb23c2160..99347ef2b43 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-04-19 Paul Brook + + * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs. + 2005-04-19 Andrew Haley PR java/21022 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index b713bff9a30..6336016078d 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -755,6 +755,13 @@ arm_init_libfuncs (void) set_optab_libfunc (udiv_optab, DImode, "__aeabi_uldivmod"); set_optab_libfunc (sdiv_optab, SImode, "__aeabi_idivmod"); set_optab_libfunc (udiv_optab, SImode, "__aeabi_uidivmod"); + + /* We don't have mod libcalls. Fortunately gcc knows how to use the + divmod libcalls instead. */ + set_optab_libfunc (smod_optab, DImode, NULL); + set_optab_libfunc (umod_optab, DImode, NULL); + set_optab_libfunc (smod_optab, SImode, NULL); + set_optab_libfunc (umod_optab, SImode, NULL); } /* Fix up any incompatible options that the user has specified. -- 2.30.2