* include/bits/cpp_type_traits.h: Fix typos. Adjust formatting.
[official-gcc.git] / gcc / c-pragma.h
blob314273bde2e9a568b3305d5532dcaf4a31fb9921
1 /* Pragma related interfaces.
2 Copyright (C) 1995, 1998, 1999, 2000 Free Software Foundation, Inc.
4 This file is part of GNU CC.
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.
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.
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. */
21 #ifndef _C_PRAGMA_H
22 #define _C_PRAGMA_H
24 #ifdef HANDLE_SYSV_PRAGMA
25 /* Support #pragma weak iff ASM_WEAKEN_LABEL and ASM_OUTPUT_DEF are
26 defined. */
27 #if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
28 #define HANDLE_PRAGMA_WEAK SUPPORTS_WEAK
29 #endif
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 */
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 */
45 #ifdef HANDLE_PRAGMA_WEAK
46 /* This structure contains any weak symbol declarations waiting to be emitted. */
47 struct weak_syms
49 struct weak_syms * next;
50 const char * name;
51 const char * value;
54 /* Declared in varasm.c */
55 extern struct weak_syms * weak_decls;
57 extern int add_weak PARAMS ((const char *, const char *));
58 #endif /* HANDLE_PRAGMA_WEAK */
60 extern void init_pragma PARAMS ((void));
62 /* If cpplib is in use, it handles dispatch. */
63 #if !USE_CPPLIB
64 extern void dispatch_pragma PARAMS ((void));
65 #endif
67 /* Duplicate prototypes for the register_pragma stuff and the typedef for
68 cpp_reader, to avoid dragging cpplib.h in almost everywhere... */
69 #ifndef __GCC_CPPLIB__
70 typedef struct cpp_reader cpp_reader;
72 extern void cpp_register_pragma PARAMS ((cpp_reader *,
73 const char *, const char *,
74 void (*) PARAMS ((cpp_reader *))));
75 extern void cpp_register_pragma_space PARAMS ((cpp_reader *, const char *));
76 #endif
78 #endif /* _C_PRAGMA_H */