]>
Commit | Line | Data |
---|---|---|
077a3c99 | 1 | 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2 | ||
3 | * configure.ac (libcpp_UNLOCKED_FUNCS): New. | |
4 | (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS. | |
5 | * system.h (putchar, getc, getchar, clearerr, feof, fileno, | |
6 | fflush, fgetc, fgets, ferror, fread): Redefine to the associated | |
7 | _unlocked function. | |
8 | (fwrite_unlocked): Fix prototype. | |
9 | ||
10 | * configure, config.in: Regenerate. | |
11 | ||
99617355 | 12 | 2005-04-05 Jakub Jelinek <jakub@redhat.com> |
13 | ||
14 | PR preprocessor/19475 | |
15 | * macro.c (create_iso_definition): For < ISO C99, don't | |
16 | pedwarn if there is no whitespace between macro name and its | |
17 | replacement, but the replacement starts with a basic character | |
18 | set character. | |
19 | ||
3827dee5 | 20 | 2005-03-28 Andreas Jaeger <aj@suse.de> |
21 | ||
22 | * lex.c (warn_about_normalization): Cast field width to int to | |
23 | avoid warning. | |
24 | ||
b8273627 | 25 | 2005-03-19 Joseph S. Myers <joseph@codesourcery.com> |
26 | ||
27 | * configure.ac: Consistently use solaris2.1[0-9]* instead of | |
28 | solaris2.1[0-9]. | |
29 | * configure: Regenerate. | |
30 | ||
bc65f24f | 31 | 2005-03-15 Geoffrey Keating <geoffk@apple.com> |
32 | ||
33 | * charset.c (_cpp_valid_ucn): In identifiers, reject a partial | |
34 | UCN rather than printing an error. | |
35 | ||
bce47149 | 36 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> |
37 | ||
4e9d1e6d | 38 | * lex.c (forms_identifier_p): Disable UCNs in C89 mode. |
39 | ||
40 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> | |
41 | ||
bce47149 | 42 | * init.c (cpp_create_reader): Default warn_normalize to normalized_C. |
43 | * charset.c: Update for new format of ucnid.h. | |
44 | (ucn_valid_in_identifier): Update for new format of ucnid.h. | |
45 | Add NST parameter, and update it; update callers. | |
46 | (cpp_valid_ucn): Add NST parameter, update callers. Replace abort | |
47 | with cpp_error. | |
48 | (convert_ucn): Pass normalize_state to cpp_valid_ucn. | |
49 | * internal.h (struct normalize_state): New. | |
50 | (INITIAL_NORMALIZE_STATE): New. | |
51 | (NORMALIZE_STATE_RESULT): New. | |
52 | (NORMALIZE_STATE_UPDATE_IDNUM): New. | |
53 | (_cpp_valid_ucn): New. | |
54 | * lex.c (warn_about_normalization): New. | |
55 | (forms_identifier_p): Add normalize_state parameter, update callers. | |
56 | (lex_identifier): Add normalize_state parameter, update callers. Keep | |
57 | the state current. | |
58 | (lex_number): Likewise. | |
59 | (_cpp_lex_direct): Pass normalize_state to subroutines. Check | |
60 | it with warn_about_normalization. | |
61 | * makeucnid.c: New. | |
62 | * ucnid.h: Replace. | |
63 | * ucnid.pl: Remove. | |
64 | * ucnid.tab: Make appropriate for input to makeucnid.c. Remove | |
65 | comments about obsolete version of C++. | |
66 | * include/cpplib.h (enum cpp_normalize_level): New. | |
67 | (struct cpp_options): Add warn_normalize field. | |
68 | ||
bb1fa6bb | 69 | 2005-03-11 Geoffrey Keating <geoffk@apple.com> |
70 | ||
71 | * directives.c (glue_header_name): Update call to cpp_spell_token. | |
72 | * internal.h (_cpp_interpret_identifier): New. | |
73 | * charset.c (_cpp_interpret_identifier): New. | |
74 | (_cpp_valid_ucn): Allow UCN version of '$'. | |
75 | * lex.c (lex_identifier): Add extra parameter to indicate if initial | |
76 | character was '$' or '\'. Support identifiers with UCNs. | |
77 | (forms_identifier_p): Allow UCNs. | |
78 | (_cpp_lex_direct): Pass extra parameter to lex_identifier. | |
79 | (utf8_to_ucn): New. | |
80 | (cpp_spell_token): Add FORSTRING parameter. Use it. | |
81 | (cpp_token_as_text): Update call to cpp_spell_token. | |
82 | (cpp_output_token): Write UCNs back out. | |
83 | (stringify_arg): Update call to cpp_spell_token. | |
84 | (paste_tokens): Likewise. | |
85 | (cpp_macro_definition): Likewise. | |
86 | * macro.c (stringify_arg): Likewise. | |
87 | (paste_tokens): Likewise. | |
88 | (cpp_macro_definition): Likewise. | |
89 | * include/cpplib.h: Add parameter to cpp_spell_token. | |
90 | ||
960391da | 91 | 2005-03-04 Jakub Jelinek <jakub@redhat.com> |
92 | ||
93 | PR bootstrap/20282 | |
94 | PR bootstrap/20305 | |
95 | * macro.c (replace_args, cpp_get_token): Copy whole | |
96 | cpp_token_u instead of just cpp_string field from it. | |
97 | ||
b0d0794d | 98 | 2005-02-28 Devang Patel <dpatel@apple.com> |
99 | ||
100 | * directives.c (do_line): Save sysp early before line table is | |
101 | realloc'ed. | |
102 | ||
624d37a6 | 103 | 2005-02-20 Zack Weinberg <zack@codesourcery.com> |
104 | ||
105 | PR 18785 | |
106 | * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro. | |
107 | (cpp_host_to_exec_charset): New function. | |
108 | * include/cpplib.h: Declare cpp_host_to_exec_charset. | |
109 | ||
f86986bc | 110 | 2005-02-19 Devang Patel <dpatel@apple.com> |
111 | ||
112 | * charset.c (_cpp_convert_input): Check '\r' before inserting | |
113 | '\n' at the end. | |
624d37a6 | 114 | |
9936e07d | 115 | 2005-02-15 Eric Christopher <echristo@redhat.com> |
116 | ||
117 | PR preprocessor/19077 | |
118 | * macro.c (cpp_macro_definition): Move handling of whitespace | |
119 | to PREV_WHITE conditional. Remove overloading of len | |
120 | variable. | |
121 | ||
129a1540 | 122 | 2005-02-14 Kazu Hirata <kazu@cs.umass.edu> |
123 | ||
124 | * directives.c, files.c, init.c, internal.h, macro.c, pch.c, | |
125 | traditional.c: Update copyright. | |
126 | ||
bb30d1f4 | 127 | 2005-02-14 Paolo Bonzini <bonzini@gnu.org> |
128 | ||
129 | PR bootstrap/19818 | |
130 | * configure.ac: Check for declaration of basename and getopt. | |
131 | * config.in: Regenerate. | |
132 | * configure: Regenerate. | |
133 | * internal.h (ustrcspn): New. | |
134 | * macro.c (create_iso_definition): Fix allocation of memory. | |
135 | (padding_token): Add cast to remove const-ness. | |
136 | * pch.c (cpp_read_state): Use ustrcspn. | |
137 | ||
26ec4f15 | 138 | 2005-02-08 Mike Stump <mrs@apple.com> |
139 | ||
140 | * files.c (pchf_adder): Remove. | |
141 | (struct pchf_adder_info): Likewise. | |
142 | (_cpp_save_file_entries): Write out all files so that #import works. | |
143 | ||
0cb78cbd | 144 | 2005-01-23 Joseph S. Myers <joseph@codesourcery.com> |
145 | ||
146 | * configure: Regenerate. | |
147 | ||
d862067c | 148 | 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> |
149 | ||
150 | * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader. | |
151 | ||
457e71e4 | 152 | * include/cpplib.h: Also update copyright years. |
624d37a6 | 153 | |
ba841ef8 | 154 | 2005-01-03 Geoffrey Keating <geoffk@apple.com> |
155 | ||
156 | * files.c (_cpp_find_file): Add files found by search_path_exhausted | |
157 | to the list of all files. | |
158 | ||
f03668bd | 159 | 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net> |
160 | ||
161 | * internal.h: Update references to Cpp lib filenames. | |
162 | * directives.c: Likewise. | |
163 | * init.c: Likewise. | |
164 | * macro.c: Likewise. | |
165 | * traditional.c: Likewise. | |
166 | ||
461ea98d | 167 | 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr> |
168 | ||
169 | PR preprocessor/15167 | |
170 | * files.c (destroy_cpp_file): New function. | |
171 | (should_stack_file): Make a new file if the | |
172 | compared file is still stacked. | |
173 | ||
bd9e37a6 | 174 | 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org> |
175 | ||
624d37a6 | 176 | PR preprocessor/17610 |
bd9e37a6 | 177 | * directives.c (do_include_common): Error out if an empty filename |
178 | is given for #include (or #include_next or #import). | |
179 | ||
fe4dcd90 | 180 | 2004-11-27 Roger Sayle <roger@eyesopen.com> |
181 | Zack Weinberg <zack@codesourcery.com> | |
182 | ||
183 | * internal.h: Replace all uses of uchar with unsigned char. | |
184 | * include/cpp-id-data.h: Likewise. Guard typedef of uchar | |
185 | with !IN_GCC, so uchar is only defined whilst building libcpp. | |
186 | ||
ac7cc2f4 | 187 | 2004-11-24 Kelley Cook <kcook@gcc.gnu.org> |
188 | ||
189 | * aclocal.m4: Regenerate. | |
190 | ||
6e11b263 | 191 | 2004-11-24 Roger Sayle <roger@eyesopen.com> |
192 | ||
193 | PR preprocessor/15824 | |
194 | * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h> | |
195 | directly, instead of the non-existant "system.h" and "ansidecl.h". | |
196 | * configure: Regenerate. | |
197 | ||
68bf2ad9 | 198 | 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com> |
624d37a6 | 199 | Joseph Myers <joseph@codesourcery.com> |
68bf2ad9 | 200 | |
201 | * internal.h (struct lexer_state): Add in_deferred_pragma. | |
202 | * directives.c (struct pragma_entry): Add allow_expansion. | |
203 | (insert_pragma_entry): Take allow_expansion flag. | |
204 | (register_pragma): Likewise. | |
205 | (cpp_register_pragma): Likewise. | |
206 | (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma. | |
207 | (do_pragma): Honor allow_expansion. | |
208 | (cpp_handle_deferred_pragma): Set in_deferred_pragma. | |
209 | * include/cpplib.h (cpp_register_pragma): Update prototype. | |
210 | ||
27559c4e | 211 | 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com> |
624d37a6 | 212 | Mark Mitchell <mark@codesourcery.com> |
27559c4e | 213 | |
214 | * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set | |
215 | need_64bit_hwint=yes. | |
216 | * configure: Regenerate. | |
217 | ||
34ae664d | 218 | 2004-11-09 Joseph S. Myers <joseph@codesourcery.com> |
219 | ||
220 | * Makefile.in ($(PACKAGE).pot): New rule. Depend on | |
221 | po/$(PACKAGE).pot. | |
222 | (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword | |
223 | arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. | |
224 | Remove local srcdir path from generated file. | |
225 | ||
39b83bdb | 226 | 2004-11-04 Zack Weinberg <zack@codesourcery.com> |
624d37a6 | 227 | Gerald Pfeifer <gerald@pfeifer.com> |
39b83bdb | 228 | |
229 | * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H | |
230 | as well. | |
231 | ||
a095c1b5 | 232 | 2004-10-27 Zack Weinberg <zack@codesourcery.com> |
233 | ||
234 | PR 18075 | |
235 | * directives.c (do_pragma): Do not defer pragmas which are unknown. | |
236 | (cpp_handle_deferred_pragma): Add cast to silence warning. | |
237 | ||
700b0d81 | 238 | 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk> |
239 | ||
240 | * errors.c (_cpp_begin_message): Print "error: " for errors. | |
241 | ||
fbe83ac1 | 242 | 2004-10-10 Andreas Jaeger <aj@suse.de> |
243 | ||
244 | * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath. | |
245 | * Makefile.in (makedepend.o): Add dependency on mkdeps.h. | |
246 | ||
09f10c94 | 247 | 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu> |
248 | ||
249 | * pch.c (cpp_write_pch_state): Remove variable z as it is not | |
250 | used. | |
251 | (cpp_read_state): Remove unused variables, m, d and mac_count. | |
252 | ||
a8b2a8d5 | 253 | 2004-09-29 Per Bothner <per@bothner.com> |
254 | ||
255 | * directives.c (cpp_handle_deferred_pragma): Save, clear and restore | |
256 | cb.line_change. Otherwise do_pragma will call the line_change | |
257 | call-back with a meaningless line number. | |
258 | ||
21164c01 | 259 | 2004-09-24 Zack Weinberg <zack@codesourcery.com> |
260 | ||
261 | * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to | |
262 | programs cluster. Use ACX_PROG_CC_WARNING_OPTS, | |
263 | ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS. | |
264 | * aclocal.m4, configure: Regenerate. | |
265 | * init.c: Include localedir.h. | |
266 | * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables. | |
267 | (DEFS): Delete. | |
268 | (.c.o): Use $(ALL_CFLAGS). | |
269 | (localedir.h, localedir.hs): New rules. | |
270 | (clean): Use rm -rf to remove directories. | |
271 | (distclean): Also delete localedir.h and localedir.hs. | |
272 | (init.o): Update dependencies. | |
273 | ||
986086aa | 274 | 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> |
275 | ||
276 | * Makefile.in (aclocal.m4): Update dependencies. | |
277 | * configure.ac (AC_CONFIG_MACRO_DIR): New. | |
278 | * aclocal.m4, configure: Regenerate. | |
279 | ||
e9cc3617 | 280 | 2004-09-17 Zack Weinberg <zack@codesourcery.com> |
281 | ||
0097f6a2 | 282 | * charset.c (_cpp_destroy_iconv, emit_numeric_escape) |
283 | (_cpp_convert_input, _cpp_default_encoding): Add comments. | |
284 | Some other comments in this file also tweaked. | |
285 | ||
e9cc3617 | 286 | * directives.c (do_pragma): Save current buffer position |
287 | before lexing the pragma keywords; don't call | |
288 | _cpp_backup_tokens in the defer_pragmas case. | |
289 | ||
9832c977 | 290 | 2004-09-15 Per Bothner <per@bothner.com> |
291 | ||
292 | * include/line-map.h (line_map_start): Add parameter names so | |
293 | preceding comment makes sense. | |
294 | (linemap_add): Remove from comment mention of non-existing parameter. | |
295 | ||
d6d3c909 | 296 | 2004-09-09 Matt Austern <austern@apple.com> |
297 | Zack Weinberg <zack@codesourcery.com> | |
298 | ||
299 | * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_ | |
300 | prefixes throughout. Add entry for PRAGMA. Remove | |
301 | unnecessary "= 0" from EQ. | |
302 | (enum cpp_ttype): Adjust OP and TK definitions to restore | |
303 | prefixes, via token-paste. | |
304 | (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP): | |
305 | Change from #defines to additional cpp_ttype enumerators. | |
306 | (struct cpp_options): Add defer_pragmas. | |
307 | (cpp_handle_deferred_pragma): Prototype new interface. | |
308 | ||
309 | * internal.h (struct cpp_reader): Add directive_result. | |
310 | * directives.c (struct pragma_entry): Add is_internal field; | |
311 | give boolean fields type bool. | |
312 | (start_directive): Initialize pfile->directive_result.type. | |
313 | (_cpp_do__Pragma): Likewise. | |
314 | (run_directive): Do not crash if pfile->buffer->prev is NULL. | |
315 | (insert_pragma_entry): Add 'internal' argument; set new->is_internal | |
316 | from it. | |
317 | (register_pragma): New static function, bulk of former | |
318 | cpp_register_pragma here; add 'internal' argument, pass along | |
319 | to insert_pragma_entry. | |
320 | (cpp_register_pragma): Now a wrapper around register_pragma which | |
321 | always passes false for 'internal' argument. | |
322 | (_cpp_init_internal_pragmas): Call register_pragma directly, passing | |
323 | true for 'internal'. | |
324 | (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't | |
325 | an internal pragma, save text till the end of the line as a CPP_PRAGMA | |
326 | token instead of executing the pragma. | |
327 | (cpp_handle_deferred_pragma): New interface. | |
328 | * lex.c (token_spellings): Adjust OP and TK definitions to | |
329 | match changes to cpplib.h. | |
330 | (_cpp_lex_token): Check for a directive-result token and | |
331 | return it if present. | |
332 | (cpp_token_val_index): Handle CPP_PRAGMA. | |
333 | * macro.c (cpp_builtin_macro_text): Correct comment. | |
334 | (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma. | |
335 | ||
735a9bc4 | 336 | 2004-09-06 Serge Belyshev <belyshev@lubercy.com> |
337 | ||
338 | PR preprocessor/14699 | |
339 | * symtab.c (ht_dump_statistics): Change type of sum_of_squares | |
340 | from size_t to double. | |
341 | ||
25696d3f | 342 | 2004-08-28 Andreas Schwab <schwab@suse.de> |
343 | Andreas Jaeger <aj@suse.de> | |
344 | ||
345 | * configure.ac: Set PACKAGE correctly. | |
346 | * configure: Regenerated. | |
347 | ||
99439f5b | 348 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
349 | ||
350 | * Makefile.in: Add back top_builddir. | |
351 | ||
a668be26 | 352 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
353 | ||
354 | * configure.ac: Replace Automake macro invocations | |
355 | with manual Autoconf checks and substitutions. | |
356 | * configure: Regenerate. | |
357 | * aclocal.m4: Regenerate. | |
358 | * config.in: Regenerate. | |
359 | * Makefile.am: Removed. | |
360 | * Makefile.in: Heavy simplification and reorganization. | |
361 | ||
30e9913f | 362 | 2004-08-09 Mark Mitchell <mark@codesourcery.com> |
363 | ||
364 | * configure.ac (arm*-*-eabi*): New target. | |
365 | (arm*-*-symbianelf*): Likewise. | |
366 | * configure: Regenerated. | |
367 | ||
3b298764 | 368 | 2004-07-24 Bernardo Innocenti <bernie@develer.com> |
369 | ||
370 | * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. | |
371 | * directives.c: Use XNEW-family macros from libiberty. | |
372 | * lex.c: Likewise. | |
373 | * macro.c: Likewise. | |
374 | * cpplib.h (cpp_deps_style): Export enum with name. | |
375 | ||
d6d3c909 | 376 | 2004-07-23 Matthias Klose <doko@debian.org> |
3b298764 | 377 | |
d6d3c909 | 378 | * init.c (init_library): Use PACKAGE for the text domain. |
1ed7d058 | 379 | |
821fa045 | 380 | 2004-07-16 Andris Pavenis <pavenis@latnet.lv> |
381 | ||
382 | PR preprocessor/16366 | |
383 | * internal.h (struct cpp_reader): New field dir_hash. | |
384 | * files.c (make_cpp_dir): Use dir_hash, not file_hash. | |
385 | (_cpp_init_files, _cpp_cleanup_files): Update for new field. | |
386 | ||
d80efa72 | 387 | 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk> |
388 | ||
389 | PR preprocessor/16192 | |
390 | PR preprocessor/15913 | |
391 | PR preprocessor/15572 | |
392 | * expr.c (_cpp_parse_expr): Handle remaining cases where an | |
393 | expression is missing. | |
394 | * init.c (post_options): Traditional cpp doesn't do // comments. | |
395 | ||
ed000086 | 396 | 2004-06-30 Per Bothner <per@bothner.com> |
397 | ||
398 | * include/line-map.h (fileline): Remove old typedef. | |
399 | * internal.h (struct cpp_reader): Use source_location typedef instead. | |
400 | ||
dcb9d064 | 401 | 2004-06-26 Zack Weinberg <zack@codesourcery.com> |
402 | ||
403 | Partially revert patch of 2004-06-05. | |
404 | * files.c (search_cache): Remove pfile argument. Don't check | |
405 | for file that would be found by "" or <> search here... | |
406 | (_cpp_find_file): ...do it here, before calling find_file_in_dir. | |
407 | Do not apply directory-of-current-file correction to files | |
408 | found by this check. Rearrange code slightly. | |
409 | ||
d718b525 | 410 | 2004-06-21 Geoffrey Keating <geoffk@apple.com> |
411 | ||
412 | * files.c (should_stack_file): Correct swapped parameters to call | |
413 | to cb.read_pch. | |
414 | * pch.c (cpp_valid_state): Handle -fpreprocessed. | |
415 | ||
79b68529 | 416 | 2004-06-15 Paolo Bonzini <bonzini@gnu.org> |
417 | ||
418 | * Makefile.in: Regenerate with automake 1.8.5. | |
419 | * aclocal.m4: Likewise. | |
420 | * configure: Regenerate. | |
421 | ||
151899c5 | 422 | 2004-06-11 Zack Weinberg <zack@codesourcery.com> |
423 | ||
424 | * configure.ac: Don't invoke ACX_HEADER_STDBOOL. | |
425 | * configure, config.in: Regenerate. | |
426 | * system.h: Unconditionally define bool as unsigned char, | |
427 | BOOL_BITFIELD as unsigned int. | |
428 | * .cvsignore: New file. | |
429 | ||
c39ed964 | 430 | 2004-06-09 Geoffrey Keating <geoffk@apple.com> |
431 | ||
432 | * traditional.c (push_replacement_text): Set macro->traditional. | |
433 | (save_replacement_text): Likewise. | |
434 | * pch.c (cpp_write_pch_state): Don't write list of defined macros. | |
435 | (struct save_macro_item): Delete. | |
436 | (struct save_macro_data): Use a character array not the previous | |
437 | structured format. | |
438 | (save_macros): Save macro as text not as internal structures. | |
439 | (cpp_prepare_state): Update for changes to save_macro_data. | |
440 | (cpp_read_state): Don't read macros defined in PCH. Restore | |
c84ca916 | 441 | -D macros as text. |
c39ed964 | 442 | * macro.c (create_iso_definition): Honour alloc_subobject. |
443 | Clear traditional flag. | |
444 | (_cpp_create_definition): Honour alloc_subobject. | |
445 | * lex.c (cpp_token_val_index): New. | |
446 | * internal.h: Include cpp-id-data.h. | |
447 | (uchar): Move definition to cpp-id-data.h. | |
448 | (U): Likewise. | |
449 | (cpp_macro): Likewise. | |
450 | * directives.c (struct answer): Move to cpp-id-data.h. | |
451 | (do_assert): Honour alloc_subobject. | |
c84ca916 | 452 | |
453 | * include/symtab.h (struct ht): Add field 'alloc_subobject'. | |
454 | * include/cpplib.h (struct cpp_string): Add GTY marker. | |
455 | (enum cpp_token_fld_kind): New. | |
456 | (struct cpp_token): Add GTY markers. | |
457 | (cpp_token_val_index): Prototype. | |
458 | (CPP_HASHNODE_VALUE_IDX): New. | |
459 | (struct cpp_hashnode): Don't skip fields of 'value' when marking. | |
460 | * include/cpp-id-data.h: New file. | |
c39ed964 | 461 | |
dd6e5561 | 462 | 2004-06-09 Paolo Bonzini <bonzini@gnu.org> |
463 | ||
464 | * Makefile.am (all-local): New. | |
465 | * Makefile.in: Regenerate. | |
466 | ||
8af0c78d | 467 | 2004-06-06 Roger Sayle <roger@eyesopen.com> |
468 | ||
469 | * Makefile.am (LIBICONV): Declare. | |
470 | (makedepend_LDADD): Use LIBICONV. | |
471 | * Makefile.in: Regenerate. | |
472 | ||
30302733 | 473 | 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu> |
474 | ||
475 | * Makefile.am (LIBINTL): Declare | |
476 | (makedepend_LDADD): Use LIBINTL. | |
477 | * Makefile.in: Regenerate. | |
478 | ||
3eb3f293 | 479 | 2004-06-05 Zack Weinberg <zack@codesourcery.com> |
480 | ||
481 | * Makefile.am: Add makedepend. | |
482 | * Makefile.in, aclocal.m4: Regenerate. | |
483 | * charset.c: Insert a space to avoid a warning. | |
484 | * directives.c: Include mkdeps.h. | |
485 | (_cpp_handle_directive): Reenable macro expander if appropriate. | |
486 | (undefine_macros): Inline body of _cpp_free_definition for speed. | |
487 | Do not call undef callback or _cpp_warn_if_unused_macro. | |
488 | (cpp_get_deps): New interface. | |
489 | * files.c (search_cache): Add pfile argument. Check for file | |
490 | that would be found by "" or <> search here... | |
491 | (_cpp_find_file): ...not here. Correct recorded start_dir of | |
492 | files found by directory-of-current-file search that would be | |
493 | found by "" or <> search. | |
494 | * init.c (cpp_add_dependency_target): Delete. | |
495 | * internal.h (struct lexer_state): Add discarding_output flag. | |
496 | * lex.c (lex_identifier): Compute hash function while scanning. | |
497 | * macro.c (cpp_scan_nooutput): Disable macro expansion outside | |
498 | directives. | |
499 | * makedepend.c: New file. | |
500 | * mkdeps.c (struct deps): Add vpath vector. | |
501 | (apply_vpath, deps_add_vpath): New function. | |
502 | (deps_free): Free vpath vector. | |
503 | (deps_add_dep, deps_add_target): Use apply_vpath. | |
504 | * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. | |
505 | (ht_lookup_with_hash): New function. | |
506 | * cpplib.h, mkdeps.h: Update prototypes. | |
507 | * symtab.h: Update prototypes. | |
508 | (HT_HASHSTEP, HT_FINISH): New macros. | |
509 | ||
8ed01400 | 510 | 2004-05-29 Geoffrey Keating <geoffk@apple.com> |
511 | ||
512 | * symtab.c (ht_create): Set entries_owned. | |
513 | (ht_destroy): Honour entries_owned. | |
514 | (ht_expand): Likewise. | |
515 | (ht_load): New. | |
c84ca916 | 516 | * include/symtab.h (struct ht): New field 'entries_owned' |
517 | (ht_load): New prototype. | |
8ed01400 | 518 | |
347a3ab5 | 519 | 2004-05-26 Paolo Bonzini <bonzini@gnu.org> |
520 | ||
521 | PR bootstrap/15651 | |
522 | * configure.ac: Fix m4 quoting when picking | |
523 | the size of HOST_WIDE_INT. | |
524 | * configure: Regenerate. | |
525 | ||
fc231f28 | 526 | 2004-05-25 Paolo Bonzini <bonzini@gnu.org> |
527 | ||
528 | * Makefile.am: the correct directory for | |
529 | gettext include files is given by @INCINTL@. | |
530 | * Makefile.in: Regenerate. | |
531 | ||
babfbd63 | 532 | 2004-05-24 Paolo Bonzini <bonzini@gnu.org> |
533 | ||
534 | * system.h [!ENABLE_NLS]: dgettext takes two | |
535 | parameters. | |
536 | ||
d856c8a6 | 537 | 2004-05-23 Paolo Bonzini <bonzini@gnu.org> |
538 | ||
539 | Moved libcpp from the gcc subdirectory to the toplevel. | |
540 | * Makefile.am: New file. | |
541 | * Makefile.in: Regenerate. | |
542 | * configure.ac: New file. | |
543 | * configure: Regenerate. | |
544 | * config.in: Regenerate. | |
545 | * charset.c: Moved from gcc/cppcharset.c. Add note about | |
546 | brokenness of input charset detection. Adjust for change | |
547 | in name of cppucnid.h. | |
548 | * errors.c: Moved from gcc/cpperror.c. Do not include intl.h. | |
549 | * expr.c: Moved from gcc/cppexp.c. | |
550 | * files.c: Moved from gcc/cppfiles.c. Do not include intl.h. | |
551 | Remove #define of O_BINARY, it is in system.h. | |
552 | * identifiers.c: Moved from gcc/cpphash.c. | |
553 | * internal.h: Moved from gcc/cpphash.h. Change header | |
554 | guard name. All other files adjusted to match name change. | |
555 | * init.c: Moved from gcc/cppinit.c. | |
556 | (init_library) [ENABLE_NLS]: Call bindtextdomain. | |
557 | * lex.c: Moved from gcc/cpplex.c. | |
558 | * directives.c: Moved from gcc/cpplib.c. | |
559 | * macro.c: Moved from gcc/cppmacro.c. | |
560 | * pch.c: Moved from gcc/cpppch.c. Do not include intl.h. | |
561 | * traditional.c: Moved from gcc/cpptrad.c. | |
562 | * ucnid.h: Moved from gcc/cppucnid.h. Change header | |
563 | guard name. | |
564 | * ucnid.pl: Moved from gcc/cppucnid.pl. | |
565 | * ucnid.tab: Moved from gcc/cppucnid.tab. Change header | |
566 | guard name. | |
567 | * symtab.c: Moved from gcc/hashtable.c. | |
568 | * line-map.c: Moved from gcc. Do not include intl.h. | |
569 | * mkdeps.c: Moved from gcc. | |
570 | * system.h: New file. | |
c84ca916 | 571 | * include/cpplib.h: Moved from gcc. Change header guard name. |
572 | * include/line-map.h: Moved from gcc. Change header guard name. | |
573 | * include/mkdeps.h: Moved from gcc. Change header guard name. | |
574 | * include/symtab.h: Moved from gcc/hashtable.h. Change header | |
575 | guard name. |