Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[BUILD] : lm32--netbsd cross compilation toolchain now builds using N…

…etBSD build system

You can now compile lm32--netbsd cross compilation toolchain:

$ ./build.sh -U -m lm32 tools
  • Loading branch information...
commit a5153fa93a0cc61ca266f2403d84d2a1223ed72b 1 parent ad16a38
Yann Sionneau authored fallen committed
1  build.sh
@@ -650,6 +650,7 @@ MACHINE=vax		MACHINE_ARCH=vax
650 650
 MACHINE=x68k		MACHINE_ARCH=m68k
651 651
 MACHINE=zaurus		MACHINE_ARCH=arm	DEFAULT
652 652
 MACHINE=zaurus		MACHINE_ARCH=earm
  653
+MACHINE=lm32 		MACHINE_ARCH=lm32
653 654
 '
654 655
 
655 656
 # getarch -- find the default MACHINE_ARCH for a MACHINE,
5  external/gpl3/binutils/dist/bfd/config.bfd
@@ -748,6 +748,11 @@ case "${targ}" in
748 748
     targ_defvec=bfd_elf32_iq2000_vec
749 749
     ;;
750 750
 
  751
+   lm32-*-netbsd*)
  752
+    targ_defvec=bfd_elf32_lm32_netbsd_vec
  753
+    targ_selvecs=bfd_elf32_lm32_vec
  754
+    ;;
  755
+
751 756
   lm32-*-elf | lm32-*-rtems*)
752 757
     targ_defvec=bfd_elf32_lm32_vec
753 758
     targ_selvecs=bfd_elf32_lm32fdpic_vec
1  external/gpl3/binutils/dist/bfd/configure
@@ -15229,6 +15229,7 @@ do
15229 15229
     bfd_elf32_ip2k_vec)		tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
15230 15230
     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
15231 15231
     bfd_elf32_lm32_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
  15232
+    bfd_elf32_lm32_netbsd_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15232 15233
     bfd_elf32_lm32fdpic_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15233 15234
     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15234 15235
     bfd_elf32_littlearc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
1  external/gpl3/binutils/dist/bfd/configure.in
@@ -720,6 +720,7 @@ do
720 720
     bfd_elf32_ip2k_vec)		tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
721 721
     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
722 722
     bfd_elf32_lm32_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
  723
+    bfd_elf32_lm32_netbsd_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
723 724
     bfd_elf32_lm32fdpic_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
724 725
     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
725 726
     bfd_elf32_littlearc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11  external/gpl3/binutils/dist/bfd/elf32-lm32.c
@@ -2903,3 +2903,14 @@ lm32_elf_fdpic_copy_private_bfd_data (bfd *ibfd, bfd *obfd)
2903 2903
 #define bfd_elf32_bfd_copy_private_bfd_data     lm32_elf_fdpic_copy_private_bfd_data
2904 2904
 
2905 2905
 #include "elf32-target.h"
  2906
+
  2907
+#undef TARGET_BIG_SYM
  2908
+#define TARGET_BIG_SYM  bfd_elf32_lm32_netbsd_vec
  2909
+#undef TARGET_BIG_NAME
  2910
+#define TARGET_BIG_NAME "elf32-lm32-netbsd"
  2911
+#undef ELF_OSABI
  2912
+#define ELF_OSABI ELFOSABI_NETBSD
  2913
+#undef elf32_bed
  2914
+#define elf32_bed elf32_lm32_netbsd_bed
  2915
+
  2916
+#include "elf32-target.h"
2  external/gpl3/binutils/dist/bfd/targets.c
@@ -616,6 +616,7 @@ extern const bfd_target bfd_elf32_ia64_hpux_big_vec;
616 616
 extern const bfd_target bfd_elf32_ip2k_vec;
617 617
 extern const bfd_target bfd_elf32_iq2000_vec;
618 618
 extern const bfd_target bfd_elf32_lm32_vec;
  619
+extern const bfd_target bfd_elf32_lm32_netbsd_vec;
619 620
 extern const bfd_target bfd_elf32_lm32fdpic_vec;
620 621
 extern const bfd_target bfd_elf32_little_generic_vec;
621 622
 extern const bfd_target bfd_elf32_littlearc_vec;
@@ -963,6 +964,7 @@ static const bfd_target * const _bfd_target_vector[] =
963 964
 	&bfd_elf32_ip2k_vec,
964 965
 	&bfd_elf32_iq2000_vec,
965 966
 	&bfd_elf32_lm32_vec,
  967
+	&bfd_elf32_lm32_netbsd_vec,
966 968
 	&bfd_elf32_little_generic_vec,
967 969
 	&bfd_elf32_littlearc_vec,
968 970
 	&bfd_elf32_littlearm_vec,
4  external/gpl3/gcc/dist/gcc/config.gcc
@@ -1565,6 +1565,10 @@ iq2000*-*-elf*)
1565 1565
         out_file=iq2000/iq2000.c
1566 1566
         md_file=iq2000/iq2000.md
1567 1567
         ;;
  1568
+lm32-*-netbsd*)
  1569
+	tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h lm32/lm32-netbsd.h ${tm_file}"
  1570
+	tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp"
  1571
+	;;
1568 1572
 lm32-*-elf*)
1569 1573
         tm_file="dbxelf.h elfos.h ${tm_file}"
1570 1574
 	tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp"
117  external/gpl3/gcc/dist/gcc/config/lm32/lm32-netbsd.h
... ...
@@ -0,0 +1,117 @@
  1
+/* Definitions for PA_RISC with ELF format
  2
+   Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  3
+
  4
+This file is part of GCC.
  5
+
  6
+GCC is free software; you can redistribute it and/or modify
  7
+it under the terms of the GNU General Public License as published by
  8
+the Free Software Foundation; either version 2, or (at your option)
  9
+any later version.
  10
+
  11
+GCC is distributed in the hope that it will be useful,
  12
+but WITHOUT ANY WARRANTY; without even the implied warranty of
  13
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14
+GNU General Public License for more details.
  15
+
  16
+You should have received a copy of the GNU General Public License
  17
+along with GCC; see the file COPYING.  If not, write to
  18
+the Free Software Foundation, 59 Temple Place - Suite 330,
  19
+Boston, MA 02111-1307, USA.  */
  20
+
  21
+
  22
+#undef TARGET_OS_CPP_BUILTINS
  23
+#define TARGET_OS_CPP_BUILTINS()		\
  24
+  do						\
  25
+    {						\
  26
+      NETBSD_OS_CPP_BUILTINS_ELF();             \
  27
+    }						\
  28
+  while (0)
  29
+
  30
+#undef CPP_SPEC
  31
+#define CPP_SPEC NETBSD_CPP_SPEC
  32
+
  33
+#undef ASM_SPEC
  34
+#define ASM_SPEC \
  35
+  "%{v:-V} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
  36
+
  37
+#undef EXTRA_SPECS
  38
+#define EXTRA_SPECS \
  39
+  { "netbsd_entry_point",	NETBSD_ENTRY_POINT },
  40
+
  41
+#define NETBSD_ENTRY_POINT "__start"
  42
+
  43
+#undef LINK_SPEC
  44
+#define LINK_SPEC NETBSD_LINK_SPEC_ELF
  45
+
  46
+/* NetBSD profiling functions don't need gcc to allocate counters.  */
  47
+#define NO_DEFERRED_PROFILE_COUNTERS 1
  48
+
  49
+/* Define the strings used for the special svr4 .type and .size directives.
  50
+   These strings generally do not vary from one system running svr4 to
  51
+   another, but if a given system (e.g. m88k running svr) needs to use
  52
+   different pseudo-op names for these, they may be overridden in the
  53
+   file which includes this one.  */
  54
+
  55
+#undef STRING_ASM_OP
  56
+#define STRING_ASM_OP   "\t.stringz"
  57
+
  58
+#define TEXT_SECTION_ASM_OP "\t.text"
  59
+#define DATA_SECTION_ASM_OP "\t.data"
  60
+#define BSS_SECTION_ASM_OP "\t.section\t.bss"
  61
+
  62
+/* We want local labels to start with period if made with asm_fprintf.  */
  63
+#undef LOCAL_LABEL_PREFIX
  64
+#define LOCAL_LABEL_PREFIX "."
  65
+
  66
+/* Define these to generate the Linux/ELF/SysV style of internal
  67
+   labels all the time - i.e. to be compatible with
  68
+   ASM_GENERATE_INTERNAL_LABEL in <elfos.h>.  Compare these with the
  69
+   ones in pa.h and note the lack of dollar signs in these.  FIXME:
  70
+   shouldn't we fix pa.h to use ASM_GENERATE_INTERNAL_LABEL instead? */
  71
+
  72
+#undef ASM_OUTPUT_ADDR_VEC_ELT
  73
+#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
  74
+  if (TARGET_BIG_SWITCH)					\
  75
+    fprintf (FILE, "\t.word .L%d\n", VALUE);			\
  76
+  else								\
  77
+    fprintf (FILE, "\tb .L%d\n\tnop\n", VALUE)
  78
+
  79
+#undef ASM_OUTPUT_ADDR_DIFF_ELT
  80
+#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
  81
+  if (TARGET_BIG_SWITCH)					\
  82
+    fprintf (FILE, "\t.word .L%d-.L%d\n", VALUE, REL);		\
  83
+  else								\
  84
+    fprintf (FILE, "\tb .L%d\n\tnop\n", VALUE)
  85
+
  86
+/* Use the default.  */
  87
+#undef ASM_OUTPUT_LABEL
  88
+
  89
+/* NOTE: (*targetm.asm_out.internal_label)() is defined for us by elfos.h, and
  90
+   does what we want (i.e. uses colons).  It must be compatible with
  91
+   ASM_GENERATE_INTERNAL_LABEL(), so do not define it here.  */
  92
+
  93
+/* Use the default.  */
  94
+#undef ASM_OUTPUT_INTERNAL_LABEL
  95
+                    
  96
+/* Use the default.  */
  97
+#undef TARGET_ASM_GLOBALIZE_LABEL
  98
+
  99
+/* FIXME: Hacked from the <elfos.h> one so that we avoid multiple
  100
+   labels in a function declaration (since pa.c seems determined to do
  101
+   it differently)  */
  102
+
  103
+#undef ASM_DECLARE_FUNCTION_NAME
  104
+#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)		\
  105
+  do								\
  106
+    {								\
  107
+      ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "function");	\
  108
+      ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL));		\
  109
+    }								\
  110
+  while (0)
  111
+
  112
+/* NetBSD always uses gas.  */
  113
+#undef TARGET_GAS
  114
+#define TARGET_GAS 1
  115
+
  116
+#undef PTRDIFF_TYPE
  117
+#define PTRDIFF_TYPE "long int"
3  share/mk/bsd.endian.mk
@@ -22,7 +22,8 @@ TARGET_ENDIANNESS=	1234
22 22
       ${MACHINE_ARCH} == "powerpc64" || \
23 23
       ${MACHINE_ARCH} == "sparc" || \
24 24
       ${MACHINE_ARCH} == "sparc64" || \
25  
-      ${MACHINE_ARCH:C/^.*eb$/eb/} == "eb"
  25
+      ${MACHINE_ARCH:C/^.*eb$/eb/} == "eb" || \
  26
+      ${MACHINE_ARCH} == "lm32"
26 27
 TARGET_ENDIANNESS=	4321
27 28
 .endif
28 29
 
6  share/mk/bsd.own.mk
@@ -63,7 +63,8 @@ HAVE_GCC?=    45
63 63
     ${MACHINE_ARCH} == "i386" || \
64 64
     ${MACHINE_ARCH} == "powerpc" || \
65 65
     ${MACHINE_CPU} == "sh3" || \
66  
-    ${MACHINE_ARCH} == "x86_64"
  66
+    ${MACHINE_ARCH} == "x86_64" || \
  67
+    ${MACHINE_ARCH} == "lm32"
67 68
 USE_COMPILERCRTSTUFF?=	no
68 69
 .endif
69 70
 USE_COMPILERCRTSTUFF?=	yes
@@ -74,7 +75,8 @@ HAVE_GDB?=	7
74 75
     (${MACHINE_ARCH} == "hppa") || \
75 76
     (${MACHINE_ARCH} == "ia64") || \
76 77
     (${MACHINE_ARCH} == "mipsel") || (${MACHINE_ARCH} == "mipseb") || \
77  
-    (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
  78
+    (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb") || \
  79
+    (${MACHINE_ARCH} == "lm32")
78 80
 HAVE_SSP?=	no
79 81
 .else
80 82
 HAVE_SSP?=	yes
75  sys/arch/lm32/include/disklabel.h
... ...
@@ -0,0 +1,75 @@
  1
+/*	$NetBSD: disklabel.h,v 1.16 2011/08/30 12:39:55 bouyer Exp $	*/
  2
+
  3
+/*
  4
+ * Copyright (c) 1994 Christopher G. Demetriou
  5
+ * All rights reserved.
  6
+ *
  7
+ * Redistribution and use in source and binary forms, with or without
  8
+ * modification, are permitted provided that the following conditions
  9
+ * are met:
  10
+ * 1. Redistributions of source code must retain the above copyright
  11
+ *    notice, this list of conditions and the following disclaimer.
  12
+ * 2. Redistributions in binary form must reproduce the above copyright
  13
+ *    notice, this list of conditions and the following disclaimer in the
  14
+ *    documentation and/or other materials provided with the distribution.
  15
+ * 3. All advertising materials mentioning features or use of this software
  16
+ *    must display the following acknowledgement:
  17
+ *      This product includes software developed by Christopher G. Demetriou.
  18
+ * 4. The name of the author may not be used to endorse or promote products
  19
+ *    derived from this software without specific prior written permission
  20
+ *
  21
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  22
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  23
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  24
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  25
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  26
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  30
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31
+ */
  32
+
  33
+#ifndef _LM32_DISKLABEL_H_
  34
+#define _LM32_DISKLABEL_H_
  35
+
  36
+#define LABELUSESMBR		1	/* use MBR partitionning */
  37
+#define	LABELSECTOR		1	/* sector containing label */
  38
+#define	LABELOFFSET		0	/* offset of label in sector */
  39
+#define	MAXPARTITIONS		16	/* number of partitions */
  40
+#define	OLDMAXPARTITIONS 	8	/* number of partitions before 1.6 */
  41
+#define	RAW_PART		3	/* raw partition: XX?d (XXX) */
  42
+
  43
+/*
  44
+ * We use the highest bit of the minor number for the partition number.
  45
+ * This maintains backward compatibility with device nodes created before
  46
+ * MAXPARTITIONS was increased.
  47
+ */
  48
+#define __LM32_MAXDISKS	((1 << 20) / MAXPARTITIONS)
  49
+#define DISKUNIT(dev)	((minor(dev) / OLDMAXPARTITIONS) % __LM32_MAXDISKS)
  50
+#define DISKPART(dev)	((minor(dev) % OLDMAXPARTITIONS) + \
  51
+    ((minor(dev) / (__LM32_MAXDISKS * OLDMAXPARTITIONS)) * OLDMAXPARTITIONS))
  52
+#define	DISKMINOR(unit, part) \
  53
+    (((unit) * OLDMAXPARTITIONS) + ((part) % OLDMAXPARTITIONS) + \
  54
+     ((part) / OLDMAXPARTITIONS) * (__LM32_MAXDISKS * OLDMAXPARTITIONS))
  55
+
  56
+/* Pull in MBR partition definitions. */
  57
+#if HAVE_NBTOOL_CONFIG_H
  58
+#include <nbinclude/sys/bootblock.h>
  59
+#else
  60
+#include <sys/bootblock.h>
  61
+#endif /* HAVE_NBTOOL_CONFIG_H */
  62
+
  63
+#ifndef __ASSEMBLER__
  64
+#if HAVE_NBTOOL_CONFIG_H
  65
+#include <nbinclude/sys/dkbad.h>
  66
+#else
  67
+#include <sys/dkbad.h>
  68
+#endif /* HAVE_NBTOOL_CONFIG_H */
  69
+struct cpu_disklabel {
  70
+#define __HAVE_DISKLABEL_DKBAD
  71
+	struct dkbad bad;
  72
+};
  73
+#endif
  74
+
  75
+#endif /* _LM32_DISKLABEL_H_ */
37  sys/arch/lm32/include/elf_machdep.h
... ...
@@ -0,0 +1,37 @@
  1
+/*	$NetBSD: elf_machdep.h,v 1.10 2009/05/30 05:56:52 skrll Exp $	*/
  2
+
  3
+#define	ELF32_MACHDEP_ENDIANNESS	ELFDATA2MSB
  4
+#define	ELF32_MACHDEP_ID_CASES						\
  5
+		case EM_LM32:						\
  6
+			break;
  7
+
  8
+#define	ELF64_MACHDEP_ENDIANNESS	XXX	/* break compilation */
  9
+#define	ELF64_MACHDEP_ID_CASES						\
  10
+		/* no 64-bit ELF machine types supported */
  11
+
  12
+#define	ELF32_MACHDEP_ID		EM_LM32
  13
+
  14
+#define ARCH_ELFSIZE		32	/* MD native binary size */
  15
+
  16
+/* iLM32 relocations */
  17
+#define	R_LM32_NONE		0
  18
+#define	R_LM32_8		1
  19
+#define	R_LM32_16		2
  20
+#define	R_LM32_32		3
  21
+#define	R_LM32_HI16		4
  22
+#define	R_LM32_LO16		5
  23
+#define	R_LM32_GPREL16		6
  24
+#define	R_LM32_CALL		7
  25
+#define	R_LM32_BRANCH		8
  26
+#define R_LM32_GNU_VTINHERIT 	9
  27
+#define R_LM32_GNU_VTENTRY 	10
  28
+#define R_LM32_16_GOT 		11
  29
+#define R_LM32_GOTOFF_HI16 	12
  30
+#define R_LM32_GOTOFF_LO16 	13
  31
+#define R_LM32_COPY 		14
  32
+#define R_LM32_GLOB_DAT 	15
  33
+#define R_LM32_JMP_SLOT 	16
  34
+#define R_LM32_RELATIVE 	17
  35
+
  36
+
  37
+#define	R_TYPE(name)	__CONCAT(R_LM32_,name)
14  tools/headerlist
... ...
@@ -1,7 +1,7 @@
1  
-# $NetBSD: headerlist,v 1.6 2011/01/26 01:18:55 pooka Exp $
  1
+# $NetBSD$
2 2
 #
3 3
 # do not edit; this file was automatically generated by:
4  
-#	NetBSD: mkheaderlist.sh,v 1.1 2007/08/07 12:38:23 yamt Exp 
  4
+#	NetBSD: mkheaderlist.sh,v 1.2 2011/02/05 13:30:26 yamt Exp 
5 5
 
6 6
 ./acorn26/include/disklabel.h
7 7
 ./acorn26/include/elf_machdep.h
@@ -23,7 +23,6 @@
23 23
 ./arm/include/elf_machdep.h
24 24
 ./atari/include/disklabel.h
25 25
 ./atari/include/elf_machdep.h
26  
-./mips/include/elf_machdep.h
27 26
 ./bebox/include/disklabel.h
28 27
 ./bebox/include/elf_machdep.h
29 28
 ./cats/include/disklabel.h
@@ -32,10 +31,10 @@
32 31
 ./cesfic/include/elf_machdep.h
33 32
 ./cobalt/include/disklabel.h
34 33
 ./cobalt/include/elf_machdep.h
35  
-./emips/include/disklabel.h
36  
-./emips/include/elf_machdep.h
37 34
 ./dreamcast/include/disklabel.h
38 35
 ./dreamcast/include/elf_machdep.h
  36
+./emips/include/disklabel.h
  37
+./emips/include/elf_machdep.h
39 38
 ./evbarm/include/disklabel.h
40 39
 ./evbarm/include/elf_machdep.h
41 40
 ./evbmips/include/disklabel.h
@@ -51,8 +50,8 @@
51 50
 ./hp700/include/disklabel.h
52 51
 ./hp700/include/elf_machdep.h
53 52
 ./hpc/stand/hpcboot/arm/elf_machdep.h
54  
-./hpc/stand/hpcboot/sh3/elf_machdep.h
55 53
 ./hpc/stand/hpcboot/mips/elf_machdep.h
  54
+./hpc/stand/hpcboot/sh3/elf_machdep.h
56 55
 ./hpc/stand/include/machine/disklabel.h
57 56
 ./hpc/stand/include/machine/elf_machdep.h
58 57
 ./hpcarm/include/disklabel.h
@@ -75,6 +74,8 @@
75 74
 ./iyonix/include/elf_machdep.h
76 75
 ./landisk/include/disklabel.h
77 76
 ./landisk/include/elf_machdep.h
  77
+./lm32/include/disklabel.h
  78
+./lm32/include/elf_machdep.h
78 79
 ./luna68k/include/disklabel.h
79 80
 ./luna68k/include/elf_machdep.h
80 81
 ./m68k/include/elf_machdep.h
@@ -82,6 +83,7 @@
82 83
 ./mac68k/include/elf_machdep.h
83 84
 ./macppc/include/disklabel.h
84 85
 ./macppc/include/elf_machdep.h
  86
+./mips/include/elf_machdep.h
85 87
 ./mipsco/include/disklabel.h
86 88
 ./mipsco/include/elf_machdep.h
87 89
 ./mmeye/include/disklabel.h
0  tools/mkheaderlist.sh 100644 → 100755
File mode changed
54  usr.bin/xlint/arch/lm32/targparam.h
... ...
@@ -0,0 +1,54 @@
  1
+/*	$NetBSD: targparam.h,v 1.4 2012/03/27 19:24:02 christos Exp $	*/
  2
+
  3
+/*
  4
+ * Copyright (c) 1994, 1995 Jochen Pohl
  5
+ * All Rights Reserved.
  6
+ * 
  7
+ * Redistribution and use in source and binary forms, with or without
  8
+ * modification, are permitted provided that the following conditions
  9
+ * are met:
  10
+ * 1. Redistributions of source code must retain the above copyright
  11
+ *    notice, this list of conditions and the following disclaimer.
  12
+ * 2. Redistributions in binary form must reproduce the above copyright
  13
+ *    notice, this list of conditions and the following disclaimer in the
  14
+ *    documentation and/or other materials provided with the distribution.
  15
+ * 3. All advertising materials mentioning features or use of this software
  16
+ *    must display the following acknowledgement:
  17
+ *	This product includes software developed by Jochen Pohl for
  18
+ *	The NetBSD Project.
  19
+ * 4. The name of the author may not be used to endorse or promote products
  20
+ *    derived from this software without specific prior written permission.
  21
+ *
  22
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  23
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  24
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  25
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  26
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  27
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  31
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32
+ */
  33
+
  34
+/*
  35
+ * Machine-dependent target parameters for lint1.
  36
+ */
  37
+#include "schar.h"
  38
+#include "ilp32.h"
  39
+
  40
+/*    
  41
+ * Should be set to 1 if the difference of two pointers is of type long
  42
+ * or the value of sizeof is of type unsigned long.  Note this MUST be
  43
+ * kept in sync with the compiler!
  44
+ */     
  45
+
  46
+#define	PTRDIFF_IS_LONG		0
  47
+#define	SIZEOF_IS_ULONG		0
  48
+#define	INTPTR_IS_LONG		0
  49
+
  50
+#define	FLOAT_SIZE		(4 * CHAR_BIT)
  51
+#define	DOUBLE_SIZE		(8 * CHAR_BIT)
  52
+#define	LDOUBLE_SIZE		(12 * CHAR_BIT)
  53
+
  54
+#define	ENUM_SIZE		(4 * CHAR_BIT)

0 notes on commit a5153fa

Please sign in to comment.
Something went wrong with that request. Please try again.