From patchwork Thu Jan 20 15:16:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Millan X-Patchwork-Id: 79701 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 7D01CB6EE8 for ; Fri, 21 Jan 2011 02:16:46 +1100 (EST) Received: (qmail 10238 invoked by alias); 20 Jan 2011 15:16:43 -0000 Received: (qmail 10213 invoked by uid 22791); 20 Jan 2011 15:16:42 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Jan 2011 15:16:38 +0000 Received: by iyj18 with SMTP id 18so672004iyj.20 for ; Thu, 20 Jan 2011 07:16:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.10.200 with SMTP id q8mr2651224ibq.122.1295536596211; Thu, 20 Jan 2011 07:16:36 -0800 (PST) Received: by 10.231.5.153 with HTTP; Thu, 20 Jan 2011 07:16:36 -0800 (PST) Date: Thu, 20 Jan 2011 16:16:36 +0100 Message-ID: Subject: [PATCH #3] declarations that are not Linux-specific From: Robert Millan To: gcc-patches@gcc.gnu.org Cc: Nathan Sidwell , Joseph Myers X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org A few declarations that are not Linux-specific are currently in the Linux-specific sections of config.gcc: - default_gnu_indirect_function, introduced in r164725 - i386/amd64 biarch support, introduced in r118147 Unless there's a reason that really makes them specific to Linux, they can be enabled in all GNU systems. In my tests, this change doesn't prevent bootstrap on either i386 or amd64 GNU/kFreeBSD. Note 0: indentation has been (intentionally) omitted from this patch. Note 1: patch is relative to my previous patch for AMD64 targets running GNU/kFreeBSD. Note 2: ChangeLog entry is in patch header. 2011-01-20 Robert Millan * config.gcc: Make a few declarations available for all GNU targets (instead of just Linux-based ones). === modified file 'gcc/config.gcc' --- gcc/config.gcc 2011-01-18 22:00:14 +0000 +++ gcc/config.gcc 2011-01-19 15:37:29 +0000 @@ -1226,8 +1226,6 @@ i[34567]86-*-linux* | i[34567]86-*-kfree # Intel 80386's running GNU/* # with ELF format using glibc 2 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h" - case ${target} in - i[34567]86-*-linux*) # Assume modern glibc default_gnu_indirect_function=yes if test x$enable_targets = xall; then @@ -1253,20 +1251,19 @@ i[34567]86-*-linux* | i[34567]86-*-kfree else tm_file="${tm_file} i386/linux.h" fi - ;; - i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} i386/linux.h knetbsd-gnu.h i386/knetbsd-gnu.h" ;; - i[34567]86-*-kfreebsd*-gnu) tm_file="${tm_file} i386/linux.h kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;; - i[34567]86-*-kopensolaris*-gnu) tm_file="${tm_file} i386/linux.h kopensolaris-gnu.h i386/kopensolaris-gnu.h" ;; - i[34567]86-*-gnu*) tm_file="$tm_file i386/linux.h gnu.h i386/gnu.h";; + case ${target} in + i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h i386/knetbsd-gnu.h" ;; + i[34567]86-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;; + i[34567]86-*-kopensolaris*-gnu) tm_file="${tm_file} kopensolaris-gnu.h i386/kopensolaris-gnu.h" ;; + i[34567]86-*-gnu*) tm_file="$tm_file gnu.h i386/gnu.h";; esac tmake_file="${tmake_file} i386/t-crtstuff i386/t-crtpc i386/t-crtfm t-dfprules" ;; x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h \ i386/x86-64.h i386/linux64.h" + default_gnu_indirect_function=glibc-2011 case ${target} in - x86_64-*-linux*) - default_gnu_indirect_function=glibc-2011 ;; x86_64-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;; x86_64-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h" ;; esac