From patchwork Tue Jul 5 12:13:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [build] Move MD_UNWIND_SUPPORT to toplevel libgcc From: Thomas Schwinge X-Patchwork-Id: 103267 Message-Id: <87iprhgc32.fsf@kepler.schwinge.homeip.net> To: Rainer Orth Cc: Paolo Bonzini , gcc-patches@gcc.gnu.org Date: Tue, 05 Jul 2011 14:13:05 +0200 Hallo! On Tue, 05 Jul 2011 13:52:08 +0200, Rainer Orth wrote: > > Like this? [...] > > Instead of nested cases, I'd rather use one i[34567]86-*-linux* case and > another for the rest, duplicating extra_parts and tmake_file. Same for > x86_64-*-linux* vs. the rest. > > But that's just me. My idea was to keep the GNU systems' extra_parts and tmake_file stanzas together. But it's a bit wishi washi anyway in all these configuration files, so we might as well use the following patch. Manually tested as before -- more testing required? libgcc/ config.host: Use i386/linux-unwind.h only for *-*-linux*. --- libgcc/config.host | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libgcc/config.host b/libgcc/config.host index 326ce91..c89155f 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -351,16 +351,24 @@ i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) ;; i[34567]86-*-openbsd*) ;; -i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) +i[34567]86-*-linux*) extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" md_unwind_header=i386/linux-unwind.h ;; -x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) +i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) + extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" + tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" + ;; +x86_64-*-linux*) extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" md_unwind_header=i386/linux-unwind.h ;; +x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) + extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" + tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" + ;; i[34567]86-pc-msdosdjgpp*) ;; i[34567]86-*-lynxos*)