]> git.ipfire.org Git - thirdparty/gcc.git/blob - libcpp/ChangeLog
files.c (pchf_adder): Remove.
[thirdparty/gcc.git] / libcpp / ChangeLog
1 2005-02-08 Mike Stump <mrs@apple.com>
2
3 * files.c (pchf_adder): Remove.
4 (struct pchf_adder_info): Likewise.
5 (_cpp_save_file_entries): Write out all files so that #import works.
6
7 2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
8
9 * configure: Regenerate.
10
11 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
12
13 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
14
15 * include/cpplib.h: Also update copyright years.
16
17 2005-01-03 Geoffrey Keating <geoffk@apple.com>
18
19 * files.c (_cpp_find_file): Add files found by search_path_exhausted
20 to the list of all files.
21
22 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
23
24 * internal.h: Update references to Cpp lib filenames.
25 * directives.c: Likewise.
26 * init.c: Likewise.
27 * macro.c: Likewise.
28 * traditional.c: Likewise.
29
30 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
31
32 PR preprocessor/15167
33 * files.c (destroy_cpp_file): New function.
34 (should_stack_file): Make a new file if the
35 compared file is still stacked.
36
37 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
38
39 PR preprocessor/17610
40 * directives.c (do_include_common): Error out if an empty filename
41 is given for #include (or #include_next or #import).
42
43 2004-11-27 Roger Sayle <roger@eyesopen.com>
44 Zack Weinberg <zack@codesourcery.com>
45
46 * internal.h: Replace all uses of uchar with unsigned char.
47 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
48 with !IN_GCC, so uchar is only defined whilst building libcpp.
49
50 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
51
52 * aclocal.m4: Regenerate.
53
54 2004-11-24 Roger Sayle <roger@eyesopen.com>
55
56 PR preprocessor/15824
57 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
58 directly, instead of the non-existant "system.h" and "ansidecl.h".
59 * configure: Regenerate.
60
61 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
62 Joseph Myers <joseph@codesourcery.com>
63
64 * internal.h (struct lexer_state): Add in_deferred_pragma.
65 * directives.c (struct pragma_entry): Add allow_expansion.
66 (insert_pragma_entry): Take allow_expansion flag.
67 (register_pragma): Likewise.
68 (cpp_register_pragma): Likewise.
69 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
70 (do_pragma): Honor allow_expansion.
71 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
72 * include/cpplib.h (cpp_register_pragma): Update prototype.
73
74 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
75 Mark Mitchell <mark@codesourcery.com>
76
77 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
78 need_64bit_hwint=yes.
79 * configure: Regenerate.
80
81 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
82
83 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
84 po/$(PACKAGE).pot.
85 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
86 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
87 Remove local srcdir path from generated file.
88
89 2004-11-04 Zack Weinberg <zack@codesourcery.com>
90 Gerald Pfeifer <gerald@pfeifer.com>
91
92 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
93 as well.
94
95 2004-10-27 Zack Weinberg <zack@codesourcery.com>
96
97 PR 18075
98 * directives.c (do_pragma): Do not defer pragmas which are unknown.
99 (cpp_handle_deferred_pragma): Add cast to silence warning.
100
101 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
102
103 * errors.c (_cpp_begin_message): Print "error: " for errors.
104
105 2004-10-10 Andreas Jaeger <aj@suse.de>
106
107 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
108 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
109
110 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
111
112 * pch.c (cpp_write_pch_state): Remove variable z as it is not
113 used.
114 (cpp_read_state): Remove unused variables, m, d and mac_count.
115
116 2004-09-29 Per Bothner <per@bothner.com>
117
118 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
119 cb.line_change. Otherwise do_pragma will call the line_change
120 call-back with a meaningless line number.
121
122 2004-09-24 Zack Weinberg <zack@codesourcery.com>
123
124 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
125 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
126 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
127 * aclocal.m4, configure: Regenerate.
128 * init.c: Include localedir.h.
129 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
130 (DEFS): Delete.
131 (.c.o): Use $(ALL_CFLAGS).
132 (localedir.h, localedir.hs): New rules.
133 (clean): Use rm -rf to remove directories.
134 (distclean): Also delete localedir.h and localedir.hs.
135 (init.o): Update dependencies.
136
137 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
138
139 * Makefile.in (aclocal.m4): Update dependencies.
140 * configure.ac (AC_CONFIG_MACRO_DIR): New.
141 * aclocal.m4, configure: Regenerate.
142
143 2004-09-17 Zack Weinberg <zack@codesourcery.com>
144
145 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
146 (_cpp_convert_input, _cpp_default_encoding): Add comments.
147 Some other comments in this file also tweaked.
148
149 * directives.c (do_pragma): Save current buffer position
150 before lexing the pragma keywords; don't call
151 _cpp_backup_tokens in the defer_pragmas case.
152
153 2004-09-15 Per Bothner <per@bothner.com>
154
155 * include/line-map.h (line_map_start): Add parameter names so
156 preceding comment makes sense.
157 (linemap_add): Remove from comment mention of non-existing parameter.
158
159 2004-09-09 Matt Austern <austern@apple.com>
160 Zack Weinberg <zack@codesourcery.com>
161
162 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
163 prefixes throughout. Add entry for PRAGMA. Remove
164 unnecessary "= 0" from EQ.
165 (enum cpp_ttype): Adjust OP and TK definitions to restore
166 prefixes, via token-paste.
167 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
168 Change from #defines to additional cpp_ttype enumerators.
169 (struct cpp_options): Add defer_pragmas.
170 (cpp_handle_deferred_pragma): Prototype new interface.
171
172 * internal.h (struct cpp_reader): Add directive_result.
173 * directives.c (struct pragma_entry): Add is_internal field;
174 give boolean fields type bool.
175 (start_directive): Initialize pfile->directive_result.type.
176 (_cpp_do__Pragma): Likewise.
177 (run_directive): Do not crash if pfile->buffer->prev is NULL.
178 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
179 from it.
180 (register_pragma): New static function, bulk of former
181 cpp_register_pragma here; add 'internal' argument, pass along
182 to insert_pragma_entry.
183 (cpp_register_pragma): Now a wrapper around register_pragma which
184 always passes false for 'internal' argument.
185 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
186 true for 'internal'.
187 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
188 an internal pragma, save text till the end of the line as a CPP_PRAGMA
189 token instead of executing the pragma.
190 (cpp_handle_deferred_pragma): New interface.
191 * lex.c (token_spellings): Adjust OP and TK definitions to
192 match changes to cpplib.h.
193 (_cpp_lex_token): Check for a directive-result token and
194 return it if present.
195 (cpp_token_val_index): Handle CPP_PRAGMA.
196 * macro.c (cpp_builtin_macro_text): Correct comment.
197 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
198
199 2004-09-06 Serge Belyshev <belyshev@lubercy.com>
200
201 PR preprocessor/14699
202 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
203 from size_t to double.
204
205 2004-08-28 Andreas Schwab <schwab@suse.de>
206 Andreas Jaeger <aj@suse.de>
207
208 * configure.ac: Set PACKAGE correctly.
209 * configure: Regenerated.
210
211 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
212
213 * Makefile.in: Add back top_builddir.
214
215 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
216
217 * configure.ac: Replace Automake macro invocations
218 with manual Autoconf checks and substitutions.
219 * configure: Regenerate.
220 * aclocal.m4: Regenerate.
221 * config.in: Regenerate.
222 * Makefile.am: Removed.
223 * Makefile.in: Heavy simplification and reorganization.
224
225 2004-08-09 Mark Mitchell <mark@codesourcery.com>
226
227 * configure.ac (arm*-*-eabi*): New target.
228 (arm*-*-symbianelf*): Likewise.
229 * configure: Regenerated.
230
231 2004-07-24 Bernardo Innocenti <bernie@develer.com>
232
233 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
234 * directives.c: Use XNEW-family macros from libiberty.
235 * lex.c: Likewise.
236 * macro.c: Likewise.
237 * cpplib.h (cpp_deps_style): Export enum with name.
238
239 2004-07-23 Matthias Klose <doko@debian.org>
240
241 * init.c (init_library): Use PACKAGE for the text domain.
242
243 2004-07-16 Andris Pavenis <pavenis@latnet.lv>
244
245 PR preprocessor/16366
246 * internal.h (struct cpp_reader): New field dir_hash.
247 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
248 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
249
250 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
251
252 PR preprocessor/16192
253 PR preprocessor/15913
254 PR preprocessor/15572
255 * expr.c (_cpp_parse_expr): Handle remaining cases where an
256 expression is missing.
257 * init.c (post_options): Traditional cpp doesn't do // comments.
258
259 2004-06-30 Per Bothner <per@bothner.com>
260
261 * include/line-map.h (fileline): Remove old typedef.
262 * internal.h (struct cpp_reader): Use source_location typedef instead.
263
264 2004-06-26 Zack Weinberg <zack@codesourcery.com>
265
266 Partially revert patch of 2004-06-05.
267 * files.c (search_cache): Remove pfile argument. Don't check
268 for file that would be found by "" or <> search here...
269 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
270 Do not apply directory-of-current-file correction to files
271 found by this check. Rearrange code slightly.
272
273 2004-06-21 Geoffrey Keating <geoffk@apple.com>
274
275 * files.c (should_stack_file): Correct swapped parameters to call
276 to cb.read_pch.
277 * pch.c (cpp_valid_state): Handle -fpreprocessed.
278
279 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
280
281 * Makefile.in: Regenerate with automake 1.8.5.
282 * aclocal.m4: Likewise.
283 * configure: Regenerate.
284
285 2004-06-11 Zack Weinberg <zack@codesourcery.com>
286
287 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
288 * configure, config.in: Regenerate.
289 * system.h: Unconditionally define bool as unsigned char,
290 BOOL_BITFIELD as unsigned int.
291 * .cvsignore: New file.
292
293 2004-06-09 Geoffrey Keating <geoffk@apple.com>
294
295 * traditional.c (push_replacement_text): Set macro->traditional.
296 (save_replacement_text): Likewise.
297 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
298 (struct save_macro_item): Delete.
299 (struct save_macro_data): Use a character array not the previous
300 structured format.
301 (save_macros): Save macro as text not as internal structures.
302 (cpp_prepare_state): Update for changes to save_macro_data.
303 (cpp_read_state): Don't read macros defined in PCH. Restore
304 -D macros as text.
305 * macro.c (create_iso_definition): Honour alloc_subobject.
306 Clear traditional flag.
307 (_cpp_create_definition): Honour alloc_subobject.
308 * lex.c (cpp_token_val_index): New.
309 * internal.h: Include cpp-id-data.h.
310 (uchar): Move definition to cpp-id-data.h.
311 (U): Likewise.
312 (cpp_macro): Likewise.
313 * directives.c (struct answer): Move to cpp-id-data.h.
314 (do_assert): Honour alloc_subobject.
315
316 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
317 * include/cpplib.h (struct cpp_string): Add GTY marker.
318 (enum cpp_token_fld_kind): New.
319 (struct cpp_token): Add GTY markers.
320 (cpp_token_val_index): Prototype.
321 (CPP_HASHNODE_VALUE_IDX): New.
322 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
323 * include/cpp-id-data.h: New file.
324
325 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
326
327 * Makefile.am (all-local): New.
328 * Makefile.in: Regenerate.
329
330 2004-06-06 Roger Sayle <roger@eyesopen.com>
331
332 * Makefile.am (LIBICONV): Declare.
333 (makedepend_LDADD): Use LIBICONV.
334 * Makefile.in: Regenerate.
335
336 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
337
338 * Makefile.am (LIBINTL): Declare
339 (makedepend_LDADD): Use LIBINTL.
340 * Makefile.in: Regenerate.
341
342 2004-06-05 Zack Weinberg <zack@codesourcery.com>
343
344 * Makefile.am: Add makedepend.
345 * Makefile.in, aclocal.m4: Regenerate.
346 * charset.c: Insert a space to avoid a warning.
347 * directives.c: Include mkdeps.h.
348 (_cpp_handle_directive): Reenable macro expander if appropriate.
349 (undefine_macros): Inline body of _cpp_free_definition for speed.
350 Do not call undef callback or _cpp_warn_if_unused_macro.
351 (cpp_get_deps): New interface.
352 * files.c (search_cache): Add pfile argument. Check for file
353 that would be found by "" or <> search here...
354 (_cpp_find_file): ...not here. Correct recorded start_dir of
355 files found by directory-of-current-file search that would be
356 found by "" or <> search.
357 * init.c (cpp_add_dependency_target): Delete.
358 * internal.h (struct lexer_state): Add discarding_output flag.
359 * lex.c (lex_identifier): Compute hash function while scanning.
360 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
361 directives.
362 * makedepend.c: New file.
363 * mkdeps.c (struct deps): Add vpath vector.
364 (apply_vpath, deps_add_vpath): New function.
365 (deps_free): Free vpath vector.
366 (deps_add_dep, deps_add_target): Use apply_vpath.
367 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
368 (ht_lookup_with_hash): New function.
369 * cpplib.h, mkdeps.h: Update prototypes.
370 * symtab.h: Update prototypes.
371 (HT_HASHSTEP, HT_FINISH): New macros.
372
373 2004-05-29 Geoffrey Keating <geoffk@apple.com>
374
375 * symtab.c (ht_create): Set entries_owned.
376 (ht_destroy): Honour entries_owned.
377 (ht_expand): Likewise.
378 (ht_load): New.
379 * include/symtab.h (struct ht): New field 'entries_owned'
380 (ht_load): New prototype.
381
382 2004-05-26 Paolo Bonzini <bonzini@gnu.org>
383
384 PR bootstrap/15651
385 * configure.ac: Fix m4 quoting when picking
386 the size of HOST_WIDE_INT.
387 * configure: Regenerate.
388
389 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
390
391 * Makefile.am: the correct directory for
392 gettext include files is given by @INCINTL@.
393 * Makefile.in: Regenerate.
394
395 2004-05-24 Paolo Bonzini <bonzini@gnu.org>
396
397 * system.h [!ENABLE_NLS]: dgettext takes two
398 parameters.
399
400 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
401
402 Moved libcpp from the gcc subdirectory to the toplevel.
403 * Makefile.am: New file.
404 * Makefile.in: Regenerate.
405 * configure.ac: New file.
406 * configure: Regenerate.
407 * config.in: Regenerate.
408 * charset.c: Moved from gcc/cppcharset.c. Add note about
409 brokenness of input charset detection. Adjust for change
410 in name of cppucnid.h.
411 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
412 * expr.c: Moved from gcc/cppexp.c.
413 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
414 Remove #define of O_BINARY, it is in system.h.
415 * identifiers.c: Moved from gcc/cpphash.c.
416 * internal.h: Moved from gcc/cpphash.h. Change header
417 guard name. All other files adjusted to match name change.
418 * init.c: Moved from gcc/cppinit.c.
419 (init_library) [ENABLE_NLS]: Call bindtextdomain.
420 * lex.c: Moved from gcc/cpplex.c.
421 * directives.c: Moved from gcc/cpplib.c.
422 * macro.c: Moved from gcc/cppmacro.c.
423 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
424 * traditional.c: Moved from gcc/cpptrad.c.
425 * ucnid.h: Moved from gcc/cppucnid.h. Change header
426 guard name.
427 * ucnid.pl: Moved from gcc/cppucnid.pl.
428 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
429 guard name.
430 * symtab.c: Moved from gcc/hashtable.c.
431 * line-map.c: Moved from gcc. Do not include intl.h.
432 * mkdeps.c: Moved from gcc.
433 * system.h: New file.
434 * include/cpplib.h: Moved from gcc. Change header guard name.
435 * include/line-map.h: Moved from gcc. Change header guard name.
436 * include/mkdeps.h: Moved from gcc. Change header guard name.
437 * include/symtab.h: Moved from gcc/hashtable.h. Change header
438 guard name.