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