diff options
author | J"orn Rennecke <joern.rennecke@superh.com> | 2003-06-04 17:19:36 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2003-06-04 18:19:36 +0100 |
commit | e3091a5f95cfd2130771ebf7cc8535c573d50875 (patch) | |
tree | 9c6eef08bd0e2573f12d93a729188a118acda416 /gcc/c-decl.c | |
parent | f0483418a0c29a4c6358f15dbf2fe028f07282e7 (diff) | |
download | gcc-e3091a5f95cfd2130771ebf7cc8535c573d50875.zip gcc-e3091a5f95cfd2130771ebf7cc8535c573d50875.tar.gz gcc-e3091a5f95cfd2130771ebf7cc8535c573d50875.tar.bz2 |
c-decl.c (c_init_decl_processing): Clear input_file_name while building common nodes.
* c-decl.c (c_init_decl_processing): Clear input_file_name
while building common nodes.
* dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
Don't add working directory for strings like <built-in> .
From-SVN: r67452
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index f9124e4..b81ecd8 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2268,6 +2268,7 @@ c_init_decl_processing () { tree endlink; tree ptr_ftype_void, ptr_ftype_ptr; + const char *save_input_filename; /* Adds some ggc roots, and reserved words for c-parse.in. */ c_parse_init (); @@ -2280,6 +2281,11 @@ c_init_decl_processing () /* Make the binding_level structure for global names. */ pushlevel (0); global_binding_level = current_binding_level; + /* 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; build_common_tree_nodes (flag_signed_char); @@ -2307,6 +2313,8 @@ c_init_decl_processing () = build_function_type (ptr_type_node, tree_cons (NULL_TREE, ptr_type_node, endlink)); + input_filename = save_input_filename; + pedantic_lvalues = pedantic; make_fname_decl = c_make_fname_decl; |