]>
Commit | Line | Data |
---|---|---|
3e2a04b5 | 1 | 2007-01-12 Tom Tromey <tromey@redhat.com> |
2 | ||
3 | PR preprocessor/28227: | |
4 | * directives.c (lex_macro_node): Added 'is_def_or_undef' | |
5 | argument. | |
6 | (do_define): Update. | |
7 | (do_undef): Update. | |
8 | (do_ifdef): Update. | |
9 | (do_ifndef): Update. | |
10 | ||
6a6e7e2f | 11 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
12 | ||
13 | * configure: Regenerate. | |
14 | ||
77258a2e | 15 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
16 | ||
17 | * configure: Regenerate. | |
18 | ||
927b511f | 19 | 2007-01-04 Tom Tromey <tromey@redhat.com> |
20 | ||
21 | PR preprocessor/28165: | |
22 | * internal.h (cpp_in_primary_file): New function. | |
23 | * directives.c (do_include_next): Use cpp_in_primary_file. | |
24 | (do_pragma_once): Likewise. | |
25 | (do_pragma_system_header): Likewise. | |
26 | ||
5008f5c5 | 27 | 2006-12-29 Ian Lance Taylor <iant@google.com> |
28 | ||
29 | * lex.c (_cpp_clean_line): Add uses of __builtin_expect. Don't | |
30 | look backward at the end of the line unless we saw a backslash. | |
31 | ||
5d70627e | 32 | 2006-12-29 Jakub Jelinek <jakub@redhat.com> |
33 | ||
34 | PR preprocessor/29612 | |
35 | * directives.c (do_linemarker): Set pfile->buffer->sysp always, not | |
36 | only when new_sysp is non-zero. | |
37 | ||
854f075e | 38 | 2006-12-28 Tom Tromey <tromey@redhat.com> |
39 | ||
40 | PR preprocessor/30001: | |
41 | * charset.c (_cpp_convert_input): Check that to.len is greater | |
42 | than zero. | |
43 | ||
644459d0 | 44 | 2006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> |
45 | ||
46 | * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU. | |
db375b8e | 47 | * configure: Rebuilt. |
644459d0 | 48 | |
093aec7c | 49 | 2006-11-01 Douglas Gregor <doug.gregor@gmail.com> |
50 | ||
51 | * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X | |
52 | for experimental C++0x mode. | |
53 | * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has | |
54 | adopted the preprocessor changes introduced in C99. | |
55 | ||
54bb64fb | 56 | 2006-10-29 Joseph Myers <joseph@codesourcery.com> |
57 | ||
58 | * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux* | |
59 | depending on --enable-targets=all. | |
60 | * configure: Regenerate. | |
61 | ||
46139d3f | 62 | 2006-10-12 Jakub Jelinek <jakub@redhat.com> |
63 | ||
64 | PR preprocessor/28709 | |
65 | * macro.c (paste_tokens): Do error reporting here, use BUF with the | |
66 | spelled LHS token as opposed to spelling it again. | |
67 | (paste_all_tokens): Don't report errors here, just break on failure. | |
68 | ||
51f93521 | 69 | 2006-10-10 Brooks Moses <bmoses@stanford.edu> |
70 | ||
71 | * Makefile.in: Added empty "pdf" target. | |
72 | ||
32bca58b | 73 | 2006-09-22 Geoffrey Keating <geoffk@apple.com> |
74 | ||
75 | * configure.ac: Make need_64_bit_hwint case for x86-darwin | |
76 | match exactly the glob in gcc/config.gcc. | |
77 | * configure: Regenerate. | |
78 | ||
0b67f687 | 79 | 2006-09-13 Joseph S. Myers <joseph@codesourcery.com> |
80 | ||
81 | PR c/28768 | |
82 | PR preprocessor/14634 | |
83 | * lex.c (lex_string): Pedwarn for unterminated literals. | |
84 | ||
3ebc7dec | 85 | 2006-09-08 Eric Christopher <echristo@apple.com> |
86 | ||
87 | * configure.ac: Add 64-bit HWI support for i?86-darwin. | |
88 | ||
e58c07f7 | 89 | 2006-08-14 Steve Ellcey <sje@cup.hp.com> |
90 | ||
91 | PR c++/28288 | |
92 | PR c++/14556 | |
93 | * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens. | |
94 | (CPP_LAST_EQ): Change. | |
95 | (CPP_LAST_PUNCTUATOR): Change. | |
96 | * expr.c (cpp_operator): Remove MIN and MAX. | |
97 | (reduce): Remove CPP_MIN and CPP_MAX. | |
98 | (num_binary_op): Ditto. | |
99 | * lex.c (_cpp_lex_direct): Ditto. | |
100 | (cpp_avoid_paste): Remove ? as legal symbol after > or <. | |
101 | ||
add258d7 | 102 | 2006-06-09 Jakub Jelinek <jakub@redhat.com> |
103 | ||
104 | PR preprocessor/27746 | |
105 | * directives.c (do_pragma): Handle pragma with valid namespace | |
106 | and invalid name coming from macro expansion. | |
107 | * directives.c (destringize_and_run): Initialize next field in | |
108 | context. | |
109 | ||
110 | PR c/27747 | |
111 | PR c++/27748 | |
112 | * directives.c (destringize_and_run): Set NO_EXPAND on the | |
113 | tokens. | |
114 | ||
115 | * macro.c (_cpp_backup_tokens): Fix comment typo. | |
116 | ||
49688a56 | 117 | 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com> |
118 | ||
119 | * Makefile.in (CATALOGS): Add po/ prefix. | |
120 | * configure: Regenerated. | |
121 | ||
8f597c12 | 122 | 2006-05-23 Carlos O'Donell <carlos@codesourcery.com> |
123 | ||
124 | * Makefile.in: Add install-html target. Add install-html to .PHONY | |
125 | ||
cca5dddc | 126 | 2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com> |
127 | ||
128 | * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP. | |
129 | * files.c (_cpp_get_file_stat): New function. | |
130 | * include/cpplib.h (builtin_type): Add BT_TIMESTAMP. | |
131 | * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP. | |
132 | * internal.h (_cpp_get_file_stat): Prototype. | |
133 | (struct cpp_buffer): Add timestamp. | |
134 | ||
31614f7c | 135 | 2006-01-23 Jakub Jelinek <jakub@redhat.com> |
136 | ||
137 | PR preprocessor/25717 | |
138 | * init.c (cpp_init_builtins): If __STDC__ will not change value | |
139 | between system headers and other sources, define it as a normal | |
140 | macro rather than a builtin. | |
141 | * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check | |
142 | cpp_in_system_header condition. | |
143 | ||
144 | 2006-01-05 Paolo Bonzini <bonzini@gnu.org> | |
3c77e017 | 145 | |
146 | * Makefile.in: Use -MMD instead of -MD. | |
147 | ||
b75b98aa | 148 | 2006-01-04 Dmitry Kurochkin <dmitry.kurochkin@gmail.com> |
149 | Richard Henderson <rth@redhat.com> | |
150 | ||
151 | Merge from gomp branch: | |
152 | * directives.c (struct pragma_entry): Add is_deferred. Add ident | |
153 | entry to value union. | |
154 | (end_directive): Don't eat the line if in_deferred_pragma. | |
155 | (run_directive): Remove pragma hacks. | |
156 | (insert_pragma_entry): Remove. | |
157 | (new_pragma_entry): New. | |
158 | (register_pragma_1): Split out of register_pragma. Only handle | |
159 | the lookup tree and return the new entry. | |
160 | (cpp_register_pragma): Fill in the pragma entry here. | |
161 | (cpp_register_deferred_pragma): New. | |
162 | (register_pragma_internal): New. | |
163 | (_cpp_init_internal_pragmas): Use register_pragma_internal. | |
164 | (do_pragma): Allow pragma expansion after namespace. For deferred | |
165 | pragmas, don't slurp the line into a string. | |
166 | (destringize_and_run): Save tokens for deferred pragmas. | |
167 | (cpp_handle_deferred_pragma): Remove. | |
168 | * macro.c (builtin_macro): Remove pragma token hack. | |
169 | (_cpp_push_token_context): Rename from push_token_context and export. | |
170 | * internal.h (struct lexer_state): Add pragma_allow_expansion. | |
171 | (_cpp_push_token_context): Declare. | |
172 | * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return | |
173 | a token. Update the line number correctly if so. | |
174 | (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens. | |
175 | (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas. | |
176 | * include/cpplib.h (PRAGMA_EOL): New. | |
177 | (CPP_TOKEN_FLD_PRAGMA): New. | |
178 | (struct cpp_token): Add val.pragma. | |
179 | (struct cpp_options): Remove defer_pragmas. | |
180 | (cpp_handle_deferred_pragma): Remove. | |
181 | (cpp_register_deferred_pragma): Declare. | |
182 | ||
986ca356 | 183 | 2006-01-01 Jakub Jelinek <jakub@redhat.com> |
184 | ||
185 | PR c++/25294 | |
186 | * directives.c (do_pragma): If pragma line ends with multi-line | |
187 | block comment, end the saved deferred pragma string before that | |
188 | comment. Handle embedded '\0' chars on the pragma line. | |
189 | ||
8dba02f7 | 190 | 2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
191 | ||
192 | PR c++/23333 | |
193 | * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure. | |
194 | ||
6db045b0 | 195 | 2005-12-07 Jon Grimm <jgrimm2@us.ibm.com> |
196 | Ben Elliston <bje@au.ibm.com> | |
197 | ||
198 | * include/cpplib.h (CPP_N_DFLOAT): New. | |
199 | * expr.c (interpret_float_suffix): Identify df, dd, and dl | |
200 | suffixes as decimal floating point constants. | |
201 | (cpp_classify_number): Disallow hexadecimal DFP constants. | |
202 | ||
9a7c76f9 | 203 | 2005-11-14 Gerald Pfeifer <gerald@pfeifer.com> |
b75b98aa | 204 | Ian Lance Taylor <ian@airs.com> |
9a7c76f9 | 205 | |
206 | * include/cpplib.h (struct cpp_callbacks): Annotate error with | |
207 | ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0). | |
208 | ||
0c5e3a3d | 209 | 2005-11-09 Per Bothner <per@bothner.com> |
210 | Uros Bizjak <uros@kss-loka.si> | |
3ebc7dec | 211 | |
0c5e3a3d | 212 | PR c/24101 |
213 | * init.c (read_original_filename): Temporarily set | |
214 | state.in_directive before calling _cpp_lex_direct for | |
215 | CPP_HASH tokens. | |
216 | ||
3c2359db | 217 | 2005-11-03 James E Wilson <wilson@specifix.com> |
218 | ||
219 | PR preprocessor/24202 | |
220 | * files.c (_cpp_pop_file_buffer): Set buffer_valid to false. | |
221 | ||
d65b3a40 | 222 | 2005-11-04 Joseph S. Myers <joseph@codesourcery.com> |
223 | ||
224 | * include/cpplib.h (struct cpp_callbacks): Make error take | |
225 | va_list* parameter. | |
226 | * errors.c (cpp_error): Update call to callback. | |
227 | ||
cc9012f7 | 228 | 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> |
229 | ||
230 | PR preprocessor/22042 | |
231 | * macro.c (_cpp_builtin_macro_text): Lower the needed max | |
232 | buffer size. | |
233 | (cpp_quote_string): Don't octalify non printable | |
234 | charactors. | |
235 | ||
eb0d20b7 | 236 | 2005-11-03 Joseph S. Myers <joseph@codesourcery.com> |
237 | ||
238 | PR c++/17964 | |
239 | * include/cpplib.h (struct cpp_options): Add client_diagnostic. | |
240 | (struct cpp_callbacks): Add error. | |
241 | * errors.c (cpp_error): If client_diagnostic, use error callback. | |
242 | * charset.c (convert_escape): Don't use %03o in diagnostic. | |
243 | ||
de4aacc0 | 244 | 2005-10-21 James E Wilson <wilson@specifix.com> |
04c0bfd0 | 245 | |
246 | PR preprocessor/15220 | |
247 | * files.c (_cpp_find_file): New parameter angle_brackets. Fix all | |
248 | callers. Pass to open_file_failed. | |
249 | (open_file_failed): New parameter angle_brackets. Fix all callers. | |
250 | Use in print_dep assignment. | |
251 | * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file. | |
252 | * internal.h (_cpp_find_file): Add new parm to declaration. | |
3ebc7dec | 253 | |
6783d878 | 254 | 2005-10-08 Kazu Hirata <kazu@codesourcery.com> |
255 | ||
256 | * configure.ac: Require 64-bit int for arm*-*-*eabi*. | |
257 | * configure: Regenerate. | |
258 | ||
f789fe3e | 259 | 2005-10-04 Ian Lance Taylor <ian@airs.com> |
260 | ||
261 | PR preprocessor/13726 | |
262 | * directives.c (check_eol_return_comments): New static function. | |
263 | (parse_include): Add buf parameter. Change all callers. | |
264 | (do_include_common): If not discard comments, turn on | |
265 | save_comments. Pass collected comments to include callback. | |
266 | * include/cpplib.h (struct cpp_callbacks): Add new parameter to | |
267 | include callback: cpp_token list. | |
268 | ||
865c4e44 | 269 | 2005-09-20 Joseph S. Myers <joseph@codesourcery.com> |
270 | ||
271 | * include/cpplib.h (struct cpp_options): Add extended_identifiers. | |
272 | * init.c (struct lang_flags, lang_defaults): Add | |
273 | extended_identifiers. | |
274 | (cpp_set_lang): Use it. | |
275 | * lex.c (forms_identifier_p): Check extended_identifiers. | |
276 | ||
56845aa6 | 277 | 2005-08-30 Jakub Jelinek <jakub@redhat.com> |
278 | ||
279 | PR preprocessor/20348 | |
280 | PR preprocessor/20356 | |
281 | * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and | |
282 | 2004-06-05 changes. | |
283 | ||
72ee8ff9 | 284 | 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
285 | ||
286 | * configure.ac (ACX_PROG_CC_WARNING_OPTS): add | |
287 | -Wmissing-format-attribute. | |
288 | ||
289 | * configure: Regenerate. | |
290 | ||
2656917a | 291 | 2005-06-29 Kelley Cook <kcook@gcc.gnu.org> |
292 | ||
293 | * all files: Update FSF address in copyright headers. | |
294 | * makeucnid.c (write_copyright): Update outputted FSF address. | |
295 | ||
cbaa9876 | 296 | 2005-06-13 Zack Weinberg <zack@codesourcery.com> |
297 | ||
298 | * configure.ac: Invoke ZW_CREATE_DEPDIR and | |
299 | ZW_PROG_COMPILER_DEPENDENCIES. | |
300 | * aclocal.m4, configure: Regenerate. | |
301 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE): | |
302 | New variables. | |
303 | (distclean): Clean up $(DEPDIR) and its contents. | |
304 | (.c.o): Use $(COMPILE). | |
305 | Include $(DEPDIR)/*.Po for most object->header dependencies. | |
306 | ||
720aca92 | 307 | 2005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net> |
308 | ||
309 | * configure.ac: Check declarations for asprintf and vasprintf. | |
310 | * config.in: Regenerate. | |
311 | * configure: Likewise. | |
312 | ||
313 | * charset.c (conversion_loop): Use XRESIZEVEC. | |
314 | (convert_no_conversion): Likewise. | |
315 | (convert_using_iconv): Likewise. | |
316 | (init_iconv_desc): Cast return value of alloca. | |
317 | (cpp_host_to_exec_charset): Use XNEWVEC. | |
318 | (emit_numeric_escape): Use XRESIZEVEC. | |
319 | (cpp_interpret_string): Use XNEWVEC. | |
320 | (cpp_interpret_string): Use XRESIZEVEC. | |
321 | (_cpp_interpret_identifier): Cast return value of alloca. | |
322 | (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC. | |
323 | * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC. | |
324 | (parse_include): Use XNEWVEC. | |
325 | (insert_pragma_entry): Rename local variable "new" to | |
cbaa9876 | 326 | "new_entry". |
720aca92 | 327 | (save_registered_pragmas): Cast return value of xmemdup. |
328 | (destringize_and_run): Same for alloca. | |
329 | (parse_assertion): Likewise. | |
330 | (do_assert): Cast allocated storage to proper type. | |
331 | (cpp_define): Likewise. | |
332 | (_cpp_define_builtin): Likewise. | |
333 | (cpp_undef): Likewise. | |
334 | (handle_assertion): Likewise. | |
335 | (cpp_push_buffer): Rename local variable "new" to "new_buffer". | |
336 | * expr.c (CPP_UPLUS): Cast value to type cpp_ttype. | |
337 | (CPP_UMINUS): Likewise. | |
338 | (struct cpp_operator): Rename from struct operator. | |
339 | (_cpp_expand_op_stack): Use XRESIZEVEC. | |
340 | * files.c (pch_open_file): Use XNEWVEC. | |
341 | (pch_open_file): Use XRESIZEVEC. | |
342 | (read_file_guts): Use XNEWVEC and XRESIZEVEC. | |
343 | (dir_name_of_file): Use XNEWVEC. | |
344 | (make_cpp_file): Use XCNEW. | |
345 | (make_cpp_dir): Likewise. | |
346 | (allocate_file_hash_entries): USE XNEWVEC. | |
347 | (cpp_included): Cast return value of htab_find_with_hash. | |
348 | (append_file_to_dir): Use XNEWVEC. | |
349 | (read_filename_string): Likewise. Use XRESIZEVEC too. | |
350 | (read_name_map): Cast return value of alloca. Use XRESIZEVEC. | |
351 | (remap_filename): Use XNEWVEC. | |
352 | (struct pchf_entry): Move definition out of struct pchf_data. | |
353 | (_cpp_save_file_entries): Use XCNEWVAR. | |
354 | (_cpp_read_file_entries): Use XNEWVAR. | |
355 | * identifiers.c (alloc_node): Use XOBNEW. | |
356 | * init.c (cpp_create_reader): Use XCNEW. | |
357 | (cpp_init_builtins): Cast of b->value to enum builtin_type. | |
358 | (read_original_directory): Cast return value of alloca. | |
359 | * lex.c (add_line_note): Use XRESIZEVEC. | |
360 | (warn_about_normalization): Use XNEWVEC. | |
361 | (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype). | |
362 | (new_buff): Use XNEWVEC. | |
363 | * line-map.c (linemap_add): Use XRESIZEVEC. | |
364 | * macro.c (builtin_macro): Cast return value of alloca. | |
365 | (paste_tokens): Likewise. | |
366 | (expand_arg): Use XNEWVEC and XRESIZEVEC. | |
367 | (_cpp_save_parameter): Use XRESIZEVEC. | |
368 | (create_iso_definition): Cast allocated storage to proper type. | |
369 | (_cpp_create_definition): Likewise. | |
370 | (cpp_macro_definition): Use XRESIZEVEC. | |
371 | * makedepend.c (add_clm): Use XNEW. | |
372 | (add_dir): Likewise. | |
373 | * mkdeps.c (munge): Use XNEWVEC. | |
374 | (deps_init): Use XCNEW. | |
375 | (deps_add_target): Use XRESIZEVEC. | |
376 | (deps_add_default_target): Cast return value of alloca. | |
377 | (deps_add_dep): Use XRESIZEVEC. | |
378 | (deps_add_vpath): Likewise. Use XNEWVEC too. | |
379 | (deps_restore): Likewise. | |
380 | * pch.c (save_idents): Use XNEW and XNEWVEC. | |
381 | (cpp_save_state): Use XNEW. | |
382 | (count_defs): Cast return value of htab_find. | |
383 | (write_defs): Likewise. | |
384 | (cpp_write_pch_deps): Use XNEWVEC. | |
385 | (collect_ht_nodes): Use XRESIZEVEC. | |
386 | (cpp_valid_state): Use XNEWVEC. | |
387 | (save_macros): Use XRESIZEVEC. Cast return value of xmemdup. | |
388 | * symtab.c (ht_create): Use XCNEW. | |
389 | (ht_lookup_with_hash): Cast return value of obstack_copy0. | |
390 | (ht_expand): Use XCNEWVEC. | |
391 | * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus. | |
392 | (bool): Do not define if __cplusplus. | |
393 | ||
81e19b31 | 394 | 2005-05-12 Zack Weinberg <zack@codesourcery.com> |
395 | ||
396 | * directives.c (#sccs table entry): Mark IN_I, consistent with #ident. | |
397 | (do_sccs): Delete function definition, #define to do_ident. | |
398 | (do_ident): Don't hardwire directive name. | |
399 | ||
18f11b84 | 400 | 2005-05-12 Ryota Kunisawa <kunisawa@access.co.jp> |
401 | ||
402 | PR bootstrap/21230 | |
403 | * configure: Regenerate. | |
404 | ||
2dc04f36 | 405 | 2005-04-27 Andris Pavenis <pavenis@latnet.lv> |
406 | ||
407 | * files.c: Include io.h for DJGPP to get prototype of setmode. | |
408 | ||
0b7f838f | 409 | 2005-04-19 Per Bothner <per@bothner.com> |
410 | ||
411 | PR preprocessor/20907 | |
412 | * line-map.c (linemap_line_start): Fix bug when we need to increse | |
413 | column_bits but can re-use the current line_map. | |
414 | ||
2224c90b | 415 | 2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
416 | ||
417 | * system.h (fopen, fdopen, freopen): Define these to the unlocked | |
418 | libiberty functions. | |
419 | ||
077a3c99 | 420 | 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
421 | ||
422 | * configure.ac (libcpp_UNLOCKED_FUNCS): New. | |
423 | (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS. | |
424 | * system.h (putchar, getc, getchar, clearerr, feof, fileno, | |
425 | fflush, fgetc, fgets, ferror, fread): Redefine to the associated | |
426 | _unlocked function. | |
427 | (fwrite_unlocked): Fix prototype. | |
81e19b31 | 428 | |
077a3c99 | 429 | * configure, config.in: Regenerate. |
430 | ||
99617355 | 431 | 2005-04-05 Jakub Jelinek <jakub@redhat.com> |
432 | ||
433 | PR preprocessor/19475 | |
434 | * macro.c (create_iso_definition): For < ISO C99, don't | |
435 | pedwarn if there is no whitespace between macro name and its | |
436 | replacement, but the replacement starts with a basic character | |
437 | set character. | |
438 | ||
3827dee5 | 439 | 2005-03-28 Andreas Jaeger <aj@suse.de> |
440 | ||
441 | * lex.c (warn_about_normalization): Cast field width to int to | |
442 | avoid warning. | |
443 | ||
b8273627 | 444 | 2005-03-19 Joseph S. Myers <joseph@codesourcery.com> |
445 | ||
446 | * configure.ac: Consistently use solaris2.1[0-9]* instead of | |
447 | solaris2.1[0-9]. | |
448 | * configure: Regenerate. | |
449 | ||
bc65f24f | 450 | 2005-03-15 Geoffrey Keating <geoffk@apple.com> |
451 | ||
452 | * charset.c (_cpp_valid_ucn): In identifiers, reject a partial | |
453 | UCN rather than printing an error. | |
454 | ||
bce47149 | 455 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> |
456 | ||
4e9d1e6d | 457 | * lex.c (forms_identifier_p): Disable UCNs in C89 mode. |
458 | ||
459 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> | |
81e19b31 | 460 | |
bce47149 | 461 | * init.c (cpp_create_reader): Default warn_normalize to normalized_C. |
462 | * charset.c: Update for new format of ucnid.h. | |
463 | (ucn_valid_in_identifier): Update for new format of ucnid.h. | |
464 | Add NST parameter, and update it; update callers. | |
465 | (cpp_valid_ucn): Add NST parameter, update callers. Replace abort | |
466 | with cpp_error. | |
467 | (convert_ucn): Pass normalize_state to cpp_valid_ucn. | |
468 | * internal.h (struct normalize_state): New. | |
469 | (INITIAL_NORMALIZE_STATE): New. | |
470 | (NORMALIZE_STATE_RESULT): New. | |
471 | (NORMALIZE_STATE_UPDATE_IDNUM): New. | |
472 | (_cpp_valid_ucn): New. | |
473 | * lex.c (warn_about_normalization): New. | |
474 | (forms_identifier_p): Add normalize_state parameter, update callers. | |
475 | (lex_identifier): Add normalize_state parameter, update callers. Keep | |
476 | the state current. | |
477 | (lex_number): Likewise. | |
478 | (_cpp_lex_direct): Pass normalize_state to subroutines. Check | |
479 | it with warn_about_normalization. | |
480 | * makeucnid.c: New. | |
481 | * ucnid.h: Replace. | |
482 | * ucnid.pl: Remove. | |
483 | * ucnid.tab: Make appropriate for input to makeucnid.c. Remove | |
484 | comments about obsolete version of C++. | |
485 | * include/cpplib.h (enum cpp_normalize_level): New. | |
486 | (struct cpp_options): Add warn_normalize field. | |
487 | ||
bb1fa6bb | 488 | 2005-03-11 Geoffrey Keating <geoffk@apple.com> |
489 | ||
490 | * directives.c (glue_header_name): Update call to cpp_spell_token. | |
491 | * internal.h (_cpp_interpret_identifier): New. | |
492 | * charset.c (_cpp_interpret_identifier): New. | |
493 | (_cpp_valid_ucn): Allow UCN version of '$'. | |
494 | * lex.c (lex_identifier): Add extra parameter to indicate if initial | |
495 | character was '$' or '\'. Support identifiers with UCNs. | |
496 | (forms_identifier_p): Allow UCNs. | |
497 | (_cpp_lex_direct): Pass extra parameter to lex_identifier. | |
498 | (utf8_to_ucn): New. | |
499 | (cpp_spell_token): Add FORSTRING parameter. Use it. | |
500 | (cpp_token_as_text): Update call to cpp_spell_token. | |
501 | (cpp_output_token): Write UCNs back out. | |
502 | (stringify_arg): Update call to cpp_spell_token. | |
503 | (paste_tokens): Likewise. | |
504 | (cpp_macro_definition): Likewise. | |
505 | * macro.c (stringify_arg): Likewise. | |
506 | (paste_tokens): Likewise. | |
507 | (cpp_macro_definition): Likewise. | |
508 | * include/cpplib.h: Add parameter to cpp_spell_token. | |
509 | ||
960391da | 510 | 2005-03-04 Jakub Jelinek <jakub@redhat.com> |
511 | ||
512 | PR bootstrap/20282 | |
513 | PR bootstrap/20305 | |
514 | * macro.c (replace_args, cpp_get_token): Copy whole | |
515 | cpp_token_u instead of just cpp_string field from it. | |
516 | ||
b0d0794d | 517 | 2005-02-28 Devang Patel <dpatel@apple.com> |
518 | ||
519 | * directives.c (do_line): Save sysp early before line table is | |
520 | realloc'ed. | |
81e19b31 | 521 | |
624d37a6 | 522 | 2005-02-20 Zack Weinberg <zack@codesourcery.com> |
523 | ||
524 | PR 18785 | |
525 | * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro. | |
526 | (cpp_host_to_exec_charset): New function. | |
527 | * include/cpplib.h: Declare cpp_host_to_exec_charset. | |
528 | ||
f86986bc | 529 | 2005-02-19 Devang Patel <dpatel@apple.com> |
530 | ||
531 | * charset.c (_cpp_convert_input): Check '\r' before inserting | |
532 | '\n' at the end. | |
624d37a6 | 533 | |
9936e07d | 534 | 2005-02-15 Eric Christopher <echristo@redhat.com> |
535 | ||
536 | PR preprocessor/19077 | |
537 | * macro.c (cpp_macro_definition): Move handling of whitespace | |
538 | to PREV_WHITE conditional. Remove overloading of len | |
539 | variable. | |
540 | ||
129a1540 | 541 | 2005-02-14 Kazu Hirata <kazu@cs.umass.edu> |
542 | ||
543 | * directives.c, files.c, init.c, internal.h, macro.c, pch.c, | |
544 | traditional.c: Update copyright. | |
545 | ||
bb30d1f4 | 546 | 2005-02-14 Paolo Bonzini <bonzini@gnu.org> |
547 | ||
548 | PR bootstrap/19818 | |
549 | * configure.ac: Check for declaration of basename and getopt. | |
550 | * config.in: Regenerate. | |
551 | * configure: Regenerate. | |
552 | * internal.h (ustrcspn): New. | |
553 | * macro.c (create_iso_definition): Fix allocation of memory. | |
554 | (padding_token): Add cast to remove const-ness. | |
555 | * pch.c (cpp_read_state): Use ustrcspn. | |
556 | ||
26ec4f15 | 557 | 2005-02-08 Mike Stump <mrs@apple.com> |
558 | ||
559 | * files.c (pchf_adder): Remove. | |
560 | (struct pchf_adder_info): Likewise. | |
561 | (_cpp_save_file_entries): Write out all files so that #import works. | |
562 | ||
0cb78cbd | 563 | 2005-01-23 Joseph S. Myers <joseph@codesourcery.com> |
564 | ||
565 | * configure: Regenerate. | |
566 | ||
d862067c | 567 | 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> |
568 | ||
569 | * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader. | |
570 | ||
457e71e4 | 571 | * include/cpplib.h: Also update copyright years. |
624d37a6 | 572 | |
ba841ef8 | 573 | 2005-01-03 Geoffrey Keating <geoffk@apple.com> |
574 | ||
575 | * files.c (_cpp_find_file): Add files found by search_path_exhausted | |
576 | to the list of all files. | |
577 | ||
f03668bd | 578 | 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net> |
579 | ||
580 | * internal.h: Update references to Cpp lib filenames. | |
581 | * directives.c: Likewise. | |
582 | * init.c: Likewise. | |
583 | * macro.c: Likewise. | |
584 | * traditional.c: Likewise. | |
585 | ||
461ea98d | 586 | 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr> |
587 | ||
588 | PR preprocessor/15167 | |
589 | * files.c (destroy_cpp_file): New function. | |
590 | (should_stack_file): Make a new file if the | |
591 | compared file is still stacked. | |
592 | ||
bd9e37a6 | 593 | 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org> |
594 | ||
624d37a6 | 595 | PR preprocessor/17610 |
bd9e37a6 | 596 | * directives.c (do_include_common): Error out if an empty filename |
597 | is given for #include (or #include_next or #import). | |
598 | ||
fe4dcd90 | 599 | 2004-11-27 Roger Sayle <roger@eyesopen.com> |
600 | Zack Weinberg <zack@codesourcery.com> | |
601 | ||
602 | * internal.h: Replace all uses of uchar with unsigned char. | |
603 | * include/cpp-id-data.h: Likewise. Guard typedef of uchar | |
604 | with !IN_GCC, so uchar is only defined whilst building libcpp. | |
605 | ||
ac7cc2f4 | 606 | 2004-11-24 Kelley Cook <kcook@gcc.gnu.org> |
607 | ||
608 | * aclocal.m4: Regenerate. | |
609 | ||
6e11b263 | 610 | 2004-11-24 Roger Sayle <roger@eyesopen.com> |
611 | ||
612 | PR preprocessor/15824 | |
613 | * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h> | |
614 | directly, instead of the non-existant "system.h" and "ansidecl.h". | |
615 | * configure: Regenerate. | |
616 | ||
68bf2ad9 | 617 | 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com> |
624d37a6 | 618 | Joseph Myers <joseph@codesourcery.com> |
68bf2ad9 | 619 | |
620 | * internal.h (struct lexer_state): Add in_deferred_pragma. | |
621 | * directives.c (struct pragma_entry): Add allow_expansion. | |
622 | (insert_pragma_entry): Take allow_expansion flag. | |
623 | (register_pragma): Likewise. | |
624 | (cpp_register_pragma): Likewise. | |
625 | (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma. | |
626 | (do_pragma): Honor allow_expansion. | |
627 | (cpp_handle_deferred_pragma): Set in_deferred_pragma. | |
628 | * include/cpplib.h (cpp_register_pragma): Update prototype. | |
629 | ||
27559c4e | 630 | 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com> |
624d37a6 | 631 | Mark Mitchell <mark@codesourcery.com> |
27559c4e | 632 | |
633 | * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set | |
634 | need_64bit_hwint=yes. | |
635 | * configure: Regenerate. | |
636 | ||
34ae664d | 637 | 2004-11-09 Joseph S. Myers <joseph@codesourcery.com> |
638 | ||
639 | * Makefile.in ($(PACKAGE).pot): New rule. Depend on | |
640 | po/$(PACKAGE).pot. | |
641 | (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword | |
642 | arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. | |
643 | Remove local srcdir path from generated file. | |
644 | ||
39b83bdb | 645 | 2004-11-04 Zack Weinberg <zack@codesourcery.com> |
624d37a6 | 646 | Gerald Pfeifer <gerald@pfeifer.com> |
39b83bdb | 647 | |
648 | * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H | |
649 | as well. | |
650 | ||
a095c1b5 | 651 | 2004-10-27 Zack Weinberg <zack@codesourcery.com> |
652 | ||
653 | PR 18075 | |
654 | * directives.c (do_pragma): Do not defer pragmas which are unknown. | |
655 | (cpp_handle_deferred_pragma): Add cast to silence warning. | |
656 | ||
700b0d81 | 657 | 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk> |
658 | ||
659 | * errors.c (_cpp_begin_message): Print "error: " for errors. | |
660 | ||
fbe83ac1 | 661 | 2004-10-10 Andreas Jaeger <aj@suse.de> |
662 | ||
663 | * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath. | |
664 | * Makefile.in (makedepend.o): Add dependency on mkdeps.h. | |
665 | ||
09f10c94 | 666 | 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu> |
667 | ||
668 | * pch.c (cpp_write_pch_state): Remove variable z as it is not | |
669 | used. | |
670 | (cpp_read_state): Remove unused variables, m, d and mac_count. | |
671 | ||
a8b2a8d5 | 672 | 2004-09-29 Per Bothner <per@bothner.com> |
673 | ||
674 | * directives.c (cpp_handle_deferred_pragma): Save, clear and restore | |
675 | cb.line_change. Otherwise do_pragma will call the line_change | |
676 | call-back with a meaningless line number. | |
677 | ||
21164c01 | 678 | 2004-09-24 Zack Weinberg <zack@codesourcery.com> |
679 | ||
680 | * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to | |
681 | programs cluster. Use ACX_PROG_CC_WARNING_OPTS, | |
682 | ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS. | |
683 | * aclocal.m4, configure: Regenerate. | |
684 | * init.c: Include localedir.h. | |
685 | * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables. | |
686 | (DEFS): Delete. | |
687 | (.c.o): Use $(ALL_CFLAGS). | |
688 | (localedir.h, localedir.hs): New rules. | |
689 | (clean): Use rm -rf to remove directories. | |
690 | (distclean): Also delete localedir.h and localedir.hs. | |
691 | (init.o): Update dependencies. | |
692 | ||
986086aa | 693 | 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> |
694 | ||
695 | * Makefile.in (aclocal.m4): Update dependencies. | |
696 | * configure.ac (AC_CONFIG_MACRO_DIR): New. | |
697 | * aclocal.m4, configure: Regenerate. | |
698 | ||
e9cc3617 | 699 | 2004-09-17 Zack Weinberg <zack@codesourcery.com> |
700 | ||
0097f6a2 | 701 | * charset.c (_cpp_destroy_iconv, emit_numeric_escape) |
702 | (_cpp_convert_input, _cpp_default_encoding): Add comments. | |
703 | Some other comments in this file also tweaked. | |
704 | ||
e9cc3617 | 705 | * directives.c (do_pragma): Save current buffer position |
706 | before lexing the pragma keywords; don't call | |
707 | _cpp_backup_tokens in the defer_pragmas case. | |
708 | ||
9832c977 | 709 | 2004-09-15 Per Bothner <per@bothner.com> |
710 | ||
711 | * include/line-map.h (line_map_start): Add parameter names so | |
712 | preceding comment makes sense. | |
713 | (linemap_add): Remove from comment mention of non-existing parameter. | |
714 | ||
d6d3c909 | 715 | 2004-09-09 Matt Austern <austern@apple.com> |
716 | Zack Weinberg <zack@codesourcery.com> | |
717 | ||
718 | * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_ | |
719 | prefixes throughout. Add entry for PRAGMA. Remove | |
720 | unnecessary "= 0" from EQ. | |
721 | (enum cpp_ttype): Adjust OP and TK definitions to restore | |
722 | prefixes, via token-paste. | |
723 | (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP): | |
724 | Change from #defines to additional cpp_ttype enumerators. | |
725 | (struct cpp_options): Add defer_pragmas. | |
726 | (cpp_handle_deferred_pragma): Prototype new interface. | |
727 | ||
728 | * internal.h (struct cpp_reader): Add directive_result. | |
729 | * directives.c (struct pragma_entry): Add is_internal field; | |
730 | give boolean fields type bool. | |
731 | (start_directive): Initialize pfile->directive_result.type. | |
732 | (_cpp_do__Pragma): Likewise. | |
733 | (run_directive): Do not crash if pfile->buffer->prev is NULL. | |
734 | (insert_pragma_entry): Add 'internal' argument; set new->is_internal | |
735 | from it. | |
736 | (register_pragma): New static function, bulk of former | |
737 | cpp_register_pragma here; add 'internal' argument, pass along | |
738 | to insert_pragma_entry. | |
739 | (cpp_register_pragma): Now a wrapper around register_pragma which | |
740 | always passes false for 'internal' argument. | |
741 | (_cpp_init_internal_pragmas): Call register_pragma directly, passing | |
742 | true for 'internal'. | |
743 | (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't | |
744 | an internal pragma, save text till the end of the line as a CPP_PRAGMA | |
745 | token instead of executing the pragma. | |
746 | (cpp_handle_deferred_pragma): New interface. | |
747 | * lex.c (token_spellings): Adjust OP and TK definitions to | |
748 | match changes to cpplib.h. | |
749 | (_cpp_lex_token): Check for a directive-result token and | |
750 | return it if present. | |
751 | (cpp_token_val_index): Handle CPP_PRAGMA. | |
752 | * macro.c (cpp_builtin_macro_text): Correct comment. | |
753 | (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma. | |
754 | ||
735a9bc4 | 755 | 2004-09-06 Serge Belyshev <belyshev@lubercy.com> |
756 | ||
757 | PR preprocessor/14699 | |
758 | * symtab.c (ht_dump_statistics): Change type of sum_of_squares | |
759 | from size_t to double. | |
760 | ||
25696d3f | 761 | 2004-08-28 Andreas Schwab <schwab@suse.de> |
762 | Andreas Jaeger <aj@suse.de> | |
763 | ||
764 | * configure.ac: Set PACKAGE correctly. | |
765 | * configure: Regenerated. | |
766 | ||
99439f5b | 767 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
768 | ||
769 | * Makefile.in: Add back top_builddir. | |
770 | ||
a668be26 | 771 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
772 | ||
773 | * configure.ac: Replace Automake macro invocations | |
774 | with manual Autoconf checks and substitutions. | |
775 | * configure: Regenerate. | |
776 | * aclocal.m4: Regenerate. | |
777 | * config.in: Regenerate. | |
778 | * Makefile.am: Removed. | |
779 | * Makefile.in: Heavy simplification and reorganization. | |
780 | ||
30e9913f | 781 | 2004-08-09 Mark Mitchell <mark@codesourcery.com> |
782 | ||
783 | * configure.ac (arm*-*-eabi*): New target. | |
784 | (arm*-*-symbianelf*): Likewise. | |
785 | * configure: Regenerated. | |
786 | ||
3b298764 | 787 | 2004-07-24 Bernardo Innocenti <bernie@develer.com> |
788 | ||
789 | * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. | |
790 | * directives.c: Use XNEW-family macros from libiberty. | |
791 | * lex.c: Likewise. | |
792 | * macro.c: Likewise. | |
793 | * cpplib.h (cpp_deps_style): Export enum with name. | |
794 | ||
d6d3c909 | 795 | 2004-07-23 Matthias Klose <doko@debian.org> |
3b298764 | 796 | |
d6d3c909 | 797 | * init.c (init_library): Use PACKAGE for the text domain. |
1ed7d058 | 798 | |
821fa045 | 799 | 2004-07-16 Andris Pavenis <pavenis@latnet.lv> |
800 | ||
801 | PR preprocessor/16366 | |
802 | * internal.h (struct cpp_reader): New field dir_hash. | |
803 | * files.c (make_cpp_dir): Use dir_hash, not file_hash. | |
804 | (_cpp_init_files, _cpp_cleanup_files): Update for new field. | |
805 | ||
d80efa72 | 806 | 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk> |
807 | ||
808 | PR preprocessor/16192 | |
809 | PR preprocessor/15913 | |
810 | PR preprocessor/15572 | |
811 | * expr.c (_cpp_parse_expr): Handle remaining cases where an | |
812 | expression is missing. | |
813 | * init.c (post_options): Traditional cpp doesn't do // comments. | |
814 | ||
ed000086 | 815 | 2004-06-30 Per Bothner <per@bothner.com> |
816 | ||
817 | * include/line-map.h (fileline): Remove old typedef. | |
818 | * internal.h (struct cpp_reader): Use source_location typedef instead. | |
819 | ||
dcb9d064 | 820 | 2004-06-26 Zack Weinberg <zack@codesourcery.com> |
821 | ||
822 | Partially revert patch of 2004-06-05. | |
823 | * files.c (search_cache): Remove pfile argument. Don't check | |
824 | for file that would be found by "" or <> search here... | |
825 | (_cpp_find_file): ...do it here, before calling find_file_in_dir. | |
826 | Do not apply directory-of-current-file correction to files | |
827 | found by this check. Rearrange code slightly. | |
828 | ||
d718b525 | 829 | 2004-06-21 Geoffrey Keating <geoffk@apple.com> |
830 | ||
831 | * files.c (should_stack_file): Correct swapped parameters to call | |
832 | to cb.read_pch. | |
833 | * pch.c (cpp_valid_state): Handle -fpreprocessed. | |
834 | ||
79b68529 | 835 | 2004-06-15 Paolo Bonzini <bonzini@gnu.org> |
836 | ||
837 | * Makefile.in: Regenerate with automake 1.8.5. | |
838 | * aclocal.m4: Likewise. | |
839 | * configure: Regenerate. | |
840 | ||
151899c5 | 841 | 2004-06-11 Zack Weinberg <zack@codesourcery.com> |
842 | ||
843 | * configure.ac: Don't invoke ACX_HEADER_STDBOOL. | |
844 | * configure, config.in: Regenerate. | |
845 | * system.h: Unconditionally define bool as unsigned char, | |
846 | BOOL_BITFIELD as unsigned int. | |
847 | * .cvsignore: New file. | |
848 | ||
c39ed964 | 849 | 2004-06-09 Geoffrey Keating <geoffk@apple.com> |
850 | ||
851 | * traditional.c (push_replacement_text): Set macro->traditional. | |
852 | (save_replacement_text): Likewise. | |
853 | * pch.c (cpp_write_pch_state): Don't write list of defined macros. | |
854 | (struct save_macro_item): Delete. | |
855 | (struct save_macro_data): Use a character array not the previous | |
856 | structured format. | |
857 | (save_macros): Save macro as text not as internal structures. | |
858 | (cpp_prepare_state): Update for changes to save_macro_data. | |
859 | (cpp_read_state): Don't read macros defined in PCH. Restore | |
c84ca916 | 860 | -D macros as text. |
c39ed964 | 861 | * macro.c (create_iso_definition): Honour alloc_subobject. |
862 | Clear traditional flag. | |
863 | (_cpp_create_definition): Honour alloc_subobject. | |
864 | * lex.c (cpp_token_val_index): New. | |
865 | * internal.h: Include cpp-id-data.h. | |
866 | (uchar): Move definition to cpp-id-data.h. | |
867 | (U): Likewise. | |
868 | (cpp_macro): Likewise. | |
869 | * directives.c (struct answer): Move to cpp-id-data.h. | |
870 | (do_assert): Honour alloc_subobject. | |
c84ca916 | 871 | |
872 | * include/symtab.h (struct ht): Add field 'alloc_subobject'. | |
873 | * include/cpplib.h (struct cpp_string): Add GTY marker. | |
874 | (enum cpp_token_fld_kind): New. | |
875 | (struct cpp_token): Add GTY markers. | |
876 | (cpp_token_val_index): Prototype. | |
877 | (CPP_HASHNODE_VALUE_IDX): New. | |
878 | (struct cpp_hashnode): Don't skip fields of 'value' when marking. | |
879 | * include/cpp-id-data.h: New file. | |
c39ed964 | 880 | |
dd6e5561 | 881 | 2004-06-09 Paolo Bonzini <bonzini@gnu.org> |
882 | ||
883 | * Makefile.am (all-local): New. | |
884 | * Makefile.in: Regenerate. | |
885 | ||
8af0c78d | 886 | 2004-06-06 Roger Sayle <roger@eyesopen.com> |
887 | ||
888 | * Makefile.am (LIBICONV): Declare. | |
889 | (makedepend_LDADD): Use LIBICONV. | |
890 | * Makefile.in: Regenerate. | |
891 | ||
30302733 | 892 | 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu> |
893 | ||
894 | * Makefile.am (LIBINTL): Declare | |
895 | (makedepend_LDADD): Use LIBINTL. | |
896 | * Makefile.in: Regenerate. | |
897 | ||
3eb3f293 | 898 | 2004-06-05 Zack Weinberg <zack@codesourcery.com> |
899 | ||
900 | * Makefile.am: Add makedepend. | |
901 | * Makefile.in, aclocal.m4: Regenerate. | |
902 | * charset.c: Insert a space to avoid a warning. | |
903 | * directives.c: Include mkdeps.h. | |
904 | (_cpp_handle_directive): Reenable macro expander if appropriate. | |
905 | (undefine_macros): Inline body of _cpp_free_definition for speed. | |
906 | Do not call undef callback or _cpp_warn_if_unused_macro. | |
907 | (cpp_get_deps): New interface. | |
908 | * files.c (search_cache): Add pfile argument. Check for file | |
909 | that would be found by "" or <> search here... | |
910 | (_cpp_find_file): ...not here. Correct recorded start_dir of | |
911 | files found by directory-of-current-file search that would be | |
912 | found by "" or <> search. | |
913 | * init.c (cpp_add_dependency_target): Delete. | |
914 | * internal.h (struct lexer_state): Add discarding_output flag. | |
915 | * lex.c (lex_identifier): Compute hash function while scanning. | |
916 | * macro.c (cpp_scan_nooutput): Disable macro expansion outside | |
917 | directives. | |
918 | * makedepend.c: New file. | |
919 | * mkdeps.c (struct deps): Add vpath vector. | |
920 | (apply_vpath, deps_add_vpath): New function. | |
921 | (deps_free): Free vpath vector. | |
922 | (deps_add_dep, deps_add_target): Use apply_vpath. | |
923 | * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. | |
924 | (ht_lookup_with_hash): New function. | |
925 | * cpplib.h, mkdeps.h: Update prototypes. | |
926 | * symtab.h: Update prototypes. | |
927 | (HT_HASHSTEP, HT_FINISH): New macros. | |
928 | ||
8ed01400 | 929 | 2004-05-29 Geoffrey Keating <geoffk@apple.com> |
930 | ||
931 | * symtab.c (ht_create): Set entries_owned. | |
932 | (ht_destroy): Honour entries_owned. | |
933 | (ht_expand): Likewise. | |
934 | (ht_load): New. | |
c84ca916 | 935 | * include/symtab.h (struct ht): New field 'entries_owned' |
936 | (ht_load): New prototype. | |
8ed01400 | 937 | |
347a3ab5 | 938 | 2004-05-26 Paolo Bonzini <bonzini@gnu.org> |
939 | ||
940 | PR bootstrap/15651 | |
941 | * configure.ac: Fix m4 quoting when picking | |
942 | the size of HOST_WIDE_INT. | |
943 | * configure: Regenerate. | |
944 | ||
fc231f28 | 945 | 2004-05-25 Paolo Bonzini <bonzini@gnu.org> |
946 | ||
947 | * Makefile.am: the correct directory for | |
948 | gettext include files is given by @INCINTL@. | |
949 | * Makefile.in: Regenerate. | |
950 | ||
babfbd63 | 951 | 2004-05-24 Paolo Bonzini <bonzini@gnu.org> |
952 | ||
953 | * system.h [!ENABLE_NLS]: dgettext takes two | |
954 | parameters. | |
955 | ||
d856c8a6 | 956 | 2004-05-23 Paolo Bonzini <bonzini@gnu.org> |
957 | ||
958 | Moved libcpp from the gcc subdirectory to the toplevel. | |
959 | * Makefile.am: New file. | |
960 | * Makefile.in: Regenerate. | |
961 | * configure.ac: New file. | |
962 | * configure: Regenerate. | |
963 | * config.in: Regenerate. | |
964 | * charset.c: Moved from gcc/cppcharset.c. Add note about | |
965 | brokenness of input charset detection. Adjust for change | |
966 | in name of cppucnid.h. | |
967 | * errors.c: Moved from gcc/cpperror.c. Do not include intl.h. | |
968 | * expr.c: Moved from gcc/cppexp.c. | |
969 | * files.c: Moved from gcc/cppfiles.c. Do not include intl.h. | |
970 | Remove #define of O_BINARY, it is in system.h. | |
971 | * identifiers.c: Moved from gcc/cpphash.c. | |
972 | * internal.h: Moved from gcc/cpphash.h. Change header | |
973 | guard name. All other files adjusted to match name change. | |
974 | * init.c: Moved from gcc/cppinit.c. | |
975 | (init_library) [ENABLE_NLS]: Call bindtextdomain. | |
976 | * lex.c: Moved from gcc/cpplex.c. | |
977 | * directives.c: Moved from gcc/cpplib.c. | |
978 | * macro.c: Moved from gcc/cppmacro.c. | |
979 | * pch.c: Moved from gcc/cpppch.c. Do not include intl.h. | |
980 | * traditional.c: Moved from gcc/cpptrad.c. | |
981 | * ucnid.h: Moved from gcc/cppucnid.h. Change header | |
982 | guard name. | |
983 | * ucnid.pl: Moved from gcc/cppucnid.pl. | |
984 | * ucnid.tab: Moved from gcc/cppucnid.tab. Change header | |
985 | guard name. | |
986 | * symtab.c: Moved from gcc/hashtable.c. | |
987 | * line-map.c: Moved from gcc. Do not include intl.h. | |
988 | * mkdeps.c: Moved from gcc. | |
989 | * system.h: New file. | |
c84ca916 | 990 | * include/cpplib.h: Moved from gcc. Change header guard name. |
991 | * include/line-map.h: Moved from gcc. Change header guard name. | |
992 | * include/mkdeps.h: Moved from gcc. Change header guard name. | |
993 | * include/symtab.h: Moved from gcc/hashtable.h. Change header | |
994 | guard name. |