public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch,avr] Remove fixed-point MUL and DIV routines from libgcc build
@ 2013-01-28 17:06 Georg-Johann Lay
  2013-01-29  6:51 ` Denis Chertykov
  0 siblings, 1 reply; 2+ messages in thread
From: Georg-Johann Lay @ 2013-01-28 17:06 UTC (permalink / raw)
  To: gcc-patches; +Cc: Denis Chertykov, Eric Weddington

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

This removes modules from libgcc that are already supported by avr-specific
fixed-point implementation and avoids duplicate functions like __mulsa3.

Ok for trunk?

Johann


libgcc/
	* config/avr/t-avr (LIB2FUNCS_EXCLUDE): Add:
	_mulQQ,  _mulHQ,  _mulHA,  _mulSA,
	_mulUQQ, _mulUHQ, _mulUHA, _mulUSA,
	_divQQ,  _divHQ,  _divHA,  _divSA,
	_divUQQ, _divUHQ, _divUHA, _divUSA.

[-- Attachment #2: libgcc-nomul.diff --]
[-- Type: text/x-patch, Size: 656 bytes --]

Index: config/avr/t-avr
===================================================================
--- config/avr/t-avr	(revision 195301)
+++ config/avr/t-avr	(working copy)
@@ -164,3 +164,17 @@ LIB2FUNCS_EXCLUDE += \
 LIB2FUNCS_EXCLUDE += \
 	$(foreach func,_usadd _ussub _usneg,\
 	$(foreach mode,$(usat_modes),$(func_X)))
+
+
+smul_modes =  QQ  HQ  HA  SA
+umul_modes = UQQ UHQ UHA USA
+sdiv_modes =  QQ  HQ  HA  SA
+udiv_modes = UQQ UHQ UHA USA
+
+LIB2FUNCS_EXCLUDE += \
+	$(foreach func,_mul,\
+	$(foreach mode,$(smul_modes) $(umul_modes),$(func_X)))
+
+LIB2FUNCS_EXCLUDE += \
+	$(foreach func,_div,\
+	$(foreach mode,$(sdiv_modes) $(udiv_modes),$(func_X)))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch,avr] Remove fixed-point MUL and DIV routines from libgcc build
  2013-01-28 17:06 [Patch,avr] Remove fixed-point MUL and DIV routines from libgcc build Georg-Johann Lay
@ 2013-01-29  6:51 ` Denis Chertykov
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Chertykov @ 2013-01-29  6:51 UTC (permalink / raw)
  To: Georg-Johann Lay; +Cc: gcc-patches, Eric Weddington

2013/1/28 Georg-Johann Lay <avr@gjlay.de>:
> This removes modules from libgcc that are already supported by avr-specific
> fixed-point implementation and avoids duplicate functions like __mulsa3.
>
> Ok for trunk?
>
> Johann
>
>
> libgcc/
>         * config/avr/t-avr (LIB2FUNCS_EXCLUDE): Add:
>         _mulQQ,  _mulHQ,  _mulHA,  _mulSA,
>         _mulUQQ, _mulUHQ, _mulUHA, _mulUSA,
>         _divQQ,  _divHQ,  _divHA,  _divSA,
>         _divUQQ, _divUHQ, _divUHA, _divUSA.

Approved.

Denis.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-29  6:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-28 17:06 [Patch,avr] Remove fixed-point MUL and DIV routines from libgcc build Georg-Johann Lay
2013-01-29  6:51 ` Denis Chertykov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).