OSDN Git Service

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