aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-08-22 20:37:20 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-08-22 20:37:20 +0000
commit29401c300b273963c88bb08bb6282acdf11e75c2 (patch)
tree5d1c57d7edd200e5b5467bf355348a54e5238af3 /gcc/cppinit.c
parent8060c8ee523a6016589157d25ff9e82adc4ebb0c (diff)
downloadgcc-29401c300b273963c88bb08bb6282acdf11e75c2.zip
gcc-29401c300b273963c88bb08bb6282acdf11e75c2.tar.gz
gcc-29401c300b273963c88bb08bb6282acdf11e75c2.tar.bz2
cpperror.c (print_location): Don't show _Pragma.
* cpperror.c (print_location): Don't show _Pragma. * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing and file change callback generation here. (stack_include_file): Update use of cpp_push_buffer. * cpphash.h (_cpp_pop_file_buffer): Update prototype. (struct cpp_buffer): Remove type, pfile members. * cppinit.c (cpp_handle_option): Use free_chain. * cpplex.c (_cpp_lex_token): Don't do -include file pushing here. (skip_escaped_newlines, get_effective_char, lex_percent): Take a cpp_reader rather than a cpp_buffer. (skip_escaped_newlines, get_effective_char, skip_block_comment, skip_line_comment, parse_string, lex_percent, lex_dot, _cpp_lex_token): Update accordingly. * cpplib.c (_cpp_pop_buffer): Don't do file change callback generation here. (cpp_push_buffer): Update prototype. (run_directive): Update use of cpp_push_buffer. (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef, handle_assertion): Update use of run_directive. * cpplib.h (enum cpp_buffer_type): Remove. (cpp_push_buffer): Update prototype. * fix-header.c (read_scan_file): Update. From-SVN: r45112
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index b57910c..9e5fa8e 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -1546,15 +1546,7 @@ cpp_handle_option (pfile, argc, argv)
if (arg[1] == '\0')
{
- struct pending_option *o1, *o2;
-
- o1 = pend->directive_head;
- while (o1)
- {
- o2 = o1->next;
- free (o1);
- o1 = o2;
- }
+ free_chain (pend->directive_head);
pend->directive_head = NULL;
pend->directive_tail = NULL;
}