]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-pragma.h
Fix ada enabled "make html".
[thirdparty/gcc.git] / gcc / c-pragma.h
CommitLineData
3d6f7931 1/* Pragma related interfaces.
d4ff96d5 2 Copyright (C) 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
3ef42a0c 3 Free Software Foundation, Inc.
3d6f7931 4
1322177d 5This file is part of GCC.
3d6f7931 6
1322177d
LB
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 2, or (at your option) any later
10version.
3d6f7931 11
1322177d
LB
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
3d6f7931
MM
16
17You should have received a copy of the GNU General Public License
1322177d
LB
18along with GCC; see the file COPYING. If not, write to the Free
19Software Foundation, 59 Temple Place - Suite 330, Boston, MA
2002111-1307, USA. */
3d6f7931 21
88657302
RH
22#ifndef GCC_C_PRAGMA_H
23#define GCC_C_PRAGMA_H
f09db6e0 24
f4086145
BI
25#include <cpplib.h> /* For enum cpp_ttype. */
26
81a75f0f
NB
27/* Cause the `yydebug' variable to be defined. */
28#define YYDEBUG 1
29extern int yydebug;
30
81a75f0f
NB
31extern struct cpp_reader* parse_in;
32
daefd78b 33#define HANDLE_PRAGMA_WEAK SUPPORTS_WEAK
3d6f7931 34
1e0343dd 35#ifdef HANDLE_SYSV_PRAGMA
e2af664c
NC
36/* We always support #pragma pack for SYSV pragmas. */
37#ifndef HANDLE_PRAGMA_PACK
38#define HANDLE_PRAGMA_PACK 1
39#endif
40#endif /* HANDLE_SYSV_PRAGMA */
41
42
43#ifdef HANDLE_PRAGMA_PACK_PUSH_POP
44/* If we are supporting #pragma pack(push... then we automatically
45 support #pragma pack(<n>) */
46#define HANDLE_PRAGMA_PACK 1
e2af664c
NC
47#endif /* HANDLE_PRAGMA_PACK_PUSH_POP */
48
d7afec4b
ND
49/* It's safe to always leave visibility pragma enabled as if
50 visibility is not supported on the host OS platform the
51 statements are ignored. */
52#define HANDLE_PRAGMA_VISIBILITY 1
53
5055d3a3 54extern void init_pragma (void);
f09db6e0 55
b5b3e36a 56/* Front-end wrappers for pragma registration to avoid dragging
c58b209a 57 cpplib.h in almost everywhere. */
f55ade6e
AJ
58extern void c_register_pragma (const char *, const char *,
59 void (*) (struct cpp_reader *));
b5b3e36a
DJ
60extern void c_register_pragma_with_expansion (const char *, const char *,
61 void (*) (struct cpp_reader *));
5055d3a3 62extern void maybe_apply_pragma_weak (tree);
86f029aa 63extern void maybe_apply_pending_pragma_weaks (void);
5055d3a3
AJ
64extern tree maybe_apply_renaming_pragma (tree, tree);
65extern void add_to_renaming_pragma_list (tree, tree);
ecb0eece 66
f4086145 67extern enum cpp_ttype c_lex (tree *);
6037d88d 68extern enum cpp_ttype c_lex_with_flags (tree *, location_t *, unsigned char *);
81a75f0f 69
0173bb6f
AO
70/* If 1, then lex strings into the execution character set.
71 If 0, lex strings into the host character set.
72 If -1, lex both, and chain them together, such that the former
73 is the TREE_CHAIN of the latter. */
74extern int c_lex_string_translate;
21526606 75
c162c75e
MA
76/* If true, strings should be passed to the caller of c_lex completely
77 unmolested (no concatenation, no translation). */
78extern bool c_lex_return_raw_strings;
79
88657302 80#endif /* GCC_C_PRAGMA_H */