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