Module Name: src Committed By: matt Date: Thu Jan 31 07:11:08 UTC 2013
Modified Files: src/external/gpl3/gcc/dist/gcc/config/arm: t-netbsd t-netbsd-eabi Added Files: src/external/gpl3/gcc/dist/gcc/config/arm: unwind-netbsd.h Log Message: Add a unwind-netbsd.h which will include the proper unwind.h file depending on __ARM_EABI__. This allow gcc to build libgcc for both ABIs properly since they both different unwind.h. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd-eabi cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/dist/gcc/config/arm/unwind-netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd diff -u src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd:1.3 src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd:1.4 --- src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd:1.3 Mon Jul 4 22:44:56 2011 +++ src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd Thu Jan 31 07:11:08 2013 @@ -23,6 +23,9 @@ TARGET_LIBGCC2_CFLAGS = -fomit-frame-poi LIBGCC2_DEBUG_CFLAGS = -g0 LIB2FUNCS_EXTRA = $(srcdir)/config/floatunsidf.c $(srcdir)/config/floatunsisf.c +# to make compat easier. +UNWIND_H = $(srcdir)/config/arm/unwind-netbsd.h + # This list is from t-arm-elf, but with some things removed. LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func \ _call_via_rX _interwork_call_via_rX \ Index: src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd-eabi diff -u src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd-eabi:1.2 src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd-eabi:1.3 --- src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd-eabi:1.2 Mon Aug 6 00:24:13 2012 +++ src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd-eabi Thu Jan 31 07:11:08 2013 @@ -33,3 +33,6 @@ LIB2FUNCS_EXTRA = $(srcdir)/config/arm/b # we don't have this LIB2FUNCS_STATIC_EXTRA = + +# to make compat easier. +UNWIND_H = $(srcdir)/config/arm/unwind-netbsd.h Added files: Index: src/external/gpl3/gcc/dist/gcc/config/arm/unwind-netbsd.h diff -u /dev/null src/external/gpl3/gcc/dist/gcc/config/arm/unwind-netbsd.h:1.1 --- /dev/null Thu Jan 31 07:11:09 2013 +++ src/external/gpl3/gcc/dist/gcc/config/arm/unwind-netbsd.h Thu Jan 31 07:11:08 2013 @@ -0,0 +1,34 @@ +/* Header file for the NetBSD ARM unwinder + Copyright (C) 2013 + Free Software Foundation, Inc. + Contributed by Matt Thomas + + This file 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. + + This file 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. + + Under Section 7 of GPL version 3, you are granted additional + permissions described in the GCC Runtime Library Exception, version + 3.1, as published by the Free Software Foundation. + + You should have received a copy of the GNU General Public License and + a copy of the GCC Runtime Library Exception along with this program; + see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + <http://www.gnu.org/licenses/>. */ + +#ifndef UNWIND_NETBSD_H +#define UNWIND_NETBSD_H + +#ifdef __ARM_EABI__ +#include "unwind-arm.h" +#else +#include "unwind-generic.h" +#endif /* defined __ARM_EABI__ */ + +#endif /* defined UNWIND_NETBSD_H */