]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
* gcc.c-torture/unsorted/unsorted.exp: Sort tests before running them.
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
456b8ce5
UB
12005-11-09 Per Bothner <per@bothner.com>
2 Uros Bizjak <uros@kss-loka.si>
3
4 PR c/24101
5 * init.c (read_original_filename): Temporarily set
6 state.in_directive before calling _cpp_lex_direct for
7 CPP_HASH tokens.
8
5571f74f
JW
92005-11-03 James E Wilson <wilson@specifix.com>
10
11 PR preprocessor/24202
12 * files.c (_cpp_pop_file_buffer): Set buffer_valid to false.
13
a63607ed
JM
142005-11-04 Joseph S. Myers <joseph@codesourcery.com>
15
16 * include/cpplib.h (struct cpp_callbacks): Make error take
17 va_list* parameter.
18 * errors.c (cpp_error): Update call to callback.
19
651ed942
AP
202005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
21
22 PR preprocessor/22042
23 * macro.c (_cpp_builtin_macro_text): Lower the needed max
24 buffer size.
25 (cpp_quote_string): Don't octalify non printable
26 charactors.
27
178b58b5
JM
282005-11-03 Joseph S. Myers <joseph@codesourcery.com>
29
30 PR c++/17964
31 * include/cpplib.h (struct cpp_options): Add client_diagnostic.
32 (struct cpp_callbacks): Add error.
33 * errors.c (cpp_error): If client_diagnostic, use error callback.
34 * charset.c (convert_escape): Don't use %03o in diagnostic.
35
3ee5ed11 362005-10-21 James E Wilson <wilson@specifix.com>
6568f34b
JW
37
38 PR preprocessor/15220
39 * files.c (_cpp_find_file): New parameter angle_brackets. Fix all
40 callers. Pass to open_file_failed.
41 (open_file_failed): New parameter angle_brackets. Fix all callers.
42 Use in print_dep assignment.
43 * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file.
44 * internal.h (_cpp_find_file): Add new parm to declaration.
45
077fc835
KH
462005-10-08 Kazu Hirata <kazu@codesourcery.com>
47
48 * configure.ac: Require 64-bit int for arm*-*-*eabi*.
49 * configure: Regenerate.
50
cbc43ae0
ILT
512005-10-04 Ian Lance Taylor <ian@airs.com>
52
53 PR preprocessor/13726
54 * directives.c (check_eol_return_comments): New static function.
55 (parse_include): Add buf parameter. Change all callers.
56 (do_include_common): If not discard comments, turn on
57 save_comments. Pass collected comments to include callback.
58 * include/cpplib.h (struct cpp_callbacks): Add new parameter to
59 include callback: cpp_token list.
60
af15a2fe
JM
612005-09-20 Joseph S. Myers <joseph@codesourcery.com>
62
63 * include/cpplib.h (struct cpp_options): Add extended_identifiers.
64 * init.c (struct lang_flags, lang_defaults): Add
65 extended_identifiers.
66 (cpp_set_lang): Use it.
67 * lex.c (forms_identifier_p): Check extended_identifiers.
68
f5eab47e
JJ
692005-08-30 Jakub Jelinek <jakub@redhat.com>
70
71 PR preprocessor/20348
72 PR preprocessor/20356
73 * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
74 2004-06-05 changes.
75
467129e6
KG
762005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
77
78 * configure.ac (ACX_PROG_CC_WARNING_OPTS): add
79 -Wmissing-format-attribute.
80
81 * configure: Regenerate.
82
200031d1
KC
832005-06-29 Kelley Cook <kcook@gcc.gnu.org>
84
85 * all files: Update FSF address in copyright headers.
86 * makeucnid.c (write_copyright): Update outputted FSF address.
87
f610dd5f
ZW
882005-06-13 Zack Weinberg <zack@codesourcery.com>
89
90 * configure.ac: Invoke ZW_CREATE_DEPDIR and
91 ZW_PROG_COMPILER_DEPENDENCIES.
92 * aclocal.m4, configure: Regenerate.
93 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
94 New variables.
95 (distclean): Clean up $(DEPDIR) and its contents.
96 (.c.o): Use $(COMPILE).
97 Include $(DEPDIR)/*.Po for most object->header dependencies.
98
c3f829c1
GDR
992005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
100
101 * configure.ac: Check declarations for asprintf and vasprintf.
102 * config.in: Regenerate.
103 * configure: Likewise.
104
105 * charset.c (conversion_loop): Use XRESIZEVEC.
106 (convert_no_conversion): Likewise.
107 (convert_using_iconv): Likewise.
108 (init_iconv_desc): Cast return value of alloca.
109 (cpp_host_to_exec_charset): Use XNEWVEC.
110 (emit_numeric_escape): Use XRESIZEVEC.
111 (cpp_interpret_string): Use XNEWVEC.
112 (cpp_interpret_string): Use XRESIZEVEC.
113 (_cpp_interpret_identifier): Cast return value of alloca.
114 (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
115 * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
116 (parse_include): Use XNEWVEC.
117 (insert_pragma_entry): Rename local variable "new" to
f610dd5f 118 "new_entry".
c3f829c1
GDR
119 (save_registered_pragmas): Cast return value of xmemdup.
120 (destringize_and_run): Same for alloca.
121 (parse_assertion): Likewise.
122 (do_assert): Cast allocated storage to proper type.
123 (cpp_define): Likewise.
124 (_cpp_define_builtin): Likewise.
125 (cpp_undef): Likewise.
126 (handle_assertion): Likewise.
127 (cpp_push_buffer): Rename local variable "new" to "new_buffer".
128 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
129 (CPP_UMINUS): Likewise.
130 (struct cpp_operator): Rename from struct operator.
131 (_cpp_expand_op_stack): Use XRESIZEVEC.
132 * files.c (pch_open_file): Use XNEWVEC.
133 (pch_open_file): Use XRESIZEVEC.
134 (read_file_guts): Use XNEWVEC and XRESIZEVEC.
135 (dir_name_of_file): Use XNEWVEC.
136 (make_cpp_file): Use XCNEW.
137 (make_cpp_dir): Likewise.
138 (allocate_file_hash_entries): USE XNEWVEC.
139 (cpp_included): Cast return value of htab_find_with_hash.
140 (append_file_to_dir): Use XNEWVEC.
141 (read_filename_string): Likewise. Use XRESIZEVEC too.
142 (read_name_map): Cast return value of alloca. Use XRESIZEVEC.
143 (remap_filename): Use XNEWVEC.
144 (struct pchf_entry): Move definition out of struct pchf_data.
145 (_cpp_save_file_entries): Use XCNEWVAR.
146 (_cpp_read_file_entries): Use XNEWVAR.
147 * identifiers.c (alloc_node): Use XOBNEW.
148 * init.c (cpp_create_reader): Use XCNEW.
149 (cpp_init_builtins): Cast of b->value to enum builtin_type.
150 (read_original_directory): Cast return value of alloca.
151 * lex.c (add_line_note): Use XRESIZEVEC.
152 (warn_about_normalization): Use XNEWVEC.
153 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
154 (new_buff): Use XNEWVEC.
155 * line-map.c (linemap_add): Use XRESIZEVEC.
156 * macro.c (builtin_macro): Cast return value of alloca.
157 (paste_tokens): Likewise.
158 (expand_arg): Use XNEWVEC and XRESIZEVEC.
159 (_cpp_save_parameter): Use XRESIZEVEC.
160 (create_iso_definition): Cast allocated storage to proper type.
161 (_cpp_create_definition): Likewise.
162 (cpp_macro_definition): Use XRESIZEVEC.
163 * makedepend.c (add_clm): Use XNEW.
164 (add_dir): Likewise.
165 * mkdeps.c (munge): Use XNEWVEC.
166 (deps_init): Use XCNEW.
167 (deps_add_target): Use XRESIZEVEC.
168 (deps_add_default_target): Cast return value of alloca.
169 (deps_add_dep): Use XRESIZEVEC.
170 (deps_add_vpath): Likewise. Use XNEWVEC too.
171 (deps_restore): Likewise.
172 * pch.c (save_idents): Use XNEW and XNEWVEC.
173 (cpp_save_state): Use XNEW.
174 (count_defs): Cast return value of htab_find.
175 (write_defs): Likewise.
176 (cpp_write_pch_deps): Use XNEWVEC.
177 (collect_ht_nodes): Use XRESIZEVEC.
178 (cpp_valid_state): Use XNEWVEC.
179 (save_macros): Use XRESIZEVEC. Cast return value of xmemdup.
180 * symtab.c (ht_create): Use XCNEW.
181 (ht_lookup_with_hash): Cast return value of obstack_copy0.
182 (ht_expand): Use XCNEWVEC.
183 * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
184 (bool): Do not define if __cplusplus.
185
1ed17cd5
ZW
1862005-05-12 Zack Weinberg <zack@codesourcery.com>
187
188 * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
189 (do_sccs): Delete function definition, #define to do_ident.
190 (do_ident): Don't hardwire directive name.
191
5a8c20ce
RK
1922005-05-12 Ryota Kunisawa <kunisawa@access.co.jp>
193
194 PR bootstrap/21230
195 * configure: Regenerate.
196
473c5bc9
AP
1972005-04-27 Andris Pavenis <pavenis@latnet.lv>
198
199 * files.c: Include io.h for DJGPP to get prototype of setmode.
200
c1fc5047
PB
2012005-04-19 Per Bothner <per@bothner.com>
202
203 PR preprocessor/20907
204 * line-map.c (linemap_line_start): Fix bug when we need to increse
205 column_bits but can re-use the current line_map.
206
042630ad
KG
2072005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
208
209 * system.h (fopen, fdopen, freopen): Define these to the unlocked
210 libiberty functions.
211
0d667716
KG
2122005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
213
214 * configure.ac (libcpp_UNLOCKED_FUNCS): New.
215 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
216 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
217 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
218 _unlocked function.
219 (fwrite_unlocked): Fix prototype.
1ed17cd5 220
0d667716
KG
221 * configure, config.in: Regenerate.
222
cae064e7
JJ
2232005-04-05 Jakub Jelinek <jakub@redhat.com>
224
225 PR preprocessor/19475
226 * macro.c (create_iso_definition): For < ISO C99, don't
227 pedwarn if there is no whitespace between macro name and its
228 replacement, but the replacement starts with a basic character
229 set character.
230
cbada204
AJ
2312005-03-28 Andreas Jaeger <aj@suse.de>
232
233 * lex.c (warn_about_normalization): Cast field width to int to
234 avoid warning.
235
f42eccdb
JM
2362005-03-19 Joseph S. Myers <joseph@codesourcery.com>
237
238 * configure.ac: Consistently use solaris2.1[0-9]* instead of
239 solaris2.1[0-9].
240 * configure: Regenerate.
241
c79e602b
GK
2422005-03-15 Geoffrey Keating <geoffk@apple.com>
243
244 * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
245 UCN rather than printing an error.
246
50668cf6
GK
2472005-03-14 Geoffrey Keating <geoffk@apple.com>
248
6baba9bb
GK
249 * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
250
2512005-03-14 Geoffrey Keating <geoffk@apple.com>
1ed17cd5 252
50668cf6
GK
253 * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
254 * charset.c: Update for new format of ucnid.h.
255 (ucn_valid_in_identifier): Update for new format of ucnid.h.
256 Add NST parameter, and update it; update callers.
257 (cpp_valid_ucn): Add NST parameter, update callers. Replace abort
258 with cpp_error.
259 (convert_ucn): Pass normalize_state to cpp_valid_ucn.
260 * internal.h (struct normalize_state): New.
261 (INITIAL_NORMALIZE_STATE): New.
262 (NORMALIZE_STATE_RESULT): New.
263 (NORMALIZE_STATE_UPDATE_IDNUM): New.
264 (_cpp_valid_ucn): New.
265 * lex.c (warn_about_normalization): New.
266 (forms_identifier_p): Add normalize_state parameter, update callers.
267 (lex_identifier): Add normalize_state parameter, update callers. Keep
268 the state current.
269 (lex_number): Likewise.
270 (_cpp_lex_direct): Pass normalize_state to subroutines. Check
271 it with warn_about_normalization.
272 * makeucnid.c: New.
273 * ucnid.h: Replace.
274 * ucnid.pl: Remove.
275 * ucnid.tab: Make appropriate for input to makeucnid.c. Remove
276 comments about obsolete version of C++.
277 * include/cpplib.h (enum cpp_normalize_level): New.
278 (struct cpp_options): Add warn_normalize field.
279
47e20491
GK
2802005-03-11 Geoffrey Keating <geoffk@apple.com>
281
282 * directives.c (glue_header_name): Update call to cpp_spell_token.
283 * internal.h (_cpp_interpret_identifier): New.
284 * charset.c (_cpp_interpret_identifier): New.
285 (_cpp_valid_ucn): Allow UCN version of '$'.
286 * lex.c (lex_identifier): Add extra parameter to indicate if initial
287 character was '$' or '\'. Support identifiers with UCNs.
288 (forms_identifier_p): Allow UCNs.
289 (_cpp_lex_direct): Pass extra parameter to lex_identifier.
290 (utf8_to_ucn): New.
291 (cpp_spell_token): Add FORSTRING parameter. Use it.
292 (cpp_token_as_text): Update call to cpp_spell_token.
293 (cpp_output_token): Write UCNs back out.
294 (stringify_arg): Update call to cpp_spell_token.
295 (paste_tokens): Likewise.
296 (cpp_macro_definition): Likewise.
297 * macro.c (stringify_arg): Likewise.
298 (paste_tokens): Likewise.
299 (cpp_macro_definition): Likewise.
300 * include/cpplib.h: Add parameter to cpp_spell_token.
301
73096711
JJ
3022005-03-04 Jakub Jelinek <jakub@redhat.com>
303
304 PR bootstrap/20282
305 PR bootstrap/20305
306 * macro.c (replace_args, cpp_get_token): Copy whole
307 cpp_token_u instead of just cpp_string field from it.
308
2203a881
DP
3092005-02-28 Devang Patel <dpatel@apple.com>
310
311 * directives.c (do_line): Save sysp early before line table is
312 realloc'ed.
1ed17cd5 313
c5ff069d
ZW
3142005-02-20 Zack Weinberg <zack@codesourcery.com>
315
316 PR 18785
317 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
318 (cpp_host_to_exec_charset): New function.
319 * include/cpplib.h: Declare cpp_host_to_exec_charset.
320
04c90eea
DP
3212005-02-19 Devang Patel <dpatel@apple.com>
322
323 * charset.c (_cpp_convert_input): Check '\r' before inserting
324 '\n' at the end.
c5ff069d 325
6da55c00
EC
3262005-02-15 Eric Christopher <echristo@redhat.com>
327
328 PR preprocessor/19077
329 * macro.c (cpp_macro_definition): Move handling of whitespace
330 to PREV_WHITE conditional. Remove overloading of len
331 variable.
332
31c3e631
KH
3332005-02-14 Kazu Hirata <kazu@cs.umass.edu>
334
335 * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
336 traditional.c: Update copyright.
337
be0f1e54
PB
3382005-02-14 Paolo Bonzini <bonzini@gnu.org>
339
340 PR bootstrap/19818
341 * configure.ac: Check for declaration of basename and getopt.
342 * config.in: Regenerate.
343 * configure: Regenerate.
344 * internal.h (ustrcspn): New.
345 * macro.c (create_iso_definition): Fix allocation of memory.
346 (padding_token): Add cast to remove const-ness.
347 * pch.c (cpp_read_state): Use ustrcspn.
348
ecddfb39
MS
3492005-02-08 Mike Stump <mrs@apple.com>
350
351 * files.c (pchf_adder): Remove.
352 (struct pchf_adder_info): Likewise.
353 (_cpp_save_file_entries): Write out all files so that #import works.
354
9fcdd891
JM
3552005-01-23 Joseph S. Myers <joseph@codesourcery.com>
356
357 * configure: Regenerate.
358
ecfd72e7
TS
3592005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
360
361 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
362
6c25a4f7 363 * include/cpplib.h: Also update copyright years.
c5ff069d 364
942926ad
GK
3652005-01-03 Geoffrey Keating <geoffk@apple.com>
366
367 * files.c (_cpp_find_file): Add files found by search_path_exhausted
368 to the list of all files.
369
a2566ae9
GDR
3702005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
371
372 * internal.h: Update references to Cpp lib filenames.
373 * directives.c: Likewise.
374 * init.c: Likewise.
375 * macro.c: Likewise.
376 * traditional.c: Likewise.
377
1b449375
EB
3782004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
379
380 PR preprocessor/15167
381 * files.c (destroy_cpp_file): New function.
382 (should_stack_file): Make a new file if the
383 compared file is still stacked.
384
28303828
NN
3852004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
386
c5ff069d 387 PR preprocessor/17610
28303828
NN
388 * directives.c (do_include_common): Error out if an empty filename
389 is given for #include (or #include_next or #import).
390
c812785a
RS
3912004-11-27 Roger Sayle <roger@eyesopen.com>
392 Zack Weinberg <zack@codesourcery.com>
393
394 * internal.h: Replace all uses of uchar with unsigned char.
395 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
396 with !IN_GCC, so uchar is only defined whilst building libcpp.
397
f91eaa01
KC
3982004-11-24 Kelley Cook <kcook@gcc.gnu.org>
399
400 * aclocal.m4: Regenerate.
401
f78ce0c2
RS
4022004-11-24 Roger Sayle <roger@eyesopen.com>
403
404 PR preprocessor/15824
405 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
406 directly, instead of the non-existant "system.h" and "ansidecl.h".
407 * configure: Regenerate.
408
b5b3e36a 4092004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 410 Joseph Myers <joseph@codesourcery.com>
b5b3e36a
DJ
411
412 * internal.h (struct lexer_state): Add in_deferred_pragma.
413 * directives.c (struct pragma_entry): Add allow_expansion.
414 (insert_pragma_entry): Take allow_expansion flag.
415 (register_pragma): Likewise.
416 (cpp_register_pragma): Likewise.
417 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
418 (do_pragma): Honor allow_expansion.
419 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
420 * include/cpplib.h (cpp_register_pragma): Update prototype.
421
a8e68029 4222004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 423 Mark Mitchell <mark@codesourcery.com>
a8e68029
DJ
424
425 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
426 need_64bit_hwint=yes.
427 * configure: Regenerate.
428
50f47ee0
JM
4292004-11-09 Joseph S. Myers <joseph@codesourcery.com>
430
431 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
432 po/$(PACKAGE).pot.
433 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
434 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
435 Remove local srcdir path from generated file.
436
968e08d6 4372004-11-04 Zack Weinberg <zack@codesourcery.com>
c5ff069d 438 Gerald Pfeifer <gerald@pfeifer.com>
968e08d6
ZW
439
440 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
441 as well.
442
3da3d587
ZW
4432004-10-27 Zack Weinberg <zack@codesourcery.com>
444
445 PR 18075
446 * directives.c (do_pragma): Do not defer pragmas which are unknown.
447 (cpp_handle_deferred_pragma): Add cast to silence warning.
448
ac24fc25
JM
4492004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
450
451 * errors.c (_cpp_begin_message): Print "error: " for errors.
452
7731405b
AJ
4532004-10-10 Andreas Jaeger <aj@suse.de>
454
455 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
456 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
457
646544e3
AP
4582004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
459
460 * pch.c (cpp_write_pch_state): Remove variable z as it is not
461 used.
462 (cpp_read_state): Remove unused variables, m, d and mac_count.
463
67a74146
PB
4642004-09-29 Per Bothner <per@bothner.com>
465
466 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
467 cb.line_change. Otherwise do_pragma will call the line_change
468 call-back with a meaningless line number.
469
018a4785
ZW
4702004-09-24 Zack Weinberg <zack@codesourcery.com>
471
472 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
473 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
474 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
475 * aclocal.m4, configure: Regenerate.
476 * init.c: Include localedir.h.
477 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
478 (DEFS): Delete.
479 (.c.o): Use $(ALL_CFLAGS).
480 (localedir.h, localedir.hs): New rules.
481 (clean): Use rm -rf to remove directories.
482 (distclean): Also delete localedir.h and localedir.hs.
483 (init.o): Update dependencies.
484
88fa57d7
KC
4852004-09-22 Kelley Cook <kcook@gcc.gnu.org>
486
487 * Makefile.in (aclocal.m4): Update dependencies.
488 * configure.ac (AC_CONFIG_MACRO_DIR): New.
489 * aclocal.m4, configure: Regenerate.
490
8f8e9aa5
ZW
4912004-09-17 Zack Weinberg <zack@codesourcery.com>
492
a29f62d9
ZW
493 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
494 (_cpp_convert_input, _cpp_default_encoding): Add comments.
495 Some other comments in this file also tweaked.
496
8f8e9aa5
ZW
497 * directives.c (do_pragma): Save current buffer position
498 before lexing the pragma keywords; don't call
499 _cpp_backup_tokens in the defer_pragmas case.
500
a2981930
PB
5012004-09-15 Per Bothner <per@bothner.com>
502
503 * include/line-map.h (line_map_start): Add parameter names so
504 preceding comment makes sense.
505 (linemap_add): Remove from comment mention of non-existing parameter.
506
21b11495
ZW
5072004-09-09 Matt Austern <austern@apple.com>
508 Zack Weinberg <zack@codesourcery.com>
509
510 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
511 prefixes throughout. Add entry for PRAGMA. Remove
512 unnecessary "= 0" from EQ.
513 (enum cpp_ttype): Adjust OP and TK definitions to restore
514 prefixes, via token-paste.
515 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
516 Change from #defines to additional cpp_ttype enumerators.
517 (struct cpp_options): Add defer_pragmas.
518 (cpp_handle_deferred_pragma): Prototype new interface.
519
520 * internal.h (struct cpp_reader): Add directive_result.
521 * directives.c (struct pragma_entry): Add is_internal field;
522 give boolean fields type bool.
523 (start_directive): Initialize pfile->directive_result.type.
524 (_cpp_do__Pragma): Likewise.
525 (run_directive): Do not crash if pfile->buffer->prev is NULL.
526 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
527 from it.
528 (register_pragma): New static function, bulk of former
529 cpp_register_pragma here; add 'internal' argument, pass along
530 to insert_pragma_entry.
531 (cpp_register_pragma): Now a wrapper around register_pragma which
532 always passes false for 'internal' argument.
533 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
534 true for 'internal'.
535 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
536 an internal pragma, save text till the end of the line as a CPP_PRAGMA
537 token instead of executing the pragma.
538 (cpp_handle_deferred_pragma): New interface.
539 * lex.c (token_spellings): Adjust OP and TK definitions to
540 match changes to cpplib.h.
541 (_cpp_lex_token): Check for a directive-result token and
542 return it if present.
543 (cpp_token_val_index): Handle CPP_PRAGMA.
544 * macro.c (cpp_builtin_macro_text): Correct comment.
545 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
546
0fd9e8dd
SB
5472004-09-06 Serge Belyshev <belyshev@lubercy.com>
548
549 PR preprocessor/14699
550 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
551 from size_t to double.
552
39b8ce7f
AS
5532004-08-28 Andreas Schwab <schwab@suse.de>
554 Andreas Jaeger <aj@suse.de>
555
556 * configure.ac: Set PACKAGE correctly.
557 * configure: Regenerated.
558
5d1f4b27
PB
5592004-08-25 Paolo Bonzini <bonzini@gnu.org>
560
561 * Makefile.in: Add back top_builddir.
562
078e3ffe
PB
5632004-08-25 Paolo Bonzini <bonzini@gnu.org>
564
565 * configure.ac: Replace Automake macro invocations
566 with manual Autoconf checks and substitutions.
567 * configure: Regenerate.
568 * aclocal.m4: Regenerate.
569 * config.in: Regenerate.
570 * Makefile.am: Removed.
571 * Makefile.in: Heavy simplification and reorganization.
572
b3f8d95d
MM
5732004-08-09 Mark Mitchell <mark@codesourcery.com>
574
575 * configure.ac (arm*-*-eabi*): New target.
576 (arm*-*-symbianelf*): Likewise.
577 * configure: Regenerated.
578
72bb2c39
BI
5792004-07-24 Bernardo Innocenti <bernie@develer.com>
580
581 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
582 * directives.c: Use XNEW-family macros from libiberty.
583 * lex.c: Likewise.
584 * macro.c: Likewise.
585 * cpplib.h (cpp_deps_style): Export enum with name.
586
21b11495 5872004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 588
21b11495 589 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 590
a23ee064
AP
5912004-07-16 Andris Pavenis <pavenis@latnet.lv>
592
593 PR preprocessor/16366
594 * internal.h (struct cpp_reader): New field dir_hash.
595 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
596 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
597
a09d4744
NB
5982004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
599
600 PR preprocessor/16192
601 PR preprocessor/15913
602 PR preprocessor/15572
603 * expr.c (_cpp_parse_expr): Handle remaining cases where an
604 expression is missing.
605 * init.c (post_options): Traditional cpp doesn't do // comments.
606
f58f7def
PB
6072004-06-30 Per Bothner <per@bothner.com>
608
609 * include/line-map.h (fileline): Remove old typedef.
610 * internal.h (struct cpp_reader): Use source_location typedef instead.
611
e83d8d43
ZW
6122004-06-26 Zack Weinberg <zack@codesourcery.com>
613
614 Partially revert patch of 2004-06-05.
615 * files.c (search_cache): Remove pfile argument. Don't check
616 for file that would be found by "" or <> search here...
617 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
618 Do not apply directory-of-current-file correction to files
619 found by this check. Rearrange code slightly.
620
c0d578e6
GK
6212004-06-21 Geoffrey Keating <geoffk@apple.com>
622
623 * files.c (should_stack_file): Correct swapped parameters to call
624 to cb.read_pch.
625 * pch.c (cpp_valid_state): Handle -fpreprocessed.
626
159d5224
PB
6272004-06-15 Paolo Bonzini <bonzini@gnu.org>
628
629 * Makefile.in: Regenerate with automake 1.8.5.
630 * aclocal.m4: Likewise.
631 * configure: Regenerate.
632
2fac9c01
ZW
6332004-06-11 Zack Weinberg <zack@codesourcery.com>
634
635 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
636 * configure, config.in: Regenerate.
637 * system.h: Unconditionally define bool as unsigned char,
638 BOOL_BITFIELD as unsigned int.
639 * .cvsignore: New file.
640
d8044160
GK
6412004-06-09 Geoffrey Keating <geoffk@apple.com>
642
643 * traditional.c (push_replacement_text): Set macro->traditional.
644 (save_replacement_text): Likewise.
645 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
646 (struct save_macro_item): Delete.
647 (struct save_macro_data): Use a character array not the previous
648 structured format.
649 (save_macros): Save macro as text not as internal structures.
650 (cpp_prepare_state): Update for changes to save_macro_data.
651 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 652 -D macros as text.
d8044160
GK
653 * macro.c (create_iso_definition): Honour alloc_subobject.
654 Clear traditional flag.
655 (_cpp_create_definition): Honour alloc_subobject.
656 * lex.c (cpp_token_val_index): New.
657 * internal.h: Include cpp-id-data.h.
658 (uchar): Move definition to cpp-id-data.h.
659 (U): Likewise.
660 (cpp_macro): Likewise.
661 * directives.c (struct answer): Move to cpp-id-data.h.
662 (do_assert): Honour alloc_subobject.
2cf22451
ZW
663
664 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
665 * include/cpplib.h (struct cpp_string): Add GTY marker.
666 (enum cpp_token_fld_kind): New.
667 (struct cpp_token): Add GTY markers.
668 (cpp_token_val_index): Prototype.
669 (CPP_HASHNODE_VALUE_IDX): New.
670 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
671 * include/cpp-id-data.h: New file.
d8044160 672
0ca8e815
PB
6732004-06-09 Paolo Bonzini <bonzini@gnu.org>
674
675 * Makefile.am (all-local): New.
676 * Makefile.in: Regenerate.
677
b51fa00f
RS
6782004-06-06 Roger Sayle <roger@eyesopen.com>
679
680 * Makefile.am (LIBICONV): Declare.
681 (makedepend_LDADD): Use LIBICONV.
682 * Makefile.in: Regenerate.
683
5e2f3f39
AP
6842004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
685
686 * Makefile.am (LIBINTL): Declare
687 (makedepend_LDADD): Use LIBINTL.
688 * Makefile.in: Regenerate.
689
c6e83800
ZW
6902004-06-05 Zack Weinberg <zack@codesourcery.com>
691
692 * Makefile.am: Add makedepend.
693 * Makefile.in, aclocal.m4: Regenerate.
694 * charset.c: Insert a space to avoid a warning.
695 * directives.c: Include mkdeps.h.
696 (_cpp_handle_directive): Reenable macro expander if appropriate.
697 (undefine_macros): Inline body of _cpp_free_definition for speed.
698 Do not call undef callback or _cpp_warn_if_unused_macro.
699 (cpp_get_deps): New interface.
700 * files.c (search_cache): Add pfile argument. Check for file
701 that would be found by "" or <> search here...
702 (_cpp_find_file): ...not here. Correct recorded start_dir of
703 files found by directory-of-current-file search that would be
704 found by "" or <> search.
705 * init.c (cpp_add_dependency_target): Delete.
706 * internal.h (struct lexer_state): Add discarding_output flag.
707 * lex.c (lex_identifier): Compute hash function while scanning.
708 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
709 directives.
710 * makedepend.c: New file.
711 * mkdeps.c (struct deps): Add vpath vector.
712 (apply_vpath, deps_add_vpath): New function.
713 (deps_free): Free vpath vector.
714 (deps_add_dep, deps_add_target): Use apply_vpath.
715 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
716 (ht_lookup_with_hash): New function.
717 * cpplib.h, mkdeps.h: Update prototypes.
718 * symtab.h: Update prototypes.
719 (HT_HASHSTEP, HT_FINISH): New macros.
720
b453c95f
GK
7212004-05-29 Geoffrey Keating <geoffk@apple.com>
722
723 * symtab.c (ht_create): Set entries_owned.
724 (ht_destroy): Honour entries_owned.
725 (ht_expand): Likewise.
726 (ht_load): New.
2cf22451
ZW
727 * include/symtab.h (struct ht): New field 'entries_owned'
728 (ht_load): New prototype.
b453c95f 729
963e23c5
PB
7302004-05-26 Paolo Bonzini <bonzini@gnu.org>
731
732 PR bootstrap/15651
733 * configure.ac: Fix m4 quoting when picking
734 the size of HOST_WIDE_INT.
735 * configure: Regenerate.
736
0429bc77
PB
7372004-05-25 Paolo Bonzini <bonzini@gnu.org>
738
739 * Makefile.am: the correct directory for
740 gettext include files is given by @INCINTL@.
741 * Makefile.in: Regenerate.
742
c86dd7db
PB
7432004-05-24 Paolo Bonzini <bonzini@gnu.org>
744
745 * system.h [!ENABLE_NLS]: dgettext takes two
746 parameters.
747
4f4e53dd
PB
7482004-05-23 Paolo Bonzini <bonzini@gnu.org>
749
750 Moved libcpp from the gcc subdirectory to the toplevel.
751 * Makefile.am: New file.
752 * Makefile.in: Regenerate.
753 * configure.ac: New file.
754 * configure: Regenerate.
755 * config.in: Regenerate.
756 * charset.c: Moved from gcc/cppcharset.c. Add note about
757 brokenness of input charset detection. Adjust for change
758 in name of cppucnid.h.
759 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
760 * expr.c: Moved from gcc/cppexp.c.
761 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
762 Remove #define of O_BINARY, it is in system.h.
763 * identifiers.c: Moved from gcc/cpphash.c.
764 * internal.h: Moved from gcc/cpphash.h. Change header
765 guard name. All other files adjusted to match name change.
766 * init.c: Moved from gcc/cppinit.c.
767 (init_library) [ENABLE_NLS]: Call bindtextdomain.
768 * lex.c: Moved from gcc/cpplex.c.
769 * directives.c: Moved from gcc/cpplib.c.
770 * macro.c: Moved from gcc/cppmacro.c.
771 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
772 * traditional.c: Moved from gcc/cpptrad.c.
773 * ucnid.h: Moved from gcc/cppucnid.h. Change header
774 guard name.
775 * ucnid.pl: Moved from gcc/cppucnid.pl.
776 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
777 guard name.
778 * symtab.c: Moved from gcc/hashtable.c.
779 * line-map.c: Moved from gcc. Do not include intl.h.
780 * mkdeps.c: Moved from gcc.
781 * system.h: New file.
2cf22451
ZW
782 * include/cpplib.h: Moved from gcc. Change header guard name.
783 * include/line-map.h: Moved from gcc. Change header guard name.
784 * include/mkdeps.h: Moved from gcc. Change header guard name.
785 * include/symtab.h: Moved from gcc/hashtable.h. Change header
786 guard name.