]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
47e20491
GK
12005-03-11 Geoffrey Keating <geoffk@apple.com>
2
3 * directives.c (glue_header_name): Update call to cpp_spell_token.
4 * internal.h (_cpp_interpret_identifier): New.
5 * charset.c (_cpp_interpret_identifier): New.
6 (_cpp_valid_ucn): Allow UCN version of '$'.
7 * lex.c (lex_identifier): Add extra parameter to indicate if initial
8 character was '$' or '\'. Support identifiers with UCNs.
9 (forms_identifier_p): Allow UCNs.
10 (_cpp_lex_direct): Pass extra parameter to lex_identifier.
11 (utf8_to_ucn): New.
12 (cpp_spell_token): Add FORSTRING parameter. Use it.
13 (cpp_token_as_text): Update call to cpp_spell_token.
14 (cpp_output_token): Write UCNs back out.
15 (stringify_arg): Update call to cpp_spell_token.
16 (paste_tokens): Likewise.
17 (cpp_macro_definition): Likewise.
18 * macro.c (stringify_arg): Likewise.
19 (paste_tokens): Likewise.
20 (cpp_macro_definition): Likewise.
21 * include/cpplib.h: Add parameter to cpp_spell_token.
22
73096711
JJ
232005-03-04 Jakub Jelinek <jakub@redhat.com>
24
25 PR bootstrap/20282
26 PR bootstrap/20305
27 * macro.c (replace_args, cpp_get_token): Copy whole
28 cpp_token_u instead of just cpp_string field from it.
29
2203a881
DP
302005-02-28 Devang Patel <dpatel@apple.com>
31
32 * directives.c (do_line): Save sysp early before line table is
33 realloc'ed.
34
c5ff069d
ZW
352005-02-20 Zack Weinberg <zack@codesourcery.com>
36
37 PR 18785
38 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
39 (cpp_host_to_exec_charset): New function.
40 * include/cpplib.h: Declare cpp_host_to_exec_charset.
41
04c90eea
DP
422005-02-19 Devang Patel <dpatel@apple.com>
43
44 * charset.c (_cpp_convert_input): Check '\r' before inserting
45 '\n' at the end.
c5ff069d 46
6da55c00
EC
472005-02-15 Eric Christopher <echristo@redhat.com>
48
49 PR preprocessor/19077
50 * macro.c (cpp_macro_definition): Move handling of whitespace
51 to PREV_WHITE conditional. Remove overloading of len
52 variable.
53
31c3e631
KH
542005-02-14 Kazu Hirata <kazu@cs.umass.edu>
55
56 * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
57 traditional.c: Update copyright.
58
be0f1e54
PB
592005-02-14 Paolo Bonzini <bonzini@gnu.org>
60
61 PR bootstrap/19818
62 * configure.ac: Check for declaration of basename and getopt.
63 * config.in: Regenerate.
64 * configure: Regenerate.
65 * internal.h (ustrcspn): New.
66 * macro.c (create_iso_definition): Fix allocation of memory.
67 (padding_token): Add cast to remove const-ness.
68 * pch.c (cpp_read_state): Use ustrcspn.
69
ecddfb39
MS
702005-02-08 Mike Stump <mrs@apple.com>
71
72 * files.c (pchf_adder): Remove.
73 (struct pchf_adder_info): Likewise.
74 (_cpp_save_file_entries): Write out all files so that #import works.
75
9fcdd891
JM
762005-01-23 Joseph S. Myers <joseph@codesourcery.com>
77
78 * configure: Regenerate.
79
ecfd72e7
TS
802005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
81
82 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
83
6c25a4f7 84 * include/cpplib.h: Also update copyright years.
c5ff069d 85
942926ad
GK
862005-01-03 Geoffrey Keating <geoffk@apple.com>
87
88 * files.c (_cpp_find_file): Add files found by search_path_exhausted
89 to the list of all files.
90
a2566ae9
GDR
912005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
92
93 * internal.h: Update references to Cpp lib filenames.
94 * directives.c: Likewise.
95 * init.c: Likewise.
96 * macro.c: Likewise.
97 * traditional.c: Likewise.
98
1b449375
EB
992004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
100
101 PR preprocessor/15167
102 * files.c (destroy_cpp_file): New function.
103 (should_stack_file): Make a new file if the
104 compared file is still stacked.
105
28303828
NN
1062004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
107
c5ff069d 108 PR preprocessor/17610
28303828
NN
109 * directives.c (do_include_common): Error out if an empty filename
110 is given for #include (or #include_next or #import).
111
c812785a
RS
1122004-11-27 Roger Sayle <roger@eyesopen.com>
113 Zack Weinberg <zack@codesourcery.com>
114
115 * internal.h: Replace all uses of uchar with unsigned char.
116 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
117 with !IN_GCC, so uchar is only defined whilst building libcpp.
118
f91eaa01
KC
1192004-11-24 Kelley Cook <kcook@gcc.gnu.org>
120
121 * aclocal.m4: Regenerate.
122
f78ce0c2
RS
1232004-11-24 Roger Sayle <roger@eyesopen.com>
124
125 PR preprocessor/15824
126 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
127 directly, instead of the non-existant "system.h" and "ansidecl.h".
128 * configure: Regenerate.
129
b5b3e36a 1302004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 131 Joseph Myers <joseph@codesourcery.com>
b5b3e36a
DJ
132
133 * internal.h (struct lexer_state): Add in_deferred_pragma.
134 * directives.c (struct pragma_entry): Add allow_expansion.
135 (insert_pragma_entry): Take allow_expansion flag.
136 (register_pragma): Likewise.
137 (cpp_register_pragma): Likewise.
138 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
139 (do_pragma): Honor allow_expansion.
140 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
141 * include/cpplib.h (cpp_register_pragma): Update prototype.
142
a8e68029 1432004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 144 Mark Mitchell <mark@codesourcery.com>
a8e68029
DJ
145
146 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
147 need_64bit_hwint=yes.
148 * configure: Regenerate.
149
50f47ee0
JM
1502004-11-09 Joseph S. Myers <joseph@codesourcery.com>
151
152 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
153 po/$(PACKAGE).pot.
154 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
155 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
156 Remove local srcdir path from generated file.
157
968e08d6 1582004-11-04 Zack Weinberg <zack@codesourcery.com>
c5ff069d 159 Gerald Pfeifer <gerald@pfeifer.com>
968e08d6
ZW
160
161 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
162 as well.
163
3da3d587
ZW
1642004-10-27 Zack Weinberg <zack@codesourcery.com>
165
166 PR 18075
167 * directives.c (do_pragma): Do not defer pragmas which are unknown.
168 (cpp_handle_deferred_pragma): Add cast to silence warning.
169
ac24fc25
JM
1702004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
171
172 * errors.c (_cpp_begin_message): Print "error: " for errors.
173
7731405b
AJ
1742004-10-10 Andreas Jaeger <aj@suse.de>
175
176 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
177 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
178
646544e3
AP
1792004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
180
181 * pch.c (cpp_write_pch_state): Remove variable z as it is not
182 used.
183 (cpp_read_state): Remove unused variables, m, d and mac_count.
184
67a74146
PB
1852004-09-29 Per Bothner <per@bothner.com>
186
187 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
188 cb.line_change. Otherwise do_pragma will call the line_change
189 call-back with a meaningless line number.
190
018a4785
ZW
1912004-09-24 Zack Weinberg <zack@codesourcery.com>
192
193 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
194 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
195 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
196 * aclocal.m4, configure: Regenerate.
197 * init.c: Include localedir.h.
198 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
199 (DEFS): Delete.
200 (.c.o): Use $(ALL_CFLAGS).
201 (localedir.h, localedir.hs): New rules.
202 (clean): Use rm -rf to remove directories.
203 (distclean): Also delete localedir.h and localedir.hs.
204 (init.o): Update dependencies.
205
88fa57d7
KC
2062004-09-22 Kelley Cook <kcook@gcc.gnu.org>
207
208 * Makefile.in (aclocal.m4): Update dependencies.
209 * configure.ac (AC_CONFIG_MACRO_DIR): New.
210 * aclocal.m4, configure: Regenerate.
211
8f8e9aa5
ZW
2122004-09-17 Zack Weinberg <zack@codesourcery.com>
213
a29f62d9
ZW
214 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
215 (_cpp_convert_input, _cpp_default_encoding): Add comments.
216 Some other comments in this file also tweaked.
217
8f8e9aa5
ZW
218 * directives.c (do_pragma): Save current buffer position
219 before lexing the pragma keywords; don't call
220 _cpp_backup_tokens in the defer_pragmas case.
221
a2981930
PB
2222004-09-15 Per Bothner <per@bothner.com>
223
224 * include/line-map.h (line_map_start): Add parameter names so
225 preceding comment makes sense.
226 (linemap_add): Remove from comment mention of non-existing parameter.
227
21b11495
ZW
2282004-09-09 Matt Austern <austern@apple.com>
229 Zack Weinberg <zack@codesourcery.com>
230
231 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
232 prefixes throughout. Add entry for PRAGMA. Remove
233 unnecessary "= 0" from EQ.
234 (enum cpp_ttype): Adjust OP and TK definitions to restore
235 prefixes, via token-paste.
236 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
237 Change from #defines to additional cpp_ttype enumerators.
238 (struct cpp_options): Add defer_pragmas.
239 (cpp_handle_deferred_pragma): Prototype new interface.
240
241 * internal.h (struct cpp_reader): Add directive_result.
242 * directives.c (struct pragma_entry): Add is_internal field;
243 give boolean fields type bool.
244 (start_directive): Initialize pfile->directive_result.type.
245 (_cpp_do__Pragma): Likewise.
246 (run_directive): Do not crash if pfile->buffer->prev is NULL.
247 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
248 from it.
249 (register_pragma): New static function, bulk of former
250 cpp_register_pragma here; add 'internal' argument, pass along
251 to insert_pragma_entry.
252 (cpp_register_pragma): Now a wrapper around register_pragma which
253 always passes false for 'internal' argument.
254 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
255 true for 'internal'.
256 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
257 an internal pragma, save text till the end of the line as a CPP_PRAGMA
258 token instead of executing the pragma.
259 (cpp_handle_deferred_pragma): New interface.
260 * lex.c (token_spellings): Adjust OP and TK definitions to
261 match changes to cpplib.h.
262 (_cpp_lex_token): Check for a directive-result token and
263 return it if present.
264 (cpp_token_val_index): Handle CPP_PRAGMA.
265 * macro.c (cpp_builtin_macro_text): Correct comment.
266 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
267
0fd9e8dd
SB
2682004-09-06 Serge Belyshev <belyshev@lubercy.com>
269
270 PR preprocessor/14699
271 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
272 from size_t to double.
273
39b8ce7f
AS
2742004-08-28 Andreas Schwab <schwab@suse.de>
275 Andreas Jaeger <aj@suse.de>
276
277 * configure.ac: Set PACKAGE correctly.
278 * configure: Regenerated.
279
5d1f4b27
PB
2802004-08-25 Paolo Bonzini <bonzini@gnu.org>
281
282 * Makefile.in: Add back top_builddir.
283
078e3ffe
PB
2842004-08-25 Paolo Bonzini <bonzini@gnu.org>
285
286 * configure.ac: Replace Automake macro invocations
287 with manual Autoconf checks and substitutions.
288 * configure: Regenerate.
289 * aclocal.m4: Regenerate.
290 * config.in: Regenerate.
291 * Makefile.am: Removed.
292 * Makefile.in: Heavy simplification and reorganization.
293
b3f8d95d
MM
2942004-08-09 Mark Mitchell <mark@codesourcery.com>
295
296 * configure.ac (arm*-*-eabi*): New target.
297 (arm*-*-symbianelf*): Likewise.
298 * configure: Regenerated.
299
72bb2c39
BI
3002004-07-24 Bernardo Innocenti <bernie@develer.com>
301
302 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
303 * directives.c: Use XNEW-family macros from libiberty.
304 * lex.c: Likewise.
305 * macro.c: Likewise.
306 * cpplib.h (cpp_deps_style): Export enum with name.
307
21b11495 3082004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 309
21b11495 310 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 311
a23ee064
AP
3122004-07-16 Andris Pavenis <pavenis@latnet.lv>
313
314 PR preprocessor/16366
315 * internal.h (struct cpp_reader): New field dir_hash.
316 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
317 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
318
a09d4744
NB
3192004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
320
321 PR preprocessor/16192
322 PR preprocessor/15913
323 PR preprocessor/15572
324 * expr.c (_cpp_parse_expr): Handle remaining cases where an
325 expression is missing.
326 * init.c (post_options): Traditional cpp doesn't do // comments.
327
f58f7def
PB
3282004-06-30 Per Bothner <per@bothner.com>
329
330 * include/line-map.h (fileline): Remove old typedef.
331 * internal.h (struct cpp_reader): Use source_location typedef instead.
332
e83d8d43
ZW
3332004-06-26 Zack Weinberg <zack@codesourcery.com>
334
335 Partially revert patch of 2004-06-05.
336 * files.c (search_cache): Remove pfile argument. Don't check
337 for file that would be found by "" or <> search here...
338 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
339 Do not apply directory-of-current-file correction to files
340 found by this check. Rearrange code slightly.
341
c0d578e6
GK
3422004-06-21 Geoffrey Keating <geoffk@apple.com>
343
344 * files.c (should_stack_file): Correct swapped parameters to call
345 to cb.read_pch.
346 * pch.c (cpp_valid_state): Handle -fpreprocessed.
347
159d5224
PB
3482004-06-15 Paolo Bonzini <bonzini@gnu.org>
349
350 * Makefile.in: Regenerate with automake 1.8.5.
351 * aclocal.m4: Likewise.
352 * configure: Regenerate.
353
2fac9c01
ZW
3542004-06-11 Zack Weinberg <zack@codesourcery.com>
355
356 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
357 * configure, config.in: Regenerate.
358 * system.h: Unconditionally define bool as unsigned char,
359 BOOL_BITFIELD as unsigned int.
360 * .cvsignore: New file.
361
d8044160
GK
3622004-06-09 Geoffrey Keating <geoffk@apple.com>
363
364 * traditional.c (push_replacement_text): Set macro->traditional.
365 (save_replacement_text): Likewise.
366 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
367 (struct save_macro_item): Delete.
368 (struct save_macro_data): Use a character array not the previous
369 structured format.
370 (save_macros): Save macro as text not as internal structures.
371 (cpp_prepare_state): Update for changes to save_macro_data.
372 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 373 -D macros as text.
d8044160
GK
374 * macro.c (create_iso_definition): Honour alloc_subobject.
375 Clear traditional flag.
376 (_cpp_create_definition): Honour alloc_subobject.
377 * lex.c (cpp_token_val_index): New.
378 * internal.h: Include cpp-id-data.h.
379 (uchar): Move definition to cpp-id-data.h.
380 (U): Likewise.
381 (cpp_macro): Likewise.
382 * directives.c (struct answer): Move to cpp-id-data.h.
383 (do_assert): Honour alloc_subobject.
2cf22451
ZW
384
385 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
386 * include/cpplib.h (struct cpp_string): Add GTY marker.
387 (enum cpp_token_fld_kind): New.
388 (struct cpp_token): Add GTY markers.
389 (cpp_token_val_index): Prototype.
390 (CPP_HASHNODE_VALUE_IDX): New.
391 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
392 * include/cpp-id-data.h: New file.
d8044160 393
0ca8e815
PB
3942004-06-09 Paolo Bonzini <bonzini@gnu.org>
395
396 * Makefile.am (all-local): New.
397 * Makefile.in: Regenerate.
398
b51fa00f
RS
3992004-06-06 Roger Sayle <roger@eyesopen.com>
400
401 * Makefile.am (LIBICONV): Declare.
402 (makedepend_LDADD): Use LIBICONV.
403 * Makefile.in: Regenerate.
404
5e2f3f39
AP
4052004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
406
407 * Makefile.am (LIBINTL): Declare
408 (makedepend_LDADD): Use LIBINTL.
409 * Makefile.in: Regenerate.
410
c6e83800
ZW
4112004-06-05 Zack Weinberg <zack@codesourcery.com>
412
413 * Makefile.am: Add makedepend.
414 * Makefile.in, aclocal.m4: Regenerate.
415 * charset.c: Insert a space to avoid a warning.
416 * directives.c: Include mkdeps.h.
417 (_cpp_handle_directive): Reenable macro expander if appropriate.
418 (undefine_macros): Inline body of _cpp_free_definition for speed.
419 Do not call undef callback or _cpp_warn_if_unused_macro.
420 (cpp_get_deps): New interface.
421 * files.c (search_cache): Add pfile argument. Check for file
422 that would be found by "" or <> search here...
423 (_cpp_find_file): ...not here. Correct recorded start_dir of
424 files found by directory-of-current-file search that would be
425 found by "" or <> search.
426 * init.c (cpp_add_dependency_target): Delete.
427 * internal.h (struct lexer_state): Add discarding_output flag.
428 * lex.c (lex_identifier): Compute hash function while scanning.
429 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
430 directives.
431 * makedepend.c: New file.
432 * mkdeps.c (struct deps): Add vpath vector.
433 (apply_vpath, deps_add_vpath): New function.
434 (deps_free): Free vpath vector.
435 (deps_add_dep, deps_add_target): Use apply_vpath.
436 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
437 (ht_lookup_with_hash): New function.
438 * cpplib.h, mkdeps.h: Update prototypes.
439 * symtab.h: Update prototypes.
440 (HT_HASHSTEP, HT_FINISH): New macros.
441
b453c95f
GK
4422004-05-29 Geoffrey Keating <geoffk@apple.com>
443
444 * symtab.c (ht_create): Set entries_owned.
445 (ht_destroy): Honour entries_owned.
446 (ht_expand): Likewise.
447 (ht_load): New.
2cf22451
ZW
448 * include/symtab.h (struct ht): New field 'entries_owned'
449 (ht_load): New prototype.
b453c95f 450
963e23c5
PB
4512004-05-26 Paolo Bonzini <bonzini@gnu.org>
452
453 PR bootstrap/15651
454 * configure.ac: Fix m4 quoting when picking
455 the size of HOST_WIDE_INT.
456 * configure: Regenerate.
457
0429bc77
PB
4582004-05-25 Paolo Bonzini <bonzini@gnu.org>
459
460 * Makefile.am: the correct directory for
461 gettext include files is given by @INCINTL@.
462 * Makefile.in: Regenerate.
463
c86dd7db
PB
4642004-05-24 Paolo Bonzini <bonzini@gnu.org>
465
466 * system.h [!ENABLE_NLS]: dgettext takes two
467 parameters.
468
4f4e53dd
PB
4692004-05-23 Paolo Bonzini <bonzini@gnu.org>
470
471 Moved libcpp from the gcc subdirectory to the toplevel.
472 * Makefile.am: New file.
473 * Makefile.in: Regenerate.
474 * configure.ac: New file.
475 * configure: Regenerate.
476 * config.in: Regenerate.
477 * charset.c: Moved from gcc/cppcharset.c. Add note about
478 brokenness of input charset detection. Adjust for change
479 in name of cppucnid.h.
480 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
481 * expr.c: Moved from gcc/cppexp.c.
482 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
483 Remove #define of O_BINARY, it is in system.h.
484 * identifiers.c: Moved from gcc/cpphash.c.
485 * internal.h: Moved from gcc/cpphash.h. Change header
486 guard name. All other files adjusted to match name change.
487 * init.c: Moved from gcc/cppinit.c.
488 (init_library) [ENABLE_NLS]: Call bindtextdomain.
489 * lex.c: Moved from gcc/cpplex.c.
490 * directives.c: Moved from gcc/cpplib.c.
491 * macro.c: Moved from gcc/cppmacro.c.
492 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
493 * traditional.c: Moved from gcc/cpptrad.c.
494 * ucnid.h: Moved from gcc/cppucnid.h. Change header
495 guard name.
496 * ucnid.pl: Moved from gcc/cppucnid.pl.
497 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
498 guard name.
499 * symtab.c: Moved from gcc/hashtable.c.
500 * line-map.c: Moved from gcc. Do not include intl.h.
501 * mkdeps.c: Moved from gcc.
502 * system.h: New file.
2cf22451
ZW
503 * include/cpplib.h: Moved from gcc. Change header guard name.
504 * include/line-map.h: Moved from gcc. Change header guard name.
505 * include/mkdeps.h: Moved from gcc. Change header guard name.
506 * include/symtab.h: Moved from gcc/hashtable.h. Change header
507 guard name.