aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-09-08 22:17:24 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-09-08 22:17:24 +0000
commitae54392bb967c32fc1a907403006a16cef7ed990 (patch)
tree575e61522dd8af397ddff4ea88c2f3af9da2fe7a /gcc/c-lex.c
parent385c92176c8fe88def705968cfb05d3a6ae8df4b (diff)
downloadgcc-ae54392bb967c32fc1a907403006a16cef7ed990.zip
gcc-ae54392bb967c32fc1a907403006a16cef7ed990.tar.gz
gcc-ae54392bb967c32fc1a907403006a16cef7ed990.tar.bz2
c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
* 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. From-SVN: r36277
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index e522144..fa5c7a7 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -438,7 +438,7 @@ process_directive ()
int action_number, l;
char *new_file;
#ifndef NO_IMPLICIT_EXTERN_C
- int entering_c_header;
+ int entering_c_header = 0;
#endif
/* Don't read beyond this line. */
@@ -457,9 +457,7 @@ process_directive ()
if (!strcmp (name, "pragma"))
{
-#ifdef HANDLE_GENERIC_PRAGMAS
dispatch_pragma ();
-#endif
goto skipline;
}
else if (!strcmp (name, "define"))