OSDN Git Service

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