OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [c-pragma.h] - Blame information for rev 827

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Pragma related interfaces.
2
   Copyright (C) 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
3
   2007  Free Software Foundation, Inc.
4
 
5
This file is part of GCC.
6
 
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 3, or (at your option) any later
10
version.
11
 
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.
16
 
17
You should have received a copy of the GNU General Public License
18
along with GCC; see the file COPYING3.  If not see
19
<http://www.gnu.org/licenses/>.  */
20
 
21
#ifndef GCC_C_PRAGMA_H
22
#define GCC_C_PRAGMA_H
23
 
24
#include <cpplib.h> /* For enum cpp_ttype.  */
25
 
26
/* Pragma identifiers built in to the front end parsers.  Identifiers
27
   for ancillary handlers will follow these.  */
28
typedef enum pragma_kind {
29
  PRAGMA_NONE = 0,
30
 
31
  PRAGMA_OMP_ATOMIC,
32
  PRAGMA_OMP_BARRIER,
33
  PRAGMA_OMP_CRITICAL,
34
  PRAGMA_OMP_FLUSH,
35
  PRAGMA_OMP_FOR,
36
  PRAGMA_OMP_MASTER,
37
  PRAGMA_OMP_ORDERED,
38
  PRAGMA_OMP_PARALLEL,
39
  PRAGMA_OMP_PARALLEL_FOR,
40
  PRAGMA_OMP_PARALLEL_SECTIONS,
41
  PRAGMA_OMP_SECTION,
42
  PRAGMA_OMP_SECTIONS,
43
  PRAGMA_OMP_SINGLE,
44
  PRAGMA_OMP_THREADPRIVATE,
45
 
46
  PRAGMA_GCC_PCH_PREPROCESS,
47
 
48
  PRAGMA_FIRST_EXTERNAL
49
} pragma_kind;
50
 
51
/* Cause the `yydebug' variable to be defined.  */
52
#define YYDEBUG 1
53
extern int yydebug;
54
 
55
extern struct cpp_reader* parse_in;
56
 
57
#define HANDLE_PRAGMA_WEAK SUPPORTS_WEAK
58
 
59
#ifdef HANDLE_SYSV_PRAGMA
60
/* We always support #pragma pack for SYSV pragmas.  */
61
#ifndef HANDLE_PRAGMA_PACK
62
#define HANDLE_PRAGMA_PACK 1
63
#endif
64
#endif /* HANDLE_SYSV_PRAGMA */
65
 
66
 
67
#ifdef HANDLE_PRAGMA_PACK_PUSH_POP
68
/* If we are supporting #pragma pack(push... then we automatically
69
   support #pragma pack(<n>)  */
70
#define HANDLE_PRAGMA_PACK 1
71
#endif /* HANDLE_PRAGMA_PACK_PUSH_POP */
72
 
73
/* It's safe to always leave visibility pragma enabled as if
74
   visibility is not supported on the host OS platform the
75
   statements are ignored.  */
76
#define HANDLE_PRAGMA_VISIBILITY 1
77
extern void push_visibility (const char *);
78
extern void pop_visibility (void);
79
 
80
extern void init_pragma (void);
81
 
82
/* Front-end wrappers for pragma registration.  */
83
typedef void (*pragma_handler)(struct cpp_reader *);
84
extern void c_register_pragma (const char *, const char *, pragma_handler);
85
extern void c_register_pragma_with_expansion (const char *, const char *,
86
                                              pragma_handler);
87
extern void c_invoke_pragma_handler (unsigned int);
88
 
89
extern void maybe_apply_pragma_weak (tree);
90
extern void maybe_apply_pending_pragma_weaks (void);
91
extern tree maybe_apply_renaming_pragma (tree, tree);
92
extern void add_to_renaming_pragma_list (tree, tree);
93
 
94
extern enum cpp_ttype pragma_lex (tree *);
95
 
96
/* This is not actually available to pragma parsers.  It's merely a
97
   convenient location to declare this function for c-lex, after
98
   having enum cpp_ttype declared.  */
99
extern enum cpp_ttype c_lex_with_flags (tree *, location_t *, unsigned char *);
100
 
101
/* If 1, then lex strings into the execution character set.
102
   If 0, lex strings into the host character set.
103
   If -1, lex both, and chain them together, such that the former
104
   is the TREE_CHAIN of the latter.  */
105
extern int c_lex_string_translate;
106
 
107
/* If true, strings should be passed to the caller of c_lex completely
108
   unmolested (no concatenation, no translation).  */
109
extern bool c_lex_return_raw_strings;
110
 
111
#endif /* GCC_C_PRAGMA_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.