]> gcc.gnu.org Git - gcc.git/blob - gcc/c-pragma.h
c-pragma.h: Move weak_syms and weak_decls...
[gcc.git] / gcc / c-pragma.h
1 /* Pragma related interfaces.
2 Copyright (C) 1995, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This file is part of GCC.
5
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
9 version.
10
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
20
21 #ifndef GCC_C_PRAGMA_H
22 #define GCC_C_PRAGMA_H
23
24 #ifdef HANDLE_SYSV_PRAGMA
25 /* Support #pragma weak iff ASM_WEAKEN_LABEL and ASM_OUTPUT_WEAK_ALIAS are
26 defined. */
27 #if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_WEAK_ALIAS)
28 #define HANDLE_PRAGMA_WEAK SUPPORTS_WEAK
29 #endif
30
31 /* We always support #pragma pack for SYSV pragmas. */
32 #ifndef HANDLE_PRAGMA_PACK
33 #define HANDLE_PRAGMA_PACK 1
34 #endif
35 #endif /* HANDLE_SYSV_PRAGMA */
36
37
38 #ifdef HANDLE_PRAGMA_PACK_PUSH_POP
39 /* If we are supporting #pragma pack(push... then we automatically
40 support #pragma pack(<n>) */
41 #define HANDLE_PRAGMA_PACK 1
42 #endif /* HANDLE_PRAGMA_PACK_PUSH_POP */
43
44
45 #ifdef HANDLE_PRAGMA_WEAK
46 extern int add_weak PARAMS ((const char *, const char *));
47 #endif /* HANDLE_PRAGMA_WEAK */
48
49 extern void init_pragma PARAMS ((void));
50
51 /* Duplicate prototypes for the register_pragma stuff and the typedef for
52 cpp_reader, to avoid dragging cpplib.h in almost everywhere... */
53 #ifndef GCC_CPPLIB_H
54 typedef struct cpp_reader cpp_reader;
55
56 extern void cpp_register_pragma PARAMS ((cpp_reader *,
57 const char *, const char *,
58 void (*) PARAMS ((cpp_reader *))));
59 extern void cpp_register_pragma_space PARAMS ((cpp_reader *, const char *));
60 #endif
61
62 #endif /* GCC_C_PRAGMA_H */
This page took 0.041674 seconds and 6 git commands to generate.