]>
Commit | Line | Data |
---|---|---|
5ffeb913 TT |
1 | 2007-09-06 Tom Tromey <tromey@redhat.com> |
2 | ||
3 | * internal.h (struct cpp_reader) <invocation_location>: New | |
4 | field. | |
5 | (struct cpp_reader) <set_invocation_location>: Likewise. | |
6 | * init.c (cpp_set_line_map): New function. | |
7 | * line-map.c (linemap_add): Use linemap's allocator. | |
8 | * include/line-map.h (GTY): Define. | |
9 | (line_map_realloc): New typedef. | |
10 | (struct line_map): Mark with GTY. | |
11 | (struct line_maps): Likewise. | |
12 | (struct line_maps) <maps>: Likewise. | |
13 | (struct line_maps) <reallocator>: New field. | |
14 | * include/symtab.h (GTY): Conditionally define. | |
15 | * include/cpplib.h (cpp_set_line_map): Declare. | |
16 | (cpp_get_token_with_location): Declare. | |
17 | * macro.c (cpp_get_token): Set invocation_location on the reader. | |
18 | (cpp_get_token_with_location): New function. | |
19 | ||
ac6b1c67 CF |
20 | 2007-08-30 Chao-ying Fu <fu@mips.com> |
21 | ||
22 | * expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur, | |
23 | ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk. | |
24 | (cpp_classify_number): Support decimal fixed-point constants without | |
25 | exponents. | |
26 | Warn about fixed-point constants when -pedantic. | |
27 | * include/cpplib.h (CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE): Change | |
28 | comments to support fixed-point values. | |
29 | (CPP_N_FRACT, CPP_N_ACCUM): Define. | |
30 | ||
cda5e672 TT |
31 | 2007-08-18 Tom Tromey <tromey@redhat.com> |
32 | ||
33 | PR preprocessor/32974: | |
34 | * directives.c (parse_include): Don't check for EOL when | |
35 | processing #pragma dependency. | |
36 | ||
ccfc4c91 OW |
37 | 2007-07-30 Ollie Wild <aaw@google.com> |
38 | ||
39 | * directives-only.c: New file. | |
40 | * internal.h (struct _cpp_dir_only_callbacks): New. | |
41 | (_cpp_preprocess_dir_only): New function. | |
42 | * directives.c (_cpp_handle_directive): Check directives_only before | |
43 | disabling execution of indented directives. | |
44 | * files.c (_cpp_stack_file): Add directives_only check. | |
45 | * include/cpplib.h (struct cpp_options): Add directives_only. | |
46 | (cpp_init_special_builtins): New function. | |
47 | * init.c (cpp_init_special_builtins): New function. | |
48 | (cpp_init_builtins): Move builtin_array initialization to | |
49 | cpp_init_special_builtins. | |
50 | (post_options): Check directives_only before setting | |
51 | pfile->state.prevent_expansion = 1. | |
52 | * macro.c (_cpp_builtin_macro_text): Print an error if __COUNTER__ | |
53 | is expanded inside a directive while -fdirectives-only is enabled. | |
54 | * Makefile.in (libcpp_a_OBJS): Add directives-only.o. | |
55 | (libcpp_a_SOURCES): Add directives-only.c. | |
56 | ||
a206413a UB |
57 | 2007-07-04 Uros Bizjak <ubizjak@gmail.com> |
58 | ||
59 | * traditional.c (_cpp_scan_out_logical_line): Initialize | |
60 | fmacro.args, fmacro.node, fmacro.offset, fmacro.line and | |
61 | fmacro.args to prevent 'may be used uninitialized' warning. | |
62 | ||
c77cd3d1 UB |
63 | 2007-07-03 Uros Bizjak <ubizjak@gmail.com> |
64 | ||
65 | * include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q): | |
66 | Add new constants. | |
67 | * expr.c (interpret_float_suffix): Process 'w', 'W', 'q' and 'Q' | |
68 | suffixes. Return CPP_N_MD_W for 'w' or 'W' suffixes and CPP_N_MD_Q | |
69 | for 'q' or 'Q' suffixes. | |
70 | ||
66938a1d DS |
71 | 2007-06-17 Danny Smith <dannysmith@users.sourceforge.net |
72 | ||
e1311401 | 73 | * files.c (open_file): Correct typo. |
66938a1d | 74 | |
71995ede VP |
75 | 2007-06-16 Vladimir Prus <vladimir@codesourcery.com> |
76 | ||
e1311401 | 77 | * files.c (open_file): Prevent the call |
71995ede VP |
78 | for stat from overwriting errno. |
79 | ||
84152c25 VP |
80 | 2007-06-09 Vladimir Prus <vladimir@codesourcery.com> |
81 | ||
e1311401 | 82 | * files.c (open_file): Account for the |
84152c25 VP |
83 | fact that on windows, opening a directory gives |
84 | EACCES. | |
85 | ||
f7fd775f JW |
86 | 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de> |
87 | ||
88 | PR preprocessor/23479 | |
89 | * expr.c (cpp_classify_number): Implement 0b-prefixed binary | |
90 | integer constants. | |
91 | (append_digit): Likewise. | |
92 | * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed | |
93 | binary integer constants. | |
94 | ||
ed0e74e0 DK |
95 | 2007-05-31 Dave Korn <dave.korn@artimi.com> |
96 | ||
97 | PR preprocessor/14331 | |
98 | * lex.c (_cpp_get_fresh_line): Don't warn if no newline at EOF. | |
99 | ||
a702045a OW |
100 | 2007-05-24 Ollie Wild <aaw@google.com> |
101 | ||
102 | * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. | |
103 | * pch.c (cpp_write_pch_deps): Save __COUNTER__ state. | |
104 | (cpp_write_pch_state): Save __COUNTER__ state. | |
105 | (cpp_valid_state): Check valid __COUNTER__ state. | |
106 | (cpp_read_state): Read new __COUNTER__ state. | |
107 | * include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator. | |
108 | * init.c (builtin_array): Add __COUNTER__/BT_COUNTER. | |
109 | * internal.h (struct cpp_reader): Add counter member. | |
110 | ||
126e073b SM |
111 | 2007-05-23 Simon Martin <simartin@users.sourceforge.net> |
112 | ||
113 | PR preprocessor/20077 | |
114 | * macro.c (create_iso_definition): Fixed the method to determine | |
115 | whether the token-pasting operator appears at the beginning or the end | |
116 | of a macro. | |
117 | ||
0b4cafec ILT |
118 | 2007-05-21 Ian Lance Taylor <iant@google.com> |
119 | ||
120 | * internal.h (struct cpp_reader): Add new fields: | |
121 | nonexistent_file_hash and nonexistent_file_ob. | |
122 | * files.c: Include "obstack.h". | |
123 | (find_file_in_dir): Before trying to open the file, look up the | |
124 | path name in the hash table of nonexistent files. After failing | |
125 | to open the file, add the path name to the hash table. | |
126 | (_cpp_find_file): Cache the results of looking up the file name | |
127 | starting with the quote and bracket chain heads, if we can. | |
128 | (nonexistent_file_hash_eq): New static function. | |
129 | (_cpp_init_files): Initialize pfile->nonexistent_file_hash and | |
130 | pfile->nonexistent_file_ob. | |
131 | (_cpp_cleanup_files): Free pfile->nonexistent_file_hash and | |
132 | pfile->nonexistent_file_ob. | |
133 | ||
30e04921 JJ |
134 | 2007-05-14 Janis Johnson <janis187@us.ibm.com> |
135 | ||
5a6bb57e JJ |
136 | * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic. |
137 | ||
30e04921 JJ |
138 | PR c/31924 |
139 | * expr.c (interpret_float_suffix): Check for invalid suffix. | |
140 | ||
22a8a52d EC |
141 | 2007-05-02 Eric Christopher <echristo@apple.com> |
142 | ||
143 | * expr.c (num_div_op): Don't overflow if the result is | |
144 | zero. | |
145 | ||
fca35e1b TT |
146 | 2007-05-02 Tom Tromey <tromey@redhat.com> |
147 | ||
148 | PR preprocessor/28709: | |
149 | * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs. | |
150 | ||
4cd97075 MM |
151 | 2007-03-30 Michael Meissner <michael.meissner@amd.com> |
152 | ||
153 | * directives.c (lex_macro_node_from_str): Fix alloca call to be | |
154 | type correct. | |
155 | ||
121de39f RH |
156 | 2007-03-30 Richard Henderson <rth@redhat.com> |
157 | ||
158 | * directives.c (lex_macro_node_from_str): New. | |
159 | (cpp_push_definition, cpp_pop_definition): New. | |
160 | * include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare. | |
161 | ||
4fcb360b BM |
162 | 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com> |
163 | ||
164 | * Makefile.in: Add dummy install-pdf target. | |
165 | ||
67e64439 TT |
166 | 2007-01-30 Tom Tromey <tromey@redhat.com> |
167 | ||
168 | PR preprocessor/30468: | |
169 | * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped | |
170 | './'. | |
171 | ||
ee380365 TT |
172 | 2007-01-30 Tom Tromey <tromey@redhat.com> |
173 | ||
174 | PR preprocessor/29966: | |
175 | * macro.c (lex_expansion_token): Save and restore cpp_reader's | |
176 | cur_token. | |
177 | (_cpp_create_definition): Don't restore cur_token here. | |
178 | * lex.c (_cpp_lex_token): Added assertion. | |
179 | ||
024abeb3 TT |
180 | 2007-01-27 Tom Tromey <tromey@redhat.com> |
181 | ||
182 | * configure: Rebuilt. | |
183 | ||
ee1c2a10 TT |
184 | 2007-01-12 Tom Tromey <tromey@redhat.com> |
185 | ||
186 | PR preprocessor/28227: | |
187 | * directives.c (lex_macro_node): Added 'is_def_or_undef' | |
188 | argument. | |
189 | (do_define): Update. | |
190 | (do_undef): Update. | |
191 | (do_ifdef): Update. | |
192 | (do_ifndef): Update. | |
193 | ||
67214c16 PB |
194 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
195 | ||
196 | * configure: Regenerate. | |
197 | ||
1aa6ca40 PB |
198 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
199 | ||
200 | * configure: Regenerate. | |
201 | ||
705e2d28 TT |
202 | 2007-01-04 Tom Tromey <tromey@redhat.com> |
203 | ||
204 | PR preprocessor/28165: | |
205 | * internal.h (cpp_in_primary_file): New function. | |
206 | * directives.c (do_include_next): Use cpp_in_primary_file. | |
207 | (do_pragma_once): Likewise. | |
208 | (do_pragma_system_header): Likewise. | |
209 | ||
7af45bd4 ILT |
210 | 2006-12-29 Ian Lance Taylor <iant@google.com> |
211 | ||
212 | * lex.c (_cpp_clean_line): Add uses of __builtin_expect. Don't | |
213 | look backward at the end of the line unless we saw a backslash. | |
214 | ||
9d30f270 JJ |
215 | 2006-12-29 Jakub Jelinek <jakub@redhat.com> |
216 | ||
217 | PR preprocessor/29612 | |
218 | * directives.c (do_linemarker): Set pfile->buffer->sysp always, not | |
219 | only when new_sysp is non-zero. | |
220 | ||
30b0edc0 TT |
221 | 2006-12-28 Tom Tromey <tromey@redhat.com> |
222 | ||
223 | PR preprocessor/30001: | |
224 | * charset.c (_cpp_convert_input): Check that to.len is greater | |
225 | than zero. | |
226 | ||
85d9c13c TS |
227 | 2006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> |
228 | ||
229 | * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU. | |
83cc06b2 | 230 | * configure: Rebuilt. |
85d9c13c | 231 | |
dfafdaa6 DG |
232 | 2006-11-01 Douglas Gregor <doug.gregor@gmail.com> |
233 | ||
234 | * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X | |
235 | for experimental C++0x mode. | |
236 | * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has | |
237 | adopted the preprocessor changes introduced in C99. | |
238 | ||
0f45f0f5 JM |
239 | 2006-10-29 Joseph Myers <joseph@codesourcery.com> |
240 | ||
241 | * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux* | |
242 | depending on --enable-targets=all. | |
243 | * configure: Regenerate. | |
244 | ||
de000d22 JJ |
245 | 2006-10-12 Jakub Jelinek <jakub@redhat.com> |
246 | ||
247 | PR preprocessor/28709 | |
248 | * macro.c (paste_tokens): Do error reporting here, use BUF with the | |
249 | spelled LHS token as opposed to spelling it again. | |
250 | (paste_all_tokens): Don't report errors here, just break on failure. | |
251 | ||
b5422ad7 BM |
252 | 2006-10-10 Brooks Moses <bmoses@stanford.edu> |
253 | ||
254 | * Makefile.in: Added empty "pdf" target. | |
255 | ||
aaf50ff2 GK |
256 | 2006-09-22 Geoffrey Keating <geoffk@apple.com> |
257 | ||
258 | * configure.ac: Make need_64_bit_hwint case for x86-darwin | |
259 | match exactly the glob in gcc/config.gcc. | |
260 | * configure: Regenerate. | |
261 | ||
c663e301 JM |
262 | 2006-09-13 Joseph S. Myers <joseph@codesourcery.com> |
263 | ||
264 | PR c/28768 | |
265 | PR preprocessor/14634 | |
266 | * lex.c (lex_string): Pedwarn for unterminated literals. | |
267 | ||
f7288899 EC |
268 | 2006-09-08 Eric Christopher <echristo@apple.com> |
269 | ||
270 | * configure.ac: Add 64-bit HWI support for i?86-darwin. | |
271 | ||
b52dbbf8 SE |
272 | 2006-08-14 Steve Ellcey <sje@cup.hp.com> |
273 | ||
274 | PR c++/28288 | |
275 | PR c++/14556 | |
276 | * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens. | |
277 | (CPP_LAST_EQ): Change. | |
278 | (CPP_LAST_PUNCTUATOR): Change. | |
279 | * expr.c (cpp_operator): Remove MIN and MAX. | |
280 | (reduce): Remove CPP_MIN and CPP_MAX. | |
281 | (num_binary_op): Ditto. | |
282 | * lex.c (_cpp_lex_direct): Ditto. | |
283 | (cpp_avoid_paste): Remove ? as legal symbol after > or <. | |
284 | ||
1c90c6f9 JJ |
285 | 2006-06-09 Jakub Jelinek <jakub@redhat.com> |
286 | ||
287 | PR preprocessor/27746 | |
288 | * directives.c (do_pragma): Handle pragma with valid namespace | |
289 | and invalid name coming from macro expansion. | |
290 | * directives.c (destringize_and_run): Initialize next field in | |
291 | context. | |
292 | ||
293 | PR c/27747 | |
294 | PR c++/27748 | |
295 | * directives.c (destringize_and_run): Set NO_EXPAND on the | |
296 | tokens. | |
297 | ||
298 | * macro.c (_cpp_backup_tokens): Fix comment typo. | |
299 | ||
5c3c3683 DJ |
300 | 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com> |
301 | ||
302 | * Makefile.in (CATALOGS): Add po/ prefix. | |
303 | * configure: Regenerated. | |
304 | ||
b2bd74bc CD |
305 | 2006-05-23 Carlos O'Donell <carlos@codesourcery.com> |
306 | ||
307 | * Makefile.in: Add install-html target. Add install-html to .PHONY | |
308 | ||
be8ac3e2 GZ |
309 | 2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com> |
310 | ||
311 | * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP. | |
312 | * files.c (_cpp_get_file_stat): New function. | |
313 | * include/cpplib.h (builtin_type): Add BT_TIMESTAMP. | |
314 | * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP. | |
315 | * internal.h (_cpp_get_file_stat): Prototype. | |
316 | (struct cpp_buffer): Add timestamp. | |
317 | ||
83900997 JJ |
318 | 2006-01-23 Jakub Jelinek <jakub@redhat.com> |
319 | ||
320 | PR preprocessor/25717 | |
321 | * init.c (cpp_init_builtins): If __STDC__ will not change value | |
322 | between system headers and other sources, define it as a normal | |
323 | macro rather than a builtin. | |
324 | * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check | |
325 | cpp_in_system_header condition. | |
326 | ||
327 | 2006-01-05 Paolo Bonzini <bonzini@gnu.org> | |
9220c30c PB |
328 | |
329 | * Makefile.in: Use -MMD instead of -MD. | |
330 | ||
bc4071dd RH |
331 | 2006-01-04 Dmitry Kurochkin <dmitry.kurochkin@gmail.com> |
332 | Richard Henderson <rth@redhat.com> | |
333 | ||
334 | Merge from gomp branch: | |
335 | * directives.c (struct pragma_entry): Add is_deferred. Add ident | |
336 | entry to value union. | |
337 | (end_directive): Don't eat the line if in_deferred_pragma. | |
338 | (run_directive): Remove pragma hacks. | |
339 | (insert_pragma_entry): Remove. | |
340 | (new_pragma_entry): New. | |
341 | (register_pragma_1): Split out of register_pragma. Only handle | |
342 | the lookup tree and return the new entry. | |
343 | (cpp_register_pragma): Fill in the pragma entry here. | |
344 | (cpp_register_deferred_pragma): New. | |
345 | (register_pragma_internal): New. | |
346 | (_cpp_init_internal_pragmas): Use register_pragma_internal. | |
347 | (do_pragma): Allow pragma expansion after namespace. For deferred | |
348 | pragmas, don't slurp the line into a string. | |
349 | (destringize_and_run): Save tokens for deferred pragmas. | |
350 | (cpp_handle_deferred_pragma): Remove. | |
351 | * macro.c (builtin_macro): Remove pragma token hack. | |
352 | (_cpp_push_token_context): Rename from push_token_context and export. | |
353 | * internal.h (struct lexer_state): Add pragma_allow_expansion. | |
354 | (_cpp_push_token_context): Declare. | |
355 | * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return | |
356 | a token. Update the line number correctly if so. | |
357 | (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens. | |
358 | (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas. | |
359 | * include/cpplib.h (PRAGMA_EOL): New. | |
360 | (CPP_TOKEN_FLD_PRAGMA): New. | |
361 | (struct cpp_token): Add val.pragma. | |
362 | (struct cpp_options): Remove defer_pragmas. | |
363 | (cpp_handle_deferred_pragma): Remove. | |
364 | (cpp_register_deferred_pragma): Declare. | |
365 | ||
d09e893f JJ |
366 | 2006-01-01 Jakub Jelinek <jakub@redhat.com> |
367 | ||
368 | PR c++/25294 | |
369 | * directives.c (do_pragma): If pragma line ends with multi-line | |
370 | block comment, end the saved deferred pragma string before that | |
371 | comment. Handle embedded '\0' chars on the pragma line. | |
372 | ||
ab84748a VR |
373 | 2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
374 | ||
375 | PR c++/23333 | |
376 | * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure. | |
377 | ||
ad6ed77e JG |
378 | 2005-12-07 Jon Grimm <jgrimm2@us.ibm.com> |
379 | Ben Elliston <bje@au.ibm.com> | |
380 | ||
381 | * include/cpplib.h (CPP_N_DFLOAT): New. | |
382 | * expr.c (interpret_float_suffix): Identify df, dd, and dl | |
383 | suffixes as decimal floating point constants. | |
384 | (cpp_classify_number): Disallow hexadecimal DFP constants. | |
385 | ||
ba096620 | 386 | 2005-11-14 Gerald Pfeifer <gerald@pfeifer.com> |
bc4071dd | 387 | Ian Lance Taylor <ian@airs.com> |
ba096620 GP |
388 | |
389 | * include/cpplib.h (struct cpp_callbacks): Annotate error with | |
390 | ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0). | |
391 | ||
456b8ce5 UB |
392 | 2005-11-09 Per Bothner <per@bothner.com> |
393 | Uros Bizjak <uros@kss-loka.si> | |
f7288899 | 394 | |
456b8ce5 UB |
395 | PR c/24101 |
396 | * init.c (read_original_filename): Temporarily set | |
397 | state.in_directive before calling _cpp_lex_direct for | |
398 | CPP_HASH tokens. | |
399 | ||
5571f74f JW |
400 | 2005-11-03 James E Wilson <wilson@specifix.com> |
401 | ||
402 | PR preprocessor/24202 | |
403 | * files.c (_cpp_pop_file_buffer): Set buffer_valid to false. | |
404 | ||
a63607ed JM |
405 | 2005-11-04 Joseph S. Myers <joseph@codesourcery.com> |
406 | ||
407 | * include/cpplib.h (struct cpp_callbacks): Make error take | |
408 | va_list* parameter. | |
409 | * errors.c (cpp_error): Update call to callback. | |
410 | ||
651ed942 AP |
411 | 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> |
412 | ||
413 | PR preprocessor/22042 | |
414 | * macro.c (_cpp_builtin_macro_text): Lower the needed max | |
415 | buffer size. | |
416 | (cpp_quote_string): Don't octalify non printable | |
417 | charactors. | |
418 | ||
178b58b5 JM |
419 | 2005-11-03 Joseph S. Myers <joseph@codesourcery.com> |
420 | ||
421 | PR c++/17964 | |
422 | * include/cpplib.h (struct cpp_options): Add client_diagnostic. | |
423 | (struct cpp_callbacks): Add error. | |
424 | * errors.c (cpp_error): If client_diagnostic, use error callback. | |
425 | * charset.c (convert_escape): Don't use %03o in diagnostic. | |
426 | ||
3ee5ed11 | 427 | 2005-10-21 James E Wilson <wilson@specifix.com> |
6568f34b JW |
428 | |
429 | PR preprocessor/15220 | |
430 | * files.c (_cpp_find_file): New parameter angle_brackets. Fix all | |
431 | callers. Pass to open_file_failed. | |
432 | (open_file_failed): New parameter angle_brackets. Fix all callers. | |
433 | Use in print_dep assignment. | |
434 | * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file. | |
435 | * internal.h (_cpp_find_file): Add new parm to declaration. | |
f7288899 | 436 | |
077fc835 KH |
437 | 2005-10-08 Kazu Hirata <kazu@codesourcery.com> |
438 | ||
439 | * configure.ac: Require 64-bit int for arm*-*-*eabi*. | |
440 | * configure: Regenerate. | |
441 | ||
cbc43ae0 ILT |
442 | 2005-10-04 Ian Lance Taylor <ian@airs.com> |
443 | ||
444 | PR preprocessor/13726 | |
445 | * directives.c (check_eol_return_comments): New static function. | |
446 | (parse_include): Add buf parameter. Change all callers. | |
447 | (do_include_common): If not discard comments, turn on | |
448 | save_comments. Pass collected comments to include callback. | |
449 | * include/cpplib.h (struct cpp_callbacks): Add new parameter to | |
450 | include callback: cpp_token list. | |
451 | ||
af15a2fe JM |
452 | 2005-09-20 Joseph S. Myers <joseph@codesourcery.com> |
453 | ||
454 | * include/cpplib.h (struct cpp_options): Add extended_identifiers. | |
455 | * init.c (struct lang_flags, lang_defaults): Add | |
456 | extended_identifiers. | |
457 | (cpp_set_lang): Use it. | |
458 | * lex.c (forms_identifier_p): Check extended_identifiers. | |
459 | ||
f5eab47e JJ |
460 | 2005-08-30 Jakub Jelinek <jakub@redhat.com> |
461 | ||
462 | PR preprocessor/20348 | |
463 | PR preprocessor/20356 | |
464 | * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and | |
465 | 2004-06-05 changes. | |
466 | ||
467129e6 KG |
467 | 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
468 | ||
469 | * configure.ac (ACX_PROG_CC_WARNING_OPTS): add | |
470 | -Wmissing-format-attribute. | |
471 | ||
472 | * configure: Regenerate. | |
473 | ||
200031d1 KC |
474 | 2005-06-29 Kelley Cook <kcook@gcc.gnu.org> |
475 | ||
476 | * all files: Update FSF address in copyright headers. | |
477 | * makeucnid.c (write_copyright): Update outputted FSF address. | |
478 | ||
f610dd5f ZW |
479 | 2005-06-13 Zack Weinberg <zack@codesourcery.com> |
480 | ||
481 | * configure.ac: Invoke ZW_CREATE_DEPDIR and | |
482 | ZW_PROG_COMPILER_DEPENDENCIES. | |
483 | * aclocal.m4, configure: Regenerate. | |
484 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE): | |
485 | New variables. | |
486 | (distclean): Clean up $(DEPDIR) and its contents. | |
487 | (.c.o): Use $(COMPILE). | |
488 | Include $(DEPDIR)/*.Po for most object->header dependencies. | |
489 | ||
c3f829c1 GDR |
490 | 2005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net> |
491 | ||
492 | * configure.ac: Check declarations for asprintf and vasprintf. | |
493 | * config.in: Regenerate. | |
494 | * configure: Likewise. | |
495 | ||
496 | * charset.c (conversion_loop): Use XRESIZEVEC. | |
497 | (convert_no_conversion): Likewise. | |
498 | (convert_using_iconv): Likewise. | |
499 | (init_iconv_desc): Cast return value of alloca. | |
500 | (cpp_host_to_exec_charset): Use XNEWVEC. | |
501 | (emit_numeric_escape): Use XRESIZEVEC. | |
502 | (cpp_interpret_string): Use XNEWVEC. | |
503 | (cpp_interpret_string): Use XRESIZEVEC. | |
504 | (_cpp_interpret_identifier): Cast return value of alloca. | |
505 | (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC. | |
506 | * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC. | |
507 | (parse_include): Use XNEWVEC. | |
508 | (insert_pragma_entry): Rename local variable "new" to | |
f610dd5f | 509 | "new_entry". |
c3f829c1 GDR |
510 | (save_registered_pragmas): Cast return value of xmemdup. |
511 | (destringize_and_run): Same for alloca. | |
512 | (parse_assertion): Likewise. | |
513 | (do_assert): Cast allocated storage to proper type. | |
514 | (cpp_define): Likewise. | |
515 | (_cpp_define_builtin): Likewise. | |
516 | (cpp_undef): Likewise. | |
517 | (handle_assertion): Likewise. | |
518 | (cpp_push_buffer): Rename local variable "new" to "new_buffer". | |
519 | * expr.c (CPP_UPLUS): Cast value to type cpp_ttype. | |
520 | (CPP_UMINUS): Likewise. | |
521 | (struct cpp_operator): Rename from struct operator. | |
522 | (_cpp_expand_op_stack): Use XRESIZEVEC. | |
523 | * files.c (pch_open_file): Use XNEWVEC. | |
524 | (pch_open_file): Use XRESIZEVEC. | |
525 | (read_file_guts): Use XNEWVEC and XRESIZEVEC. | |
526 | (dir_name_of_file): Use XNEWVEC. | |
527 | (make_cpp_file): Use XCNEW. | |
528 | (make_cpp_dir): Likewise. | |
529 | (allocate_file_hash_entries): USE XNEWVEC. | |
530 | (cpp_included): Cast return value of htab_find_with_hash. | |
531 | (append_file_to_dir): Use XNEWVEC. | |
532 | (read_filename_string): Likewise. Use XRESIZEVEC too. | |
533 | (read_name_map): Cast return value of alloca. Use XRESIZEVEC. | |
534 | (remap_filename): Use XNEWVEC. | |
535 | (struct pchf_entry): Move definition out of struct pchf_data. | |
536 | (_cpp_save_file_entries): Use XCNEWVAR. | |
537 | (_cpp_read_file_entries): Use XNEWVAR. | |
538 | * identifiers.c (alloc_node): Use XOBNEW. | |
539 | * init.c (cpp_create_reader): Use XCNEW. | |
540 | (cpp_init_builtins): Cast of b->value to enum builtin_type. | |
541 | (read_original_directory): Cast return value of alloca. | |
542 | * lex.c (add_line_note): Use XRESIZEVEC. | |
543 | (warn_about_normalization): Use XNEWVEC. | |
544 | (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype). | |
545 | (new_buff): Use XNEWVEC. | |
546 | * line-map.c (linemap_add): Use XRESIZEVEC. | |
547 | * macro.c (builtin_macro): Cast return value of alloca. | |
548 | (paste_tokens): Likewise. | |
549 | (expand_arg): Use XNEWVEC and XRESIZEVEC. | |
550 | (_cpp_save_parameter): Use XRESIZEVEC. | |
551 | (create_iso_definition): Cast allocated storage to proper type. | |
552 | (_cpp_create_definition): Likewise. | |
553 | (cpp_macro_definition): Use XRESIZEVEC. | |
554 | * makedepend.c (add_clm): Use XNEW. | |
555 | (add_dir): Likewise. | |
556 | * mkdeps.c (munge): Use XNEWVEC. | |
557 | (deps_init): Use XCNEW. | |
558 | (deps_add_target): Use XRESIZEVEC. | |
559 | (deps_add_default_target): Cast return value of alloca. | |
560 | (deps_add_dep): Use XRESIZEVEC. | |
561 | (deps_add_vpath): Likewise. Use XNEWVEC too. | |
562 | (deps_restore): Likewise. | |
563 | * pch.c (save_idents): Use XNEW and XNEWVEC. | |
564 | (cpp_save_state): Use XNEW. | |
565 | (count_defs): Cast return value of htab_find. | |
566 | (write_defs): Likewise. | |
567 | (cpp_write_pch_deps): Use XNEWVEC. | |
568 | (collect_ht_nodes): Use XRESIZEVEC. | |
569 | (cpp_valid_state): Use XNEWVEC. | |
570 | (save_macros): Use XRESIZEVEC. Cast return value of xmemdup. | |
571 | * symtab.c (ht_create): Use XCNEW. | |
572 | (ht_lookup_with_hash): Cast return value of obstack_copy0. | |
573 | (ht_expand): Use XCNEWVEC. | |
574 | * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus. | |
575 | (bool): Do not define if __cplusplus. | |
576 | ||
1ed17cd5 ZW |
577 | 2005-05-12 Zack Weinberg <zack@codesourcery.com> |
578 | ||
579 | * directives.c (#sccs table entry): Mark IN_I, consistent with #ident. | |
580 | (do_sccs): Delete function definition, #define to do_ident. | |
581 | (do_ident): Don't hardwire directive name. | |
582 | ||
5a8c20ce RK |
583 | 2005-05-12 Ryota Kunisawa <kunisawa@access.co.jp> |
584 | ||
585 | PR bootstrap/21230 | |
586 | * configure: Regenerate. | |
587 | ||
473c5bc9 AP |
588 | 2005-04-27 Andris Pavenis <pavenis@latnet.lv> |
589 | ||
590 | * files.c: Include io.h for DJGPP to get prototype of setmode. | |
591 | ||
c1fc5047 PB |
592 | 2005-04-19 Per Bothner <per@bothner.com> |
593 | ||
594 | PR preprocessor/20907 | |
595 | * line-map.c (linemap_line_start): Fix bug when we need to increse | |
596 | column_bits but can re-use the current line_map. | |
597 | ||
042630ad KG |
598 | 2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
599 | ||
600 | * system.h (fopen, fdopen, freopen): Define these to the unlocked | |
601 | libiberty functions. | |
602 | ||
0d667716 KG |
603 | 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
604 | ||
605 | * configure.ac (libcpp_UNLOCKED_FUNCS): New. | |
606 | (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS. | |
607 | * system.h (putchar, getc, getchar, clearerr, feof, fileno, | |
608 | fflush, fgetc, fgets, ferror, fread): Redefine to the associated | |
609 | _unlocked function. | |
610 | (fwrite_unlocked): Fix prototype. | |
1ed17cd5 | 611 | |
0d667716 KG |
612 | * configure, config.in: Regenerate. |
613 | ||
cae064e7 JJ |
614 | 2005-04-05 Jakub Jelinek <jakub@redhat.com> |
615 | ||
616 | PR preprocessor/19475 | |
617 | * macro.c (create_iso_definition): For < ISO C99, don't | |
618 | pedwarn if there is no whitespace between macro name and its | |
619 | replacement, but the replacement starts with a basic character | |
620 | set character. | |
621 | ||
cbada204 AJ |
622 | 2005-03-28 Andreas Jaeger <aj@suse.de> |
623 | ||
624 | * lex.c (warn_about_normalization): Cast field width to int to | |
625 | avoid warning. | |
626 | ||
f42eccdb JM |
627 | 2005-03-19 Joseph S. Myers <joseph@codesourcery.com> |
628 | ||
629 | * configure.ac: Consistently use solaris2.1[0-9]* instead of | |
630 | solaris2.1[0-9]. | |
631 | * configure: Regenerate. | |
632 | ||
c79e602b GK |
633 | 2005-03-15 Geoffrey Keating <geoffk@apple.com> |
634 | ||
635 | * charset.c (_cpp_valid_ucn): In identifiers, reject a partial | |
636 | UCN rather than printing an error. | |
637 | ||
50668cf6 GK |
638 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> |
639 | ||
6baba9bb GK |
640 | * lex.c (forms_identifier_p): Disable UCNs in C89 mode. |
641 | ||
642 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> | |
1ed17cd5 | 643 | |
50668cf6 GK |
644 | * init.c (cpp_create_reader): Default warn_normalize to normalized_C. |
645 | * charset.c: Update for new format of ucnid.h. | |
646 | (ucn_valid_in_identifier): Update for new format of ucnid.h. | |
647 | Add NST parameter, and update it; update callers. | |
648 | (cpp_valid_ucn): Add NST parameter, update callers. Replace abort | |
649 | with cpp_error. | |
650 | (convert_ucn): Pass normalize_state to cpp_valid_ucn. | |
651 | * internal.h (struct normalize_state): New. | |
652 | (INITIAL_NORMALIZE_STATE): New. | |
653 | (NORMALIZE_STATE_RESULT): New. | |
654 | (NORMALIZE_STATE_UPDATE_IDNUM): New. | |
655 | (_cpp_valid_ucn): New. | |
656 | * lex.c (warn_about_normalization): New. | |
657 | (forms_identifier_p): Add normalize_state parameter, update callers. | |
658 | (lex_identifier): Add normalize_state parameter, update callers. Keep | |
659 | the state current. | |
660 | (lex_number): Likewise. | |
661 | (_cpp_lex_direct): Pass normalize_state to subroutines. Check | |
662 | it with warn_about_normalization. | |
663 | * makeucnid.c: New. | |
664 | * ucnid.h: Replace. | |
665 | * ucnid.pl: Remove. | |
666 | * ucnid.tab: Make appropriate for input to makeucnid.c. Remove | |
667 | comments about obsolete version of C++. | |
668 | * include/cpplib.h (enum cpp_normalize_level): New. | |
669 | (struct cpp_options): Add warn_normalize field. | |
670 | ||
47e20491 GK |
671 | 2005-03-11 Geoffrey Keating <geoffk@apple.com> |
672 | ||
673 | * directives.c (glue_header_name): Update call to cpp_spell_token. | |
674 | * internal.h (_cpp_interpret_identifier): New. | |
675 | * charset.c (_cpp_interpret_identifier): New. | |
676 | (_cpp_valid_ucn): Allow UCN version of '$'. | |
677 | * lex.c (lex_identifier): Add extra parameter to indicate if initial | |
678 | character was '$' or '\'. Support identifiers with UCNs. | |
679 | (forms_identifier_p): Allow UCNs. | |
680 | (_cpp_lex_direct): Pass extra parameter to lex_identifier. | |
681 | (utf8_to_ucn): New. | |
682 | (cpp_spell_token): Add FORSTRING parameter. Use it. | |
683 | (cpp_token_as_text): Update call to cpp_spell_token. | |
684 | (cpp_output_token): Write UCNs back out. | |
685 | (stringify_arg): Update call to cpp_spell_token. | |
686 | (paste_tokens): Likewise. | |
687 | (cpp_macro_definition): Likewise. | |
688 | * macro.c (stringify_arg): Likewise. | |
689 | (paste_tokens): Likewise. | |
690 | (cpp_macro_definition): Likewise. | |
691 | * include/cpplib.h: Add parameter to cpp_spell_token. | |
692 | ||
73096711 JJ |
693 | 2005-03-04 Jakub Jelinek <jakub@redhat.com> |
694 | ||
695 | PR bootstrap/20282 | |
696 | PR bootstrap/20305 | |
697 | * macro.c (replace_args, cpp_get_token): Copy whole | |
698 | cpp_token_u instead of just cpp_string field from it. | |
699 | ||
2203a881 DP |
700 | 2005-02-28 Devang Patel <dpatel@apple.com> |
701 | ||
702 | * directives.c (do_line): Save sysp early before line table is | |
703 | realloc'ed. | |
1ed17cd5 | 704 | |
c5ff069d ZW |
705 | 2005-02-20 Zack Weinberg <zack@codesourcery.com> |
706 | ||
707 | PR 18785 | |
708 | * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro. | |
709 | (cpp_host_to_exec_charset): New function. | |
710 | * include/cpplib.h: Declare cpp_host_to_exec_charset. | |
711 | ||
04c90eea DP |
712 | 2005-02-19 Devang Patel <dpatel@apple.com> |
713 | ||
714 | * charset.c (_cpp_convert_input): Check '\r' before inserting | |
715 | '\n' at the end. | |
c5ff069d | 716 | |
6da55c00 EC |
717 | 2005-02-15 Eric Christopher <echristo@redhat.com> |
718 | ||
719 | PR preprocessor/19077 | |
720 | * macro.c (cpp_macro_definition): Move handling of whitespace | |
721 | to PREV_WHITE conditional. Remove overloading of len | |
722 | variable. | |
723 | ||
31c3e631 KH |
724 | 2005-02-14 Kazu Hirata <kazu@cs.umass.edu> |
725 | ||
726 | * directives.c, files.c, init.c, internal.h, macro.c, pch.c, | |
727 | traditional.c: Update copyright. | |
728 | ||
be0f1e54 PB |
729 | 2005-02-14 Paolo Bonzini <bonzini@gnu.org> |
730 | ||
731 | PR bootstrap/19818 | |
732 | * configure.ac: Check for declaration of basename and getopt. | |
733 | * config.in: Regenerate. | |
734 | * configure: Regenerate. | |
735 | * internal.h (ustrcspn): New. | |
736 | * macro.c (create_iso_definition): Fix allocation of memory. | |
737 | (padding_token): Add cast to remove const-ness. | |
738 | * pch.c (cpp_read_state): Use ustrcspn. | |
739 | ||
ecddfb39 MS |
740 | 2005-02-08 Mike Stump <mrs@apple.com> |
741 | ||
742 | * files.c (pchf_adder): Remove. | |
743 | (struct pchf_adder_info): Likewise. | |
744 | (_cpp_save_file_entries): Write out all files so that #import works. | |
745 | ||
9fcdd891 JM |
746 | 2005-01-23 Joseph S. Myers <joseph@codesourcery.com> |
747 | ||
748 | * configure: Regenerate. | |
749 | ||
ecfd72e7 TS |
750 | 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> |
751 | ||
752 | * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader. | |
753 | ||
6c25a4f7 | 754 | * include/cpplib.h: Also update copyright years. |
c5ff069d | 755 | |
942926ad GK |
756 | 2005-01-03 Geoffrey Keating <geoffk@apple.com> |
757 | ||
758 | * files.c (_cpp_find_file): Add files found by search_path_exhausted | |
759 | to the list of all files. | |
760 | ||
a2566ae9 GDR |
761 | 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net> |
762 | ||
763 | * internal.h: Update references to Cpp lib filenames. | |
764 | * directives.c: Likewise. | |
765 | * init.c: Likewise. | |
766 | * macro.c: Likewise. | |
767 | * traditional.c: Likewise. | |
768 | ||
1b449375 EB |
769 | 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr> |
770 | ||
771 | PR preprocessor/15167 | |
772 | * files.c (destroy_cpp_file): New function. | |
773 | (should_stack_file): Make a new file if the | |
774 | compared file is still stacked. | |
775 | ||
28303828 NN |
776 | 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org> |
777 | ||
c5ff069d | 778 | PR preprocessor/17610 |
28303828 NN |
779 | * directives.c (do_include_common): Error out if an empty filename |
780 | is given for #include (or #include_next or #import). | |
781 | ||
c812785a RS |
782 | 2004-11-27 Roger Sayle <roger@eyesopen.com> |
783 | Zack Weinberg <zack@codesourcery.com> | |
784 | ||
785 | * internal.h: Replace all uses of uchar with unsigned char. | |
786 | * include/cpp-id-data.h: Likewise. Guard typedef of uchar | |
787 | with !IN_GCC, so uchar is only defined whilst building libcpp. | |
788 | ||
f91eaa01 KC |
789 | 2004-11-24 Kelley Cook <kcook@gcc.gnu.org> |
790 | ||
791 | * aclocal.m4: Regenerate. | |
792 | ||
f78ce0c2 RS |
793 | 2004-11-24 Roger Sayle <roger@eyesopen.com> |
794 | ||
795 | PR preprocessor/15824 | |
796 | * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h> | |
797 | directly, instead of the non-existant "system.h" and "ansidecl.h". | |
798 | * configure: Regenerate. | |
799 | ||
b5b3e36a | 800 | 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com> |
c5ff069d | 801 | Joseph Myers <joseph@codesourcery.com> |
b5b3e36a DJ |
802 | |
803 | * internal.h (struct lexer_state): Add in_deferred_pragma. | |
804 | * directives.c (struct pragma_entry): Add allow_expansion. | |
805 | (insert_pragma_entry): Take allow_expansion flag. | |
806 | (register_pragma): Likewise. | |
807 | (cpp_register_pragma): Likewise. | |
808 | (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma. | |
809 | (do_pragma): Honor allow_expansion. | |
810 | (cpp_handle_deferred_pragma): Set in_deferred_pragma. | |
811 | * include/cpplib.h (cpp_register_pragma): Update prototype. | |
812 | ||
a8e68029 | 813 | 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com> |
c5ff069d | 814 | Mark Mitchell <mark@codesourcery.com> |
a8e68029 DJ |
815 | |
816 | * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set | |
817 | need_64bit_hwint=yes. | |
818 | * configure: Regenerate. | |
819 | ||
50f47ee0 JM |
820 | 2004-11-09 Joseph S. Myers <joseph@codesourcery.com> |
821 | ||
822 | * Makefile.in ($(PACKAGE).pot): New rule. Depend on | |
823 | po/$(PACKAGE).pot. | |
824 | (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword | |
825 | arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. | |
826 | Remove local srcdir path from generated file. | |
827 | ||
968e08d6 | 828 | 2004-11-04 Zack Weinberg <zack@codesourcery.com> |
c5ff069d | 829 | Gerald Pfeifer <gerald@pfeifer.com> |
968e08d6 ZW |
830 | |
831 | * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H | |
832 | as well. | |
833 | ||
3da3d587 ZW |
834 | 2004-10-27 Zack Weinberg <zack@codesourcery.com> |
835 | ||
836 | PR 18075 | |
837 | * directives.c (do_pragma): Do not defer pragmas which are unknown. | |
838 | (cpp_handle_deferred_pragma): Add cast to silence warning. | |
839 | ||
ac24fc25 JM |
840 | 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk> |
841 | ||
842 | * errors.c (_cpp_begin_message): Print "error: " for errors. | |
843 | ||
7731405b AJ |
844 | 2004-10-10 Andreas Jaeger <aj@suse.de> |
845 | ||
846 | * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath. | |
847 | * Makefile.in (makedepend.o): Add dependency on mkdeps.h. | |
848 | ||
646544e3 AP |
849 | 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu> |
850 | ||
851 | * pch.c (cpp_write_pch_state): Remove variable z as it is not | |
852 | used. | |
853 | (cpp_read_state): Remove unused variables, m, d and mac_count. | |
854 | ||
67a74146 PB |
855 | 2004-09-29 Per Bothner <per@bothner.com> |
856 | ||
857 | * directives.c (cpp_handle_deferred_pragma): Save, clear and restore | |
858 | cb.line_change. Otherwise do_pragma will call the line_change | |
859 | call-back with a meaningless line number. | |
860 | ||
018a4785 ZW |
861 | 2004-09-24 Zack Weinberg <zack@codesourcery.com> |
862 | ||
863 | * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to | |
864 | programs cluster. Use ACX_PROG_CC_WARNING_OPTS, | |
865 | ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS. | |
866 | * aclocal.m4, configure: Regenerate. | |
867 | * init.c: Include localedir.h. | |
868 | * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables. | |
869 | (DEFS): Delete. | |
870 | (.c.o): Use $(ALL_CFLAGS). | |
871 | (localedir.h, localedir.hs): New rules. | |
872 | (clean): Use rm -rf to remove directories. | |
873 | (distclean): Also delete localedir.h and localedir.hs. | |
874 | (init.o): Update dependencies. | |
875 | ||
88fa57d7 KC |
876 | 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> |
877 | ||
878 | * Makefile.in (aclocal.m4): Update dependencies. | |
879 | * configure.ac (AC_CONFIG_MACRO_DIR): New. | |
880 | * aclocal.m4, configure: Regenerate. | |
881 | ||
8f8e9aa5 ZW |
882 | 2004-09-17 Zack Weinberg <zack@codesourcery.com> |
883 | ||
a29f62d9 ZW |
884 | * charset.c (_cpp_destroy_iconv, emit_numeric_escape) |
885 | (_cpp_convert_input, _cpp_default_encoding): Add comments. | |
886 | Some other comments in this file also tweaked. | |
887 | ||
8f8e9aa5 ZW |
888 | * directives.c (do_pragma): Save current buffer position |
889 | before lexing the pragma keywords; don't call | |
890 | _cpp_backup_tokens in the defer_pragmas case. | |
891 | ||
a2981930 PB |
892 | 2004-09-15 Per Bothner <per@bothner.com> |
893 | ||
894 | * include/line-map.h (line_map_start): Add parameter names so | |
895 | preceding comment makes sense. | |
896 | (linemap_add): Remove from comment mention of non-existing parameter. | |
897 | ||
21b11495 ZW |
898 | 2004-09-09 Matt Austern <austern@apple.com> |
899 | Zack Weinberg <zack@codesourcery.com> | |
900 | ||
901 | * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_ | |
902 | prefixes throughout. Add entry for PRAGMA. Remove | |
903 | unnecessary "= 0" from EQ. | |
904 | (enum cpp_ttype): Adjust OP and TK definitions to restore | |
905 | prefixes, via token-paste. | |
906 | (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP): | |
907 | Change from #defines to additional cpp_ttype enumerators. | |
908 | (struct cpp_options): Add defer_pragmas. | |
909 | (cpp_handle_deferred_pragma): Prototype new interface. | |
910 | ||
911 | * internal.h (struct cpp_reader): Add directive_result. | |
912 | * directives.c (struct pragma_entry): Add is_internal field; | |
913 | give boolean fields type bool. | |
914 | (start_directive): Initialize pfile->directive_result.type. | |
915 | (_cpp_do__Pragma): Likewise. | |
916 | (run_directive): Do not crash if pfile->buffer->prev is NULL. | |
917 | (insert_pragma_entry): Add 'internal' argument; set new->is_internal | |
918 | from it. | |
919 | (register_pragma): New static function, bulk of former | |
920 | cpp_register_pragma here; add 'internal' argument, pass along | |
921 | to insert_pragma_entry. | |
922 | (cpp_register_pragma): Now a wrapper around register_pragma which | |
923 | always passes false for 'internal' argument. | |
924 | (_cpp_init_internal_pragmas): Call register_pragma directly, passing | |
925 | true for 'internal'. | |
926 | (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't | |
927 | an internal pragma, save text till the end of the line as a CPP_PRAGMA | |
928 | token instead of executing the pragma. | |
929 | (cpp_handle_deferred_pragma): New interface. | |
930 | * lex.c (token_spellings): Adjust OP and TK definitions to | |
931 | match changes to cpplib.h. | |
932 | (_cpp_lex_token): Check for a directive-result token and | |
933 | return it if present. | |
934 | (cpp_token_val_index): Handle CPP_PRAGMA. | |
935 | * macro.c (cpp_builtin_macro_text): Correct comment. | |
936 | (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma. | |
937 | ||
0fd9e8dd SB |
938 | 2004-09-06 Serge Belyshev <belyshev@lubercy.com> |
939 | ||
940 | PR preprocessor/14699 | |
941 | * symtab.c (ht_dump_statistics): Change type of sum_of_squares | |
942 | from size_t to double. | |
943 | ||
39b8ce7f AS |
944 | 2004-08-28 Andreas Schwab <schwab@suse.de> |
945 | Andreas Jaeger <aj@suse.de> | |
946 | ||
947 | * configure.ac: Set PACKAGE correctly. | |
948 | * configure: Regenerated. | |
949 | ||
5d1f4b27 PB |
950 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
951 | ||
952 | * Makefile.in: Add back top_builddir. | |
953 | ||
078e3ffe PB |
954 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
955 | ||
956 | * configure.ac: Replace Automake macro invocations | |
957 | with manual Autoconf checks and substitutions. | |
958 | * configure: Regenerate. | |
959 | * aclocal.m4: Regenerate. | |
960 | * config.in: Regenerate. | |
961 | * Makefile.am: Removed. | |
962 | * Makefile.in: Heavy simplification and reorganization. | |
963 | ||
b3f8d95d MM |
964 | 2004-08-09 Mark Mitchell <mark@codesourcery.com> |
965 | ||
966 | * configure.ac (arm*-*-eabi*): New target. | |
967 | (arm*-*-symbianelf*): Likewise. | |
968 | * configure: Regenerated. | |
969 | ||
72bb2c39 BI |
970 | 2004-07-24 Bernardo Innocenti <bernie@develer.com> |
971 | ||
972 | * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. | |
973 | * directives.c: Use XNEW-family macros from libiberty. | |
974 | * lex.c: Likewise. | |
975 | * macro.c: Likewise. | |
976 | * cpplib.h (cpp_deps_style): Export enum with name. | |
977 | ||
21b11495 | 978 | 2004-07-23 Matthias Klose <doko@debian.org> |
72bb2c39 | 979 | |
21b11495 | 980 | * init.c (init_library): Use PACKAGE for the text domain. |
85eac2a0 | 981 | |
a23ee064 AP |
982 | 2004-07-16 Andris Pavenis <pavenis@latnet.lv> |
983 | ||
984 | PR preprocessor/16366 | |
985 | * internal.h (struct cpp_reader): New field dir_hash. | |
986 | * files.c (make_cpp_dir): Use dir_hash, not file_hash. | |
987 | (_cpp_init_files, _cpp_cleanup_files): Update for new field. | |
988 | ||
a09d4744 NB |
989 | 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk> |
990 | ||
991 | PR preprocessor/16192 | |
992 | PR preprocessor/15913 | |
993 | PR preprocessor/15572 | |
994 | * expr.c (_cpp_parse_expr): Handle remaining cases where an | |
995 | expression is missing. | |
996 | * init.c (post_options): Traditional cpp doesn't do // comments. | |
997 | ||
f58f7def PB |
998 | 2004-06-30 Per Bothner <per@bothner.com> |
999 | ||
1000 | * include/line-map.h (fileline): Remove old typedef. | |
1001 | * internal.h (struct cpp_reader): Use source_location typedef instead. | |
1002 | ||
e83d8d43 ZW |
1003 | 2004-06-26 Zack Weinberg <zack@codesourcery.com> |
1004 | ||
1005 | Partially revert patch of 2004-06-05. | |
1006 | * files.c (search_cache): Remove pfile argument. Don't check | |
1007 | for file that would be found by "" or <> search here... | |
1008 | (_cpp_find_file): ...do it here, before calling find_file_in_dir. | |
1009 | Do not apply directory-of-current-file correction to files | |
1010 | found by this check. Rearrange code slightly. | |
1011 | ||
c0d578e6 GK |
1012 | 2004-06-21 Geoffrey Keating <geoffk@apple.com> |
1013 | ||
1014 | * files.c (should_stack_file): Correct swapped parameters to call | |
1015 | to cb.read_pch. | |
1016 | * pch.c (cpp_valid_state): Handle -fpreprocessed. | |
1017 | ||
159d5224 PB |
1018 | 2004-06-15 Paolo Bonzini <bonzini@gnu.org> |
1019 | ||
1020 | * Makefile.in: Regenerate with automake 1.8.5. | |
1021 | * aclocal.m4: Likewise. | |
1022 | * configure: Regenerate. | |
1023 | ||
2fac9c01 ZW |
1024 | 2004-06-11 Zack Weinberg <zack@codesourcery.com> |
1025 | ||
1026 | * configure.ac: Don't invoke ACX_HEADER_STDBOOL. | |
1027 | * configure, config.in: Regenerate. | |
1028 | * system.h: Unconditionally define bool as unsigned char, | |
1029 | BOOL_BITFIELD as unsigned int. | |
1030 | * .cvsignore: New file. | |
1031 | ||
d8044160 GK |
1032 | 2004-06-09 Geoffrey Keating <geoffk@apple.com> |
1033 | ||
1034 | * traditional.c (push_replacement_text): Set macro->traditional. | |
1035 | (save_replacement_text): Likewise. | |
1036 | * pch.c (cpp_write_pch_state): Don't write list of defined macros. | |
1037 | (struct save_macro_item): Delete. | |
1038 | (struct save_macro_data): Use a character array not the previous | |
1039 | structured format. | |
1040 | (save_macros): Save macro as text not as internal structures. | |
1041 | (cpp_prepare_state): Update for changes to save_macro_data. | |
1042 | (cpp_read_state): Don't read macros defined in PCH. Restore | |
2cf22451 | 1043 | -D macros as text. |
d8044160 GK |
1044 | * macro.c (create_iso_definition): Honour alloc_subobject. |
1045 | Clear traditional flag. | |
1046 | (_cpp_create_definition): Honour alloc_subobject. | |
1047 | * lex.c (cpp_token_val_index): New. | |
1048 | * internal.h: Include cpp-id-data.h. | |
1049 | (uchar): Move definition to cpp-id-data.h. | |
1050 | (U): Likewise. | |
1051 | (cpp_macro): Likewise. | |
1052 | * directives.c (struct answer): Move to cpp-id-data.h. | |
1053 | (do_assert): Honour alloc_subobject. | |
2cf22451 ZW |
1054 | |
1055 | * include/symtab.h (struct ht): Add field 'alloc_subobject'. | |
1056 | * include/cpplib.h (struct cpp_string): Add GTY marker. | |
1057 | (enum cpp_token_fld_kind): New. | |
1058 | (struct cpp_token): Add GTY markers. | |
1059 | (cpp_token_val_index): Prototype. | |
1060 | (CPP_HASHNODE_VALUE_IDX): New. | |
1061 | (struct cpp_hashnode): Don't skip fields of 'value' when marking. | |
1062 | * include/cpp-id-data.h: New file. | |
d8044160 | 1063 | |
0ca8e815 PB |
1064 | 2004-06-09 Paolo Bonzini <bonzini@gnu.org> |
1065 | ||
1066 | * Makefile.am (all-local): New. | |
1067 | * Makefile.in: Regenerate. | |
1068 | ||
b51fa00f RS |
1069 | 2004-06-06 Roger Sayle <roger@eyesopen.com> |
1070 | ||
1071 | * Makefile.am (LIBICONV): Declare. | |
1072 | (makedepend_LDADD): Use LIBICONV. | |
1073 | * Makefile.in: Regenerate. | |
1074 | ||
5e2f3f39 AP |
1075 | 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu> |
1076 | ||
1077 | * Makefile.am (LIBINTL): Declare | |
1078 | (makedepend_LDADD): Use LIBINTL. | |
1079 | * Makefile.in: Regenerate. | |
1080 | ||
c6e83800 ZW |
1081 | 2004-06-05 Zack Weinberg <zack@codesourcery.com> |
1082 | ||
1083 | * Makefile.am: Add makedepend. | |
1084 | * Makefile.in, aclocal.m4: Regenerate. | |
1085 | * charset.c: Insert a space to avoid a warning. | |
1086 | * directives.c: Include mkdeps.h. | |
1087 | (_cpp_handle_directive): Reenable macro expander if appropriate. | |
1088 | (undefine_macros): Inline body of _cpp_free_definition for speed. | |
1089 | Do not call undef callback or _cpp_warn_if_unused_macro. | |
1090 | (cpp_get_deps): New interface. | |
1091 | * files.c (search_cache): Add pfile argument. Check for file | |
1092 | that would be found by "" or <> search here... | |
1093 | (_cpp_find_file): ...not here. Correct recorded start_dir of | |
1094 | files found by directory-of-current-file search that would be | |
1095 | found by "" or <> search. | |
1096 | * init.c (cpp_add_dependency_target): Delete. | |
1097 | * internal.h (struct lexer_state): Add discarding_output flag. | |
1098 | * lex.c (lex_identifier): Compute hash function while scanning. | |
1099 | * macro.c (cpp_scan_nooutput): Disable macro expansion outside | |
1100 | directives. | |
1101 | * makedepend.c: New file. | |
1102 | * mkdeps.c (struct deps): Add vpath vector. | |
1103 | (apply_vpath, deps_add_vpath): New function. | |
1104 | (deps_free): Free vpath vector. | |
1105 | (deps_add_dep, deps_add_target): Use apply_vpath. | |
1106 | * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. | |
1107 | (ht_lookup_with_hash): New function. | |
1108 | * cpplib.h, mkdeps.h: Update prototypes. | |
1109 | * symtab.h: Update prototypes. | |
1110 | (HT_HASHSTEP, HT_FINISH): New macros. | |
1111 | ||
b453c95f GK |
1112 | 2004-05-29 Geoffrey Keating <geoffk@apple.com> |
1113 | ||
1114 | * symtab.c (ht_create): Set entries_owned. | |
1115 | (ht_destroy): Honour entries_owned. | |
1116 | (ht_expand): Likewise. | |
1117 | (ht_load): New. | |
2cf22451 ZW |
1118 | * include/symtab.h (struct ht): New field 'entries_owned' |
1119 | (ht_load): New prototype. | |
b453c95f | 1120 | |
963e23c5 PB |
1121 | 2004-05-26 Paolo Bonzini <bonzini@gnu.org> |
1122 | ||
1123 | PR bootstrap/15651 | |
1124 | * configure.ac: Fix m4 quoting when picking | |
1125 | the size of HOST_WIDE_INT. | |
1126 | * configure: Regenerate. | |
1127 | ||
0429bc77 PB |
1128 | 2004-05-25 Paolo Bonzini <bonzini@gnu.org> |
1129 | ||
1130 | * Makefile.am: the correct directory for | |
1131 | gettext include files is given by @INCINTL@. | |
1132 | * Makefile.in: Regenerate. | |
1133 | ||
c86dd7db PB |
1134 | 2004-05-24 Paolo Bonzini <bonzini@gnu.org> |
1135 | ||
1136 | * system.h [!ENABLE_NLS]: dgettext takes two | |
1137 | parameters. | |
1138 | ||
4f4e53dd PB |
1139 | 2004-05-23 Paolo Bonzini <bonzini@gnu.org> |
1140 | ||
1141 | Moved libcpp from the gcc subdirectory to the toplevel. | |
1142 | * Makefile.am: New file. | |
1143 | * Makefile.in: Regenerate. | |
1144 | * configure.ac: New file. | |
1145 | * configure: Regenerate. | |
1146 | * config.in: Regenerate. | |
1147 | * charset.c: Moved from gcc/cppcharset.c. Add note about | |
1148 | brokenness of input charset detection. Adjust for change | |
1149 | in name of cppucnid.h. | |
1150 | * errors.c: Moved from gcc/cpperror.c. Do not include intl.h. | |
1151 | * expr.c: Moved from gcc/cppexp.c. | |
1152 | * files.c: Moved from gcc/cppfiles.c. Do not include intl.h. | |
1153 | Remove #define of O_BINARY, it is in system.h. | |
1154 | * identifiers.c: Moved from gcc/cpphash.c. | |
1155 | * internal.h: Moved from gcc/cpphash.h. Change header | |
1156 | guard name. All other files adjusted to match name change. | |
1157 | * init.c: Moved from gcc/cppinit.c. | |
1158 | (init_library) [ENABLE_NLS]: Call bindtextdomain. | |
1159 | * lex.c: Moved from gcc/cpplex.c. | |
1160 | * directives.c: Moved from gcc/cpplib.c. | |
1161 | * macro.c: Moved from gcc/cppmacro.c. | |
1162 | * pch.c: Moved from gcc/cpppch.c. Do not include intl.h. | |
1163 | * traditional.c: Moved from gcc/cpptrad.c. | |
1164 | * ucnid.h: Moved from gcc/cppucnid.h. Change header | |
1165 | guard name. | |
1166 | * ucnid.pl: Moved from gcc/cppucnid.pl. | |
1167 | * ucnid.tab: Moved from gcc/cppucnid.tab. Change header | |
1168 | guard name. | |
1169 | * symtab.c: Moved from gcc/hashtable.c. | |
1170 | * line-map.c: Moved from gcc. Do not include intl.h. | |
1171 | * mkdeps.c: Moved from gcc. | |
1172 | * system.h: New file. | |
2cf22451 ZW |
1173 | * include/cpplib.h: Moved from gcc. Change header guard name. |
1174 | * include/line-map.h: Moved from gcc. Change header guard name. | |
1175 | * include/mkdeps.h: Moved from gcc. Change header guard name. | |
1176 | * include/symtab.h: Moved from gcc/hashtable.h. Change header | |
1177 | guard name. |