OSDN Git Service

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