]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
Linemap infrastructure for virtual locations
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
46427374
TT
12011-10-15 Tom Tromey <tromey@redhat>
2 Dodji Seketeli <dodji@redhat.com>
3
4 * include/line-map.h (enum lc_reason)<LC_ENTER_MACRO>: New enum
5 member.
6 (MAX_SOURCE_LOCATION): New constant.
7 (struct line_map_ordinary, struct line_map_macro): New structs.
8 (struct line_map): Turn this into a union of the two above. Add
9 comments.
10 (struct maps_info): New struct.
11 (struct line_maps)<info_ordinary, info_macro>: Two new fields.
12 These now carry the map information that was previously scattered
13 in struct line_maps.
14 (struct map_info::allocated): Fix comment.
15 (MAP_START_LOCATION, ORDINARY_MAP_FILE_NAME)
16 (ORDINARY_MAP_STARTING_LINE_NUMBER)
17 (ORDINARY_MAP_INCLUDER_FILE_INDEX)
18 (ORDINARY_MAP_IN_SYSTEM_HEADER_P)
19 (ORDINARY_MAP_NUMBER_OF_COLUMN_BITS, MACRO_MAP_MACRO)
20 (MACRO_MAP_NUM_MACRO_TOKENS MACRO_MAP_LOCATIONS)
21 (MACRO_MAP_EXPANSION_POINT_LOCATION)
22 (LOCATION_POSSIBLY_IN_MACRO_MAP_P, LINEMAPS_MAP_INFO)
23 (LINEMAPS_MAPS, LINEMAPS_ALLOCATE, LINEMAPS_USED, LINEMAPS_CACHE)
24 (LINEMAPS_LAST_MAP, LINEMAPS_LAST_ALLOCATED_MAP)
25 (LINEMAPS_ORDINARY_MAPS, LINEMAPS_ORDINARY_ALLOCATED)
26 (LINEMAPS_ORDINARY_USED, LINEMAPS_ORDINARY_CACHE)
27 (LINEMAPS_LAST_ORDINARY_MAP, LINEMAPS_LAST_ALLOCATED_ORDINARY_MAP)
28 (LINEMAPS_MACRO_MAPS, LINEMAPS_MACRO_ALLOCATED)
29 (LINEMAPS_MACRO_USED, LINEMAPS_MACRO_CACHE)
30 (LINEMAPS_LAST_MACRO_MAP, LINEMAPS_LAST_ALLOCATED_MACRO_MAP)
31 (LINEMAPS_MAP_AT, LINEMAPS_ORDINARY_MAP_AT)
32 (LINEMAPS_MACRO_MAP_AT): New accessors for ordinary and macro map
33 information.
34 (linemap_check_ordinary, linemap_assert)
35 (linemap_location_before_p): New macros.
36 (linemap_position_for_line_and_column)
37 (linemap_tracks_macro_expansion_locs_p, linemap_add_macro_token)
38 (linemap_macro_expansion_map_p)
39 (linemap_macro_map_loc_to_def_point)
40 (linemap_macro_map_loc_unwind_once)
41 (linemap_macro_map_loc_to_exp_point, linemap_step_out_once)
42 (linemap_get_source_line linemap_get_source_column)
43 (linemap_map_get_macro_name, linemap_get_file_path)
44 (linemap_location_in_system_header_p)
45 (linemap_location_from_macro_expansion_p): Declare new functions.
46 (SOURCE_LINE, SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION)
47 (LINEMAP_FILE, LINEMAP_LINE, LINEMAP_SYSP): Assert that this
48 accessors act on ordinary maps only.
49 (INCLUDED_FROM): Return NULL for main files; use the new
50 accessors.
51 (LINEMAP_POSITION_FOR_COLUMN): Use the new accessors.
52 (struct expanded_location): Move here from gcc/input.h
53 (linemap_resolve_location, linemap_expand_location)
54 (linemap_expand_location_full): Declare new functions.
55 * line-map.c: Include cpplib.h, internal.h
56 (linemap_enter_macro, linemap_add_macro_token)
57 (linemap_get_expansion_line, linemap_get_expansion_filename): New
58 functions that are private to libcpp.
59 (linemap_assert): New macro.
60 (linemap_macro_loc_to_exp_point, linemap_macro_loc_to_exp_point)
61 (linemap_macro_loc_unwind, linemap_macro_map_loc_to_def_point)
62 (linemap_macro_map_loc_unwind_toward_spelling)
63 (linemap_macro_map_loc_to_exp_point)
64 (first_map_in_common_1, first_map_in_common): New static
65 functions.
66 (new_linemap): Define new static functions. Extracted and
67 enhanced from ...
68 (linemap_add): ... here. Use linemap_assert in lieu of abort
69 previously.
70 (linemap_tracks_macro_expansion_locs_p)
71 (linemap_add_macro_token, linemap_macro_expansion_map_p)
72 (linemap_check_ordinary, linemap_macro_map_loc_to_exp_point)
73 (linemap_macro_map_loc_to_def_point)
74 (linemap_macro_map_loc_unwind_once)
75 (linemap_step_out_once, linemap_map_get_index)
76 (linemap_get_source_line,linemap_get_source_column)
77 (linemap_get_file_path, linemap_map_get_macro_name)
78 (linemap_location_in_system_header_p)
79 (linemap_location_originated_from_system_header_p)
80 (linemap_location_from_macro_expansion_p)
81 (linemap_tracks_macro_expansion_locs_p)
82 (linemap_resolve_location, linemap_expand_location)
83 (linemap_expand_location_full)
84 (linemap_tracks_macro_expansion_locs_p)
85 (linemap_position_for_line_and_column, linemap_compare_locations):
86 Define new public functions.
87 (linemap_init): Initialize ordinary and macro maps information in
88 the map set.
89 (linemap_check_files_exited): Use the new accessors.
90 (linemap_free): Remove this dead code.
91 (linemap_line_start): Assert this uses an ordinary map. Adjust to
92 use the new ordinary map accessors and data structures. Don't
93 overflow past the lowest possible macro token's location.
94 (linemap_position_for_column): Assert the ordinary maps of the map
95 set are really ordinary. Use ordinary map accessors.
96 (linemap_lookup): Keep the same logic but generalize to allow
97 lookup of both ordinary and macro maps. Do not crash when called
98 with an empty line table.
99 * directives-only.c (_cpp_preprocess_dir_only): Adjust to use the
100 new API of line-map.h.
101 * directives.c (start_directive, do_line, do_linemarker)
102 (do_linemarker): Likewise.
103 * files.c (_cpp_find_file, _cpp_stack_include, open_file_failed)
104 (make_cpp_dir, cpp_make_system_header): Likewise.
105 * init.c (cpp_read_main_file): Likewise.
106 * internal.h (CPP_INCREMENT_LINE): Likewise.
107 (linemap_enter_macro, linemap_add_macro_token)
108 (linemap_get_expansion_line, linemap_get_expansion_filename): New
109 functions private to libcpp.
110 * lex.c (_cpp_process_line_notes, _cpp_skip_block_comment)
111 (skip_line_comment, skip_whitespace, lex_raw_string)
112 (_cpp_lex_direct): Likewise.
113 * macro.c (_cpp_builtin_macro_text): Likewise.
114 (_cpp_aligned_alloc): Initialize the new name member of the macro.
115 * traditional.c (copy_comment, _cpp_scan_out_logical_line):
116 Likewise.
117 * errors.c (cpp_diagnostic): Adjust to new linemap API.
118
892a371f
DS
1192011-08-28 Dodji Seketeli <dodji@redhat.com>
120
121 * line-map.c (linemap_add): Assert that reason must not be
122 LC_RENAME when called for the first time on a "main input file".
123
e3dfef44
GC
1242011-08-22 Gabriel Charette <gchare@google.com>
125
126 * init.c (cpp_create_reader): Inititalize forced_token_location_p.
127 * internal.h (struct cpp_reader): Add field forced_token_location_p.
128 * lex.c (_cpp_lex_direct): Use forced_token_location_p.
129 (cpp_force_token_locations): New.
130 (cpp_stop_forcing_token_locations): New.
131
32fe396e
RO
1322011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
133
134 PR libstdc++/1773
135 * init.c (cpp_init_builtins): Define __cplusplus 19971L.
136
7c1ffff9
JM
1372011-08-18 Joseph Myers <joseph@codesourcery.com>
138
139 * include/cpplib.h (struct cpp_options): Fix typo.
140
a48e3dd1
JM
1412011-08-18 Joseph Myers <joseph@codesourcery.com>
142
143 * include/cpplib.h (struct cpp_options): Add rliterals.
144 * init.c (struct lang_flags, lang_defaults): Add rliterals.
145 (cpp_set_lang): Set rliterals option.
146 (cpp_init_builtins): Define __STDC_UTF_16__ and __STDC_UTF_32__.
147 * lex.c (_cpp_lex_direct): Only accept raw strings if rliterals.
148
3f6ced10
GC
1492011-08-15 Gabriel Charette <gchare@google.com>
150
151 * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Remove.
152 Update all users to use linemap_position_for_column instead.
153
0681d04c
GC
1542011-07-28 Gabriel Charette <gchare@google.com>
155
156 * include/line-map.h (struct line_maps):
157 Remove unused field last_listed. Update all users.
158
5e9627ca
L
1592011-07-28 H.J. Lu <hongjiu.lu@intel.com>
160
161 * configure.ac: Set need_64bit_hwint to yes for x86 targets.
162 * configure: Regenerated.
163
a024b70f
RO
1642011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
165
166 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
167
5b6d595b
RO
1682011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
169 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
170
171 PR bootstrap/49794
172 * configure.ac: Test AM_ICONV with CXX.
173 * configure: Regenerate.
174 * system.h (HAVE_DESIGNATED_INITIALIZERS): Never define for C++.
175
d0a9fbe1
DS
1762011-07-15 Dodji Seketeli <dodji@redhat.com>
177
178 * directives.c (struct if_stack): Use source_location as type
179 here.
180 * include/cpplib.h (struct cpp_callbacks)<include, define, undef,
181 indent, def_pragma, used_define, used_undef>: Properly use
182 source_location as parameter type, rather than unsigned int.
183
fbdd5d87
RO
1842011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
185
186 PR target/39150
187 * configure.ac (host_wide_int): Handle x86_64-*-solaris2.1[0-9]
188 like i[34567]86-*-solaris2.1[0-9]*.
189 * configure: Regenerate.
190
8787a05a
JM
1912011-06-16 Jason Merrill <jason@redhat.com>
192
193 PR c++/45399
194 * lex.c (lex_raw_string): Don't check for embedded NUL.
195
38fbfaf6
DS
1962011-06-06 Dodji Seketeli <dodji@redhat.com>
197
198 PR preprocessor/48532
199 * directives.c (do_pragma): Don't forget the invocation location
200 when parsing the pragma name of a namespaced pragma directive.
201
fc0993ac
JT
2022011-05-29 John Tytgat <John.Tytgat@aaug.net>
203
204 * files.c (read_file_guts): Add test on non-zero value of S_ISREG.
205
ef230b38
UB
2062011-05-22 Uros Bizjak <ubizjak@gmail.com>
207
208 PR target/49104
209 * lex.c (init_vectorized_lexer): Do not set "minimum" when __3dNOW_A__
210 is defined. Check bit_MMXEXT and bit_CMOV to use search_line_mmx.
211
e5b0dad8
JK
2122011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
213
214 * system.h (ENUM_BITFIELD): Remove.
215
6cfae070
JJ
2162011-04-24 Jakub Jelinek <jakub@redhat.com>
217
218 PR preprocessor/48740
219 * lex.c (lex_raw_string): When raw string ends with
220 ??) followed by raw prefix and ", ensure it is preprocessed
221 with ??) rather than ??].
222
04695783
JM
2232011-04-20 Jim Meyering <meyering@redhat.com>
224
225 * files.c (destroy_cpp_file): Remove useless if-before-free.
226 * init.c (cpp_destroy): Likewise.
227 * macro.c (replace_args): Likewise.
228 * pch.c (cpp_valid_state): Likewise.
229
4489800d
KT
2302011-03-25 Kai Tietz <ktietz@redhat.com>
231
232 * files.c (file_hash_eq): Use filename_cmp
233 instead of strcmp.
234 (nonexistent_file_hash_eq): Likewise.
235 (remap_filename): Likewise.
236 Handle absolute DOS-path,
237 (append_file_to_dir): Check for IS_DIR_SEPARATOR
238 instead of slash.
239 (read_name_map): Likewise.
240 * linemap.c (linemap_add): Use filename_cmp
241 instead of strcmp.
242 * mkdeps.c (apply_vpath): Use filename_ncmp
243 instead of strncmp.
244 (deps_restore): Use filename_cmp instead of
245 strcmp.
246 * init.c (read_original_directory): Use
247 IS_DIR_SEPARATOR instead of checking for slash.
248
f3c33d9d
MM
2492011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
250
251 PR preprocessor/48192
252 * directives.c (do_ifdef): Do not consider conditional macros as
253 being defined.
254 (do_ifndef): Ditto.
255 * expr.c (parse_defined): Ditto.
256
01956319
RH
2572011-03-18 Richard Henderson <rth@redhat.com>
258
259 PR bootstrap/45381
260 * lex.c [ALTIVEC] (search_line_fast): Require gcc version 4.5.
261
c5a62c6f
EB
2622011-11-04 Eric Botcazou <ebotcazou@adacore.com>
263 Jakub Jelinek <jakub@redhat.com>
264
265 PR preprocessor/39213
266 * directives.c (end_directive): Call _cpp_remove_overlay for deferred
267 pragmas as well in traditional mode.
268
0e1a989c
ILT
2692010-11-17 Ian Lance Taylor <iant@google.com>
270
271 PR bootstrap/45538
272 * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS. Remove switch of
273 AC_LANG based on ENABLE_BUILD_WITH_CXX.
274
651a20b5
KT
2752010-11-16 Kai Tietz <kai.tietz@onevision.com>
276
277 PR preprocessor/17349
278 * lex.c (save_comment): Handle in argument passing c++
279 comments special.
280
480767a9
ILT
2812010-11-02 Ian Lance Taylor <iant@google.com>
282
283 * configure.ac: Use AC_SYS_LARGEFILE.
284 * configure: Rebuild.
285 * config.in: Rebuild.
286
078419c9 2872010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
480767a9 288
078419c9
BS
289 * line-map.h (source_location): Remove obsolete comment
290 mentioning location_s.
291
d6874138
KT
2922010-09-29 Kai Tietz <kai.tietz@onevision.com>
293
294 PR preprocessor/45362
295 * directives.c (cpp_pop_definition): Make static.
296 (do_pragma_push_macro): Reworked to store text
297 definition.
298 (do_pragma_pop_macro): Add free text definition.
299 (cpp_push_definition): Removed.
300 * include/cpplib.h (cpp_push_definition): Removed.
301 (cpp_pop_definition): Likewise.
302 * internal.h (def_pragma_macro): Remove member 'value'
303 and add new members 'definition', 'line',
304 'syshdr', 'sued' and 'is_undef'.
305 * pch.c (_cpp_restore_pushed_macros): Rework to work
306 on text definition and store additional macro flags.
307 (_cpp_save_pushed_macros): Likewise.
308
e3339d0f
JM
3092010-09-29 Joseph Myers <joseph@codesourcery.com>
310
311 * include/cpplib.h (cpp_options): Rename warn_deprecated,
312 warn_traditional, warn_long_long and pedantic.
313 * directives.c (directive_diagnostics, _cpp_handle_directive):
314 Update names of cpp_options members.
315 * expr.c (cpp_classify_number, eval_token): Update names of
316 cpp_options members.
317 * init.c (cpp_create_reader, post_options): Update names of
318 cpp_options members.
319 * internal.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Update names of
320 cpp_options members.
321 * macro.c (parse_params): Update names of cpp_options members.
322
128465e6
ILT
3232010-09-15 Ian Lance Taylor <iant@google.com>
324
325 * init.c: Fix type name in comment.
326
a69d2520
JJ
3272010-08-31 Jakub Jelinek <jakub@redhat.com>
328
329 PR preprocessor/45457
330 * expr.c (parse_defined): Call pfile->cb.user_builtin_macro hook if
331 needed.
332 * directives.c (do_ifdef, do_ifndef): Likewise.
333
707bcb7a
RO
3342010-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
335
336 * system.h [HAVE_INTTYPES_H]: Include inttypes.h.
337
6f173e52
RH
3382010-08-24 Richard Henderson <rth@redhat.com>
339
340 PR bootstrap/45376
341 * configure.ac (HAVE_SSE4): New check.
342 * configure, config.in: Rebuild.
343 * lex.c (search_line_sse42): Omit if !HAVE_SSE4.
344
789d73cb
RO
3452010-08-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
346
347 * lex.c [__sun__ && __svr4__]: Disable init_vectorized_lexer
348 etc. on Solaris 2/x86.
349
246a2fcb
RH
3502010-08-21 Richard Henderson <rth@redhat.com>
351 Andi Kleen <ak@linux.intel.com>
352 David S. Miller <davem@davemloft.net>
353
354 * configure.ac (AC_C_BIGENDIAN, AC_TYPE_UINTPTR_T): New tests.
355 (ssize_t): Check via AC_TYPE_SSIZE_T instead of AC_CHECK_TYPE.
356 (ptrdiff_t): Check via AC_CHECK_TYPE.
357 * config.in, configure: Rebuild.
358 * system.h: Include stdint.h, if available.
359 * lex.c (WORDS_BIGENDIAN): Provide default.
360 (acc_char_mask_misalign, acc_char_replicate, acc_char_cmp,
361 acc_char_index, search_line_acc_char, repl_chars, search_line_mmx,
362 search_line_sse2, search_line_sse42, init_vectorized_lexer,
363 search_line_fast): New.
364 (_cpp_clean_line): Use search_line_fast. Restructure the fast
365 loop to make it clear when we're leaving the loop. Stay in the
366 fast loop for non-trigraph '?'.
367
8e680db5
JJ
3682010-06-11 Jakub Jelinek <jakub@redhat.com>
369
370 * include/cpplib.h (struct cpp_callbacks): Add user_builtin_macro
371 callback.
372 (enum cpp_builtin_type): Add BT_FIRST_USER and BT_LAST_USER.
373 (cpp_macro_definition): Remove const qual from second argument.
374 * macro.c (enter_macro_context): Call user_builtin_macro callback for
375 NODE_BUILTIN !NODE_USED macros.
376 (warn_of_redefinition): Likewise. Remove const qual from second
377 argument.
378 (cpp_macro_definition): Likewise.
379 * pch.c (write_macdef, save_macros): Call user_builtin_macro callback
380 for NODE_BUILTIN !NODE_USED macros.
381
1cb42611
JM
3822010-06-10 Joseph Myers <joseph@codesourcery.com>
383
384 * include/cpplib.h (struct cpp_options): Remove show_column.
385 * init.c (cpp_create_reader, post_options): Don't set show_column.
386
ff5dfc48
JR
3872010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
388
389 PR bootstrap/44432
390 * configure.ac: Before using ZW_PROG_COMPILER_DEPENDENCIES for C++,
391 check that C++ compiler works.
392 * configure: Regenerate.
393
a9429e29
LB
3942010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
395
396 * include/symtab.h (ht_identifier_ptr): New.
397
c3f247f4
RW
3982010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
399 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
400
401 PR bootstrap/42798
402 * configure.ac: Check for declaration of 'basename(char *)'.
403 * configure: Regenerate.
404 * config.in: Regenerate.
405
2778d766
JM
4062010-04-25 Joseph Myers <joseph@codesourcery.com>
407
408 * include/cpplib.h (enum c_lang): Add CLK_GNUC1X and CLK_STDC1X.
409 * init.c (lang_defaults): Add entries for new language variants.
410 (cpp_init_builtins): Define __STDC_VERSION__ to 201000L for C1X
411 variants.
412
d8a12e84
MLI
4132010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
414
415 PR cpp/43195
416 * files.c (report_missing_guard): Test for #pragma once.
417
87cf0651
SB
4182010-04-07 Simon Baldwin <simonb@google.com>
419
420 * directives.c (do_diagnostic): Add warning reason argument,
421 call appropriate error reporting function for code.
422 (directive_diagnostics): Call specific warning functions with
423 warning reason where appropriate.
424 (do_error, do_warning, do_pragma_dependency): Add warning reason
425 argument to do_diagnostic calls.
426 * macro.c (_cpp_warn_if_unused_macro, enter_macro_context,
427 _cpp_create_definition): Call specific warning functions with
428 warning reason where appropriate.
429 * Makefile.in: Add new diagnostic functions to gettext translations.
430 * include/cpplib.h (struct cpp_callbacks): Add warning reason code
431 to error callback.
432 (CPP_DL_WARNING, CPP_DL_WARNING_SYSHDR, CPP_DL_PEDWARN, CPP_DL_ERROR,
433 CPP_DL_ICE, CPP_DL_NOTE, CPP_DL_FATAL): Replace macros with enums.
434 (CPP_W_NONE, CPP_W_DEPRECATED, CPP_W_COMMENTS,
435 CPP_W_MISSING_INCLUDE_DIRS, CPP_W_TRIGRAPHS, CPP_W_MULTICHAR,
436 CPP_W_TRADITIONAL, CPP_W_LONG_LONG, CPP_W_ENDIF_LABELS,
437 CPP_W_NUM_SIGN_CHANGE, CPP_W_VARIADIC_MACROS,
438 CPP_W_BUILTIN_MACRO_REDEFINED, CPP_W_DOLLARS, CPP_W_UNDEF,
439 CPP_W_UNUSED_MACROS, CPP_W_CXX_OPERATOR_NAMES, CPP_W_NORMALIZE,
440 CPP_W_INVALID_PCH, CPP_W_WARNING_DIRECTIVE): New enums for cpp
441 warning reason codes.
442 (cpp_warning, cpp_pedwarning, cpp_warning_syshdr,
443 cpp_warning_with_line, cpp_pedwarning_with_line,
444 cpp_warning_with_line_syshdr): New specific error reporting functions.
445 * pch.c (cpp_valid_state): Call specific warning functions with
446 warning reason where appropriate.
447 * errors.c (cpp_diagnostic, cpp_diagnostic_with_line): New central
448 diagnostic handlers.
449 (cpp_warning, cpp_pedwarning, cpp_warning_syshdr,
450 cpp_warning_with_line, cpp_pedwarning_with_line,
451 cpp_warning_with_line_syshdr): New specific error reporting functions.
452 * expr.c (cpp_classify_number, eval_token, num_unary_op): Call
453 specific warning functions with warning reason where appropriate.
454 * lex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
455 warn_about_normalization, lex_identifier_intern, lex_identifier,
456 _cpp_lex_direct): Ditto.
457 * charset.c (_cpp_valid_ucn, convert_hex, convert_escape,
458 narrow_str_to_charconst): Ditto.
459
d947ada0
JJ
4602010-04-06 Jakub Jelinek <jakub@redhat.com>
461
462 PR preprocessor/43642
463 * lex.c (lex_raw_string): Change type of TYPE variable to
464 unsigned char.
465
4d9e8446
RW
4662010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
467
468 * aclocal.m4: Regenerate.
469
52150625
JM
4702010-03-29 Jason Merrill <jason@redhat.com>
471
00a81b8b
JM
472 More N3077 raw string changes
473 * charset.c (cpp_interpret_string): Don't transform UCNs in raw
474 strings.
475 * lex.c (bufring_append): Split out from...
476 (lex_raw_string): ...here. Undo trigraph and line splicing
477 transformations. Do process line notes in multi-line literals.
478 (_cpp_process_line_notes): Ignore notes that were already handled.
479
52150625
JM
480 Some raw string changes from N3077
481 * charset.c (cpp_interpret_string): Change inner delimiters to ().
482 * lex.c (lex_raw_string): Likewise. Also disallow '\' in delimiter.
483
709d7160
JJ
4842010-02-11 Jakub Jelinek <jakub@redhat.com>
485
486 * init.c (read_original_filename): Don't call read_original_directory
487 if _cpp_handle_directive returns 0.
488
dadab4fd
JM
4892010-01-01 Joseph Myers <joseph@codesourcery.com>
490
491 PR preprocessor/41947
492 * expr.c (cpp_classify_number): Give error for hexadecimal
493 floating-point constant with no digits before or after point.
494
3de8a540
AC
4952009-11-20 Arnaud Charlet <charlet@adacore.com>
496
497 * macro.c (enter_macro_context): Call cb.used callback if defined.
498 * directives.c (do_idef, do_ifndef): Ditto.
499 * include/cpplib.h (struct cpp_callbacks): Add used callback.
500
17e7cb85
KT
5012009-11-11 Kai Tietz <kai.tietz@onevision.com>
502
503 * directives.c (do_pragma_push_macro): New pragma handler.
504 (do_pragma_pop_macro): Likewise.
505 (_cpp_init_internal_pragmas): Add push_macro and
506 pop_macro handler to internal pragmas.
507 (lex_macro_node_from_str): Removed.
508 (cpp_push_definition): Replace lex_macro_node_from_str
509 by _cpp_lex_identifier.
510 (cpp_pop_definition): Likewise.
511 * internal.h (_cpp_lex_identifier): New prototype.
512 (def_pragma_macro): New structure.
513 (cpp_reader): New member pushed_macros.
514 * lex.c (_cpp_lex_identifier): New function.
515 (lex_identifier_intern): New function.
516 * init.c (cpp_create_reader): Initialize pushed_macros
517 member.
518 (cpp_destroy): Free elements in pushed_macros member.
519 * pch.c (_cpp_save_pushed_macros): New function.
520 (_cpp_restore_pushed_macros): Likewise.
521 (_cpp_restore_pushed_macros): Use _cpp_save_pushed_macros.
522 (cpp_read_state): Use _cpp_restore_pushed_macros.
523
2c6e3f55
JJ
5242009-10-19 Jakub Jelinek <jakub@redhat.com>
525
526 * charset.c (cpp_init_iconv): Initialize utf8_cset_desc.
527 (_cpp_destroy_iconv): Destroy utf8_cset_desc, char16_cset_desc
528 and char32_cset_desc.
529 (converter_for_type): Handle CPP_UTF8STRING.
530 (cpp_interpret_string): Handle CPP_UTF8STRING and raw-strings.
531 * directives.c (get__Pragma_string): Handle CPP_UTF8STRING.
532 (parse_include): Reject raw strings.
533 * include/cpplib.h (CPP_UTF8STRING): New token type.
534 * internal.h (struct cpp_reader): Add utf8_cset_desc field.
535 * lex.c (lex_raw_string): New function.
536 (lex_string): Handle u8 string literals, call lex_raw_string
537 for raw string literals.
538 (_cpp_lex_direct): Call lex_string even for u8" and {,u,U,L,u8}R"
539 sequences.
540 * macro.c (stringify_arg): Handle CPP_UTF8STRING.
541
96c169e1
JJ
5422009-10-14 Jakub Jelinek <jakub@redhat.com>
543
544 PR preprocessor/41543
545 * include/line-map.h (RESERVED_LOCATION_COUNT): Define.
546 * line-map.c (linemap_init): Initialize highest_location and
547 highest_line to RESERVED_LOCATION_COUNT-1 instead of 0.
548
30c99a9e
JM
5492009-10-09 Jason Merrill <jason@redhat.com>
550
551 * charset.c (_cpp_valid_ucn): Update C++0x restrictions.
552
2214382c
NV
5532009-10-09 Neil Vachharajani <nvachhar@google.com>
554
555 * directives.c (DIRECTIVE_TABLE): Remove DEPRECATED from ident and
556 sccs.
557
e02222d2
LR
5582009-09-23 Loren J. Rittle <ljrittle@acm.org>
559
560 * configure.ac (AC_CHECK_HEADERS after AC_LANG(C++)): Add sys/stat.h.
561 * configure: Rebuilt.
562
9a8a2b7a
RG
5632009-09-22 Richard Guenther <rguenther@suse.de>
564
565 PR pch/38987
566 * files.c (pch_open_file): Disallow non-toplevel PCH inclusion.
567
74dc6a11
CD
5682009-09-18 Chris Demetriou <cgd@google.com>
569
570 PR preprocessor/28435:
571 * include/cpplib.h (struct cpp_options): Add new member
572 deps.need_preprocessor_output.
573 * files.c (open_file_failed): If preprocessor output is needed
574 always report an error.
575
933608b7
KT
5762009-09-13 Kai Tietz <kai.tietz@onevision.com>
577
578 * configure.ac: Set for i?86-w64-mingw*
579 need_64bit_hwint to yes.
580 * configure: Regenerated.
581
86373e7e
JM
5822009-09-10 Jason Merrill <jason@redhat.com>
583
584 * directives.c (cpp_define): constify.
585
fd2ab214
ILT
5862009-09-02 Ian Lance Taylor <iant@google.com>
587
588 * macro.c (stringify_arg): Escape CPP_WCHAR tokens.
589
df58e648
RW
5902009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
591
592 * configure.ac (AC_PREREQ): Bump to 2.64.
593
5213506e
RW
5942009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
595
596 * aclocal.m4: Regenerate.
597 * config.in: Regenerate.
598 * configure: Regenerate.
599
709a22df
TT
6002009-08-17 Tom Tromey <tromey@redhat.com>
601
602 PR preprocessor/41067:
603 * charset.c (convert_escape): Add missing ":" to error text.
604
0c539b47
DR
6052009-07-27 Douglas B Rupp <rupp@gnat.com>
606
607 * include/cpplib.h (INO_T_CPP): New macro.
608 (struct cpp_dir): Use it.
609
2b69c841
JQ
6102009-07-20 Jerry Quinn <jlquinn@optonline.net>
611
612 PR regression/40800
613 * configure.ac: Use = instead of == for testing
614 ENABLE_BUILD_WITH_CXX.
615 * configure: Rebuild.
616
f1bf410c
JQ
6172009-07-17 Jerry Quinn <jlquinn@optonline.net>
618
619 * directives.c (do_linemarker, do_line): Use CPP_STRING for
620 ignored enum value.
621 * files.c (find_file_in_dir): Add cast from void* to char*.
622 * symtab.c (ht_lookup_with_hash): Add cast from void* to char*.
623 * Makefile.in: (WARN_CFLAGS): Use general and C-specific
624 warnings.
625 (CXX, CXXFLAGS, WARN_CXXFLAGS, ALL_CXXFLAGS,
626 ENABLE_BUILD_WITH_CXX, CCDEPMODE, CXXDEPMODE, COMPILER,
627 COMPILER_FLAGS): New.
628 (DEPMODE): Set from CCDEPMODE or CXXDEPMODE.
629 (COMPILE.base): Use COMPILER instead of CC. Use COMPILER_FLAGS
630 instead of ALL_CFLAGS.
631 * configure.ac: Invoke AC_PROG_CXX. Separate C-specific warnings
632 from other warnings. Add -Wc++-compat to C-specific warnings.
633 Check for --enable-build-with-cxx. Set and substitute
634 ENABLE_BUILD_WITH_CXX. Invoke ZW_PROG_COMPILER_DEPENDENCIES
635 according to ENABLE_BUILD_WITH_CXX. Invoke AC_LANG before
636 AC_CHECK_HEADERS.
637 * configure: Rebuild.
638 * include/cpp-id-data.h: Remove extern "C".
639 * include/line-map.h: Likewise.
640 * include/mkdeps.h: Likewise.
641 * include/symtab.h: Likewise.
642 * internal.h: Likewise.
643
a28fbdba
MLI
6442009-06-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
645
646 * directives.c (parse_include): Add location argument. Update all
647 calls.
648 (parse_answer): Likewise.
649 (do_include_common): Error with exact location.
650 (parse_assertion): Likewise.
651
b506a5a2
MLI
6522009-06-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
653
654 * expr.c (num_div_op): Take explicit location.
655
7d8847a4
ILT
6562009-06-17 Ian Lance Taylor <iant@google.com>
657
658 * include/cpplib.h (progname): Don't declare.
659
3d8b2a98
ILT
6602009-06-12 Ian Lance Taylor <iant@google.com>
661
662 * include/cpplib.h (struct cpp_options): Add
663 warn_cxx_operator_names field.
664 (NODE_WARN_OPERATOR): Define.
665 (struct cpp_hashnode): Increase flags field to 10 bits, decrease
666 type to 6 bits.
667 * init.c (mark_named_operators): Add flags parameter.
668 (cpp_post_options): Pick flags value to pass to
669 mark_named_operators.
670 * lex.c (lex_identifier): If NODE_WARN_OPERATOR is set, warn that
671 identifier is an operator name in C++.
672
e74fe492
AH
6732009-06-01 Aldy Hernandez <aldyh@redhat.com>
674
675 * include/line-map.h (LAST_SOURCE_COLUMN): New.
676
4851089f
ILT
6772009-06-01 Ian Lance Taylor <iant@google.com>
678
679 * include/cpp-id-data.h: Add extern "C".
680 * include/line-map.h: Likewise.
681 * include/mkdeps.h: Likewise.
682 * include/symtab.h: Likewise.
683 * internal.h: Likewise.
684
7e5487a2
ILT
6852009-05-15 Ian Lance Taylor <iant@google.com>
686
687 * include/cpplib.h (enum cpp_builtin_type): Rename from enum
688 builtin_type. Change all uses.
689
00b0c19b
MLI
6902009-05-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
691
692 PR cpp/36674
693 * directives (do_linemarker): Compensate for the increment in
694 location that occurs when we reach the end of line.
695 * files (_cpp_stack_include): Mention _cpp_find_file in the
696 comment.
697
9a0c6187
JM
6982009-05-10 Joseph Myers <joseph@codesourcery.com>
699
700 * include/cpplib.h (enum cpp_token_fld_kind): Add
701 CPP_TOKEN_FLD_TOKEN_NO.
702 (struct cpp_macro_arg, struct cpp_identifier): Define.
703 (union cpp_token_u): Use struct cpp_identifier for identifiers.
704 Use struct cpp_macro_arg for macro arguments. Add token_no for
705 CPP_PASTE token numbers.
706 * directives.c (_cpp_handle_directive, lex_macro_node, do_pragma,
707 do_pragma_poison, parse_assertion): Use val.node.node in place of
708 val.node.
709 * expr.c (parse_defined, eval_token): Use val.node.node in place
710 of val.node.
711 * lex.c (cpp_ideq, _cpp_lex_direct, cpp_token_len,
712 cpp_spell_token, cpp_output_token, _cpp_equiv_tokens,
713 cpp_token_val_index): Use val.macro_arg.arg_no or val.token_no in
714 place of val.arg_no. Use val.node.node in place of val.node.
715 * macro.c (replace_args, cpp_get_token, parse_params,
716 lex_expansion_token, create_iso_definition, cpp_macro_definition):
717 Use val.macro_arg.arg_no or val.token_no in place of val.arg_no.
718 Use val.node.node in place of val.node.
719
9e322bc1
JM
7202009-05-03 Joseph Myers <joseph@codesourcery.com>
721
722 * charset.c (one_utf8_to_cppchar): Correct mask used for 5-byte
723 UTF-8 sequences.
724
f88d0772
JM
7252009-04-25 Joseph Myers <joseph@codesourcery.com>
726
727 PR preprocessor/39559
728 * expr.c (cpp_interpret_integer): Use a pedwarn for decimal
729 constants larger than intmax_t in C99 mode.
730
d1b38208
TG
7312009-04-21 Taras Glek <tglek@mozilla.com>
732
733 * include/cpp-id-data.h: Update GTY annotations to new syntax.
734 * include/cpplib.h: Likewise.
735 * include/line-map.h: Likewise.
736 * include/symtab.h: Likewise.
737
cfc93532
MLI
7382009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
739
740 PR c++/14875
741 * lex.c (cpp_type2name): Take a flags parameter. Call
742 cpp_named_operator2name for named operators and cpp_digraph2name
743 for digraphs.
744 (cpp_digraph2name): New.
745 (cpp_spell_token): Use it.
746 (cpp_output_token): Likewise.
747 * include/cpplib.h (cpp_type2name): Update declaration.
748 * init.c (cpp_named_operator2name): New.
749 * internal.h (cpp_named_operator2name): Declare.
750
9c650d90
MLI
7512009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
752
753 PR c++/13358
754 * init.c (cpp_create_reader): Wlong_long is disabled by default.
755 * expr.c (cpp_classify_number): Give different messages for C and
756 C++ front-ends.
757
aa508502
JM
7582009-04-19 Joseph Myers <joseph@codesourcery.com>
759
760 PR preprocessor/20078
761 * include/cpp-id-data.h (struct cpp_macro): Add extra_tokens
762 field.
763 * include/cpplib.h (SP_DIGRAPH, SP_PREV_WHITE): Define.
764 (struct cpp_token): Change flags to unsigned short.
765 * lex.c (_cpp_lex_direct): Initialize arg_no for CPP_PASTE tokens.
766 (_cpp_equiv_tokens): Check arg_no for CPP_PASTE tokens.
767 (cpp_token_val_index): Return CPP_TOKEN_FLD_ARG_NO for CPP_PASTE
768 tokens.
769 * macro.c (macro_real_token_count): New.
770 (enter_macro_context, replace_args): Use macro_real_token_count.
771 (create_iso_definition): Record whitespace surrounding and digraph
772 spelling of # and ## tokens using SP_PREV_WHITE and SP_DIGRAPH.
773 Set extra_tokens and save CPP_PASTE tokens with arg_no set for
774 multiple consecutive ## tokens.
775 (_cpp_create_definition): Initialize extra_tokens.
776 (cpp_macro_definition): Use macro_real_token_count.
777
61cc8223
JM
7782009-04-18 Joseph Myers <joseph@codesourcery.com>
779
780 * directives.c (parse_include): Pass true to check_eol.
781
c7f9c0b9
JM
7822009-04-18 Joseph Myers <joseph@codesourcery.com>
783
784 PR preprocessor/39646
785 * include/line-map.h (enum lc_reason): Add LC_RENAME_VERBATIM.
786 * line-map.c (linemap_add): Handle LC_RENAME_VERBATIM.
787 * directives.c (do_line, do_linemarker): Use LC_RENAME_VERBATIM in
788 place of LC_RENAME.
789
a5cb563b
JM
7902009-04-18 Joseph Myers <joseph@codesourcery.com>
791
792 PR preprocessor/39647
793 * directives.c (check_eol): Add parameter expand.
794 (do_undef, parse_include, do_line, do_linemarker, do_ident,
795 do_pragma_once, do_pragma_system_header, do_ifdef, do_ifndef,
796 do_else, do_endif, do_assert, do_unassert): All callers changed.
797 Pass true from do_line, false elsewhere.
798
18f41a1b
JM
7992009-04-12 Joseph Myers <joseph@codesourcery.com>
800
801 PR preprocessor/31869
802 * macro.c (stringify_arg): Handle NULL source token in padding
803 token where previous padding token did not have source token with
804 preceding whitespace.
805
748086b7
JJ
8062009-04-09 Jakub Jelinek <jakub@redhat.com>
807
808 * Makefile.in: Change copyright header to refer to version
809 3 of the GNU General Public License and to point readers at the
810 COPYING3 file and the FSF's license web page.
811 * charset.c: Likewise.
812 * directives-only.c: Likewise.
813 * directives.c: Likewise.
814 * errors.c: Likewise.
815 * expr.c: Likewise.
816 * files.c: Likewise.
817 * identifiers.c: Likewise.
818 * include/cpp-id-data.h: Likewise.
819 * include/cpplib.h: Likewise.
820 * include/line-map.h: Likewise.
821 * include/mkdeps.h: Likewise.
822 * include/symtab.h: Likewise.
823 * init.c: Likewise.
824 * internal.h: Likewise.
825 * lex.c: Likewise.
826 * line-map.c: Likewise.
827 * macro.c: Likewise.
828 * makeucnid.c: Likewise.
829 * mkdeps.c: Likewise.
830 * pch.c: Likewise.
831 * symtab.c: Likewise.
832 * system.h: Likewise.
833 * traditional.c: Likewise.
834 * ucnid.tab: Likewise.
835 * ucnid.h: Regenerate.
836
eec49116
JJ
8372009-04-01 Janis Johnson <janis187@us.ibm.com>
838
839a3b8a
JJ
839 PR c/39027
840 * include/cpplib.h (CPP_N_DEFAULT): Define.
841 * expr.c (interpret_float_suffix): Recognize d or D for double,
842 return new value for default.
843 (cpp_classify_number): Issue pedwarn for use of d or D in suffix.
844
eec49116
JJ
845 PR c/33466
846 * expr.c (interpret_float_suffix): Reject invalid suffix that uses
847 letters from decimal float and fixed-point suffixes.
848
47580d22
JM
8492009-03-31 Joseph Myers <joseph@codesourcery.com>
850
851 PR preprocessor/15638
852 * files.c (_cpp_find_file): Call open_file_failed after diagnosing
853 invalid PCH.
854 (open_file_failed): Make error for missing file fatal.
855 * include/cpplib.h (CPP_DL_FATAL): Define.
856
5a2df0fa
SV
8572009-03-30 Sergiy Vyshnevetskiy <serg@vostok.net>
858
859 PR preprocessor/31932:
860 * internal.h: Don't mention HAVE_ICONV_H.
861 * configure, config.in: Rebuild.
862 * configure.ac: Don't check for iconv.h.
863
c1a8a3c6
TT
8642009-03-30 Tom Tromey <tromey@redhat.com>
865
866 PR preprocessor/39512:
867 * line-map.c (linemap_init): Initialize 'reallocator' field.
868
a37a7b8a
JJ
8692009-03-30 Jakub Jelinek <jakub@redhat.com>
870
871 PR target/39558
872 * macro.c (cpp_get_token): If macro_to_expand returns NULL
873 and used some tokens, add CPP_PADDING before next token.
874
148e4216
JM
8752009-03-29 Joseph Myers <joseph@codesourcery.com>
876
877 PR preprocessor/34695
878 * makedepend.c: Remove.
879 * Makefile.in (makedepend_OBJS, makedepend$(EXEEXT)): Remove.
880 (all, clean, TAGS_SOURCES, include): Remove makedepend handling.
881 * directives.c (cpp_errors): Remove.
882 * errors.c (print_location, _cpp_begin_message, v_message):
883 Remove.
884 (cpp_error, cpp_error_with_line): Always use error callback.
885 (cpp_error, cpp_error_with_line, cpp_errno): Return bool.
886 * include/cpplib.h (cpp_options): Remove pedantic_errors,
887 inhibit_warnings, warn_system_headers, inhibit_errors,
888 warnings_are_errors, client_diagnostic.
889 (cpp_callbacks): Add extra arguments to error callback; make it
890 return bool.
891 (cpp_finish): Return void.
892 (cpp_destroy): Remove inaccurate comment about return value.
893 (cpp_errors, CPP_DL_EXTRACT, CPP_DL_WARNING_P): Remove.
894 (CPP_DL_NOTE): Define.
895 * include/line-map.h (linemap_print_containing_files): Remove.
896 * init.c (cpp_finish): Do not check for or return number of
897 errors.
898 * internal.h (cpp_reader): Remove errors field.
899 * line-map.c (linemap_print_containing_files): Remove.
900 * macro.c (_cpp_create_definition): Use CPP_DL_NOTE for message
901 about previous definition. Only emit it if previous diagnostic
902 was emitted.
903
f1450211
JM
9042009-03-28 Joseph Myers <joseph@codesourcery.com>
905
906 * Makefile.in (po/$(PACKAGE).pot): Use $(mkinstalldirs) not
907 mkinstalldirs.
908
8f5929e1
JJ
9092009-03-18 Jakub Jelinek <jakub@redhat.com>
910
911 * include/cpplib.h (struct cpp_dir): Reorder fields for 64-bit hosts.
912
4bb09c26
JM
9132009-02-21 Joseph Myers <joseph@codesourcery.com>
914
915 * lex.c (lex_string): Return a CPP_LESS token for missing '>' in a
916 header name.
917 (_cpp_lex_direct): Handle this.
918
68c9ab45
RG
9192009-02-15 Richard Guenther <rguenther@suse.de>
920
921 Revert last change.
922
601b3e1a
RG
9232009-02-13 Richard Guenther <rguenther@suse.de>
924
925 * configure.ac: Enable LFS.
926 * configure: Re-generate.
927 * config.in: Likewise.
928
fc0cd180
BE
9292009-01-05 Ben Elliston <bje@au.ibm.com>
930
931 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
932 (.po.pox): Likewise.
933 (po/$(PACKAGE).pot): Likewise.
934
db89a3be
AO
9352008-12-10 Alexandre Oliva <aoliva@redhat.com>
936
937 PR target/37033
938 * pch.c (cpp_valid_state): Improve message for poisoned symbols.
939 Allow for differences in __GCC_HAVE_DWARF2_CFI_ASM.
940
cc955282
JM
9412008-11-29 Joseph Myers <joseph@codesourcery.com>
942
943 * lex.c (cpp_token_len): Use 6 as default length.
944
47960aaf
MLI
9452008-10-31 Manuel López-Ibáñez <manu@gcc.gnu.org>
946
947 * expr.c (struct op): Add location.
948 (_cpp_parse_expr): Propagate locations throught the stack
949 of expressions.
950 (reduce): Likewise.
951 (check_promotion): Use explicit location in errors.
952
631d0d36
MG
9532008-10-05 Matthew Gingell <gingell@adacore.com>
954 Arnaud Charlet <charlet@adacore.com>
955
956 * include/cpplib.h (cpp_comments, cpp_comment_table): New structs.
957 (cpp_get_comments): New function.
958 * internal.h (struct cpp_reader): Add comments field.
959 * init.c (cpp_destroy): Free comments.
960 * lex.c (store_comment, cpp_get_comments): New functions.
961 (comments): New struct.
962 (save_comment): Store comments in comments struct.
963
c047ce93
SB
9642008-09-18 Simon Baldwin <simonb@google.com>
965
966 * include/cpplib.h (struct cpp_options): Add new boolean flag
967 warn_builtin_macro_redefined.
968 * init.c (cpp_create_reader): Initialize warn_builtin_macro_redefined.
969 * (struct builtin_operator): Split out from previous struct builtin,
970 enhance extra const correctness.
971 * (struct builtin_macro): Split out from previous struct builtin, add
972 new always_warn_if_redefined flag, enhance const correctness.
973 * (mark_named_operators): Use struct builtin_operator.
974 * (cpp_init_special_builtins): Use struct builtin_macro, add NODE_WARN
975 to builtins selectively.
976 * macro.c (warn_of_redefinition): Return false if a builtin macro
977 is not flagged with NODE_WARN.
978
affa55c6
JJ
9792008-07-31 Jakub Jelinek <jakub@redhat.com>
980
981 PR preprocessor/36649
982 * files.c (struct report_missing_guard_data): New type.
983 (report_missing_guard): Put paths into an array instead of printing
984 them right away. Return 1 rather than 0.
985 (report_missing_guard_cmp): New function.
986 (_cpp_report_missing_guards): Sort and print paths gathered by
987 report_missing_guard callback.
988
3b8f20a1
MLI
9892008-07-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
990
991 PR 28079
992 * directives.c (strtolinenum): Handle overflow.
993 (do_line): Give a warning if line number overflowed.
994 (do_linemarker): Update call to strtolinenum.
995
1bb64668
MLI
9962008-07-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
997
998 * include/line-map.h (linenum_type): New typedef.
999 (struct line_map): Use it.
1000 (SOURCE_LINE): Second arguments is a LOCATION not a LINE.
1001 (SOURCE_COLUMN): Likewise.
1002 * macro.c (_cpp_builtin_macro_text): Use linenum_type. Don't store
1003 source_location values in a variable of type linenum_type.
1004 * directives.c (struct if_stack): Use linenum_type.
1005 (strtoul_for_line): Rename as strtolinenum.
1006 (do_line): Use linenum_type.
1007 (do_linemarker): Use linenum_type and strtolinenum.
1008 (_cpp_do_file_change): Use linenum_t.
1009 * line-map.c (linemap_add): Likewise.
1010 (linemap_line_start): Likewise.
1011 * traditional.c (struct fun_macro): 'line' is a source_location.
1012 * errors.c (print_location): Use linenum_type.
1013 * directives-only.c (_cpp_preprocess_dir_only): Likewise.
1014 * internal.h (CPP_INCREMENT_LINE): Likewise.
1015 * lex.c (_cpp_skip_block_comment): Use source_location.
1016
5950c3c9
BE
10172008-07-14 Ben Elliston <bje@au.ibm.com>
1018
1019 * include/cpplib.h (NODE_CONDITIONAL): New.
1020 (struct cpp_callbacks): New macro_to_expand field.
1021 (struct cpp_hashnode): Adjust size of flags and type fields.
1022 (cpp_peek_token): Prototype.
1023 * lex.c (cpp_peek_token): New function.
1024 (_cpp_temp_token): Protect pre-existing lookaheads.
1025 * macro.c (cpp_get_token): Expand any conditional macros.
1026 (_cpp_backup_tokens_direct): New.
1027 (_cpp_backup_tokens): Call _cpp_backup_tokens_direct.
1028 (warn_of_redefinition): Silently allow redefined conditional
1029 macros.
1030 (_cpp_create_definition): Remove the conditional flag when a user
1031 defines one of the conditional macros.
1032 * internal.h (_cpp_backup_tokens_direct): New prototype.
1033
e85edc9e
AH
10342008-06-13 Andrew Haley <aph@redhat.com>
1035
1036 PR preprocessor/33305
1037 * macro.c (replace_args): Print a warning for empty macro
1038 arguments in C89 and C++.
1039
18c04407
RW
10402008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1041
1042 * Makefile.in ($(srcdir)/aclocal.m4): Update dependencies.
1043 * configure: Regenerate.
1044
2d09b640
RW
10452008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1046
1047 * Makefile.in (datarootdir): New variable.
1048
0b7c73cc
L
10492008-06-12 H.J. Lu <hongjiu.lu@intel.com>
1050
1051 PR preprocessor/36479
1052 * charset.c (cpp_interpret_string_notranslate): Also set
1053 narrow_cset_desc.width.
1054
cd985f66
JM
10552008-06-07 Joseph Myers <joseph@codesourcery.com>
1056
1057 * configure.ac (parisc*64*-*-*): Remove.
1058 * configure: Regenerate.
1059
d750887f
TT
10602008-05-30 Tom Tromey <tromey@redhat.com>
1061
1062 PR preprocessor/36320:
1063 * internal.h (_cpp_parse_expr): Update.
1064 * expr.c (_cpp_parse_expr): Add 'is_if' argument. Update error
1065 messages.
1066 * directives.c (do_if): Update.
1067 (do_elif): Require expression if processing group.
1068
c100de59
DS
10692008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
1070
1071 * include/cpplib.h (struct cpp_dir): Add new field, canonical_name.
1072
5d6342eb
TT
10732008-05-21 Tom Tromey <tromey@redhat.com>
1074
1075 PR preprocessor/27777:
1076 * lex.c (cpp_output_line_to_string): New function.
1077 * internal.h (_cpp_begin_message): Don't declare.
1078 * errors.c (_cpp_begin_message): Now static.
1079 * include/cpplib.h (cpp_output_line_to_string): Declare.
1080 * directives.c (do_diagnostic): Rewrote. Use
1081 cpp_output_line_to_string. Don't use _cpp_begin_message.
1082
dae4174e
TT
10832008-05-21 Tom Tromey <tromey@redhat.com>
1084
1085 * include/symtab.h (HT_ALLOCED): Remove.
1086 (ht_purge): Declare.
1087 * symtab.c (DELETED): New define.
1088 (ht_lookup): Update comment.
1089 (ht_lookup_with_hash): Handle deleted entries. Remove HT_ALLOCED
1090 code. Use subobject allocator for strings, if it exists.
1091 (ht_expand): Handle deleted entries.
1092 (ht_forall): Likewise.
1093 (ht_purge): New function.
1094 (ht_dump_statistics): Print deletion statistics.
1095
899015a0
TT
10962008-05-13 Tom Tromey <tromey@redhat.com>
1097
1098 PR preprocessor/22168:
1099 * include/cpplib.h (struct cpp_options) <objc>: Update
1100 documentation.
1101 * expr.c (eval_token): Warn for use of assertions.
1102 * directives.c (directive_diagnostics): Warn about extensions.
1103 (DEPRECATED): New define.
1104 (DIRECTIVE_TABLE): Use it.
1105
71c10038
TT
11062008-05-06 Tom Tromey <tromey@redhat.com>
1107
1108 PR preprocessor/35313, PR preprocessor/36088:
1109 * expr.c (optab) <QUERY, COMMA>: Set precedence to 4.
1110 (reduce) <case CPP_QUERY>: Special case CPP_COMMA and CPP_COLON.
1111
2bd0fe3d
DM
11122008-05-04 David S. Miller <davem@davemloft.net>
1113
1114 * configure.ac (sparc*-*-*): Always set need_64bit_hwint to yes.
1115 * configure: Regenerate.
1116
28f68625
DF
11172008-04-22 Daniel Franke <franke.daniel@gmail.com>
1118
1119 * include/cpplib.h (cpp_define_formatted): New.
1120 * directives.c (cpp_define_formatted): New.
1121
688e7a53
TT
11222008-04-21 Tom Tromey <tromey@redhat.com>
1123
1124 PR libcpp/33415:
1125 * charset.c (_cpp_convert_input): Add buffer_start argument.
1126 Ignore UTF-8 BOM if seen.
1127 * internal.h (_cpp_convert_input): Add argument.
1128 * files.c (struct _cpp_file) <buffer_start>: New field.
1129 (destroy_cpp_file): Free buffer_start, not buffer.
1130 (_cpp_pop_file_buffer): Likewise.
1131 (read_file_guts): Update.
1132
b6baa67d
KVH
11332008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
1134
1135 * include/cpp-id-data.h (UC): Was U, conflicts with U"..." literal.
1136 * include/cpplib.h (CHAR16, CHAR32, STRING16, STRING32): New tokens.
1137 (struct cpp_options): Added uliterals.
1138 (cpp_interpret_string): Update prototype.
1139 (cpp_interpret_string_notranslate): Idem.
1140 * charset.c (init_iconv_desc): New width member in cset_converter.
1141 (cpp_init_iconv): Add support for char{16,32}_cset_desc.
1142 (convert_ucn): Idem.
1143 (emit_numeric_escape): Idem.
1144 (convert_hex): Idem.
1145 (convert_oct): Idem.
1146 (convert_escape): Idem.
1147 (converter_for_type): New function.
1148 (cpp_interpret_string): Use converter_for_type, support u and U prefix.
1149 (cpp_interpret_string_notranslate): Match changed prototype.
1150 (wide_str_to_charconst): Use converter_for_type.
1151 (cpp_interpret_charconst): Add support for CPP_CHAR{16,32}.
1152 * directives.c (linemarker_dir): Macro U changed to UC.
1153 (parse_include): Idem.
1154 (register_pragma_1): Idem.
1155 (restore_registered_pragmas): Idem.
1156 (get__Pragma_string): Support CPP_STRING{16,32}.
1157 * expr.c (eval_token): Support CPP_CHAR{16,32}.
1158 * init.c (struct lang_flags): Added uliterals.
1159 (lang_defaults): Idem.
1160 * internal.h (struct cset_converter) <width>: New field.
1161 (struct cpp_reader) <char16_cset_desc>: Idem.
1162 (struct cpp_reader) <char32_cset_desc>: Idem.
1163 * lex.c (digraph_spellings): Macro U changed to UC.
1164 (OP, TK): Idem.
1165 (lex_string): Add support for u'...', U'...', u"..." and U"...".
1166 (_cpp_lex_direct): Idem.
1167 * macro.c (_cpp_builtin_macro_text): Macro U changed to UC.
1168 (stringify_arg): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
1169
deb984e6
PB
11702008-04-18 Paolo Bonzini <bonzini@gnu.org>
1171
1172 PR bootstrap/35457
1173 * aclocal.m4: Regenerate.
1174 * configure: Regenerate.
1175
bf048bea
TT
11762008-04-17 Tom Tromey <tromey@redhat.com>
1177
1178 PR libcpp/34866:
1179 * errors.c (cpp_error): Don't reference a token before the start
1180 of the current run.
1181
7f27b0f8
TT
11822008-04-16 Tom Tromey <tromey@redhat.com>
1183
1184 * Makefile.in (TAGS_SOURCES): New variable.
1185 (TAGS): New target.
1186
a1fcb9a1
KK
11872008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
1188
1189 * configure.ac: (need_64bit_hwint): Need 64bit hwint for sh-*-*
1190 and shbe-*-*.
1191 * configure: Rebuilt.
1192
93d45d9e
JM
11932008-04-02 Joseph Myers <joseph@codesourcery.com>
1194
1195 * include/cpplib.h (struct cpp_callbacks): Add used_define,
1196 used_undef and before_define.
1197 (NODE_USED): Define.
1198 * directives.c (do_define, do_undef, undefine_macros, do_ifdef,
1199 do_ifndef, cpp_pop_definition): Handle new flag and use new
1200 callbacks.
1201 * expr.c (parse_defined): Handle new flag and use new callbacks.
1202 * macro.c (enter_macro_context, _cpp_free_definition): Handle new
1203 flag and use new callbacks.
1204
d4c32e1d
JJ
12052008-04-01 Jakub Jelinek <jakub@redhat.com>
1206
1207 PR pch/13675
1208 * files.c (struct _cpp_file): Remove pch field.
1209 (pch_open_file): Don't set file->pch, just file->pchname.
1210 (should_stack_file): After pfile->cb.read_pch call
1211 free pchname and clear pchname, don't close file->fd.
1212 Test file->pchname instead of file->pch. Don't close fd after cb.
1213 (_cpp_stack_include): Test file->pchname instead of file->pch.
1214
161031e3
TT
12152008-03-28 Tom Tromey <tromey@redhat.com>
1216
1217 * Makefile.in (POSTCOMPILE): New variable.
1218 (.c.o): Use it.
1219
14ccf800
TT
12202008-03-13 Tom Tromey <tromey@redhat.com>
1221
1222 PR libcpp/35322:
1223 * directives.c (destringize_and_run): Set pfile->directive.
1224
830465c6
MM
12252008-03-06 Markus Milleder <markus.milleder@generali.at>
1226
1227 PR preprocessor/35458
1228 * mkdeps.c (munge): Quote '#' with a '\'.
1229
d482a073
RW
12302008-02-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1231
1232 PR preprocessor/35379
1233 * mkdeps.c (deps_write): Ensure the first target always appears
1234 in the first column, without leading backslash newline. Avoid
1235 some more extra whitespace.
1236
185a6cc1
TS
12372008-02-25 Thiemo Seufer <ths@mips.com>
1238
d482a073 1239 * Makefile.in ($(srcdir)/config.in): Depend on configure.ac.
185a6cc1 1240
2bf41bf0
TT
12412008-02-19 Tom Tromey <tromey@redhat.com>
1242
1243 * traditional.c (lex_identifier): Use CPP_HASHNODE.
1244 * lex.c (lex_identifier): Use CPP_HASHNODE.
1245 * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Wrap in
1246 do-while.
1247 * identifiers.c (alloc_node): Change return type.
1248 (_cpp_init_hashtable): Don't cast 'alloc_node'.
1249 (proxy_assertion_broken): New declaration.
1250 (cpp_forall_identifiers): Move comment.
1251 * line-map.c (linemap_add): Comment fix.
1252 (linemap_line_start): Indentation fix.
1253
765d600a
JJ
12542008-01-25 Jakub Jelinek <jakub@redhat.com>
1255
1256 PR preprocessor/34692
1257 * macro.c (collect_args): Add pragma_buff argument. Push
1258 CPP_PRAGMA ... CPP_PRAGMA_EOL tokens to *pragma_buff, rather
1259 than into arguments. Reset prevent_expansion and parsing_args
1260 state at CPP_PRAGMA_EOL/CPP_EOF.
1261 (funlike_invocation_p): Add pragma_buff argument, pass it through
1262 to collect_args.
1263 (enter_macro_context): Add result argument. Adjust
1264 funlike_invocation_p caller. Emit all deferred pragma tokens
1265 gathered during collect_args before the expansion, add a padding
1266 token. Return 2 instead of 1 if any pragma tokens were prepended.
1267 (cpp_get_token): If enter_macro_context returns 2, don't return
1268 a padding token, instead cycle to grab CPP_PRAGMA token.
1269 * directives.c (_cpp_handle_directive): If was_parsing_args
1270 in deferred pragma, leave parsing_args and prevent_expansion as is.
1271
ec46053b
TT
12722008-01-22 Tom Tromey <tromey@redhat.com>
1273
765d600a 1274 PR c++/34859
ec46053b
TT
1275 * macro.c (_cpp_create_definition): Handle __STDC_LIMIT_MACROS and
1276 __STDC_CONSTANT_MACROS.
1277
681c6ab0
FF
12782008-01-07 Fred Fish <fnf@specifix.com>
1279
765d600a 1280 PR preprocessor/30363
681c6ab0
FF
1281 * traditional.c (replace_args_and_push): Add local variable
1282 cxtquote, calculate the replacement text size assuming a
1283 worst case of every input character quoted with backslash,
1284 and properly handle output quoting of quote characters in
1285 actual arguments used in function-like macros.
1286
33ae4837
TT
12872008-01-03 Tom Tromey <tromey@redhat.com>
1288
765d600a 1289 PR preprocessor/34602
33ae4837
TT
1290 * directives.c (do_line): Don't try to spell EOF token.
1291 (do_linemarker): Add comment.
1292
675575f5
DD
12932007-12-11 DJ Delorie <dj@redhat.com>
1294
1295 * charset.c (convert_using_iconv): Close out any shift states,
1296 returning to the initial state.
1297
97f6bd40
TT
12982007-12-06 Tom Tromey <tromey@redhat.com>
1299
765d600a 1300 PR c/29172
97f6bd40
TT
1301 * internal.h (struct cpp_reader) <file_hash_entries>: Changed
1302 type.
1303 <file_hash_entries_allocated, file_hash_entries_used>: Removed.
1304 * files.c (FILE_HASH_POOL_SIZE): New macro.
1305 (struct file_hash_entry_pool): New.
1306 (destroy_all_cpp_files): New function.
1307 (allocate_file_hash_entries): Allocate a file_hash_entry_pool.
1308 (new_file_hash_entry): Update.
1309 (free_file_hash_entries): New function.
1310 (_cpp_cleanup_files): Call free_file_hash_entries and
1311 destroy_all_cpp_files.
1312 (cpp_clear_file_cache): New function.
1313 * include/cpplib.h (cpp_clear_file_cache): Declare.
1314
d56a25e1
TT
13152007-12-03 Tom Tromey <tromey@redhat.com>
1316
765d600a 1317 PR preprocessor/34288
d56a25e1
TT
1318 * configure.ac, config.in: Rebuilt.
1319 * configure.ac: Check for ssize_t.
1320
607f74e9
TT
13212007-11-30 Tom Tromey <tromey@redhat.com>
1322
765d600a 1323 PR preprocessor/32868
607f74e9
TT
1324 * macro.c (_cpp_create_definition): Special case
1325 __STDC_FORMAT_MACROS.
1326
b0f4807f
MM
13272007-11-16 Michael Matz <matz@suse.de>
1328
1329 * files.c (search_path_head): Fix check for absolute paths.
1330
f1e20710
TT
13312007-11-11 Tom Tromey <tromey@redhat.com>
1332
765d600a 1333 PR c++/17557
f1e20710
TT
1334 * include/cpplib.h (cpp_included_before): Declare.
1335 * files.c (struct file_hash_entry) <location>: New field.
1336 (_cpp_find_file): Initialize new field.
1337 (make_cpp_dir): Likewise.
1338 (cpp_included_before): New function.
1339
f373b44d
TT
13402007-11-01 Tom Tromey <tromey@redhat.com>
1341
765d600a 1342 PR preprocessor/30805
f373b44d
TT
1343 * macro.c (paste_tokens): Handle padding token.
1344 (paste_tokens): Don't abort unless padding has PASTE_LEFT flag.
1345
5b9a40df
TT
13462007-10-31 Tom Tromey <tromey@redhat.com>
1347
765d600a 1348 PR preprocessor/30786
5b9a40df
TT
1349 * macro.c (builtin_macro): Return result of _cpp_do__Pragma.
1350 * directives.c (_cpp_do__Pragma): Return error status.
1351 * internal.h (_cpp_do__Pragma): Update.
1352 * directives.c (get__Pragma_string): Back up if EOF seen.
1353
5ffeb913
TT
13542007-09-06 Tom Tromey <tromey@redhat.com>
1355
1356 * internal.h (struct cpp_reader) <invocation_location>: New
1357 field.
1358 (struct cpp_reader) <set_invocation_location>: Likewise.
1359 * init.c (cpp_set_line_map): New function.
1360 * line-map.c (linemap_add): Use linemap's allocator.
1361 * include/line-map.h (GTY): Define.
1362 (line_map_realloc): New typedef.
1363 (struct line_map): Mark with GTY.
1364 (struct line_maps): Likewise.
1365 (struct line_maps) <maps>: Likewise.
1366 (struct line_maps) <reallocator>: New field.
1367 * include/symtab.h (GTY): Conditionally define.
1368 * include/cpplib.h (cpp_set_line_map): Declare.
1369 (cpp_get_token_with_location): Declare.
1370 * macro.c (cpp_get_token): Set invocation_location on the reader.
1371 (cpp_get_token_with_location): New function.
1372
ac6b1c67
CF
13732007-08-30 Chao-ying Fu <fu@mips.com>
1374
1375 * expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur,
1376 ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk.
1377 (cpp_classify_number): Support decimal fixed-point constants without
1378 exponents.
1379 Warn about fixed-point constants when -pedantic.
1380 * include/cpplib.h (CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE): Change
1381 comments to support fixed-point values.
1382 (CPP_N_FRACT, CPP_N_ACCUM): Define.
1383
cda5e672
TT
13842007-08-18 Tom Tromey <tromey@redhat.com>
1385
765d600a 1386 PR preprocessor/32974
cda5e672
TT
1387 * directives.c (parse_include): Don't check for EOL when
1388 processing #pragma dependency.
1389
ccfc4c91
OW
13902007-07-30 Ollie Wild <aaw@google.com>
1391
1392 * directives-only.c: New file.
1393 * internal.h (struct _cpp_dir_only_callbacks): New.
1394 (_cpp_preprocess_dir_only): New function.
1395 * directives.c (_cpp_handle_directive): Check directives_only before
1396 disabling execution of indented directives.
1397 * files.c (_cpp_stack_file): Add directives_only check.
1398 * include/cpplib.h (struct cpp_options): Add directives_only.
1399 (cpp_init_special_builtins): New function.
1400 * init.c (cpp_init_special_builtins): New function.
1401 (cpp_init_builtins): Move builtin_array initialization to
1402 cpp_init_special_builtins.
1403 (post_options): Check directives_only before setting
1404 pfile->state.prevent_expansion = 1.
1405 * macro.c (_cpp_builtin_macro_text): Print an error if __COUNTER__
1406 is expanded inside a directive while -fdirectives-only is enabled.
1407 * Makefile.in (libcpp_a_OBJS): Add directives-only.o.
1408 (libcpp_a_SOURCES): Add directives-only.c.
1409
a206413a
UB
14102007-07-04 Uros Bizjak <ubizjak@gmail.com>
1411
1412 * traditional.c (_cpp_scan_out_logical_line): Initialize
1413 fmacro.args, fmacro.node, fmacro.offset, fmacro.line and
1414 fmacro.args to prevent 'may be used uninitialized' warning.
1415
c77cd3d1
UB
14162007-07-03 Uros Bizjak <ubizjak@gmail.com>
1417
1418 * include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q):
1419 Add new constants.
1420 * expr.c (interpret_float_suffix): Process 'w', 'W', 'q' and 'Q'
1421 suffixes. Return CPP_N_MD_W for 'w' or 'W' suffixes and CPP_N_MD_Q
1422 for 'q' or 'Q' suffixes.
1423
66938a1d
DS
14242007-06-17 Danny Smith <dannysmith@users.sourceforge.net
1425
e1311401 1426 * files.c (open_file): Correct typo.
66938a1d 1427
71995ede
VP
14282007-06-16 Vladimir Prus <vladimir@codesourcery.com>
1429
e1311401 1430 * files.c (open_file): Prevent the call
71995ede
VP
1431 for stat from overwriting errno.
1432
84152c25
VP
14332007-06-09 Vladimir Prus <vladimir@codesourcery.com>
1434
e1311401 1435 * files.c (open_file): Account for the
84152c25
VP
1436 fact that on windows, opening a directory gives
1437 EACCES.
1438
f7fd775f
JW
14392007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
1440
1441 PR preprocessor/23479
1442 * expr.c (cpp_classify_number): Implement 0b-prefixed binary
1443 integer constants.
1444 (append_digit): Likewise.
1445 * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed
1446 binary integer constants.
1447
ed0e74e0
DK
14482007-05-31 Dave Korn <dave.korn@artimi.com>
1449
1450 PR preprocessor/14331
1451 * lex.c (_cpp_get_fresh_line): Don't warn if no newline at EOF.
1452
a702045a
OW
14532007-05-24 Ollie Wild <aaw@google.com>
1454
1455 * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER.
1456 * pch.c (cpp_write_pch_deps): Save __COUNTER__ state.
1457 (cpp_write_pch_state): Save __COUNTER__ state.
1458 (cpp_valid_state): Check valid __COUNTER__ state.
1459 (cpp_read_state): Read new __COUNTER__ state.
1460 * include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator.
1461 * init.c (builtin_array): Add __COUNTER__/BT_COUNTER.
1462 * internal.h (struct cpp_reader): Add counter member.
1463
126e073b
SM
14642007-05-23 Simon Martin <simartin@users.sourceforge.net>
1465
1466 PR preprocessor/20077
1467 * macro.c (create_iso_definition): Fixed the method to determine
1468 whether the token-pasting operator appears at the beginning or the end
1469 of a macro.
1470
0b4cafec
ILT
14712007-05-21 Ian Lance Taylor <iant@google.com>
1472
1473 * internal.h (struct cpp_reader): Add new fields:
1474 nonexistent_file_hash and nonexistent_file_ob.
1475 * files.c: Include "obstack.h".
1476 (find_file_in_dir): Before trying to open the file, look up the
1477 path name in the hash table of nonexistent files. After failing
1478 to open the file, add the path name to the hash table.
1479 (_cpp_find_file): Cache the results of looking up the file name
1480 starting with the quote and bracket chain heads, if we can.
1481 (nonexistent_file_hash_eq): New static function.
1482 (_cpp_init_files): Initialize pfile->nonexistent_file_hash and
1483 pfile->nonexistent_file_ob.
1484 (_cpp_cleanup_files): Free pfile->nonexistent_file_hash and
1485 pfile->nonexistent_file_ob.
1486
30e04921
JJ
14872007-05-14 Janis Johnson <janis187@us.ibm.com>
1488
5a6bb57e
JJ
1489 * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic.
1490
30e04921
JJ
1491 PR c/31924
1492 * expr.c (interpret_float_suffix): Check for invalid suffix.
1493
22a8a52d
EC
14942007-05-02 Eric Christopher <echristo@apple.com>
1495
1496 * expr.c (num_div_op): Don't overflow if the result is
1497 zero.
1498
fca35e1b
TT
14992007-05-02 Tom Tromey <tromey@redhat.com>
1500
765d600a 1501 PR preprocessor/28709
fca35e1b
TT
1502 * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs.
1503
4cd97075
MM
15042007-03-30 Michael Meissner <michael.meissner@amd.com>
1505
1506 * directives.c (lex_macro_node_from_str): Fix alloca call to be
1507 type correct.
1508
121de39f
RH
15092007-03-30 Richard Henderson <rth@redhat.com>
1510
1511 * directives.c (lex_macro_node_from_str): New.
1512 (cpp_push_definition, cpp_pop_definition): New.
1513 * include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare.
1514
4fcb360b
BM
15152007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1516
1517 * Makefile.in: Add dummy install-pdf target.
1518
67e64439
TT
15192007-01-30 Tom Tromey <tromey@redhat.com>
1520
765d600a 1521 PR preprocessor/30468
67e64439
TT
1522 * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped
1523 './'.
1524
ee380365
TT
15252007-01-30 Tom Tromey <tromey@redhat.com>
1526
765d600a 1527 PR preprocessor/29966
ee380365
TT
1528 * macro.c (lex_expansion_token): Save and restore cpp_reader's
1529 cur_token.
1530 (_cpp_create_definition): Don't restore cur_token here.
1531 * lex.c (_cpp_lex_token): Added assertion.
1532
024abeb3
TT
15332007-01-27 Tom Tromey <tromey@redhat.com>
1534
1535 * configure: Rebuilt.
1536
ee1c2a10
TT
15372007-01-12 Tom Tromey <tromey@redhat.com>
1538
765d600a 1539 PR preprocessor/28227
ee1c2a10
TT
1540 * directives.c (lex_macro_node): Added 'is_def_or_undef'
1541 argument.
1542 (do_define): Update.
1543 (do_undef): Update.
1544 (do_ifdef): Update.
1545 (do_ifndef): Update.
1546
67214c16
PB
15472007-01-11 Paolo Bonzini <bonzini@gnu.org>
1548
1549 * configure: Regenerate.
1550
1aa6ca40
PB
15512007-01-11 Paolo Bonzini <bonzini@gnu.org>
1552
1553 * configure: Regenerate.
1554
705e2d28
TT
15552007-01-04 Tom Tromey <tromey@redhat.com>
1556
765d600a 1557 PR preprocessor/28165
705e2d28
TT
1558 * internal.h (cpp_in_primary_file): New function.
1559 * directives.c (do_include_next): Use cpp_in_primary_file.
1560 (do_pragma_once): Likewise.
1561 (do_pragma_system_header): Likewise.
1562
7af45bd4
ILT
15632006-12-29 Ian Lance Taylor <iant@google.com>
1564
1565 * lex.c (_cpp_clean_line): Add uses of __builtin_expect. Don't
1566 look backward at the end of the line unless we saw a backslash.
1567
9d30f270
JJ
15682006-12-29 Jakub Jelinek <jakub@redhat.com>
1569
1570 PR preprocessor/29612
1571 * directives.c (do_linemarker): Set pfile->buffer->sysp always, not
1572 only when new_sysp is non-zero.
1573
30b0edc0
TT
15742006-12-28 Tom Tromey <tromey@redhat.com>
1575
765d600a 1576 PR preprocessor/30001
30b0edc0
TT
1577 * charset.c (_cpp_convert_input): Check that to.len is greater
1578 than zero.
1579
85d9c13c
TS
15802006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
1581
1582 * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU.
83cc06b2 1583 * configure: Rebuilt.
85d9c13c 1584
dfafdaa6
DG
15852006-11-01 Douglas Gregor <doug.gregor@gmail.com>
1586
1587 * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X
1588 for experimental C++0x mode.
1589 * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has
1590 adopted the preprocessor changes introduced in C99.
1591
0f45f0f5
JM
15922006-10-29 Joseph Myers <joseph@codesourcery.com>
1593
1594 * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux*
1595 depending on --enable-targets=all.
1596 * configure: Regenerate.
1597
de000d22
JJ
15982006-10-12 Jakub Jelinek <jakub@redhat.com>
1599
1600 PR preprocessor/28709
1601 * macro.c (paste_tokens): Do error reporting here, use BUF with the
1602 spelled LHS token as opposed to spelling it again.
1603 (paste_all_tokens): Don't report errors here, just break on failure.
1604
b5422ad7
BM
16052006-10-10 Brooks Moses <bmoses@stanford.edu>
1606
1607 * Makefile.in: Added empty "pdf" target.
1608
aaf50ff2
GK
16092006-09-22 Geoffrey Keating <geoffk@apple.com>
1610
1611 * configure.ac: Make need_64_bit_hwint case for x86-darwin
1612 match exactly the glob in gcc/config.gcc.
1613 * configure: Regenerate.
1614
c663e301
JM
16152006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1616
1617 PR c/28768
1618 PR preprocessor/14634
1619 * lex.c (lex_string): Pedwarn for unterminated literals.
1620
f7288899
EC
16212006-09-08 Eric Christopher <echristo@apple.com>
1622
1623 * configure.ac: Add 64-bit HWI support for i?86-darwin.
1624
b52dbbf8
SE
16252006-08-14 Steve Ellcey <sje@cup.hp.com>
1626
1627 PR c++/28288
1628 PR c++/14556
1629 * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens.
1630 (CPP_LAST_EQ): Change.
1631 (CPP_LAST_PUNCTUATOR): Change.
1632 * expr.c (cpp_operator): Remove MIN and MAX.
1633 (reduce): Remove CPP_MIN and CPP_MAX.
1634 (num_binary_op): Ditto.
1635 * lex.c (_cpp_lex_direct): Ditto.
1636 (cpp_avoid_paste): Remove ? as legal symbol after > or <.
1637
1c90c6f9
JJ
16382006-06-09 Jakub Jelinek <jakub@redhat.com>
1639
1640 PR preprocessor/27746
1641 * directives.c (do_pragma): Handle pragma with valid namespace
1642 and invalid name coming from macro expansion.
1643 * directives.c (destringize_and_run): Initialize next field in
1644 context.
1645
1646 PR c/27747
1647 PR c++/27748
1648 * directives.c (destringize_and_run): Set NO_EXPAND on the
1649 tokens.
1650
1651 * macro.c (_cpp_backup_tokens): Fix comment typo.
1652
5c3c3683
DJ
16532006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1654
1655 * Makefile.in (CATALOGS): Add po/ prefix.
1656 * configure: Regenerated.
1657
b2bd74bc
CD
16582006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1659
1660 * Makefile.in: Add install-html target. Add install-html to .PHONY
1661
be8ac3e2
GZ
16622006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
1663
1664 * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP.
1665 * files.c (_cpp_get_file_stat): New function.
1666 * include/cpplib.h (builtin_type): Add BT_TIMESTAMP.
1667 * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP.
1668 * internal.h (_cpp_get_file_stat): Prototype.
1669 (struct cpp_buffer): Add timestamp.
1670
83900997
JJ
16712006-01-23 Jakub Jelinek <jakub@redhat.com>
1672
1673 PR preprocessor/25717
1674 * init.c (cpp_init_builtins): If __STDC__ will not change value
1675 between system headers and other sources, define it as a normal
1676 macro rather than a builtin.
1677 * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check
1678 cpp_in_system_header condition.
1679
16802006-01-05 Paolo Bonzini <bonzini@gnu.org>
9220c30c
PB
1681
1682 * Makefile.in: Use -MMD instead of -MD.
1683
bc4071dd
RH
16842006-01-04 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
1685 Richard Henderson <rth@redhat.com>
1686
1687 Merge from gomp branch:
1688 * directives.c (struct pragma_entry): Add is_deferred. Add ident
1689 entry to value union.
1690 (end_directive): Don't eat the line if in_deferred_pragma.
1691 (run_directive): Remove pragma hacks.
1692 (insert_pragma_entry): Remove.
1693 (new_pragma_entry): New.
1694 (register_pragma_1): Split out of register_pragma. Only handle
1695 the lookup tree and return the new entry.
1696 (cpp_register_pragma): Fill in the pragma entry here.
1697 (cpp_register_deferred_pragma): New.
1698 (register_pragma_internal): New.
1699 (_cpp_init_internal_pragmas): Use register_pragma_internal.
1700 (do_pragma): Allow pragma expansion after namespace. For deferred
1701 pragmas, don't slurp the line into a string.
1702 (destringize_and_run): Save tokens for deferred pragmas.
1703 (cpp_handle_deferred_pragma): Remove.
1704 * macro.c (builtin_macro): Remove pragma token hack.
1705 (_cpp_push_token_context): Rename from push_token_context and export.
1706 * internal.h (struct lexer_state): Add pragma_allow_expansion.
1707 (_cpp_push_token_context): Declare.
1708 * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return
1709 a token. Update the line number correctly if so.
1710 (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens.
1711 (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas.
1712 * include/cpplib.h (PRAGMA_EOL): New.
1713 (CPP_TOKEN_FLD_PRAGMA): New.
1714 (struct cpp_token): Add val.pragma.
1715 (struct cpp_options): Remove defer_pragmas.
1716 (cpp_handle_deferred_pragma): Remove.
1717 (cpp_register_deferred_pragma): Declare.
1718
d09e893f
JJ
17192006-01-01 Jakub Jelinek <jakub@redhat.com>
1720
1721 PR c++/25294
1722 * directives.c (do_pragma): If pragma line ends with multi-line
1723 block comment, end the saved deferred pragma string before that
1724 comment. Handle embedded '\0' chars on the pragma line.
1725
ab84748a
VR
17262005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1727
1728 PR c++/23333
1729 * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure.
1730
ad6ed77e
JG
17312005-12-07 Jon Grimm <jgrimm2@us.ibm.com>
1732 Ben Elliston <bje@au.ibm.com>
1733
1734 * include/cpplib.h (CPP_N_DFLOAT): New.
1735 * expr.c (interpret_float_suffix): Identify df, dd, and dl
1736 suffixes as decimal floating point constants.
1737 (cpp_classify_number): Disallow hexadecimal DFP constants.
1738
ba096620 17392005-11-14 Gerald Pfeifer <gerald@pfeifer.com>
bc4071dd 1740 Ian Lance Taylor <ian@airs.com>
ba096620
GP
1741
1742 * include/cpplib.h (struct cpp_callbacks): Annotate error with
1743 ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0).
1744
456b8ce5
UB
17452005-11-09 Per Bothner <per@bothner.com>
1746 Uros Bizjak <uros@kss-loka.si>
f7288899 1747
456b8ce5
UB
1748 PR c/24101
1749 * init.c (read_original_filename): Temporarily set
1750 state.in_directive before calling _cpp_lex_direct for
1751 CPP_HASH tokens.
1752
5571f74f
JW
17532005-11-03 James E Wilson <wilson@specifix.com>
1754
1755 PR preprocessor/24202
1756 * files.c (_cpp_pop_file_buffer): Set buffer_valid to false.
1757
a63607ed
JM
17582005-11-04 Joseph S. Myers <joseph@codesourcery.com>
1759
1760 * include/cpplib.h (struct cpp_callbacks): Make error take
1761 va_list* parameter.
1762 * errors.c (cpp_error): Update call to callback.
1763
651ed942
AP
17642005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
1765
1766 PR preprocessor/22042
1767 * macro.c (_cpp_builtin_macro_text): Lower the needed max
1768 buffer size.
1769 (cpp_quote_string): Don't octalify non printable
1770 charactors.
1771
178b58b5
JM
17722005-11-03 Joseph S. Myers <joseph@codesourcery.com>
1773
1774 PR c++/17964
1775 * include/cpplib.h (struct cpp_options): Add client_diagnostic.
1776 (struct cpp_callbacks): Add error.
1777 * errors.c (cpp_error): If client_diagnostic, use error callback.
1778 * charset.c (convert_escape): Don't use %03o in diagnostic.
1779
3ee5ed11 17802005-10-21 James E Wilson <wilson@specifix.com>
6568f34b
JW
1781
1782 PR preprocessor/15220
1783 * files.c (_cpp_find_file): New parameter angle_brackets. Fix all
1784 callers. Pass to open_file_failed.
1785 (open_file_failed): New parameter angle_brackets. Fix all callers.
1786 Use in print_dep assignment.
1787 * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file.
1788 * internal.h (_cpp_find_file): Add new parm to declaration.
f7288899 1789
077fc835
KH
17902005-10-08 Kazu Hirata <kazu@codesourcery.com>
1791
1792 * configure.ac: Require 64-bit int for arm*-*-*eabi*.
1793 * configure: Regenerate.
1794
cbc43ae0
ILT
17952005-10-04 Ian Lance Taylor <ian@airs.com>
1796
1797 PR preprocessor/13726
1798 * directives.c (check_eol_return_comments): New static function.
1799 (parse_include): Add buf parameter. Change all callers.
1800 (do_include_common): If not discard comments, turn on
1801 save_comments. Pass collected comments to include callback.
1802 * include/cpplib.h (struct cpp_callbacks): Add new parameter to
1803 include callback: cpp_token list.
1804
af15a2fe
JM
18052005-09-20 Joseph S. Myers <joseph@codesourcery.com>
1806
1807 * include/cpplib.h (struct cpp_options): Add extended_identifiers.
1808 * init.c (struct lang_flags, lang_defaults): Add
1809 extended_identifiers.
1810 (cpp_set_lang): Use it.
1811 * lex.c (forms_identifier_p): Check extended_identifiers.
1812
f5eab47e
JJ
18132005-08-30 Jakub Jelinek <jakub@redhat.com>
1814
1815 PR preprocessor/20348
1816 PR preprocessor/20356
1817 * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
1818 2004-06-05 changes.
1819
467129e6
KG
18202005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1821
1822 * configure.ac (ACX_PROG_CC_WARNING_OPTS): add
1823 -Wmissing-format-attribute.
1824
1825 * configure: Regenerate.
1826
200031d1
KC
18272005-06-29 Kelley Cook <kcook@gcc.gnu.org>
1828
1829 * all files: Update FSF address in copyright headers.
1830 * makeucnid.c (write_copyright): Update outputted FSF address.
1831
f610dd5f
ZW
18322005-06-13 Zack Weinberg <zack@codesourcery.com>
1833
1834 * configure.ac: Invoke ZW_CREATE_DEPDIR and
1835 ZW_PROG_COMPILER_DEPENDENCIES.
1836 * aclocal.m4, configure: Regenerate.
1837 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
1838 New variables.
1839 (distclean): Clean up $(DEPDIR) and its contents.
1840 (.c.o): Use $(COMPILE).
1841 Include $(DEPDIR)/*.Po for most object->header dependencies.
1842
c3f829c1
GDR
18432005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1844
1845 * configure.ac: Check declarations for asprintf and vasprintf.
1846 * config.in: Regenerate.
1847 * configure: Likewise.
1848
1849 * charset.c (conversion_loop): Use XRESIZEVEC.
1850 (convert_no_conversion): Likewise.
1851 (convert_using_iconv): Likewise.
1852 (init_iconv_desc): Cast return value of alloca.
1853 (cpp_host_to_exec_charset): Use XNEWVEC.
1854 (emit_numeric_escape): Use XRESIZEVEC.
1855 (cpp_interpret_string): Use XNEWVEC.
1856 (cpp_interpret_string): Use XRESIZEVEC.
1857 (_cpp_interpret_identifier): Cast return value of alloca.
1858 (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
1859 * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
1860 (parse_include): Use XNEWVEC.
1861 (insert_pragma_entry): Rename local variable "new" to
f610dd5f 1862 "new_entry".
c3f829c1
GDR
1863 (save_registered_pragmas): Cast return value of xmemdup.
1864 (destringize_and_run): Same for alloca.
1865 (parse_assertion): Likewise.
1866 (do_assert): Cast allocated storage to proper type.
1867 (cpp_define): Likewise.
1868 (_cpp_define_builtin): Likewise.
1869 (cpp_undef): Likewise.
1870 (handle_assertion): Likewise.
1871 (cpp_push_buffer): Rename local variable "new" to "new_buffer".
1872 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
1873 (CPP_UMINUS): Likewise.
1874 (struct cpp_operator): Rename from struct operator.
1875 (_cpp_expand_op_stack): Use XRESIZEVEC.
1876 * files.c (pch_open_file): Use XNEWVEC.
1877 (pch_open_file): Use XRESIZEVEC.
1878 (read_file_guts): Use XNEWVEC and XRESIZEVEC.
1879 (dir_name_of_file): Use XNEWVEC.
1880 (make_cpp_file): Use XCNEW.
1881 (make_cpp_dir): Likewise.
1882 (allocate_file_hash_entries): USE XNEWVEC.
1883 (cpp_included): Cast return value of htab_find_with_hash.
1884 (append_file_to_dir): Use XNEWVEC.
1885 (read_filename_string): Likewise. Use XRESIZEVEC too.
1886 (read_name_map): Cast return value of alloca. Use XRESIZEVEC.
1887 (remap_filename): Use XNEWVEC.
1888 (struct pchf_entry): Move definition out of struct pchf_data.
1889 (_cpp_save_file_entries): Use XCNEWVAR.
1890 (_cpp_read_file_entries): Use XNEWVAR.
1891 * identifiers.c (alloc_node): Use XOBNEW.
1892 * init.c (cpp_create_reader): Use XCNEW.
1893 (cpp_init_builtins): Cast of b->value to enum builtin_type.
1894 (read_original_directory): Cast return value of alloca.
1895 * lex.c (add_line_note): Use XRESIZEVEC.
1896 (warn_about_normalization): Use XNEWVEC.
1897 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
1898 (new_buff): Use XNEWVEC.
1899 * line-map.c (linemap_add): Use XRESIZEVEC.
1900 * macro.c (builtin_macro): Cast return value of alloca.
1901 (paste_tokens): Likewise.
1902 (expand_arg): Use XNEWVEC and XRESIZEVEC.
1903 (_cpp_save_parameter): Use XRESIZEVEC.
1904 (create_iso_definition): Cast allocated storage to proper type.
1905 (_cpp_create_definition): Likewise.
1906 (cpp_macro_definition): Use XRESIZEVEC.
1907 * makedepend.c (add_clm): Use XNEW.
1908 (add_dir): Likewise.
1909 * mkdeps.c (munge): Use XNEWVEC.
1910 (deps_init): Use XCNEW.
1911 (deps_add_target): Use XRESIZEVEC.
1912 (deps_add_default_target): Cast return value of alloca.
1913 (deps_add_dep): Use XRESIZEVEC.
1914 (deps_add_vpath): Likewise. Use XNEWVEC too.
1915 (deps_restore): Likewise.
1916 * pch.c (save_idents): Use XNEW and XNEWVEC.
1917 (cpp_save_state): Use XNEW.
1918 (count_defs): Cast return value of htab_find.
1919 (write_defs): Likewise.
1920 (cpp_write_pch_deps): Use XNEWVEC.
1921 (collect_ht_nodes): Use XRESIZEVEC.
1922 (cpp_valid_state): Use XNEWVEC.
1923 (save_macros): Use XRESIZEVEC. Cast return value of xmemdup.
1924 * symtab.c (ht_create): Use XCNEW.
1925 (ht_lookup_with_hash): Cast return value of obstack_copy0.
1926 (ht_expand): Use XCNEWVEC.
1927 * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
1928 (bool): Do not define if __cplusplus.
1929
1ed17cd5
ZW
19302005-05-12 Zack Weinberg <zack@codesourcery.com>
1931
1932 * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
1933 (do_sccs): Delete function definition, #define to do_ident.
1934 (do_ident): Don't hardwire directive name.
1935
5a8c20ce
RK
19362005-05-12 Ryota Kunisawa <kunisawa@access.co.jp>
1937
1938 PR bootstrap/21230
1939 * configure: Regenerate.
1940
473c5bc9
AP
19412005-04-27 Andris Pavenis <pavenis@latnet.lv>
1942
1943 * files.c: Include io.h for DJGPP to get prototype of setmode.
1944
c1fc5047
PB
19452005-04-19 Per Bothner <per@bothner.com>
1946
1947 PR preprocessor/20907
1948 * line-map.c (linemap_line_start): Fix bug when we need to increse
1949 column_bits but can re-use the current line_map.
1950
042630ad
KG
19512005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1952
1953 * system.h (fopen, fdopen, freopen): Define these to the unlocked
1954 libiberty functions.
1955
0d667716
KG
19562005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1957
1958 * configure.ac (libcpp_UNLOCKED_FUNCS): New.
1959 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
1960 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
1961 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
1962 _unlocked function.
1963 (fwrite_unlocked): Fix prototype.
1ed17cd5 1964
0d667716
KG
1965 * configure, config.in: Regenerate.
1966
cae064e7
JJ
19672005-04-05 Jakub Jelinek <jakub@redhat.com>
1968
1969 PR preprocessor/19475
1970 * macro.c (create_iso_definition): For < ISO C99, don't
1971 pedwarn if there is no whitespace between macro name and its
1972 replacement, but the replacement starts with a basic character
1973 set character.
1974
cbada204
AJ
19752005-03-28 Andreas Jaeger <aj@suse.de>
1976
1977 * lex.c (warn_about_normalization): Cast field width to int to
1978 avoid warning.
1979
f42eccdb
JM
19802005-03-19 Joseph S. Myers <joseph@codesourcery.com>
1981
1982 * configure.ac: Consistently use solaris2.1[0-9]* instead of
1983 solaris2.1[0-9].
1984 * configure: Regenerate.
1985
c79e602b
GK
19862005-03-15 Geoffrey Keating <geoffk@apple.com>
1987
1988 * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
1989 UCN rather than printing an error.
1990
50668cf6
GK
19912005-03-14 Geoffrey Keating <geoffk@apple.com>
1992
6baba9bb
GK
1993 * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
1994
19952005-03-14 Geoffrey Keating <geoffk@apple.com>
1ed17cd5 1996
50668cf6
GK
1997 * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
1998 * charset.c: Update for new format of ucnid.h.
1999 (ucn_valid_in_identifier): Update for new format of ucnid.h.
2000 Add NST parameter, and update it; update callers.
2001 (cpp_valid_ucn): Add NST parameter, update callers. Replace abort
2002 with cpp_error.
2003 (convert_ucn): Pass normalize_state to cpp_valid_ucn.
2004 * internal.h (struct normalize_state): New.
2005 (INITIAL_NORMALIZE_STATE): New.
2006 (NORMALIZE_STATE_RESULT): New.
2007 (NORMALIZE_STATE_UPDATE_IDNUM): New.
2008 (_cpp_valid_ucn): New.
2009 * lex.c (warn_about_normalization): New.
2010 (forms_identifier_p): Add normalize_state parameter, update callers.
2011 (lex_identifier): Add normalize_state parameter, update callers. Keep
2012 the state current.
2013 (lex_number): Likewise.
2014 (_cpp_lex_direct): Pass normalize_state to subroutines. Check
2015 it with warn_about_normalization.
2016 * makeucnid.c: New.
2017 * ucnid.h: Replace.
2018 * ucnid.pl: Remove.
2019 * ucnid.tab: Make appropriate for input to makeucnid.c. Remove
2020 comments about obsolete version of C++.
2021 * include/cpplib.h (enum cpp_normalize_level): New.
2022 (struct cpp_options): Add warn_normalize field.
2023
47e20491
GK
20242005-03-11 Geoffrey Keating <geoffk@apple.com>
2025
2026 * directives.c (glue_header_name): Update call to cpp_spell_token.
2027 * internal.h (_cpp_interpret_identifier): New.
2028 * charset.c (_cpp_interpret_identifier): New.
2029 (_cpp_valid_ucn): Allow UCN version of '$'.
2030 * lex.c (lex_identifier): Add extra parameter to indicate if initial
2031 character was '$' or '\'. Support identifiers with UCNs.
2032 (forms_identifier_p): Allow UCNs.
2033 (_cpp_lex_direct): Pass extra parameter to lex_identifier.
2034 (utf8_to_ucn): New.
2035 (cpp_spell_token): Add FORSTRING parameter. Use it.
2036 (cpp_token_as_text): Update call to cpp_spell_token.
2037 (cpp_output_token): Write UCNs back out.
2038 (stringify_arg): Update call to cpp_spell_token.
2039 (paste_tokens): Likewise.
2040 (cpp_macro_definition): Likewise.
2041 * macro.c (stringify_arg): Likewise.
2042 (paste_tokens): Likewise.
2043 (cpp_macro_definition): Likewise.
2044 * include/cpplib.h: Add parameter to cpp_spell_token.
2045
73096711
JJ
20462005-03-04 Jakub Jelinek <jakub@redhat.com>
2047
2048 PR bootstrap/20282
2049 PR bootstrap/20305
2050 * macro.c (replace_args, cpp_get_token): Copy whole
2051 cpp_token_u instead of just cpp_string field from it.
2052
2203a881
DP
20532005-02-28 Devang Patel <dpatel@apple.com>
2054
2055 * directives.c (do_line): Save sysp early before line table is
2056 realloc'ed.
1ed17cd5 2057
c5ff069d
ZW
20582005-02-20 Zack Weinberg <zack@codesourcery.com>
2059
2060 PR 18785
2061 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
2062 (cpp_host_to_exec_charset): New function.
2063 * include/cpplib.h: Declare cpp_host_to_exec_charset.
2064
04c90eea
DP
20652005-02-19 Devang Patel <dpatel@apple.com>
2066
2067 * charset.c (_cpp_convert_input): Check '\r' before inserting
2068 '\n' at the end.
c5ff069d 2069
6da55c00
EC
20702005-02-15 Eric Christopher <echristo@redhat.com>
2071
2072 PR preprocessor/19077
2073 * macro.c (cpp_macro_definition): Move handling of whitespace
2074 to PREV_WHITE conditional. Remove overloading of len
2075 variable.
2076
31c3e631
KH
20772005-02-14 Kazu Hirata <kazu@cs.umass.edu>
2078
2079 * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
2080 traditional.c: Update copyright.
2081
be0f1e54
PB
20822005-02-14 Paolo Bonzini <bonzini@gnu.org>
2083
2084 PR bootstrap/19818
2085 * configure.ac: Check for declaration of basename and getopt.
2086 * config.in: Regenerate.
2087 * configure: Regenerate.
2088 * internal.h (ustrcspn): New.
2089 * macro.c (create_iso_definition): Fix allocation of memory.
2090 (padding_token): Add cast to remove const-ness.
2091 * pch.c (cpp_read_state): Use ustrcspn.
2092
ecddfb39
MS
20932005-02-08 Mike Stump <mrs@apple.com>
2094
2095 * files.c (pchf_adder): Remove.
2096 (struct pchf_adder_info): Likewise.
2097 (_cpp_save_file_entries): Write out all files so that #import works.
2098
9fcdd891
JM
20992005-01-23 Joseph S. Myers <joseph@codesourcery.com>
2100
2101 * configure: Regenerate.
2102
ecfd72e7
TS
21032005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
2104
2105 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
2106
6c25a4f7 2107 * include/cpplib.h: Also update copyright years.
c5ff069d 2108
942926ad
GK
21092005-01-03 Geoffrey Keating <geoffk@apple.com>
2110
2111 * files.c (_cpp_find_file): Add files found by search_path_exhausted
2112 to the list of all files.
2113
a2566ae9
GDR
21142005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
2115
2116 * internal.h: Update references to Cpp lib filenames.
2117 * directives.c: Likewise.
2118 * init.c: Likewise.
2119 * macro.c: Likewise.
2120 * traditional.c: Likewise.
2121
1b449375
EB
21222004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2123
2124 PR preprocessor/15167
2125 * files.c (destroy_cpp_file): New function.
2126 (should_stack_file): Make a new file if the
2127 compared file is still stacked.
2128
28303828
NN
21292004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
2130
c5ff069d 2131 PR preprocessor/17610
28303828
NN
2132 * directives.c (do_include_common): Error out if an empty filename
2133 is given for #include (or #include_next or #import).
2134
c812785a
RS
21352004-11-27 Roger Sayle <roger@eyesopen.com>
2136 Zack Weinberg <zack@codesourcery.com>
2137
2138 * internal.h: Replace all uses of uchar with unsigned char.
2139 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
2140 with !IN_GCC, so uchar is only defined whilst building libcpp.
2141
f91eaa01
KC
21422004-11-24 Kelley Cook <kcook@gcc.gnu.org>
2143
2144 * aclocal.m4: Regenerate.
2145
f78ce0c2
RS
21462004-11-24 Roger Sayle <roger@eyesopen.com>
2147
2148 PR preprocessor/15824
2149 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
2150 directly, instead of the non-existant "system.h" and "ansidecl.h".
2151 * configure: Regenerate.
2152
b5b3e36a 21532004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 2154 Joseph Myers <joseph@codesourcery.com>
b5b3e36a
DJ
2155
2156 * internal.h (struct lexer_state): Add in_deferred_pragma.
2157 * directives.c (struct pragma_entry): Add allow_expansion.
2158 (insert_pragma_entry): Take allow_expansion flag.
2159 (register_pragma): Likewise.
2160 (cpp_register_pragma): Likewise.
2161 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
2162 (do_pragma): Honor allow_expansion.
2163 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
2164 * include/cpplib.h (cpp_register_pragma): Update prototype.
2165
a8e68029 21662004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 2167 Mark Mitchell <mark@codesourcery.com>
a8e68029
DJ
2168
2169 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
2170 need_64bit_hwint=yes.
2171 * configure: Regenerate.
2172
50f47ee0
JM
21732004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2174
2175 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
2176 po/$(PACKAGE).pot.
2177 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
2178 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
2179 Remove local srcdir path from generated file.
2180
968e08d6 21812004-11-04 Zack Weinberg <zack@codesourcery.com>
c5ff069d 2182 Gerald Pfeifer <gerald@pfeifer.com>
968e08d6
ZW
2183
2184 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
2185 as well.
2186
3da3d587
ZW
21872004-10-27 Zack Weinberg <zack@codesourcery.com>
2188
2189 PR 18075
2190 * directives.c (do_pragma): Do not defer pragmas which are unknown.
2191 (cpp_handle_deferred_pragma): Add cast to silence warning.
2192
ac24fc25
JM
21932004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
2194
2195 * errors.c (_cpp_begin_message): Print "error: " for errors.
2196
7731405b
AJ
21972004-10-10 Andreas Jaeger <aj@suse.de>
2198
2199 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
2200 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
2201
646544e3
AP
22022004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
2203
2204 * pch.c (cpp_write_pch_state): Remove variable z as it is not
2205 used.
2206 (cpp_read_state): Remove unused variables, m, d and mac_count.
2207
67a74146
PB
22082004-09-29 Per Bothner <per@bothner.com>
2209
2210 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
2211 cb.line_change. Otherwise do_pragma will call the line_change
2212 call-back with a meaningless line number.
2213
018a4785
ZW
22142004-09-24 Zack Weinberg <zack@codesourcery.com>
2215
2216 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
2217 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
2218 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
2219 * aclocal.m4, configure: Regenerate.
2220 * init.c: Include localedir.h.
2221 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
2222 (DEFS): Delete.
2223 (.c.o): Use $(ALL_CFLAGS).
2224 (localedir.h, localedir.hs): New rules.
2225 (clean): Use rm -rf to remove directories.
2226 (distclean): Also delete localedir.h and localedir.hs.
2227 (init.o): Update dependencies.
2228
88fa57d7
KC
22292004-09-22 Kelley Cook <kcook@gcc.gnu.org>
2230
2231 * Makefile.in (aclocal.m4): Update dependencies.
2232 * configure.ac (AC_CONFIG_MACRO_DIR): New.
2233 * aclocal.m4, configure: Regenerate.
2234
8f8e9aa5
ZW
22352004-09-17 Zack Weinberg <zack@codesourcery.com>
2236
a29f62d9
ZW
2237 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
2238 (_cpp_convert_input, _cpp_default_encoding): Add comments.
2239 Some other comments in this file also tweaked.
2240
8f8e9aa5
ZW
2241 * directives.c (do_pragma): Save current buffer position
2242 before lexing the pragma keywords; don't call
2243 _cpp_backup_tokens in the defer_pragmas case.
2244
a2981930
PB
22452004-09-15 Per Bothner <per@bothner.com>
2246
2247 * include/line-map.h (line_map_start): Add parameter names so
2248 preceding comment makes sense.
2249 (linemap_add): Remove from comment mention of non-existing parameter.
2250
21b11495
ZW
22512004-09-09 Matt Austern <austern@apple.com>
2252 Zack Weinberg <zack@codesourcery.com>
2253
2254 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
2255 prefixes throughout. Add entry for PRAGMA. Remove
2256 unnecessary "= 0" from EQ.
2257 (enum cpp_ttype): Adjust OP and TK definitions to restore
2258 prefixes, via token-paste.
2259 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
2260 Change from #defines to additional cpp_ttype enumerators.
2261 (struct cpp_options): Add defer_pragmas.
2262 (cpp_handle_deferred_pragma): Prototype new interface.
2263
2264 * internal.h (struct cpp_reader): Add directive_result.
2265 * directives.c (struct pragma_entry): Add is_internal field;
2266 give boolean fields type bool.
2267 (start_directive): Initialize pfile->directive_result.type.
2268 (_cpp_do__Pragma): Likewise.
2269 (run_directive): Do not crash if pfile->buffer->prev is NULL.
2270 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
2271 from it.
2272 (register_pragma): New static function, bulk of former
2273 cpp_register_pragma here; add 'internal' argument, pass along
2274 to insert_pragma_entry.
2275 (cpp_register_pragma): Now a wrapper around register_pragma which
2276 always passes false for 'internal' argument.
2277 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
2278 true for 'internal'.
2279 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
2280 an internal pragma, save text till the end of the line as a CPP_PRAGMA
2281 token instead of executing the pragma.
2282 (cpp_handle_deferred_pragma): New interface.
2283 * lex.c (token_spellings): Adjust OP and TK definitions to
2284 match changes to cpplib.h.
2285 (_cpp_lex_token): Check for a directive-result token and
2286 return it if present.
2287 (cpp_token_val_index): Handle CPP_PRAGMA.
2288 * macro.c (cpp_builtin_macro_text): Correct comment.
2289 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
2290
0fd9e8dd
SB
22912004-09-06 Serge Belyshev <belyshev@lubercy.com>
2292
2293 PR preprocessor/14699
2294 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
2295 from size_t to double.
2296
39b8ce7f
AS
22972004-08-28 Andreas Schwab <schwab@suse.de>
2298 Andreas Jaeger <aj@suse.de>
2299
2300 * configure.ac: Set PACKAGE correctly.
2301 * configure: Regenerated.
2302
5d1f4b27
PB
23032004-08-25 Paolo Bonzini <bonzini@gnu.org>
2304
2305 * Makefile.in: Add back top_builddir.
2306
078e3ffe
PB
23072004-08-25 Paolo Bonzini <bonzini@gnu.org>
2308
2309 * configure.ac: Replace Automake macro invocations
2310 with manual Autoconf checks and substitutions.
2311 * configure: Regenerate.
2312 * aclocal.m4: Regenerate.
2313 * config.in: Regenerate.
2314 * Makefile.am: Removed.
2315 * Makefile.in: Heavy simplification and reorganization.
2316
b3f8d95d
MM
23172004-08-09 Mark Mitchell <mark@codesourcery.com>
2318
2319 * configure.ac (arm*-*-eabi*): New target.
2320 (arm*-*-symbianelf*): Likewise.
2321 * configure: Regenerated.
2322
72bb2c39
BI
23232004-07-24 Bernardo Innocenti <bernie@develer.com>
2324
2325 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
2326 * directives.c: Use XNEW-family macros from libiberty.
2327 * lex.c: Likewise.
2328 * macro.c: Likewise.
2329 * cpplib.h (cpp_deps_style): Export enum with name.
2330
21b11495 23312004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 2332
21b11495 2333 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 2334
a23ee064
AP
23352004-07-16 Andris Pavenis <pavenis@latnet.lv>
2336
2337 PR preprocessor/16366
2338 * internal.h (struct cpp_reader): New field dir_hash.
2339 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
2340 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
2341
a09d4744
NB
23422004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
2343
2344 PR preprocessor/16192
2345 PR preprocessor/15913
2346 PR preprocessor/15572
2347 * expr.c (_cpp_parse_expr): Handle remaining cases where an
2348 expression is missing.
2349 * init.c (post_options): Traditional cpp doesn't do // comments.
2350
f58f7def
PB
23512004-06-30 Per Bothner <per@bothner.com>
2352
2353 * include/line-map.h (fileline): Remove old typedef.
2354 * internal.h (struct cpp_reader): Use source_location typedef instead.
2355
e83d8d43
ZW
23562004-06-26 Zack Weinberg <zack@codesourcery.com>
2357
2358 Partially revert patch of 2004-06-05.
2359 * files.c (search_cache): Remove pfile argument. Don't check
2360 for file that would be found by "" or <> search here...
2361 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
2362 Do not apply directory-of-current-file correction to files
2363 found by this check. Rearrange code slightly.
2364
c0d578e6
GK
23652004-06-21 Geoffrey Keating <geoffk@apple.com>
2366
2367 * files.c (should_stack_file): Correct swapped parameters to call
2368 to cb.read_pch.
2369 * pch.c (cpp_valid_state): Handle -fpreprocessed.
2370
159d5224
PB
23712004-06-15 Paolo Bonzini <bonzini@gnu.org>
2372
2373 * Makefile.in: Regenerate with automake 1.8.5.
2374 * aclocal.m4: Likewise.
2375 * configure: Regenerate.
2376
2fac9c01
ZW
23772004-06-11 Zack Weinberg <zack@codesourcery.com>
2378
2379 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
2380 * configure, config.in: Regenerate.
2381 * system.h: Unconditionally define bool as unsigned char,
2382 BOOL_BITFIELD as unsigned int.
2383 * .cvsignore: New file.
2384
d8044160
GK
23852004-06-09 Geoffrey Keating <geoffk@apple.com>
2386
2387 * traditional.c (push_replacement_text): Set macro->traditional.
2388 (save_replacement_text): Likewise.
2389 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
2390 (struct save_macro_item): Delete.
2391 (struct save_macro_data): Use a character array not the previous
2392 structured format.
2393 (save_macros): Save macro as text not as internal structures.
2394 (cpp_prepare_state): Update for changes to save_macro_data.
2395 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 2396 -D macros as text.
d8044160
GK
2397 * macro.c (create_iso_definition): Honour alloc_subobject.
2398 Clear traditional flag.
2399 (_cpp_create_definition): Honour alloc_subobject.
2400 * lex.c (cpp_token_val_index): New.
2401 * internal.h: Include cpp-id-data.h.
2402 (uchar): Move definition to cpp-id-data.h.
2403 (U): Likewise.
2404 (cpp_macro): Likewise.
2405 * directives.c (struct answer): Move to cpp-id-data.h.
2406 (do_assert): Honour alloc_subobject.
2cf22451
ZW
2407
2408 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
2409 * include/cpplib.h (struct cpp_string): Add GTY marker.
2410 (enum cpp_token_fld_kind): New.
2411 (struct cpp_token): Add GTY markers.
2412 (cpp_token_val_index): Prototype.
2413 (CPP_HASHNODE_VALUE_IDX): New.
2414 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
2415 * include/cpp-id-data.h: New file.
d8044160 2416
0ca8e815
PB
24172004-06-09 Paolo Bonzini <bonzini@gnu.org>
2418
2419 * Makefile.am (all-local): New.
2420 * Makefile.in: Regenerate.
2421
b51fa00f
RS
24222004-06-06 Roger Sayle <roger@eyesopen.com>
2423
2424 * Makefile.am (LIBICONV): Declare.
2425 (makedepend_LDADD): Use LIBICONV.
2426 * Makefile.in: Regenerate.
2427
5e2f3f39
AP
24282004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
2429
2430 * Makefile.am (LIBINTL): Declare
2431 (makedepend_LDADD): Use LIBINTL.
2432 * Makefile.in: Regenerate.
2433
c6e83800
ZW
24342004-06-05 Zack Weinberg <zack@codesourcery.com>
2435
2436 * Makefile.am: Add makedepend.
2437 * Makefile.in, aclocal.m4: Regenerate.
2438 * charset.c: Insert a space to avoid a warning.
2439 * directives.c: Include mkdeps.h.
2440 (_cpp_handle_directive): Reenable macro expander if appropriate.
2441 (undefine_macros): Inline body of _cpp_free_definition for speed.
2442 Do not call undef callback or _cpp_warn_if_unused_macro.
2443 (cpp_get_deps): New interface.
2444 * files.c (search_cache): Add pfile argument. Check for file
2445 that would be found by "" or <> search here...
2446 (_cpp_find_file): ...not here. Correct recorded start_dir of
2447 files found by directory-of-current-file search that would be
2448 found by "" or <> search.
2449 * init.c (cpp_add_dependency_target): Delete.
2450 * internal.h (struct lexer_state): Add discarding_output flag.
2451 * lex.c (lex_identifier): Compute hash function while scanning.
2452 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
2453 directives.
2454 * makedepend.c: New file.
2455 * mkdeps.c (struct deps): Add vpath vector.
2456 (apply_vpath, deps_add_vpath): New function.
2457 (deps_free): Free vpath vector.
2458 (deps_add_dep, deps_add_target): Use apply_vpath.
2459 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
2460 (ht_lookup_with_hash): New function.
2461 * cpplib.h, mkdeps.h: Update prototypes.
2462 * symtab.h: Update prototypes.
2463 (HT_HASHSTEP, HT_FINISH): New macros.
2464
b453c95f
GK
24652004-05-29 Geoffrey Keating <geoffk@apple.com>
2466
2467 * symtab.c (ht_create): Set entries_owned.
2468 (ht_destroy): Honour entries_owned.
2469 (ht_expand): Likewise.
2470 (ht_load): New.
2cf22451
ZW
2471 * include/symtab.h (struct ht): New field 'entries_owned'
2472 (ht_load): New prototype.
b453c95f 2473
963e23c5
PB
24742004-05-26 Paolo Bonzini <bonzini@gnu.org>
2475
2476 PR bootstrap/15651
2477 * configure.ac: Fix m4 quoting when picking
2478 the size of HOST_WIDE_INT.
2479 * configure: Regenerate.
2480
0429bc77
PB
24812004-05-25 Paolo Bonzini <bonzini@gnu.org>
2482
2483 * Makefile.am: the correct directory for
2484 gettext include files is given by @INCINTL@.
2485 * Makefile.in: Regenerate.
2486
c86dd7db
PB
24872004-05-24 Paolo Bonzini <bonzini@gnu.org>
2488
2489 * system.h [!ENABLE_NLS]: dgettext takes two
2490 parameters.
2491
4f4e53dd
PB
24922004-05-23 Paolo Bonzini <bonzini@gnu.org>
2493
2494 Moved libcpp from the gcc subdirectory to the toplevel.
2495 * Makefile.am: New file.
2496 * Makefile.in: Regenerate.
2497 * configure.ac: New file.
2498 * configure: Regenerate.
2499 * config.in: Regenerate.
2500 * charset.c: Moved from gcc/cppcharset.c. Add note about
2501 brokenness of input charset detection. Adjust for change
2502 in name of cppucnid.h.
2503 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
2504 * expr.c: Moved from gcc/cppexp.c.
2505 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
2506 Remove #define of O_BINARY, it is in system.h.
2507 * identifiers.c: Moved from gcc/cpphash.c.
2508 * internal.h: Moved from gcc/cpphash.h. Change header
2509 guard name. All other files adjusted to match name change.
2510 * init.c: Moved from gcc/cppinit.c.
2511 (init_library) [ENABLE_NLS]: Call bindtextdomain.
2512 * lex.c: Moved from gcc/cpplex.c.
2513 * directives.c: Moved from gcc/cpplib.c.
2514 * macro.c: Moved from gcc/cppmacro.c.
2515 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
2516 * traditional.c: Moved from gcc/cpptrad.c.
2517 * ucnid.h: Moved from gcc/cppucnid.h. Change header
2518 guard name.
2519 * ucnid.pl: Moved from gcc/cppucnid.pl.
2520 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
2521 guard name.
2522 * symtab.c: Moved from gcc/hashtable.c.
2523 * line-map.c: Moved from gcc. Do not include intl.h.
2524 * mkdeps.c: Moved from gcc.
2525 * system.h: New file.
2cf22451
ZW
2526 * include/cpplib.h: Moved from gcc. Change header guard name.
2527 * include/line-map.h: Moved from gcc. Change header guard name.
2528 * include/mkdeps.h: Moved from gcc. Change header guard name.
2529 * include/symtab.h: Moved from gcc/hashtable.h. Change header
2530 guard name.