OSDN Git Service

* system.h (strsignal): Also declare if no declaration found.
[pf3gnuchains/gcc-fork.git] / gcc / system.h
1 /* Get common system includes and various definitions and declarations based
2    on autoconf macros.
3    Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
11
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING.  If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA.  */
21
22
23 #ifndef GCC_SYSTEM_H
24 #define GCC_SYSTEM_H
25
26 /* We must include stdarg.h/varargs.h before stdio.h.  */
27 #ifdef ANSI_PROTOTYPES
28 #include <stdarg.h>
29 #else
30 #include <varargs.h>
31 #endif
32
33 #ifndef va_copy
34 # ifdef __va_copy
35 #   define va_copy(d,s)  __va_copy((d),(s))
36 # else
37 #   define va_copy(d,s)  ((d) = (s))
38 # endif
39 #endif
40
41 #ifdef HAVE_STDDEF_H
42 # include <stddef.h>
43 #endif
44
45 #include <stdio.h>
46
47 /* Define a generic NULL if one hasn't already been defined.  */
48 #ifndef NULL
49 #define NULL 0
50 #endif
51
52 /* The compiler is not a multi-threaded application and therefore we
53    do not have to use the locking functions.  In fact, using the locking
54    functions can cause the compiler to be significantly slower under
55    I/O bound conditions (such as -g -O0 on very large source files).
56
57    HAVE_DECL_PUTC_UNLOCKED actually indicates whether or not the stdio
58    code is multi-thread safe by default.  If it is set to 0, then do
59    not worry about using the _unlocked functions.
60    
61    fputs_unlocked, fwrite_unlocked, and fprintf_unlocked are
62    extensions and need to be prototyped by hand (since we do not
63    define _GNU_SOURCE).  */
64
65 #if defined HAVE_DECL_PUTC_UNLOCKED && HAVE_DECL_PUTC_UNLOCKED
66
67 # ifdef HAVE_PUTC_UNLOCKED
68 #  undef putc
69 #  define putc(C, Stream) putc_unlocked (C, Stream)
70 # endif
71 # ifdef HAVE_FPUTC_UNLOCKED
72 #  undef fputc
73 #  define fputc(C, Stream) fputc_unlocked (C, Stream)
74 # endif
75
76 # ifdef HAVE_FPUTS_UNLOCKED
77 #  undef fputs
78 #  define fputs(String, Stream) fputs_unlocked (String, Stream)
79 #  if defined (HAVE_DECL_FPUTS_UNLOCKED) && !HAVE_DECL_FPUTS_UNLOCKED
80 extern int fputs_unlocked PARAMS ((const char *, FILE *));
81 #  endif
82 # endif
83 # ifdef HAVE_FWRITE_UNLOCKED
84 #  undef fwrite
85 #  define fwrite(Ptr, Size, N, Stream) fwrite_unlocked (Ptr, Size, N, Stream)
86 #  if defined (HAVE_DECL_FWRITE_UNLOCKED) && !HAVE_DECL_FWRITE_UNLOCKED
87 extern int fwrite_unlocked PARAMS ((const PTR, size_t, size_t, FILE *));
88 #  endif
89 # endif
90 # ifdef HAVE_FPRINTF_UNLOCKED
91 #  undef fprintf
92 /* We can't use a function-like macro here because we don't know if
93    we have varargs macros.  */
94 #  define fprintf fprintf_unlocked
95 #  if defined (HAVE_DECL_FPRINTF_UNLOCKED) && !HAVE_DECL_FPRINTF_UNLOCKED
96 extern int fprintf_unlocked PARAMS ((FILE *, const char *, ...));
97 #  endif
98 # endif
99
100 #endif
101
102 /* There are an extraordinary number of issues with <ctype.h>.
103    The last straw is that it varies with the locale.  Use libiberty's
104    replacement instead.  */
105 #include <safe-ctype.h>
106
107 #include <sys/types.h>
108
109 #include <errno.h>
110
111 #if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO
112 extern int errno;
113 #endif
114
115 #ifdef STRING_WITH_STRINGS
116 # include <string.h>
117 # include <strings.h>
118 #else
119 # ifdef HAVE_STRING_H
120 #  include <string.h>
121 # else
122 #  ifdef HAVE_STRINGS_H
123 #   include <strings.h>
124 #  endif
125 # endif
126 #endif
127
128 #ifdef HAVE_STDLIB_H
129 # include <stdlib.h>
130 #endif
131
132 /* If we don't have an overriding definition, set SUCCESS_EXIT_CODE and
133    FATAL_EXIT_CODE to EXIT_SUCCESS and EXIT_FAILURE respectively,
134    or 0 and 1 if those macros are not defined.  */
135 #ifndef SUCCESS_EXIT_CODE
136 # ifdef EXIT_SUCCESS
137 #  define SUCCESS_EXIT_CODE EXIT_SUCCESS
138 # else
139 #  define SUCCESS_EXIT_CODE 0
140 # endif
141 #endif
142
143 #ifndef FATAL_EXIT_CODE
144 # ifdef EXIT_FAILURE
145 #  define FATAL_EXIT_CODE EXIT_FAILURE
146 # else
147 #  define FATAL_EXIT_CODE 1
148 # endif
149 #endif
150
151 #ifdef HAVE_UNISTD_H
152 # include <unistd.h>
153 #endif
154
155 #ifdef HAVE_SYS_PARAM_H
156 # include <sys/param.h>
157 /* We use this identifier later and it appears in some vendor param.h's.  */
158 # undef PREFETCH
159 #endif
160
161 #if HAVE_LIMITS_H
162 # include <limits.h>
163 #endif
164
165 /* Get definitions of HOST_WIDE_INT and HOST_WIDEST_INT.  */
166 #include "hwint.h"
167
168 /* A macro to determine whether a VALUE lies inclusively within a
169    certain range without evaluating the VALUE more than once.  This
170    macro won't warn if the VALUE is unsigned and the LOWER bound is
171    zero, as it would e.g. with "VALUE >= 0 && ...".  Note the LOWER
172    bound *is* evaluated twice, and LOWER must not be greater than
173    UPPER.  However the bounds themselves can be either positive or
174    negative.  */
175 #define IN_RANGE(VALUE, LOWER, UPPER) \
176   ((unsigned HOST_WIDE_INT) ((VALUE) - (LOWER)) <= ((UPPER) - (LOWER)))
177
178 /* Infrastructure for defining missing _MAX and _MIN macros.  Note that
179    macros defined with these cannot be used in #if.  */
180
181 /* The extra casts work around common compiler bugs.  */
182 #define INTTYPE_SIGNED(t) (! ((t) 0 < (t) -1))
183 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
184    It is necessary at least when t == time_t.  */
185 #define INTTYPE_MINIMUM(t) ((t) (INTTYPE_SIGNED (t) \
186                              ? ~ (t) 0 << (sizeof(t) * CHAR_BIT - 1) : (t) 0))
187 #define INTTYPE_MAXIMUM(t) ((t) (~ (t) 0 - INTTYPE_MINIMUM (t)))
188
189 /* Use that infrastructure to provide a few constants.  */
190 #ifndef UCHAR_MAX
191 # define UCHAR_MAX INTTYPE_MAXIMUM (unsigned char)
192 #endif
193
194 #ifdef TIME_WITH_SYS_TIME
195 # include <sys/time.h>
196 # include <time.h>
197 #else
198 # if HAVE_SYS_TIME_H
199 #  include <sys/time.h>
200 # else
201 #  ifdef HAVE_TIME_H
202 #   include <time.h>
203 #  endif
204 # endif
205 #endif
206
207 #ifdef HAVE_FCNTL_H
208 # include <fcntl.h>
209 #else
210 # ifdef HAVE_SYS_FILE_H
211 #  include <sys/file.h>
212 # endif
213 #endif
214
215 #ifndef SEEK_SET
216 # define SEEK_SET 0
217 # define SEEK_CUR 1
218 # define SEEK_END 2
219 #endif
220 #ifndef F_OK
221 # define F_OK 0
222 # define X_OK 1
223 # define W_OK 2
224 # define R_OK 4
225 #endif
226 #ifndef O_RDONLY
227 # define O_RDONLY 0
228 #endif
229 #ifndef O_WRONLY
230 # define O_WRONLY 1
231 #endif
232
233 /* Some systems define these in, e.g., param.h.  We undefine these names
234    here to avoid the warnings.  We prefer to use our definitions since we
235    know they are correct.  */
236
237 #undef MIN
238 #undef MAX
239 #define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
240 #define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
241
242 /* Returns the least number N such that N * Y >= X.  */
243 #define CEIL(x,y) (((x) + (y) - 1) / (y))
244
245 #ifdef HAVE_SYS_WAIT_H
246 #include <sys/wait.h>
247 #endif
248
249 #ifndef WIFSIGNALED
250 #define WIFSIGNALED(S) (((S) & 0xff) != 0 && ((S) & 0xff) != 0x7f)
251 #endif
252 #ifndef WTERMSIG
253 #define WTERMSIG(S) ((S) & 0x7f)
254 #endif
255 #ifndef WIFEXITED
256 #define WIFEXITED(S) (((S) & 0xff) == 0)
257 #endif
258 #ifndef WEXITSTATUS
259 #define WEXITSTATUS(S) (((S) & 0xff00) >> 8)
260 #endif
261 #ifndef WSTOPSIG
262 #define WSTOPSIG WEXITSTATUS
263 #endif
264
265 /* The HAVE_DECL_* macros are three-state, undefined, 0 or 1.  If they
266    are defined to 0 then we must provide the relevant declaration
267    here.  These checks will be in the undefined state while configure
268    is running so be careful to test "defined (HAVE_DECL_*)".  */
269
270 #if defined (HAVE_DECL_ATOF) && !HAVE_DECL_ATOF
271 extern double atof PARAMS ((const char *));
272 #endif
273
274 #if defined (HAVE_DECL_ATOL) && !HAVE_DECL_ATOL
275 extern long atol PARAMS ((const char *));
276 #endif
277
278 #if defined (HAVE_DECL_FREE) && !HAVE_DECL_FREE
279 extern void free PARAMS ((PTR));
280 #endif
281
282 #if defined (HAVE_DECL_GETCWD) && !HAVE_DECL_GETCWD
283 extern char *getcwd PARAMS ((char *, size_t));
284 #endif
285
286 #if defined (HAVE_DECL_GETENV) && !HAVE_DECL_GETENV
287 extern char *getenv PARAMS ((const char *));
288 #endif
289
290 #if defined (HAVE_DECL_GETOPT) && !HAVE_DECL_GETOPT
291 extern int getopt PARAMS ((int, char * const *, const char *));
292 #endif
293
294 #if defined (HAVE_DECL_GETWD) && !HAVE_DECL_GETWD
295 extern char *getwd PARAMS ((char *));
296 #endif
297
298 #if defined (HAVE_DECL_SBRK) && !HAVE_DECL_SBRK
299 extern PTR sbrk PARAMS ((int));
300 #endif
301
302 #if defined (HAVE_DECL_STRSTR) && !HAVE_DECL_STRSTR
303 extern char *strstr PARAMS ((const char *, const char *));
304 #endif
305
306 #ifdef HAVE_MALLOC_H
307 #include <malloc.h>
308 #endif
309
310 #if defined (HAVE_DECL_MALLOC) && !HAVE_DECL_MALLOC
311 extern PTR malloc PARAMS ((size_t));
312 #endif
313
314 #if defined (HAVE_DECL_CALLOC) && !HAVE_DECL_CALLOC
315 extern PTR calloc PARAMS ((size_t, size_t));
316 #endif
317
318 #if defined (HAVE_DECL_REALLOC) && !HAVE_DECL_REALLOC
319 extern PTR realloc PARAMS ((PTR, size_t));
320 #endif
321
322 /* If the system doesn't provide strsignal, we get it defined in
323    libiberty but no declaration is supplied.  */
324 #if !defined (HAVE_STRSIGNAL) || !HAVE_DECL_STRSIGNAL
325 # ifndef strsignal
326 extern const char *strsignal PARAMS ((int));
327 # endif
328 #endif
329
330 #ifdef HAVE_GETRLIMIT
331 # if defined (HAVE_DECL_GETRLIMIT) && !HAVE_DECL_GETRLIMIT
332 #  ifndef getrlimit
333 #   ifdef ANSI_PROTOTYPES
334 struct rlimit;
335 #   endif
336 extern int getrlimit PARAMS ((int, struct rlimit *));
337 #  endif
338 # endif
339 #endif
340
341 #ifdef HAVE_SETRLIMIT
342 # if defined (HAVE_DECL_SETRLIMIT) && !HAVE_DECL_SETRLIMIT
343 #  ifndef setrlimit
344 #   ifdef ANSI_PROTOTYPES
345 struct rlimit;
346 #   endif
347 extern int setrlimit PARAMS ((int, const struct rlimit *));
348 #  endif
349 # endif
350 #endif
351
352 /* HAVE_VOLATILE only refers to the stage1 compiler.  We also check
353    __STDC__ and assume gcc sets it and has volatile in stage >=2.  */
354 #if !defined(HAVE_VOLATILE) && !defined(__STDC__) && !defined(volatile)
355 #define volatile
356 #endif
357
358 #if defined (HAVE_DECL_ABORT) && !HAVE_DECL_ABORT
359 extern void abort PARAMS ((void));
360 #endif
361
362 /* 1 if we have C99 designated initializers.  */
363 #if !defined(HAVE_DESIGNATED_INITIALIZERS)
364 #define HAVE_DESIGNATED_INITIALIZERS \
365   ((GCC_VERSION >= 2007) || (__STDC_VERSION__ >= 199901L))
366 #endif
367
368 /* 1 if we have _Bool.  */
369 #ifndef HAVE__BOOL
370 # define HAVE__BOOL \
371    ((GCC_VERSION >= 3000) || (__STDC_VERSION__ >= 199901L))
372 #endif
373
374
375 #if HAVE_SYS_STAT_H
376 # include <sys/stat.h>
377 #endif
378
379 /* Test if something is a normal file.  */
380 #ifndef S_ISREG
381 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
382 #endif
383
384 /* Test if something is a directory.  */
385 #ifndef S_ISDIR
386 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
387 #endif
388
389 /* Test if something is a character special file.  */
390 #ifndef S_ISCHR
391 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
392 #endif
393
394 /* Test if something is a block special file.  */
395 #ifndef S_ISBLK
396 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
397 #endif
398
399 /* Test if something is a socket.  */
400 #ifndef S_ISSOCK
401 # ifdef S_IFSOCK
402 #   define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
403 # else
404 #   define S_ISSOCK(m) 0
405 # endif
406 #endif
407
408 /* Test if something is a FIFO.  */
409 #ifndef S_ISFIFO
410 # ifdef S_IFIFO
411 #  define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
412 # else
413 #  define S_ISFIFO(m) 0
414 # endif
415 #endif
416
417 /* Approximate O_NONBLOCK.  */
418 #ifndef O_NONBLOCK
419 #define O_NONBLOCK O_NDELAY
420 #endif
421
422 /* Approximate O_NOCTTY.  */
423 #ifndef O_NOCTTY
424 #define O_NOCTTY 0
425 #endif
426
427 /* Define well known filenos if the system does not define them.  */
428 #ifndef STDIN_FILENO
429 # define STDIN_FILENO   0
430 #endif
431 #ifndef STDOUT_FILENO
432 # define STDOUT_FILENO  1
433 #endif
434 #ifndef STDERR_FILENO
435 # define STDERR_FILENO  2
436 #endif
437
438 /* Some systems have mkdir that takes a single argument.  */
439 #ifdef MKDIR_TAKES_ONE_ARG
440 # define mkdir(a,b) mkdir(a)
441 #endif
442
443 /* Provide a way to print an address via printf.  */
444 #ifndef HOST_PTR_PRINTF
445 # ifdef HAVE_PRINTF_PTR
446 #  define HOST_PTR_PRINTF "%p"
447 # else
448 #  define HOST_PTR_PRINTF \
449     (sizeof (int) == sizeof (char *) ? "%x" \
450      : sizeof (long) == sizeof (char *) ? "%lx" : "%llx")
451 # endif
452 #endif /* ! HOST_PTR_PRINTF */
453
454 /* By default, colon separates directories in a path.  */
455 #ifndef PATH_SEPARATOR
456 #define PATH_SEPARATOR ':'
457 #endif
458
459 #ifndef DIR_SEPARATOR
460 #define DIR_SEPARATOR '/'
461 #endif
462
463 /* Define IS_DIR_SEPARATOR.  */
464 #ifndef DIR_SEPARATOR_2
465 # define IS_DIR_SEPARATOR(CH) ((CH) == DIR_SEPARATOR)
466 #else /* DIR_SEPARATOR_2 */
467 # define IS_DIR_SEPARATOR(CH) \
468         (((CH) == DIR_SEPARATOR) || ((CH) == DIR_SEPARATOR_2))
469 #endif /* DIR_SEPARATOR_2 */
470
471 /* Say how to test for an absolute pathname.  On Unix systems, this is if
472    it starts with a leading slash or a '$', the latter meaning the value of
473    an environment variable is to be used.  On machine with DOS-based
474    file systems, it is also absolute if it starts with a drive identifier.  */
475 #ifdef HAVE_DOS_BASED_FILE_SYSTEM
476 #define IS_ABSOLUTE_PATHNAME(STR) \
477   (IS_DIR_SEPARATOR ((STR)[0]) || (STR)[0] == '$' \
478    || ((STR)[0] != '\0' && (STR)[1] == ':' && IS_DIR_SEPARATOR ((STR)[2])))
479 #else
480 #define IS_ABSOLUTE_PATHNAME(STR) \
481   (IS_DIR_SEPARATOR ((STR)[0]) || (STR)[0] == '$')
482 #endif
483
484 /* Get libiberty declarations.  */
485 #include "libiberty.h"
486 #include "symcat.h"
487
488 /* Provide a default for the HOST_BIT_BUCKET.
489    This suffices for POSIX-like hosts.  */
490
491 #ifndef HOST_BIT_BUCKET
492 #define HOST_BIT_BUCKET "/dev/null"
493 #endif
494
495 /* Be conservative and only use enum bitfields with GCC.
496    FIXME: provide a complete autoconf test for buggy enum bitfields.  */
497
498 #if (GCC_VERSION > 2000)
499 #define ENUM_BITFIELD(TYPE) enum TYPE
500 #else
501 #define ENUM_BITFIELD(TYPE) unsigned int
502 #endif
503
504 #ifndef offsetof
505 #define offsetof(TYPE, MEMBER)  ((size_t) &((TYPE *) 0)->MEMBER)
506 #endif
507
508 /* Traditional C cannot initialize union members of structs.  Provide
509    a macro which expands appropriately to handle it.  This only works
510    if you intend to initialize the union member to zero since it relies
511    on default initialization to zero in the traditional C case.  */
512 #ifdef __STDC__
513 #define UNION_INIT_ZERO , {0}
514 #else
515 #define UNION_INIT_ZERO
516 #endif
517
518 /* Various error reporting routines want to use __FUNCTION__.  */
519 #if (GCC_VERSION < 2007)
520 #ifndef __FUNCTION__
521 #define __FUNCTION__ "?"
522 #endif /* ! __FUNCTION__ */
523 #endif
524
525 /* __builtin_expect(A, B) evaluates to A, but notifies the compiler that
526    the most likely value of A is B.  This feature was added at some point
527    between 2.95 and 3.0.  Let's use 3.0 as the lower bound for now.  */
528 #if (GCC_VERSION < 3000)
529 #define __builtin_expect(a, b) (a)
530 #endif
531
532 /* Provide some sort of boolean type.  We use stdbool.h if it's
533   available.  This must be after all inclusion of system headers,
534   as some of them will mess us up.  */
535 #undef bool
536 #undef true
537 #undef false
538 #undef TRUE
539 #undef FALSE
540
541 #ifdef HAVE_STDBOOL_H
542 # include <stdbool.h>
543 #else
544 # if !HAVE__BOOL
545 typedef char _Bool;
546 # endif
547 # define bool _Bool
548 # define true 1
549 # define false 0
550 #endif
551
552 #define TRUE true
553 #define FALSE false
554
555 /* As the last action in this file, we poison the identifiers that
556    shouldn't be used.  Note, luckily gcc-3.0's token-based integrated
557    preprocessor won't trip on poisoned identifiers that arrive from
558    the expansion of macros.  E.g. #define strrchr rindex, won't error
559    if rindex is poisoned after this directive is issued and later on
560    strrchr is called.
561
562    Note: We define bypass macros for the few cases where we really
563    want to use the libc memory allocation routines.  Otherwise we
564    insist you use the "x" versions from libiberty.  */
565
566 #define really_call_malloc malloc
567 #define really_call_calloc calloc
568 #define really_call_realloc realloc
569
570 #if defined(FLEX_SCANNER) || defined(YYBISON)
571 /* Flex and bison use malloc and realloc.  Yuk.  Note that this means
572    really_call_* cannot be used in a .l or .y file.  */
573 #define malloc xmalloc
574 #define realloc xrealloc
575 #endif
576
577 #if (GCC_VERSION >= 3000)
578
579 /* Note autoconf checks for prototype declarations and includes
580    system.h while doing so.  Only poison these tokens if actually
581    compiling gcc, so that the autoconf declaration tests for malloc
582    etc don't spuriously fail.  */
583 #ifdef IN_GCC
584 #undef calloc
585 #undef strdup
586  #pragma GCC poison calloc strdup
587
588 #if !defined(FLEX_SCANNER) && !defined(YYBISON)
589 #undef malloc
590 #undef realloc
591  #pragma GCC poison malloc realloc
592 #endif
593
594 /* Old target macros that have moved to the target hooks structure.  */
595  #pragma GCC poison ASM_OPEN_PAREN ASM_CLOSE_PAREN                      \
596         FUNCTION_PROLOGUE FUNCTION_EPILOGUE                             \
597         FUNCTION_END_PROLOGUE FUNCTION_BEGIN_EPILOGUE                   \
598         DECL_MACHINE_ATTRIBUTES COMP_TYPE_ATTRIBUTES INSERT_ATTRIBUTES  \
599         VALID_MACHINE_DECL_ATTRIBUTE VALID_MACHINE_TYPE_ATTRIBUTE       \
600         SET_DEFAULT_TYPE_ATTRIBUTES SET_DEFAULT_DECL_ATTRIBUTES         \
601         MERGE_MACHINE_TYPE_ATTRIBUTES MERGE_MACHINE_DECL_ATTRIBUTES     \
602         MD_INIT_BUILTINS MD_EXPAND_BUILTIN ASM_OUTPUT_CONSTRUCTOR       \
603         ASM_OUTPUT_DESTRUCTOR SIGNED_CHAR_SPEC MAX_CHAR_TYPE_SIZE       \
604         WCHAR_UNSIGNED UNIQUE_SECTION SELECT_SECTION SELECT_RTX_SECTION \
605         ENCODE_SECTION_INFO STRIP_NAME_ENCODING ASM_GLOBALIZE_LABEL     \
606         ASM_OUTPUT_MI_THUNK
607
608 /* Other obsolete target macros, or macros that used to be in target
609    headers and were not used, and may be obsolete or may never have
610    been used.  */
611  #pragma GCC poison INT_ASM_OP ASM_OUTPUT_EH_REGION_BEG                    \
612         ASM_OUTPUT_EH_REGION_END ASM_OUTPUT_LABELREF_AS_INT                \
613         DOESNT_NEED_UNWINDER EH_TABLE_LOOKUP OBJC_SELECTORS_WITHOUT_LABELS \
614         OMIT_EH_TABLE EASY_DIV_EXPR IMPLICIT_FIX_EXPR                      \
615         LONGJMP_RESTORE_FROM_STACK MAX_INT_TYPE_SIZE ASM_IDENTIFY_GCC      \
616         STDC_VALUE TRAMPOLINE_ALIGN ASM_IDENTIFY_GCC_AFTER_SOURCE          \
617         SLOW_ZERO_EXTEND SUBREG_REGNO_OFFSET DWARF_LINE_MIN_INSTR_LENGTH   \
618         TRADITIONAL_RETURN_FLOAT NO_BUILTIN_SIZE_TYPE                      \
619         NO_BUILTIN_PTRDIFF_TYPE NO_BUILTIN_WCHAR_TYPE NO_BUILTIN_WINT_TYPE \
620         BLOCK_PROFILER BLOCK_PROFILER_CODE FUNCTION_BLOCK_PROFILER         \
621         FUNCTION_BLOCK_PROFILER_EXIT MACHINE_STATE_SAVE                    \
622         MACHINE_STATE_RESTORE SCCS_DIRECTIVE SECTION_ASM_OP                \
623         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL ASM_OUTPUT_INTERNAL_LABEL
624
625 /* Hooks that are no longer used.  */
626  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE   \
627         LANG_HOOKS_MARK_TREE
628
629 #endif /* IN_GCC */
630
631 /* Note: not all uses of the `index' token (e.g. variable names and
632    structure members) have been eliminated.  */
633 #undef bcopy
634 #undef bzero
635 #undef bcmp
636 #undef rindex
637  #pragma GCC poison bcopy bzero bcmp rindex
638
639 #endif /* GCC >= 3.0 */
640
641 #endif /* ! GCC_SYSTEM_H */