1 2004-07-16 Andris Pavenis <pavenis@latnet.lv>
4 * internal.h (struct cpp_reader): New field dir_hash.
5 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
6 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
8 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
13 * expr.c (_cpp_parse_expr): Handle remaining cases where an
14 expression is missing.
15 * init.c (post_options): Traditional cpp doesn't do // comments.
17 2004-06-30 Per Bothner <per@bothner.com>
19 * include/line-map.h (fileline): Remove old typedef.
20 * internal.h (struct cpp_reader): Use source_location typedef instead.
22 2004-06-26 Zack Weinberg <zack@codesourcery.com>
24 Partially revert patch of 2004-06-05.
25 * files.c (search_cache): Remove pfile argument. Don't check
26 for file that would be found by "" or <> search here...
27 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
28 Do not apply directory-of-current-file correction to files
29 found by this check. Rearrange code slightly.
31 2004-06-21 Geoffrey Keating <geoffk@apple.com>
33 * files.c (should_stack_file): Correct swapped parameters to call
35 * pch.c (cpp_valid_state): Handle -fpreprocessed.
37 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
39 * Makefile.in: Regenerate with automake 1.8.5.
40 * aclocal.m4: Likewise.
41 * configure: Regenerate.
43 2004-06-11 Zack Weinberg <zack@codesourcery.com>
45 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
46 * configure, config.in: Regenerate.
47 * system.h: Unconditionally define bool as unsigned char,
48 BOOL_BITFIELD as unsigned int.
49 * .cvsignore: New file.
51 2004-06-09 Geoffrey Keating <geoffk@apple.com>
53 * traditional.c (push_replacement_text): Set macro->traditional.
54 (save_replacement_text): Likewise.
55 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
56 (struct save_macro_item): Delete.
57 (struct save_macro_data): Use a character array not the previous
59 (save_macros): Save macro as text not as internal structures.
60 (cpp_prepare_state): Update for changes to save_macro_data.
61 (cpp_read_state): Don't read macros defined in PCH. Restore
63 * macro.c (create_iso_definition): Honour alloc_subobject.
64 Clear traditional flag.
65 (_cpp_create_definition): Honour alloc_subobject.
66 * lex.c (cpp_token_val_index): New.
67 * internal.h: Include cpp-id-data.h.
68 (uchar): Move definition to cpp-id-data.h.
70 (cpp_macro): Likewise.
71 * directives.c (struct answer): Move to cpp-id-data.h.
72 (do_assert): Honour alloc_subobject.
74 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
75 * include/cpplib.h (struct cpp_string): Add GTY marker.
76 (enum cpp_token_fld_kind): New.
77 (struct cpp_token): Add GTY markers.
78 (cpp_token_val_index): Prototype.
79 (CPP_HASHNODE_VALUE_IDX): New.
80 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
81 * include/cpp-id-data.h: New file.
83 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
85 * Makefile.am (all-local): New.
86 * Makefile.in: Regenerate.
88 2004-06-06 Roger Sayle <roger@eyesopen.com>
90 * Makefile.am (LIBICONV): Declare.
91 (makedepend_LDADD): Use LIBICONV.
92 * Makefile.in: Regenerate.
94 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
96 * Makefile.am (LIBINTL): Declare
97 (makedepend_LDADD): Use LIBINTL.
98 * Makefile.in: Regenerate.
100 2004-06-05 Zack Weinberg <zack@codesourcery.com>
102 * Makefile.am: Add makedepend.
103 * Makefile.in, aclocal.m4: Regenerate.
104 * charset.c: Insert a space to avoid a warning.
105 * directives.c: Include mkdeps.h.
106 (_cpp_handle_directive): Reenable macro expander if appropriate.
107 (undefine_macros): Inline body of _cpp_free_definition for speed.
108 Do not call undef callback or _cpp_warn_if_unused_macro.
109 (cpp_get_deps): New interface.
110 * files.c (search_cache): Add pfile argument. Check for file
111 that would be found by "" or <> search here...
112 (_cpp_find_file): ...not here. Correct recorded start_dir of
113 files found by directory-of-current-file search that would be
114 found by "" or <> search.
115 * init.c (cpp_add_dependency_target): Delete.
116 * internal.h (struct lexer_state): Add discarding_output flag.
117 * lex.c (lex_identifier): Compute hash function while scanning.
118 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
120 * makedepend.c: New file.
121 * mkdeps.c (struct deps): Add vpath vector.
122 (apply_vpath, deps_add_vpath): New function.
123 (deps_free): Free vpath vector.
124 (deps_add_dep, deps_add_target): Use apply_vpath.
125 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
126 (ht_lookup_with_hash): New function.
127 * cpplib.h, mkdeps.h: Update prototypes.
128 * symtab.h: Update prototypes.
129 (HT_HASHSTEP, HT_FINISH): New macros.
131 2004-05-29 Geoffrey Keating <geoffk@apple.com>
133 * symtab.c (ht_create): Set entries_owned.
134 (ht_destroy): Honour entries_owned.
135 (ht_expand): Likewise.
137 * include/symtab.h (struct ht): New field 'entries_owned'
138 (ht_load): New prototype.
140 2004-05-26 Paolo Bonzini <bonzini@gnu.org>
143 * configure.ac: Fix m4 quoting when picking
144 the size of HOST_WIDE_INT.
145 * configure: Regenerate.
147 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
149 * Makefile.am: the correct directory for
150 gettext include files is given by @INCINTL@.
151 * Makefile.in: Regenerate.
153 2004-05-24 Paolo Bonzini <bonzini@gnu.org>
155 * system.h [!ENABLE_NLS]: dgettext takes two
158 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
160 Moved libcpp from the gcc subdirectory to the toplevel.
161 * Makefile.am: New file.
162 * Makefile.in: Regenerate.
163 * configure.ac: New file.
164 * configure: Regenerate.
165 * config.in: Regenerate.
166 * charset.c: Moved from gcc/cppcharset.c. Add note about
167 brokenness of input charset detection. Adjust for change
168 in name of cppucnid.h.
169 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
170 * expr.c: Moved from gcc/cppexp.c.
171 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
172 Remove #define of O_BINARY, it is in system.h.
173 * identifiers.c: Moved from gcc/cpphash.c.
174 * internal.h: Moved from gcc/cpphash.h. Change header
175 guard name. All other files adjusted to match name change.
176 * init.c: Moved from gcc/cppinit.c.
177 (init_library) [ENABLE_NLS]: Call bindtextdomain.
178 * lex.c: Moved from gcc/cpplex.c.
179 * directives.c: Moved from gcc/cpplib.c.
180 * macro.c: Moved from gcc/cppmacro.c.
181 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
182 * traditional.c: Moved from gcc/cpptrad.c.
183 * ucnid.h: Moved from gcc/cppucnid.h. Change header
185 * ucnid.pl: Moved from gcc/cppucnid.pl.
186 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
188 * symtab.c: Moved from gcc/hashtable.c.
189 * line-map.c: Moved from gcc. Do not include intl.h.
190 * mkdeps.c: Moved from gcc.
191 * system.h: New file.
192 * include/cpplib.h: Moved from gcc. Change header guard name.
193 * include/line-map.h: Moved from gcc. Change header guard name.
194 * include/mkdeps.h: Moved from gcc. Change header guard name.
195 * include/symtab.h: Moved from gcc/hashtable.h. Change header