mklibgcc.in uses mkdir to create multilib subdirs. This fails on targets with deep multlib-subdirs, when no multilib variant in a parent multilib subdir exists. E.g. target=sh-rtems: libgcc.a ml/m2/libgcc.a .. Note no ml/libgcc.a This isse seems to be fixed in gcc-3.4/CVS-HEAD, but is present on gcc-3_3-branch and affects sh-rtems* targets. For these targets, this is a regression against gcc-3.2.x which did not expose this issue.
Created attachment 5148 [details] Replacing mkdir with mkinstalldir
Can you send the patch to gcc-patches@gcc.gnu.org.
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2003-11/msg01395.html>.
Gaby could you look at the patch here for approval, it is basically a backport of this patch: <http://gcc.gnu.org/ml/gcc-patches/2003-05/msg00630.html>.
The patch is OK with all the corrections that ensued. -- Gaby
I will commit it with all of the followups which are needed.
Subject: Bug 13068 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_3-branch Changes by: pinskia@gcc.gnu.org 2003-12-24 22:42:33 Modified files: gcc : ChangeLog mklibgcc.in Log message: 2003-12-24 Andrew Pinski <pinskia@physics.uc.edu> PR bootstrap/13068 Backport from mainline: 2003-05-09 Matt Kraai <kraai@alumni.cmu.edu> * mklibgcc.in: Remove extra quotes. 2003-05-08 Aldy Hernandez <aldyh@redhat.com> * mklibgcc.in: Use mkinstalldirs when installing multilib directories. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.861&r2=1.16114.2.862 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/mklibgcc.in.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.48.4.4&r2=1.48.4.5
Fixed for 3.3.3.