]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
* gcc.dg/uninit-4.c: XFAIL bogus warning for powerpc64.
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
9fcdd891
JM
12005-01-23 Joseph S. Myers <joseph@codesourcery.com>
2
3 * configure: Regenerate.
4
ecfd72e7
TS
52005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
6
7 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
8
6c25a4f7
TS
9 * include/cpplib.h: Also update copyright years.
10
942926ad
GK
112005-01-03 Geoffrey Keating <geoffk@apple.com>
12
13 * files.c (_cpp_find_file): Add files found by search_path_exhausted
14 to the list of all files.
15
a2566ae9
GDR
162005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
17
18 * internal.h: Update references to Cpp lib filenames.
19 * directives.c: Likewise.
20 * init.c: Likewise.
21 * macro.c: Likewise.
22 * traditional.c: Likewise.
23
1b449375
EB
242004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
25
26 PR preprocessor/15167
27 * files.c (destroy_cpp_file): New function.
28 (should_stack_file): Make a new file if the
29 compared file is still stacked.
30
28303828
NN
312004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
32
33 PR preprocessor/17610
34 * directives.c (do_include_common): Error out if an empty filename
35 is given for #include (or #include_next or #import).
36
c812785a
RS
372004-11-27 Roger Sayle <roger@eyesopen.com>
38 Zack Weinberg <zack@codesourcery.com>
39
40 * internal.h: Replace all uses of uchar with unsigned char.
41 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
42 with !IN_GCC, so uchar is only defined whilst building libcpp.
43
f91eaa01
KC
442004-11-24 Kelley Cook <kcook@gcc.gnu.org>
45
46 * aclocal.m4: Regenerate.
47
f78ce0c2
RS
482004-11-24 Roger Sayle <roger@eyesopen.com>
49
50 PR preprocessor/15824
51 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
52 directly, instead of the non-existant "system.h" and "ansidecl.h".
53 * configure: Regenerate.
54
b5b3e36a
DJ
552004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
56 Joseph Myers <joseph@codesourcery.com>
57
58 * internal.h (struct lexer_state): Add in_deferred_pragma.
59 * directives.c (struct pragma_entry): Add allow_expansion.
60 (insert_pragma_entry): Take allow_expansion flag.
61 (register_pragma): Likewise.
62 (cpp_register_pragma): Likewise.
63 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
64 (do_pragma): Honor allow_expansion.
65 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
66 * include/cpplib.h (cpp_register_pragma): Update prototype.
67
a8e68029
DJ
682004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
69 Mark Mitchell <mark@codesourcery.com>
70
71 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
72 need_64bit_hwint=yes.
73 * configure: Regenerate.
74
50f47ee0
JM
752004-11-09 Joseph S. Myers <joseph@codesourcery.com>
76
77 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
78 po/$(PACKAGE).pot.
79 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
80 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
81 Remove local srcdir path from generated file.
82
968e08d6
ZW
832004-11-04 Zack Weinberg <zack@codesourcery.com>
84 Gerald Pfeifer <gerald@pfeifer.com>
85
86 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
87 as well.
88
3da3d587
ZW
892004-10-27 Zack Weinberg <zack@codesourcery.com>
90
91 PR 18075
92 * directives.c (do_pragma): Do not defer pragmas which are unknown.
93 (cpp_handle_deferred_pragma): Add cast to silence warning.
94
ac24fc25
JM
952004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
96
97 * errors.c (_cpp_begin_message): Print "error: " for errors.
98
7731405b
AJ
992004-10-10 Andreas Jaeger <aj@suse.de>
100
101 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
102 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
103
646544e3
AP
1042004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
105
106 * pch.c (cpp_write_pch_state): Remove variable z as it is not
107 used.
108 (cpp_read_state): Remove unused variables, m, d and mac_count.
109
67a74146
PB
1102004-09-29 Per Bothner <per@bothner.com>
111
112 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
113 cb.line_change. Otherwise do_pragma will call the line_change
114 call-back with a meaningless line number.
115
018a4785
ZW
1162004-09-24 Zack Weinberg <zack@codesourcery.com>
117
118 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
119 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
120 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
121 * aclocal.m4, configure: Regenerate.
122 * init.c: Include localedir.h.
123 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
124 (DEFS): Delete.
125 (.c.o): Use $(ALL_CFLAGS).
126 (localedir.h, localedir.hs): New rules.
127 (clean): Use rm -rf to remove directories.
128 (distclean): Also delete localedir.h and localedir.hs.
129 (init.o): Update dependencies.
130
88fa57d7
KC
1312004-09-22 Kelley Cook <kcook@gcc.gnu.org>
132
133 * Makefile.in (aclocal.m4): Update dependencies.
134 * configure.ac (AC_CONFIG_MACRO_DIR): New.
135 * aclocal.m4, configure: Regenerate.
136
8f8e9aa5
ZW
1372004-09-17 Zack Weinberg <zack@codesourcery.com>
138
a29f62d9
ZW
139 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
140 (_cpp_convert_input, _cpp_default_encoding): Add comments.
141 Some other comments in this file also tweaked.
142
8f8e9aa5
ZW
143 * directives.c (do_pragma): Save current buffer position
144 before lexing the pragma keywords; don't call
145 _cpp_backup_tokens in the defer_pragmas case.
146
a2981930
PB
1472004-09-15 Per Bothner <per@bothner.com>
148
149 * include/line-map.h (line_map_start): Add parameter names so
150 preceding comment makes sense.
151 (linemap_add): Remove from comment mention of non-existing parameter.
152
21b11495
ZW
1532004-09-09 Matt Austern <austern@apple.com>
154 Zack Weinberg <zack@codesourcery.com>
155
156 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
157 prefixes throughout. Add entry for PRAGMA. Remove
158 unnecessary "= 0" from EQ.
159 (enum cpp_ttype): Adjust OP and TK definitions to restore
160 prefixes, via token-paste.
161 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
162 Change from #defines to additional cpp_ttype enumerators.
163 (struct cpp_options): Add defer_pragmas.
164 (cpp_handle_deferred_pragma): Prototype new interface.
165
166 * internal.h (struct cpp_reader): Add directive_result.
167 * directives.c (struct pragma_entry): Add is_internal field;
168 give boolean fields type bool.
169 (start_directive): Initialize pfile->directive_result.type.
170 (_cpp_do__Pragma): Likewise.
171 (run_directive): Do not crash if pfile->buffer->prev is NULL.
172 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
173 from it.
174 (register_pragma): New static function, bulk of former
175 cpp_register_pragma here; add 'internal' argument, pass along
176 to insert_pragma_entry.
177 (cpp_register_pragma): Now a wrapper around register_pragma which
178 always passes false for 'internal' argument.
179 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
180 true for 'internal'.
181 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
182 an internal pragma, save text till the end of the line as a CPP_PRAGMA
183 token instead of executing the pragma.
184 (cpp_handle_deferred_pragma): New interface.
185 * lex.c (token_spellings): Adjust OP and TK definitions to
186 match changes to cpplib.h.
187 (_cpp_lex_token): Check for a directive-result token and
188 return it if present.
189 (cpp_token_val_index): Handle CPP_PRAGMA.
190 * macro.c (cpp_builtin_macro_text): Correct comment.
191 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
192
0fd9e8dd
SB
1932004-09-06 Serge Belyshev <belyshev@lubercy.com>
194
195 PR preprocessor/14699
196 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
197 from size_t to double.
198
39b8ce7f
AS
1992004-08-28 Andreas Schwab <schwab@suse.de>
200 Andreas Jaeger <aj@suse.de>
201
202 * configure.ac: Set PACKAGE correctly.
203 * configure: Regenerated.
204
5d1f4b27
PB
2052004-08-25 Paolo Bonzini <bonzini@gnu.org>
206
207 * Makefile.in: Add back top_builddir.
208
078e3ffe
PB
2092004-08-25 Paolo Bonzini <bonzini@gnu.org>
210
211 * configure.ac: Replace Automake macro invocations
212 with manual Autoconf checks and substitutions.
213 * configure: Regenerate.
214 * aclocal.m4: Regenerate.
215 * config.in: Regenerate.
216 * Makefile.am: Removed.
217 * Makefile.in: Heavy simplification and reorganization.
218
b3f8d95d
MM
2192004-08-09 Mark Mitchell <mark@codesourcery.com>
220
221 * configure.ac (arm*-*-eabi*): New target.
222 (arm*-*-symbianelf*): Likewise.
223 * configure: Regenerated.
224
72bb2c39
BI
2252004-07-24 Bernardo Innocenti <bernie@develer.com>
226
227 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
228 * directives.c: Use XNEW-family macros from libiberty.
229 * lex.c: Likewise.
230 * macro.c: Likewise.
231 * cpplib.h (cpp_deps_style): Export enum with name.
232
21b11495 2332004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 234
21b11495 235 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 236
a23ee064
AP
2372004-07-16 Andris Pavenis <pavenis@latnet.lv>
238
239 PR preprocessor/16366
240 * internal.h (struct cpp_reader): New field dir_hash.
241 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
242 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
243
a09d4744
NB
2442004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
245
246 PR preprocessor/16192
247 PR preprocessor/15913
248 PR preprocessor/15572
249 * expr.c (_cpp_parse_expr): Handle remaining cases where an
250 expression is missing.
251 * init.c (post_options): Traditional cpp doesn't do // comments.
252
f58f7def
PB
2532004-06-30 Per Bothner <per@bothner.com>
254
255 * include/line-map.h (fileline): Remove old typedef.
256 * internal.h (struct cpp_reader): Use source_location typedef instead.
257
e83d8d43
ZW
2582004-06-26 Zack Weinberg <zack@codesourcery.com>
259
260 Partially revert patch of 2004-06-05.
261 * files.c (search_cache): Remove pfile argument. Don't check
262 for file that would be found by "" or <> search here...
263 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
264 Do not apply directory-of-current-file correction to files
265 found by this check. Rearrange code slightly.
266
c0d578e6
GK
2672004-06-21 Geoffrey Keating <geoffk@apple.com>
268
269 * files.c (should_stack_file): Correct swapped parameters to call
270 to cb.read_pch.
271 * pch.c (cpp_valid_state): Handle -fpreprocessed.
272
159d5224
PB
2732004-06-15 Paolo Bonzini <bonzini@gnu.org>
274
275 * Makefile.in: Regenerate with automake 1.8.5.
276 * aclocal.m4: Likewise.
277 * configure: Regenerate.
278
2fac9c01
ZW
2792004-06-11 Zack Weinberg <zack@codesourcery.com>
280
281 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
282 * configure, config.in: Regenerate.
283 * system.h: Unconditionally define bool as unsigned char,
284 BOOL_BITFIELD as unsigned int.
285 * .cvsignore: New file.
286
d8044160
GK
2872004-06-09 Geoffrey Keating <geoffk@apple.com>
288
289 * traditional.c (push_replacement_text): Set macro->traditional.
290 (save_replacement_text): Likewise.
291 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
292 (struct save_macro_item): Delete.
293 (struct save_macro_data): Use a character array not the previous
294 structured format.
295 (save_macros): Save macro as text not as internal structures.
296 (cpp_prepare_state): Update for changes to save_macro_data.
297 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 298 -D macros as text.
d8044160
GK
299 * macro.c (create_iso_definition): Honour alloc_subobject.
300 Clear traditional flag.
301 (_cpp_create_definition): Honour alloc_subobject.
302 * lex.c (cpp_token_val_index): New.
303 * internal.h: Include cpp-id-data.h.
304 (uchar): Move definition to cpp-id-data.h.
305 (U): Likewise.
306 (cpp_macro): Likewise.
307 * directives.c (struct answer): Move to cpp-id-data.h.
308 (do_assert): Honour alloc_subobject.
2cf22451
ZW
309
310 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
311 * include/cpplib.h (struct cpp_string): Add GTY marker.
312 (enum cpp_token_fld_kind): New.
313 (struct cpp_token): Add GTY markers.
314 (cpp_token_val_index): Prototype.
315 (CPP_HASHNODE_VALUE_IDX): New.
316 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
317 * include/cpp-id-data.h: New file.
d8044160 318
0ca8e815
PB
3192004-06-09 Paolo Bonzini <bonzini@gnu.org>
320
321 * Makefile.am (all-local): New.
322 * Makefile.in: Regenerate.
323
b51fa00f
RS
3242004-06-06 Roger Sayle <roger@eyesopen.com>
325
326 * Makefile.am (LIBICONV): Declare.
327 (makedepend_LDADD): Use LIBICONV.
328 * Makefile.in: Regenerate.
329
5e2f3f39
AP
3302004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
331
332 * Makefile.am (LIBINTL): Declare
333 (makedepend_LDADD): Use LIBINTL.
334 * Makefile.in: Regenerate.
335
c6e83800
ZW
3362004-06-05 Zack Weinberg <zack@codesourcery.com>
337
338 * Makefile.am: Add makedepend.
339 * Makefile.in, aclocal.m4: Regenerate.
340 * charset.c: Insert a space to avoid a warning.
341 * directives.c: Include mkdeps.h.
342 (_cpp_handle_directive): Reenable macro expander if appropriate.
343 (undefine_macros): Inline body of _cpp_free_definition for speed.
344 Do not call undef callback or _cpp_warn_if_unused_macro.
345 (cpp_get_deps): New interface.
346 * files.c (search_cache): Add pfile argument. Check for file
347 that would be found by "" or <> search here...
348 (_cpp_find_file): ...not here. Correct recorded start_dir of
349 files found by directory-of-current-file search that would be
350 found by "" or <> search.
351 * init.c (cpp_add_dependency_target): Delete.
352 * internal.h (struct lexer_state): Add discarding_output flag.
353 * lex.c (lex_identifier): Compute hash function while scanning.
354 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
355 directives.
356 * makedepend.c: New file.
357 * mkdeps.c (struct deps): Add vpath vector.
358 (apply_vpath, deps_add_vpath): New function.
359 (deps_free): Free vpath vector.
360 (deps_add_dep, deps_add_target): Use apply_vpath.
361 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
362 (ht_lookup_with_hash): New function.
363 * cpplib.h, mkdeps.h: Update prototypes.
364 * symtab.h: Update prototypes.
365 (HT_HASHSTEP, HT_FINISH): New macros.
366
b453c95f
GK
3672004-05-29 Geoffrey Keating <geoffk@apple.com>
368
369 * symtab.c (ht_create): Set entries_owned.
370 (ht_destroy): Honour entries_owned.
371 (ht_expand): Likewise.
372 (ht_load): New.
2cf22451
ZW
373 * include/symtab.h (struct ht): New field 'entries_owned'
374 (ht_load): New prototype.
b453c95f 375
963e23c5
PB
3762004-05-26 Paolo Bonzini <bonzini@gnu.org>
377
378 PR bootstrap/15651
379 * configure.ac: Fix m4 quoting when picking
380 the size of HOST_WIDE_INT.
381 * configure: Regenerate.
382
0429bc77
PB
3832004-05-25 Paolo Bonzini <bonzini@gnu.org>
384
385 * Makefile.am: the correct directory for
386 gettext include files is given by @INCINTL@.
387 * Makefile.in: Regenerate.
388
c86dd7db
PB
3892004-05-24 Paolo Bonzini <bonzini@gnu.org>
390
391 * system.h [!ENABLE_NLS]: dgettext takes two
392 parameters.
393
4f4e53dd
PB
3942004-05-23 Paolo Bonzini <bonzini@gnu.org>
395
396 Moved libcpp from the gcc subdirectory to the toplevel.
397 * Makefile.am: New file.
398 * Makefile.in: Regenerate.
399 * configure.ac: New file.
400 * configure: Regenerate.
401 * config.in: Regenerate.
402 * charset.c: Moved from gcc/cppcharset.c. Add note about
403 brokenness of input charset detection. Adjust for change
404 in name of cppucnid.h.
405 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
406 * expr.c: Moved from gcc/cppexp.c.
407 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
408 Remove #define of O_BINARY, it is in system.h.
409 * identifiers.c: Moved from gcc/cpphash.c.
410 * internal.h: Moved from gcc/cpphash.h. Change header
411 guard name. All other files adjusted to match name change.
412 * init.c: Moved from gcc/cppinit.c.
413 (init_library) [ENABLE_NLS]: Call bindtextdomain.
414 * lex.c: Moved from gcc/cpplex.c.
415 * directives.c: Moved from gcc/cpplib.c.
416 * macro.c: Moved from gcc/cppmacro.c.
417 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
418 * traditional.c: Moved from gcc/cpptrad.c.
419 * ucnid.h: Moved from gcc/cppucnid.h. Change header
420 guard name.
421 * ucnid.pl: Moved from gcc/cppucnid.pl.
422 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
423 guard name.
424 * symtab.c: Moved from gcc/hashtable.c.
425 * line-map.c: Moved from gcc. Do not include intl.h.
426 * mkdeps.c: Moved from gcc.
427 * system.h: New file.
2cf22451
ZW
428 * include/cpplib.h: Moved from gcc. Change header guard name.
429 * include/line-map.h: Moved from gcc. Change header guard name.
430 * include/mkdeps.h: Moved from gcc. Change header guard name.
431 * include/symtab.h: Moved from gcc/hashtable.h. Change header
432 guard name.