OSDN Git Service

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