* config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
[official-gcc.git] / gcc / c-pragma.h
blobea5a9826d6149f0b6315be7c779bc2a63dfdd8ff
1 /* Pragma related interfaces.
2 Copyright (C) 1995, 1998, 1999, 2000, 2001, 2002
3 Free Software Foundation, Inc.
5 This file is part of GCC.
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.
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.
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. */
22 #ifndef GCC_C_PRAGMA_H
23 #define GCC_C_PRAGMA_H
25 #ifdef HANDLE_SYSV_PRAGMA
26 #if ((defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_WEAK_ALIAS)) \
27 || defined (ASM_WEAKEN_DECL))
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 */
44 extern void init_pragma PARAMS ((void));
46 /* Duplicate prototypes for the register_pragma stuff and the typedef for
47 cpp_reader, to avoid dragging cpplib.h in almost everywhere... */
48 #ifndef GCC_CPPLIB_H
49 typedef struct cpp_reader cpp_reader;
51 extern void cpp_register_pragma PARAMS ((cpp_reader *,
52 const char *, const char *,
53 void (*) PARAMS ((cpp_reader *))));
54 #endif
56 extern void maybe_apply_pragma_weak PARAMS ((tree));
58 #endif /* GCC_C_PRAGMA_H */