OSDN Git Service

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