This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/42947] multilib and startup files paths differ on sh4 with -m4 and without -m4 where -m4 is default multilib
- From: "slyfox at inbox dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 14 Apr 2018 12:21:09 +0000
- Subject: [Bug target/42947] multilib and startup files paths differ on sh4 with -m4 and without -m4 where -m4 is default multilib
- Auto-submitted: auto-generated
- References: <bug-42947-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42947
--- Comment #6 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Created attachment 43931
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43931&action=edit
0001-gcc-config.gcc-sh-Disable-sysroot-suffix-PR42947.patch
0001-gcc-config.gcc-sh-Disable-sysroot-suffix-PR42947.patch implements "- drop
SYSROOT_SUFFIX_SPEC support for sh* targets" above. Tested as:
cc="${HOME}/dev/git/gcc-sh4-installed/bin/sh4-unknown-linux-gnu-gcc
-B/usr/libexec/gcc/sh4-unknown-linux-gnu/"
$ cc="${built}/sh4-unknown-linux-gnu-gcc"
$ echo 'int main(){}' > 'a.c'
$ $cc a.c -o a
$ $cc a.c -o a.m4 -m4
$ $cc a.c -o a.m4 -m4-100
All 3 work now.