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