OSDN Git Service

8d3e5e48466ff4a2dfee343becf1fd332ab41745
[pf3gnuchains/gcc-fork.git] / libcpp / ChangeLog
1 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
2
3         * Makefile.in: Add back top_builddir.
4
5 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
6
7         * configure.ac: Replace Automake macro invocations
8         with manual Autoconf checks and substitutions.
9         * configure: Regenerate.
10         * aclocal.m4: Regenerate.
11         * config.in: Regenerate.
12         * Makefile.am: Removed.
13         * Makefile.in: Heavy simplification and reorganization.
14
15 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
16
17         * configure.ac (arm*-*-eabi*): New target.
18         (arm*-*-symbianelf*): Likewise.
19         * configure: Regenerated.
20
21 2004-07-24  Bernardo Innocenti  <bernie@develer.com>
22
23         * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
24         * directives.c: Use XNEW-family macros from libiberty.
25         * lex.c: Likewise.
26         * macro.c: Likewise.
27         * cpplib.h (cpp_deps_style): Export enum with name.
28
29 2004-07-23  Matthias Klose  <doko@debian.org> 
30
31         * init.c (init_library): Use PACKAGE for the text domain. 
32
33 2004-07-16  Andris Pavenis  <pavenis@latnet.lv>
34
35         PR preprocessor/16366
36         * internal.h (struct cpp_reader): New field dir_hash.
37         * files.c (make_cpp_dir): Use dir_hash, not file_hash.
38         (_cpp_init_files, _cpp_cleanup_files): Update for new field.
39
40 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
41
42         PR preprocessor/16192
43         PR preprocessor/15913
44         PR preprocessor/15572
45         * expr.c (_cpp_parse_expr): Handle remaining cases where an
46         expression is missing.
47         * init.c (post_options): Traditional cpp doesn't do // comments.
48
49 2004-06-30  Per Bothner  <per@bothner.com>
50
51         * include/line-map.h (fileline):  Remove old typedef.
52         * internal.h (struct cpp_reader):  Use source_location typedef instead.
53
54 2004-06-26  Zack Weinberg  <zack@codesourcery.com>
55
56         Partially revert patch of 2004-06-05.
57         * files.c (search_cache): Remove pfile argument.  Don't check
58         for file that would be found by "" or <> search here...
59         (_cpp_find_file): ...do it here, before calling find_file_in_dir.
60         Do not apply directory-of-current-file correction to files
61         found by this check.  Rearrange code slightly.
62
63 2004-06-21  Geoffrey Keating  <geoffk@apple.com>
64
65         * files.c (should_stack_file): Correct swapped parameters to call
66         to cb.read_pch.
67         * pch.c (cpp_valid_state): Handle -fpreprocessed.
68
69 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
70
71         * Makefile.in: Regenerate with automake 1.8.5.
72         * aclocal.m4: Likewise.
73         * configure: Regenerate.
74
75 2004-06-11  Zack Weinberg  <zack@codesourcery.com>
76
77         * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
78         * configure, config.in: Regenerate.
79         * system.h: Unconditionally define bool as unsigned char,
80         BOOL_BITFIELD as unsigned int.
81         * .cvsignore: New file.
82
83 2004-06-09  Geoffrey Keating  <geoffk@apple.com>
84
85         * traditional.c (push_replacement_text): Set macro->traditional.
86         (save_replacement_text): Likewise.
87         * pch.c (cpp_write_pch_state): Don't write list of defined macros.
88         (struct save_macro_item): Delete.
89         (struct save_macro_data): Use a character array not the previous
90         structured format.
91         (save_macros): Save macro as text not as internal structures.
92         (cpp_prepare_state): Update for changes to save_macro_data.
93         (cpp_read_state): Don't read macros defined in PCH.  Restore
94         -D macros as text.
95         * macro.c (create_iso_definition): Honour alloc_subobject.
96         Clear traditional flag.
97         (_cpp_create_definition): Honour alloc_subobject.
98         * lex.c (cpp_token_val_index): New.
99         * internal.h: Include cpp-id-data.h.
100         (uchar): Move definition to cpp-id-data.h.
101         (U): Likewise.
102         (cpp_macro): Likewise.
103         * directives.c (struct answer): Move to cpp-id-data.h.
104         (do_assert): Honour alloc_subobject.
105
106         * include/symtab.h (struct ht): Add field 'alloc_subobject'.
107         * include/cpplib.h (struct cpp_string): Add GTY marker.
108         (enum cpp_token_fld_kind): New.
109         (struct cpp_token): Add GTY markers.
110         (cpp_token_val_index): Prototype.
111         (CPP_HASHNODE_VALUE_IDX): New.
112         (struct cpp_hashnode): Don't skip fields of 'value' when marking.
113         * include/cpp-id-data.h: New file.
114
115 2004-06-09  Paolo Bonzini  <bonzini@gnu.org>
116
117         * Makefile.am (all-local): New.
118         * Makefile.in: Regenerate.
119
120 2004-06-06  Roger Sayle  <roger@eyesopen.com>
121
122         * Makefile.am (LIBICONV): Declare.
123         (makedepend_LDADD): Use LIBICONV.
124         * Makefile.in: Regenerate.
125
126 2004-06-05  Andrew Pinski  <pinskia@physics.uc.edu>
127
128         * Makefile.am (LIBINTL): Declare
129         (makedepend_LDADD): Use LIBINTL.
130         * Makefile.in: Regenerate.
131
132 2004-06-05  Zack Weinberg  <zack@codesourcery.com>
133
134         * Makefile.am: Add makedepend.
135         * Makefile.in, aclocal.m4: Regenerate.
136         * charset.c: Insert a space to avoid a warning.
137         * directives.c: Include mkdeps.h.
138         (_cpp_handle_directive): Reenable macro expander if appropriate.
139         (undefine_macros): Inline body of _cpp_free_definition for speed.
140         Do not call undef callback or _cpp_warn_if_unused_macro.
141         (cpp_get_deps): New interface.
142         * files.c (search_cache): Add pfile argument.  Check for file
143         that would be found by "" or <> search here...
144         (_cpp_find_file): ...not here.  Correct recorded start_dir of
145         files found by directory-of-current-file search that would be
146         found by "" or <> search.
147         * init.c (cpp_add_dependency_target): Delete.
148         * internal.h (struct lexer_state): Add discarding_output flag.
149         * lex.c (lex_identifier): Compute hash function while scanning.
150         * macro.c (cpp_scan_nooutput): Disable macro expansion outside
151         directives.
152         * makedepend.c: New file.
153         * mkdeps.c (struct deps): Add vpath vector.
154         (apply_vpath, deps_add_vpath): New function.
155         (deps_free): Free vpath vector.
156         (deps_add_dep, deps_add_target): Use apply_vpath.
157         * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
158         (ht_lookup_with_hash): New function.
159         * cpplib.h, mkdeps.h: Update prototypes.
160         * symtab.h: Update prototypes.
161         (HT_HASHSTEP, HT_FINISH): New macros.
162
163 2004-05-29  Geoffrey Keating  <geoffk@apple.com>
164
165         * symtab.c (ht_create): Set entries_owned.
166         (ht_destroy): Honour entries_owned.
167         (ht_expand): Likewise.
168         (ht_load): New.
169         * include/symtab.h (struct ht): New field 'entries_owned'
170         (ht_load): New prototype.
171
172 2004-05-26  Paolo Bonzini  <bonzini@gnu.org>
173
174         PR bootstrap/15651
175         * configure.ac: Fix m4 quoting when picking
176         the size of HOST_WIDE_INT.
177         * configure: Regenerate.
178
179 2004-05-25  Paolo Bonzini  <bonzini@gnu.org>
180
181         * Makefile.am: the correct directory for
182         gettext include files is given by @INCINTL@.
183         * Makefile.in: Regenerate.
184
185 2004-05-24  Paolo Bonzini  <bonzini@gnu.org>
186
187         * system.h [!ENABLE_NLS]: dgettext takes two
188         parameters.
189
190 2004-05-23  Paolo Bonzini  <bonzini@gnu.org>
191
192         Moved libcpp from the gcc subdirectory to the toplevel.
193         * Makefile.am: New file.
194         * Makefile.in: Regenerate.
195         * configure.ac: New file.
196         * configure: Regenerate.
197         * config.in: Regenerate.
198         * charset.c: Moved from gcc/cppcharset.c.  Add note about
199         brokenness of input charset detection.  Adjust for change
200         in name of cppucnid.h.
201         * errors.c: Moved from gcc/cpperror.c.  Do not include intl.h.
202         * expr.c: Moved from gcc/cppexp.c.
203         * files.c: Moved from gcc/cppfiles.c.  Do not include intl.h.
204         Remove #define of O_BINARY, it is in system.h.
205         * identifiers.c: Moved from gcc/cpphash.c.
206         * internal.h: Moved from gcc/cpphash.h.  Change header
207         guard name.  All other files adjusted to match name change.
208         * init.c: Moved from gcc/cppinit.c.
209         (init_library) [ENABLE_NLS]: Call bindtextdomain.
210         * lex.c: Moved from gcc/cpplex.c.
211         * directives.c: Moved from gcc/cpplib.c.
212         * macro.c: Moved from gcc/cppmacro.c.
213         * pch.c: Moved from gcc/cpppch.c.  Do not include intl.h.
214         * traditional.c: Moved from gcc/cpptrad.c.
215         * ucnid.h: Moved from gcc/cppucnid.h.  Change header
216         guard name.
217         * ucnid.pl: Moved from gcc/cppucnid.pl.
218         * ucnid.tab: Moved from gcc/cppucnid.tab.  Change header
219         guard name.
220         * symtab.c: Moved from gcc/hashtable.c.
221         * line-map.c: Moved from gcc.  Do not include intl.h.
222         * mkdeps.c: Moved from gcc.
223         * system.h: New file.
224         * include/cpplib.h: Moved from gcc.  Change header guard name.
225         * include/line-map.h: Moved from gcc.  Change header guard name.
226         * include/mkdeps.h: Moved from gcc.  Change header guard name.
227         * include/symtab.h: Moved from gcc/hashtable.h.  Change header
228         guard name.