summaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-11 07:45:16 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-11 07:45:16 +0000
commit6cee446440f9e5ec98caa17a412ec0e95f45b79d (patch)
tree1cf059e8adaf7964d2336feb8095b222fd1c04cb /gcc/fix-header.c
parent47230e8adcb52c4e9504ee37c50055cc13a79188 (diff)
downloadgcc-6cee446440f9e5ec98caa17a412ec0e95f45b79d.tar.gz
* cpperror.c (print_location): New function.
(print_containing_files): Simplify. (_cpp_begin_message): Simplify and use print_location. * cppfiles.c (stack_include_file): Update. (_cpp_pop_file_buffer): Update. * cpphash.h (struct cpp_buffer): New members include_stack_listed and type. * cpplib.c (_cpp_handle_directive): Buffer->inc is not null. (run_directive): Take buffer type. cpp_push_buffer cannot fail. (_cpp_do__Pragma, cpp_define, _cpp_define_builtin, cpp_undef, handle_assertion): Update. (cpp_push_buffer): Take a buffer type and file name. (cpp_pop_buffer): Update. Clear include_stack_listed. * cpplib.h (input_stack_listing_current): Remove. (enum cpp_buffer_type): New. (cpp_push_buffer): New prototype. * cppmacro.c (builtin_macro): Simplify; buffer cannot be null. * fix-header.c (read_scan_file): Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38186 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 281e4c411c9..a02a2ce5d5a 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -651,7 +651,8 @@ read_scan_file (in_fname, argc, argv)
int seen_filbuf = 0;
/* Scan the macro expansion of "getchar();". */
- cpp_push_buffer (scan_in, getchar_call, sizeof(getchar_call) - 1);
+ cpp_push_buffer (scan_in, getchar_call, sizeof(getchar_call) - 1,
+ BUF_FILE, in_fname);
for (;;)
{
cpp_token t;