Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/i386/xm-djgpp.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Configuration for GCC for Intel 80386 running DJGPP. | 1 /* Configuration for GCC for Intel 80386 running DJGPP. |
2 Copyright (C) 1988, 1996, 1998, 1999, 2000, 2001, 2004, 2007 | 2 Copyright (C) 1988-2017 Free Software Foundation, Inc. |
3 Free Software Foundation, Inc. | |
4 | 3 |
5 This file is part of GCC. | 4 This file is part of GCC. |
6 | 5 |
7 GCC is free software; you can redistribute it and/or modify | 6 GCC is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
20 | 19 |
21 /* Use semicolons to separate elements of a path. */ | 20 /* Use semicolons to separate elements of a path. */ |
22 #define PATH_SEPARATOR ';' | 21 #define PATH_SEPARATOR ';' |
23 | 22 |
24 #define HOST_EXECUTABLE_SUFFIX ".exe" | 23 #define HOST_EXECUTABLE_SUFFIX ".exe" |
24 | |
25 /* Define standard DJGPP installation paths. */ | |
26 /* We override default /usr or /usr/local part with /dev/env/DJDIR which */ | |
27 /* points to actual DJGPP installation directory. */ | |
28 | |
29 /* Native system include directory */ | |
30 #undef NATIVE_SYSTEM_HEADER_DIR | |
31 #define NATIVE_SYSTEM_HEADER_DIR "/dev/env/DJDIR/include/" | |
32 | |
33 /* Search for as.exe and ld.exe in DJGPP's binary directory. */ | |
34 #undef MD_EXEC_PREFIX | |
35 #define MD_EXEC_PREFIX "/dev/env/DJDIR/bin/" | |
36 | |
37 /* Standard DJGPP library and startup files */ | |
38 #undef STANDARD_STARTFILE_PREFIX_1 | |
39 #define STANDARD_STARTFILE_PREFIX_1 "/dev/env/DJDIR/lib/" | |
40 | |
41 /* Define STANDARD_STARTFILE_PREFIX_2 equal to STANDARD_STARTFILE_PREFIX_1 | |
42 to avoid gcc.c redefining it to /usr/lib */ | |
43 #undef STANDARD_STARTFILE_PREFIX_2 | |
44 #define STANDARD_STARTFILE_PREFIX_1 "/dev/env/DJDIR/lib/" | |
45 | |
46 /* Make sure that gcc will not look for .h files in /usr/local/include | |
47 unless user explicitly requests it. */ | |
48 #undef LOCAL_INCLUDE_DIR | |
25 | 49 |
26 /* System dependent initialization for collect2 | 50 /* System dependent initialization for collect2 |
27 to tell system() to act like Unix. */ | 51 to tell system() to act like Unix. */ |
28 #define COLLECT2_HOST_INITIALIZATION \ | 52 #define COLLECT2_HOST_INITIALIZATION \ |
29 do { __system_flags |= (__system_allow_multiple_cmds \ | 53 do { __system_flags |= (__system_allow_multiple_cmds \ |
56 /* DJDIR is automatically defined by the DJGPP environment config \ | 80 /* DJDIR is automatically defined by the DJGPP environment config \ |
57 file pointed to by the environment variable DJGPP. Examine DJGPP \ | 81 file pointed to by the environment variable DJGPP. Examine DJGPP \ |
58 to try and figure out what's wrong. */ \ | 82 to try and figure out what's wrong. */ \ |
59 char *djgpp = getenv ("DJGPP"); \ | 83 char *djgpp = getenv ("DJGPP"); \ |
60 if (djgpp == NULL) \ | 84 if (djgpp == NULL) \ |
61 fatal ("environment variable DJGPP not defined"); \ | 85 fatal_error (UNKNOWN_LOCATION, "environment variable DJGPP not defined"); \ |
62 else if (access (djgpp, R_OK) == 0) \ | 86 else if (access (djgpp, R_OK) == 0) \ |
63 fatal ("environment variable DJGPP points to missing file '%s'", \ | 87 fatal_error (UNKNOWN_LOCATION, "environment variable DJGPP points to missing file '%s'", \ |
64 djgpp); \ | 88 djgpp); \ |
65 else \ | 89 else \ |
66 fatal ("environment variable DJGPP points to corrupt file '%s'", \ | 90 fatal_error (UNKNOWN_LOCATION, "environment variable DJGPP points to corrupt file '%s'", \ |
67 djgpp); \ | 91 djgpp); \ |
68 } \ | 92 } \ |
69 } while (0) | 93 } while (0) |
70 | 94 |
71 /* Canonicalize paths containing '/dev/env/'; used in prefix.c. | 95 /* Canonicalize paths containing '/dev/env/'; used in prefix.c. |
79 static char fixed_path[FILENAME_MAX + 1]; \ | 103 static char fixed_path[FILENAME_MAX + 1]; \ |
80 \ | 104 \ |
81 _fixpath ((PATH), fixed_path); \ | 105 _fixpath ((PATH), fixed_path); \ |
82 strcat (fixed_path, "/"); \ | 106 strcat (fixed_path, "/"); \ |
83 (PATH) = xstrdup (fixed_path); \ | 107 (PATH) = xstrdup (fixed_path); \ |
84 } | 108 } |
109 | |
110 #undef MAX_OFILE_ALIGNMENT | |
111 #define MAX_OFILE_ALIGNMENT 128 | |
112 | |
113 /* DJGPP versions up to current (2.05) have ftw.h but only ftw() not nftw(). | |
114 Disable use of ftw.h */ | |
115 #undef HAVE_FTW_H |