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