#include "config.h"#include "system.h"#include "coretypes.h"#include "tm.h"#include "rtl.h"#include "tree.h"#include "function.h"#include "cpplib.h"#include "c-pragma.h"#include "flags.h"#include "toplev.h"#include "ggc.h"#include "c-common.h"#include "output.h"#include "tm_p.h"#include "vec.h"#include "target.h"#include "diagnostic.h"#include "opts.h"#include "gt-c-pragma.h"

Go to the source code of this file.
| #define GCC_BAD | ( | gmsgid | ) | do { warning (OPT_Wpragmas, gmsgid); return; } while (0) |
Definition at line 42 of file c-pragma.c.
Definition at line 44 of file c-pragma.c.
| typedef enum symbol_visibility visibility |
Definition at line 597 of file c-pragma.c.
Definition at line 465 of file c-pragma.c.
References purpose_member(), tree_cons, TREE_VALUE, and warning.
| void c_invoke_pragma_handler | ( | unsigned int | id | ) |
Definition at line 772 of file c-pragma.c.
References handler(), parse_in, PRAGMA_FIRST_EXTERNAL, and VEC_index.
Referenced by c_parser_pragma(), and cp_parser_pragma().
| void c_register_pragma | ( | const char * | space, | |
| const char * | name, | |||
| pragma_handler | handler | |||
| ) |
Definition at line 759 of file c-pragma.c.
| void c_register_pragma_with_expansion | ( | const char * | space, | |
| const char * | name, | |||
| pragma_handler | handler | |||
| ) |
Definition at line 765 of file c-pragma.c.
| DEF_VEC_ALLOC_I | ( | visibility | , | |
| heap | ||||
| ) |
| DEF_VEC_ALLOC_O | ( | pragma_handler | , | |
| heap | ||||
| ) |
| DEF_VEC_I | ( | visibility | ) |
| DEF_VEC_O | ( | pragma_handler | ) |
| struct align_stack GTY | ( | () | ) | [read, write] |
| static void handle_pragma_diagnostic | ( | cpp_reader * | ARG_UNUSEDdummy | ) | [static] |
Definition at line 684 of file c-pragma.c.
References cfun, cl_options, cl_options_count, CLVC_BOOLEAN, diagnostic_classify_diagnostic(), error(), GCC_BAD, global_dc, IDENTIFIER_POINTER, option_string, pragma_lex(), strcmp(), and TREE_STRING_POINTER.
Referenced by init_pragma().
| static void handle_pragma_visibility | ( | cpp_reader *dummy | ATTRIBUTE_UNUSED | ) | [static] |
Definition at line 637 of file c-pragma.c.
References GCC_BAD, IDENTIFIER_POINTER, pop(), pop_visibility(), pragma_lex(), push(), push_visibility(), strcmp(), VEC_length, and warning.
| static void handle_pragma_visibility | ( | cpp_reader * | ) | [static] |
| static void handle_pragma_weak | ( | cpp_reader * | ARG_UNUSEDdummy | ) | [static] |
Definition at line 335 of file c-pragma.c.
References assemble_alias(), DECL_P, GCC_BAD, identifier_global_value(), pragma_lex(), tree_cons, and warning.
Definition at line 784 of file c-pragma.c.
References c_register_pragma(), c_register_pragma_with_expansion(), cpp_register_deferred_pragma(), cpp_register_pragma(), flag_openmp, flag_preprocess_only, handle_pragma_diagnostic(), handle_pragma_visibility(), handle_pragma_weak(), i, parse_in, PRAGMA_GCC_PCH_PREPROCESS, PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER, PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR, PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED, PRAGMA_OMP_PARALLEL, PRAGMA_OMP_SECTION, PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE, PRAGMA_OMP_THREADPRIVATE, and REGISTER_TARGET_PRAGMAS.
Definition at line 309 of file c-pragma.c.
References assemble_alias(), build_decl, DECL_ARTIFICIAL, DECL_EXTERNAL, DECL_WEAK, default_function_type, next, NULL, p, TREE_CHAIN, TREE_PUBLIC, TREE_PURPOSE, and TREE_VALUE.
Definition at line 276 of file c-pragma.c.
References DECL_ASSEMBLER_NAME, DECL_EXTERNAL, p, TREE_CHAIN, TREE_CODE, TREE_PUBLIC, TREE_PURPOSE, and TREE_VALUE.
Definition at line 507 of file c-pragma.c.
References alloca, build_string(), DECL_ASSEMBLER_NAME, DECL_ASSEMBLER_NAME_SET_P, DECL_EXTERNAL, DECL_NAME, has_c_linkage(), IDENTIFIER_LENGTH, IDENTIFIER_POINTER, memcpy, p, strcmp(), gcc_target::strip_name_encoding, targetm, TREE_CHAIN, TREE_CODE, TREE_PUBLIC, TREE_PURPOSE, TREE_STRING_LENGTH, TREE_STRING_POINTER, TREE_VALUE, and warning.
Definition at line 626 of file c-pragma.c.
References default_visibility, visibility_flags::inpragma, VEC_length, VEC_pop, and visibility_options.
Referenced by handle_pragma_visibility(), and leave_scope().
| static VEC | ( | pragma_handler | , | |
| heap | ||||
| ) | [static] |
Definition at line 735 of file c-pragma.c.
References cpp_register_deferred_pragma(), gcc_assert, parse_in, PRAGMA_FIRST_EXTERNAL, VEC_length, and VEC_safe_push.
| static VEC | ( | visibility | , | |
| heap | ||||
| ) | [static] |
Definition at line 600 of file c-pragma.c.
References default_visibility, GCC_BAD, visibility_flags::inpragma, strcmp(), VEC_safe_push, VISIBILITY_DEFAULT, VISIBILITY_HIDDEN, VISIBILITY_INTERNAL, visibility_options, and VISIBILITY_PROTECTED.
Definition at line 52 of file c-pragma.c.
1.5.6