From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11572 invoked by alias); 20 Jun 2010 10:57:06 -0000 Received: (qmail 11507 invoked by uid 48); 20 Jun 2010 10:56:53 -0000 Date: Sun, 20 Jun 2010 10:57:00 -0000 Message-ID: <20100620105653.11506.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/44531] [4.5/4.6 Regression] [SH] Multilib configuration does not work as expected on darwin In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kkojima at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-06/txt/msg01947.txt.bz2 ------- Comment #3 from kkojima at gcc dot gnu dot org 2010-06-20 10:56 ------- I can reproduce it on an old ppc darwin. It looks that this darwin's sed doesn't support the 'i' modifier for the 's' command and drops all multilibs list specified. Does the patch below work for you? --- gcc/config.gcc~ 2010-04-07 19:34:00.000000000 +0900 +++ gcc/config.gcc 2010-06-20 18:08:46.000000000 +0900 @@ -2315,7 +2315,7 @@ sh-*-symbianelf* | sh[12346l]*-*-symbian target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_` tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"' tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" - sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^sh/m/i' -e 's/ sh/ m/gi' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-` + sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-` for sh_multilib in ${sh_multilibs}; do case ${sh_multilib} in m1 | m2 | m2e | m3 | m3e | \ -- kkojima at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW Ever Confirmed|0 |1 Known to fail| |4.5.0 4.6.0 Known to work| |4.4.4 Last reconfirmed|0000-00-00 00:00:00 |2010-06-20 10:56:53 date| | Summary|[SuperH] Multilib |[4.5/4.6 Regression] [SH] |configuration does not work |Multilib configuration does |as expected |not work as expected on | |darwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44531