]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/c-family/ChangeLog
re PR target/52555 (ICE unrecognizable insn with -ffast-math and __attribute__((optim...
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
1 2013-02-11 Aldy Hernandez <aldyh@redhat.com>
2
3 PR target/52555
4 * c-common.c (handle_optimize_attribute): Call
5 save_optabs_if_changed.
6
7 2013-02-18 Jakub Jelinek <jakub@redhat.com>
8 Steven Bosscher <steven@gcc.gnu.org>
9
10 PR pch/54117
11 * c-opts.c (c_common_post_options): If debug info is enabled
12 and non-dwarf*, refuse to load PCH files and when writing PCH
13 file warn.
14
15 2013-02-05 Jakub Jelinek <jakub@redhat.com>
16
17 PR middle-end/56167
18 * c-common.c (handle_error_attribute): Fix condition.
19
20 2013-01-30 Jakub Jelinek <jakub@redhat.com>
21
22 PR c++/55742
23 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
24
25 2013-01-18 Jason Merrill <jason@redhat.com>
26
27 PR target/54908
28 * c.opt (-fextern-tls-init): New.
29 * c-opts.c (c_common_post_options): Handle it.
30
31 2013-01-09 Jakub Jelinek <jakub@redhat.com>
32
33 PR c/48418
34 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
35 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
36 and is either negative or bigger or equal to type precision
37 of the first operand.
38
39 2012-12-03 Marek Polacek <polacek@redhat.com>
40
41 PR c/55570
42 * c-common.c (check_user_alignment): Swap order of tests,
43 check TREE_CODE first.
44
45 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
46
47 PR c++/52654
48 * c-common.h (overflow_type): New enum.
49 (build_userdef_literal): Add overflow_type argument.
50 (tree_userdef_literal): Add overflow_type.
51 (USERDEF_LITERAL_OVERFLOW): New access macro.
52 * c-common.c (build_userdef_literal): Add overflow_type
53 argument.
54 * c-lex.c (c_lex_with_flags): Add overflow_type to
55 build_userdef_literal calls.
56 (interpret_integer, interpret_float): Add overflow_type argument.
57
58 2012-11-28 Richard Biener <rguenther@suse.de>
59
60 PR c/35634
61 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
62 here and use a type with proper overflow behavior for types that would
63 need to be promoted for the arithmetic.
64
65 2012-11-23 Jakub Jelinek <jakub@redhat.com>
66
67 PR sanitizer/55435
68 * c-common.c (handle_no_address_safety_analysis_attribute): New
69 function.
70 (c_common_attribute_table): Add no_address_safety_analysis.
71
72 2012-11-16 Simon Baldwin <simonb@google.com>
73
74 * c.opt: Add f[no-]canonical-system-headers.
75 * c-opts.c (c_common_handle_option): Handle
76 OPT_fcanonical_system_headers.
77
78 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
79
80 PR c++/54413
81 * c-opts.c (c_common_handle_option): Set new flags.
82 * c.opt: Describe new flags.
83
84 2012-11-09 Jason Merrill <jason@redhat.com>
85
86 * c.opt (Wabi-tag): New.
87
88 2012-11-09 Andi Kleen <ak@linux.intel.com>
89
90 PR 55139
91 * c-common.c (get_atomic_generic_size): Mask with
92 MEMMODEL_MASK
93
94 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
95
96 PR c/53063
97 * c.opt (Wformat): Make it Alias Wformat=1.
98 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
99 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
100 LangEnabledBy.
101 (Wformat=): RejectNegative. Use LangEnabledBy.
102 (Wnonnull): Use LangEnabledBy.
103 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
104 * c-format.c (set_Wformat): Delete.
105 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
106 (maybe_read_dollar_number): Likewise.
107 (avoid_dollar_number): Likewise.
108 (finish_dollar_format_checking): Likewise.
109 (check_format_info): Likewise.
110 (check_format_info_main): Likewise.
111 (check_format_types): Likewise.
112 (format_type_warning): Likewise.
113 * c-common.c (int): Likewise.
114 (check_function_sentinel): Likewise.
115 * c-common.h (warn_format,set_Wformat): Do not declare here.
116
117 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
118
119 PR c/53063
120 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
121 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
122 Use LangEnabledBy.
123 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
124 common.opt.
125 (Wvariadic-macros): Init(1).
126 * c-opts.c (c_common_handle_option): Do not handle them
127 explicitly.
128 (c_common_post_options): Likewise.
129 (sanitize_cpp_opts): warn_unused_macros is now
130 cpp_warn_unused_macros.
131 (push_command_line_include): Likewise.
132 * c-common.c (warn_unknown_pragmas): Do not define.
133 * c-common.h (warn_unknown_pragmas): Do not declare.
134
135 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
136
137 PR c/51294
138 * c-common.c (conversion_warning): Handle conditional expressions.
139
140 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
141
142 PR c++/54930
143 * c.opt (Wreturn_local_addr): Define new option.
144
145 2012-10-25 Jason Merrill <jason@redhat.com>
146
147 * c.opt (Wvirtual-move-assign): New.
148
149 * c.opt (Winherited-variadic-ctor): New.
150
151 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
152
153 PR c++/54427
154 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
155
156 2012-10-23 Joseph Myers <joseph@codesourcery.com>
157
158 * c-common.h (pch_cpp_save_state): Declare.
159 * c-target.def (c_preinclude): New hook.
160 * c-opts.c (done_preinclude): New.
161 (push_command_line_include): Handle default preincluded header.
162 (cb_file_change): Call pch_cpp_save_state when calling
163 push_command_line_include.
164 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
165 (pch_cpp_save_state): New.
166 (pch_init): Call pch_cpp_save_state conditionally, instead of
167 calling cpp_save_state.
168
169 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
170
171 PR c/53063
172 PR c/40989
173 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
174 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
175 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
176 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
177 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
178 * c-opts.c (c_common_handle_option): Remove explicit handling from
179 here.
180 (c_common_post_options): Likewise.
181
182 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
183
184 * c-ada-spec.c (LOCATION_COL): Delete.
185 (compare_location): New function.
186 (compare_node): Use it.
187 (compare_comment): Likewise.
188
189 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
190
191 PR c/53063
192 PR c/40989
193 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
194 * c-opts.c (c_common_handle_option): Do not set them here. Add
195 comment.
196 (c_common_post_options): Likewise.
197
198 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
199
200 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
201 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
202 Remove POINTER_TYPE handling, add large unsigned handling and use
203 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
204
205 2012-10-12 Jakub Jelinek <jakub@redhat.com>
206
207 PR c/54381
208 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
209 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
210 locs and array of 3 trees instead of just single loc and single
211 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
212 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
213 For *cmp* builtins that take two sources strings report warnings
214 about first and second source, not about destination and source.
215
216 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
217
218 PR c++/53055
219 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
220
221 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
222
223 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
224 declaring something coming from another file.
225
226 2012-10-10 Arnaud Charlet <charlet@adacore.com>
227
228 PR ada/54845
229 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
230
231 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
232
233 PR c++/54194
234 * c-common.c (warn_about_parentheses): Add location_t parameter;
235 use EXPR_LOC_OR_LOC.
236 * c-common.h: Update declaration.
237
238 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
239
240 PR c++/54427
241 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
242 more operations. Make error messages optional.
243 * c-common.h (enum stv_conv): Moved from c-typeck.c.
244 (scalar_to_vector): Declare.
245
246 2012-10-08 Jason Merrill <jason@redhat.com>
247
248 * c-common.c (c_common_reswords): Add thread_local.
249
250 2012-10-08 Dodji Seketeli <dodji@redhat.com>
251
252 PR c++/53528 C++11 attribute support
253 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
254 new functions.
255 * c-common.c (check_cxx_fundamental_alignment_constraints): New
256 static function.
257 (handle_aligned_attribute): In choose strictest alignment
258 among many. Use new check_cxx_fundamental_alignment_constraints.
259 (handle_transparent_union_attribute): In c++11 attribute syntax,
260 don't look through typedefs.
261
262 2012-10-04 Arnaud Charlet <charlet@adacore.com>
263
264 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
265 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
266 out of dumpfile.h.
267
268 2012-09-25 Dehao Chen <dehao@google.com>
269
270 PR middle-end/54645
271 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
272 map when read in the pch.
273
274 2012-09-18 Arnaud Charlet <charlet@adacore.com>
275
276 * c-ada-spec.c: Style fixes.
277
278 2012-09-18 Thomas Quinot <quinot@adacore.com>
279
280 * c.opt (-fada-spec-parent): Define new command line switch.
281 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
282 is specified, generate binding spec as a child of the specified unit.
283
284 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
285 Manuel López-Ibáñez <manu@gcc.gnu.org>
286
287 PR c++/53210
288 * c.opt ([Winit-self]): Enabled by -Wall in C++.
289
290 2012-08-23 Arnaud Charlet <charlet@adacore.com>
291
292 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
293 for pointers, and add missing Convention C pragma.
294 (print_ada_struct_decl): Add missing aliased keyword.
295 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
296
297 2012-08-17 Jakub Jelinek <jakub@redhat.com>
298
299 * c-common.c (sizeof_pointer_memaccess_warning): New function.
300 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
301 * c-opts.c (c_common_handle_option): Enable it for -Wall.
302 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
303 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
304
305 2012-08-10 Richard Guenther <rguenther@suse.de>
306
307 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
308
309 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
310
311 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
312 instead of separate pp_newline and pp_flush.
313 (print_c_tree): Likewise.
314
315 2012-07-26 Richard Henderson <rth@redhat.com>
316
317 * c-common.c (handle_hot_attribute): Allow labels.
318 (handle_cold_attribute): Likewise.
319
320 2012-07-20 Jakub Jelinek <jakub@redhat.com>
321
322 PR c++/28656
323 * c-common.c (check_function_nonnull): Handle multiple nonnull
324 attributes properly.
325
326 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
327
328 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
329 * c-ada-spec.c: Likewise.
330 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
331
332 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
333
334 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
335 Remove code conditional on it.
336
337 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
338
339 * c-gimplify.c: Do not include basic-block.h.
340 * c-common.c: Do not include linfuncs.h.
341
342 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
343
344 * c-common.h: Include tree.h.
345
346 2012-07-02 Jason Merrill <jason@redhat.com>
347
348 PR c++/53524
349 * c-common.c (get_priority): Call default_conversion.
350
351 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
352
353 * c-pch.c (c_common_write_pch): Remove unused variables.
354
355 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
356
357 * cppspec.c: Moved from gcc/ to here.
358
359 2012-06-27 Kai Tietz <ktietz@redhat.com>
360
361 PR preprocessor/37215
362 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
363
364 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
365
366 * c-common.h (c_common_print_pch_checksum): Remove.
367 * c-pch.c: Do not include output.h.
368 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
369 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
370 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
371 (struct c_pch_header): Remove.
372 (get_ident): Update gpch version.
373 (pch_init): Do not print executable_checksum to asm_out_file.
374 Do not fail if there is no asm_out_file to read back from. Set
375 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
376 (c_common_write_pch): Verify that nothing was written to asm_out_file
377 since pch_init was called. Do not write a c_pch_header, and do not
378 copy from asm_out_file to the PCH.
379 (c_common_read_pch): Do not read a c_pch_header, and do not restore
380 the content of asm_out_file from the PCH.
381 (c_common_print_pch_checksum): Remove.
382 * c-opts.c (c_common_init): Print out executable_checksum directly.
383
384 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
385
386 * c-target.def (objc_declare_unresolved_class_reference,
387 objc_declare_class_definition): Add new hooks.
388
389 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
390
391 * c-lex.c: Do not include output.h.
392 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
393 Remove uses of ASM_OUTPUT_IDENT.
394
395 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
396
397 PR c++/51033
398 * c-common.h (c_build_vec_perm_expr): Move decl here.
399 * c-common.c (c_build_vec_perm_expr): Move definition
400 here.
401
402 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
403
404 * c.opt (fconserve-space): Turn into a no-op.
405
406 2012-06-04 Sterling Augustine <saugustine@google.com>
407
408 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
409 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
410 both the start and end of the function.
411
412 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
413
414 * c-common.c: Do not include output.h.
415 * c-pragma.c: Likewise.
416
417 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
418
419 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
420 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
421 (lang_decl_name): Handle namespace decls.
422
423 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
424
425 * c-ada-spec.c: Do not include output.h.
426 * c-semantics.c: Likewise.
427
428 2012-05-29 Joseph Myers <joseph@codesourcery.com>
429
430 * c-common.c: Fix typo.
431
432 2012-05-29 Michael Matz <matz@suse.de>
433
434 * c-common.h (c_expand_decl): Remove prototype.
435
436 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
437
438 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
439 * c-opts.c (c_common_handle_option): Remove code handling
440 warn_missing_braces.
441
442 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
443
444 PR c++/25137
445 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
446 -Wmissing_braces.
447
448 2012-05-22 Dodji Seketeli <dodji@redhat.com>
449
450 PR c++/53322
451 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
452
453 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
454
455 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
456 * c-opts.c (c_common_handle_option): Do not handle explicitly
457 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
458
459 2012-05-16 Dodji Seketeli <dodji@redhat.com>
460
461 PR preprocessor/7263
462 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
463 to cpp_classify_number. For diagnostics, use the precise location
464 instead of the global input_location.
465
466 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
467
468 PR c++/11856
469 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
470
471 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
472
473 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
474
475 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
476
477 PR 53063
478 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
479 Wreorder): Use LangEnabledBy.
480 * c-opts.c (c_common_handle_option): Do not enable them
481 explicitly. Call lang-specific generated functions.
482 (c_common_post_options): Do not set them here.
483
484 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
485
486 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
487 Wmissing-field-initializers,Wmissing-parameter-type,
488 Wold-style-declaration,Woverride-init): Use EnabledBy.
489 * c-opts.c (c_common_post_options): Do not set here explicitly.
490
491 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
492
493 PR 53063
494 * c-opts.c (c_common_handle_option): Use handle_generated_option
495 to enable sub-options.
496
497 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
498
499 PR c++/53158
500 * c-common.c (warnings_for_convert_and_check): Use warning_at.
501
502 2012-05-10 Richard Guenther <rguenther@suse.de>
503
504 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
505 adjust commentary about TYPE_IS_SIZETYPE types.
506
507 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
508
509 PR c++/53261
510 * c-common.c (warn_logical_operator): Check that argument of
511 integer_zerop is not NULL.
512
513 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
514
515 PR c/43772
516 * c-common.c (warn_logical_operator): Do not warn if either side
517 is already true or false.
518
519 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
520
521 PR c/51712
522 * c-common.c (expr_original_type): New.
523 (shorten_compare): Do not warn for enumeration types.
524
525 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
526
527 * c.opt (fpermissive): Add Var(flag_permissive).
528
529 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
530
531 PR c++/51033
532 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
533 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
534
535 2012-04-30 Dodji Seketeli <dodji@redhat.com>
536
537 Add -Wvarargs option
538 * c.opt (Wvarargs): Define new option.
539
540 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
541
542 * c-common.c (check_function_arguments): Replace
543 Wmissing-format-attribute with Wsuggest-attribute=format.
544
545 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
546
547 * c.opt (Wsuggest-attribute=format): New. Alias of
548 Wmissing-format-attribute.
549 * c-format.c (decode_format_type): Replace
550 Wmissing-format-attribute with Wsuggest-attribute=format.
551 (check_function_format): Likewise.
552
553 2012-04-27 Ollie Wild <aaw@google.com>
554
555 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
556 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
557 * c.opt: Add Wliteral-suffix.
558
559 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
560
561 PR c/44774
562 * c.opt (Wpedantic): New.
563 (pedantic): Alias Wpedantic.
564 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
565 (c_common_post_options): Likewise.
566 (sanitize_cpp_opts): Likewise.
567 * c-lex.c (interpret_float): Likewise.
568 * c-format.c (check_format_types): Likewise.
569 * c-common.c (pointer_int_sum): Likewise.
570 (c_sizeof_or_alignof_type): Likewise.
571 (c_add_case_label): Likewise.
572 (c_do_switch_warnings): Likewise.
573 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
574
575 2012-04-15 Jason Merrill <jason@redhat.com>
576
577 PR c++/52818
578 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
579 (C_STD_NAME): Distinguish between C++98 and C++11.
580
581 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
582
583 PR target/52624
584 * c-common.h (uint16_type_node): Rename into...
585 (c_uint16_type_node): ...this.
586 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
587 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
588
589 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
590
591 * c-common.c (warn_if_unused_value): Move definition to here.
592 * c-common.h (warn_if_unused_value): Move declaration to here.
593
594 2012-03-23 William Bader <williambader@hotmail.com>
595
596 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
597
598 2012-03-20 Jason Merrill <jason@redhat.com>
599
600 * c-common.h (enum cxx_dialect): Add cxx1y.
601 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
602 test.
603 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
604 * c-opts.c (c_common_post_options): Likewise.
605 (set_std_cxx1y): New.
606 (c_common_handle_option): Call it.
607 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
608
609 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
610
611 PR c++/14710
612 * c.opt ([Wuseless-cast]): Add.
613
614 2012-03-16 Richard Guenther <rguenther@suse.de>
615
616 * c-pretty-print.c (pp_c_initializer_list): Adjust.
617
618 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
619
620 PR c++/44783
621 * c.opt (ftemplate-backtrace-limit) Add.
622
623 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
624
625 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
626 handling.
627 * c-pragma.c (handle_pragma_extern_prefix): Remove.
628 (init_pragma): Don't register extern_prefix.
629
630 2012-03-12 Richard Guenther <rguenther@suse.de>
631
632 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
633 (builtin_type_for_size): Likewise.
634
635 2012-02-13 Jakub Jelinek <jakub@redhat.com>
636
637 PR c++/52215
638 * c-common.c (sync_resolve_params): Don't decide whether to convert
639 or not based on TYPE_SIZE comparison, convert whenever arg_type
640 is unsigned INTEGER_TYPE.
641
642 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
643
644 PR c/52118
645 * c.opt ([Wunused-local-typedefs]): Fix description.
646
647 2012-01-24 Mike Stump <mikestump@comcast.net>
648
649 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
650 exactly.
651
652 2012-01-18 Richard Guenther <rguenther@suse.de>
653
654 * c-opts.c (c_common_post_options): Reset LTO flags if
655 we are about to generate a PCH.
656
657 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
658
659 PR c++/51777
660 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
661 use pp_unsigned_wide_integer.
662
663 2012-01-10 Richard Guenther <rguenther@suse.de>
664
665 PR middle-end/51806
666 * c-opts.c (c_common_handle_option): Move -Werror handling
667 to language independent code.
668
669 2012-01-05 Richard Guenther <rguenther@suse.de>
670
671 PR middle-end/51764
672 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
673 from common.opt.
674
675 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
676
677 PR c++/51316
678 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
679 of array types with an unknown bound.
680
681 2011-12-20 Joseph Myers <joseph@codesourcery.com>
682
683 * c-common.c (flag_isoc99): Update comment to refer to C11.
684 (flag_isoc1x): Change to flag_isoc11.
685 * c-common.h (flag_isoc99): Update comment to refer to C11.
686 (flag_isoc1x): Change to flag_isoc11.
687 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
688 C11.
689 * c-opts.c (set_std_c1x): Change to set_std_c11.
690 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
691 Call set_std_c11.
692 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
693 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
694 * c.opt (std=c1x): Change to std=c11. Document as non-draft
695 standard.
696 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
697 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
698 (std=gnu1x): Make alias of std=gnu11.
699
700 2011-12-19 Jason Merrill <jason@redhat.com>
701
702 PR c++/51228
703 * c-common.c (handle_transparent_union_attribute): Check the first
704 field if the type is complete.
705
706 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
707
708 PR libstdc++/51365
709 * c-common.c (RID_IS_FINAL): Add.
710 * c-common.h (RID_IS_FINAL): Add.
711
712 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
713
714 * c.opt (fgnu-runtime): Provide full description.
715 (fnext-runtime): Likewise.
716 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
717
718 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
719
720 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
721 predefines in one place. Add LOCK_FREE predefines.
722 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
723 new func.
724
725 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
726
727 PR c/51256
728 * c-common.c (get_atomic_generic_size): Check for various error
729 conditions
730 (resolve_overloaded_atomic_exchange,
731 resolve_overloaded_atomic_compare_exchange,
732 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
733 error_mark_node for error conditions.
734
735 2011-11-08 Richard Guenther <rguenther@suse.de>
736
737 PR middle-end/51010
738 c-family/
739
740 2011-11-07 Richard Henderson <rth@redhat.com>
741 Aldy Hernandez <aldyh@redhat.com>
742 Torvald Riegel <triegel@redhat.com>
743
744 Merged from transactional-memory.
745
746 * c-common.c (handle_tm_wrap_attribute,
747 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
748 (struct c_common_reswords): Added __transaction* keywords.
749 (struct c_common_attribute_table): Added transaction* and tm_regparm
750 attributes.
751 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
752 masks.
753 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
754 find_tm_attribute): Declare.
755
756 2011-11-07 Jason Merrill <jason@redhat.com>
757
758 PR c++/35688
759 * c-common.c, c-common.h: Revert yesterday's changes.
760
761 2011-11-06 Jason Merrill <jason@redhat.com>
762
763 PR c++/35688
764 * c-common.c (decl_has_visibility_attr): Split out from...
765 (c_determine_visibility): ...here.
766 * c-common.h: Declare it.
767
768 2011-11-06 Joseph Myers <joseph@codesourcery.com>
769
770 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
771 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
772 type.
773 (check_user_alignment): New. Split out of
774 handle_aligned_attribute. Disallow integer constants with
775 noninteger types. Conditionally allow zero.
776 (handle_aligned_attribute): Use check_user_alignment.
777 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
778
779 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
780 Richard Henderson <rth@redhat.com>
781
782 Merged from cxx-mem-model.
783
784 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
785 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
786 parameters that are the same type size.
787 (get_atomic_generic_size): New. Find size of generic
788 atomic function parameters and do typechecking.
789 (add_atomic_size_parameter): New. Insert size into parameter list.
790 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
791 either __atomic_exchange_n or external library call.
792 (resolve_overloaded_atomic_compare_exchange): Restructure
793 __atomic_compare_exchange to either _n variant or external library call.
794 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
795 __atomic_load_n or an external library call.
796 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
797 __atomic_store_n or an external library call.
798 (resolve_overloaded_builtin): Handle new __atomic builtins.
799
800 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
801
802 PR c++/50608
803 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
804 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
805 <INDIRECT_REF>: Return the argument.
806 <ARRAY_REF>: Remove special code for negative offset.
807 Call fold_build_pointer_plus instead of size_binop.
808 (fold_offsetof): Remove STOP_REF argument and adjust.
809 * c-common.h (fold_offsetof_1): Declare.
810 (fold_offsetof): Remove STOP_REF argument.
811
812 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
813
814 PR c++/50810
815 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
816 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
817 Wnarrowing for C++0x and C++98.
818 * c.opt ([Wnarrowing]): Update.
819
820 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
821
822 PR c++/44277
823 * c.opt: Add Wzero-as-null-pointer-constant.
824
825 2011-10-31 Jason Merrill <jason@redhat.com>
826
827 * c.opt (-fdeduce-init-list): Off by default.
828
829 PR c++/50920
830 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
831 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
832 and -Wc++11-compat.
833 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
834
835 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
836
837 PR c++/30066
838 * c.opt (fvisibility-inlines-hidden): Description change.
839
840 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
841
842 Implement C++11 user-defined literals.
843 * c-common.c (build_userdef_literal): New.
844 * c-common.def: New tree code.
845 * c-common.h (tree_userdef_literal): New tree struct and accessors.
846 * c-lex.c (interpret_float): Add suffix parm.
847 (c_lex_with_flags): Build literal tokens.
848
849 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
850
851 PR c++/50841
852 Revert:
853 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
854
855 PR c++/50810
856 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
857 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
858 Wnarrowing for C++0x and C++98.
859 * c.opt ([Wnarrowing]): Update.
860
861 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
862
863 PR c++/50810
864 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
865 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
866 Wnarrowing for C++0x and C++98.
867 * c.opt ([Wnarrowing]): Update.
868
869 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
870
871 PR c++/45385
872 * c-common.c (conversion_warning): Remove code looking for
873 artificial operands.
874
875 2011-10-18 Dodji Seketeli <dodji@redhat.com>
876
877 PR bootstrap/50760
878 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
879 !NO_IMPLICIT_EXTERN_C.
880
881 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
882
883 * c-common.c (c_common_reswords): Add __bases,
884 __direct_bases.
885 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
886
887 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
888
889 PR c++/50757
890 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
891
892 2011-10-15 Tom Tromey <tromey@redhat.com>
893 Dodji Seketeli <dodji@redhat.com>
894
895 * c.opt (fdebug-cpp): New option.
896 * c-opts.c (c_common_handle_option): Handle the option.
897 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
898 output stream in parameter. Factorized from ...
899 (maybe_print_line): ... this. Dump location debug information when
900 -fdebug-cpp is in effect.
901 (print_line_1): New static function. Takes an output stream in
902 parameter. Factorized from ...
903 (print_line): ... here. Dump location information when -fdebug-cpp
904 is in effect.
905 (scan_translation_unit): Dump location information when
906 -fdebug-cpp is in effect.
907
908 2011-10-15 Tom Tromey <tromey@redhat.com>
909 Dodji Seketeli <dodji@redhat.com>
910
911 * c.opt (ftrack-macro-expansion): New option. Handle it with and
912 without argument.
913 * c-opts.c (c_common_handle_option)<case
914 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
915 cases. Handle -ftrack-macro-expansion with and without argument.
916
917 2011-10-15 Tom Tromey <tromey@redhat.com>
918 Dodji Seketeli <dodji@redhat.com>
919
920 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
921 (print_line, cb_define, do_line_change): Adjust to avoid touching
922 the internals of struct line_map. Use the public API instead.
923 * c-pch.c (c_common_read_pch): Likewise.
924 * c-lex.c (fe_file_change): Likewise.
925
926 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
927
928 PR c++/17212
929 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
930
931 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
932
933 PR c++/33067
934 * c-pretty-print.c (pp_c_floating_constant): Output
935 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
936
937 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
938
939 * c-common.c (def_builtin_1): Delete old interface with two
940 parallel arrays to hold standard builtin declarations, and replace
941 it with a function based interface that can support creating
942 builtins on the fly in the future. Change all uses, and poison
943 the old names. Make sure 0 is not a legitimate builtin index.
944 * c-omp.c (c_finish_omp_barrier): Ditto.
945 (c_finish_omp_taskwait): Ditto.
946 (c_finish_omp_flush): Ditto.
947
948 2011-10-11 Tristan Gingold <gingold@adacore.com>
949
950 * c.opt: (fallow-parameterless-variadic-functions): New.
951
952 2011-09-08 Dodji Seketeli <dodji@redhat.com>
953
954 PR c++/33255 - Support -Wunused-local-typedefs warning
955 * c-common.h (struct c_language_function::local_typedefs): New
956 field.
957 (record_locally_defined_typedef, maybe_record_typedef_use)
958 (maybe_warn_unused_local_typedefs): Declare new functions.
959 * c-common.c (record_locally_defined_typedef)
960 (maybe_record_typedef_use)
961 (maybe_warn_unused_local_typedefs): Define new functions.
962 * c.opt: Declare new -Wunused-local-typedefs flag.
963
964 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
965
966 PR middle-end/50266
967 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
968 computations.
969
970 2011-09-05 Richard Guenther <rguenther@suse.de>
971
972 * c-common.c (complete_array_type): Use ssize_int (-1) instead
973 of integer_minus_one_node for empty array upper bounds.
974
975 2011-08-28 Dodji Seketeli <dodji@redhat.com>
976
977 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
978 it's the first time it's being called on this main TU.
979
980 2011-08-24 Richard Guenther <rguenther@suse.de>
981
982 PR c/49396
983 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
984
985 2011-08-22 Gabriel Charette <gchare@google.com>
986
987 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
988 defined in cpp_init_builtins and c_cpp_builtins.
989
990 2011-08-19 Joseph Myers <joseph@codesourcery.com>
991
992 * c-common.c (c_common_reswords): Add __builtin_complex.
993 * c-common.h (RID_BUILTIN_COMPLEX): New.
994
995 2011-08-18 Joseph Myers <joseph@codesourcery.com>
996
997 * c-common.c (c_common_reswords): Add _Noreturn.
998 (keyword_is_function_specifier): Handle RID_NORETURN.
999 * c-common.h (RID_NORETURN): New.
1000
1001 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1002
1003 * c-common.c (unsafe_conversion_p): New function. Check if it is
1004 unsafe to convert an expression to the type.
1005 (conversion_warning): Adjust, use unsafe_conversion_p.
1006 * c-common.h (unsafe_conversion_p): New function declaration.
1007
1008 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1009
1010 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1011 (c_finish_omp_taskyield): New prototype.
1012 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1013 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1014 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1015 or RHS1 have side-effects, evaluate those too in the right spot,
1016 if it is a decl and LHS is also a decl, error out if they
1017 aren't the same.
1018 (c_finish_omp_taskyield): New function.
1019 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1020 * c-pragma.c (omp_pragmas): Add taskyield.
1021 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1022 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1023 PRAGMA_OMP_CLAUSE_MERGEABLE.
1024
1025 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1026
1027 * c-common.h (set_underlying_type): Remove parm name from
1028 declaration.
1029
1030 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1031
1032 * c-pretty-print.h: Search c-common.h in c-family.
1033
1034 2011-07-22 Jason Merrill <jason@redhat.com>
1035
1036 PR c++/49793
1037 * c.opt (Wnarrowing): New.
1038
1039 PR c++/30112
1040 * c-common.h: Declare c_linkage_bindings.
1041 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1042
1043 PR c++/49813
1044 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1045 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1046 as flag_isoc99 for 'restrict'.
1047 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1048
1049 2011-07-21 Ian Lance Taylor <iant@google.com>
1050
1051 PR middle-end/49705
1052 * c-common.c (c_disable_warnings): New static function.
1053 (c_enable_warnings): New static function.
1054 (c_fully_fold_internal): Change local unused_p to bool. Call
1055 c_disable_warnings and c_enable_warnings rather than change
1056 c_inhibit_evaluation_warnings.
1057
1058 2011-07-20 Jason Merrill <jason@redhat.com>
1059
1060 PR c++/6709 (DR 743)
1061 PR c++/42603 (DR 950)
1062 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1063 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1064 (CPP_DECLTYPE): New.
1065 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1066
1067 2011-07-19 Richard Guenther <rguenther@suse.de>
1068
1069 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1070 * c-omp.c (c_finish_omp_for): Likewise.
1071
1072 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1073
1074 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1075 body on the next line.
1076
1077 2011-07-08 Jason Merrill <jason@redhat.com>
1078
1079 PR c++/45437
1080 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1081
1082 PR c++/49673
1083 * c-common.c (c_apply_type_quals_to_decl): Don't check
1084 TYPE_NEEDS_CONSTRUCTING.
1085
1086 2011-07-06 Richard Guenther <rguenther@suse.de>
1087
1088 * c-common.c (c_common_nodes_and_builtins):
1089 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1090
1091 2011-07-05 Richard Guenther <rguenther@suse.de>
1092
1093 * c-common.c (c_common_nodes_and_builtins): Build all common
1094 tree nodes first.
1095
1096 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1097
1098 * c-common.h (c_tree_chain_next): New static inline function.
1099
1100 * c-common.c (check_builtin_function_arguments): Handle
1101 BUILT_IN_ASSUME_ALIGNED.
1102
1103 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1104
1105 * c-common.c: Add sync_ or SYNC__ to builtin names.
1106 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1107
1108 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1109
1110 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1111 handler.
1112 (gen_pragma_handler): New union.
1113 (internal_pragma_handler): New type.
1114 (c_register_pragma_with_data)
1115 (c_register_pragma_with_expansion_and_data): New functions.
1116
1117 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1118 (c_register_pragma, c_register_pragma_with_expansion)
1119 (c_invoke_pragma_handler): Changed to work with
1120 internal_pragma_handler.
1121 (c_register_pragma_with_data)
1122 (c_register_pragma_with_expansion_and_data): New functions.
1123
1124 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1125
1126 * c-common.c: Include common/common-target.h.
1127 (handle_section_attribute): Use
1128 targetm_common.have_named_sections.
1129 * c-cppbuiltin.c: Include common/common-target.h.
1130 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1131
1132 2011-06-10 Richard Guenther <rguenther@suse.de>
1133
1134 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1135 to print a IDENTIFIER_NODE.
1136
1137 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1138 Joseph Myers <joseph@codesourcery.com>
1139
1140 * c.opt (fbuilding-libgcc): New option.
1141 * c-cppbuiltin.c (c_cpp_builtins): Define
1142 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1143
1144 2011-06-07 Jason Merrill <jason@redhat.com>
1145
1146 * c-common.c (max_tinst_depth): Lower default to 900.
1147
1148 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1149
1150 2011-06-07 Richard Guenther <rguenther@suse.de>
1151
1152 * c-common.c (c_common_nodes_and_builtins): Do not set
1153 size_type_node or call set_sizetype.
1154
1155 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1156
1157 PR debug/49130
1158 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1159 type when using pointer comparison to compare types.
1160
1161 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1162
1163 * c.opt: Add -Wdelete-non-virtual-dtor.
1164 * c-opts.c (c_common_handle_option): Include it in -Wall.
1165
1166 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1167
1168 PR bootstrap/49190
1169
1170 Revert:
1171 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1172
1173 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1174 not tree_common.
1175
1176 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1177
1178 PR c++/49165
1179 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1180 C++ don't call c_common_truthvalue_conversion on void type arms.
1181
1182 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1183
1184 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1185 (stmt_list_stack): Define.
1186 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1187 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1188
1189 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1190
1191 * c-common.c (warning_candidate_p): Check for BLOCKs.
1192
1193 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1194
1195 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1196 not tree_common.
1197
1198 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1199
1200 * c-common.c (def_fn_type): Remove extra va_end.
1201
1202 2011-05-23 Jason Merrill <jason@redhat.com>
1203
1204 PR c++/48106
1205 * c-common.c (c_common_get_narrower): New.
1206 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1207
1208 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1209
1210 * c-common.h (check_function_arguments): Tweak prototype of
1211 check_function_arguments.
1212 * c-common.c (check_function_arguments): Likewise. Adjust
1213 calls to check_function_nonnull, check_function_format, and
1214 check_function_sentinel.
1215 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1216 separate attributes and typelist arguments. Use
1217 FOREACH_FUNCTION_ARGS to iterate over argument types.
1218
1219 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1220
1221 * c-common.c (c_common_reswords): Reorder.
1222 * c-common.h (rid): Likewise.
1223
1224 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1225
1226 * c-common.c (def_fn_type): Don't call build_function_type, call
1227 build_function_type_array or build_varargs_function_type_array
1228 instead.
1229 (c_common_nodes_and_builtins): Likewise.
1230
1231 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1232
1233 * c-common.c (c_add_case_label): Omit the loc argument to
1234 build_case_label.
1235 * c-common.h (build_case_label): Remove.
1236 * c-semantics.c (build_case_label): Remove.
1237
1238 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1239
1240 * c-objc.h (objc_start_method_definition): Update prototype.
1241 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1242
1243 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1244
1245 * c-common.c (check_main_parameter_types): Reindent. Don't use
1246 TYPE_ARG_TYPES directly.
1247 (handle_nonnull_attribute): Likewise.
1248 (sync_resolve_params): Likewise.
1249 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1250 to check_format_string.
1251 (handle_format_attribute): Likewise.
1252 (check_format_string): Take a function type to examine instead of
1253 a type list. Use a function_arg_iterator to step through argument
1254 types.
1255
1256 2011-05-04 Richard Guenther <rguenther@suse.de>
1257
1258 * c-common.c (fix_string_type): Use size_int for index type bounds.
1259 (start_fname_decls): Do not pass NULL to build_int_cst.
1260 (c_init_attributes): Likewise.
1261 * c-lex.c (c_lex_with_flags): Likewise.
1262
1263 2011-04-27 Jason Merrill <jason@redhat.com>
1264
1265 * c-common.c (make_tree_vector_from_list): New.
1266 * c-common.h: Declare it.
1267
1268 2011-04-26 Richard Guenther <rguenther@suse.de>
1269
1270 PR preprocessor/48248
1271 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1272 for output size with -P.
1273
1274 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1275
1276 * c-common.c (struct c_common_resword): Add __underlying_type.
1277 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1278
1279 2011-04-20 Jim Meyering <meyering@redhat.com>
1280
1281 * c-format.c (init_dollar_format_checking): Remove useless
1282 if-before-free.
1283
1284 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1285
1286 * c-objc.h (objc_get_interface_ivars): Removed.
1287 (objc_detect_field_duplicates): New.
1288 * stub-objc.c: Likewise.
1289
1290 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1291
1292 * stub-objc.c (objc_declare_protocols): Renamed to
1293 objc_declare_protocol.
1294 * c-objc.h: Likewise.
1295
1296 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1297
1298 * stub-objc.c (objc_declare_class): Updated argument name.
1299
1300 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1301
1302 * c-common.h (c_common_init_ts): Declare.
1303 * c-common.c (c_common_init_ts): Define.
1304
1305 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1306
1307 * c-objc.h (objc_build_message_expr): Updated prototype.
1308 * stub-objc.c (objc_build_message_expr): Likewise.
1309
1310 2011-04-12 Martin Jambor <mjambor@suse.cz>
1311
1312 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1313 of cgraph_node.
1314
1315 2011-04-11 Richard Guenther <rguenther@suse.de>
1316
1317 * c-common.c (complete_array_type): Build a range type of
1318 proper type.
1319
1320 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1321
1322 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1323 (handle_type_generic_attribute): Likewise.
1324
1325 2011-04-07 Jason Merrill <jason@redhat.com>
1326
1327 PR c++/48450
1328 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1329 conversion from C++0x scoped enum.
1330
1331 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1332
1333 * c-target-def.h: New file.
1334 * c-target.def: New file.
1335 * c-target.h: New file.
1336 * c-common.c (targetcm): Don't define here.
1337 * c-common.h (default_handle_c_option): Declare.
1338 * c-format.c: Include c-target.h instead of target.h.
1339 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1340 include tm.h.
1341 (default_handle_c_option): Move from targhooks.c.
1342
1343 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1344
1345 PR preprocessor/48248
1346 * c-ppoutput.c (print): Add src_file field.
1347 (init_pp_output): Initialize it.
1348 (maybe_print_line): Don't optimize by adding up to 8 newlines
1349 if map->to_file and print.src_file are different file.
1350 (print_line): Update print.src_file.
1351
1352 2011-03-25 Kai Tietz <ktietz@redhat.com>
1353
1354 * c-ada-spec.c (compare_comment): Use filename_cmp
1355 instead of strcmp for filename.
1356
1357 2011-03-25 Jeff Law <law@redhat.com>
1358
1359 * c-family/c-common.c (def_fn_type): Add missing va_end.
1360
1361 2011-03-25 Jason Merrill <jason@redhat.com>
1362
1363 * c.opt: Add -std=c++03.
1364
1365 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1366
1367 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1368
1369 2011-03-17 Kai Tietz
1370
1371 PR target/12171
1372 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1373 Display allowed attributes for function pointer types.
1374 (pp_c_attributes_display): New function to display
1375 attributes having affects_type_identity flag set to true.
1376 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1377
1378 * c-common.c (c_common_attribute_table):
1379 Add new element.
1380 (c_common_format_attribute_table): Likewise.
1381
1382 2011-03-18 Jason Merrill <jason@redhat.com>
1383
1384 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1385 * c-common.h: Don't declare it here.
1386 * c-common.c: Or define it here.
1387 * c-opts.c (c_common_handle_option): Or set it here.
1388
1389 PR c++/35315
1390 * c-common.c (handle_transparent_union_attribute): Don't
1391 make a duplicate type in C++.
1392
1393 2011-03-15 Jason Merrill <jason@redhat.com>
1394
1395 * c-common.c (max_constexpr_depth): New.
1396 * c-common.h: Declare it.
1397 * c-opts.c (c_common_handle_option): Set it.
1398 * c.opt (fconstexpr-depth): New option.
1399
1400 2011-03-11 Jason Merrill <jason@redhat.com>
1401
1402 * c-common.c (attribute_takes_identifier_p): Add missing const.
1403
1404 PR c++/46803
1405 * c-common.c (attribute_takes_identifier_p): Assume that an
1406 unknown attribute takes an identifier.
1407
1408 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1409
1410 PR c/47786
1411 * c-common.c (c_type_hash): Call list_length instead of iterating
1412 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1413
1414 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1415
1416 PR c/47809
1417 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1418
1419 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1420
1421 * c.opt (fobjc-abi-version=) New.
1422 (fobjc-nilcheck): New.
1423
1424 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1425
1426 PR c++/46890
1427 * c-common.h (keyword_is_decl_specifier): Declare.
1428 * c-common.c (keyword_is_decl_specifier): Define.
1429 (keyword_is_function_specifier): New function.
1430
1431 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1432
1433 PR c/47473
1434 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1435 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1436 REAL_TYPE.
1437
1438 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1439
1440 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1441
1442 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1443
1444 PR pch/47430
1445 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1446 after init_c_lex if pch_file is set.
1447
1448 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1449
1450 PR c++/43601
1451 * c.opt (-fkeep-inline-dllexport): New switch.
1452
1453 2011-01-12 Richard Guenther <rguenther@suse.de>
1454
1455 PR middle-end/32511
1456 * c-common.c (handle_weak_attribute): Warn instead of error
1457 on declaring an inline function weak.
1458
1459 2011-01-05 Tom Tromey <tromey@redhat.com>
1460
1461 * c-common.h (lvalue_error): Update.
1462 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1463 not error.
1464
1465 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1466
1467 PR objc/47075
1468 * c-objc.h (objc_finish_message_expr): Added argument to
1469 prototype.
1470
1471 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1472
1473 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1474 Use prototype_p.
1475
1476 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1477
1478 * c-objc.h (objc_maybe_warn_exceptions): New.
1479 * stub-objc.c (objc_maybe_warn_exceptions): New.
1480
1481 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1482
1483 * c-common.h (readonly_error): Declare.
1484 * c-common.c (readonly_error): Define.
1485
1486 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1487
1488 * c-common.h (invalid_indirection_error): Declare.
1489 * c-common.c (invalid_indirection_error): Define.
1490
1491 2010-12-03 Richard Guenther <rguenther@suse.de>
1492
1493 PR c/46745
1494 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1495 (pp_c_unary_expression): Likewise.
1496 (pp_c_expression): Likewise.
1497
1498 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1499
1500 * c-common.h (objc_finish_function): New.
1501 (objc_non_volatilized_type): Removed.
1502 (objc_type_quals_match): Removed.
1503 * stub-objc.c (objc_finish_function): New.
1504 (objc_non_volatilized_type): Removed.
1505 (objc_type_quals_match): Removed.
1506
1507 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1508
1509 * c-common.h (parse_optimize_options): Declare.
1510 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1511 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1512
1513 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1514
1515 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1516 GET_ENVIRONMENT.
1517 * c-pch.c (O_BINARY): Don't define here.
1518 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1519
1520 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1521
1522 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1523 targetm.except_unwind_info.
1524
1525 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1526
1527 * c-opts.c (c_common_handle_option): Pass location to
1528 set_struct_debug_option.
1529
1530 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1531
1532 * c-common.c (visibility_options): Move from ../opts.c.
1533 * c-common.h (struct visibility_flags, visibility_options):
1534 Declare here.
1535 * c-opts.c (finish_options): Rename to c_finish_options.
1536 (c_common_init): Update call to finish_options.
1537
1538 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1539
1540 PR objc/34033
1541 * c-lex.c (lex_string): Check that each string in an Objective-C
1542 string concat sequence starts with either one or zero '@', and
1543 that there are no spurious '@' signs at the end.
1544
1545 2010-11-20 Joseph Myers <joseph@codesourcery.com>
1546
1547 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1548 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1549 HANDLE_PRAGMA_VISIBILITY.
1550 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1551 HANDLE_PRAGMA_VISIBILITY): Don't define.
1552 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1553
1554 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1555
1556 PR c++/16189
1557 PR c++/36888
1558 PR c++/45331
1559 * c-common.h (keyword_begins_type_specifier): Declare.
1560 (keyword_is_storage_class_specifier): Declare.
1561 (keyword_is_type_qualifier): Declare.
1562 * c-common.c (keyword_begins_type_specifier): New function.
1563 (keyword_is_storage_class_specifier): New function.
1564 (keyword_is_type_qualifier): Declare.
1565
1566 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1567
1568 PR c/46547
1569 * c-common.c (in_late_binary_op): Define.
1570 (c_common_truthvalue_conversion): Check in_late_binary_op before
1571 calling c_save_expr.
1572 * c-common.h (in_late_binary_op): Declare.
1573
1574 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1575
1576 * c-opts.c (c_common_handle_option): Update calls to
1577 set_struct_debug_option.
1578
1579 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1580
1581 * c-common.h (objc_declare_protocols): Added additional argument.
1582 * stub-objc.c (objc_declare_protocol): Same change.
1583
1584 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1585
1586 PR c/33193
1587 * c-common.h (build_real_imag_expr): Declare.
1588 * c-semantics.c (build_real_imag_expr): Define.
1589
1590 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1591
1592 * c-opts.c (c_common_parse_file): Take no arguments.
1593 * c-common.h (c_common_parse_file): Update prototype.
1594
1595 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1596
1597 PR c++/46401
1598 * c-common.c (warning_candidate_p): Don't track non-const calls
1599 or STRING_CSTs.
1600
1601 2010-11-15 Ian Lance Taylor <iant@google.com>
1602
1603 * c-lex.c (init_c_lex): Set macro debug callbacks if
1604 flag_dump_go_spec is set.
1605
1606 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1607
1608 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1609 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1610
1611 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1612
1613 PR preprocessor/45038
1614 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1615 dialects.
1616
1617 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1618
1619 * c-common.h (c_family_lang_mask): Declare.
1620 * c-opts.c (c_family_lang_mask): Make extern.
1621 * c-pragma.c (handle_pragma_diagnostic): Use
1622 control_warning_option.
1623
1624 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1625
1626 * c-common.c (parse_optimize_options): Update call to
1627 decode_options.
1628 * c-common.h (c_common_handle_option): Update prototype.
1629 * c-opts.c (c_common_handle_option): Take location_t parameter and
1630 pass it to other functions.
1631
1632 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1633
1634 * c-opts.c (warning_as_error_callback): Remove.
1635 (c_common_initialize_diagnostics): Don't call
1636 register_warning_as_error_callback.
1637 (c_common_handle_option): Handle -Werror=normalized= here.
1638
1639 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1640
1641 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1642 in diagnostic.
1643 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1644 letter.
1645 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1646 Remove trailing '.' from diagnostics.
1647 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1648
1649 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1650
1651 * c-common.c (parse_optimize_options): Pass global_dc to
1652 decode_options.
1653 * c-opts.c (c_common_handle_option): Pass &global_options to
1654 set_Wstrict_aliasing.
1655 * c.opt (v): Don't mark Common or document here.
1656
1657 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1658
1659 PR target/44981
1660 * c-format.c (format_type): New type gcc_objc_string_format_type.
1661 (valid_stringptr_type_p): New.
1662 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1663 (check_format_string): Pass expected type, use
1664 valid_stringptr_type_p (), check that the format string types are
1665 consistent with the format specification.
1666 (decode_format_attr): Warn if NSString is used outside objective-c.
1667 (format_types_orig): Add NSString.
1668 (format_name): New.
1669 (format_flags): New.
1670 (check_format_arg): Handle format strings requiring an external parser.
1671 first_target_format_type: New variable.
1672 (handle_format_attribute): Set up first_target_format_type, pass the
1673 expected format arg string type to check_format_string().
1674 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1675 * stub-objc.c (objc_string_ref_type_p): New.
1676 (objc_check_format_arg): New.
1677
1678 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1679
1680 Fixed using the Objective-C 2.0 dot-syntax with class names.
1681 * c-common.h (objc_build_class_component_ref): New.
1682 * stub-objc.c (objc_build_class_component_ref): New.
1683
1684 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1685
1686 * c.opt (Wproperty-assign-default): New option.
1687
1688 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1689
1690 Implemented -fobjc-std=objc1 flag.
1691 * c.opt (fobjc-std=objc1): New option.
1692
1693 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1694
1695 Implemented format and noreturn attributes for Objective-C methods.
1696 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1697 attribute for Objective-C methods.
1698
1699 2010-10-31 Jason Merrill <jason@redhat.com>
1700
1701 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1702 EXPR_LOC_OR_HERE.
1703
1704 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1705
1706 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1707 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1708 (objc_add_property_declaration): Removed arguments for copies and
1709 ivar.
1710 (objc_build_getter_call): Renamed to
1711 objc_maybe_build_component_ref.
1712 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1713 (objc_is_property_ref): New.
1714 * c-common.c (c_common_reswords): Removed copies and ivar.
1715 * stub-objc.c (objc_add_property_declaration): Removed arguments
1716 for copies and ivar.
1717 (objc_build_getter_call): Renamed to
1718 objc_maybe_build_component_ref.
1719 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1720 (objc_is_property_ref): New.
1721
1722 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1723 Matthew Gingell <gingell@adacore.com>
1724
1725 * c-ada-spec.c (separate_class_package): New function.
1726 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1727 name of their enclosing package.
1728 (print_ada_declaration): Use separate_class_package.
1729
1730 2010-10-27 Jason Merrill <jason@redhat.com>
1731
1732 * c-common.c (c_common_reswords): Add __is_literal_type.
1733 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1734
1735 * c-common.c (check_case_value): Remove special C++ code.
1736
1737 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1738
1739 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1740 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1741 and RID_LAST_PATTR.
1742 (objc_add_property_declaration): Added additional arguments.
1743 (objc_property_attribute_kind): Removed.
1744 (objc_set_property_attr): Removed.
1745 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1746 copy and nonatomic.
1747 * stub-objc.c (objc_add_property_declaration): Added additional
1748 arguments.
1749 (objc_set_property_attr): Removed.
1750
1751 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1752
1753 * c-common.h (objc_add_property_variable): Renamed to
1754 objc_add_property_declaration. Added location argument.
1755 * stub-objc.c (objc_add_property_variable): Same change.
1756
1757 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1758
1759 * c-common.h (objc_maybe_printable_name): New.
1760 * stub-objc.c (objc_maybe_printable_name): New.
1761
1762 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1763 Andrew Pinski <pinskia@gmail.com>
1764
1765 * c-common.h (c_common_mark_addressable_vec): Declare.
1766 * c-common.c (c_common_mark_addressable_vec): New function.
1767
1768 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1769
1770 * c-common.h (objc_set_method_type): Removed.
1771 (objc_add_method_declaration): Added boolean argument.
1772 (objc_start_method_definition): Same change.
1773 (objc_build_method_signature): Same change.
1774 * stub-objc.c (objc_set_method_type): Removed.
1775 (objc_add_method_declaration): Added boolean argument.
1776 (objc_start_method_definition): Same change.
1777 (objc_build_method_signature): Same change.
1778
1779 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1780
1781 * c-common.h (finish_file): Removed.
1782 (objc_write_global_declarations): New.
1783 * c-opts.c (c_common_parse_file): Do not call finish_file.
1784 * stub-objc.c (objc_write_global_declarations): New.
1785
1786 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1787
1788 Implemented parsing @synthesize and @dynamic for
1789 Objective-C/Objective-C++.
1790 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1791 (objc_add_synthesize_declaration): New.
1792 (objc_add_dynamic_declaration): New.
1793 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1794 * stub-objc.c (objc_add_synthesize_declaration): New.
1795 (objc_add_dynamic_declaration): New.
1796
1797 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1798
1799 PR target/46041
1800 * c-cppbuiltin.c (mode_has_fma): Move function here from
1801 builtins.c. Don't use the fma optab, instead just use the
1802 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1803 using -save-temps.
1804
1805 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1806
1807 Merge from 'apple/trunk' branch on FSF servers.
1808
1809 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1810
1811 Radar 4330422
1812 * c-common.h (objc_non_volatilized_type): New declaration
1813 * stub-objc.c (objc_non_volatilized_type): New stub.
1814
1815 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1816
1817 Merge from 'apple/trunk' branch on FSF servers.
1818
1819 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1820
1821 Radar 4133425
1822 * c-common.h (objc_diagnose_private_ivar): New decl.
1823 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1824
1825 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1826
1827 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1828 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1829 (objc_ivar_visibility_kind): New enum.
1830 (objc_set_visibility): Adjust prototype to use visibility enum.
1831 * stub-objc.c (objc_set_visibility): Adjust stub to use
1832 visibility enum.
1833
1834 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1835
1836 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1837 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1838 has the appropriate fma builtins.
1839 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1840
1841 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1842
1843 merge from FSF apple 'trunk' branch.
1844 2006 Fariborz Jahanian <fjahanian@apple.com>
1845
1846 Radars 4436866, 4505126, 4506903, 4517826
1847 * c-common.c (c_common_resword): Define @property and its attributes.
1848 * c-common.h: Define property attribute enum entries.
1849 (OBJC_IS_PATTR_KEYWORD): New.
1850 (objc_property_attribute_kind): New enum.
1851 Declare objc_set_property_attr (), objc_add_property_variable (),
1852 objc_build_getter_call () and objc_build_setter_call ().
1853 * stub-objc.c (objc_set_property_attr): New stub.
1854 (objc_add_property_variable): Likewise.
1855 (objc_build_getter_call): Likewise.
1856 (objc_build_setter_call) Likewise.
1857
1858 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1859
1860 merge from FSF apple 'trunk' branch.
1861 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1862
1863 Radar 3803157 (method attributes)
1864 * c-common.c (handle_deprecated_attribute): Recognize
1865 objc methods as valid declarations.
1866 * c-common.h: Declare objc_method_decl ().
1867 * stub-objc.c (objc_method_decl): New stub.
1868
1869 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1870
1871 * c-common.c (parse_optimize_options): Call
1872 decode_cmdline_options_to_array_default_mask before
1873 decode_options. Update arguments to decode_options.
1874 * c-common.h (c_common_init_options_struct): Declare.
1875 * c-opts.c (c_common_init_options_struct): New. Split out from
1876 c_common_init_options.
1877
1878 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1879
1880 Implemented fast enumeration for Objective-C.
1881 * c-common.h (objc_finish_foreach_loop): New.
1882 * stub-objc.c (objc_finish_foreach_loop): New.
1883
1884 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1885
1886 * c-common.h (struct diagnostic_context): Don't declare here.
1887 (c_common_initialize_diagnostics): Declare using
1888 diagnostic_context typedef.
1889 * c-opts.c (c_common_handle_option): Pass global_dc to
1890 handle_generated_option.
1891
1892 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1893
1894 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1895 handle_generated_option.
1896
1897 2010-10-03 Ian Lance Taylor <iant@google.com>
1898
1899 * c.opt (-fplan9-extensions): New option.
1900
1901 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1902
1903 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1904 Remove.
1905 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1906 of duplicating code.
1907
1908 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1909
1910 * c-common.c: Add two new entries for @optional
1911 and @required keywords.
1912
1913 merge from FSF 'apple/trunk' branch.
1914 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1915
1916 Radar 4386773
1917 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1918 objective-c keywords.
1919 (objc_set_method_opt): New declaration.
1920 * stub-objc.c (objc_set_method_opt): New stub.
1921
1922 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1923
1924 * c-common.c (handle_optimize_attribute): Pass &global_options to
1925 cl_optimization_save and cl_optimization_restore.
1926 * c-opts.c (c_common_handle_option): Pass &global_options to
1927 handle_generated_option.
1928 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1929 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1930 &global_options to cl_optimization_restore.
1931
1932 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1933
1934 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1935 Objective-C/Objective-C++ keywords.
1936
1937 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1938
1939 Merge from 'apple/trunk' branch on FSF servers.
1940
1941 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1942
1943 Radar 4281748
1944 * c-common.h (objc_check_global_decl): New declaration.
1945 * stub-objc.c (objc_check_global_decl): New stub.
1946
1947 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1948
1949 * c.opt: Don't use VarExists.
1950
1951 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1952
1953 * c-common.c (c_cpp_error): Update names of diagnostic_context
1954 members.
1955 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1956 cl_optimization members.
1957 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1958 sanitize_cpp_opts, finish_options): Update names of cpp_options
1959 members.
1960
1961 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1962
1963 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1964 (objc_is_reserved_word): Removed.
1965 * c-common.c: Updated comments.
1966 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1967 objc_is_reserved_word.
1968 * stub-objc.c (objc_is_reserved_word): Removed.
1969
1970 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1971
1972 * c-common.h (objc_add_method_declaration): Adjust prototype to
1973 include attributes.
1974 (objc_start_method_definition): Likewise.
1975 (objc_build_keyword_decl): Likewise.
1976 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1977 (objc_start_method_definition): Likewise.
1978 (objc_build_keyword_decl): Likewise.
1979
1980 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1981
1982 * c-common.h (objc_start_class_interface): Adjust prototype.
1983 (objc_start_category_interface): Likewise.
1984 (objc_start_protocol): Likewise.
1985 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1986 (objc_start_class_interface): Likewise.
1987 (objc_start_category_interface): Likewise.
1988
1989 2010-09-27 Ian Lance Taylor <iant@google.com>
1990
1991 * c-common.c (c_common_attribute_table): Add no_split_stack.
1992 (handle_no_split_stack_attribute): New static function.
1993
1994 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1995
1996 Merge from 'apple/trunk' branch on FSF servers.
1997
1998 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1999
2000 Radar 4229905
2001 * c-common.h (objc_have_common_type): New declaration.
2002 * stub-objc.c (objc_have_common_type): New stub.
2003
2004 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2005
2006 Radar 4154928
2007 * c-common.h (objc_common_type): New prototype.
2008 * stub-objc.c (objc_common_type): New stub.
2009
2010 2010-09-24 Jan Hubicka <jh@suse.cz>
2011
2012 * c-common.c (handle_leaf_attribute): New function.
2013 (struct attribute_spec c_common_att): Add leaf.
2014
2015 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2016
2017 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2018 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2019 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2020 -include-barrier, -include-directory, -include-directory=,
2021 -include-directory-after, -include-directory-after=,
2022 -include-prefix, -include-prefix=, -include-with-prefix,
2023 -include-with-prefix=, -include-with-prefix-after,
2024 -include-with-prefix-after=, -include-with-prefix-before,
2025 -include-with-prefix-before=, -no-integrated-cpp,
2026 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2027 -output=, -pedantic, -pedantic-errors, -preprocess,
2028 -print-missing-file-dependencies, -trace-includes, -traditional,
2029 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2030 -user-dependencies, -verbose, -write-dependencies,
2031 -write-user-dependencies, no-integrated-cpp, traditional): New.
2032
2033 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2034
2035 PR objc/23710
2036 * c-common.h (objc_start_method_definition): Return bool instead
2037 of void.
2038 * stub-objc.c (objc_start_method_definition): Return bool instead
2039 of void.
2040
2041 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2042
2043 PR objc/25965
2044 * c-common.h (objc_get_interface_ivars): New declaration.
2045 * stub-objc.c (objc_get_interface_ivars): New stub.
2046
2047 2010-09-15 Ian Lance Taylor <iant@google.com>
2048
2049 * c-common.c (parse_optimize_options): Do not capitalize warning
2050 messages. Remove period at end of warning message.
2051
2052 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2053
2054 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2055 (handle_alias_attribute): ... here.
2056 (handle_ifunc_attribute): New.
2057
2058 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2059
2060 * c-common.h (do_warn_double_promotion): Declare.
2061 * c-common.c (do_warn_double_promotion): Define.
2062
2063 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2064
2065 * c.opt (Wdouble-promotion): New.
2066
2067 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2068
2069 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2070 fvtable-thunks, fxref): Mark no longer supported in help text.
2071
2072 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2073
2074 * c.opt (Wimport, fall-virtual, falt-external-templates,
2075 fdefault-inline, fenum-int-equiv, fexternal-templates,
2076 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2077 fname-mangling-version-, fnew-abi, fnonnull-objects,
2078 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2079 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2080 applicable.
2081 (fhandle-exceptions): Mark with Alias and Warn.
2082 * c-opts.c (c_common_handle_option): Don't handle options marked
2083 as ignored.
2084
2085 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2086
2087 * c.opt (Wcomments, Werror-implicit-function-declaration,
2088 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2089 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2090 aliases.
2091 * c-common.c (option_codes): Use OPT_Wcomment instead of
2092 OPT_Wcomments.
2093 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2094 Don't handle options marked as aliases.
2095
2096 2010-08-25 Richard Guenther <rguenther@suse.de>
2097
2098 * c-common.c (c_common_get_alias_set): Remove special
2099 handling for pointers.
2100
2101 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2102
2103 * c-common.c: Use FOR_EACH_VEC_ELT.
2104 * c-gimplify.c: Likewise.
2105 * c-pragma.c: Likewise.
2106
2107 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2108
2109 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2110 RejectDriver.
2111 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2112 RejectDriver.
2113 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2114 instead of OPT_MDX and OPT_MMDX.
2115
2116 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2117
2118 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2119
2120 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2121
2122 * c.opt (MD, MMD): Change to MDX and MMDX.
2123 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2124
2125 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2126
2127 * c-opts.c (c_common_handle_option): Call handle_generated_option
2128 instead of handle_option.
2129
2130 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2131
2132 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2133 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2134
2135 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2136
2137 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2138 (pending_redefine_extname): Change type to a VEC.
2139 (add_to_renaming_pragma_list): Update for new type of
2140 pending_redefine_extname.
2141 (maybe_apply_renaming_pragma): Likewise.
2142
2143 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2144
2145 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2146 visited.
2147 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2148 decide whether a type has already been declared/seen.
2149 Do not go to the original type.
2150 (dump_nested_types): New parameter forward.
2151 Generate forward declaration if needed and mark type as visited.
2152 (print_ada_declaration): Call dump_nested_types if not already done.
2153 Mark types as visited.
2154
2155 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2156
2157 * c.opt (-print-pch-checksum): Remove option.
2158 * c-opts.c (c_common_handle_option): Don't handle
2159 OPT_print_pch_checksum.
2160
2161 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2162
2163 * c-common.h (c_common_handle_option): Update prototype and return
2164 value type.
2165 * c-opts.c (c_common_handle_option): Update prototype and return
2166 value type. Update calls to handle_option and
2167 enable_warning_as_error.
2168
2169 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2170
2171 PR c/45079
2172 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2173
2174 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2175
2176 * c-common.h (c_common_missing_argument): Remove.
2177 * c-opts.c (c_common_missing_argument): Remove.
2178 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2179 idirafter, imacros, include, isysroot, isystem, iquote): Add
2180 MissingArgError.
2181 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2182
2183 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2184
2185 * c-common.h (c_common_option_lang_mask,
2186 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2187 New.
2188 (c_common_init_options): Update prototype.
2189 * c-opts.c (c_common_option_lang_mask): New.
2190 (c_common_initialize_diagnostics): Split out of
2191 c_common_init_options.
2192 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2193 New.
2194 (c_common_init_options): Update prototype. Use decoded options in
2195 search for -lang-asm.
2196
2197 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2198
2199 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2200 * c-format.c: Likewise.
2201
2202 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2203
2204 * c-common.h: Include diagnostic-core.h. Error if already
2205 included.
2206 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2207
2208 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2209
2210 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2211 Do not include expr.h
2212 (vector_mode_valid_p): Move here.
2213
2214 2010-06-21 DJ Delorie <dj@redhat.com>
2215
2216 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2217 allow these pragmas anywhere.
2218
2219 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2220
2221 PR bootstrap/44509
2222 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2223 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2224 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2225 ggc_strdup instead of xstrdup.
2226
2227 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2228
2229 * c-cppbuiltin.c: Include cpp-id-data.h.
2230 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2231 (lazy_hex_fp_value): New function.
2232 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2233
2234 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2235
2236 * c-gimplify.c: Do not include tree-flow.h
2237
2238 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2239
2240 PR other/44034
2241 * c-common.c: Rename targetm member:
2242 targetm.enum_va_list -> targetm.enum_va_list_p
2243
2244 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2245
2246 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2247
2248 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2249
2250 * c-cppbuiltin.c: Do not include except.h.
2251
2252 2010-06-24 Andi Kleen <ak@linux.intel.com>
2253
2254 * c-common.c (warn_for_omitted_condop): New.
2255 * c-common.h (warn_for_omitted_condop): Add prototype.
2256
2257 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2258
2259 * c.opt (lang-objc): Remove.
2260 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2261
2262 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2263
2264 * c-opts.c: Include "tm_p.h".
2265
2266 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2267
2268 * c-common.c (parse_optimize_options): Update call to
2269 decode_options.
2270
2271 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2272
2273 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2274 new type of types_used_by_cur_var_decl.
2275
2276 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2277
2278 PR bootstrap/44512
2279 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2280 for C++ standard compliance.
2281
2282 2010-06-16 Jason Merrill <jason@redhat.com>
2283
2284 * c.opt: Add -Wnoexcept.
2285
2286 2010-06-16 Richard Guenther <rguenther@suse.de>
2287
2288 PR c/44555
2289 * c-common.c (c_common_truthvalue_conversion): Remove
2290 premature and wrong optimization concering ADDR_EXPRs.
2291
2292 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2293
2294 * c-ada-spec.c (dump_sloc): Remove column info.
2295 (is_simple_enum): New function.
2296 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2297 enum types when relevant.
2298
2299 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2300
2301 * c-common.c (conversion_warning): Warn at expression
2302 location.
2303
2304 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2305
2306 * c-opts.c (c_common_handle_option): Don't handle
2307 OPT_fshow_column.
2308
2309 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2310
2311 * c-pragma.c (push_alignment): Use typed GC allocation.
2312 (handle_pragma_push_options): Likewise.
2313
2314 * c-common.c (parse_optimize_options): Likewise.
2315
2316 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2317 option.
2318
2319 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2320
2321 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2322 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2323 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2324 flag_signed_bitfields, warn_strict_null_sentinel,
2325 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2326 flag_gen_declaration, flag_no_gnu_keywords,
2327 flag_implement_inlines, flag_implicit_templates,
2328 flag_implicit_inline_templates, flag_optional_diags,
2329 flag_elide_constructors, flag_default_inline, flag_rtti,
2330 flag_conserve_space, flag_access_control, flag_check_new,
2331 flag_new_for_scope, flag_weak, flag_working_directory,
2332 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2333 flag_enforce_eh_specs, flag_threadsafe_statics,
2334 flag_pretty_templates): Remove.
2335 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2336 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2337 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2338 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2339 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2340 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2341 flag_no_gnu_keywords, flag_implement_inlines,
2342 flag_implicit_templates, flag_implicit_inline_templates,
2343 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2344 flag_rtti, flag_conserve_space, flag_access_control,
2345 flag_check_new, flag_new_for_scope, flag_weak,
2346 flag_working_directory, flag_use_cxa_atexit,
2347 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2348 flag_threadsafe_statics, flag_pretty_templates,
2349 warn_strict_null_sentinel): Remove.
2350 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2351 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2352 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2353 fimplicit-inline-templates, fimplicit-templates,
2354 flax-vector-conversions, fms-extensions, fnil-receivers,
2355 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2356 frtti, fshort-double, fshort-enums, fshort-wchar,
2357 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2358 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2359 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2360 gen-decls, undef): Use Var.
2361 (fdefault-inline, foptional-diags): Document as doing nothing.
2362 * c-opts.c (c_common_handle_option): Remove cases for options now
2363 using Var. Mark ignored options as such.
2364
2365 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2366
2367 * c-common.c: Moved to here from parent directory.
2368 * c-common.def: Likewise.
2369 * c-common.h: Likewise.
2370 * c-cppbuiltin.c: Likewise.
2371 * c-dump.c: Likewise.
2372 * c-format.c: Likewise.
2373 * c-format.h : Likewise.
2374 * c-gimplify.c: Likewise.
2375 * c-lex.c: Likewise.
2376 * c-omp.c: Likewise.
2377 * c.opt: Likewise.
2378 * c-opts.c: Likewise.
2379 * c-pch.c: Likewise.
2380 * c-ppoutput.c: Likewise.
2381 * c-pragma.c: Likewise.
2382 * c-pragma.h: Likewise.
2383 * c-pretty-print.c: Likewise.
2384 * c-pretty-print.h: Likewise.
2385 * c-semantics.c: Likewise.
2386 * stub-objc.c: Likewise.
2387
2388 * c-common.c: Include gt-c-family-c-common.h.
2389 * c-pragma.c: Include gt-c-family-c-pragma.h.
2390 \f
2391 Copyright (C) 2010-2013 Free Software Foundation, Inc.
2392
2393 Copying and distribution of this file, with or without modification,
2394 are permitted in any medium without royalty provided the copyright
2395 notice and this notice are preserved.