Annotation of src/usr.bin/pcc/ccconfig.h, Revision 1.5
1.5 ! ragge 1: /* $OpenBSD: ccconfig.h,v 1.4 2008/04/11 20:45:51 stefan Exp $ */
1.1 otto 2:
3: /*
4: * Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se).
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. The name of the author may not be used to endorse or promote products
16: * derived from this software without specific prior written permission
17: *
18: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28: */
29:
30: /*
31: * Various settings that controls how the C compiler works.
32: */
33:
34: /* common cpp predefines */
1.2 otto 35: #define CPPADD { "-D__OpenBSD__", "-D__unix__", NULL }
1.1 otto 36: #define DYNLINKER { "-dynamic-linker", "/usr/libexec/ld.so", NULL }
37: #define CRT0FILE "/usr/lib/crt0.o"
1.4 stefan 38: #define CRT0FILE_PROFILE "/usr/lib/gcrt0.o"
1.1 otto 39: #define STARTFILES { "/usr/lib/crtbegin.o", NULL }
40: #define ENDFILES { "/usr/lib/crtend.o", NULL }
41:
42: #define CPPMDADDS { \
1.3 otto 43: { "i386", { "-D__i386__", "-D__i386", "-D__ELF__", \
1.1 otto 44: NULL } }, \
45: { "alpha", { "-D__alpha", "-D__alpha_ev4__", "-D__alpha__", \
46: "-D__ELF__", NULL } }, \
47: { "amd64", { "-D__x86_64", "-D__athlon", "-D__amd64__", \
48: "-D__athlon__", "-D__ELF__", NULL } }, \
49: { "arm", { "-D__arm__", "-D__ELF__", NULL } }, \
50: { "hppa", { "-D__hppa", "-D__hppa__", "-D_PA_RISC_1", "-D__ELF__", \
51: NULL } }, \
52: { "m68k", { "-D__m68k__", "-D__mc68000__", "-D__mc68020__", \
53: NULL } }, \
54: { "powerpc", { "-D__powerpc__", "-D_ARCH_PPC", "-D__PPC", \
55: "-D__powerpc", "-D__PPC__", "-D__ELF__", NULL } }, \
56: { "mips64", { "-D__mips64", "-D__mips64__", "-D_R4000", "-D_mips", \
57: "-D_mips_r64", "-D__mips__", "-D__ELF__", NULL } }, \
58: { "sh", { "-D__SH4__", "-D__sh__", NULL } }, \
59: { "sparc", { "-D__sparc__", "-D__ELF__", NULL } }, \
60: { "sparc64", { "-D__sparc", "-D__sparc__", "-D__sparc64__", \
61: "-D__sparcv9__", "-D__sparc_v9__", "-D__ELF__", NULL } }, \
62: { "vax", { "-D__vax__", NULL } }, \
63: { NULL }, \
64: }
65: #define MAXCPPMDARGS 8
66:
1.5 ! ragge 67: #define ELFABI
1.1 otto 68: #define STABS