-
-#ifdef HANDLE_PRAGMA_WEAK
-/* This structure contains any weak symbol declarations waiting to be emitted. */
-struct weak_syms
-{
- struct weak_syms * next;
- char * name;
- char * value;
-};
-
-/* Declared in varasm.c */
-extern struct weak_syms * weak_decls;
-
-extern int add_weak PROTO((char *, char *));
-#endif /* HANDLE_PRAGMA_WEAK */
-
-
-/* Define HANDLE_GENERIC_PRAGMAS if any kind of front-end pragma
- parsing is to be done. The code in GCC's generic C source files
- will only look for the definition of this constant. They will
- ignore definitions of HANDLE_PRAGMA_PACK and so on.
- With #pragma poison, this is always set. */
-#define HANDLE_GENERIC_PRAGMAS 1
-
-
-#ifdef HANDLE_GENERIC_PRAGMAS
-enum pragma_state
-{
- ps_start,
- ps_done,
-#ifdef HANDLE_PRAGMA_WEAK
- ps_weak,
- ps_name,
- ps_equals,
- ps_value,
-#endif
-#ifdef HANDLE_PRAGMA_PACK
- ps_pack,
- ps_left,
- ps_align,
- ps_right,
-#endif
-#ifdef HANDLE_PRAGMA_PACK_PUSH_POP
- ps_push, ps_pushcomma, ps_pushid, ps_pushcomma2,
- ps_pop, ps_popcomma,
-#endif
- ps_poison,
- ps_bad
-};
-
-/* Handle a C style pragma */
-extern int handle_pragma_token PROTO((const char *, tree));
-
-#endif /* HANDLE_GENERIC_PRAGMAS */
-#endif /* _C_PRAGMA_H */
+/* It's safe to always leave visibility pragma enabled as if
+ visibility is not supported on the host OS platform the
+ statements are ignored. */
+#define HANDLE_PRAGMA_VISIBILITY 1
+extern void push_visibility (const char *, int);
+extern bool pop_visibility (int);
+
+extern void init_pragma (void);
+
+/* Front-end wrappers for pragma registration. */
+typedef void (*pragma_handler)(struct cpp_reader *);
+extern void c_register_pragma (const char *, const char *, pragma_handler);
+extern void c_register_pragma_with_expansion (const char *, const char *,
+ pragma_handler);
+extern void c_invoke_pragma_handler (unsigned int);
+
+extern void maybe_apply_pragma_weak (tree);
+extern void maybe_apply_pending_pragma_weaks (void);
+extern tree maybe_apply_renaming_pragma (tree, tree);
+extern void add_to_renaming_pragma_list (tree, tree);
+
+extern enum cpp_ttype pragma_lex (tree *);
+
+/* Flags for use with c_lex_with_flags. The values here were picked
+ so that 0 means to translate and join strings. */
+#define C_LEX_STRING_NO_TRANSLATE 1 /* Do not lex strings into
+ execution character set. */
+#define C_LEX_STRING_NO_JOIN 2 /* Do not concatenate strings
+ nor translate them into execution
+ character set. */
+
+/* This is not actually available to pragma parsers. It's merely a
+ convenient location to declare this function for c-lex, after
+ having enum cpp_ttype declared. */
+extern enum cpp_ttype c_lex_with_flags (tree *, location_t *, unsigned char *,
+ int);
+
+extern void c_pp_lookup_pragma (unsigned int, const char **, const char **);
+
+#endif /* GCC_C_PRAGMA_H */