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