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