comparison libcpp/ChangeLog @ 55:77e2b8dfacca gcc-4.4.5

update it from 4.4.3 to 4.5.0
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Fri, 12 Feb 2010 23:39:51 +0900
parents 3bfb6c00c1e0
children b7f97abdc517
comparison
equal deleted inserted replaced
52:c156f1bd5cd9 55:77e2b8dfacca
1 2010-01-21 Release Manager 1 2009-11-20 Arnaud Charlet <charlet@adacore.com>
2 2
3 * GCC 4.4.3 released. 3 * macro.c (enter_macro_context): Call cb.used callback if defined.
4 * directives.c (do_idef, do_ifndef): Ditto.
5 * include/cpplib.h (struct cpp_callbacks): Add used callback.
4 6
5 2009-11-11 Kai Tietz <kai.tietz@onevision.com> 7 2009-11-11 Kai Tietz <kai.tietz@onevision.com>
6 8
7 Backported from trunk
8 * directives.c (do_pragma_push_macro): New pragma handler. 9 * directives.c (do_pragma_push_macro): New pragma handler.
9 (do_pragma_pop_macro): Likewise. 10 (do_pragma_pop_macro): Likewise.
10 (_cpp_init_internal_pragmas): Add push_macro and 11 (_cpp_init_internal_pragmas): Add push_macro and
11 pop_macro handler to internal pragmas. 12 pop_macro handler to internal pragmas.
12 (lex_macro_node_from_str): Removed. 13 (lex_macro_node_from_str): Removed.
24 * pch.c (_cpp_save_pushed_macros): New function. 25 * pch.c (_cpp_save_pushed_macros): New function.
25 (_cpp_restore_pushed_macros): Likewise. 26 (_cpp_restore_pushed_macros): Likewise.
26 (_cpp_restore_pushed_macros): Use _cpp_save_pushed_macros. 27 (_cpp_restore_pushed_macros): Use _cpp_save_pushed_macros.
27 (cpp_read_state): Use _cpp_restore_pushed_macros. 28 (cpp_read_state): Use _cpp_restore_pushed_macros.
28 29
29 2009-10-15 Release Manager 30 2009-10-19 Jakub Jelinek <jakub@redhat.com>
30 31
31 * GCC 4.4.2 released. 32 * charset.c (cpp_init_iconv): Initialize utf8_cset_desc.
33 (_cpp_destroy_iconv): Destroy utf8_cset_desc, char16_cset_desc
34 and char32_cset_desc.
35 (converter_for_type): Handle CPP_UTF8STRING.
36 (cpp_interpret_string): Handle CPP_UTF8STRING and raw-strings.
37 * directives.c (get__Pragma_string): Handle CPP_UTF8STRING.
38 (parse_include): Reject raw strings.
39 * include/cpplib.h (CPP_UTF8STRING): New token type.
40 * internal.h (struct cpp_reader): Add utf8_cset_desc field.
41 * lex.c (lex_raw_string): New function.
42 (lex_string): Handle u8 string literals, call lex_raw_string
43 for raw string literals.
44 (_cpp_lex_direct): Call lex_string even for u8" and {,u,U,L,u8}R"
45 sequences.
46 * macro.c (stringify_arg): Handle CPP_UTF8STRING.
47
48 2009-10-14 Jakub Jelinek <jakub@redhat.com>
49
50 PR preprocessor/41543
51 * include/line-map.h (RESERVED_LOCATION_COUNT): Define.
52 * line-map.c (linemap_init): Initialize highest_location and
53 highest_line to RESERVED_LOCATION_COUNT-1 instead of 0.
54
55 2009-10-09 Jason Merrill <jason@redhat.com>
56
57 * charset.c (_cpp_valid_ucn): Update C++0x restrictions.
58
59 2009-10-09 Neil Vachharajani <nvachhar@google.com>
60
61 * directives.c (DIRECTIVE_TABLE): Remove DEPRECATED from ident and
62 sccs.
63
64 2009-09-23 Loren J. Rittle <ljrittle@acm.org>
65
66 * configure.ac (AC_CHECK_HEADERS after AC_LANG(C++)): Add sys/stat.h.
67 * configure: Rebuilt.
68
69 2009-09-22 Richard Guenther <rguenther@suse.de>
70
71 PR pch/38987
72 * files.c (pch_open_file): Disallow non-toplevel PCH inclusion.
73
74 2009-09-18 Chris Demetriou <cgd@google.com>
75
76 PR preprocessor/28435:
77 * include/cpplib.h (struct cpp_options): Add new member
78 deps.need_preprocessor_output.
79 * files.c (open_file_failed): If preprocessor output is needed
80 always report an error.
81
82 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
83
84 * configure.ac: Set for i?86-w64-mingw*
85 need_64bit_hwint to yes.
86 * configure: Regenerated.
87
88 2009-09-10 Jason Merrill <jason@redhat.com>
89
90 * directives.c (cpp_define): constify.
32 91
33 2009-09-02 Ian Lance Taylor <iant@google.com> 92 2009-09-02 Ian Lance Taylor <iant@google.com>
34 93
35 * macro.c (stringify_arg): Escape CPP_WCHAR tokens. 94 * macro.c (stringify_arg): Escape CPP_WCHAR tokens.
36 95
37 2009-07-22 Release Manager 96 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38 97
39 * GCC 4.4.1 released. 98 * configure.ac (AC_PREREQ): Bump to 2.64.
40 99
41 2009-04-21 Release Manager 100 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42 101
43 * GCC 4.4.0 released. 102 * aclocal.m4: Regenerate.
103 * config.in: Regenerate.
104 * configure: Regenerate.
105
106 2009-08-17 Tom Tromey <tromey@redhat.com>
107
108 PR preprocessor/41067:
109 * charset.c (convert_escape): Add missing ":" to error text.
110
111 2009-07-27 Douglas B Rupp <rupp@gnat.com>
112
113 * include/cpplib.h (INO_T_CPP): New macro.
114 (struct cpp_dir): Use it.
115
116 2009-07-20 Jerry Quinn <jlquinn@optonline.net>
117
118 PR regression/40800
119 * configure.ac: Use = instead of == for testing
120 ENABLE_BUILD_WITH_CXX.
121 * configure: Rebuild.
122
123 2009-07-17 Jerry Quinn <jlquinn@optonline.net>
124
125 * directives.c (do_linemarker, do_line): Use CPP_STRING for
126 ignored enum value.
127 * files.c (find_file_in_dir): Add cast from void* to char*.
128 * symtab.c (ht_lookup_with_hash): Add cast from void* to char*.
129 * Makefile.in: (WARN_CFLAGS): Use general and C-specific
130 warnings.
131 (CXX, CXXFLAGS, WARN_CXXFLAGS, ALL_CXXFLAGS,
132 ENABLE_BUILD_WITH_CXX, CCDEPMODE, CXXDEPMODE, COMPILER,
133 COMPILER_FLAGS): New.
134 (DEPMODE): Set from CCDEPMODE or CXXDEPMODE.
135 (COMPILE.base): Use COMPILER instead of CC. Use COMPILER_FLAGS
136 instead of ALL_CFLAGS.
137 * configure.ac: Invoke AC_PROG_CXX. Separate C-specific warnings
138 from other warnings. Add -Wc++-compat to C-specific warnings.
139 Check for --enable-build-with-cxx. Set and substitute
140 ENABLE_BUILD_WITH_CXX. Invoke ZW_PROG_COMPILER_DEPENDENCIES
141 according to ENABLE_BUILD_WITH_CXX. Invoke AC_LANG before
142 AC_CHECK_HEADERS.
143 * configure: Rebuild.
144 * include/cpp-id-data.h: Remove extern "C".
145 * include/line-map.h: Likewise.
146 * include/mkdeps.h: Likewise.
147 * include/symtab.h: Likewise.
148 * internal.h: Likewise.
149
150 2009-06-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
151
152 * directives.c (parse_include): Add location argument. Update all
153 calls.
154 (parse_answer): Likewise.
155 (do_include_common): Error with exact location.
156 (parse_assertion): Likewise.
157
158 2009-06-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
159
160 * expr.c (num_div_op): Take explicit location.
161
162 2009-06-17 Ian Lance Taylor <iant@google.com>
163
164 * include/cpplib.h (progname): Don't declare.
165
166 2009-06-12 Ian Lance Taylor <iant@google.com>
167
168 * include/cpplib.h (struct cpp_options): Add
169 warn_cxx_operator_names field.
170 (NODE_WARN_OPERATOR): Define.
171 (struct cpp_hashnode): Increase flags field to 10 bits, decrease
172 type to 6 bits.
173 * init.c (mark_named_operators): Add flags parameter.
174 (cpp_post_options): Pick flags value to pass to
175 mark_named_operators.
176 * lex.c (lex_identifier): If NODE_WARN_OPERATOR is set, warn that
177 identifier is an operator name in C++.
178
179 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
180
181 * include/line-map.h (LAST_SOURCE_COLUMN): New.
182
183 2009-06-01 Ian Lance Taylor <iant@google.com>
184
185 * include/cpp-id-data.h: Add extern "C".
186 * include/line-map.h: Likewise.
187 * include/mkdeps.h: Likewise.
188 * include/symtab.h: Likewise.
189 * internal.h: Likewise.
190
191 2009-05-15 Ian Lance Taylor <iant@google.com>
192
193 * include/cpplib.h (enum cpp_builtin_type): Rename from enum
194 builtin_type. Change all uses.
195
196 2009-05-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
197
198 PR cpp/36674
199 * directives (do_linemarker): Compensate for the increment in
200 location that occurs when we reach the end of line.
201 * files (_cpp_stack_include): Mention _cpp_find_file in the
202 comment.
203
204 2009-05-10 Joseph Myers <joseph@codesourcery.com>
205
206 * include/cpplib.h (enum cpp_token_fld_kind): Add
207 CPP_TOKEN_FLD_TOKEN_NO.
208 (struct cpp_macro_arg, struct cpp_identifier): Define.
209 (union cpp_token_u): Use struct cpp_identifier for identifiers.
210 Use struct cpp_macro_arg for macro arguments. Add token_no for
211 CPP_PASTE token numbers.
212 * directives.c (_cpp_handle_directive, lex_macro_node, do_pragma,
213 do_pragma_poison, parse_assertion): Use val.node.node in place of
214 val.node.
215 * expr.c (parse_defined, eval_token): Use val.node.node in place
216 of val.node.
217 * lex.c (cpp_ideq, _cpp_lex_direct, cpp_token_len,
218 cpp_spell_token, cpp_output_token, _cpp_equiv_tokens,
219 cpp_token_val_index): Use val.macro_arg.arg_no or val.token_no in
220 place of val.arg_no. Use val.node.node in place of val.node.
221 * macro.c (replace_args, cpp_get_token, parse_params,
222 lex_expansion_token, create_iso_definition, cpp_macro_definition):
223 Use val.macro_arg.arg_no or val.token_no in place of val.arg_no.
224 Use val.node.node in place of val.node.
225
226 2009-05-03 Joseph Myers <joseph@codesourcery.com>
227
228 * charset.c (one_utf8_to_cppchar): Correct mask used for 5-byte
229 UTF-8 sequences.
230
231 2009-04-25 Joseph Myers <joseph@codesourcery.com>
232
233 PR preprocessor/39559
234 * expr.c (cpp_interpret_integer): Use a pedwarn for decimal
235 constants larger than intmax_t in C99 mode.
236
237 2009-04-21 Taras Glek <tglek@mozilla.com>
238
239 * include/cpp-id-data.h: Update GTY annotations to new syntax.
240 * include/cpplib.h: Likewise.
241 * include/line-map.h: Likewise.
242 * include/symtab.h: Likewise.
243
244 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
245
246 PR c++/14875
247 * lex.c (cpp_type2name): Take a flags parameter. Call
248 cpp_named_operator2name for named operators and cpp_digraph2name
249 for digraphs.
250 (cpp_digraph2name): New.
251 (cpp_spell_token): Use it.
252 (cpp_output_token): Likewise.
253 * include/cpplib.h (cpp_type2name): Update declaration.
254 * init.c (cpp_named_operator2name): New.
255 * internal.h (cpp_named_operator2name): Declare.
256
257 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
258
259 PR c++/13358
260 * init.c (cpp_create_reader): Wlong_long is disabled by default.
261 * expr.c (cpp_classify_number): Give different messages for C and
262 C++ front-ends.
263
264 2009-04-19 Joseph Myers <joseph@codesourcery.com>
265
266 PR preprocessor/20078
267 * include/cpp-id-data.h (struct cpp_macro): Add extra_tokens
268 field.
269 * include/cpplib.h (SP_DIGRAPH, SP_PREV_WHITE): Define.
270 (struct cpp_token): Change flags to unsigned short.
271 * lex.c (_cpp_lex_direct): Initialize arg_no for CPP_PASTE tokens.
272 (_cpp_equiv_tokens): Check arg_no for CPP_PASTE tokens.
273 (cpp_token_val_index): Return CPP_TOKEN_FLD_ARG_NO for CPP_PASTE
274 tokens.
275 * macro.c (macro_real_token_count): New.
276 (enter_macro_context, replace_args): Use macro_real_token_count.
277 (create_iso_definition): Record whitespace surrounding and digraph
278 spelling of # and ## tokens using SP_PREV_WHITE and SP_DIGRAPH.
279 Set extra_tokens and save CPP_PASTE tokens with arg_no set for
280 multiple consecutive ## tokens.
281 (_cpp_create_definition): Initialize extra_tokens.
282 (cpp_macro_definition): Use macro_real_token_count.
283
284 2009-04-18 Joseph Myers <joseph@codesourcery.com>
285
286 * directives.c (parse_include): Pass true to check_eol.
287
288 2009-04-18 Joseph Myers <joseph@codesourcery.com>
289
290 PR preprocessor/39646
291 * include/line-map.h (enum lc_reason): Add LC_RENAME_VERBATIM.
292 * line-map.c (linemap_add): Handle LC_RENAME_VERBATIM.
293 * directives.c (do_line, do_linemarker): Use LC_RENAME_VERBATIM in
294 place of LC_RENAME.
295
296 2009-04-18 Joseph Myers <joseph@codesourcery.com>
297
298 PR preprocessor/39647
299 * directives.c (check_eol): Add parameter expand.
300 (do_undef, parse_include, do_line, do_linemarker, do_ident,
301 do_pragma_once, do_pragma_system_header, do_ifdef, do_ifndef,
302 do_else, do_endif, do_assert, do_unassert): All callers changed.
303 Pass true from do_line, false elsewhere.
304
305 2009-04-12 Joseph Myers <joseph@codesourcery.com>
306
307 PR preprocessor/31869
308 * macro.c (stringify_arg): Handle NULL source token in padding
309 token where previous padding token did not have source token with
310 preceding whitespace.
44 311
45 2009-04-09 Jakub Jelinek <jakub@redhat.com> 312 2009-04-09 Jakub Jelinek <jakub@redhat.com>
46 313
47 * Makefile.in: Change copyright header to refer to version 314 * Makefile.in: Change copyright header to refer to version
48 3 of the GNU General Public License and to point readers at the 315 3 of the GNU General Public License and to point readers at the
71 * system.h: Likewise. 338 * system.h: Likewise.
72 * traditional.c: Likewise. 339 * traditional.c: Likewise.
73 * ucnid.tab: Likewise. 340 * ucnid.tab: Likewise.
74 * ucnid.h: Regenerate. 341 * ucnid.h: Regenerate.
75 342
343 2009-04-01 Janis Johnson <janis187@us.ibm.com>
344
345 PR c/39027
346 * include/cpplib.h (CPP_N_DEFAULT): Define.
347 * expr.c (interpret_float_suffix): Recognize d or D for double,
348 return new value for default.
349 (cpp_classify_number): Issue pedwarn for use of d or D in suffix.
350
351 PR c/33466
352 * expr.c (interpret_float_suffix): Reject invalid suffix that uses
353 letters from decimal float and fixed-point suffixes.
354
355 2009-03-31 Joseph Myers <joseph@codesourcery.com>
356
357 PR preprocessor/15638
358 * files.c (_cpp_find_file): Call open_file_failed after diagnosing
359 invalid PCH.
360 (open_file_failed): Make error for missing file fatal.
361 * include/cpplib.h (CPP_DL_FATAL): Define.
362
363 2009-03-30 Sergiy Vyshnevetskiy <serg@vostok.net>
364
365 PR preprocessor/31932:
366 * internal.h: Don't mention HAVE_ICONV_H.
367 * configure, config.in: Rebuild.
368 * configure.ac: Don't check for iconv.h.
369
370 2009-03-30 Tom Tromey <tromey@redhat.com>
371
372 PR preprocessor/39512:
373 * line-map.c (linemap_init): Initialize 'reallocator' field.
374
76 2009-03-30 Jakub Jelinek <jakub@redhat.com> 375 2009-03-30 Jakub Jelinek <jakub@redhat.com>
77 376
78 PR target/39558 377 PR target/39558
79 * macro.c (cpp_get_token): If macro_to_expand returns NULL 378 * macro.c (cpp_get_token): If macro_to_expand returns NULL
80 and used some tokens, add CPP_PADDING before next token. 379 and used some tokens, add CPP_PADDING before next token.
380
381 2009-03-29 Joseph Myers <joseph@codesourcery.com>
382
383 PR preprocessor/34695
384 * makedepend.c: Remove.
385 * Makefile.in (makedepend_OBJS, makedepend$(EXEEXT)): Remove.
386 (all, clean, TAGS_SOURCES, include): Remove makedepend handling.
387 * directives.c (cpp_errors): Remove.
388 * errors.c (print_location, _cpp_begin_message, v_message):
389 Remove.
390 (cpp_error, cpp_error_with_line): Always use error callback.
391 (cpp_error, cpp_error_with_line, cpp_errno): Return bool.
392 * include/cpplib.h (cpp_options): Remove pedantic_errors,
393 inhibit_warnings, warn_system_headers, inhibit_errors,
394 warnings_are_errors, client_diagnostic.
395 (cpp_callbacks): Add extra arguments to error callback; make it
396 return bool.
397 (cpp_finish): Return void.
398 (cpp_destroy): Remove inaccurate comment about return value.
399 (cpp_errors, CPP_DL_EXTRACT, CPP_DL_WARNING_P): Remove.
400 (CPP_DL_NOTE): Define.
401 * include/line-map.h (linemap_print_containing_files): Remove.
402 * init.c (cpp_finish): Do not check for or return number of
403 errors.
404 * internal.h (cpp_reader): Remove errors field.
405 * line-map.c (linemap_print_containing_files): Remove.
406 * macro.c (_cpp_create_definition): Use CPP_DL_NOTE for message
407 about previous definition. Only emit it if previous diagnostic
408 was emitted.
81 409
82 2009-03-28 Joseph Myers <joseph@codesourcery.com> 410 2009-03-28 Joseph Myers <joseph@codesourcery.com>
83 411
84 * Makefile.in (po/$(PACKAGE).pot): Use $(mkinstalldirs) not 412 * Makefile.in (po/$(PACKAGE).pot): Use $(mkinstalldirs) not
85 mkinstalldirs. 413 mkinstalldirs.