]>
Commit | Line | Data |
---|---|---|
9793dd8e | 1 | 2011-05-29 John Tytgat <John.Tytgat@aaug.net> |
2 | ||
3 | * files.c (read_file_guts): Add test on non-zero value of S_ISREG. | |
4 | ||
cef70b8a | 5 | 2011-05-22 Uros Bizjak <ubizjak@gmail.com> |
6 | ||
7 | PR target/49104 | |
8 | * lex.c (init_vectorized_lexer): Do not set "minimum" when __3dNOW_A__ | |
9 | is defined. Check bit_MMXEXT and bit_CMOV to use search_line_mmx. | |
10 | ||
cdd0bb4b | 11 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
12 | ||
13 | * system.h (ENUM_BITFIELD): Remove. | |
14 | ||
0ff0cd04 | 15 | 2011-04-24 Jakub Jelinek <jakub@redhat.com> |
16 | ||
17 | PR preprocessor/48740 | |
18 | * lex.c (lex_raw_string): When raw string ends with | |
19 | ??) followed by raw prefix and ", ensure it is preprocessed | |
20 | with ??) rather than ??]. | |
21 | ||
dd045aee | 22 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
23 | ||
24 | * files.c (destroy_cpp_file): Remove useless if-before-free. | |
25 | * init.c (cpp_destroy): Likewise. | |
26 | * macro.c (replace_args): Likewise. | |
27 | * pch.c (cpp_valid_state): Likewise. | |
28 | ||
bb7824b5 | 29 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
30 | ||
31 | * files.c (file_hash_eq): Use filename_cmp | |
32 | instead of strcmp. | |
33 | (nonexistent_file_hash_eq): Likewise. | |
34 | (remap_filename): Likewise. | |
35 | Handle absolute DOS-path, | |
36 | (append_file_to_dir): Check for IS_DIR_SEPARATOR | |
37 | instead of slash. | |
38 | (read_name_map): Likewise. | |
39 | * linemap.c (linemap_add): Use filename_cmp | |
40 | instead of strcmp. | |
41 | * mkdeps.c (apply_vpath): Use filename_ncmp | |
42 | instead of strncmp. | |
43 | (deps_restore): Use filename_cmp instead of | |
44 | strcmp. | |
45 | * init.c (read_original_directory): Use | |
46 | IS_DIR_SEPARATOR instead of checking for slash. | |
47 | ||
00e59df9 | 48 | 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com> |
49 | ||
50 | PR preprocessor/48192 | |
51 | * directives.c (do_ifdef): Do not consider conditional macros as | |
52 | being defined. | |
53 | (do_ifndef): Ditto. | |
54 | * expr.c (parse_defined): Ditto. | |
55 | ||
70ebee13 | 56 | 2011-03-18 Richard Henderson <rth@redhat.com> |
57 | ||
58 | PR bootstrap/45381 | |
59 | * lex.c [ALTIVEC] (search_line_fast): Require gcc version 4.5. | |
60 | ||
65861c3e | 61 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
62 | Jakub Jelinek <jakub@redhat.com> | |
63 | ||
64 | PR preprocessor/39213 | |
65 | * directives.c (end_directive): Call _cpp_remove_overlay for deferred | |
66 | pragmas as well in traditional mode. | |
67 | ||
be04fdf9 | 68 | 2010-11-17 Ian Lance Taylor <iant@google.com> |
69 | ||
70 | PR bootstrap/45538 | |
71 | * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS. Remove switch of | |
72 | AC_LANG based on ENABLE_BUILD_WITH_CXX. | |
73 | ||
560ab0b2 | 74 | 2010-11-16 Kai Tietz <kai.tietz@onevision.com> |
75 | ||
76 | PR preprocessor/17349 | |
77 | * lex.c (save_comment): Handle in argument passing c++ | |
78 | comments special. | |
79 | ||
075f1161 | 80 | 2010-11-02 Ian Lance Taylor <iant@google.com> |
81 | ||
82 | * configure.ac: Use AC_SYS_LARGEFILE. | |
83 | * configure: Rebuild. | |
84 | * config.in: Rebuild. | |
85 | ||
bc3d3e89 | 86 | 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net> |
075f1161 | 87 | |
bc3d3e89 | 88 | * line-map.h (source_location): Remove obsolete comment |
89 | mentioning location_s. | |
90 | ||
0d601ff4 | 91 | 2010-09-29 Kai Tietz <kai.tietz@onevision.com> |
92 | ||
93 | PR preprocessor/45362 | |
94 | * directives.c (cpp_pop_definition): Make static. | |
95 | (do_pragma_push_macro): Reworked to store text | |
96 | definition. | |
97 | (do_pragma_pop_macro): Add free text definition. | |
98 | (cpp_push_definition): Removed. | |
99 | * include/cpplib.h (cpp_push_definition): Removed. | |
100 | (cpp_pop_definition): Likewise. | |
101 | * internal.h (def_pragma_macro): Remove member 'value' | |
102 | and add new members 'definition', 'line', | |
103 | 'syshdr', 'sued' and 'is_undef'. | |
104 | * pch.c (_cpp_restore_pushed_macros): Rework to work | |
105 | on text definition and store additional macro flags. | |
106 | (_cpp_save_pushed_macros): Likewise. | |
107 | ||
5ae82d58 | 108 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
109 | ||
110 | * include/cpplib.h (cpp_options): Rename warn_deprecated, | |
111 | warn_traditional, warn_long_long and pedantic. | |
112 | * directives.c (directive_diagnostics, _cpp_handle_directive): | |
113 | Update names of cpp_options members. | |
114 | * expr.c (cpp_classify_number, eval_token): Update names of | |
115 | cpp_options members. | |
116 | * init.c (cpp_create_reader, post_options): Update names of | |
117 | cpp_options members. | |
118 | * internal.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Update names of | |
119 | cpp_options members. | |
120 | * macro.c (parse_params): Update names of cpp_options members. | |
121 | ||
ced52ffd | 122 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
123 | ||
124 | * init.c: Fix type name in comment. | |
125 | ||
df863d33 | 126 | 2010-08-31 Jakub Jelinek <jakub@redhat.com> |
127 | ||
128 | PR preprocessor/45457 | |
129 | * expr.c (parse_defined): Call pfile->cb.user_builtin_macro hook if | |
130 | needed. | |
131 | * directives.c (do_ifdef, do_ifndef): Likewise. | |
132 | ||
9e76b586 | 133 | 2010-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
134 | ||
135 | * system.h [HAVE_INTTYPES_H]: Include inttypes.h. | |
136 | ||
b315ae35 | 137 | 2010-08-24 Richard Henderson <rth@redhat.com> |
138 | ||
139 | PR bootstrap/45376 | |
140 | * configure.ac (HAVE_SSE4): New check. | |
141 | * configure, config.in: Rebuild. | |
142 | * lex.c (search_line_sse42): Omit if !HAVE_SSE4. | |
143 | ||
8ab29ece | 144 | 2010-08-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
145 | ||
146 | * lex.c [__sun__ && __svr4__]: Disable init_vectorized_lexer | |
147 | etc. on Solaris 2/x86. | |
148 | ||
2431e8ba | 149 | 2010-08-21 Richard Henderson <rth@redhat.com> |
150 | Andi Kleen <ak@linux.intel.com> | |
151 | David S. Miller <davem@davemloft.net> | |
152 | ||
153 | * configure.ac (AC_C_BIGENDIAN, AC_TYPE_UINTPTR_T): New tests. | |
154 | (ssize_t): Check via AC_TYPE_SSIZE_T instead of AC_CHECK_TYPE. | |
155 | (ptrdiff_t): Check via AC_CHECK_TYPE. | |
156 | * config.in, configure: Rebuild. | |
157 | * system.h: Include stdint.h, if available. | |
158 | * lex.c (WORDS_BIGENDIAN): Provide default. | |
159 | (acc_char_mask_misalign, acc_char_replicate, acc_char_cmp, | |
160 | acc_char_index, search_line_acc_char, repl_chars, search_line_mmx, | |
161 | search_line_sse2, search_line_sse42, init_vectorized_lexer, | |
162 | search_line_fast): New. | |
163 | (_cpp_clean_line): Use search_line_fast. Restructure the fast | |
164 | loop to make it clear when we're leaving the loop. Stay in the | |
165 | fast loop for non-trigraph '?'. | |
166 | ||
25692381 | 167 | 2010-06-11 Jakub Jelinek <jakub@redhat.com> |
168 | ||
169 | * include/cpplib.h (struct cpp_callbacks): Add user_builtin_macro | |
170 | callback. | |
171 | (enum cpp_builtin_type): Add BT_FIRST_USER and BT_LAST_USER. | |
172 | (cpp_macro_definition): Remove const qual from second argument. | |
173 | * macro.c (enter_macro_context): Call user_builtin_macro callback for | |
174 | NODE_BUILTIN !NODE_USED macros. | |
175 | (warn_of_redefinition): Likewise. Remove const qual from second | |
176 | argument. | |
177 | (cpp_macro_definition): Likewise. | |
178 | * pch.c (write_macdef, save_macros): Call user_builtin_macro callback | |
179 | for NODE_BUILTIN !NODE_USED macros. | |
180 | ||
abf6a617 | 181 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
182 | ||
183 | * include/cpplib.h (struct cpp_options): Remove show_column. | |
184 | * init.c (cpp_create_reader, post_options): Don't set show_column. | |
185 | ||
9d135bb6 | 186 | 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com> |
187 | ||
188 | PR bootstrap/44432 | |
189 | * configure.ac: Before using ZW_PROG_COMPILER_DEPENDENCIES for C++, | |
190 | check that C++ compiler works. | |
191 | * configure: Regenerate. | |
192 | ||
ba72912a | 193 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
194 | ||
195 | * include/symtab.h (ht_identifier_ptr): New. | |
196 | ||
050318d9 | 197 | 2010-06-03 Joern Rennecke <joern.rennecke@embecosm.com> |
198 | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | |
199 | ||
200 | PR bootstrap/42798 | |
201 | * configure.ac: Check for declaration of 'basename(char *)'. | |
202 | * configure: Regenerate. | |
203 | * config.in: Regenerate. | |
204 | ||
39012afb | 205 | 2010-04-25 Joseph Myers <joseph@codesourcery.com> |
206 | ||
207 | * include/cpplib.h (enum c_lang): Add CLK_GNUC1X and CLK_STDC1X. | |
208 | * init.c (lang_defaults): Add entries for new language variants. | |
209 | (cpp_init_builtins): Define __STDC_VERSION__ to 201000L for C1X | |
210 | variants. | |
211 | ||
721e9705 | 212 | 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
213 | ||
214 | PR cpp/43195 | |
215 | * files.c (report_missing_guard): Test for #pragma once. | |
216 | ||
3a79f5da | 217 | 2010-04-07 Simon Baldwin <simonb@google.com> |
218 | ||
219 | * directives.c (do_diagnostic): Add warning reason argument, | |
220 | call appropriate error reporting function for code. | |
221 | (directive_diagnostics): Call specific warning functions with | |
222 | warning reason where appropriate. | |
223 | (do_error, do_warning, do_pragma_dependency): Add warning reason | |
224 | argument to do_diagnostic calls. | |
225 | * macro.c (_cpp_warn_if_unused_macro, enter_macro_context, | |
226 | _cpp_create_definition): Call specific warning functions with | |
227 | warning reason where appropriate. | |
228 | * Makefile.in: Add new diagnostic functions to gettext translations. | |
229 | * include/cpplib.h (struct cpp_callbacks): Add warning reason code | |
230 | to error callback. | |
231 | (CPP_DL_WARNING, CPP_DL_WARNING_SYSHDR, CPP_DL_PEDWARN, CPP_DL_ERROR, | |
232 | CPP_DL_ICE, CPP_DL_NOTE, CPP_DL_FATAL): Replace macros with enums. | |
233 | (CPP_W_NONE, CPP_W_DEPRECATED, CPP_W_COMMENTS, | |
234 | CPP_W_MISSING_INCLUDE_DIRS, CPP_W_TRIGRAPHS, CPP_W_MULTICHAR, | |
235 | CPP_W_TRADITIONAL, CPP_W_LONG_LONG, CPP_W_ENDIF_LABELS, | |
236 | CPP_W_NUM_SIGN_CHANGE, CPP_W_VARIADIC_MACROS, | |
237 | CPP_W_BUILTIN_MACRO_REDEFINED, CPP_W_DOLLARS, CPP_W_UNDEF, | |
238 | CPP_W_UNUSED_MACROS, CPP_W_CXX_OPERATOR_NAMES, CPP_W_NORMALIZE, | |
239 | CPP_W_INVALID_PCH, CPP_W_WARNING_DIRECTIVE): New enums for cpp | |
240 | warning reason codes. | |
241 | (cpp_warning, cpp_pedwarning, cpp_warning_syshdr, | |
242 | cpp_warning_with_line, cpp_pedwarning_with_line, | |
243 | cpp_warning_with_line_syshdr): New specific error reporting functions. | |
244 | * pch.c (cpp_valid_state): Call specific warning functions with | |
245 | warning reason where appropriate. | |
246 | * errors.c (cpp_diagnostic, cpp_diagnostic_with_line): New central | |
247 | diagnostic handlers. | |
248 | (cpp_warning, cpp_pedwarning, cpp_warning_syshdr, | |
249 | cpp_warning_with_line, cpp_pedwarning_with_line, | |
250 | cpp_warning_with_line_syshdr): New specific error reporting functions. | |
251 | * expr.c (cpp_classify_number, eval_token, num_unary_op): Call | |
252 | specific warning functions with warning reason where appropriate. | |
253 | * lex.c (_cpp_process_line_notes, _cpp_skip_block_comment, | |
254 | warn_about_normalization, lex_identifier_intern, lex_identifier, | |
255 | _cpp_lex_direct): Ditto. | |
256 | * charset.c (_cpp_valid_ucn, convert_hex, convert_escape, | |
257 | narrow_str_to_charconst): Ditto. | |
258 | ||
56e2ce2d | 259 | 2010-04-06 Jakub Jelinek <jakub@redhat.com> |
260 | ||
261 | PR preprocessor/43642 | |
262 | * lex.c (lex_raw_string): Change type of TYPE variable to | |
263 | unsigned char. | |
264 | ||
e0934084 | 265 | 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
266 | ||
267 | * aclocal.m4: Regenerate. | |
268 | ||
7fe0ef3a | 269 | 2010-03-29 Jason Merrill <jason@redhat.com> |
270 | ||
3a45011c | 271 | More N3077 raw string changes |
272 | * charset.c (cpp_interpret_string): Don't transform UCNs in raw | |
273 | strings. | |
274 | * lex.c (bufring_append): Split out from... | |
275 | (lex_raw_string): ...here. Undo trigraph and line splicing | |
276 | transformations. Do process line notes in multi-line literals. | |
277 | (_cpp_process_line_notes): Ignore notes that were already handled. | |
278 | ||
7fe0ef3a | 279 | Some raw string changes from N3077 |
280 | * charset.c (cpp_interpret_string): Change inner delimiters to (). | |
281 | * lex.c (lex_raw_string): Likewise. Also disallow '\' in delimiter. | |
282 | ||
65f40615 | 283 | 2010-02-11 Jakub Jelinek <jakub@redhat.com> |
284 | ||
285 | * init.c (read_original_filename): Don't call read_original_directory | |
286 | if _cpp_handle_directive returns 0. | |
287 | ||
0074cd57 | 288 | 2010-01-01 Joseph Myers <joseph@codesourcery.com> |
289 | ||
290 | PR preprocessor/41947 | |
291 | * expr.c (cpp_classify_number): Give error for hexadecimal | |
292 | floating-point constant with no digits before or after point. | |
293 | ||
116f0a5f | 294 | 2009-11-20 Arnaud Charlet <charlet@adacore.com> |
295 | ||
296 | * macro.c (enter_macro_context): Call cb.used callback if defined. | |
297 | * directives.c (do_idef, do_ifndef): Ditto. | |
298 | * include/cpplib.h (struct cpp_callbacks): Add used callback. | |
299 | ||
038c21f1 | 300 | 2009-11-11 Kai Tietz <kai.tietz@onevision.com> |
301 | ||
302 | * directives.c (do_pragma_push_macro): New pragma handler. | |
303 | (do_pragma_pop_macro): Likewise. | |
304 | (_cpp_init_internal_pragmas): Add push_macro and | |
305 | pop_macro handler to internal pragmas. | |
306 | (lex_macro_node_from_str): Removed. | |
307 | (cpp_push_definition): Replace lex_macro_node_from_str | |
308 | by _cpp_lex_identifier. | |
309 | (cpp_pop_definition): Likewise. | |
310 | * internal.h (_cpp_lex_identifier): New prototype. | |
311 | (def_pragma_macro): New structure. | |
312 | (cpp_reader): New member pushed_macros. | |
313 | * lex.c (_cpp_lex_identifier): New function. | |
314 | (lex_identifier_intern): New function. | |
315 | * init.c (cpp_create_reader): Initialize pushed_macros | |
316 | member. | |
317 | (cpp_destroy): Free elements in pushed_macros member. | |
318 | * pch.c (_cpp_save_pushed_macros): New function. | |
319 | (_cpp_restore_pushed_macros): Likewise. | |
320 | (_cpp_restore_pushed_macros): Use _cpp_save_pushed_macros. | |
321 | (cpp_read_state): Use _cpp_restore_pushed_macros. | |
322 | ||
538ba11a | 323 | 2009-10-19 Jakub Jelinek <jakub@redhat.com> |
324 | ||
325 | * charset.c (cpp_init_iconv): Initialize utf8_cset_desc. | |
326 | (_cpp_destroy_iconv): Destroy utf8_cset_desc, char16_cset_desc | |
327 | and char32_cset_desc. | |
328 | (converter_for_type): Handle CPP_UTF8STRING. | |
329 | (cpp_interpret_string): Handle CPP_UTF8STRING and raw-strings. | |
330 | * directives.c (get__Pragma_string): Handle CPP_UTF8STRING. | |
331 | (parse_include): Reject raw strings. | |
332 | * include/cpplib.h (CPP_UTF8STRING): New token type. | |
333 | * internal.h (struct cpp_reader): Add utf8_cset_desc field. | |
334 | * lex.c (lex_raw_string): New function. | |
335 | (lex_string): Handle u8 string literals, call lex_raw_string | |
336 | for raw string literals. | |
337 | (_cpp_lex_direct): Call lex_string even for u8" and {,u,U,L,u8}R" | |
338 | sequences. | |
339 | * macro.c (stringify_arg): Handle CPP_UTF8STRING. | |
340 | ||
af4d2883 | 341 | 2009-10-14 Jakub Jelinek <jakub@redhat.com> |
342 | ||
343 | PR preprocessor/41543 | |
344 | * include/line-map.h (RESERVED_LOCATION_COUNT): Define. | |
345 | * line-map.c (linemap_init): Initialize highest_location and | |
346 | highest_line to RESERVED_LOCATION_COUNT-1 instead of 0. | |
347 | ||
8e83a065 | 348 | 2009-10-09 Jason Merrill <jason@redhat.com> |
349 | ||
350 | * charset.c (_cpp_valid_ucn): Update C++0x restrictions. | |
351 | ||
8f2ff12e | 352 | 2009-10-09 Neil Vachharajani <nvachhar@google.com> |
353 | ||
354 | * directives.c (DIRECTIVE_TABLE): Remove DEPRECATED from ident and | |
355 | sccs. | |
356 | ||
fc25a827 | 357 | 2009-09-23 Loren J. Rittle <ljrittle@acm.org> |
358 | ||
359 | * configure.ac (AC_CHECK_HEADERS after AC_LANG(C++)): Add sys/stat.h. | |
360 | * configure: Rebuilt. | |
361 | ||
fa12a6a5 | 362 | 2009-09-22 Richard Guenther <rguenther@suse.de> |
363 | ||
364 | PR pch/38987 | |
365 | * files.c (pch_open_file): Disallow non-toplevel PCH inclusion. | |
366 | ||
c25f2689 | 367 | 2009-09-18 Chris Demetriou <cgd@google.com> |
368 | ||
369 | PR preprocessor/28435: | |
370 | * include/cpplib.h (struct cpp_options): Add new member | |
371 | deps.need_preprocessor_output. | |
372 | * files.c (open_file_failed): If preprocessor output is needed | |
373 | always report an error. | |
374 | ||
a4f7c8f7 | 375 | 2009-09-13 Kai Tietz <kai.tietz@onevision.com> |
376 | ||
377 | * configure.ac: Set for i?86-w64-mingw* | |
378 | need_64bit_hwint to yes. | |
379 | * configure: Regenerated. | |
380 | ||
3f24af9b | 381 | 2009-09-10 Jason Merrill <jason@redhat.com> |
382 | ||
383 | * directives.c (cpp_define): constify. | |
384 | ||
2a50bfcf | 385 | 2009-09-02 Ian Lance Taylor <iant@google.com> |
386 | ||
387 | * macro.c (stringify_arg): Escape CPP_WCHAR tokens. | |
388 | ||
81a71e2b | 389 | 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
390 | ||
391 | * configure.ac (AC_PREREQ): Bump to 2.64. | |
392 | ||
cd9a469c | 393 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
394 | ||
395 | * aclocal.m4: Regenerate. | |
396 | * config.in: Regenerate. | |
397 | * configure: Regenerate. | |
398 | ||
ed184982 | 399 | 2009-08-17 Tom Tromey <tromey@redhat.com> |
400 | ||
401 | PR preprocessor/41067: | |
402 | * charset.c (convert_escape): Add missing ":" to error text. | |
403 | ||
7ad75c55 | 404 | 2009-07-27 Douglas B Rupp <rupp@gnat.com> |
405 | ||
406 | * include/cpplib.h (INO_T_CPP): New macro. | |
407 | (struct cpp_dir): Use it. | |
408 | ||
80b97ef3 | 409 | 2009-07-20 Jerry Quinn <jlquinn@optonline.net> |
410 | ||
411 | PR regression/40800 | |
412 | * configure.ac: Use = instead of == for testing | |
413 | ENABLE_BUILD_WITH_CXX. | |
414 | * configure: Rebuild. | |
415 | ||
723ebaea | 416 | 2009-07-17 Jerry Quinn <jlquinn@optonline.net> |
417 | ||
418 | * directives.c (do_linemarker, do_line): Use CPP_STRING for | |
419 | ignored enum value. | |
420 | * files.c (find_file_in_dir): Add cast from void* to char*. | |
421 | * symtab.c (ht_lookup_with_hash): Add cast from void* to char*. | |
422 | * Makefile.in: (WARN_CFLAGS): Use general and C-specific | |
423 | warnings. | |
424 | (CXX, CXXFLAGS, WARN_CXXFLAGS, ALL_CXXFLAGS, | |
425 | ENABLE_BUILD_WITH_CXX, CCDEPMODE, CXXDEPMODE, COMPILER, | |
426 | COMPILER_FLAGS): New. | |
427 | (DEPMODE): Set from CCDEPMODE or CXXDEPMODE. | |
428 | (COMPILE.base): Use COMPILER instead of CC. Use COMPILER_FLAGS | |
429 | instead of ALL_CFLAGS. | |
430 | * configure.ac: Invoke AC_PROG_CXX. Separate C-specific warnings | |
431 | from other warnings. Add -Wc++-compat to C-specific warnings. | |
432 | Check for --enable-build-with-cxx. Set and substitute | |
433 | ENABLE_BUILD_WITH_CXX. Invoke ZW_PROG_COMPILER_DEPENDENCIES | |
434 | according to ENABLE_BUILD_WITH_CXX. Invoke AC_LANG before | |
435 | AC_CHECK_HEADERS. | |
436 | * configure: Rebuild. | |
437 | * include/cpp-id-data.h: Remove extern "C". | |
438 | * include/line-map.h: Likewise. | |
439 | * include/mkdeps.h: Likewise. | |
440 | * include/symtab.h: Likewise. | |
441 | * internal.h: Likewise. | |
442 | ||
78ed8e3d | 443 | 2009-06-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
444 | ||
445 | * directives.c (parse_include): Add location argument. Update all | |
446 | calls. | |
447 | (parse_answer): Likewise. | |
448 | (do_include_common): Error with exact location. | |
449 | (parse_assertion): Likewise. | |
450 | ||
46821594 | 451 | 2009-06-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
452 | ||
453 | * expr.c (num_div_op): Take explicit location. | |
454 | ||
52b290f1 | 455 | 2009-06-17 Ian Lance Taylor <iant@google.com> |
456 | ||
457 | * include/cpplib.h (progname): Don't declare. | |
458 | ||
2a6a6991 | 459 | 2009-06-12 Ian Lance Taylor <iant@google.com> |
460 | ||
461 | * include/cpplib.h (struct cpp_options): Add | |
462 | warn_cxx_operator_names field. | |
463 | (NODE_WARN_OPERATOR): Define. | |
464 | (struct cpp_hashnode): Increase flags field to 10 bits, decrease | |
465 | type to 6 bits. | |
466 | * init.c (mark_named_operators): Add flags parameter. | |
467 | (cpp_post_options): Pick flags value to pass to | |
468 | mark_named_operators. | |
469 | * lex.c (lex_identifier): If NODE_WARN_OPERATOR is set, warn that | |
470 | identifier is an operator name in C++. | |
471 | ||
b559b9e2 | 472 | 2009-06-01 Aldy Hernandez <aldyh@redhat.com> |
473 | ||
474 | * include/line-map.h (LAST_SOURCE_COLUMN): New. | |
475 | ||
e61157d7 | 476 | 2009-06-01 Ian Lance Taylor <iant@google.com> |
477 | ||
478 | * include/cpp-id-data.h: Add extern "C". | |
479 | * include/line-map.h: Likewise. | |
480 | * include/mkdeps.h: Likewise. | |
481 | * include/symtab.h: Likewise. | |
482 | * internal.h: Likewise. | |
483 | ||
26dbec0a | 484 | 2009-05-15 Ian Lance Taylor <iant@google.com> |
485 | ||
486 | * include/cpplib.h (enum cpp_builtin_type): Rename from enum | |
487 | builtin_type. Change all uses. | |
488 | ||
5b500807 | 489 | 2009-05-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
490 | ||
491 | PR cpp/36674 | |
492 | * directives (do_linemarker): Compensate for the increment in | |
493 | location that occurs when we reach the end of line. | |
494 | * files (_cpp_stack_include): Mention _cpp_find_file in the | |
495 | comment. | |
496 | ||
2ee04baa | 497 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
498 | ||
499 | * include/cpplib.h (enum cpp_token_fld_kind): Add | |
500 | CPP_TOKEN_FLD_TOKEN_NO. | |
501 | (struct cpp_macro_arg, struct cpp_identifier): Define. | |
502 | (union cpp_token_u): Use struct cpp_identifier for identifiers. | |
503 | Use struct cpp_macro_arg for macro arguments. Add token_no for | |
504 | CPP_PASTE token numbers. | |
505 | * directives.c (_cpp_handle_directive, lex_macro_node, do_pragma, | |
506 | do_pragma_poison, parse_assertion): Use val.node.node in place of | |
507 | val.node. | |
508 | * expr.c (parse_defined, eval_token): Use val.node.node in place | |
509 | of val.node. | |
510 | * lex.c (cpp_ideq, _cpp_lex_direct, cpp_token_len, | |
511 | cpp_spell_token, cpp_output_token, _cpp_equiv_tokens, | |
512 | cpp_token_val_index): Use val.macro_arg.arg_no or val.token_no in | |
513 | place of val.arg_no. Use val.node.node in place of val.node. | |
514 | * macro.c (replace_args, cpp_get_token, parse_params, | |
515 | lex_expansion_token, create_iso_definition, cpp_macro_definition): | |
516 | Use val.macro_arg.arg_no or val.token_no in place of val.arg_no. | |
517 | Use val.node.node in place of val.node. | |
518 | ||
49a657d9 | 519 | 2009-05-03 Joseph Myers <joseph@codesourcery.com> |
520 | ||
521 | * charset.c (one_utf8_to_cppchar): Correct mask used for 5-byte | |
522 | UTF-8 sequences. | |
523 | ||
9c6183dd | 524 | 2009-04-25 Joseph Myers <joseph@codesourcery.com> |
525 | ||
526 | PR preprocessor/39559 | |
527 | * expr.c (cpp_interpret_integer): Use a pedwarn for decimal | |
528 | constants larger than intmax_t in C99 mode. | |
529 | ||
fb1e4f4a | 530 | 2009-04-21 Taras Glek <tglek@mozilla.com> |
531 | ||
532 | * include/cpp-id-data.h: Update GTY annotations to new syntax. | |
533 | * include/cpplib.h: Likewise. | |
534 | * include/line-map.h: Likewise. | |
535 | * include/symtab.h: Likewise. | |
536 | ||
ba99525e | 537 | 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
538 | ||
539 | PR c++/14875 | |
540 | * lex.c (cpp_type2name): Take a flags parameter. Call | |
541 | cpp_named_operator2name for named operators and cpp_digraph2name | |
542 | for digraphs. | |
543 | (cpp_digraph2name): New. | |
544 | (cpp_spell_token): Use it. | |
545 | (cpp_output_token): Likewise. | |
546 | * include/cpplib.h (cpp_type2name): Update declaration. | |
547 | * init.c (cpp_named_operator2name): New. | |
548 | * internal.h (cpp_named_operator2name): Declare. | |
549 | ||
9ab71c6b | 550 | 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
551 | ||
552 | PR c++/13358 | |
553 | * init.c (cpp_create_reader): Wlong_long is disabled by default. | |
554 | * expr.c (cpp_classify_number): Give different messages for C and | |
555 | C++ front-ends. | |
556 | ||
941f2388 | 557 | 2009-04-19 Joseph Myers <joseph@codesourcery.com> |
558 | ||
559 | PR preprocessor/20078 | |
560 | * include/cpp-id-data.h (struct cpp_macro): Add extra_tokens | |
561 | field. | |
562 | * include/cpplib.h (SP_DIGRAPH, SP_PREV_WHITE): Define. | |
563 | (struct cpp_token): Change flags to unsigned short. | |
564 | * lex.c (_cpp_lex_direct): Initialize arg_no for CPP_PASTE tokens. | |
565 | (_cpp_equiv_tokens): Check arg_no for CPP_PASTE tokens. | |
566 | (cpp_token_val_index): Return CPP_TOKEN_FLD_ARG_NO for CPP_PASTE | |
567 | tokens. | |
568 | * macro.c (macro_real_token_count): New. | |
569 | (enter_macro_context, replace_args): Use macro_real_token_count. | |
570 | (create_iso_definition): Record whitespace surrounding and digraph | |
571 | spelling of # and ## tokens using SP_PREV_WHITE and SP_DIGRAPH. | |
572 | Set extra_tokens and save CPP_PASTE tokens with arg_no set for | |
573 | multiple consecutive ## tokens. | |
574 | (_cpp_create_definition): Initialize extra_tokens. | |
575 | (cpp_macro_definition): Use macro_real_token_count. | |
576 | ||
3e52c418 | 577 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
578 | ||
579 | * directives.c (parse_include): Pass true to check_eol. | |
580 | ||
1eecdb28 | 581 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
582 | ||
583 | PR preprocessor/39646 | |
584 | * include/line-map.h (enum lc_reason): Add LC_RENAME_VERBATIM. | |
585 | * line-map.c (linemap_add): Handle LC_RENAME_VERBATIM. | |
586 | * directives.c (do_line, do_linemarker): Use LC_RENAME_VERBATIM in | |
587 | place of LC_RENAME. | |
588 | ||
6cda323a | 589 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
590 | ||
591 | PR preprocessor/39647 | |
592 | * directives.c (check_eol): Add parameter expand. | |
593 | (do_undef, parse_include, do_line, do_linemarker, do_ident, | |
594 | do_pragma_once, do_pragma_system_header, do_ifdef, do_ifndef, | |
595 | do_else, do_endif, do_assert, do_unassert): All callers changed. | |
596 | Pass true from do_line, false elsewhere. | |
597 | ||
e21164ef | 598 | 2009-04-12 Joseph Myers <joseph@codesourcery.com> |
599 | ||
600 | PR preprocessor/31869 | |
601 | * macro.c (stringify_arg): Handle NULL source token in padding | |
602 | token where previous padding token did not have source token with | |
603 | preceding whitespace. | |
604 | ||
6bc9506f | 605 | 2009-04-09 Jakub Jelinek <jakub@redhat.com> |
606 | ||
607 | * Makefile.in: Change copyright header to refer to version | |
608 | 3 of the GNU General Public License and to point readers at the | |
609 | COPYING3 file and the FSF's license web page. | |
610 | * charset.c: Likewise. | |
611 | * directives-only.c: Likewise. | |
612 | * directives.c: Likewise. | |
613 | * errors.c: Likewise. | |
614 | * expr.c: Likewise. | |
615 | * files.c: Likewise. | |
616 | * identifiers.c: Likewise. | |
617 | * include/cpp-id-data.h: Likewise. | |
618 | * include/cpplib.h: Likewise. | |
619 | * include/line-map.h: Likewise. | |
620 | * include/mkdeps.h: Likewise. | |
621 | * include/symtab.h: Likewise. | |
622 | * init.c: Likewise. | |
623 | * internal.h: Likewise. | |
624 | * lex.c: Likewise. | |
625 | * line-map.c: Likewise. | |
626 | * macro.c: Likewise. | |
627 | * makeucnid.c: Likewise. | |
628 | * mkdeps.c: Likewise. | |
629 | * pch.c: Likewise. | |
630 | * symtab.c: Likewise. | |
631 | * system.h: Likewise. | |
632 | * traditional.c: Likewise. | |
633 | * ucnid.tab: Likewise. | |
634 | * ucnid.h: Regenerate. | |
635 | ||
5840fdcf | 636 | 2009-04-01 Janis Johnson <janis187@us.ibm.com> |
637 | ||
f8ed6d41 | 638 | PR c/39027 |
639 | * include/cpplib.h (CPP_N_DEFAULT): Define. | |
640 | * expr.c (interpret_float_suffix): Recognize d or D for double, | |
641 | return new value for default. | |
642 | (cpp_classify_number): Issue pedwarn for use of d or D in suffix. | |
643 | ||
5840fdcf | 644 | PR c/33466 |
645 | * expr.c (interpret_float_suffix): Reject invalid suffix that uses | |
646 | letters from decimal float and fixed-point suffixes. | |
647 | ||
ff903809 | 648 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
649 | ||
650 | PR preprocessor/15638 | |
651 | * files.c (_cpp_find_file): Call open_file_failed after diagnosing | |
652 | invalid PCH. | |
653 | (open_file_failed): Make error for missing file fatal. | |
654 | * include/cpplib.h (CPP_DL_FATAL): Define. | |
655 | ||
bfba65a4 | 656 | 2009-03-30 Sergiy Vyshnevetskiy <serg@vostok.net> |
657 | ||
658 | PR preprocessor/31932: | |
659 | * internal.h: Don't mention HAVE_ICONV_H. | |
660 | * configure, config.in: Rebuild. | |
661 | * configure.ac: Don't check for iconv.h. | |
662 | ||
102a7306 | 663 | 2009-03-30 Tom Tromey <tromey@redhat.com> |
664 | ||
665 | PR preprocessor/39512: | |
666 | * line-map.c (linemap_init): Initialize 'reallocator' field. | |
667 | ||
4514949a | 668 | 2009-03-30 Jakub Jelinek <jakub@redhat.com> |
669 | ||
670 | PR target/39558 | |
671 | * macro.c (cpp_get_token): If macro_to_expand returns NULL | |
672 | and used some tokens, add CPP_PADDING before next token. | |
673 | ||
7f5f3953 | 674 | 2009-03-29 Joseph Myers <joseph@codesourcery.com> |
675 | ||
676 | PR preprocessor/34695 | |
677 | * makedepend.c: Remove. | |
678 | * Makefile.in (makedepend_OBJS, makedepend$(EXEEXT)): Remove. | |
679 | (all, clean, TAGS_SOURCES, include): Remove makedepend handling. | |
680 | * directives.c (cpp_errors): Remove. | |
681 | * errors.c (print_location, _cpp_begin_message, v_message): | |
682 | Remove. | |
683 | (cpp_error, cpp_error_with_line): Always use error callback. | |
684 | (cpp_error, cpp_error_with_line, cpp_errno): Return bool. | |
685 | * include/cpplib.h (cpp_options): Remove pedantic_errors, | |
686 | inhibit_warnings, warn_system_headers, inhibit_errors, | |
687 | warnings_are_errors, client_diagnostic. | |
688 | (cpp_callbacks): Add extra arguments to error callback; make it | |
689 | return bool. | |
690 | (cpp_finish): Return void. | |
691 | (cpp_destroy): Remove inaccurate comment about return value. | |
692 | (cpp_errors, CPP_DL_EXTRACT, CPP_DL_WARNING_P): Remove. | |
693 | (CPP_DL_NOTE): Define. | |
694 | * include/line-map.h (linemap_print_containing_files): Remove. | |
695 | * init.c (cpp_finish): Do not check for or return number of | |
696 | errors. | |
697 | * internal.h (cpp_reader): Remove errors field. | |
698 | * line-map.c (linemap_print_containing_files): Remove. | |
699 | * macro.c (_cpp_create_definition): Use CPP_DL_NOTE for message | |
700 | about previous definition. Only emit it if previous diagnostic | |
701 | was emitted. | |
702 | ||
d5a78dd0 | 703 | 2009-03-28 Joseph Myers <joseph@codesourcery.com> |
704 | ||
705 | * Makefile.in (po/$(PACKAGE).pot): Use $(mkinstalldirs) not | |
706 | mkinstalldirs. | |
707 | ||
0ac758f7 | 708 | 2009-03-18 Jakub Jelinek <jakub@redhat.com> |
709 | ||
710 | * include/cpplib.h (struct cpp_dir): Reorder fields for 64-bit hosts. | |
711 | ||
7811eab5 | 712 | 2009-02-21 Joseph Myers <joseph@codesourcery.com> |
713 | ||
714 | * lex.c (lex_string): Return a CPP_LESS token for missing '>' in a | |
715 | header name. | |
716 | (_cpp_lex_direct): Handle this. | |
717 | ||
b5c49426 | 718 | 2009-02-15 Richard Guenther <rguenther@suse.de> |
719 | ||
720 | Revert last change. | |
721 | ||
76549266 | 722 | 2009-02-13 Richard Guenther <rguenther@suse.de> |
723 | ||
724 | * configure.ac: Enable LFS. | |
725 | * configure: Re-generate. | |
726 | * config.in: Likewise. | |
727 | ||
e7ae053d | 728 | 2009-01-05 Ben Elliston <bje@au.ibm.com> |
729 | ||
730 | * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir. | |
731 | (.po.pox): Likewise. | |
732 | (po/$(PACKAGE).pot): Likewise. | |
733 | ||
c1203b1c | 734 | 2008-12-10 Alexandre Oliva <aoliva@redhat.com> |
735 | ||
736 | PR target/37033 | |
737 | * pch.c (cpp_valid_state): Improve message for poisoned symbols. | |
738 | Allow for differences in __GCC_HAVE_DWARF2_CFI_ASM. | |
739 | ||
cd740bd5 | 740 | 2008-11-29 Joseph Myers <joseph@codesourcery.com> |
741 | ||
742 | * lex.c (cpp_token_len): Use 6 as default length. | |
743 | ||
ae5c166d | 744 | 2008-10-31 Manuel López-Ibáñez <manu@gcc.gnu.org> |
745 | ||
746 | * expr.c (struct op): Add location. | |
747 | (_cpp_parse_expr): Propagate locations throught the stack | |
748 | of expressions. | |
749 | (reduce): Likewise. | |
750 | (check_promotion): Use explicit location in errors. | |
751 | ||
956c6108 | 752 | 2008-10-05 Matthew Gingell <gingell@adacore.com> |
753 | Arnaud Charlet <charlet@adacore.com> | |
754 | ||
755 | * include/cpplib.h (cpp_comments, cpp_comment_table): New structs. | |
756 | (cpp_get_comments): New function. | |
757 | * internal.h (struct cpp_reader): Add comments field. | |
758 | * init.c (cpp_destroy): Free comments. | |
759 | * lex.c (store_comment, cpp_get_comments): New functions. | |
760 | (comments): New struct. | |
761 | (save_comment): Store comments in comments struct. | |
762 | ||
2ad0b097 | 763 | 2008-09-18 Simon Baldwin <simonb@google.com> |
764 | ||
765 | * include/cpplib.h (struct cpp_options): Add new boolean flag | |
766 | warn_builtin_macro_redefined. | |
767 | * init.c (cpp_create_reader): Initialize warn_builtin_macro_redefined. | |
768 | * (struct builtin_operator): Split out from previous struct builtin, | |
769 | enhance extra const correctness. | |
770 | * (struct builtin_macro): Split out from previous struct builtin, add | |
771 | new always_warn_if_redefined flag, enhance const correctness. | |
772 | * (mark_named_operators): Use struct builtin_operator. | |
773 | * (cpp_init_special_builtins): Use struct builtin_macro, add NODE_WARN | |
774 | to builtins selectively. | |
775 | * macro.c (warn_of_redefinition): Return false if a builtin macro | |
776 | is not flagged with NODE_WARN. | |
777 | ||
408c2285 | 778 | 2008-07-31 Jakub Jelinek <jakub@redhat.com> |
779 | ||
780 | PR preprocessor/36649 | |
781 | * files.c (struct report_missing_guard_data): New type. | |
782 | (report_missing_guard): Put paths into an array instead of printing | |
783 | them right away. Return 1 rather than 0. | |
784 | (report_missing_guard_cmp): New function. | |
785 | (_cpp_report_missing_guards): Sort and print paths gathered by | |
786 | report_missing_guard callback. | |
787 | ||
98e29890 | 788 | 2008-07-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
789 | ||
790 | PR 28079 | |
791 | * directives.c (strtolinenum): Handle overflow. | |
792 | (do_line): Give a warning if line number overflowed. | |
793 | (do_linemarker): Update call to strtolinenum. | |
794 | ||
4999c35b | 795 | 2008-07-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
796 | ||
797 | * include/line-map.h (linenum_type): New typedef. | |
798 | (struct line_map): Use it. | |
799 | (SOURCE_LINE): Second arguments is a LOCATION not a LINE. | |
800 | (SOURCE_COLUMN): Likewise. | |
801 | * macro.c (_cpp_builtin_macro_text): Use linenum_type. Don't store | |
802 | source_location values in a variable of type linenum_type. | |
803 | * directives.c (struct if_stack): Use linenum_type. | |
804 | (strtoul_for_line): Rename as strtolinenum. | |
805 | (do_line): Use linenum_type. | |
806 | (do_linemarker): Use linenum_type and strtolinenum. | |
807 | (_cpp_do_file_change): Use linenum_t. | |
808 | * line-map.c (linemap_add): Likewise. | |
809 | (linemap_line_start): Likewise. | |
810 | * traditional.c (struct fun_macro): 'line' is a source_location. | |
811 | * errors.c (print_location): Use linenum_type. | |
812 | * directives-only.c (_cpp_preprocess_dir_only): Likewise. | |
813 | * internal.h (CPP_INCREMENT_LINE): Likewise. | |
814 | * lex.c (_cpp_skip_block_comment): Use source_location. | |
815 | ||
89768577 | 816 | 2008-07-14 Ben Elliston <bje@au.ibm.com> |
817 | ||
818 | * include/cpplib.h (NODE_CONDITIONAL): New. | |
819 | (struct cpp_callbacks): New macro_to_expand field. | |
820 | (struct cpp_hashnode): Adjust size of flags and type fields. | |
821 | (cpp_peek_token): Prototype. | |
822 | * lex.c (cpp_peek_token): New function. | |
823 | (_cpp_temp_token): Protect pre-existing lookaheads. | |
824 | * macro.c (cpp_get_token): Expand any conditional macros. | |
825 | (_cpp_backup_tokens_direct): New. | |
826 | (_cpp_backup_tokens): Call _cpp_backup_tokens_direct. | |
827 | (warn_of_redefinition): Silently allow redefined conditional | |
828 | macros. | |
829 | (_cpp_create_definition): Remove the conditional flag when a user | |
830 | defines one of the conditional macros. | |
831 | * internal.h (_cpp_backup_tokens_direct): New prototype. | |
832 | ||
403c2b12 | 833 | 2008-06-13 Andrew Haley <aph@redhat.com> |
834 | ||
835 | PR preprocessor/33305 | |
836 | * macro.c (replace_args): Print a warning for empty macro | |
837 | arguments in C89 and C++. | |
838 | ||
5b2c7553 | 839 | 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
840 | ||
841 | * Makefile.in ($(srcdir)/aclocal.m4): Update dependencies. | |
842 | * configure: Regenerate. | |
843 | ||
b9de6413 | 844 | 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
845 | ||
846 | * Makefile.in (datarootdir): New variable. | |
847 | ||
bfa57d81 | 848 | 2008-06-12 H.J. Lu <hongjiu.lu@intel.com> |
849 | ||
850 | PR preprocessor/36479 | |
851 | * charset.c (cpp_interpret_string_notranslate): Also set | |
852 | narrow_cset_desc.width. | |
853 | ||
6af9f7ea | 854 | 2008-06-07 Joseph Myers <joseph@codesourcery.com> |
855 | ||
856 | * configure.ac (parisc*64*-*-*): Remove. | |
857 | * configure: Regenerate. | |
858 | ||
536a48ee | 859 | 2008-05-30 Tom Tromey <tromey@redhat.com> |
860 | ||
861 | PR preprocessor/36320: | |
862 | * internal.h (_cpp_parse_expr): Update. | |
863 | * expr.c (_cpp_parse_expr): Add 'is_if' argument. Update error | |
864 | messages. | |
865 | * directives.c (do_if): Update. | |
866 | (do_elif): Require expression if processing group. | |
867 | ||
f4d02485 | 868 | 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net> |
869 | ||
870 | * include/cpplib.h (struct cpp_dir): Add new field, canonical_name. | |
871 | ||
c0770282 | 872 | 2008-05-21 Tom Tromey <tromey@redhat.com> |
873 | ||
874 | PR preprocessor/27777: | |
875 | * lex.c (cpp_output_line_to_string): New function. | |
876 | * internal.h (_cpp_begin_message): Don't declare. | |
877 | * errors.c (_cpp_begin_message): Now static. | |
878 | * include/cpplib.h (cpp_output_line_to_string): Declare. | |
879 | * directives.c (do_diagnostic): Rewrote. Use | |
880 | cpp_output_line_to_string. Don't use _cpp_begin_message. | |
881 | ||
dfecde36 | 882 | 2008-05-21 Tom Tromey <tromey@redhat.com> |
883 | ||
884 | * include/symtab.h (HT_ALLOCED): Remove. | |
885 | (ht_purge): Declare. | |
886 | * symtab.c (DELETED): New define. | |
887 | (ht_lookup): Update comment. | |
888 | (ht_lookup_with_hash): Handle deleted entries. Remove HT_ALLOCED | |
889 | code. Use subobject allocator for strings, if it exists. | |
890 | (ht_expand): Handle deleted entries. | |
891 | (ht_forall): Likewise. | |
892 | (ht_purge): New function. | |
893 | (ht_dump_statistics): Print deletion statistics. | |
894 | ||
fb9753dc | 895 | 2008-05-13 Tom Tromey <tromey@redhat.com> |
896 | ||
897 | PR preprocessor/22168: | |
898 | * include/cpplib.h (struct cpp_options) <objc>: Update | |
899 | documentation. | |
900 | * expr.c (eval_token): Warn for use of assertions. | |
901 | * directives.c (directive_diagnostics): Warn about extensions. | |
902 | (DEPRECATED): New define. | |
903 | (DIRECTIVE_TABLE): Use it. | |
904 | ||
151e90cc | 905 | 2008-05-06 Tom Tromey <tromey@redhat.com> |
906 | ||
907 | PR preprocessor/35313, PR preprocessor/36088: | |
908 | * expr.c (optab) <QUERY, COMMA>: Set precedence to 4. | |
909 | (reduce) <case CPP_QUERY>: Special case CPP_COMMA and CPP_COLON. | |
910 | ||
2cd62354 | 911 | 2008-05-04 David S. Miller <davem@davemloft.net> |
912 | ||
913 | * configure.ac (sparc*-*-*): Always set need_64bit_hwint to yes. | |
914 | * configure: Regenerate. | |
915 | ||
85e51d59 | 916 | 2008-04-22 Daniel Franke <franke.daniel@gmail.com> |
917 | ||
918 | * include/cpplib.h (cpp_define_formatted): New. | |
919 | * directives.c (cpp_define_formatted): New. | |
920 | ||
d656d07a | 921 | 2008-04-21 Tom Tromey <tromey@redhat.com> |
922 | ||
923 | PR libcpp/33415: | |
924 | * charset.c (_cpp_convert_input): Add buffer_start argument. | |
925 | Ignore UTF-8 BOM if seen. | |
926 | * internal.h (_cpp_convert_input): Add argument. | |
927 | * files.c (struct _cpp_file) <buffer_start>: New field. | |
928 | (destroy_cpp_file): Free buffer_start, not buffer. | |
929 | (_cpp_pop_file_buffer): Likewise. | |
930 | (read_file_guts): Update. | |
931 | ||
924bbf02 | 932 | 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com> |
933 | ||
934 | * include/cpp-id-data.h (UC): Was U, conflicts with U"..." literal. | |
935 | * include/cpplib.h (CHAR16, CHAR32, STRING16, STRING32): New tokens. | |
936 | (struct cpp_options): Added uliterals. | |
937 | (cpp_interpret_string): Update prototype. | |
938 | (cpp_interpret_string_notranslate): Idem. | |
939 | * charset.c (init_iconv_desc): New width member in cset_converter. | |
940 | (cpp_init_iconv): Add support for char{16,32}_cset_desc. | |
941 | (convert_ucn): Idem. | |
942 | (emit_numeric_escape): Idem. | |
943 | (convert_hex): Idem. | |
944 | (convert_oct): Idem. | |
945 | (convert_escape): Idem. | |
946 | (converter_for_type): New function. | |
947 | (cpp_interpret_string): Use converter_for_type, support u and U prefix. | |
948 | (cpp_interpret_string_notranslate): Match changed prototype. | |
949 | (wide_str_to_charconst): Use converter_for_type. | |
950 | (cpp_interpret_charconst): Add support for CPP_CHAR{16,32}. | |
951 | * directives.c (linemarker_dir): Macro U changed to UC. | |
952 | (parse_include): Idem. | |
953 | (register_pragma_1): Idem. | |
954 | (restore_registered_pragmas): Idem. | |
955 | (get__Pragma_string): Support CPP_STRING{16,32}. | |
956 | * expr.c (eval_token): Support CPP_CHAR{16,32}. | |
957 | * init.c (struct lang_flags): Added uliterals. | |
958 | (lang_defaults): Idem. | |
959 | * internal.h (struct cset_converter) <width>: New field. | |
960 | (struct cpp_reader) <char16_cset_desc>: Idem. | |
961 | (struct cpp_reader) <char32_cset_desc>: Idem. | |
962 | * lex.c (digraph_spellings): Macro U changed to UC. | |
963 | (OP, TK): Idem. | |
964 | (lex_string): Add support for u'...', U'...', u"..." and U"...". | |
965 | (_cpp_lex_direct): Idem. | |
966 | * macro.c (_cpp_builtin_macro_text): Macro U changed to UC. | |
967 | (stringify_arg): Support CPP_CHAR{16,32} and CPP_STRING{16,32}. | |
968 | ||
6a88da51 | 969 | 2008-04-18 Paolo Bonzini <bonzini@gnu.org> |
970 | ||
971 | PR bootstrap/35457 | |
972 | * aclocal.m4: Regenerate. | |
973 | * configure: Regenerate. | |
974 | ||
6e6d82ef | 975 | 2008-04-17 Tom Tromey <tromey@redhat.com> |
976 | ||
977 | PR libcpp/34866: | |
978 | * errors.c (cpp_error): Don't reference a token before the start | |
979 | of the current run. | |
980 | ||
f521616b | 981 | 2008-04-16 Tom Tromey <tromey@redhat.com> |
982 | ||
983 | * Makefile.in (TAGS_SOURCES): New variable. | |
984 | (TAGS): New target. | |
985 | ||
fc7383ad | 986 | 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org> |
987 | ||
988 | * configure.ac: (need_64bit_hwint): Need 64bit hwint for sh-*-* | |
989 | and shbe-*-*. | |
990 | * configure: Rebuilt. | |
991 | ||
34c3de48 | 992 | 2008-04-02 Joseph Myers <joseph@codesourcery.com> |
993 | ||
994 | * include/cpplib.h (struct cpp_callbacks): Add used_define, | |
995 | used_undef and before_define. | |
996 | (NODE_USED): Define. | |
997 | * directives.c (do_define, do_undef, undefine_macros, do_ifdef, | |
998 | do_ifndef, cpp_pop_definition): Handle new flag and use new | |
999 | callbacks. | |
1000 | * expr.c (parse_defined): Handle new flag and use new callbacks. | |
1001 | * macro.c (enter_macro_context, _cpp_free_definition): Handle new | |
1002 | flag and use new callbacks. | |
1003 | ||
f2225b1a | 1004 | 2008-04-01 Jakub Jelinek <jakub@redhat.com> |
1005 | ||
1006 | PR pch/13675 | |
1007 | * files.c (struct _cpp_file): Remove pch field. | |
1008 | (pch_open_file): Don't set file->pch, just file->pchname. | |
1009 | (should_stack_file): After pfile->cb.read_pch call | |
1010 | free pchname and clear pchname, don't close file->fd. | |
1011 | Test file->pchname instead of file->pch. Don't close fd after cb. | |
1012 | (_cpp_stack_include): Test file->pchname instead of file->pch. | |
1013 | ||
5a959782 | 1014 | 2008-03-28 Tom Tromey <tromey@redhat.com> |
1015 | ||
1016 | * Makefile.in (POSTCOMPILE): New variable. | |
1017 | (.c.o): Use it. | |
1018 | ||
8302ff7f | 1019 | 2008-03-13 Tom Tromey <tromey@redhat.com> |
1020 | ||
1021 | PR libcpp/35322: | |
1022 | * directives.c (destringize_and_run): Set pfile->directive. | |
1023 | ||
8bd452d9 | 1024 | 2008-03-06 Markus Milleder <markus.milleder@generali.at> |
1025 | ||
1026 | PR preprocessor/35458 | |
1027 | * mkdeps.c (munge): Quote '#' with a '\'. | |
1028 | ||
0c62b06e | 1029 | 2008-02-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1030 | ||
1031 | PR preprocessor/35379 | |
1032 | * mkdeps.c (deps_write): Ensure the first target always appears | |
1033 | in the first column, without leading backslash newline. Avoid | |
1034 | some more extra whitespace. | |
1035 | ||
6b0c1373 | 1036 | 2008-02-25 Thiemo Seufer <ths@mips.com> |
1037 | ||
0c62b06e | 1038 | * Makefile.in ($(srcdir)/config.in): Depend on configure.ac. |
6b0c1373 | 1039 | |
e297899b | 1040 | 2008-02-19 Tom Tromey <tromey@redhat.com> |
1041 | ||
1042 | * traditional.c (lex_identifier): Use CPP_HASHNODE. | |
1043 | * lex.c (lex_identifier): Use CPP_HASHNODE. | |
1044 | * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Wrap in | |
1045 | do-while. | |
1046 | * identifiers.c (alloc_node): Change return type. | |
1047 | (_cpp_init_hashtable): Don't cast 'alloc_node'. | |
1048 | (proxy_assertion_broken): New declaration. | |
1049 | (cpp_forall_identifiers): Move comment. | |
1050 | * line-map.c (linemap_add): Comment fix. | |
1051 | (linemap_line_start): Indentation fix. | |
1052 | ||
45f9f140 | 1053 | 2008-01-25 Jakub Jelinek <jakub@redhat.com> |
1054 | ||
1055 | PR preprocessor/34692 | |
1056 | * macro.c (collect_args): Add pragma_buff argument. Push | |
1057 | CPP_PRAGMA ... CPP_PRAGMA_EOL tokens to *pragma_buff, rather | |
1058 | than into arguments. Reset prevent_expansion and parsing_args | |
1059 | state at CPP_PRAGMA_EOL/CPP_EOF. | |
1060 | (funlike_invocation_p): Add pragma_buff argument, pass it through | |
1061 | to collect_args. | |
1062 | (enter_macro_context): Add result argument. Adjust | |
1063 | funlike_invocation_p caller. Emit all deferred pragma tokens | |
1064 | gathered during collect_args before the expansion, add a padding | |
1065 | token. Return 2 instead of 1 if any pragma tokens were prepended. | |
1066 | (cpp_get_token): If enter_macro_context returns 2, don't return | |
1067 | a padding token, instead cycle to grab CPP_PRAGMA token. | |
1068 | * directives.c (_cpp_handle_directive): If was_parsing_args | |
1069 | in deferred pragma, leave parsing_args and prevent_expansion as is. | |
1070 | ||
a56d0856 | 1071 | 2008-01-22 Tom Tromey <tromey@redhat.com> |
1072 | ||
45f9f140 | 1073 | PR c++/34859 |
a56d0856 | 1074 | * macro.c (_cpp_create_definition): Handle __STDC_LIMIT_MACROS and |
1075 | __STDC_CONSTANT_MACROS. | |
1076 | ||
7a1a608c | 1077 | 2008-01-07 Fred Fish <fnf@specifix.com> |
1078 | ||
45f9f140 | 1079 | PR preprocessor/30363 |
7a1a608c | 1080 | * traditional.c (replace_args_and_push): Add local variable |
1081 | cxtquote, calculate the replacement text size assuming a | |
1082 | worst case of every input character quoted with backslash, | |
1083 | and properly handle output quoting of quote characters in | |
1084 | actual arguments used in function-like macros. | |
1085 | ||
cde59b72 | 1086 | 2008-01-03 Tom Tromey <tromey@redhat.com> |
1087 | ||
45f9f140 | 1088 | PR preprocessor/34602 |
cde59b72 | 1089 | * directives.c (do_line): Don't try to spell EOF token. |
1090 | (do_linemarker): Add comment. | |
1091 | ||
2d1f9589 | 1092 | 2007-12-11 DJ Delorie <dj@redhat.com> |
1093 | ||
1094 | * charset.c (convert_using_iconv): Close out any shift states, | |
1095 | returning to the initial state. | |
1096 | ||
64cb8c90 | 1097 | 2007-12-06 Tom Tromey <tromey@redhat.com> |
1098 | ||
45f9f140 | 1099 | PR c/29172 |
64cb8c90 | 1100 | * internal.h (struct cpp_reader) <file_hash_entries>: Changed |
1101 | type. | |
1102 | <file_hash_entries_allocated, file_hash_entries_used>: Removed. | |
1103 | * files.c (FILE_HASH_POOL_SIZE): New macro. | |
1104 | (struct file_hash_entry_pool): New. | |
1105 | (destroy_all_cpp_files): New function. | |
1106 | (allocate_file_hash_entries): Allocate a file_hash_entry_pool. | |
1107 | (new_file_hash_entry): Update. | |
1108 | (free_file_hash_entries): New function. | |
1109 | (_cpp_cleanup_files): Call free_file_hash_entries and | |
1110 | destroy_all_cpp_files. | |
1111 | (cpp_clear_file_cache): New function. | |
1112 | * include/cpplib.h (cpp_clear_file_cache): Declare. | |
1113 | ||
d08a0ab3 | 1114 | 2007-12-03 Tom Tromey <tromey@redhat.com> |
1115 | ||
45f9f140 | 1116 | PR preprocessor/34288 |
d08a0ab3 | 1117 | * configure.ac, config.in: Rebuilt. |
1118 | * configure.ac: Check for ssize_t. | |
1119 | ||
5eb3761c | 1120 | 2007-11-30 Tom Tromey <tromey@redhat.com> |
1121 | ||
45f9f140 | 1122 | PR preprocessor/32868 |
5eb3761c | 1123 | * macro.c (_cpp_create_definition): Special case |
1124 | __STDC_FORMAT_MACROS. | |
1125 | ||
bce619a6 | 1126 | 2007-11-16 Michael Matz <matz@suse.de> |
1127 | ||
1128 | * files.c (search_path_head): Fix check for absolute paths. | |
1129 | ||
67015c73 | 1130 | 2007-11-11 Tom Tromey <tromey@redhat.com> |
1131 | ||
45f9f140 | 1132 | PR c++/17557 |
67015c73 | 1133 | * include/cpplib.h (cpp_included_before): Declare. |
1134 | * files.c (struct file_hash_entry) <location>: New field. | |
1135 | (_cpp_find_file): Initialize new field. | |
1136 | (make_cpp_dir): Likewise. | |
1137 | (cpp_included_before): New function. | |
1138 | ||
1991d8eb | 1139 | 2007-11-01 Tom Tromey <tromey@redhat.com> |
1140 | ||
45f9f140 | 1141 | PR preprocessor/30805 |
1991d8eb | 1142 | * macro.c (paste_tokens): Handle padding token. |
1143 | (paste_tokens): Don't abort unless padding has PASTE_LEFT flag. | |
1144 | ||
2d507e67 | 1145 | 2007-10-31 Tom Tromey <tromey@redhat.com> |
1146 | ||
45f9f140 | 1147 | PR preprocessor/30786 |
2d507e67 | 1148 | * macro.c (builtin_macro): Return result of _cpp_do__Pragma. |
1149 | * directives.c (_cpp_do__Pragma): Return error status. | |
1150 | * internal.h (_cpp_do__Pragma): Update. | |
1151 | * directives.c (get__Pragma_string): Back up if EOF seen. | |
1152 | ||
931b0a0f | 1153 | 2007-09-06 Tom Tromey <tromey@redhat.com> |
1154 | ||
1155 | * internal.h (struct cpp_reader) <invocation_location>: New | |
1156 | field. | |
1157 | (struct cpp_reader) <set_invocation_location>: Likewise. | |
1158 | * init.c (cpp_set_line_map): New function. | |
1159 | * line-map.c (linemap_add): Use linemap's allocator. | |
1160 | * include/line-map.h (GTY): Define. | |
1161 | (line_map_realloc): New typedef. | |
1162 | (struct line_map): Mark with GTY. | |
1163 | (struct line_maps): Likewise. | |
1164 | (struct line_maps) <maps>: Likewise. | |
1165 | (struct line_maps) <reallocator>: New field. | |
1166 | * include/symtab.h (GTY): Conditionally define. | |
1167 | * include/cpplib.h (cpp_set_line_map): Declare. | |
1168 | (cpp_get_token_with_location): Declare. | |
1169 | * macro.c (cpp_get_token): Set invocation_location on the reader. | |
1170 | (cpp_get_token_with_location): New function. | |
1171 | ||
84373723 | 1172 | 2007-08-30 Chao-ying Fu <fu@mips.com> |
1173 | ||
1174 | * expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur, | |
1175 | ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk. | |
1176 | (cpp_classify_number): Support decimal fixed-point constants without | |
1177 | exponents. | |
1178 | Warn about fixed-point constants when -pedantic. | |
1179 | * include/cpplib.h (CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE): Change | |
1180 | comments to support fixed-point values. | |
1181 | (CPP_N_FRACT, CPP_N_ACCUM): Define. | |
1182 | ||
36ec4203 | 1183 | 2007-08-18 Tom Tromey <tromey@redhat.com> |
1184 | ||
45f9f140 | 1185 | PR preprocessor/32974 |
36ec4203 | 1186 | * directives.c (parse_include): Don't check for EOL when |
1187 | processing #pragma dependency. | |
1188 | ||
fcde64dc | 1189 | 2007-07-30 Ollie Wild <aaw@google.com> |
1190 | ||
1191 | * directives-only.c: New file. | |
1192 | * internal.h (struct _cpp_dir_only_callbacks): New. | |
1193 | (_cpp_preprocess_dir_only): New function. | |
1194 | * directives.c (_cpp_handle_directive): Check directives_only before | |
1195 | disabling execution of indented directives. | |
1196 | * files.c (_cpp_stack_file): Add directives_only check. | |
1197 | * include/cpplib.h (struct cpp_options): Add directives_only. | |
1198 | (cpp_init_special_builtins): New function. | |
1199 | * init.c (cpp_init_special_builtins): New function. | |
1200 | (cpp_init_builtins): Move builtin_array initialization to | |
1201 | cpp_init_special_builtins. | |
1202 | (post_options): Check directives_only before setting | |
1203 | pfile->state.prevent_expansion = 1. | |
1204 | * macro.c (_cpp_builtin_macro_text): Print an error if __COUNTER__ | |
1205 | is expanded inside a directive while -fdirectives-only is enabled. | |
1206 | * Makefile.in (libcpp_a_OBJS): Add directives-only.o. | |
1207 | (libcpp_a_SOURCES): Add directives-only.c. | |
1208 | ||
ddedd1e1 | 1209 | 2007-07-04 Uros Bizjak <ubizjak@gmail.com> |
1210 | ||
1211 | * traditional.c (_cpp_scan_out_logical_line): Initialize | |
1212 | fmacro.args, fmacro.node, fmacro.offset, fmacro.line and | |
1213 | fmacro.args to prevent 'may be used uninitialized' warning. | |
1214 | ||
430be8e2 | 1215 | 2007-07-03 Uros Bizjak <ubizjak@gmail.com> |
1216 | ||
1217 | * include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q): | |
1218 | Add new constants. | |
1219 | * expr.c (interpret_float_suffix): Process 'w', 'W', 'q' and 'Q' | |
1220 | suffixes. Return CPP_N_MD_W for 'w' or 'W' suffixes and CPP_N_MD_Q | |
1221 | for 'q' or 'Q' suffixes. | |
1222 | ||
909dc303 | 1223 | 2007-06-17 Danny Smith <dannysmith@users.sourceforge.net |
1224 | ||
857d7d5e | 1225 | * files.c (open_file): Correct typo. |
909dc303 | 1226 | |
7d6f49d6 | 1227 | 2007-06-16 Vladimir Prus <vladimir@codesourcery.com> |
1228 | ||
857d7d5e | 1229 | * files.c (open_file): Prevent the call |
7d6f49d6 | 1230 | for stat from overwriting errno. |
1231 | ||
be21d64c | 1232 | 2007-06-09 Vladimir Prus <vladimir@codesourcery.com> |
1233 | ||
857d7d5e | 1234 | * files.c (open_file): Account for the |
be21d64c | 1235 | fact that on windows, opening a directory gives |
1236 | EACCES. | |
1237 | ||
d7282a2b | 1238 | 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de> |
1239 | ||
1240 | PR preprocessor/23479 | |
1241 | * expr.c (cpp_classify_number): Implement 0b-prefixed binary | |
1242 | integer constants. | |
1243 | (append_digit): Likewise. | |
1244 | * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed | |
1245 | binary integer constants. | |
1246 | ||
0448520c | 1247 | 2007-05-31 Dave Korn <dave.korn@artimi.com> |
1248 | ||
1249 | PR preprocessor/14331 | |
1250 | * lex.c (_cpp_get_fresh_line): Don't warn if no newline at EOF. | |
1251 | ||
ce079f70 | 1252 | 2007-05-24 Ollie Wild <aaw@google.com> |
1253 | ||
1254 | * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. | |
1255 | * pch.c (cpp_write_pch_deps): Save __COUNTER__ state. | |
1256 | (cpp_write_pch_state): Save __COUNTER__ state. | |
1257 | (cpp_valid_state): Check valid __COUNTER__ state. | |
1258 | (cpp_read_state): Read new __COUNTER__ state. | |
1259 | * include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator. | |
1260 | * init.c (builtin_array): Add __COUNTER__/BT_COUNTER. | |
1261 | * internal.h (struct cpp_reader): Add counter member. | |
1262 | ||
3b6c638e | 1263 | 2007-05-23 Simon Martin <simartin@users.sourceforge.net> |
1264 | ||
1265 | PR preprocessor/20077 | |
1266 | * macro.c (create_iso_definition): Fixed the method to determine | |
1267 | whether the token-pasting operator appears at the beginning or the end | |
1268 | of a macro. | |
1269 | ||
248dfc42 | 1270 | 2007-05-21 Ian Lance Taylor <iant@google.com> |
1271 | ||
1272 | * internal.h (struct cpp_reader): Add new fields: | |
1273 | nonexistent_file_hash and nonexistent_file_ob. | |
1274 | * files.c: Include "obstack.h". | |
1275 | (find_file_in_dir): Before trying to open the file, look up the | |
1276 | path name in the hash table of nonexistent files. After failing | |
1277 | to open the file, add the path name to the hash table. | |
1278 | (_cpp_find_file): Cache the results of looking up the file name | |
1279 | starting with the quote and bracket chain heads, if we can. | |
1280 | (nonexistent_file_hash_eq): New static function. | |
1281 | (_cpp_init_files): Initialize pfile->nonexistent_file_hash and | |
1282 | pfile->nonexistent_file_ob. | |
1283 | (_cpp_cleanup_files): Free pfile->nonexistent_file_hash and | |
1284 | pfile->nonexistent_file_ob. | |
1285 | ||
c55e2f1b | 1286 | 2007-05-14 Janis Johnson <janis187@us.ibm.com> |
1287 | ||
5c00409a | 1288 | * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic. |
1289 | ||
c55e2f1b | 1290 | PR c/31924 |
1291 | * expr.c (interpret_float_suffix): Check for invalid suffix. | |
1292 | ||
dd97b5e4 | 1293 | 2007-05-02 Eric Christopher <echristo@apple.com> |
1294 | ||
1295 | * expr.c (num_div_op): Don't overflow if the result is | |
1296 | zero. | |
1297 | ||
3127c357 | 1298 | 2007-05-02 Tom Tromey <tromey@redhat.com> |
1299 | ||
45f9f140 | 1300 | PR preprocessor/28709 |
3127c357 | 1301 | * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs. |
1302 | ||
f23c2abe | 1303 | 2007-03-30 Michael Meissner <michael.meissner@amd.com> |
1304 | ||
1305 | * directives.c (lex_macro_node_from_str): Fix alloca call to be | |
1306 | type correct. | |
1307 | ||
3fa3949d | 1308 | 2007-03-30 Richard Henderson <rth@redhat.com> |
1309 | ||
1310 | * directives.c (lex_macro_node_from_str): New. | |
1311 | (cpp_push_definition, cpp_pop_definition): New. | |
1312 | * include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare. | |
1313 | ||
7262ccd6 | 1314 | 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com> |
1315 | ||
1316 | * Makefile.in: Add dummy install-pdf target. | |
1317 | ||
09edb0e9 | 1318 | 2007-01-30 Tom Tromey <tromey@redhat.com> |
1319 | ||
45f9f140 | 1320 | PR preprocessor/30468 |
09edb0e9 | 1321 | * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped |
1322 | './'. | |
1323 | ||
e0ff7935 | 1324 | 2007-01-30 Tom Tromey <tromey@redhat.com> |
1325 | ||
45f9f140 | 1326 | PR preprocessor/29966 |
e0ff7935 | 1327 | * macro.c (lex_expansion_token): Save and restore cpp_reader's |
1328 | cur_token. | |
1329 | (_cpp_create_definition): Don't restore cur_token here. | |
1330 | * lex.c (_cpp_lex_token): Added assertion. | |
1331 | ||
87d210c3 | 1332 | 2007-01-27 Tom Tromey <tromey@redhat.com> |
1333 | ||
1334 | * configure: Rebuilt. | |
1335 | ||
3e2a04b5 | 1336 | 2007-01-12 Tom Tromey <tromey@redhat.com> |
1337 | ||
45f9f140 | 1338 | PR preprocessor/28227 |
3e2a04b5 | 1339 | * directives.c (lex_macro_node): Added 'is_def_or_undef' |
1340 | argument. | |
1341 | (do_define): Update. | |
1342 | (do_undef): Update. | |
1343 | (do_ifdef): Update. | |
1344 | (do_ifndef): Update. | |
1345 | ||
6a6e7e2f | 1346 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
1347 | ||
1348 | * configure: Regenerate. | |
1349 | ||
77258a2e | 1350 | 2007-01-11 Paolo Bonzini <bonzini@gnu.org> |
1351 | ||
1352 | * configure: Regenerate. | |
1353 | ||
927b511f | 1354 | 2007-01-04 Tom Tromey <tromey@redhat.com> |
1355 | ||
45f9f140 | 1356 | PR preprocessor/28165 |
927b511f | 1357 | * internal.h (cpp_in_primary_file): New function. |
1358 | * directives.c (do_include_next): Use cpp_in_primary_file. | |
1359 | (do_pragma_once): Likewise. | |
1360 | (do_pragma_system_header): Likewise. | |
1361 | ||
5008f5c5 | 1362 | 2006-12-29 Ian Lance Taylor <iant@google.com> |
1363 | ||
1364 | * lex.c (_cpp_clean_line): Add uses of __builtin_expect. Don't | |
1365 | look backward at the end of the line unless we saw a backslash. | |
1366 | ||
5d70627e | 1367 | 2006-12-29 Jakub Jelinek <jakub@redhat.com> |
1368 | ||
1369 | PR preprocessor/29612 | |
1370 | * directives.c (do_linemarker): Set pfile->buffer->sysp always, not | |
1371 | only when new_sysp is non-zero. | |
1372 | ||
854f075e | 1373 | 2006-12-28 Tom Tromey <tromey@redhat.com> |
1374 | ||
45f9f140 | 1375 | PR preprocessor/30001 |
854f075e | 1376 | * charset.c (_cpp_convert_input): Check that to.len is greater |
1377 | than zero. | |
1378 | ||
644459d0 | 1379 | 2006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> |
1380 | ||
1381 | * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU. | |
db375b8e | 1382 | * configure: Rebuilt. |
644459d0 | 1383 | |
093aec7c | 1384 | 2006-11-01 Douglas Gregor <doug.gregor@gmail.com> |
1385 | ||
1386 | * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X | |
1387 | for experimental C++0x mode. | |
1388 | * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has | |
1389 | adopted the preprocessor changes introduced in C99. | |
1390 | ||
54bb64fb | 1391 | 2006-10-29 Joseph Myers <joseph@codesourcery.com> |
1392 | ||
1393 | * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux* | |
1394 | depending on --enable-targets=all. | |
1395 | * configure: Regenerate. | |
1396 | ||
46139d3f | 1397 | 2006-10-12 Jakub Jelinek <jakub@redhat.com> |
1398 | ||
1399 | PR preprocessor/28709 | |
1400 | * macro.c (paste_tokens): Do error reporting here, use BUF with the | |
1401 | spelled LHS token as opposed to spelling it again. | |
1402 | (paste_all_tokens): Don't report errors here, just break on failure. | |
1403 | ||
51f93521 | 1404 | 2006-10-10 Brooks Moses <bmoses@stanford.edu> |
1405 | ||
1406 | * Makefile.in: Added empty "pdf" target. | |
1407 | ||
32bca58b | 1408 | 2006-09-22 Geoffrey Keating <geoffk@apple.com> |
1409 | ||
1410 | * configure.ac: Make need_64_bit_hwint case for x86-darwin | |
1411 | match exactly the glob in gcc/config.gcc. | |
1412 | * configure: Regenerate. | |
1413 | ||
0b67f687 | 1414 | 2006-09-13 Joseph S. Myers <joseph@codesourcery.com> |
1415 | ||
1416 | PR c/28768 | |
1417 | PR preprocessor/14634 | |
1418 | * lex.c (lex_string): Pedwarn for unterminated literals. | |
1419 | ||
3ebc7dec | 1420 | 2006-09-08 Eric Christopher <echristo@apple.com> |
1421 | ||
1422 | * configure.ac: Add 64-bit HWI support for i?86-darwin. | |
1423 | ||
e58c07f7 | 1424 | 2006-08-14 Steve Ellcey <sje@cup.hp.com> |
1425 | ||
1426 | PR c++/28288 | |
1427 | PR c++/14556 | |
1428 | * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens. | |
1429 | (CPP_LAST_EQ): Change. | |
1430 | (CPP_LAST_PUNCTUATOR): Change. | |
1431 | * expr.c (cpp_operator): Remove MIN and MAX. | |
1432 | (reduce): Remove CPP_MIN and CPP_MAX. | |
1433 | (num_binary_op): Ditto. | |
1434 | * lex.c (_cpp_lex_direct): Ditto. | |
1435 | (cpp_avoid_paste): Remove ? as legal symbol after > or <. | |
1436 | ||
add258d7 | 1437 | 2006-06-09 Jakub Jelinek <jakub@redhat.com> |
1438 | ||
1439 | PR preprocessor/27746 | |
1440 | * directives.c (do_pragma): Handle pragma with valid namespace | |
1441 | and invalid name coming from macro expansion. | |
1442 | * directives.c (destringize_and_run): Initialize next field in | |
1443 | context. | |
1444 | ||
1445 | PR c/27747 | |
1446 | PR c++/27748 | |
1447 | * directives.c (destringize_and_run): Set NO_EXPAND on the | |
1448 | tokens. | |
1449 | ||
1450 | * macro.c (_cpp_backup_tokens): Fix comment typo. | |
1451 | ||
49688a56 | 1452 | 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com> |
1453 | ||
1454 | * Makefile.in (CATALOGS): Add po/ prefix. | |
1455 | * configure: Regenerated. | |
1456 | ||
8f597c12 | 1457 | 2006-05-23 Carlos O'Donell <carlos@codesourcery.com> |
1458 | ||
1459 | * Makefile.in: Add install-html target. Add install-html to .PHONY | |
1460 | ||
cca5dddc | 1461 | 2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com> |
1462 | ||
1463 | * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP. | |
1464 | * files.c (_cpp_get_file_stat): New function. | |
1465 | * include/cpplib.h (builtin_type): Add BT_TIMESTAMP. | |
1466 | * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP. | |
1467 | * internal.h (_cpp_get_file_stat): Prototype. | |
1468 | (struct cpp_buffer): Add timestamp. | |
1469 | ||
31614f7c | 1470 | 2006-01-23 Jakub Jelinek <jakub@redhat.com> |
1471 | ||
1472 | PR preprocessor/25717 | |
1473 | * init.c (cpp_init_builtins): If __STDC__ will not change value | |
1474 | between system headers and other sources, define it as a normal | |
1475 | macro rather than a builtin. | |
1476 | * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check | |
1477 | cpp_in_system_header condition. | |
1478 | ||
1479 | 2006-01-05 Paolo Bonzini <bonzini@gnu.org> | |
3c77e017 | 1480 | |
1481 | * Makefile.in: Use -MMD instead of -MD. | |
1482 | ||
b75b98aa | 1483 | 2006-01-04 Dmitry Kurochkin <dmitry.kurochkin@gmail.com> |
1484 | Richard Henderson <rth@redhat.com> | |
1485 | ||
1486 | Merge from gomp branch: | |
1487 | * directives.c (struct pragma_entry): Add is_deferred. Add ident | |
1488 | entry to value union. | |
1489 | (end_directive): Don't eat the line if in_deferred_pragma. | |
1490 | (run_directive): Remove pragma hacks. | |
1491 | (insert_pragma_entry): Remove. | |
1492 | (new_pragma_entry): New. | |
1493 | (register_pragma_1): Split out of register_pragma. Only handle | |
1494 | the lookup tree and return the new entry. | |
1495 | (cpp_register_pragma): Fill in the pragma entry here. | |
1496 | (cpp_register_deferred_pragma): New. | |
1497 | (register_pragma_internal): New. | |
1498 | (_cpp_init_internal_pragmas): Use register_pragma_internal. | |
1499 | (do_pragma): Allow pragma expansion after namespace. For deferred | |
1500 | pragmas, don't slurp the line into a string. | |
1501 | (destringize_and_run): Save tokens for deferred pragmas. | |
1502 | (cpp_handle_deferred_pragma): Remove. | |
1503 | * macro.c (builtin_macro): Remove pragma token hack. | |
1504 | (_cpp_push_token_context): Rename from push_token_context and export. | |
1505 | * internal.h (struct lexer_state): Add pragma_allow_expansion. | |
1506 | (_cpp_push_token_context): Declare. | |
1507 | * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return | |
1508 | a token. Update the line number correctly if so. | |
1509 | (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens. | |
1510 | (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas. | |
1511 | * include/cpplib.h (PRAGMA_EOL): New. | |
1512 | (CPP_TOKEN_FLD_PRAGMA): New. | |
1513 | (struct cpp_token): Add val.pragma. | |
1514 | (struct cpp_options): Remove defer_pragmas. | |
1515 | (cpp_handle_deferred_pragma): Remove. | |
1516 | (cpp_register_deferred_pragma): Declare. | |
1517 | ||
986ca356 | 1518 | 2006-01-01 Jakub Jelinek <jakub@redhat.com> |
1519 | ||
1520 | PR c++/25294 | |
1521 | * directives.c (do_pragma): If pragma line ends with multi-line | |
1522 | block comment, end the saved deferred pragma string before that | |
1523 | comment. Handle embedded '\0' chars on the pragma line. | |
1524 | ||
8dba02f7 | 1525 | 2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
1526 | ||
1527 | PR c++/23333 | |
1528 | * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure. | |
1529 | ||
6db045b0 | 1530 | 2005-12-07 Jon Grimm <jgrimm2@us.ibm.com> |
1531 | Ben Elliston <bje@au.ibm.com> | |
1532 | ||
1533 | * include/cpplib.h (CPP_N_DFLOAT): New. | |
1534 | * expr.c (interpret_float_suffix): Identify df, dd, and dl | |
1535 | suffixes as decimal floating point constants. | |
1536 | (cpp_classify_number): Disallow hexadecimal DFP constants. | |
1537 | ||
9a7c76f9 | 1538 | 2005-11-14 Gerald Pfeifer <gerald@pfeifer.com> |
b75b98aa | 1539 | Ian Lance Taylor <ian@airs.com> |
9a7c76f9 | 1540 | |
1541 | * include/cpplib.h (struct cpp_callbacks): Annotate error with | |
1542 | ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0). | |
1543 | ||
0c5e3a3d | 1544 | 2005-11-09 Per Bothner <per@bothner.com> |
1545 | Uros Bizjak <uros@kss-loka.si> | |
3ebc7dec | 1546 | |
0c5e3a3d | 1547 | PR c/24101 |
1548 | * init.c (read_original_filename): Temporarily set | |
1549 | state.in_directive before calling _cpp_lex_direct for | |
1550 | CPP_HASH tokens. | |
1551 | ||
3c2359db | 1552 | 2005-11-03 James E Wilson <wilson@specifix.com> |
1553 | ||
1554 | PR preprocessor/24202 | |
1555 | * files.c (_cpp_pop_file_buffer): Set buffer_valid to false. | |
1556 | ||
d65b3a40 | 1557 | 2005-11-04 Joseph S. Myers <joseph@codesourcery.com> |
1558 | ||
1559 | * include/cpplib.h (struct cpp_callbacks): Make error take | |
1560 | va_list* parameter. | |
1561 | * errors.c (cpp_error): Update call to callback. | |
1562 | ||
cc9012f7 | 1563 | 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> |
1564 | ||
1565 | PR preprocessor/22042 | |
1566 | * macro.c (_cpp_builtin_macro_text): Lower the needed max | |
1567 | buffer size. | |
1568 | (cpp_quote_string): Don't octalify non printable | |
1569 | charactors. | |
1570 | ||
eb0d20b7 | 1571 | 2005-11-03 Joseph S. Myers <joseph@codesourcery.com> |
1572 | ||
1573 | PR c++/17964 | |
1574 | * include/cpplib.h (struct cpp_options): Add client_diagnostic. | |
1575 | (struct cpp_callbacks): Add error. | |
1576 | * errors.c (cpp_error): If client_diagnostic, use error callback. | |
1577 | * charset.c (convert_escape): Don't use %03o in diagnostic. | |
1578 | ||
de4aacc0 | 1579 | 2005-10-21 James E Wilson <wilson@specifix.com> |
04c0bfd0 | 1580 | |
1581 | PR preprocessor/15220 | |
1582 | * files.c (_cpp_find_file): New parameter angle_brackets. Fix all | |
1583 | callers. Pass to open_file_failed. | |
1584 | (open_file_failed): New parameter angle_brackets. Fix all callers. | |
1585 | Use in print_dep assignment. | |
1586 | * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file. | |
1587 | * internal.h (_cpp_find_file): Add new parm to declaration. | |
3ebc7dec | 1588 | |
6783d878 | 1589 | 2005-10-08 Kazu Hirata <kazu@codesourcery.com> |
1590 | ||
1591 | * configure.ac: Require 64-bit int for arm*-*-*eabi*. | |
1592 | * configure: Regenerate. | |
1593 | ||
f789fe3e | 1594 | 2005-10-04 Ian Lance Taylor <ian@airs.com> |
1595 | ||
1596 | PR preprocessor/13726 | |
1597 | * directives.c (check_eol_return_comments): New static function. | |
1598 | (parse_include): Add buf parameter. Change all callers. | |
1599 | (do_include_common): If not discard comments, turn on | |
1600 | save_comments. Pass collected comments to include callback. | |
1601 | * include/cpplib.h (struct cpp_callbacks): Add new parameter to | |
1602 | include callback: cpp_token list. | |
1603 | ||
865c4e44 | 1604 | 2005-09-20 Joseph S. Myers <joseph@codesourcery.com> |
1605 | ||
1606 | * include/cpplib.h (struct cpp_options): Add extended_identifiers. | |
1607 | * init.c (struct lang_flags, lang_defaults): Add | |
1608 | extended_identifiers. | |
1609 | (cpp_set_lang): Use it. | |
1610 | * lex.c (forms_identifier_p): Check extended_identifiers. | |
1611 | ||
56845aa6 | 1612 | 2005-08-30 Jakub Jelinek <jakub@redhat.com> |
1613 | ||
1614 | PR preprocessor/20348 | |
1615 | PR preprocessor/20356 | |
1616 | * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and | |
1617 | 2004-06-05 changes. | |
1618 | ||
72ee8ff9 | 1619 | 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1620 | ||
1621 | * configure.ac (ACX_PROG_CC_WARNING_OPTS): add | |
1622 | -Wmissing-format-attribute. | |
1623 | ||
1624 | * configure: Regenerate. | |
1625 | ||
2656917a | 1626 | 2005-06-29 Kelley Cook <kcook@gcc.gnu.org> |
1627 | ||
1628 | * all files: Update FSF address in copyright headers. | |
1629 | * makeucnid.c (write_copyright): Update outputted FSF address. | |
1630 | ||
cbaa9876 | 1631 | 2005-06-13 Zack Weinberg <zack@codesourcery.com> |
1632 | ||
1633 | * configure.ac: Invoke ZW_CREATE_DEPDIR and | |
1634 | ZW_PROG_COMPILER_DEPENDENCIES. | |
1635 | * aclocal.m4, configure: Regenerate. | |
1636 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE): | |
1637 | New variables. | |
1638 | (distclean): Clean up $(DEPDIR) and its contents. | |
1639 | (.c.o): Use $(COMPILE). | |
1640 | Include $(DEPDIR)/*.Po for most object->header dependencies. | |
1641 | ||
720aca92 | 1642 | 2005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net> |
1643 | ||
1644 | * configure.ac: Check declarations for asprintf and vasprintf. | |
1645 | * config.in: Regenerate. | |
1646 | * configure: Likewise. | |
1647 | ||
1648 | * charset.c (conversion_loop): Use XRESIZEVEC. | |
1649 | (convert_no_conversion): Likewise. | |
1650 | (convert_using_iconv): Likewise. | |
1651 | (init_iconv_desc): Cast return value of alloca. | |
1652 | (cpp_host_to_exec_charset): Use XNEWVEC. | |
1653 | (emit_numeric_escape): Use XRESIZEVEC. | |
1654 | (cpp_interpret_string): Use XNEWVEC. | |
1655 | (cpp_interpret_string): Use XRESIZEVEC. | |
1656 | (_cpp_interpret_identifier): Cast return value of alloca. | |
1657 | (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC. | |
1658 | * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC. | |
1659 | (parse_include): Use XNEWVEC. | |
1660 | (insert_pragma_entry): Rename local variable "new" to | |
cbaa9876 | 1661 | "new_entry". |
720aca92 | 1662 | (save_registered_pragmas): Cast return value of xmemdup. |
1663 | (destringize_and_run): Same for alloca. | |
1664 | (parse_assertion): Likewise. | |
1665 | (do_assert): Cast allocated storage to proper type. | |
1666 | (cpp_define): Likewise. | |
1667 | (_cpp_define_builtin): Likewise. | |
1668 | (cpp_undef): Likewise. | |
1669 | (handle_assertion): Likewise. | |
1670 | (cpp_push_buffer): Rename local variable "new" to "new_buffer". | |
1671 | * expr.c (CPP_UPLUS): Cast value to type cpp_ttype. | |
1672 | (CPP_UMINUS): Likewise. | |
1673 | (struct cpp_operator): Rename from struct operator. | |
1674 | (_cpp_expand_op_stack): Use XRESIZEVEC. | |
1675 | * files.c (pch_open_file): Use XNEWVEC. | |
1676 | (pch_open_file): Use XRESIZEVEC. | |
1677 | (read_file_guts): Use XNEWVEC and XRESIZEVEC. | |
1678 | (dir_name_of_file): Use XNEWVEC. | |
1679 | (make_cpp_file): Use XCNEW. | |
1680 | (make_cpp_dir): Likewise. | |
1681 | (allocate_file_hash_entries): USE XNEWVEC. | |
1682 | (cpp_included): Cast return value of htab_find_with_hash. | |
1683 | (append_file_to_dir): Use XNEWVEC. | |
1684 | (read_filename_string): Likewise. Use XRESIZEVEC too. | |
1685 | (read_name_map): Cast return value of alloca. Use XRESIZEVEC. | |
1686 | (remap_filename): Use XNEWVEC. | |
1687 | (struct pchf_entry): Move definition out of struct pchf_data. | |
1688 | (_cpp_save_file_entries): Use XCNEWVAR. | |
1689 | (_cpp_read_file_entries): Use XNEWVAR. | |
1690 | * identifiers.c (alloc_node): Use XOBNEW. | |
1691 | * init.c (cpp_create_reader): Use XCNEW. | |
1692 | (cpp_init_builtins): Cast of b->value to enum builtin_type. | |
1693 | (read_original_directory): Cast return value of alloca. | |
1694 | * lex.c (add_line_note): Use XRESIZEVEC. | |
1695 | (warn_about_normalization): Use XNEWVEC. | |
1696 | (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype). | |
1697 | (new_buff): Use XNEWVEC. | |
1698 | * line-map.c (linemap_add): Use XRESIZEVEC. | |
1699 | * macro.c (builtin_macro): Cast return value of alloca. | |
1700 | (paste_tokens): Likewise. | |
1701 | (expand_arg): Use XNEWVEC and XRESIZEVEC. | |
1702 | (_cpp_save_parameter): Use XRESIZEVEC. | |
1703 | (create_iso_definition): Cast allocated storage to proper type. | |
1704 | (_cpp_create_definition): Likewise. | |
1705 | (cpp_macro_definition): Use XRESIZEVEC. | |
1706 | * makedepend.c (add_clm): Use XNEW. | |
1707 | (add_dir): Likewise. | |
1708 | * mkdeps.c (munge): Use XNEWVEC. | |
1709 | (deps_init): Use XCNEW. | |
1710 | (deps_add_target): Use XRESIZEVEC. | |
1711 | (deps_add_default_target): Cast return value of alloca. | |
1712 | (deps_add_dep): Use XRESIZEVEC. | |
1713 | (deps_add_vpath): Likewise. Use XNEWVEC too. | |
1714 | (deps_restore): Likewise. | |
1715 | * pch.c (save_idents): Use XNEW and XNEWVEC. | |
1716 | (cpp_save_state): Use XNEW. | |
1717 | (count_defs): Cast return value of htab_find. | |
1718 | (write_defs): Likewise. | |
1719 | (cpp_write_pch_deps): Use XNEWVEC. | |
1720 | (collect_ht_nodes): Use XRESIZEVEC. | |
1721 | (cpp_valid_state): Use XNEWVEC. | |
1722 | (save_macros): Use XRESIZEVEC. Cast return value of xmemdup. | |
1723 | * symtab.c (ht_create): Use XCNEW. | |
1724 | (ht_lookup_with_hash): Cast return value of obstack_copy0. | |
1725 | (ht_expand): Use XCNEWVEC. | |
1726 | * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus. | |
1727 | (bool): Do not define if __cplusplus. | |
1728 | ||
81e19b31 | 1729 | 2005-05-12 Zack Weinberg <zack@codesourcery.com> |
1730 | ||
1731 | * directives.c (#sccs table entry): Mark IN_I, consistent with #ident. | |
1732 | (do_sccs): Delete function definition, #define to do_ident. | |
1733 | (do_ident): Don't hardwire directive name. | |
1734 | ||
18f11b84 | 1735 | 2005-05-12 Ryota Kunisawa <kunisawa@access.co.jp> |
1736 | ||
1737 | PR bootstrap/21230 | |
1738 | * configure: Regenerate. | |
1739 | ||
2dc04f36 | 1740 | 2005-04-27 Andris Pavenis <pavenis@latnet.lv> |
1741 | ||
1742 | * files.c: Include io.h for DJGPP to get prototype of setmode. | |
1743 | ||
0b7f838f | 1744 | 2005-04-19 Per Bothner <per@bothner.com> |
1745 | ||
1746 | PR preprocessor/20907 | |
1747 | * line-map.c (linemap_line_start): Fix bug when we need to increse | |
1748 | column_bits but can re-use the current line_map. | |
1749 | ||
2224c90b | 1750 | 2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1751 | ||
1752 | * system.h (fopen, fdopen, freopen): Define these to the unlocked | |
1753 | libiberty functions. | |
1754 | ||
077a3c99 | 1755 | 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1756 | ||
1757 | * configure.ac (libcpp_UNLOCKED_FUNCS): New. | |
1758 | (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS. | |
1759 | * system.h (putchar, getc, getchar, clearerr, feof, fileno, | |
1760 | fflush, fgetc, fgets, ferror, fread): Redefine to the associated | |
1761 | _unlocked function. | |
1762 | (fwrite_unlocked): Fix prototype. | |
81e19b31 | 1763 | |
077a3c99 | 1764 | * configure, config.in: Regenerate. |
1765 | ||
99617355 | 1766 | 2005-04-05 Jakub Jelinek <jakub@redhat.com> |
1767 | ||
1768 | PR preprocessor/19475 | |
1769 | * macro.c (create_iso_definition): For < ISO C99, don't | |
1770 | pedwarn if there is no whitespace between macro name and its | |
1771 | replacement, but the replacement starts with a basic character | |
1772 | set character. | |
1773 | ||
3827dee5 | 1774 | 2005-03-28 Andreas Jaeger <aj@suse.de> |
1775 | ||
1776 | * lex.c (warn_about_normalization): Cast field width to int to | |
1777 | avoid warning. | |
1778 | ||
b8273627 | 1779 | 2005-03-19 Joseph S. Myers <joseph@codesourcery.com> |
1780 | ||
1781 | * configure.ac: Consistently use solaris2.1[0-9]* instead of | |
1782 | solaris2.1[0-9]. | |
1783 | * configure: Regenerate. | |
1784 | ||
bc65f24f | 1785 | 2005-03-15 Geoffrey Keating <geoffk@apple.com> |
1786 | ||
1787 | * charset.c (_cpp_valid_ucn): In identifiers, reject a partial | |
1788 | UCN rather than printing an error. | |
1789 | ||
bce47149 | 1790 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> |
1791 | ||
4e9d1e6d | 1792 | * lex.c (forms_identifier_p): Disable UCNs in C89 mode. |
1793 | ||
1794 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> | |
81e19b31 | 1795 | |
bce47149 | 1796 | * init.c (cpp_create_reader): Default warn_normalize to normalized_C. |
1797 | * charset.c: Update for new format of ucnid.h. | |
1798 | (ucn_valid_in_identifier): Update for new format of ucnid.h. | |
1799 | Add NST parameter, and update it; update callers. | |
1800 | (cpp_valid_ucn): Add NST parameter, update callers. Replace abort | |
1801 | with cpp_error. | |
1802 | (convert_ucn): Pass normalize_state to cpp_valid_ucn. | |
1803 | * internal.h (struct normalize_state): New. | |
1804 | (INITIAL_NORMALIZE_STATE): New. | |
1805 | (NORMALIZE_STATE_RESULT): New. | |
1806 | (NORMALIZE_STATE_UPDATE_IDNUM): New. | |
1807 | (_cpp_valid_ucn): New. | |
1808 | * lex.c (warn_about_normalization): New. | |
1809 | (forms_identifier_p): Add normalize_state parameter, update callers. | |
1810 | (lex_identifier): Add normalize_state parameter, update callers. Keep | |
1811 | the state current. | |
1812 | (lex_number): Likewise. | |
1813 | (_cpp_lex_direct): Pass normalize_state to subroutines. Check | |
1814 | it with warn_about_normalization. | |
1815 | * makeucnid.c: New. | |
1816 | * ucnid.h: Replace. | |
1817 | * ucnid.pl: Remove. | |
1818 | * ucnid.tab: Make appropriate for input to makeucnid.c. Remove | |
1819 | comments about obsolete version of C++. | |
1820 | * include/cpplib.h (enum cpp_normalize_level): New. | |
1821 | (struct cpp_options): Add warn_normalize field. | |
1822 | ||
bb1fa6bb | 1823 | 2005-03-11 Geoffrey Keating <geoffk@apple.com> |
1824 | ||
1825 | * directives.c (glue_header_name): Update call to cpp_spell_token. | |
1826 | * internal.h (_cpp_interpret_identifier): New. | |
1827 | * charset.c (_cpp_interpret_identifier): New. | |
1828 | (_cpp_valid_ucn): Allow UCN version of '$'. | |
1829 | * lex.c (lex_identifier): Add extra parameter to indicate if initial | |
1830 | character was '$' or '\'. Support identifiers with UCNs. | |
1831 | (forms_identifier_p): Allow UCNs. | |
1832 | (_cpp_lex_direct): Pass extra parameter to lex_identifier. | |
1833 | (utf8_to_ucn): New. | |
1834 | (cpp_spell_token): Add FORSTRING parameter. Use it. | |
1835 | (cpp_token_as_text): Update call to cpp_spell_token. | |
1836 | (cpp_output_token): Write UCNs back out. | |
1837 | (stringify_arg): Update call to cpp_spell_token. | |
1838 | (paste_tokens): Likewise. | |
1839 | (cpp_macro_definition): Likewise. | |
1840 | * macro.c (stringify_arg): Likewise. | |
1841 | (paste_tokens): Likewise. | |
1842 | (cpp_macro_definition): Likewise. | |
1843 | * include/cpplib.h: Add parameter to cpp_spell_token. | |
1844 | ||
960391da | 1845 | 2005-03-04 Jakub Jelinek <jakub@redhat.com> |
1846 | ||
1847 | PR bootstrap/20282 | |
1848 | PR bootstrap/20305 | |
1849 | * macro.c (replace_args, cpp_get_token): Copy whole | |
1850 | cpp_token_u instead of just cpp_string field from it. | |
1851 | ||
b0d0794d | 1852 | 2005-02-28 Devang Patel <dpatel@apple.com> |
1853 | ||
1854 | * directives.c (do_line): Save sysp early before line table is | |
1855 | realloc'ed. | |
81e19b31 | 1856 | |
624d37a6 | 1857 | 2005-02-20 Zack Weinberg <zack@codesourcery.com> |
1858 | ||
1859 | PR 18785 | |
1860 | * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro. | |
1861 | (cpp_host_to_exec_charset): New function. | |
1862 | * include/cpplib.h: Declare cpp_host_to_exec_charset. | |
1863 | ||
f86986bc | 1864 | 2005-02-19 Devang Patel <dpatel@apple.com> |
1865 | ||
1866 | * charset.c (_cpp_convert_input): Check '\r' before inserting | |
1867 | '\n' at the end. | |
624d37a6 | 1868 | |
9936e07d | 1869 | 2005-02-15 Eric Christopher <echristo@redhat.com> |
1870 | ||
1871 | PR preprocessor/19077 | |
1872 | * macro.c (cpp_macro_definition): Move handling of whitespace | |
1873 | to PREV_WHITE conditional. Remove overloading of len | |
1874 | variable. | |
1875 | ||
129a1540 | 1876 | 2005-02-14 Kazu Hirata <kazu@cs.umass.edu> |
1877 | ||
1878 | * directives.c, files.c, init.c, internal.h, macro.c, pch.c, | |
1879 | traditional.c: Update copyright. | |
1880 | ||
bb30d1f4 | 1881 | 2005-02-14 Paolo Bonzini <bonzini@gnu.org> |
1882 | ||
1883 | PR bootstrap/19818 | |
1884 | * configure.ac: Check for declaration of basename and getopt. | |
1885 | * config.in: Regenerate. | |
1886 | * configure: Regenerate. | |
1887 | * internal.h (ustrcspn): New. | |
1888 | * macro.c (create_iso_definition): Fix allocation of memory. | |
1889 | (padding_token): Add cast to remove const-ness. | |
1890 | * pch.c (cpp_read_state): Use ustrcspn. | |
1891 | ||
26ec4f15 | 1892 | 2005-02-08 Mike Stump <mrs@apple.com> |
1893 | ||
1894 | * files.c (pchf_adder): Remove. | |
1895 | (struct pchf_adder_info): Likewise. | |
1896 | (_cpp_save_file_entries): Write out all files so that #import works. | |
1897 | ||
0cb78cbd | 1898 | 2005-01-23 Joseph S. Myers <joseph@codesourcery.com> |
1899 | ||
1900 | * configure: Regenerate. | |
1901 | ||
d862067c | 1902 | 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> |
1903 | ||
1904 | * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader. | |
1905 | ||
457e71e4 | 1906 | * include/cpplib.h: Also update copyright years. |
624d37a6 | 1907 | |
ba841ef8 | 1908 | 2005-01-03 Geoffrey Keating <geoffk@apple.com> |
1909 | ||
1910 | * files.c (_cpp_find_file): Add files found by search_path_exhausted | |
1911 | to the list of all files. | |
1912 | ||
f03668bd | 1913 | 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net> |
1914 | ||
1915 | * internal.h: Update references to Cpp lib filenames. | |
1916 | * directives.c: Likewise. | |
1917 | * init.c: Likewise. | |
1918 | * macro.c: Likewise. | |
1919 | * traditional.c: Likewise. | |
1920 | ||
461ea98d | 1921 | 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr> |
1922 | ||
1923 | PR preprocessor/15167 | |
1924 | * files.c (destroy_cpp_file): New function. | |
1925 | (should_stack_file): Make a new file if the | |
1926 | compared file is still stacked. | |
1927 | ||
bd9e37a6 | 1928 | 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org> |
1929 | ||
624d37a6 | 1930 | PR preprocessor/17610 |
bd9e37a6 | 1931 | * directives.c (do_include_common): Error out if an empty filename |
1932 | is given for #include (or #include_next or #import). | |
1933 | ||
fe4dcd90 | 1934 | 2004-11-27 Roger Sayle <roger@eyesopen.com> |
1935 | Zack Weinberg <zack@codesourcery.com> | |
1936 | ||
1937 | * internal.h: Replace all uses of uchar with unsigned char. | |
1938 | * include/cpp-id-data.h: Likewise. Guard typedef of uchar | |
1939 | with !IN_GCC, so uchar is only defined whilst building libcpp. | |
1940 | ||
ac7cc2f4 | 1941 | 2004-11-24 Kelley Cook <kcook@gcc.gnu.org> |
1942 | ||
1943 | * aclocal.m4: Regenerate. | |
1944 | ||
6e11b263 | 1945 | 2004-11-24 Roger Sayle <roger@eyesopen.com> |
1946 | ||
1947 | PR preprocessor/15824 | |
1948 | * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h> | |
1949 | directly, instead of the non-existant "system.h" and "ansidecl.h". | |
1950 | * configure: Regenerate. | |
1951 | ||
68bf2ad9 | 1952 | 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com> |
624d37a6 | 1953 | Joseph Myers <joseph@codesourcery.com> |
68bf2ad9 | 1954 | |
1955 | * internal.h (struct lexer_state): Add in_deferred_pragma. | |
1956 | * directives.c (struct pragma_entry): Add allow_expansion. | |
1957 | (insert_pragma_entry): Take allow_expansion flag. | |
1958 | (register_pragma): Likewise. | |
1959 | (cpp_register_pragma): Likewise. | |
1960 | (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma. | |
1961 | (do_pragma): Honor allow_expansion. | |
1962 | (cpp_handle_deferred_pragma): Set in_deferred_pragma. | |
1963 | * include/cpplib.h (cpp_register_pragma): Update prototype. | |
1964 | ||
27559c4e | 1965 | 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com> |
624d37a6 | 1966 | Mark Mitchell <mark@codesourcery.com> |
27559c4e | 1967 | |
1968 | * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set | |
1969 | need_64bit_hwint=yes. | |
1970 | * configure: Regenerate. | |
1971 | ||
34ae664d | 1972 | 2004-11-09 Joseph S. Myers <joseph@codesourcery.com> |
1973 | ||
1974 | * Makefile.in ($(PACKAGE).pot): New rule. Depend on | |
1975 | po/$(PACKAGE).pot. | |
1976 | (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword | |
1977 | arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. | |
1978 | Remove local srcdir path from generated file. | |
1979 | ||
39b83bdb | 1980 | 2004-11-04 Zack Weinberg <zack@codesourcery.com> |
624d37a6 | 1981 | Gerald Pfeifer <gerald@pfeifer.com> |
39b83bdb | 1982 | |
1983 | * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H | |
1984 | as well. | |
1985 | ||
a095c1b5 | 1986 | 2004-10-27 Zack Weinberg <zack@codesourcery.com> |
1987 | ||
1988 | PR 18075 | |
1989 | * directives.c (do_pragma): Do not defer pragmas which are unknown. | |
1990 | (cpp_handle_deferred_pragma): Add cast to silence warning. | |
1991 | ||
700b0d81 | 1992 | 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk> |
1993 | ||
1994 | * errors.c (_cpp_begin_message): Print "error: " for errors. | |
1995 | ||
fbe83ac1 | 1996 | 2004-10-10 Andreas Jaeger <aj@suse.de> |
1997 | ||
1998 | * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath. | |
1999 | * Makefile.in (makedepend.o): Add dependency on mkdeps.h. | |
2000 | ||
09f10c94 | 2001 | 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu> |
2002 | ||
2003 | * pch.c (cpp_write_pch_state): Remove variable z as it is not | |
2004 | used. | |
2005 | (cpp_read_state): Remove unused variables, m, d and mac_count. | |
2006 | ||
a8b2a8d5 | 2007 | 2004-09-29 Per Bothner <per@bothner.com> |
2008 | ||
2009 | * directives.c (cpp_handle_deferred_pragma): Save, clear and restore | |
2010 | cb.line_change. Otherwise do_pragma will call the line_change | |
2011 | call-back with a meaningless line number. | |
2012 | ||
21164c01 | 2013 | 2004-09-24 Zack Weinberg <zack@codesourcery.com> |
2014 | ||
2015 | * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to | |
2016 | programs cluster. Use ACX_PROG_CC_WARNING_OPTS, | |
2017 | ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS. | |
2018 | * aclocal.m4, configure: Regenerate. | |
2019 | * init.c: Include localedir.h. | |
2020 | * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables. | |
2021 | (DEFS): Delete. | |
2022 | (.c.o): Use $(ALL_CFLAGS). | |
2023 | (localedir.h, localedir.hs): New rules. | |
2024 | (clean): Use rm -rf to remove directories. | |
2025 | (distclean): Also delete localedir.h and localedir.hs. | |
2026 | (init.o): Update dependencies. | |
2027 | ||
986086aa | 2028 | 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> |
2029 | ||
2030 | * Makefile.in (aclocal.m4): Update dependencies. | |
2031 | * configure.ac (AC_CONFIG_MACRO_DIR): New. | |
2032 | * aclocal.m4, configure: Regenerate. | |
2033 | ||
e9cc3617 | 2034 | 2004-09-17 Zack Weinberg <zack@codesourcery.com> |
2035 | ||
0097f6a2 | 2036 | * charset.c (_cpp_destroy_iconv, emit_numeric_escape) |
2037 | (_cpp_convert_input, _cpp_default_encoding): Add comments. | |
2038 | Some other comments in this file also tweaked. | |
2039 | ||
e9cc3617 | 2040 | * directives.c (do_pragma): Save current buffer position |
2041 | before lexing the pragma keywords; don't call | |
2042 | _cpp_backup_tokens in the defer_pragmas case. | |
2043 | ||
9832c977 | 2044 | 2004-09-15 Per Bothner <per@bothner.com> |
2045 | ||
2046 | * include/line-map.h (line_map_start): Add parameter names so | |
2047 | preceding comment makes sense. | |
2048 | (linemap_add): Remove from comment mention of non-existing parameter. | |
2049 | ||
d6d3c909 | 2050 | 2004-09-09 Matt Austern <austern@apple.com> |
2051 | Zack Weinberg <zack@codesourcery.com> | |
2052 | ||
2053 | * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_ | |
2054 | prefixes throughout. Add entry for PRAGMA. Remove | |
2055 | unnecessary "= 0" from EQ. | |
2056 | (enum cpp_ttype): Adjust OP and TK definitions to restore | |
2057 | prefixes, via token-paste. | |
2058 | (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP): | |
2059 | Change from #defines to additional cpp_ttype enumerators. | |
2060 | (struct cpp_options): Add defer_pragmas. | |
2061 | (cpp_handle_deferred_pragma): Prototype new interface. | |
2062 | ||
2063 | * internal.h (struct cpp_reader): Add directive_result. | |
2064 | * directives.c (struct pragma_entry): Add is_internal field; | |
2065 | give boolean fields type bool. | |
2066 | (start_directive): Initialize pfile->directive_result.type. | |
2067 | (_cpp_do__Pragma): Likewise. | |
2068 | (run_directive): Do not crash if pfile->buffer->prev is NULL. | |
2069 | (insert_pragma_entry): Add 'internal' argument; set new->is_internal | |
2070 | from it. | |
2071 | (register_pragma): New static function, bulk of former | |
2072 | cpp_register_pragma here; add 'internal' argument, pass along | |
2073 | to insert_pragma_entry. | |
2074 | (cpp_register_pragma): Now a wrapper around register_pragma which | |
2075 | always passes false for 'internal' argument. | |
2076 | (_cpp_init_internal_pragmas): Call register_pragma directly, passing | |
2077 | true for 'internal'. | |
2078 | (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't | |
2079 | an internal pragma, save text till the end of the line as a CPP_PRAGMA | |
2080 | token instead of executing the pragma. | |
2081 | (cpp_handle_deferred_pragma): New interface. | |
2082 | * lex.c (token_spellings): Adjust OP and TK definitions to | |
2083 | match changes to cpplib.h. | |
2084 | (_cpp_lex_token): Check for a directive-result token and | |
2085 | return it if present. | |
2086 | (cpp_token_val_index): Handle CPP_PRAGMA. | |
2087 | * macro.c (cpp_builtin_macro_text): Correct comment. | |
2088 | (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma. | |
2089 | ||
735a9bc4 | 2090 | 2004-09-06 Serge Belyshev <belyshev@lubercy.com> |
2091 | ||
2092 | PR preprocessor/14699 | |
2093 | * symtab.c (ht_dump_statistics): Change type of sum_of_squares | |
2094 | from size_t to double. | |
2095 | ||
25696d3f | 2096 | 2004-08-28 Andreas Schwab <schwab@suse.de> |
2097 | Andreas Jaeger <aj@suse.de> | |
2098 | ||
2099 | * configure.ac: Set PACKAGE correctly. | |
2100 | * configure: Regenerated. | |
2101 | ||
99439f5b | 2102 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
2103 | ||
2104 | * Makefile.in: Add back top_builddir. | |
2105 | ||
a668be26 | 2106 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
2107 | ||
2108 | * configure.ac: Replace Automake macro invocations | |
2109 | with manual Autoconf checks and substitutions. | |
2110 | * configure: Regenerate. | |
2111 | * aclocal.m4: Regenerate. | |
2112 | * config.in: Regenerate. | |
2113 | * Makefile.am: Removed. | |
2114 | * Makefile.in: Heavy simplification and reorganization. | |
2115 | ||
30e9913f | 2116 | 2004-08-09 Mark Mitchell <mark@codesourcery.com> |
2117 | ||
2118 | * configure.ac (arm*-*-eabi*): New target. | |
2119 | (arm*-*-symbianelf*): Likewise. | |
2120 | * configure: Regenerated. | |
2121 | ||
3b298764 | 2122 | 2004-07-24 Bernardo Innocenti <bernie@develer.com> |
2123 | ||
2124 | * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. | |
2125 | * directives.c: Use XNEW-family macros from libiberty. | |
2126 | * lex.c: Likewise. | |
2127 | * macro.c: Likewise. | |
2128 | * cpplib.h (cpp_deps_style): Export enum with name. | |
2129 | ||
d6d3c909 | 2130 | 2004-07-23 Matthias Klose <doko@debian.org> |
3b298764 | 2131 | |
d6d3c909 | 2132 | * init.c (init_library): Use PACKAGE for the text domain. |
1ed7d058 | 2133 | |
821fa045 | 2134 | 2004-07-16 Andris Pavenis <pavenis@latnet.lv> |
2135 | ||
2136 | PR preprocessor/16366 | |
2137 | * internal.h (struct cpp_reader): New field dir_hash. | |
2138 | * files.c (make_cpp_dir): Use dir_hash, not file_hash. | |
2139 | (_cpp_init_files, _cpp_cleanup_files): Update for new field. | |
2140 | ||
d80efa72 | 2141 | 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk> |
2142 | ||
2143 | PR preprocessor/16192 | |
2144 | PR preprocessor/15913 | |
2145 | PR preprocessor/15572 | |
2146 | * expr.c (_cpp_parse_expr): Handle remaining cases where an | |
2147 | expression is missing. | |
2148 | * init.c (post_options): Traditional cpp doesn't do // comments. | |
2149 | ||
ed000086 | 2150 | 2004-06-30 Per Bothner <per@bothner.com> |
2151 | ||
2152 | * include/line-map.h (fileline): Remove old typedef. | |
2153 | * internal.h (struct cpp_reader): Use source_location typedef instead. | |
2154 | ||
dcb9d064 | 2155 | 2004-06-26 Zack Weinberg <zack@codesourcery.com> |
2156 | ||
2157 | Partially revert patch of 2004-06-05. | |
2158 | * files.c (search_cache): Remove pfile argument. Don't check | |
2159 | for file that would be found by "" or <> search here... | |
2160 | (_cpp_find_file): ...do it here, before calling find_file_in_dir. | |
2161 | Do not apply directory-of-current-file correction to files | |
2162 | found by this check. Rearrange code slightly. | |
2163 | ||
d718b525 | 2164 | 2004-06-21 Geoffrey Keating <geoffk@apple.com> |
2165 | ||
2166 | * files.c (should_stack_file): Correct swapped parameters to call | |
2167 | to cb.read_pch. | |
2168 | * pch.c (cpp_valid_state): Handle -fpreprocessed. | |
2169 | ||
79b68529 | 2170 | 2004-06-15 Paolo Bonzini <bonzini@gnu.org> |
2171 | ||
2172 | * Makefile.in: Regenerate with automake 1.8.5. | |
2173 | * aclocal.m4: Likewise. | |
2174 | * configure: Regenerate. | |
2175 | ||
151899c5 | 2176 | 2004-06-11 Zack Weinberg <zack@codesourcery.com> |
2177 | ||
2178 | * configure.ac: Don't invoke ACX_HEADER_STDBOOL. | |
2179 | * configure, config.in: Regenerate. | |
2180 | * system.h: Unconditionally define bool as unsigned char, | |
2181 | BOOL_BITFIELD as unsigned int. | |
2182 | * .cvsignore: New file. | |
2183 | ||
c39ed964 | 2184 | 2004-06-09 Geoffrey Keating <geoffk@apple.com> |
2185 | ||
2186 | * traditional.c (push_replacement_text): Set macro->traditional. | |
2187 | (save_replacement_text): Likewise. | |
2188 | * pch.c (cpp_write_pch_state): Don't write list of defined macros. | |
2189 | (struct save_macro_item): Delete. | |
2190 | (struct save_macro_data): Use a character array not the previous | |
2191 | structured format. | |
2192 | (save_macros): Save macro as text not as internal structures. | |
2193 | (cpp_prepare_state): Update for changes to save_macro_data. | |
2194 | (cpp_read_state): Don't read macros defined in PCH. Restore | |
c84ca916 | 2195 | -D macros as text. |
c39ed964 | 2196 | * macro.c (create_iso_definition): Honour alloc_subobject. |
2197 | Clear traditional flag. | |
2198 | (_cpp_create_definition): Honour alloc_subobject. | |
2199 | * lex.c (cpp_token_val_index): New. | |
2200 | * internal.h: Include cpp-id-data.h. | |
2201 | (uchar): Move definition to cpp-id-data.h. | |
2202 | (U): Likewise. | |
2203 | (cpp_macro): Likewise. | |
2204 | * directives.c (struct answer): Move to cpp-id-data.h. | |
2205 | (do_assert): Honour alloc_subobject. | |
c84ca916 | 2206 | |
2207 | * include/symtab.h (struct ht): Add field 'alloc_subobject'. | |
2208 | * include/cpplib.h (struct cpp_string): Add GTY marker. | |
2209 | (enum cpp_token_fld_kind): New. | |
2210 | (struct cpp_token): Add GTY markers. | |
2211 | (cpp_token_val_index): Prototype. | |
2212 | (CPP_HASHNODE_VALUE_IDX): New. | |
2213 | (struct cpp_hashnode): Don't skip fields of 'value' when marking. | |
2214 | * include/cpp-id-data.h: New file. | |
c39ed964 | 2215 | |
dd6e5561 | 2216 | 2004-06-09 Paolo Bonzini <bonzini@gnu.org> |
2217 | ||
2218 | * Makefile.am (all-local): New. | |
2219 | * Makefile.in: Regenerate. | |
2220 | ||
8af0c78d | 2221 | 2004-06-06 Roger Sayle <roger@eyesopen.com> |
2222 | ||
2223 | * Makefile.am (LIBICONV): Declare. | |
2224 | (makedepend_LDADD): Use LIBICONV. | |
2225 | * Makefile.in: Regenerate. | |
2226 | ||
30302733 | 2227 | 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu> |
2228 | ||
2229 | * Makefile.am (LIBINTL): Declare | |
2230 | (makedepend_LDADD): Use LIBINTL. | |
2231 | * Makefile.in: Regenerate. | |
2232 | ||
3eb3f293 | 2233 | 2004-06-05 Zack Weinberg <zack@codesourcery.com> |
2234 | ||
2235 | * Makefile.am: Add makedepend. | |
2236 | * Makefile.in, aclocal.m4: Regenerate. | |
2237 | * charset.c: Insert a space to avoid a warning. | |
2238 | * directives.c: Include mkdeps.h. | |
2239 | (_cpp_handle_directive): Reenable macro expander if appropriate. | |
2240 | (undefine_macros): Inline body of _cpp_free_definition for speed. | |
2241 | Do not call undef callback or _cpp_warn_if_unused_macro. | |
2242 | (cpp_get_deps): New interface. | |
2243 | * files.c (search_cache): Add pfile argument. Check for file | |
2244 | that would be found by "" or <> search here... | |
2245 | (_cpp_find_file): ...not here. Correct recorded start_dir of | |
2246 | files found by directory-of-current-file search that would be | |
2247 | found by "" or <> search. | |
2248 | * init.c (cpp_add_dependency_target): Delete. | |
2249 | * internal.h (struct lexer_state): Add discarding_output flag. | |
2250 | * lex.c (lex_identifier): Compute hash function while scanning. | |
2251 | * macro.c (cpp_scan_nooutput): Disable macro expansion outside | |
2252 | directives. | |
2253 | * makedepend.c: New file. | |
2254 | * mkdeps.c (struct deps): Add vpath vector. | |
2255 | (apply_vpath, deps_add_vpath): New function. | |
2256 | (deps_free): Free vpath vector. | |
2257 | (deps_add_dep, deps_add_target): Use apply_vpath. | |
2258 | * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. | |
2259 | (ht_lookup_with_hash): New function. | |
2260 | * cpplib.h, mkdeps.h: Update prototypes. | |
2261 | * symtab.h: Update prototypes. | |
2262 | (HT_HASHSTEP, HT_FINISH): New macros. | |
2263 | ||
8ed01400 | 2264 | 2004-05-29 Geoffrey Keating <geoffk@apple.com> |
2265 | ||
2266 | * symtab.c (ht_create): Set entries_owned. | |
2267 | (ht_destroy): Honour entries_owned. | |
2268 | (ht_expand): Likewise. | |
2269 | (ht_load): New. | |
c84ca916 | 2270 | * include/symtab.h (struct ht): New field 'entries_owned' |
2271 | (ht_load): New prototype. | |
8ed01400 | 2272 | |
347a3ab5 | 2273 | 2004-05-26 Paolo Bonzini <bonzini@gnu.org> |
2274 | ||
2275 | PR bootstrap/15651 | |
2276 | * configure.ac: Fix m4 quoting when picking | |
2277 | the size of HOST_WIDE_INT. | |
2278 | * configure: Regenerate. | |
2279 | ||
fc231f28 | 2280 | 2004-05-25 Paolo Bonzini <bonzini@gnu.org> |
2281 | ||
2282 | * Makefile.am: the correct directory for | |
2283 | gettext include files is given by @INCINTL@. | |
2284 | * Makefile.in: Regenerate. | |
2285 | ||
babfbd63 | 2286 | 2004-05-24 Paolo Bonzini <bonzini@gnu.org> |
2287 | ||
2288 | * system.h [!ENABLE_NLS]: dgettext takes two | |
2289 | parameters. | |
2290 | ||
d856c8a6 | 2291 | 2004-05-23 Paolo Bonzini <bonzini@gnu.org> |
2292 | ||
2293 | Moved libcpp from the gcc subdirectory to the toplevel. | |
2294 | * Makefile.am: New file. | |
2295 | * Makefile.in: Regenerate. | |
2296 | * configure.ac: New file. | |
2297 | * configure: Regenerate. | |
2298 | * config.in: Regenerate. | |
2299 | * charset.c: Moved from gcc/cppcharset.c. Add note about | |
2300 | brokenness of input charset detection. Adjust for change | |
2301 | in name of cppucnid.h. | |
2302 | * errors.c: Moved from gcc/cpperror.c. Do not include intl.h. | |
2303 | * expr.c: Moved from gcc/cppexp.c. | |
2304 | * files.c: Moved from gcc/cppfiles.c. Do not include intl.h. | |
2305 | Remove #define of O_BINARY, it is in system.h. | |
2306 | * identifiers.c: Moved from gcc/cpphash.c. | |
2307 | * internal.h: Moved from gcc/cpphash.h. Change header | |
2308 | guard name. All other files adjusted to match name change. | |
2309 | * init.c: Moved from gcc/cppinit.c. | |
2310 | (init_library) [ENABLE_NLS]: Call bindtextdomain. | |
2311 | * lex.c: Moved from gcc/cpplex.c. | |
2312 | * directives.c: Moved from gcc/cpplib.c. | |
2313 | * macro.c: Moved from gcc/cppmacro.c. | |
2314 | * pch.c: Moved from gcc/cpppch.c. Do not include intl.h. | |
2315 | * traditional.c: Moved from gcc/cpptrad.c. | |
2316 | * ucnid.h: Moved from gcc/cppucnid.h. Change header | |
2317 | guard name. | |
2318 | * ucnid.pl: Moved from gcc/cppucnid.pl. | |
2319 | * ucnid.tab: Moved from gcc/cppucnid.tab. Change header | |
2320 | guard name. | |
2321 | * symtab.c: Moved from gcc/hashtable.c. | |
2322 | * line-map.c: Moved from gcc. Do not include intl.h. | |
2323 | * mkdeps.c: Moved from gcc. | |
2324 | * system.h: New file. | |
c84ca916 | 2325 | * include/cpplib.h: Moved from gcc. Change header guard name. |
2326 | * include/line-map.h: Moved from gcc. Change header guard name. | |
2327 | * include/mkdeps.h: Moved from gcc. Change header guard name. | |
2328 | * include/symtab.h: Moved from gcc/hashtable.h. Change header | |
2329 | guard name. |