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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libcpp/] [ChangeLog] - Blame information for rev 20

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

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

powered by: WebSVN 2.1.0

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