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