Source-Changes-HG archive

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

[src/trunk]: src/external gmp, binutils, gcc, gdb configury for coldfire



details:   https://anonhg.NetBSD.org/src/rev/fbdc3b6ab9e1
branches:  trunk
changeset: 788795:fbdc3b6ab9e1
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jul 19 22:14:23 2013 +0000

description:
gmp, binutils, gcc, gdb configury for coldfire

diffstat:

 external/gpl3/binutils/lib/libbfd/arch/coldfire/bfd.h            |  5958 +++++++++
 external/gpl3/binutils/lib/libbfd/arch/coldfire/bfd_stdint.h     |    51 +
 external/gpl3/binutils/lib/libbfd/arch/coldfire/bfdver.h         |     8 +
 external/gpl3/binutils/lib/libbfd/arch/coldfire/config.h         |   368 +
 external/gpl3/binutils/lib/libbfd/arch/coldfire/defs.mk          |     9 +
 external/gpl3/binutils/lib/libiberty/arch/coldfire/config.h      |   495 +
 external/gpl3/binutils/lib/libiberty/arch/coldfire/defs.mk       |     8 +
 external/gpl3/binutils/lib/libopcodes/arch/coldfire/config.h     |   114 +
 external/gpl3/binutils/lib/libopcodes/arch/coldfire/defs.mk      |     6 +
 external/gpl3/binutils/usr.bin/common/arch/coldfire/config.h     |   244 +
 external/gpl3/binutils/usr.bin/common/arch/coldfire/defs.mk      |    36 +
 external/gpl3/binutils/usr.bin/gas/arch/coldfire/config.h        |   324 +
 external/gpl3/binutils/usr.bin/gas/arch/coldfire/defs.mk         |     8 +
 external/gpl3/binutils/usr.bin/gas/arch/coldfire/itbl-cpu.h      |     4 +
 external/gpl3/binutils/usr.bin/gas/arch/coldfire/obj-format.h    |     4 +
 external/gpl3/binutils/usr.bin/gas/arch/coldfire/targ-cpu.h      |     4 +
 external/gpl3/binutils/usr.bin/gas/arch/coldfire/targ-env.h      |     4 +
 external/gpl3/binutils/usr.bin/gprof/arch/coldfire/defs.mk       |     8 +
 external/gpl3/binutils/usr.bin/gprof/arch/coldfire/gconfig.h     |   118 +
 external/gpl3/binutils/usr.bin/ld/arch/coldfire/config.h         |   220 +
 external/gpl3/binutils/usr.bin/ld/arch/coldfire/defs.mk          |    12 +
 external/gpl3/binutils/usr.bin/ld/arch/coldfire/ldemul-list.h    |    13 +
 external/gpl3/gcc/lib/crtstuff/arch/coldfire.mk                  |    13 +
 external/gpl3/gcc/lib/libgcc/arch/coldfire.mk                    |    26 +
 external/gpl3/gcc/lib/libgcc/libgcov/arch/coldfire/defs.mk       |     7 +
 external/gpl3/gcc/lib/libgcc/libgcov/arch/coldfire/gcov-iov.h    |     8 +
 external/gpl3/gcc/lib/libgomp/arch/coldfire/config.h             |   136 +
 external/gpl3/gcc/lib/libgomp/arch/coldfire/libgomp.spec         |     7 +
 external/gpl3/gcc/lib/libgomp/arch/coldfire/libgomp_f.h          |    97 +
 external/gpl3/gcc/lib/libgomp/arch/coldfire/omp.h                |   109 +
 external/gpl3/gcc/lib/libiberty/arch/coldfire/config.h           |   480 +
 external/gpl3/gcc/lib/libobjc/arch/coldfire/config.h             |    73 +
 external/gpl3/gcc/lib/libobjc/arch/coldfire/defs.mk              |    16 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/c++allocator.h  |    41 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/c++config.h     |  1507 ++
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/config.h        |  1127 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/cxxabi_tweaks.h |    62 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/defs.mk         |    48 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/gstdint.h       |    51 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/gthr-default.h  |   872 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/gthr-posix.h    |   872 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/gthr-single.h   |   296 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/gthr-tpf.h      |   233 +
 external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/gthr.h          |   177 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/all-tree.def         |     5 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/auto-host.h          |  1915 +++
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/bconfig.h            |    11 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/bversion.h           |     8 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/config.h             |    14 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/configargs.h         |    11 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/defs.mk              |    66 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/gthr-default.h       |     5 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/gtyp-input.list      |   185 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/multilib.h           |    20 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/plugin-version.h     |    17 +
 external/gpl3/gcc/usr.bin/gcc/arch/coldfire/tm.h                 |    31 +
 external/gpl3/gcc/usr.bin/libcpp/arch/coldfire/config.h          |   290 +
 external/gpl3/gcc/usr.bin/libdecnumber/arch/coldfire/config.h    |    99 +
 external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd-in3.h             |  5976 ++++++++++
 external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd.h                 |  5976 ++++++++++
 external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd_stdint.h          |    51 +
 external/gpl3/gdb/lib/libbfd/arch/coldfire/bfdver.h              |     8 +
 external/gpl3/gdb/lib/libbfd/arch/coldfire/config.h              |   356 +
 external/gpl3/gdb/lib/libbfd/arch/coldfire/defs.mk               |     9 +
 external/gpl3/gdb/lib/libbfd/arch/coldfire/targmatch.h           |  2640 ++++
 external/gpl3/gdb/lib/libdecnumber/arch/coldfire/config.h        |   243 +
 external/gpl3/gdb/lib/libdecnumber/arch/coldfire/defs.mk         |     5 +
 external/gpl3/gdb/lib/libdecnumber/arch/coldfire/gstdint.h       |    51 +
 external/gpl3/gdb/lib/libgdb/arch/coldfire/config.h              |   986 +
 external/gpl3/gdb/lib/libgdb/arch/coldfire/defs.mk               |     7 +
 external/gpl3/gdb/lib/libgdb/arch/coldfire/init.c                |   254 +
 external/gpl3/gdb/lib/libgdb/arch/coldfire/observer.h            |   246 +
 external/gpl3/gdb/lib/libgdb/arch/coldfire/observer.inc          |  1034 +
 external/gpl3/gdb/lib/libgdb/arch/coldfire/version.c             |     8 +
 external/gpl3/gdb/lib/libgdb/arch/coldfire/xml-builtin.c         |   534 +
 external/gpl3/gdb/lib/libiberty/arch/coldfire/config.h           |   495 +
 external/gpl3/gdb/lib/libiberty/arch/coldfire/defs.mk            |     8 +
 external/gpl3/gdb/lib/libopcodes/arch/coldfire/config.h          |   114 +
 external/gpl3/gdb/lib/libopcodes/arch/coldfire/defs.mk           |     7 +
 external/gpl3/gdb/lib/libreadline/arch/coldfire/config.h         |   243 +
 external/gpl3/gdb/lib/libreadline/arch/coldfire/defs.mk          |     6 +
 external/lgpl3/gmp/lib/libgmp/arch/coldfire/Makefile.inc         |   163 +
 external/lgpl3/gmp/lib/libgmp/arch/coldfire/config.h             |   587 +
 external/lgpl3/gmp/lib/libgmp/arch/coldfire/config.m4            |    19 +
 external/lgpl3/gmp/lib/libgmp/arch/coldfire/gmp-mparam.h         |    22 +
 external/lgpl3/gmp/lib/libgmp/arch/coldfire/gmp.h                |  2283 +++
 external/lgpl3/gmp/lib/libgmp/arch/coldfire/mp.h                 |   164 +
 87 files changed, 39446 insertions(+), 0 deletions(-)

diffs (truncated from 39794 to 300 lines):

diff -r 19e52ca9217a -r fbdc3b6ab9e1 external/gpl3/binutils/lib/libbfd/arch/coldfire/bfd.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/binutils/lib/libbfd/arch/coldfire/bfd.h     Fri Jul 19 22:14:23 2013 +0000
@@ -0,0 +1,5958 @@
+/* This file is automatically generated.  DO NOT EDIT! */
+/* Generated from:     NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp  */
+
+/* DO NOT EDIT!  -*- buffer-read-only: t -*-  This file is automatically 
+   generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c", 
+   "bfdio.c", "bfdwin.c", "section.c", "archures.c", "reloc.c", 
+   "syms.c", "bfd.c", "archive.c", "corefile.c", "targets.c", "format.c", 
+   "linker.c", "simple.c" and "compress.c".
+   Run "make headers" in your build bfd/ to regenerate.  */
+
+/* Main header file for the bfd library -- portable access to object files.
+
+   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
+   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+   Free Software Foundation, Inc.
+
+   Contributed by Cygnus Support.
+
+   This file is part of BFD, the Binary File Descriptor library.
+
+   This program 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 of the License, or
+   (at your option) any later version.
+
+   This program 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 this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
+
+#ifndef __BFD_H_SEEN__
+#define __BFD_H_SEEN__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "ansidecl.h"
+#include "symcat.h"
+#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
+#ifndef SABER
+/* This hack is to avoid a problem with some strict ANSI C preprocessors.
+   The problem is, "32_" is not a valid preprocessing token, and we don't
+   want extra underscores (e.g., "nlm_32_").  The XCONCAT2 macro will
+   cause the inner CONCAT2 macros to be evaluated first, producing
+   still-valid pp-tokens.  Then the final concatenation can be done.  */
+#undef CONCAT4
+#define CONCAT4(a,b,c,d) XCONCAT2(CONCAT2(a,b),CONCAT2(c,d))
+#endif
+#endif
+
+/* This is a utility macro to handle the situation where the code
+   wants to place a constant string into the code, followed by a
+   comma and then the length of the string.  Doing this by hand
+   is error prone, so using this macro is safer.  */
+#define STRING_COMMA_LEN(STR) (STR), (sizeof (STR) - 1)
+/* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
+   to create the arguments to another macro, since the preprocessor
+   will mis-count the number of arguments to the outer macro (by not
+   evaluating STRING_COMMA_LEN and so missing the comma).  This is a
+   problem for example when trying to use STRING_COMMA_LEN to build
+   the arguments to the strncmp() macro.  Hence this alternative
+   definition of strncmp is provided here.
+   
+   Note - these macros do NOT work if STR2 is not a constant string.  */
+#define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof (STR2) - 1) == 0)
+  /* strcpy() can have a similar problem, but since we know we are
+     copying a constant string, we can use memcpy which will be faster
+     since there is no need to check for a NUL byte inside STR.  We
+     can also save time if we do not need to copy the terminating NUL.  */
+#define LITMEMCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2) - 1)
+#define LITSTRCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2))
+
+
+#define BFD_SUPPORTS_PLUGINS 0
+
+/* The word size used by BFD on the host.  This may be 64 with a 32
+   bit target if the host is 64 bit, or if other 64 bit targets have
+   been selected with --enable-targets, or if --enable-64-bit-bfd.  */
+#define BFD_ARCH_SIZE 32
+
+/* The word size of the default bfd target.  */
+#define BFD_DEFAULT_TARGET_SIZE 32
+
+#define BFD_HOST_64BIT_LONG 0
+#define BFD_HOST_64BIT_LONG_LONG 1
+#if 1
+#define BFD_HOST_64_BIT long long
+#define BFD_HOST_U_64_BIT unsigned long long
+typedef BFD_HOST_64_BIT bfd_int64_t;
+typedef BFD_HOST_U_64_BIT bfd_uint64_t;
+#endif
+
+#if BFD_ARCH_SIZE >= 64
+#define BFD64
+#endif
+
+#ifndef INLINE
+#if __GNUC__ >= 2
+#define INLINE __inline__
+#else
+#define INLINE
+#endif
+#endif
+
+/* Declaring a type wide enough to hold a host long and a host pointer.  */
+#define BFD_HOSTPTR_T  unsigned long
+typedef BFD_HOSTPTR_T bfd_hostptr_t;
+
+/* Forward declaration.  */
+typedef struct bfd bfd;
+
+/* Boolean type used in bfd.  Too many systems define their own
+   versions of "boolean" for us to safely typedef a "boolean" of
+   our own.  Using an enum for "bfd_boolean" has its own set of
+   problems, with strange looking casts required to avoid warnings
+   on some older compilers.  Thus we just use an int.
+
+   General rule: Functions which are bfd_boolean return TRUE on
+   success and FALSE on failure (unless they're a predicate).  */
+
+typedef int bfd_boolean;
+#undef FALSE
+#undef TRUE
+#define FALSE 0
+#define TRUE 1
+
+#ifdef BFD64
+
+#ifndef BFD_HOST_64_BIT
+ #error No 64 bit integer type available
+#endif /* ! defined (BFD_HOST_64_BIT) */
+
+typedef BFD_HOST_U_64_BIT bfd_vma;
+typedef BFD_HOST_64_BIT bfd_signed_vma;
+typedef BFD_HOST_U_64_BIT bfd_size_type;
+typedef BFD_HOST_U_64_BIT symvalue;
+
+#if BFD_HOST_64BIT_LONG
+#define BFD_VMA_FMT "l"
+#elif defined (__MSVCRT__)
+#define BFD_VMA_FMT "I64"
+#else
+#define BFD_VMA_FMT "ll"
+#endif
+
+#ifndef fprintf_vma
+#define sprintf_vma(s,x) sprintf (s, "%016" BFD_VMA_FMT "x", x)
+#define fprintf_vma(f,x) fprintf (f, "%016" BFD_VMA_FMT "x", x)
+#endif
+
+#else /* not BFD64  */
+
+/* Represent a target address.  Also used as a generic unsigned type
+   which is guaranteed to be big enough to hold any arithmetic types
+   we need to deal with.  */
+typedef unsigned long bfd_vma;
+
+/* A generic signed type which is guaranteed to be big enough to hold any
+   arithmetic types we need to deal with.  Can be assumed to be compatible
+   with bfd_vma in the same way that signed and unsigned ints are compatible
+   (as parameters, in assignment, etc).  */
+typedef long bfd_signed_vma;
+
+typedef unsigned long symvalue;
+typedef unsigned long bfd_size_type;
+
+/* Print a bfd_vma x on stream s.  */
+#define BFD_VMA_FMT "l"
+#define fprintf_vma(s,x) fprintf (s, "%08" BFD_VMA_FMT "x", x)
+#define sprintf_vma(s,x) sprintf (s, "%08" BFD_VMA_FMT "x", x)
+
+#endif /* not BFD64  */
+
+#define HALF_BFD_SIZE_TYPE \
+  (((bfd_size_type) 1) << (8 * sizeof (bfd_size_type) / 2))
+
+#ifndef BFD_HOST_64_BIT
+/* Fall back on a 32 bit type.  The idea is to make these types always
+   available for function return types, but in the case that
+   BFD_HOST_64_BIT is undefined such a function should abort or
+   otherwise signal an error.  */
+typedef bfd_signed_vma bfd_int64_t;
+typedef bfd_vma bfd_uint64_t;
+#endif
+
+/* An offset into a file.  BFD always uses the largest possible offset
+   based on the build time availability of fseek, fseeko, or fseeko64.  */
+typedef BFD_HOST_64_BIT file_ptr;
+typedef unsigned BFD_HOST_64_BIT ufile_ptr;
+
+extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
+extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
+
+#define printf_vma(x) fprintf_vma(stdout,x)
+#define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x)
+
+typedef unsigned int flagword; /* 32 bits of flags */
+typedef unsigned char bfd_byte;
+
+/* File formats.  */
+
+typedef enum bfd_format
+{
+  bfd_unknown = 0,     /* File format is unknown.  */
+  bfd_object,          /* Linker/assembler/compiler output.  */
+  bfd_archive,         /* Object archive file.  */
+  bfd_core,            /* Core dump.  */
+  bfd_type_end         /* Marks the end; don't use it!  */
+}
+bfd_format;
+
+/* Symbols and relocation.  */
+
+/* A count of carsyms (canonical archive symbols).  */
+typedef unsigned long symindex;
+
+/* How to perform a relocation.  */
+typedef const struct reloc_howto_struct reloc_howto_type;
+
+#define BFD_NO_MORE_SYMBOLS ((symindex) ~0)
+
+/* General purpose part of a symbol X;
+   target specific parts are in libcoff.h, libaout.h, etc.  */
+
+#define bfd_get_section(x) ((x)->section)
+#define bfd_get_output_section(x) ((x)->section->output_section)
+#define bfd_set_section(x,y) ((x)->section) = (y)
+#define bfd_asymbol_base(x) ((x)->section->vma)
+#define bfd_asymbol_value(x) (bfd_asymbol_base(x) + (x)->value)
+#define bfd_asymbol_name(x) ((x)->name)
+/*Perhaps future: #define bfd_asymbol_bfd(x) ((x)->section->owner)*/
+#define bfd_asymbol_bfd(x) ((x)->the_bfd)
+#define bfd_asymbol_flavour(x)                 \
+  (((x)->flags & BSF_SYNTHETIC) != 0           \
+   ? bfd_target_unknown_flavour                        \
+   : bfd_asymbol_bfd (x)->xvec->flavour)
+
+/* A canonical archive symbol.  */
+/* This is a type pun with struct ranlib on purpose!  */
+typedef struct carsym
+{
+  char *name;
+  file_ptr file_offset;        /* Look here to find the file.  */
+}
+carsym;                        /* To make these you call a carsymogen.  */
+
+/* Used in generating armaps (archive tables of contents).
+   Perhaps just a forward definition would do?  */
+struct orl                     /* Output ranlib.  */
+{
+  char **name;         /* Symbol name.  */
+  union
+  {
+    file_ptr pos;
+    bfd *abfd;
+  } u;                 /* bfd* or file position.  */
+  int namidx;          /* Index into string table.  */
+};
+
+/* Linenumber stuff.  */
+typedef struct lineno_cache_entry
+{
+  unsigned int line_number;    /* Linenumber from start of function.  */
+  union
+  {
+    struct bfd_symbol *sym;    /* Function name.  */
+    bfd_vma offset;                    /* Offset into section.  */
+  } u;
+}
+alent;
+
+/* Object and core file sections.  */
+
+#define        align_power(addr, align)        \
+  (((addr) + ((bfd_vma) 1 << (align)) - 1) & ((bfd_vma) -1 << (align)))
+
+typedef struct bfd_section *sec_ptr;
+
+#define bfd_get_section_name(bfd, ptr) ((ptr)->name + 0)
+#define bfd_get_section_vma(bfd, ptr) ((ptr)->vma + 0)
+#define bfd_get_section_lma(bfd, ptr) ((ptr)->lma + 0)
+#define bfd_get_section_alignment(bfd, ptr) ((ptr)->alignment_power + 0)
+#define bfd_section_name(bfd, ptr) ((ptr)->name)
+#define bfd_section_size(bfd, ptr) ((ptr)->size)
+#define bfd_get_section_size(ptr) ((ptr)->size)
+#define bfd_section_vma(bfd, ptr) ((ptr)->vma)
+#define bfd_section_lma(bfd, ptr) ((ptr)->lma)
+#define bfd_section_alignment(bfd, ptr) ((ptr)->alignment_power)
+#define bfd_get_section_flags(bfd, ptr) ((ptr)->flags + 0)
+#define bfd_get_section_userdata(bfd, ptr) ((ptr)->userdata)



Home | Main Index | Thread Index | Old Index