OSDN Git Service

* stmt.c (current_nesting_level): New fn.
[pf3gnuchains/gcc-fork.git] / gcc / c-pragma.c
index 2bb0bc5..8be3a6b 100644 (file)
@@ -1,5 +1,6 @@
 /* Handle #pragma, system V.4 style.  Supports #pragma weak and #pragma pack.
-   Copyright (C) 1992, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001
+   Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -23,7 +24,6 @@ Boston, MA 02111-1307, USA.  */
 #include "rtl.h"
 #include "tree.h"
 #include "function.h"
-#include "defaults.h"
 #include "cpplib.h"
 #include "c-pragma.h"
 #include "flags.h"
@@ -32,8 +32,6 @@ Boston, MA 02111-1307, USA.  */
 #include "c-lex.h"
 #include "tm_p.h"
 
-extern cpp_reader parse_in;
-
 #define BAD(msgid) do { warning (msgid); return; } while (0)
 #define BAD2(msgid, arg) do { warning (msgid, arg); return; } while (0)
 
@@ -306,17 +304,14 @@ handle_pragma_weak (dummy)
 void
 init_pragma ()
 {
-  cpp_reader *pfile ATTRIBUTE_UNUSED;
-  pfile = &parse_in;
-
 #ifdef HANDLE_PRAGMA_PACK
-  cpp_register_pragma (pfile, 0, "pack", handle_pragma_pack);
+  cpp_register_pragma (parse_in, 0, "pack", handle_pragma_pack);
 #endif
 #ifdef HANDLE_PRAGMA_WEAK
-  cpp_register_pragma (pfile, 0, "weak", handle_pragma_weak);
+  cpp_register_pragma (parse_in, 0, "weak", handle_pragma_weak);
 #endif
 #ifdef REGISTER_TARGET_PRAGMAS
-  REGISTER_TARGET_PRAGMAS (pfile);
+  REGISTER_TARGET_PRAGMAS (parse_in);
 #endif
 
 #ifdef HANDLE_PRAGMA_PACK_PUSH_POP