OSDN Git Service

* c-decl.c (c_init_decl_processing): Use a location_t. Set input
[pf3gnuchains/gcc-fork.git] / gcc / c-decl.c
index 0caed47..78b74a4 100644 (file)
@@ -2232,8 +2232,8 @@ c_init_decl_processing (void)
 {
   tree endlink;
   tree ptr_ftype_void, ptr_ftype_ptr;
-  const char *save_input_filename;
-
+  location_t save_loc = input_location;
+  
   /* Adds some ggc roots, and reserved words for c-parse.in.  */
   c_parse_init ();
 
@@ -2248,8 +2248,8 @@ c_init_decl_processing (void)
   /* Declarations from c_common_nodes_and_builtins must not be associated
      with this input file, lest we get differences between using and not
      using preprocessed headers.  */
-  save_input_filename = input_filename;
-  input_filename = NULL;
+  input_location.file = "<internal>";
+  input_location.line = 0;
 
   build_common_tree_nodes (flag_signed_char);
 
@@ -2277,7 +2277,7 @@ c_init_decl_processing (void)
     = build_function_type (ptr_type_node,
                           tree_cons (NULL_TREE, ptr_type_node, endlink));
 
-  input_filename = save_input_filename;
+  input_location = save_loc;
 
   pedantic_lvalues = pedantic;