]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
re PR c++/17554 (crashes in on kopete build (KDE's kdenetwork))
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
646544e3
AP
12004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2
3 * pch.c (cpp_write_pch_state): Remove variable z as it is not
4 used.
5 (cpp_read_state): Remove unused variables, m, d and mac_count.
6
67a74146
PB
72004-09-29 Per Bothner <per@bothner.com>
8
9 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
10 cb.line_change. Otherwise do_pragma will call the line_change
11 call-back with a meaningless line number.
12
018a4785
ZW
132004-09-24 Zack Weinberg <zack@codesourcery.com>
14
15 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
16 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
17 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
18 * aclocal.m4, configure: Regenerate.
19 * init.c: Include localedir.h.
20 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
21 (DEFS): Delete.
22 (.c.o): Use $(ALL_CFLAGS).
23 (localedir.h, localedir.hs): New rules.
24 (clean): Use rm -rf to remove directories.
25 (distclean): Also delete localedir.h and localedir.hs.
26 (init.o): Update dependencies.
27
88fa57d7
KC
282004-09-22 Kelley Cook <kcook@gcc.gnu.org>
29
30 * Makefile.in (aclocal.m4): Update dependencies.
31 * configure.ac (AC_CONFIG_MACRO_DIR): New.
32 * aclocal.m4, configure: Regenerate.
33
8f8e9aa5
ZW
342004-09-17 Zack Weinberg <zack@codesourcery.com>
35
a29f62d9
ZW
36 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
37 (_cpp_convert_input, _cpp_default_encoding): Add comments.
38 Some other comments in this file also tweaked.
39
8f8e9aa5
ZW
40 * directives.c (do_pragma): Save current buffer position
41 before lexing the pragma keywords; don't call
42 _cpp_backup_tokens in the defer_pragmas case.
43
a2981930
PB
442004-09-15 Per Bothner <per@bothner.com>
45
46 * include/line-map.h (line_map_start): Add parameter names so
47 preceding comment makes sense.
48 (linemap_add): Remove from comment mention of non-existing parameter.
49
21b11495
ZW
502004-09-09 Matt Austern <austern@apple.com>
51 Zack Weinberg <zack@codesourcery.com>
52
53 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
54 prefixes throughout. Add entry for PRAGMA. Remove
55 unnecessary "= 0" from EQ.
56 (enum cpp_ttype): Adjust OP and TK definitions to restore
57 prefixes, via token-paste.
58 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
59 Change from #defines to additional cpp_ttype enumerators.
60 (struct cpp_options): Add defer_pragmas.
61 (cpp_handle_deferred_pragma): Prototype new interface.
62
63 * internal.h (struct cpp_reader): Add directive_result.
64 * directives.c (struct pragma_entry): Add is_internal field;
65 give boolean fields type bool.
66 (start_directive): Initialize pfile->directive_result.type.
67 (_cpp_do__Pragma): Likewise.
68 (run_directive): Do not crash if pfile->buffer->prev is NULL.
69 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
70 from it.
71 (register_pragma): New static function, bulk of former
72 cpp_register_pragma here; add 'internal' argument, pass along
73 to insert_pragma_entry.
74 (cpp_register_pragma): Now a wrapper around register_pragma which
75 always passes false for 'internal' argument.
76 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
77 true for 'internal'.
78 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
79 an internal pragma, save text till the end of the line as a CPP_PRAGMA
80 token instead of executing the pragma.
81 (cpp_handle_deferred_pragma): New interface.
82 * lex.c (token_spellings): Adjust OP and TK definitions to
83 match changes to cpplib.h.
84 (_cpp_lex_token): Check for a directive-result token and
85 return it if present.
86 (cpp_token_val_index): Handle CPP_PRAGMA.
87 * macro.c (cpp_builtin_macro_text): Correct comment.
88 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
89
0fd9e8dd
SB
902004-09-06 Serge Belyshev <belyshev@lubercy.com>
91
92 PR preprocessor/14699
93 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
94 from size_t to double.
95
39b8ce7f
AS
962004-08-28 Andreas Schwab <schwab@suse.de>
97 Andreas Jaeger <aj@suse.de>
98
99 * configure.ac: Set PACKAGE correctly.
100 * configure: Regenerated.
101
5d1f4b27
PB
1022004-08-25 Paolo Bonzini <bonzini@gnu.org>
103
104 * Makefile.in: Add back top_builddir.
105
078e3ffe
PB
1062004-08-25 Paolo Bonzini <bonzini@gnu.org>
107
108 * configure.ac: Replace Automake macro invocations
109 with manual Autoconf checks and substitutions.
110 * configure: Regenerate.
111 * aclocal.m4: Regenerate.
112 * config.in: Regenerate.
113 * Makefile.am: Removed.
114 * Makefile.in: Heavy simplification and reorganization.
115
b3f8d95d
MM
1162004-08-09 Mark Mitchell <mark@codesourcery.com>
117
118 * configure.ac (arm*-*-eabi*): New target.
119 (arm*-*-symbianelf*): Likewise.
120 * configure: Regenerated.
121
72bb2c39
BI
1222004-07-24 Bernardo Innocenti <bernie@develer.com>
123
124 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
125 * directives.c: Use XNEW-family macros from libiberty.
126 * lex.c: Likewise.
127 * macro.c: Likewise.
128 * cpplib.h (cpp_deps_style): Export enum with name.
129
21b11495 1302004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 131
21b11495 132 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 133
a23ee064
AP
1342004-07-16 Andris Pavenis <pavenis@latnet.lv>
135
136 PR preprocessor/16366
137 * internal.h (struct cpp_reader): New field dir_hash.
138 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
139 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
140
a09d4744
NB
1412004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
142
143 PR preprocessor/16192
144 PR preprocessor/15913
145 PR preprocessor/15572
146 * expr.c (_cpp_parse_expr): Handle remaining cases where an
147 expression is missing.
148 * init.c (post_options): Traditional cpp doesn't do // comments.
149
f58f7def
PB
1502004-06-30 Per Bothner <per@bothner.com>
151
152 * include/line-map.h (fileline): Remove old typedef.
153 * internal.h (struct cpp_reader): Use source_location typedef instead.
154
e83d8d43
ZW
1552004-06-26 Zack Weinberg <zack@codesourcery.com>
156
157 Partially revert patch of 2004-06-05.
158 * files.c (search_cache): Remove pfile argument. Don't check
159 for file that would be found by "" or <> search here...
160 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
161 Do not apply directory-of-current-file correction to files
162 found by this check. Rearrange code slightly.
163
c0d578e6
GK
1642004-06-21 Geoffrey Keating <geoffk@apple.com>
165
166 * files.c (should_stack_file): Correct swapped parameters to call
167 to cb.read_pch.
168 * pch.c (cpp_valid_state): Handle -fpreprocessed.
169
159d5224
PB
1702004-06-15 Paolo Bonzini <bonzini@gnu.org>
171
172 * Makefile.in: Regenerate with automake 1.8.5.
173 * aclocal.m4: Likewise.
174 * configure: Regenerate.
175
2fac9c01
ZW
1762004-06-11 Zack Weinberg <zack@codesourcery.com>
177
178 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
179 * configure, config.in: Regenerate.
180 * system.h: Unconditionally define bool as unsigned char,
181 BOOL_BITFIELD as unsigned int.
182 * .cvsignore: New file.
183
d8044160
GK
1842004-06-09 Geoffrey Keating <geoffk@apple.com>
185
186 * traditional.c (push_replacement_text): Set macro->traditional.
187 (save_replacement_text): Likewise.
188 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
189 (struct save_macro_item): Delete.
190 (struct save_macro_data): Use a character array not the previous
191 structured format.
192 (save_macros): Save macro as text not as internal structures.
193 (cpp_prepare_state): Update for changes to save_macro_data.
194 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 195 -D macros as text.
d8044160
GK
196 * macro.c (create_iso_definition): Honour alloc_subobject.
197 Clear traditional flag.
198 (_cpp_create_definition): Honour alloc_subobject.
199 * lex.c (cpp_token_val_index): New.
200 * internal.h: Include cpp-id-data.h.
201 (uchar): Move definition to cpp-id-data.h.
202 (U): Likewise.
203 (cpp_macro): Likewise.
204 * directives.c (struct answer): Move to cpp-id-data.h.
205 (do_assert): Honour alloc_subobject.
2cf22451
ZW
206
207 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
208 * include/cpplib.h (struct cpp_string): Add GTY marker.
209 (enum cpp_token_fld_kind): New.
210 (struct cpp_token): Add GTY markers.
211 (cpp_token_val_index): Prototype.
212 (CPP_HASHNODE_VALUE_IDX): New.
213 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
214 * include/cpp-id-data.h: New file.
d8044160 215
0ca8e815
PB
2162004-06-09 Paolo Bonzini <bonzini@gnu.org>
217
218 * Makefile.am (all-local): New.
219 * Makefile.in: Regenerate.
220
b51fa00f
RS
2212004-06-06 Roger Sayle <roger@eyesopen.com>
222
223 * Makefile.am (LIBICONV): Declare.
224 (makedepend_LDADD): Use LIBICONV.
225 * Makefile.in: Regenerate.
226
5e2f3f39
AP
2272004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
228
229 * Makefile.am (LIBINTL): Declare
230 (makedepend_LDADD): Use LIBINTL.
231 * Makefile.in: Regenerate.
232
c6e83800
ZW
2332004-06-05 Zack Weinberg <zack@codesourcery.com>
234
235 * Makefile.am: Add makedepend.
236 * Makefile.in, aclocal.m4: Regenerate.
237 * charset.c: Insert a space to avoid a warning.
238 * directives.c: Include mkdeps.h.
239 (_cpp_handle_directive): Reenable macro expander if appropriate.
240 (undefine_macros): Inline body of _cpp_free_definition for speed.
241 Do not call undef callback or _cpp_warn_if_unused_macro.
242 (cpp_get_deps): New interface.
243 * files.c (search_cache): Add pfile argument. Check for file
244 that would be found by "" or <> search here...
245 (_cpp_find_file): ...not here. Correct recorded start_dir of
246 files found by directory-of-current-file search that would be
247 found by "" or <> search.
248 * init.c (cpp_add_dependency_target): Delete.
249 * internal.h (struct lexer_state): Add discarding_output flag.
250 * lex.c (lex_identifier): Compute hash function while scanning.
251 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
252 directives.
253 * makedepend.c: New file.
254 * mkdeps.c (struct deps): Add vpath vector.
255 (apply_vpath, deps_add_vpath): New function.
256 (deps_free): Free vpath vector.
257 (deps_add_dep, deps_add_target): Use apply_vpath.
258 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
259 (ht_lookup_with_hash): New function.
260 * cpplib.h, mkdeps.h: Update prototypes.
261 * symtab.h: Update prototypes.
262 (HT_HASHSTEP, HT_FINISH): New macros.
263
b453c95f
GK
2642004-05-29 Geoffrey Keating <geoffk@apple.com>
265
266 * symtab.c (ht_create): Set entries_owned.
267 (ht_destroy): Honour entries_owned.
268 (ht_expand): Likewise.
269 (ht_load): New.
2cf22451
ZW
270 * include/symtab.h (struct ht): New field 'entries_owned'
271 (ht_load): New prototype.
b453c95f 272
963e23c5
PB
2732004-05-26 Paolo Bonzini <bonzini@gnu.org>
274
275 PR bootstrap/15651
276 * configure.ac: Fix m4 quoting when picking
277 the size of HOST_WIDE_INT.
278 * configure: Regenerate.
279
0429bc77
PB
2802004-05-25 Paolo Bonzini <bonzini@gnu.org>
281
282 * Makefile.am: the correct directory for
283 gettext include files is given by @INCINTL@.
284 * Makefile.in: Regenerate.
285
c86dd7db
PB
2862004-05-24 Paolo Bonzini <bonzini@gnu.org>
287
288 * system.h [!ENABLE_NLS]: dgettext takes two
289 parameters.
290
4f4e53dd
PB
2912004-05-23 Paolo Bonzini <bonzini@gnu.org>
292
293 Moved libcpp from the gcc subdirectory to the toplevel.
294 * Makefile.am: New file.
295 * Makefile.in: Regenerate.
296 * configure.ac: New file.
297 * configure: Regenerate.
298 * config.in: Regenerate.
299 * charset.c: Moved from gcc/cppcharset.c. Add note about
300 brokenness of input charset detection. Adjust for change
301 in name of cppucnid.h.
302 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
303 * expr.c: Moved from gcc/cppexp.c.
304 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
305 Remove #define of O_BINARY, it is in system.h.
306 * identifiers.c: Moved from gcc/cpphash.c.
307 * internal.h: Moved from gcc/cpphash.h. Change header
308 guard name. All other files adjusted to match name change.
309 * init.c: Moved from gcc/cppinit.c.
310 (init_library) [ENABLE_NLS]: Call bindtextdomain.
311 * lex.c: Moved from gcc/cpplex.c.
312 * directives.c: Moved from gcc/cpplib.c.
313 * macro.c: Moved from gcc/cppmacro.c.
314 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
315 * traditional.c: Moved from gcc/cpptrad.c.
316 * ucnid.h: Moved from gcc/cppucnid.h. Change header
317 guard name.
318 * ucnid.pl: Moved from gcc/cppucnid.pl.
319 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
320 guard name.
321 * symtab.c: Moved from gcc/hashtable.c.
322 * line-map.c: Moved from gcc. Do not include intl.h.
323 * mkdeps.c: Moved from gcc.
324 * system.h: New file.
2cf22451
ZW
325 * include/cpplib.h: Moved from gcc. Change header guard name.
326 * include/line-map.h: Moved from gcc. Change header guard name.
327 * include/mkdeps.h: Moved from gcc. Change header guard name.
328 * include/symtab.h: Moved from gcc/hashtable.h. Change header
329 guard name.