]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
re PR tree-optimization/18184 (Tree optimizers ignore pointer modes)
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
3da3d587
ZW
12004-10-27 Zack Weinberg <zack@codesourcery.com>
2
3 PR 18075
4 * directives.c (do_pragma): Do not defer pragmas which are unknown.
5 (cpp_handle_deferred_pragma): Add cast to silence warning.
6
ac24fc25
JM
72004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
8
9 * errors.c (_cpp_begin_message): Print "error: " for errors.
10
7731405b
AJ
112004-10-10 Andreas Jaeger <aj@suse.de>
12
13 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
14 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
15
646544e3
AP
162004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
17
18 * pch.c (cpp_write_pch_state): Remove variable z as it is not
19 used.
20 (cpp_read_state): Remove unused variables, m, d and mac_count.
21
67a74146
PB
222004-09-29 Per Bothner <per@bothner.com>
23
24 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
25 cb.line_change. Otherwise do_pragma will call the line_change
26 call-back with a meaningless line number.
27
018a4785
ZW
282004-09-24 Zack Weinberg <zack@codesourcery.com>
29
30 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
31 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
32 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
33 * aclocal.m4, configure: Regenerate.
34 * init.c: Include localedir.h.
35 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
36 (DEFS): Delete.
37 (.c.o): Use $(ALL_CFLAGS).
38 (localedir.h, localedir.hs): New rules.
39 (clean): Use rm -rf to remove directories.
40 (distclean): Also delete localedir.h and localedir.hs.
41 (init.o): Update dependencies.
42
88fa57d7
KC
432004-09-22 Kelley Cook <kcook@gcc.gnu.org>
44
45 * Makefile.in (aclocal.m4): Update dependencies.
46 * configure.ac (AC_CONFIG_MACRO_DIR): New.
47 * aclocal.m4, configure: Regenerate.
48
8f8e9aa5
ZW
492004-09-17 Zack Weinberg <zack@codesourcery.com>
50
a29f62d9
ZW
51 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
52 (_cpp_convert_input, _cpp_default_encoding): Add comments.
53 Some other comments in this file also tweaked.
54
8f8e9aa5
ZW
55 * directives.c (do_pragma): Save current buffer position
56 before lexing the pragma keywords; don't call
57 _cpp_backup_tokens in the defer_pragmas case.
58
a2981930
PB
592004-09-15 Per Bothner <per@bothner.com>
60
61 * include/line-map.h (line_map_start): Add parameter names so
62 preceding comment makes sense.
63 (linemap_add): Remove from comment mention of non-existing parameter.
64
21b11495
ZW
652004-09-09 Matt Austern <austern@apple.com>
66 Zack Weinberg <zack@codesourcery.com>
67
68 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
69 prefixes throughout. Add entry for PRAGMA. Remove
70 unnecessary "= 0" from EQ.
71 (enum cpp_ttype): Adjust OP and TK definitions to restore
72 prefixes, via token-paste.
73 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
74 Change from #defines to additional cpp_ttype enumerators.
75 (struct cpp_options): Add defer_pragmas.
76 (cpp_handle_deferred_pragma): Prototype new interface.
77
78 * internal.h (struct cpp_reader): Add directive_result.
79 * directives.c (struct pragma_entry): Add is_internal field;
80 give boolean fields type bool.
81 (start_directive): Initialize pfile->directive_result.type.
82 (_cpp_do__Pragma): Likewise.
83 (run_directive): Do not crash if pfile->buffer->prev is NULL.
84 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
85 from it.
86 (register_pragma): New static function, bulk of former
87 cpp_register_pragma here; add 'internal' argument, pass along
88 to insert_pragma_entry.
89 (cpp_register_pragma): Now a wrapper around register_pragma which
90 always passes false for 'internal' argument.
91 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
92 true for 'internal'.
93 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
94 an internal pragma, save text till the end of the line as a CPP_PRAGMA
95 token instead of executing the pragma.
96 (cpp_handle_deferred_pragma): New interface.
97 * lex.c (token_spellings): Adjust OP and TK definitions to
98 match changes to cpplib.h.
99 (_cpp_lex_token): Check for a directive-result token and
100 return it if present.
101 (cpp_token_val_index): Handle CPP_PRAGMA.
102 * macro.c (cpp_builtin_macro_text): Correct comment.
103 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
104
0fd9e8dd
SB
1052004-09-06 Serge Belyshev <belyshev@lubercy.com>
106
107 PR preprocessor/14699
108 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
109 from size_t to double.
110
39b8ce7f
AS
1112004-08-28 Andreas Schwab <schwab@suse.de>
112 Andreas Jaeger <aj@suse.de>
113
114 * configure.ac: Set PACKAGE correctly.
115 * configure: Regenerated.
116
5d1f4b27
PB
1172004-08-25 Paolo Bonzini <bonzini@gnu.org>
118
119 * Makefile.in: Add back top_builddir.
120
078e3ffe
PB
1212004-08-25 Paolo Bonzini <bonzini@gnu.org>
122
123 * configure.ac: Replace Automake macro invocations
124 with manual Autoconf checks and substitutions.
125 * configure: Regenerate.
126 * aclocal.m4: Regenerate.
127 * config.in: Regenerate.
128 * Makefile.am: Removed.
129 * Makefile.in: Heavy simplification and reorganization.
130
b3f8d95d
MM
1312004-08-09 Mark Mitchell <mark@codesourcery.com>
132
133 * configure.ac (arm*-*-eabi*): New target.
134 (arm*-*-symbianelf*): Likewise.
135 * configure: Regenerated.
136
72bb2c39
BI
1372004-07-24 Bernardo Innocenti <bernie@develer.com>
138
139 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
140 * directives.c: Use XNEW-family macros from libiberty.
141 * lex.c: Likewise.
142 * macro.c: Likewise.
143 * cpplib.h (cpp_deps_style): Export enum with name.
144
21b11495 1452004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 146
21b11495 147 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 148
a23ee064
AP
1492004-07-16 Andris Pavenis <pavenis@latnet.lv>
150
151 PR preprocessor/16366
152 * internal.h (struct cpp_reader): New field dir_hash.
153 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
154 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
155
a09d4744
NB
1562004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
157
158 PR preprocessor/16192
159 PR preprocessor/15913
160 PR preprocessor/15572
161 * expr.c (_cpp_parse_expr): Handle remaining cases where an
162 expression is missing.
163 * init.c (post_options): Traditional cpp doesn't do // comments.
164
f58f7def
PB
1652004-06-30 Per Bothner <per@bothner.com>
166
167 * include/line-map.h (fileline): Remove old typedef.
168 * internal.h (struct cpp_reader): Use source_location typedef instead.
169
e83d8d43
ZW
1702004-06-26 Zack Weinberg <zack@codesourcery.com>
171
172 Partially revert patch of 2004-06-05.
173 * files.c (search_cache): Remove pfile argument. Don't check
174 for file that would be found by "" or <> search here...
175 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
176 Do not apply directory-of-current-file correction to files
177 found by this check. Rearrange code slightly.
178
c0d578e6
GK
1792004-06-21 Geoffrey Keating <geoffk@apple.com>
180
181 * files.c (should_stack_file): Correct swapped parameters to call
182 to cb.read_pch.
183 * pch.c (cpp_valid_state): Handle -fpreprocessed.
184
159d5224
PB
1852004-06-15 Paolo Bonzini <bonzini@gnu.org>
186
187 * Makefile.in: Regenerate with automake 1.8.5.
188 * aclocal.m4: Likewise.
189 * configure: Regenerate.
190
2fac9c01
ZW
1912004-06-11 Zack Weinberg <zack@codesourcery.com>
192
193 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
194 * configure, config.in: Regenerate.
195 * system.h: Unconditionally define bool as unsigned char,
196 BOOL_BITFIELD as unsigned int.
197 * .cvsignore: New file.
198
d8044160
GK
1992004-06-09 Geoffrey Keating <geoffk@apple.com>
200
201 * traditional.c (push_replacement_text): Set macro->traditional.
202 (save_replacement_text): Likewise.
203 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
204 (struct save_macro_item): Delete.
205 (struct save_macro_data): Use a character array not the previous
206 structured format.
207 (save_macros): Save macro as text not as internal structures.
208 (cpp_prepare_state): Update for changes to save_macro_data.
209 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 210 -D macros as text.
d8044160
GK
211 * macro.c (create_iso_definition): Honour alloc_subobject.
212 Clear traditional flag.
213 (_cpp_create_definition): Honour alloc_subobject.
214 * lex.c (cpp_token_val_index): New.
215 * internal.h: Include cpp-id-data.h.
216 (uchar): Move definition to cpp-id-data.h.
217 (U): Likewise.
218 (cpp_macro): Likewise.
219 * directives.c (struct answer): Move to cpp-id-data.h.
220 (do_assert): Honour alloc_subobject.
2cf22451
ZW
221
222 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
223 * include/cpplib.h (struct cpp_string): Add GTY marker.
224 (enum cpp_token_fld_kind): New.
225 (struct cpp_token): Add GTY markers.
226 (cpp_token_val_index): Prototype.
227 (CPP_HASHNODE_VALUE_IDX): New.
228 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
229 * include/cpp-id-data.h: New file.
d8044160 230
0ca8e815
PB
2312004-06-09 Paolo Bonzini <bonzini@gnu.org>
232
233 * Makefile.am (all-local): New.
234 * Makefile.in: Regenerate.
235
b51fa00f
RS
2362004-06-06 Roger Sayle <roger@eyesopen.com>
237
238 * Makefile.am (LIBICONV): Declare.
239 (makedepend_LDADD): Use LIBICONV.
240 * Makefile.in: Regenerate.
241
5e2f3f39
AP
2422004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
243
244 * Makefile.am (LIBINTL): Declare
245 (makedepend_LDADD): Use LIBINTL.
246 * Makefile.in: Regenerate.
247
c6e83800
ZW
2482004-06-05 Zack Weinberg <zack@codesourcery.com>
249
250 * Makefile.am: Add makedepend.
251 * Makefile.in, aclocal.m4: Regenerate.
252 * charset.c: Insert a space to avoid a warning.
253 * directives.c: Include mkdeps.h.
254 (_cpp_handle_directive): Reenable macro expander if appropriate.
255 (undefine_macros): Inline body of _cpp_free_definition for speed.
256 Do not call undef callback or _cpp_warn_if_unused_macro.
257 (cpp_get_deps): New interface.
258 * files.c (search_cache): Add pfile argument. Check for file
259 that would be found by "" or <> search here...
260 (_cpp_find_file): ...not here. Correct recorded start_dir of
261 files found by directory-of-current-file search that would be
262 found by "" or <> search.
263 * init.c (cpp_add_dependency_target): Delete.
264 * internal.h (struct lexer_state): Add discarding_output flag.
265 * lex.c (lex_identifier): Compute hash function while scanning.
266 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
267 directives.
268 * makedepend.c: New file.
269 * mkdeps.c (struct deps): Add vpath vector.
270 (apply_vpath, deps_add_vpath): New function.
271 (deps_free): Free vpath vector.
272 (deps_add_dep, deps_add_target): Use apply_vpath.
273 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
274 (ht_lookup_with_hash): New function.
275 * cpplib.h, mkdeps.h: Update prototypes.
276 * symtab.h: Update prototypes.
277 (HT_HASHSTEP, HT_FINISH): New macros.
278
b453c95f
GK
2792004-05-29 Geoffrey Keating <geoffk@apple.com>
280
281 * symtab.c (ht_create): Set entries_owned.
282 (ht_destroy): Honour entries_owned.
283 (ht_expand): Likewise.
284 (ht_load): New.
2cf22451
ZW
285 * include/symtab.h (struct ht): New field 'entries_owned'
286 (ht_load): New prototype.
b453c95f 287
963e23c5
PB
2882004-05-26 Paolo Bonzini <bonzini@gnu.org>
289
290 PR bootstrap/15651
291 * configure.ac: Fix m4 quoting when picking
292 the size of HOST_WIDE_INT.
293 * configure: Regenerate.
294
0429bc77
PB
2952004-05-25 Paolo Bonzini <bonzini@gnu.org>
296
297 * Makefile.am: the correct directory for
298 gettext include files is given by @INCINTL@.
299 * Makefile.in: Regenerate.
300
c86dd7db
PB
3012004-05-24 Paolo Bonzini <bonzini@gnu.org>
302
303 * system.h [!ENABLE_NLS]: dgettext takes two
304 parameters.
305
4f4e53dd
PB
3062004-05-23 Paolo Bonzini <bonzini@gnu.org>
307
308 Moved libcpp from the gcc subdirectory to the toplevel.
309 * Makefile.am: New file.
310 * Makefile.in: Regenerate.
311 * configure.ac: New file.
312 * configure: Regenerate.
313 * config.in: Regenerate.
314 * charset.c: Moved from gcc/cppcharset.c. Add note about
315 brokenness of input charset detection. Adjust for change
316 in name of cppucnid.h.
317 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
318 * expr.c: Moved from gcc/cppexp.c.
319 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
320 Remove #define of O_BINARY, it is in system.h.
321 * identifiers.c: Moved from gcc/cpphash.c.
322 * internal.h: Moved from gcc/cpphash.h. Change header
323 guard name. All other files adjusted to match name change.
324 * init.c: Moved from gcc/cppinit.c.
325 (init_library) [ENABLE_NLS]: Call bindtextdomain.
326 * lex.c: Moved from gcc/cpplex.c.
327 * directives.c: Moved from gcc/cpplib.c.
328 * macro.c: Moved from gcc/cppmacro.c.
329 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
330 * traditional.c: Moved from gcc/cpptrad.c.
331 * ucnid.h: Moved from gcc/cppucnid.h. Change header
332 guard name.
333 * ucnid.pl: Moved from gcc/cppucnid.pl.
334 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
335 guard name.
336 * symtab.c: Moved from gcc/hashtable.c.
337 * line-map.c: Moved from gcc. Do not include intl.h.
338 * mkdeps.c: Moved from gcc.
339 * system.h: New file.
2cf22451
ZW
340 * include/cpplib.h: Moved from gcc. Change header guard name.
341 * include/line-map.h: Moved from gcc. Change header guard name.
342 * include/mkdeps.h: Moved from gcc. Change header guard name.
343 * include/symtab.h: Moved from gcc/hashtable.h. Change header
344 guard name.