Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gcc Add arm/xm-netbsd.h which defines ONL...



details:   https://anonhg.NetBSD.org/src/rev/f16a796fe585
branches:  trunk
changeset: 524354:f16a796fe585
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Mar 24 18:05:57 2002 +0000

description:
Add arm/xm-netbsd.h which defines ONLY_INT_FIELDS, and use it for
NetBSD ARM ELF targets.  This is necessary in order for the compiler
to build with packed enums.

diffstat:

 gnu/dist/toolchain/gcc/config/arm/xm-netbsd.h |  27 +++++++++++++++++++++++++++
 gnu/dist/toolchain/gcc/configure              |   1 +
 gnu/dist/toolchain/gcc/configure.in           |   1 +
 3 files changed, 29 insertions(+), 0 deletions(-)

diffs (53 lines):

diff -r 1de29d510b8c -r f16a796fe585 gnu/dist/toolchain/gcc/config/arm/xm-netbsd.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gcc/config/arm/xm-netbsd.h     Sun Mar 24 18:05:57 2002 +0000
@@ -0,0 +1,27 @@
+/* Configuration for GCC for ARM running NetBSD.
+   Copyright (C) 2002 Free Software Foundation, Inc.
+   Contributed by Wasabi Systems, 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.  */
+
+/* ARM ELF uses packed enums, so we need to make sure bitfields
+   that use them are ints, so that the bitfield doesn't exceed
+   the width of the type.  */
+#ifndef ONLY_INT_FIELDS
+#define ONLY_INT_FIELDS
+#endif
diff -r 1de29d510b8c -r f16a796fe585 gnu/dist/toolchain/gcc/configure
--- a/gnu/dist/toolchain/gcc/configure  Sun Mar 24 18:05:45 2002 +0000
+++ b/gnu/dist/toolchain/gcc/configure  Sun Mar 24 18:05:57 2002 +0000
@@ -3178,6 +3178,7 @@
                tmake_file=arm/t-semiaof
                ;;
        arm*-*-netbsdelf*)
+               xm_file="arm/xm-netbsd.h ${xm_file}"
                gas=yes gnu_ld=yes
                ;;
        arm*-*-netbsd*)
diff -r 1de29d510b8c -r f16a796fe585 gnu/dist/toolchain/gcc/configure.in
--- a/gnu/dist/toolchain/gcc/configure.in       Sun Mar 24 18:05:45 2002 +0000
+++ b/gnu/dist/toolchain/gcc/configure.in       Sun Mar 24 18:05:57 2002 +0000
@@ -752,6 +752,7 @@
                tmake_file=arm/t-semiaof
                ;;
        arm*-*-netbsdelf*)
+               xm_file="arm/xm-netbsd.h ${xm_file}"
                gas=yes gnu_ld=yes
                ;;
        arm*-*-netbsd*)



Home | Main Index | Thread Index | Old Index