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