]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
c-tree.h (enum c_typespec_kind, [...]): New.
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
7731405b
AJ
12004-10-10 Andreas Jaeger <aj@suse.de>
2
3 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
4 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
5
646544e3
AP
62004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
7
8 * pch.c (cpp_write_pch_state): Remove variable z as it is not
9 used.
10 (cpp_read_state): Remove unused variables, m, d and mac_count.
11
67a74146
PB
122004-09-29 Per Bothner <per@bothner.com>
13
14 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
15 cb.line_change. Otherwise do_pragma will call the line_change
16 call-back with a meaningless line number.
17
018a4785
ZW
182004-09-24 Zack Weinberg <zack@codesourcery.com>
19
20 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
21 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
22 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
23 * aclocal.m4, configure: Regenerate.
24 * init.c: Include localedir.h.
25 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
26 (DEFS): Delete.
27 (.c.o): Use $(ALL_CFLAGS).
28 (localedir.h, localedir.hs): New rules.
29 (clean): Use rm -rf to remove directories.
30 (distclean): Also delete localedir.h and localedir.hs.
31 (init.o): Update dependencies.
32
88fa57d7
KC
332004-09-22 Kelley Cook <kcook@gcc.gnu.org>
34
35 * Makefile.in (aclocal.m4): Update dependencies.
36 * configure.ac (AC_CONFIG_MACRO_DIR): New.
37 * aclocal.m4, configure: Regenerate.
38
8f8e9aa5
ZW
392004-09-17 Zack Weinberg <zack@codesourcery.com>
40
a29f62d9
ZW
41 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
42 (_cpp_convert_input, _cpp_default_encoding): Add comments.
43 Some other comments in this file also tweaked.
44
8f8e9aa5
ZW
45 * directives.c (do_pragma): Save current buffer position
46 before lexing the pragma keywords; don't call
47 _cpp_backup_tokens in the defer_pragmas case.
48
a2981930
PB
492004-09-15 Per Bothner <per@bothner.com>
50
51 * include/line-map.h (line_map_start): Add parameter names so
52 preceding comment makes sense.
53 (linemap_add): Remove from comment mention of non-existing parameter.
54
21b11495
ZW
552004-09-09 Matt Austern <austern@apple.com>
56 Zack Weinberg <zack@codesourcery.com>
57
58 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
59 prefixes throughout. Add entry for PRAGMA. Remove
60 unnecessary "= 0" from EQ.
61 (enum cpp_ttype): Adjust OP and TK definitions to restore
62 prefixes, via token-paste.
63 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
64 Change from #defines to additional cpp_ttype enumerators.
65 (struct cpp_options): Add defer_pragmas.
66 (cpp_handle_deferred_pragma): Prototype new interface.
67
68 * internal.h (struct cpp_reader): Add directive_result.
69 * directives.c (struct pragma_entry): Add is_internal field;
70 give boolean fields type bool.
71 (start_directive): Initialize pfile->directive_result.type.
72 (_cpp_do__Pragma): Likewise.
73 (run_directive): Do not crash if pfile->buffer->prev is NULL.
74 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
75 from it.
76 (register_pragma): New static function, bulk of former
77 cpp_register_pragma here; add 'internal' argument, pass along
78 to insert_pragma_entry.
79 (cpp_register_pragma): Now a wrapper around register_pragma which
80 always passes false for 'internal' argument.
81 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
82 true for 'internal'.
83 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
84 an internal pragma, save text till the end of the line as a CPP_PRAGMA
85 token instead of executing the pragma.
86 (cpp_handle_deferred_pragma): New interface.
87 * lex.c (token_spellings): Adjust OP and TK definitions to
88 match changes to cpplib.h.
89 (_cpp_lex_token): Check for a directive-result token and
90 return it if present.
91 (cpp_token_val_index): Handle CPP_PRAGMA.
92 * macro.c (cpp_builtin_macro_text): Correct comment.
93 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
94
0fd9e8dd
SB
952004-09-06 Serge Belyshev <belyshev@lubercy.com>
96
97 PR preprocessor/14699
98 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
99 from size_t to double.
100
39b8ce7f
AS
1012004-08-28 Andreas Schwab <schwab@suse.de>
102 Andreas Jaeger <aj@suse.de>
103
104 * configure.ac: Set PACKAGE correctly.
105 * configure: Regenerated.
106
5d1f4b27
PB
1072004-08-25 Paolo Bonzini <bonzini@gnu.org>
108
109 * Makefile.in: Add back top_builddir.
110
078e3ffe
PB
1112004-08-25 Paolo Bonzini <bonzini@gnu.org>
112
113 * configure.ac: Replace Automake macro invocations
114 with manual Autoconf checks and substitutions.
115 * configure: Regenerate.
116 * aclocal.m4: Regenerate.
117 * config.in: Regenerate.
118 * Makefile.am: Removed.
119 * Makefile.in: Heavy simplification and reorganization.
120
b3f8d95d
MM
1212004-08-09 Mark Mitchell <mark@codesourcery.com>
122
123 * configure.ac (arm*-*-eabi*): New target.
124 (arm*-*-symbianelf*): Likewise.
125 * configure: Regenerated.
126
72bb2c39
BI
1272004-07-24 Bernardo Innocenti <bernie@develer.com>
128
129 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
130 * directives.c: Use XNEW-family macros from libiberty.
131 * lex.c: Likewise.
132 * macro.c: Likewise.
133 * cpplib.h (cpp_deps_style): Export enum with name.
134
21b11495 1352004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 136
21b11495 137 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 138
a23ee064
AP
1392004-07-16 Andris Pavenis <pavenis@latnet.lv>
140
141 PR preprocessor/16366
142 * internal.h (struct cpp_reader): New field dir_hash.
143 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
144 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
145
a09d4744
NB
1462004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
147
148 PR preprocessor/16192
149 PR preprocessor/15913
150 PR preprocessor/15572
151 * expr.c (_cpp_parse_expr): Handle remaining cases where an
152 expression is missing.
153 * init.c (post_options): Traditional cpp doesn't do // comments.
154
f58f7def
PB
1552004-06-30 Per Bothner <per@bothner.com>
156
157 * include/line-map.h (fileline): Remove old typedef.
158 * internal.h (struct cpp_reader): Use source_location typedef instead.
159
e83d8d43
ZW
1602004-06-26 Zack Weinberg <zack@codesourcery.com>
161
162 Partially revert patch of 2004-06-05.
163 * files.c (search_cache): Remove pfile argument. Don't check
164 for file that would be found by "" or <> search here...
165 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
166 Do not apply directory-of-current-file correction to files
167 found by this check. Rearrange code slightly.
168
c0d578e6
GK
1692004-06-21 Geoffrey Keating <geoffk@apple.com>
170
171 * files.c (should_stack_file): Correct swapped parameters to call
172 to cb.read_pch.
173 * pch.c (cpp_valid_state): Handle -fpreprocessed.
174
159d5224
PB
1752004-06-15 Paolo Bonzini <bonzini@gnu.org>
176
177 * Makefile.in: Regenerate with automake 1.8.5.
178 * aclocal.m4: Likewise.
179 * configure: Regenerate.
180
2fac9c01
ZW
1812004-06-11 Zack Weinberg <zack@codesourcery.com>
182
183 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
184 * configure, config.in: Regenerate.
185 * system.h: Unconditionally define bool as unsigned char,
186 BOOL_BITFIELD as unsigned int.
187 * .cvsignore: New file.
188
d8044160
GK
1892004-06-09 Geoffrey Keating <geoffk@apple.com>
190
191 * traditional.c (push_replacement_text): Set macro->traditional.
192 (save_replacement_text): Likewise.
193 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
194 (struct save_macro_item): Delete.
195 (struct save_macro_data): Use a character array not the previous
196 structured format.
197 (save_macros): Save macro as text not as internal structures.
198 (cpp_prepare_state): Update for changes to save_macro_data.
199 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 200 -D macros as text.
d8044160
GK
201 * macro.c (create_iso_definition): Honour alloc_subobject.
202 Clear traditional flag.
203 (_cpp_create_definition): Honour alloc_subobject.
204 * lex.c (cpp_token_val_index): New.
205 * internal.h: Include cpp-id-data.h.
206 (uchar): Move definition to cpp-id-data.h.
207 (U): Likewise.
208 (cpp_macro): Likewise.
209 * directives.c (struct answer): Move to cpp-id-data.h.
210 (do_assert): Honour alloc_subobject.
2cf22451
ZW
211
212 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
213 * include/cpplib.h (struct cpp_string): Add GTY marker.
214 (enum cpp_token_fld_kind): New.
215 (struct cpp_token): Add GTY markers.
216 (cpp_token_val_index): Prototype.
217 (CPP_HASHNODE_VALUE_IDX): New.
218 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
219 * include/cpp-id-data.h: New file.
d8044160 220
0ca8e815
PB
2212004-06-09 Paolo Bonzini <bonzini@gnu.org>
222
223 * Makefile.am (all-local): New.
224 * Makefile.in: Regenerate.
225
b51fa00f
RS
2262004-06-06 Roger Sayle <roger@eyesopen.com>
227
228 * Makefile.am (LIBICONV): Declare.
229 (makedepend_LDADD): Use LIBICONV.
230 * Makefile.in: Regenerate.
231
5e2f3f39
AP
2322004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
233
234 * Makefile.am (LIBINTL): Declare
235 (makedepend_LDADD): Use LIBINTL.
236 * Makefile.in: Regenerate.
237
c6e83800
ZW
2382004-06-05 Zack Weinberg <zack@codesourcery.com>
239
240 * Makefile.am: Add makedepend.
241 * Makefile.in, aclocal.m4: Regenerate.
242 * charset.c: Insert a space to avoid a warning.
243 * directives.c: Include mkdeps.h.
244 (_cpp_handle_directive): Reenable macro expander if appropriate.
245 (undefine_macros): Inline body of _cpp_free_definition for speed.
246 Do not call undef callback or _cpp_warn_if_unused_macro.
247 (cpp_get_deps): New interface.
248 * files.c (search_cache): Add pfile argument. Check for file
249 that would be found by "" or <> search here...
250 (_cpp_find_file): ...not here. Correct recorded start_dir of
251 files found by directory-of-current-file search that would be
252 found by "" or <> search.
253 * init.c (cpp_add_dependency_target): Delete.
254 * internal.h (struct lexer_state): Add discarding_output flag.
255 * lex.c (lex_identifier): Compute hash function while scanning.
256 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
257 directives.
258 * makedepend.c: New file.
259 * mkdeps.c (struct deps): Add vpath vector.
260 (apply_vpath, deps_add_vpath): New function.
261 (deps_free): Free vpath vector.
262 (deps_add_dep, deps_add_target): Use apply_vpath.
263 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
264 (ht_lookup_with_hash): New function.
265 * cpplib.h, mkdeps.h: Update prototypes.
266 * symtab.h: Update prototypes.
267 (HT_HASHSTEP, HT_FINISH): New macros.
268
b453c95f
GK
2692004-05-29 Geoffrey Keating <geoffk@apple.com>
270
271 * symtab.c (ht_create): Set entries_owned.
272 (ht_destroy): Honour entries_owned.
273 (ht_expand): Likewise.
274 (ht_load): New.
2cf22451
ZW
275 * include/symtab.h (struct ht): New field 'entries_owned'
276 (ht_load): New prototype.
b453c95f 277
963e23c5
PB
2782004-05-26 Paolo Bonzini <bonzini@gnu.org>
279
280 PR bootstrap/15651
281 * configure.ac: Fix m4 quoting when picking
282 the size of HOST_WIDE_INT.
283 * configure: Regenerate.
284
0429bc77
PB
2852004-05-25 Paolo Bonzini <bonzini@gnu.org>
286
287 * Makefile.am: the correct directory for
288 gettext include files is given by @INCINTL@.
289 * Makefile.in: Regenerate.
290
c86dd7db
PB
2912004-05-24 Paolo Bonzini <bonzini@gnu.org>
292
293 * system.h [!ENABLE_NLS]: dgettext takes two
294 parameters.
295
4f4e53dd
PB
2962004-05-23 Paolo Bonzini <bonzini@gnu.org>
297
298 Moved libcpp from the gcc subdirectory to the toplevel.
299 * Makefile.am: New file.
300 * Makefile.in: Regenerate.
301 * configure.ac: New file.
302 * configure: Regenerate.
303 * config.in: Regenerate.
304 * charset.c: Moved from gcc/cppcharset.c. Add note about
305 brokenness of input charset detection. Adjust for change
306 in name of cppucnid.h.
307 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
308 * expr.c: Moved from gcc/cppexp.c.
309 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
310 Remove #define of O_BINARY, it is in system.h.
311 * identifiers.c: Moved from gcc/cpphash.c.
312 * internal.h: Moved from gcc/cpphash.h. Change header
313 guard name. All other files adjusted to match name change.
314 * init.c: Moved from gcc/cppinit.c.
315 (init_library) [ENABLE_NLS]: Call bindtextdomain.
316 * lex.c: Moved from gcc/cpplex.c.
317 * directives.c: Moved from gcc/cpplib.c.
318 * macro.c: Moved from gcc/cppmacro.c.
319 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
320 * traditional.c: Moved from gcc/cpptrad.c.
321 * ucnid.h: Moved from gcc/cppucnid.h. Change header
322 guard name.
323 * ucnid.pl: Moved from gcc/cppucnid.pl.
324 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
325 guard name.
326 * symtab.c: Moved from gcc/hashtable.c.
327 * line-map.c: Moved from gcc. Do not include intl.h.
328 * mkdeps.c: Moved from gcc.
329 * system.h: New file.
2cf22451
ZW
330 * include/cpplib.h: Moved from gcc. Change header guard name.
331 * include/line-map.h: Moved from gcc. Change header guard name.
332 * include/mkdeps.h: Moved from gcc. Change header guard name.
333 * include/symtab.h: Moved from gcc/hashtable.h. Change header
334 guard name.