[Bug target/55351] can't build libgcc for -m5-compact variant in SH64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351 Oleg Endo changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #9 from Oleg Endo --- Fixed on trunk (5.0), 4.9 and 4.8.
[Bug target/55351] can't build libgcc for -m5-compact variant in SH64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351 --- Comment #8 from Oleg Endo --- 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 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
[Bug target/55351] can't build libgcc for -m5-compact variant in SH64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351 --- Comment #7 from Oleg Endo --- 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 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
[Bug target/55351] can't build libgcc for -m5-compact variant in SH64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351 --- Comment #6 from Segher Boessenkool --- Yes it was. Thanks for fixing.
[Bug target/55351] can't build libgcc for -m5-compact variant in SH64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351 --- Comment #5 from Oleg Endo --- Segher, was the error in the original description here the same you were hitting when building sh64 linux?
[Bug target/55351] can't build libgcc for -m5-compact variant in SH64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351 Oleg Endo changed: What|Removed |Added CC||segher at gcc dot gnu.org --- Comment #4 from Oleg Endo --- 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.
[Bug target/55351] can't build libgcc for -m5-compact variant in SH64
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351 --- Comment #3 from Dan HorĂ¡k 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
[Bug target/55351] can't build libgcc for -m5-compact variant in SH64
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351 --- Comment #2 from 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.
[Bug target/55351] can't build libgcc for -m5-compact variant in SH64
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55351 --- Comment #1 from Nick Clifton 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.