summaryrefslogtreecommitdiff
path: root/gcc/c-pragma.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-08 22:17:24 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-08 22:17:24 +0000
commit7e5ab4e3f928e8d193ef2cebe9164cc5a5855cf2 (patch)
tree575e61522dd8af397ddff4ea88c2f3af9da2fe7a /gcc/c-pragma.h
parent727ff49f451c091e0569a9d810d8fd30ae860022 (diff)
downloadgcc-7e5ab4e3f928e8d193ef2cebe9164cc5a5855cf2.tar.gz
* c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
(init_pragma): Avoid warning if pfile happens to be unused. * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never define init_pragma to nothing. Always prototype init_pragma. Prototype dispatch_pragma if !USE_CPPLIB. * c-lex.c (process_directive): Always call dispatch_pragma. Initialize entering_c_header to 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36277 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.h')
-rw-r--r--gcc/c-pragma.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/gcc/c-pragma.h b/gcc/c-pragma.h
index d669d9d734f..314273bde2e 100644
--- a/gcc/c-pragma.h
+++ b/gcc/c-pragma.h
@@ -57,25 +57,11 @@ extern struct weak_syms * weak_decls;
extern int add_weak PARAMS ((const char *, const 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. */
-#if defined HANDLE_PRAGMA_PACK || defined HANDLE_PRAGMA_WEAK \
- || defined REGISTER_TARGET_PRAGMAS
-#define HANDLE_GENERIC_PRAGMAS
-#endif
-
-#ifdef HANDLE_GENERIC_PRAGMAS
extern void init_pragma PARAMS ((void));
-# if !USE_CPPLIB
+/* If cpplib is in use, it handles dispatch. */
+#if !USE_CPPLIB
extern void dispatch_pragma PARAMS ((void));
-# endif
-
-#else
-# define init_pragma()
#endif
/* Duplicate prototypes for the register_pragma stuff and the typedef for