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