Fix `make bootstrap' failures where libraries are compiled with wrong compiler.
[gcc.git] / gcc / c-pragma.h
1 /* Pragma related interfaces.
2 Copyright (C) 1995, 1998 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #ifdef HANDLE_SYSV_PRAGMA
22
23 /* Support #pragma weak iff ASM_WEAKEN_LABEL and ASM_OUTPUT_DEF are
24 defined. */
25 #if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
26 #define HANDLE_PRAGMA_WEAK SUPPORTS_WEAK
27 #endif
28
29 enum pragma_state
30 {
31 ps_start,
32 ps_done,
33 ps_bad,
34 ps_weak,
35 ps_name,
36 ps_equals,
37 ps_value,
38 ps_pack,
39 ps_left,
40 ps_align,
41 ps_right
42 };
43
44 /* Output asm to handle ``#pragma weak'' */
45 extern void handle_pragma_weak PROTO((enum pragma_state, char *, char *));
46
47 /* Handle a C style pragma */
48 extern int handle_pragma_token PROTO((char *, tree));
49
50 #endif /* HANDLE_SYSV_PRAGMA */