--- gcc-4.4.3.ORIG/gcc/config.gcc 2009/09/22 01:33:53 151959 +++ gcc-4.4.3/gcc/config.gcc 2009/09/22 02:28:19 151960 @@ -400,9 +400,12 @@ *-*-darwin*) tm_file="${tm_file} darwin.h" case ${target} in - *-*-darwin[912]*) + *-*-darwin9*) tm_file="${tm_file} darwin9.h" ;; + *-*-darwin[12][0-9]*) + tm_file="${tm_file} darwin9.h darwin10.h" + ;; esac tm_file="${tm_file} ${cpu_type}/darwin.h" tm_p_file="${tm_p_file} darwin-protos.h" diff -uNr gcc-4.4.3.ORIG/gcc/config/darwin10.h gcc-4.4.3/gcc/config/darwin10.h --- gcc-4.4.3.ORIG/gcc/config/darwin10.h 2010-03-16 01:15:49.000000000 +0900 +++ gcc-4.4.3/gcc/config/darwin10.h 2010-03-16 01:04:15.000000000 +0900 @@ -0,0 +1,25 @@ +/* Target definitions for Darwin (Mac OS X) systems. + Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Contributed by Jack Howarth . + +This file is part of GCC. + +GCC 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 3, or (at your option) +any later version. + +GCC 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 GCC; see the file COPYING3. If not see +. */ + +/* Fix PR41260 by passing -no_compact_unwind on darwin10 and later until +unwinder in libSystem is fixed to digest new epilog unwinding notes. */ + +#undef LIB_SPEC +#define LIB_SPEC "%{!static:-no_compact_unwind -lSystem}"