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