public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/27060] New: divide libcall size has increased
@ 2006-04-06 14:06 amylaar at gcc dot gnu dot org
2006-04-06 14:14 ` [Bug target/27060] " amylaar at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2006-04-06 14:06 UTC (permalink / raw)
To: gcc-bugs
The new sped-optimized division library functions are larger than the functions
that were originally used; unsigned and signed division are implemented in a
modulte which has an object text size of 1060 bytes.
This could cause problems with specialized embedded applications that are
supposed to run in a very small memory area.
--
Summary: divide libcall size has increased
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: amylaar at gcc dot gnu dot org
GCC target triplet: sh4-*-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27060
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/27060] divide libcall size has increased
2006-04-06 14:06 [Bug target/27060] New: divide libcall size has increased amylaar at gcc dot gnu dot org
@ 2006-04-06 14:14 ` amylaar at gcc dot gnu dot org
2006-04-12 20:09 ` amylaar at gcc dot gnu dot org
2006-11-15 16:13 ` amylaar at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2006-04-06 14:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from amylaar at gcc dot gnu dot org 2006-04-06 14:14 -------
This can be fixed by providing an additional library, which provides
udivsi3_i4i and sdivsi3_i4i implementations that are comparable in speed and
size to what we had before, and which is linked in in preference to libgcc when
linking with -Os, like the libic_invalidate_array*.a libraries provide taylored
cache invalidataion arrays.
I intend to provide implementations optimized for the sh4-100 / sh4-200
pipelines;
libraries optimized for other pipelines could be added later.
--
amylaar at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |27059
AssignedTo|unassigned at gcc dot gnu |amylaar at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-04-06 14:14:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27060
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/27060] divide libcall size has increased
2006-04-06 14:06 [Bug target/27060] New: divide libcall size has increased amylaar at gcc dot gnu dot org
2006-04-06 14:14 ` [Bug target/27060] " amylaar at gcc dot gnu dot org
@ 2006-04-12 20:09 ` amylaar at gcc dot gnu dot org
2006-11-15 16:13 ` amylaar at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2006-04-12 20:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from amylaar at gcc dot gnu dot org 2006-04-12 20:09 -------
Subject: Bug 27060
Author: amylaar
Date: Wed Apr 12 20:09:41 2006
New Revision: 112898
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112898
Log:
2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
PR target/27060
* config/sh/lib1funcs.h: New file, broken out of:
* config/sh/lib1funcs.asm.
* config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
New macros.
* config/sh/lib1funcs.asm (udivsi3_i4): Use them.
* config/sh/lib1funcs-Os-4-200.asm: New file.
* config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
* config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
(EXTRA_MULTILIB_PARTS): Include it.
($(T)sdivsi3_i4i-Os-4-200.o): New rule.
($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
* config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
* config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
TARGET_SH2.
Added:
trunk/gcc/config/sh/lib1funcs-Os-4-200.asm
trunk/gcc/config/sh/lib1funcs.h
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sh/embed-elf.h
trunk/gcc/config/sh/lib1funcs.asm
trunk/gcc/config/sh/sh.h
trunk/gcc/config/sh/t-sh
trunk/gcc/config/sh/t-superh
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27060
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/27060] divide libcall size has increased
2006-04-06 14:06 [Bug target/27060] New: divide libcall size has increased amylaar at gcc dot gnu dot org
2006-04-06 14:14 ` [Bug target/27060] " amylaar at gcc dot gnu dot org
2006-04-12 20:09 ` amylaar at gcc dot gnu dot org
@ 2006-11-15 16:13 ` amylaar at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2006-11-15 16:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from amylaar at gcc dot gnu dot org 2006-11-15 16:13 -------
FIxed with patch from Apr 12 20:09:41 2006
--
amylaar at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27060
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-15 16:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-06 14:06 [Bug target/27060] New: divide libcall size has increased amylaar at gcc dot gnu dot org
2006-04-06 14:14 ` [Bug target/27060] " amylaar at gcc dot gnu dot org
2006-04-12 20:09 ` amylaar at gcc dot gnu dot org
2006-11-15 16:13 ` amylaar at gcc dot gnu dot org
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).