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