Annotation of src/usr.bin/pcc/ccconfig.h, Revision 1.3
1.3 ! otto 1: /* $OpenBSD: ccconfig.h,v 1.2 2007/10/15 09:46:30 otto 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"
38: #define STARTFILES { "/usr/lib/crtbegin.o", NULL }
39: #define ENDFILES { "/usr/lib/crtend.o", NULL }
40:
41: #define CPPMDADDS { \
1.3 ! otto 42: { "i386", { "-D__i386__", "-D__i386", "-D__ELF__", \
1.1 otto 43: NULL } }, \
44: { "alpha", { "-D__alpha", "-D__alpha_ev4__", "-D__alpha__", \
45: "-D__ELF__", NULL } }, \
46: { "amd64", { "-D__x86_64", "-D__athlon", "-D__amd64__", \
47: "-D__athlon__", "-D__ELF__", NULL } }, \
48: { "arm", { "-D__arm__", "-D__ELF__", NULL } }, \
49: { "hppa", { "-D__hppa", "-D__hppa__", "-D_PA_RISC_1", "-D__ELF__", \
50: NULL } }, \
51: { "m68k", { "-D__m68k__", "-D__mc68000__", "-D__mc68020__", \
52: NULL } }, \
53: { "powerpc", { "-D__powerpc__", "-D_ARCH_PPC", "-D__PPC", \
54: "-D__powerpc", "-D__PPC__", "-D__ELF__", NULL } }, \
55: { "mips64", { "-D__mips64", "-D__mips64__", "-D_R4000", "-D_mips", \
56: "-D_mips_r64", "-D__mips__", "-D__ELF__", NULL } }, \
57: { "sh", { "-D__SH4__", "-D__sh__", NULL } }, \
58: { "sparc", { "-D__sparc__", "-D__ELF__", NULL } }, \
59: { "sparc64", { "-D__sparc", "-D__sparc__", "-D__sparc64__", \
60: "-D__sparcv9__", "-D__sparc_v9__", "-D__ELF__", NULL } }, \
61: { "vax", { "-D__vax__", NULL } }, \
62: { NULL }, \
63: }
64: #define MAXCPPMDARGS 8
65:
66: #define STABS