OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libcpp/] [ChangeLog] - Blame information for rev 847

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.