OSDN Git Service

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