added 1 changeset to branch 'refs/remotes/BuildtoolsPM-github/package-management' old head: dd0e14964f0654127a925e9ce0a6b2ca833991d7 new head: b1ef802cdce1ed6f6d491f27009049fa390d3214 overview: https://github.com/haiku/BuildtoolsPM/compare/dd0e149...b1ef802 ---------------------------------------------------------------------------- b1ef802: gcc2 x86_64 build support: pretend we're i386 That's even simpler than the previous approach, which resulted in assembler errors in certain situations. [ Ingo Weinhold <ingo_weinhold@xxxxxx> ] ---------------------------------------------------------------------------- Commit: b1ef802cdce1ed6f6d491f27009049fa390d3214 Author: Ingo Weinhold <ingo_weinhold@xxxxxx> Date: Sun Jul 21 18:57:56 2013 UTC ---------------------------------------------------------------------------- 3 files changed, 6 insertions(+), 51 deletions(-) legacy/gcc/gcc/config/i386/xm-x86_64.h | 43 ------------------------------ legacy/gcc/gcc/configure | 11 ++++---- legacy/gcc/gcc/configure.in | 3 +-- ---------------------------------------------------------------------------- diff --git a/legacy/gcc/gcc/config/i386/xm-x86_64.h b/legacy/gcc/gcc/config/i386/xm-x86_64.h deleted file mode 100644 index ba7b107..0000000 --- a/legacy/gcc/gcc/config/i386/xm-x86_64.h +++ /dev/null @@ -1,43 +0,0 @@ -/* Configuration for GNU C-compiler for Intel 80386. - Copyright (C) 1988, 1993 Free Software Foundation, Inc. - -This file is part of GNU CC. - -GNU CC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU CC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ - -#ifndef i386 -#define i386 -#endif - -/* #defines that need visibility everywhere. */ -#define FALSE 0 -#define TRUE 1 - -/* This describes the machine the compiler is hosted on. */ -#define HOST_BITS_PER_CHAR 8 -#define HOST_BITS_PER_SHORT 16 -#define HOST_BITS_PER_INT 32 -#define HOST_BITS_PER_LONG 64 -#define HOST_BITS_PER_LONGLONG 64 - -/* Arguments to use with `exit'. */ -#define SUCCESS_EXIT_CODE 0 -#define FATAL_EXIT_CODE 33 - -/* target machine dependencies. - tm.h is a symbolic link to the actual target specific file. */ - -#include "tm.h" diff --git a/legacy/gcc/gcc/configure b/legacy/gcc/gcc/configure index e9f9085..57e8c21 100755 --- a/legacy/gcc/gcc/configure +++ b/legacy/gcc/gcc/configure @@ -2948,7 +2948,7 @@ for machine in $build $host $target; do cpu_type=sparc ;; x86_64-*) - cpu_type=x86_64 + cpu_type=i386 ;; esac @@ -5640,11 +5640,10 @@ for machine in $build $host $target; do xm_file="${xm_file} xm-svr3" use_collect2=yes ;; - x86_64-*) - # Not actually supported as a target. But we want to avoid an error when - # building a cross-compiler for this build host. - xm_file=i386/xm-x86_64.h - ;; + x86_64-*) + # Not actually supported as a target. But we want to avoid an error when + # building a cross-compiler for this build host. + ;; *) echo "Configuration $machine not supported" 1>&2 exit 1 diff --git a/legacy/gcc/gcc/configure.in b/legacy/gcc/gcc/configure.in index e310a33..075dae3 100644 --- a/legacy/gcc/gcc/configure.in +++ b/legacy/gcc/gcc/configure.in @@ -514,7 +514,7 @@ changequote([,])dnl cpu_type=sparc ;; x86_64-*) - cpu_type=x86_64 + cpu_type=i386 ;; esac @@ -3347,7 +3347,6 @@ changequote([,])dnl x86_64-*) # Not actually supported as a target. But we want to avoid an error when # building a cross-compiler for this build host. - xm_file=i386/xm-x86_64.h ;; *) echo "Configuration $machine not supported" 1>&2