]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
aclocal.m4, [...]: Regenerate.
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
f78ce0c2
RS
12004-11-24 Roger Sayle <roger@eyesopen.com>
2
3 PR preprocessor/15824
4 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
5 directly, instead of the non-existant "system.h" and "ansidecl.h".
6 * configure: Regenerate.
7
b5b3e36a
DJ
82004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
9 Joseph Myers <joseph@codesourcery.com>
10
11 * internal.h (struct lexer_state): Add in_deferred_pragma.
12 * directives.c (struct pragma_entry): Add allow_expansion.
13 (insert_pragma_entry): Take allow_expansion flag.
14 (register_pragma): Likewise.
15 (cpp_register_pragma): Likewise.
16 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
17 (do_pragma): Honor allow_expansion.
18 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
19 * include/cpplib.h (cpp_register_pragma): Update prototype.
20
a8e68029
DJ
212004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
22 Mark Mitchell <mark@codesourcery.com>
23
24 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
25 need_64bit_hwint=yes.
26 * configure: Regenerate.
27
50f47ee0
JM
282004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29
30 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
31 po/$(PACKAGE).pot.
32 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
33 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
34 Remove local srcdir path from generated file.
35
968e08d6
ZW
362004-11-04 Zack Weinberg <zack@codesourcery.com>
37 Gerald Pfeifer <gerald@pfeifer.com>
38
39 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
40 as well.
41
3da3d587
ZW
422004-10-27 Zack Weinberg <zack@codesourcery.com>
43
44 PR 18075
45 * directives.c (do_pragma): Do not defer pragmas which are unknown.
46 (cpp_handle_deferred_pragma): Add cast to silence warning.
47
ac24fc25
JM
482004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
49
50 * errors.c (_cpp_begin_message): Print "error: " for errors.
51
7731405b
AJ
522004-10-10 Andreas Jaeger <aj@suse.de>
53
54 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
55 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
56
646544e3
AP
572004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
58
59 * pch.c (cpp_write_pch_state): Remove variable z as it is not
60 used.
61 (cpp_read_state): Remove unused variables, m, d and mac_count.
62
67a74146
PB
632004-09-29 Per Bothner <per@bothner.com>
64
65 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
66 cb.line_change. Otherwise do_pragma will call the line_change
67 call-back with a meaningless line number.
68
018a4785
ZW
692004-09-24 Zack Weinberg <zack@codesourcery.com>
70
71 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
72 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
73 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
74 * aclocal.m4, configure: Regenerate.
75 * init.c: Include localedir.h.
76 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
77 (DEFS): Delete.
78 (.c.o): Use $(ALL_CFLAGS).
79 (localedir.h, localedir.hs): New rules.
80 (clean): Use rm -rf to remove directories.
81 (distclean): Also delete localedir.h and localedir.hs.
82 (init.o): Update dependencies.
83
88fa57d7
KC
842004-09-22 Kelley Cook <kcook@gcc.gnu.org>
85
86 * Makefile.in (aclocal.m4): Update dependencies.
87 * configure.ac (AC_CONFIG_MACRO_DIR): New.
88 * aclocal.m4, configure: Regenerate.
89
8f8e9aa5
ZW
902004-09-17 Zack Weinberg <zack@codesourcery.com>
91
a29f62d9
ZW
92 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
93 (_cpp_convert_input, _cpp_default_encoding): Add comments.
94 Some other comments in this file also tweaked.
95
8f8e9aa5
ZW
96 * directives.c (do_pragma): Save current buffer position
97 before lexing the pragma keywords; don't call
98 _cpp_backup_tokens in the defer_pragmas case.
99
a2981930
PB
1002004-09-15 Per Bothner <per@bothner.com>
101
102 * include/line-map.h (line_map_start): Add parameter names so
103 preceding comment makes sense.
104 (linemap_add): Remove from comment mention of non-existing parameter.
105
21b11495
ZW
1062004-09-09 Matt Austern <austern@apple.com>
107 Zack Weinberg <zack@codesourcery.com>
108
109 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
110 prefixes throughout. Add entry for PRAGMA. Remove
111 unnecessary "= 0" from EQ.
112 (enum cpp_ttype): Adjust OP and TK definitions to restore
113 prefixes, via token-paste.
114 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
115 Change from #defines to additional cpp_ttype enumerators.
116 (struct cpp_options): Add defer_pragmas.
117 (cpp_handle_deferred_pragma): Prototype new interface.
118
119 * internal.h (struct cpp_reader): Add directive_result.
120 * directives.c (struct pragma_entry): Add is_internal field;
121 give boolean fields type bool.
122 (start_directive): Initialize pfile->directive_result.type.
123 (_cpp_do__Pragma): Likewise.
124 (run_directive): Do not crash if pfile->buffer->prev is NULL.
125 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
126 from it.
127 (register_pragma): New static function, bulk of former
128 cpp_register_pragma here; add 'internal' argument, pass along
129 to insert_pragma_entry.
130 (cpp_register_pragma): Now a wrapper around register_pragma which
131 always passes false for 'internal' argument.
132 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
133 true for 'internal'.
134 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
135 an internal pragma, save text till the end of the line as a CPP_PRAGMA
136 token instead of executing the pragma.
137 (cpp_handle_deferred_pragma): New interface.
138 * lex.c (token_spellings): Adjust OP and TK definitions to
139 match changes to cpplib.h.
140 (_cpp_lex_token): Check for a directive-result token and
141 return it if present.
142 (cpp_token_val_index): Handle CPP_PRAGMA.
143 * macro.c (cpp_builtin_macro_text): Correct comment.
144 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
145
0fd9e8dd
SB
1462004-09-06 Serge Belyshev <belyshev@lubercy.com>
147
148 PR preprocessor/14699
149 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
150 from size_t to double.
151
39b8ce7f
AS
1522004-08-28 Andreas Schwab <schwab@suse.de>
153 Andreas Jaeger <aj@suse.de>
154
155 * configure.ac: Set PACKAGE correctly.
156 * configure: Regenerated.
157
5d1f4b27
PB
1582004-08-25 Paolo Bonzini <bonzini@gnu.org>
159
160 * Makefile.in: Add back top_builddir.
161
078e3ffe
PB
1622004-08-25 Paolo Bonzini <bonzini@gnu.org>
163
164 * configure.ac: Replace Automake macro invocations
165 with manual Autoconf checks and substitutions.
166 * configure: Regenerate.
167 * aclocal.m4: Regenerate.
168 * config.in: Regenerate.
169 * Makefile.am: Removed.
170 * Makefile.in: Heavy simplification and reorganization.
171
b3f8d95d
MM
1722004-08-09 Mark Mitchell <mark@codesourcery.com>
173
174 * configure.ac (arm*-*-eabi*): New target.
175 (arm*-*-symbianelf*): Likewise.
176 * configure: Regenerated.
177
72bb2c39
BI
1782004-07-24 Bernardo Innocenti <bernie@develer.com>
179
180 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
181 * directives.c: Use XNEW-family macros from libiberty.
182 * lex.c: Likewise.
183 * macro.c: Likewise.
184 * cpplib.h (cpp_deps_style): Export enum with name.
185
21b11495 1862004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 187
21b11495 188 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 189
a23ee064
AP
1902004-07-16 Andris Pavenis <pavenis@latnet.lv>
191
192 PR preprocessor/16366
193 * internal.h (struct cpp_reader): New field dir_hash.
194 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
195 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
196
a09d4744
NB
1972004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
198
199 PR preprocessor/16192
200 PR preprocessor/15913
201 PR preprocessor/15572
202 * expr.c (_cpp_parse_expr): Handle remaining cases where an
203 expression is missing.
204 * init.c (post_options): Traditional cpp doesn't do // comments.
205
f58f7def
PB
2062004-06-30 Per Bothner <per@bothner.com>
207
208 * include/line-map.h (fileline): Remove old typedef.
209 * internal.h (struct cpp_reader): Use source_location typedef instead.
210
e83d8d43
ZW
2112004-06-26 Zack Weinberg <zack@codesourcery.com>
212
213 Partially revert patch of 2004-06-05.
214 * files.c (search_cache): Remove pfile argument. Don't check
215 for file that would be found by "" or <> search here...
216 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
217 Do not apply directory-of-current-file correction to files
218 found by this check. Rearrange code slightly.
219
c0d578e6
GK
2202004-06-21 Geoffrey Keating <geoffk@apple.com>
221
222 * files.c (should_stack_file): Correct swapped parameters to call
223 to cb.read_pch.
224 * pch.c (cpp_valid_state): Handle -fpreprocessed.
225
159d5224
PB
2262004-06-15 Paolo Bonzini <bonzini@gnu.org>
227
228 * Makefile.in: Regenerate with automake 1.8.5.
229 * aclocal.m4: Likewise.
230 * configure: Regenerate.
231
2fac9c01
ZW
2322004-06-11 Zack Weinberg <zack@codesourcery.com>
233
234 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
235 * configure, config.in: Regenerate.
236 * system.h: Unconditionally define bool as unsigned char,
237 BOOL_BITFIELD as unsigned int.
238 * .cvsignore: New file.
239
d8044160
GK
2402004-06-09 Geoffrey Keating <geoffk@apple.com>
241
242 * traditional.c (push_replacement_text): Set macro->traditional.
243 (save_replacement_text): Likewise.
244 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
245 (struct save_macro_item): Delete.
246 (struct save_macro_data): Use a character array not the previous
247 structured format.
248 (save_macros): Save macro as text not as internal structures.
249 (cpp_prepare_state): Update for changes to save_macro_data.
250 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 251 -D macros as text.
d8044160
GK
252 * macro.c (create_iso_definition): Honour alloc_subobject.
253 Clear traditional flag.
254 (_cpp_create_definition): Honour alloc_subobject.
255 * lex.c (cpp_token_val_index): New.
256 * internal.h: Include cpp-id-data.h.
257 (uchar): Move definition to cpp-id-data.h.
258 (U): Likewise.
259 (cpp_macro): Likewise.
260 * directives.c (struct answer): Move to cpp-id-data.h.
261 (do_assert): Honour alloc_subobject.
2cf22451
ZW
262
263 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
264 * include/cpplib.h (struct cpp_string): Add GTY marker.
265 (enum cpp_token_fld_kind): New.
266 (struct cpp_token): Add GTY markers.
267 (cpp_token_val_index): Prototype.
268 (CPP_HASHNODE_VALUE_IDX): New.
269 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
270 * include/cpp-id-data.h: New file.
d8044160 271
0ca8e815
PB
2722004-06-09 Paolo Bonzini <bonzini@gnu.org>
273
274 * Makefile.am (all-local): New.
275 * Makefile.in: Regenerate.
276
b51fa00f
RS
2772004-06-06 Roger Sayle <roger@eyesopen.com>
278
279 * Makefile.am (LIBICONV): Declare.
280 (makedepend_LDADD): Use LIBICONV.
281 * Makefile.in: Regenerate.
282
5e2f3f39
AP
2832004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
284
285 * Makefile.am (LIBINTL): Declare
286 (makedepend_LDADD): Use LIBINTL.
287 * Makefile.in: Regenerate.
288
c6e83800
ZW
2892004-06-05 Zack Weinberg <zack@codesourcery.com>
290
291 * Makefile.am: Add makedepend.
292 * Makefile.in, aclocal.m4: Regenerate.
293 * charset.c: Insert a space to avoid a warning.
294 * directives.c: Include mkdeps.h.
295 (_cpp_handle_directive): Reenable macro expander if appropriate.
296 (undefine_macros): Inline body of _cpp_free_definition for speed.
297 Do not call undef callback or _cpp_warn_if_unused_macro.
298 (cpp_get_deps): New interface.
299 * files.c (search_cache): Add pfile argument. Check for file
300 that would be found by "" or <> search here...
301 (_cpp_find_file): ...not here. Correct recorded start_dir of
302 files found by directory-of-current-file search that would be
303 found by "" or <> search.
304 * init.c (cpp_add_dependency_target): Delete.
305 * internal.h (struct lexer_state): Add discarding_output flag.
306 * lex.c (lex_identifier): Compute hash function while scanning.
307 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
308 directives.
309 * makedepend.c: New file.
310 * mkdeps.c (struct deps): Add vpath vector.
311 (apply_vpath, deps_add_vpath): New function.
312 (deps_free): Free vpath vector.
313 (deps_add_dep, deps_add_target): Use apply_vpath.
314 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
315 (ht_lookup_with_hash): New function.
316 * cpplib.h, mkdeps.h: Update prototypes.
317 * symtab.h: Update prototypes.
318 (HT_HASHSTEP, HT_FINISH): New macros.
319
b453c95f
GK
3202004-05-29 Geoffrey Keating <geoffk@apple.com>
321
322 * symtab.c (ht_create): Set entries_owned.
323 (ht_destroy): Honour entries_owned.
324 (ht_expand): Likewise.
325 (ht_load): New.
2cf22451
ZW
326 * include/symtab.h (struct ht): New field 'entries_owned'
327 (ht_load): New prototype.
b453c95f 328
963e23c5
PB
3292004-05-26 Paolo Bonzini <bonzini@gnu.org>
330
331 PR bootstrap/15651
332 * configure.ac: Fix m4 quoting when picking
333 the size of HOST_WIDE_INT.
334 * configure: Regenerate.
335
0429bc77
PB
3362004-05-25 Paolo Bonzini <bonzini@gnu.org>
337
338 * Makefile.am: the correct directory for
339 gettext include files is given by @INCINTL@.
340 * Makefile.in: Regenerate.
341
c86dd7db
PB
3422004-05-24 Paolo Bonzini <bonzini@gnu.org>
343
344 * system.h [!ENABLE_NLS]: dgettext takes two
345 parameters.
346
4f4e53dd
PB
3472004-05-23 Paolo Bonzini <bonzini@gnu.org>
348
349 Moved libcpp from the gcc subdirectory to the toplevel.
350 * Makefile.am: New file.
351 * Makefile.in: Regenerate.
352 * configure.ac: New file.
353 * configure: Regenerate.
354 * config.in: Regenerate.
355 * charset.c: Moved from gcc/cppcharset.c. Add note about
356 brokenness of input charset detection. Adjust for change
357 in name of cppucnid.h.
358 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
359 * expr.c: Moved from gcc/cppexp.c.
360 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
361 Remove #define of O_BINARY, it is in system.h.
362 * identifiers.c: Moved from gcc/cpphash.c.
363 * internal.h: Moved from gcc/cpphash.h. Change header
364 guard name. All other files adjusted to match name change.
365 * init.c: Moved from gcc/cppinit.c.
366 (init_library) [ENABLE_NLS]: Call bindtextdomain.
367 * lex.c: Moved from gcc/cpplex.c.
368 * directives.c: Moved from gcc/cpplib.c.
369 * macro.c: Moved from gcc/cppmacro.c.
370 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
371 * traditional.c: Moved from gcc/cpptrad.c.
372 * ucnid.h: Moved from gcc/cppucnid.h. Change header
373 guard name.
374 * ucnid.pl: Moved from gcc/cppucnid.pl.
375 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
376 guard name.
377 * symtab.c: Moved from gcc/hashtable.c.
378 * line-map.c: Moved from gcc. Do not include intl.h.
379 * mkdeps.c: Moved from gcc.
380 * system.h: New file.
2cf22451
ZW
381 * include/cpplib.h: Moved from gcc. Change header guard name.
382 * include/line-map.h: Moved from gcc. Change header guard name.
383 * include/mkdeps.h: Moved from gcc. Change header guard name.
384 * include/symtab.h: Moved from gcc/hashtable.h. Change header
385 guard name.