* [Bug target/55351] can't build libgcc for -m5-compact variant in SH64
2012-11-16 11:56 [Bug target/55351] New: can't build libgcc for -m5-compact variant in SH64 dan at danny dot cz
@ 2012-11-19 16:02 ` nickc at redhat dot com
2012-11-20 15:10 ` dhowells at redhat dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: nickc at redhat dot com @ 2012-11-19 16:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351
--- Comment #1 from Nick Clifton <nickc at redhat dot com> 2012-11-19 16:01:36 UTC ---
Created attachment 28732
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28732
Fixes to allow libgcc to build for the sh64-linux target
I am no SH expert, so this patch may well be wrong. But it does allow libgcc
to built (for all supported multilibs) for the sh64-linux target.
There seem to be three problems:
1. As reported in this PR, the sdivsi3 function is being built for the
L_div_table target when it clearly uses instructions that are not supported by
the target SH variant. I have assumed that this is a mistake and so stopped
the function from being built for the m5-compact multilib.
2. The udiv_qrnnd_16 function is not being built. It is built for non-Linux
Sh targets, so I have assumed that it is an oversight and added it to the list
of functions to build.
3. The m5-media64 and m5-media64-nofpu multilibs need the linker to support a
shlefl64_linux emulation. The linker does not do this, so I have suppressed
all multilibs based on these options.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/55351] can't build libgcc for -m5-compact variant in SH64
2012-11-16 11:56 [Bug target/55351] New: can't build libgcc for -m5-compact variant in SH64 dan at danny dot cz
2012-11-19 16:02 ` [Bug target/55351] " nickc at redhat dot com
@ 2012-11-20 15:10 ` dhowells at redhat dot com
2012-11-20 15:16 ` dan at danny dot cz
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dhowells at redhat dot com @ 2012-11-20 15:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351
--- Comment #2 from dhowells at redhat dot com <dhowells at redhat dot com> 2012-11-20 15:09:42 UTC ---
The first hunk of the patch that adds:
MULTILIB_EXCEPTIONS = *m5-64media* *m5-64media-nofpu*
to gcc/config/sh/t-linux causes the sh-linux-gnu build to fail. Commenting out
this line allows both sh- and sh64-linux-gnu to build.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/55351] can't build libgcc for -m5-compact variant in SH64
2012-11-16 11:56 [Bug target/55351] New: can't build libgcc for -m5-compact variant in SH64 dan at danny dot cz
2012-11-19 16:02 ` [Bug target/55351] " nickc at redhat dot com
2012-11-20 15:10 ` dhowells at redhat dot com
@ 2012-11-20 15:16 ` dan at danny dot cz
2014-12-01 23:35 ` olegendo at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dan at danny dot cz @ 2012-11-20 15:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351
--- Comment #3 from Dan Horák <dan at danny dot cz> 2012-11-20 15:15:50 UTC ---
(In reply to comment #2)
> The first hunk of the patch that adds:
>
> MULTILIB_EXCEPTIONS = *m5-64media* *m5-64media-nofpu*
>
> to gcc/config/sh/t-linux causes the sh-linux-gnu build to fail. Commenting out
> this line allows both sh- and sh64-linux-gnu to build.
I guess there is a conflict with the "!" values in
--with-multilib-list=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single,!m2a,!m2a-single
passed to the sh-linux compiler
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/55351] can't build libgcc for -m5-compact variant in SH64
2012-11-16 11:56 [Bug target/55351] New: can't build libgcc for -m5-compact variant in SH64 dan at danny dot cz
` (2 preceding siblings ...)
2012-11-20 15:16 ` dan at danny dot cz
@ 2014-12-01 23:35 ` olegendo at gcc dot gnu.org
2014-12-07 23:14 ` olegendo at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: olegendo at gcc dot gnu.org @ 2014-12-01 23:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |segher at gcc dot gnu.org
--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> ---
I think this issue was fixed by r218190:
libgcc/ChangeLog:
* config/sh/lib1funcs.S: Check value of __SHMEDIA__ instead of checking
whether it's defined.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/55351] can't build libgcc for -m5-compact variant in SH64
2012-11-16 11:56 [Bug target/55351] New: can't build libgcc for -m5-compact variant in SH64 dan at danny dot cz
` (3 preceding siblings ...)
2014-12-01 23:35 ` olegendo at gcc dot gnu.org
@ 2014-12-07 23:14 ` olegendo at gcc dot gnu.org
2014-12-09 6:27 ` segher at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: olegendo at gcc dot gnu.org @ 2014-12-07 23:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351
--- Comment #5 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Segher, was the error in the original description here the same you were
hitting when building sh64 linux?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/55351] can't build libgcc for -m5-compact variant in SH64
2012-11-16 11:56 [Bug target/55351] New: can't build libgcc for -m5-compact variant in SH64 dan at danny dot cz
` (4 preceding siblings ...)
2014-12-07 23:14 ` olegendo at gcc dot gnu.org
@ 2014-12-09 6:27 ` segher at gcc dot gnu.org
2014-12-09 22:46 ` olegendo at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: segher at gcc dot gnu.org @ 2014-12-09 6:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351
--- Comment #6 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Yes it was. Thanks for fixing.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/55351] can't build libgcc for -m5-compact variant in SH64
2012-11-16 11:56 [Bug target/55351] New: can't build libgcc for -m5-compact variant in SH64 dan at danny dot cz
` (5 preceding siblings ...)
2014-12-09 6:27 ` segher at gcc dot gnu.org
@ 2014-12-09 22:46 ` olegendo at gcc dot gnu.org
2014-12-09 22:52 ` olegendo at gcc dot gnu.org
2014-12-09 22:53 ` olegendo at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: olegendo at gcc dot gnu.org @ 2014-12-09 22:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351
--- Comment #7 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Author: olegendo
Date: Tue Dec 9 22:45:26 2014
New Revision: 218544
URL: https://gcc.gnu.org/viewcvs?rev=218544&root=gcc&view=rev
Log:
libgcc/
Backport from mainline
2014-11-30 Oleg Endo <olegendo@gcc.gnu.org>
PR target/55351
* config/sh/lib1funcs.S: Check value of __SHMEDIA__ instead of checking
whether it's defined.
Modified:
branches/gcc-4_9-branch/libgcc/ChangeLog
branches/gcc-4_9-branch/libgcc/config/sh/lib1funcs.S
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/55351] can't build libgcc for -m5-compact variant in SH64
2012-11-16 11:56 [Bug target/55351] New: can't build libgcc for -m5-compact variant in SH64 dan at danny dot cz
` (6 preceding siblings ...)
2014-12-09 22:46 ` olegendo at gcc dot gnu.org
@ 2014-12-09 22:52 ` olegendo at gcc dot gnu.org
2014-12-09 22:53 ` olegendo at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: olegendo at gcc dot gnu.org @ 2014-12-09 22:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351
--- Comment #8 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Author: olegendo
Date: Tue Dec 9 22:51:32 2014
New Revision: 218545
URL: https://gcc.gnu.org/viewcvs?rev=218545&root=gcc&view=rev
Log:
libgcc/
Backport from mainline
2014-11-30 Oleg Endo <olegendo@gcc.gnu.org>
PR target/55351
* config/sh/lib1funcs.S: Check value of __SHMEDIA__ instead of checking
whether it's defined.
Modified:
branches/gcc-4_8-branch/libgcc/ChangeLog
branches/gcc-4_8-branch/libgcc/config/sh/lib1funcs.S
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/55351] can't build libgcc for -m5-compact variant in SH64
2012-11-16 11:56 [Bug target/55351] New: can't build libgcc for -m5-compact variant in SH64 dan at danny dot cz
` (7 preceding siblings ...)
2014-12-09 22:52 ` olegendo at gcc dot gnu.org
@ 2014-12-09 22:53 ` olegendo at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: olegendo at gcc dot gnu.org @ 2014-12-09 22:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Fixed on trunk (5.0), 4.9 and 4.8.
^ permalink raw reply [flat|nested] 10+ messages in thread