| Commit | Line | Data |
|---|---|---|
| 63ae422f | 1 | /* $DragonFly: src/gnu/usr.bin/cc41/cc_prep/config/dragonfly.h,v 1.2 2008/05/19 10:46:39 corecode Exp $ */ |
| ddf7cc86 SS |
2 | |
| 3 | /* Base configuration file for all DragonFly targets. | |
| 4 | Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | |
| 5 | ||
| 6 | This file is part of GCC. | |
| 7 | ||
| 8 | GCC is free software; you can redistribute it and/or modify | |
| 9 | it under the terms of the GNU General Public License as published by | |
| 10 | the Free Software Foundation; either version 2, or (at your option) | |
| 11 | any later version. | |
| 12 | ||
| 13 | GCC is distributed in the hope that it will be useful, | |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | GNU General Public License for more details. | |
| 17 | ||
| 18 | You should have received a copy of the GNU General Public License | |
| 19 | along with GCC; see the file COPYING. If not, write to | |
| 20 | the Free Software Foundation, 59 Temple Place - Suite 330, | |
| 21 | Boston, MA 02111-1307, USA. */ | |
| 22 | ||
| 23 | /* Common DragonFly configuration. | |
| 24 | All DragonFly architectures should include this file, which will specify | |
| 25 | their commonalities. | |
| 26 | ||
| 27 | Adapted from gcc/config/freebsd.h by | |
| 28 | Joerg Sonnenberger <joerg@bec.de> | |
| 29 | ||
| 30 | Adapted from gcc/config/i386/freebsd-elf.h by | |
| 31 | David O'Brien <obrien@FreeBSD.org>. | |
| 32 | Further work by David O'Brien <obrien@FreeBSD.org> and | |
| 33 | Loren J. Rittle <ljrittle@acm.org>. */ | |
| 34 | ||
| 35 | ||
| 36 | /* This defines which switch letters take arguments. On DragonFly, most of | |
| 37 | the normal cases (defined in gcc.c) apply, and we also have -h* and | |
| 38 | -z* options (for the linker) (coming from SVR4). | |
| 39 | We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */ | |
| 40 | ||
| 41 | #undef SWITCH_TAKES_ARG | |
| 42 | #define SWITCH_TAKES_ARG(CHAR) (DFBSD_SWITCH_TAKES_ARG(CHAR)) | |
| 43 | ||
| 44 | #undef WORD_SWITCH_TAKES_ARG | |
| 45 | #define WORD_SWITCH_TAKES_ARG(STR) (DFBSD_WORD_SWITCH_TAKES_ARG(STR)) | |
| 46 | ||
| 47 | #undef TARGET_OS_CPP_BUILTINS | |
| 48 | #define TARGET_OS_CPP_BUILTINS() DFBSD_TARGET_OS_CPP_BUILTINS() | |
| 49 | ||
| 50 | #undef CPP_SPEC | |
| 51 | #define CPP_SPEC DFBSD_CPP_SPEC | |
| 52 | ||
| 53 | #undef STARTFILE_SPEC | |
| 54 | #define STARTFILE_SPEC DFBSD_STARTFILE_SPEC | |
| 55 | ||
| 56 | #undef ENDFILE_SPEC | |
| 57 | #define ENDFILE_SPEC DFBSD_ENDFILE_SPEC | |
| 58 | ||
| 59 | #undef LIB_SPEC | |
| 60 | #define LIB_SPEC DFBSD_LIB_SPEC | |
| 61 | ||
| 62 | #undef LINK_COMMAND_SPEC | |
| 63 | #define LINK_COMMAND_SPEC DFBSD_LINK_COMMAND_SPEC | |
| 64 | ||
| 65 | /************************[ Target stuff ]***********************************/ | |
| 66 | ||
| 67 | /* All DragonFly Architectures support the ELF object file format. */ | |
| 68 | #undef OBJECT_FORMAT_ELF | |
| 69 | #define OBJECT_FORMAT_ELF | |
| 70 | ||
| 71 | /* Don't assume anything about the header files. */ | |
| 72 | #undef NO_IMPLICIT_EXTERN_C | |
| 73 | #define NO_IMPLICIT_EXTERN_C 1 | |
| 74 | ||
| 75 | /* Make gcc agree with DragonFly's standard headers (<machine/stdint.h>, etc...) */ | |
| 76 | ||
| 77 | #undef WCHAR_TYPE | |
| 78 | #define WCHAR_TYPE "int" | |
| 79 | ||
| ddf7cc86 SS |
80 | /* Code generation parameters. */ |
| 81 | ||
| 82 | /* Use periods rather than dollar signs in special g++ assembler names. | |
| 83 | This ensures the configuration knows our system correctly so we can link | |
| 84 | with libraries compiled with the native cc. */ | |
| 85 | #undef NO_DOLLAR_IN_LABEL | |
| 86 | ||
| 63ae422f SS |
87 | /* Define this so we can compile MS code for use with WINE. */ |
| 88 | #define HANDLE_PRAGMA_PACK_PUSH_POP | |
| 89 | ||
| ddf7cc86 SS |
90 | /* Used by libgcc2.c. We support file locking with fcntl / F_SETLKW. |
| 91 | This enables the test coverage code to use file locking when exiting a | |
| 92 | program, which avoids race conditions if the program has forked. */ | |
| 93 | #define TARGET_HAS_F_SETLKW | |
| 94 | ||
| 43add724 | 95 | #define DFBSD_MAJOR 3 |