1 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4 function from c/c-array-notation.c.
5 (is_cilkplus_reduce_builtin): Likewise.
7 (extract_array_notation_exprs): Likewise.
8 (replace_array_notations): Likewise.
9 (find_inv_trees): Likewise.
10 (replace_inv_trees): Likewise.
11 (contains_array_notation_expr): Likewise.
12 (find_correct_array_notation_type): Likewise.
13 * c-common.h (struct inv_list): Moved this struct from the file
14 c/c-array-notation.c and added a new field called additional tcodes.
15 (length_mismatch_in_expr_p): New prototype.
16 (is_cilkplus_reduce_builtin): Likewise.
17 (find_rank): Likewise.
18 (extract_array_notation_exprs): Likewise.
19 (replace_array_notation): Likewise.
20 (find_inv_trees): Likewise.
21 (replace_inv_trees): Likewise.
22 (find_correct_array_notation_type): Likewise.
24 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
26 * c-common.c (c_define_builtins): When cilkplus is enabled, the
27 function array_notation_init_builtins is called.
28 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
29 * c-common.def (ARRAY_NOTATION_REF): New tree.
30 * c-common.h (build_array_notation_expr): New function declaration.
31 (build_array_notation_ref): Likewise.
32 (extract_sec_implicit_index_arg): New extern declaration.
33 (is_sec_implicit_index_fn): Likewise.
34 (ARRAY_NOTATION_CHECK): New define.
35 (ARRAY_NOTATION_ARRAY): Likewise.
36 (ARRAY_NOTATION_START): Likewise.
37 (ARRAY_NOTATION_LENGTH): Likewise.
38 (ARRAY_NOTATION_STRIDE): Likewise.
39 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
41 (pp_c_expression): Likewise.
42 * c.opt (flag_enable_cilkplus): New flag.
43 * array-notation-common.c: New file.
45 2013-05-14 Jakub Jelinek <jakub@redhat.com>
48 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
50 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
52 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
55 2013-05-07 Han Shen <shenhan@google.com>
57 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
59 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
61 * c-common.c (check_user_alignment): Emit error for negative values.
63 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
65 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
67 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
69 * c-cppbuiltin.c (c_cpp_builtins): Do not define
70 __GXX_EXPERIMENTAL_CXX1Y__.
72 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
73 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
75 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
76 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
77 to simply use OPT_Wpointer_arith.
78 (c_sizeof_or_alignof_type): Likewise.
80 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
82 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
84 2013-04-12 Jakub Jelinek <jakub@redhat.com>
86 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
87 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
90 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
92 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
94 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
96 * c-common.c (pointer_int_sum): Remove dead code.
98 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
101 * c-common.c (handle_optimize_attribute): Don't call
102 save_optabs_if_changed.
104 2013-03-05 Jakub Jelinek <jakub@redhat.com>
107 * c-pch.c (pch_init): Free target_validity at the end.
109 2013-03-04 Jakub Jelinek <jakub@redhat.com>
111 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
113 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
114 Jakub Jelinek <jakub@redhat.com>
117 * c-common.c (handle_no_sanitize_address_attribute): New function.
118 (c_common_attribute_table): Add no_sanitize_address attribute.
119 (handle_no_address_safety_analysis_attribute): Add
120 no_sanitize_address attribute, not no_address_safety_analysis
123 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
126 * c-common.c (handle_optimize_attribute): Call
127 save_optabs_if_changed.
129 2013-02-18 Jakub Jelinek <jakub@redhat.com>
130 Steven Bosscher <steven@gcc.gnu.org>
133 * c-opts.c (c_common_post_options): If debug info is enabled
134 and non-dwarf*, refuse to load PCH files and when writing PCH
137 2013-02-05 Jakub Jelinek <jakub@redhat.com>
140 * c-common.c (handle_error_attribute): Fix condition.
142 2013-01-30 Jakub Jelinek <jakub@redhat.com>
145 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
147 2013-01-18 Jason Merrill <jason@redhat.com>
150 * c.opt (-fextern-tls-init): New.
151 * c-opts.c (c_common_post_options): Handle it.
153 2013-01-09 Jakub Jelinek <jakub@redhat.com>
156 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
157 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
158 and is either negative or bigger or equal to type precision
159 of the first operand.
161 2012-12-03 Marek Polacek <polacek@redhat.com>
164 * c-common.c (check_user_alignment): Swap order of tests,
165 check TREE_CODE first.
167 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
170 * c-common.h (overflow_type): New enum.
171 (build_userdef_literal): Add overflow_type argument.
172 (tree_userdef_literal): Add overflow_type.
173 (USERDEF_LITERAL_OVERFLOW): New access macro.
174 * c-common.c (build_userdef_literal): Add overflow_type
176 * c-lex.c (c_lex_with_flags): Add overflow_type to
177 build_userdef_literal calls.
178 (interpret_integer, interpret_float): Add overflow_type argument.
180 2012-11-28 Richard Biener <rguenther@suse.de>
183 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
184 here and use a type with proper overflow behavior for types that would
185 need to be promoted for the arithmetic.
187 2012-11-23 Jakub Jelinek <jakub@redhat.com>
190 * c-common.c (handle_no_address_safety_analysis_attribute): New
192 (c_common_attribute_table): Add no_address_safety_analysis.
194 2012-11-16 Simon Baldwin <simonb@google.com>
196 * c.opt: Add f[no-]canonical-system-headers.
197 * c-opts.c (c_common_handle_option): Handle
198 OPT_fcanonical_system_headers.
200 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
203 * c-opts.c (c_common_handle_option): Set new flags.
204 * c.opt: Describe new flags.
206 2012-11-09 Jason Merrill <jason@redhat.com>
208 * c.opt (Wabi-tag): New.
210 2012-11-09 Andi Kleen <ak@linux.intel.com>
213 * c-common.c (get_atomic_generic_size): Mask with
216 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
219 * c.opt (Wformat): Make it Alias Wformat=1.
220 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
221 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
223 (Wformat=): RejectNegative. Use LangEnabledBy.
224 (Wnonnull): Use LangEnabledBy.
225 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
226 * c-format.c (set_Wformat): Delete.
227 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
228 (maybe_read_dollar_number): Likewise.
229 (avoid_dollar_number): Likewise.
230 (finish_dollar_format_checking): Likewise.
231 (check_format_info): Likewise.
232 (check_format_info_main): Likewise.
233 (check_format_types): Likewise.
234 (format_type_warning): Likewise.
235 * c-common.c (int): Likewise.
236 (check_function_sentinel): Likewise.
237 * c-common.h (warn_format,set_Wformat): Do not declare here.
239 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
242 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
243 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
245 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
247 (Wvariadic-macros): Init(1).
248 * c-opts.c (c_common_handle_option): Do not handle them
250 (c_common_post_options): Likewise.
251 (sanitize_cpp_opts): warn_unused_macros is now
252 cpp_warn_unused_macros.
253 (push_command_line_include): Likewise.
254 * c-common.c (warn_unknown_pragmas): Do not define.
255 * c-common.h (warn_unknown_pragmas): Do not declare.
257 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
260 * c-common.c (conversion_warning): Handle conditional expressions.
262 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
265 * c.opt (Wreturn_local_addr): Define new option.
267 2012-10-25 Jason Merrill <jason@redhat.com>
269 * c.opt (Wvirtual-move-assign): New.
271 * c.opt (Winherited-variadic-ctor): New.
273 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
276 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
278 2012-10-23 Joseph Myers <joseph@codesourcery.com>
280 * c-common.h (pch_cpp_save_state): Declare.
281 * c-target.def (c_preinclude): New hook.
282 * c-opts.c (done_preinclude): New.
283 (push_command_line_include): Handle default preincluded header.
284 (cb_file_change): Call pch_cpp_save_state when calling
285 push_command_line_include.
286 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
287 (pch_cpp_save_state): New.
288 (pch_init): Call pch_cpp_save_state conditionally, instead of
289 calling cpp_save_state.
291 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
295 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
296 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
297 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
298 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
299 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
300 * c-opts.c (c_common_handle_option): Remove explicit handling from
302 (c_common_post_options): Likewise.
304 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
306 * c-ada-spec.c (LOCATION_COL): Delete.
307 (compare_location): New function.
308 (compare_node): Use it.
309 (compare_comment): Likewise.
311 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
315 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
316 * c-opts.c (c_common_handle_option): Do not set them here. Add
318 (c_common_post_options): Likewise.
320 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
322 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
323 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
324 Remove POINTER_TYPE handling, add large unsigned handling and use
325 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
327 2012-10-12 Jakub Jelinek <jakub@redhat.com>
330 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
331 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
332 locs and array of 3 trees instead of just single loc and single
333 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
334 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
335 For *cmp* builtins that take two sources strings report warnings
336 about first and second source, not about destination and source.
338 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
341 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
343 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
345 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
346 declaring something coming from another file.
348 2012-10-10 Arnaud Charlet <charlet@adacore.com>
351 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
353 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
356 * c-common.c (warn_about_parentheses): Add location_t parameter;
358 * c-common.h: Update declaration.
360 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
363 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
364 more operations. Make error messages optional.
365 * c-common.h (enum stv_conv): Moved from c-typeck.c.
366 (scalar_to_vector): Declare.
368 2012-10-08 Jason Merrill <jason@redhat.com>
370 * c-common.c (c_common_reswords): Add thread_local.
372 2012-10-08 Dodji Seketeli <dodji@redhat.com>
374 PR c++/53528 C++11 attribute support
375 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
377 * c-common.c (check_cxx_fundamental_alignment_constraints): New
379 (handle_aligned_attribute): In choose strictest alignment
380 among many. Use new check_cxx_fundamental_alignment_constraints.
381 (handle_transparent_union_attribute): In c++11 attribute syntax,
382 don't look through typedefs.
384 2012-10-04 Arnaud Charlet <charlet@adacore.com>
386 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
387 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
390 2012-09-25 Dehao Chen <dehao@google.com>
393 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
394 map when read in the pch.
396 2012-09-18 Arnaud Charlet <charlet@adacore.com>
398 * c-ada-spec.c: Style fixes.
400 2012-09-18 Thomas Quinot <quinot@adacore.com>
402 * c.opt (-fada-spec-parent): Define new command line switch.
403 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
404 is specified, generate binding spec as a child of the specified unit.
406 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
407 Manuel López-Ibáñez <manu@gcc.gnu.org>
410 * c.opt ([Winit-self]): Enabled by -Wall in C++.
412 2012-08-23 Arnaud Charlet <charlet@adacore.com>
414 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
415 for pointers, and add missing Convention C pragma.
416 (print_ada_struct_decl): Add missing aliased keyword.
417 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
419 2012-08-17 Jakub Jelinek <jakub@redhat.com>
421 * c-common.c (sizeof_pointer_memaccess_warning): New function.
422 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
423 * c-opts.c (c_common_handle_option): Enable it for -Wall.
424 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
425 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
427 2012-08-10 Richard Guenther <rguenther@suse.de>
429 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
431 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
433 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
434 instead of separate pp_newline and pp_flush.
435 (print_c_tree): Likewise.
437 2012-07-26 Richard Henderson <rth@redhat.com>
439 * c-common.c (handle_hot_attribute): Allow labels.
440 (handle_cold_attribute): Likewise.
442 2012-07-20 Jakub Jelinek <jakub@redhat.com>
445 * c-common.c (check_function_nonnull): Handle multiple nonnull
448 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
450 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
451 * c-ada-spec.c: Likewise.
452 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
454 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
456 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
457 Remove code conditional on it.
459 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
461 * c-gimplify.c: Do not include basic-block.h.
462 * c-common.c: Do not include linfuncs.h.
464 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
466 * c-common.h: Include tree.h.
468 2012-07-02 Jason Merrill <jason@redhat.com>
471 * c-common.c (get_priority): Call default_conversion.
473 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
475 * c-pch.c (c_common_write_pch): Remove unused variables.
477 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
479 * cppspec.c: Moved from gcc/ to here.
481 2012-06-27 Kai Tietz <ktietz@redhat.com>
483 PR preprocessor/37215
484 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
486 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
488 * c-common.h (c_common_print_pch_checksum): Remove.
489 * c-pch.c: Do not include output.h.
490 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
491 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
492 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
493 (struct c_pch_header): Remove.
494 (get_ident): Update gpch version.
495 (pch_init): Do not print executable_checksum to asm_out_file.
496 Do not fail if there is no asm_out_file to read back from. Set
497 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
498 (c_common_write_pch): Verify that nothing was written to asm_out_file
499 since pch_init was called. Do not write a c_pch_header, and do not
500 copy from asm_out_file to the PCH.
501 (c_common_read_pch): Do not read a c_pch_header, and do not restore
502 the content of asm_out_file from the PCH.
503 (c_common_print_pch_checksum): Remove.
504 * c-opts.c (c_common_init): Print out executable_checksum directly.
506 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
508 * c-target.def (objc_declare_unresolved_class_reference,
509 objc_declare_class_definition): Add new hooks.
511 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
513 * c-lex.c: Do not include output.h.
514 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
515 Remove uses of ASM_OUTPUT_IDENT.
517 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
520 * c-common.h (c_build_vec_perm_expr): Move decl here.
521 * c-common.c (c_build_vec_perm_expr): Move definition
524 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
526 * c.opt (fconserve-space): Turn into a no-op.
528 2012-06-04 Sterling Augustine <saugustine@google.com>
530 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
531 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
532 both the start and end of the function.
534 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
536 * c-common.c: Do not include output.h.
537 * c-pragma.c: Likewise.
539 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
541 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
542 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
543 (lang_decl_name): Handle namespace decls.
545 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
547 * c-ada-spec.c: Do not include output.h.
548 * c-semantics.c: Likewise.
550 2012-05-29 Joseph Myers <joseph@codesourcery.com>
552 * c-common.c: Fix typo.
554 2012-05-29 Michael Matz <matz@suse.de>
556 * c-common.h (c_expand_decl): Remove prototype.
558 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
560 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
561 * c-opts.c (c_common_handle_option): Remove code handling
564 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
567 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
570 2012-05-22 Dodji Seketeli <dodji@redhat.com>
573 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
575 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
577 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
578 * c-opts.c (c_common_handle_option): Do not handle explicitly
579 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
581 2012-05-16 Dodji Seketeli <dodji@redhat.com>
584 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
585 to cpp_classify_number. For diagnostics, use the precise location
586 instead of the global input_location.
588 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
591 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
593 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
595 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
597 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
600 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
601 Wreorder): Use LangEnabledBy.
602 * c-opts.c (c_common_handle_option): Do not enable them
603 explicitly. Call lang-specific generated functions.
604 (c_common_post_options): Do not set them here.
606 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
608 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
609 Wmissing-field-initializers,Wmissing-parameter-type,
610 Wold-style-declaration,Woverride-init): Use EnabledBy.
611 * c-opts.c (c_common_post_options): Do not set here explicitly.
613 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
616 * c-opts.c (c_common_handle_option): Use handle_generated_option
617 to enable sub-options.
619 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
622 * c-common.c (warnings_for_convert_and_check): Use warning_at.
624 2012-05-10 Richard Guenther <rguenther@suse.de>
626 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
627 adjust commentary about TYPE_IS_SIZETYPE types.
629 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
632 * c-common.c (warn_logical_operator): Check that argument of
633 integer_zerop is not NULL.
635 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
638 * c-common.c (warn_logical_operator): Do not warn if either side
639 is already true or false.
641 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
644 * c-common.c (expr_original_type): New.
645 (shorten_compare): Do not warn for enumeration types.
647 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
649 * c.opt (fpermissive): Add Var(flag_permissive).
651 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
654 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
655 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
657 2012-04-30 Dodji Seketeli <dodji@redhat.com>
660 * c.opt (Wvarargs): Define new option.
662 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
664 * c-common.c (check_function_arguments): Replace
665 Wmissing-format-attribute with Wsuggest-attribute=format.
667 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
669 * c.opt (Wsuggest-attribute=format): New. Alias of
670 Wmissing-format-attribute.
671 * c-format.c (decode_format_type): Replace
672 Wmissing-format-attribute with Wsuggest-attribute=format.
673 (check_function_format): Likewise.
675 2012-04-27 Ollie Wild <aaw@google.com>
677 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
678 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
679 * c.opt: Add Wliteral-suffix.
681 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
684 * c.opt (Wpedantic): New.
685 (pedantic): Alias Wpedantic.
686 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
687 (c_common_post_options): Likewise.
688 (sanitize_cpp_opts): Likewise.
689 * c-lex.c (interpret_float): Likewise.
690 * c-format.c (check_format_types): Likewise.
691 * c-common.c (pointer_int_sum): Likewise.
692 (c_sizeof_or_alignof_type): Likewise.
693 (c_add_case_label): Likewise.
694 (c_do_switch_warnings): Likewise.
695 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
697 2012-04-15 Jason Merrill <jason@redhat.com>
700 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
701 (C_STD_NAME): Distinguish between C++98 and C++11.
703 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
706 * c-common.h (uint16_type_node): Rename into...
707 (c_uint16_type_node): ...this.
708 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
709 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
711 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
713 * c-common.c (warn_if_unused_value): Move definition to here.
714 * c-common.h (warn_if_unused_value): Move declaration to here.
716 2012-03-23 William Bader <williambader@hotmail.com>
718 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
720 2012-03-20 Jason Merrill <jason@redhat.com>
722 * c-common.h (enum cxx_dialect): Add cxx1y.
723 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
725 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
726 * c-opts.c (c_common_post_options): Likewise.
727 (set_std_cxx1y): New.
728 (c_common_handle_option): Call it.
729 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
731 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
734 * c.opt ([Wuseless-cast]): Add.
736 2012-03-16 Richard Guenther <rguenther@suse.de>
738 * c-pretty-print.c (pp_c_initializer_list): Adjust.
740 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
743 * c.opt (ftemplate-backtrace-limit) Add.
745 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
747 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
749 * c-pragma.c (handle_pragma_extern_prefix): Remove.
750 (init_pragma): Don't register extern_prefix.
752 2012-03-12 Richard Guenther <rguenther@suse.de>
754 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
755 (builtin_type_for_size): Likewise.
757 2012-02-13 Jakub Jelinek <jakub@redhat.com>
760 * c-common.c (sync_resolve_params): Don't decide whether to convert
761 or not based on TYPE_SIZE comparison, convert whenever arg_type
762 is unsigned INTEGER_TYPE.
764 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
767 * c.opt ([Wunused-local-typedefs]): Fix description.
769 2012-01-24 Mike Stump <mikestump@comcast.net>
771 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
774 2012-01-18 Richard Guenther <rguenther@suse.de>
776 * c-opts.c (c_common_post_options): Reset LTO flags if
777 we are about to generate a PCH.
779 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
782 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
783 use pp_unsigned_wide_integer.
785 2012-01-10 Richard Guenther <rguenther@suse.de>
788 * c-opts.c (c_common_handle_option): Move -Werror handling
789 to language independent code.
791 2012-01-05 Richard Guenther <rguenther@suse.de>
794 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
797 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
800 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
801 of array types with an unknown bound.
803 2011-12-20 Joseph Myers <joseph@codesourcery.com>
805 * c-common.c (flag_isoc99): Update comment to refer to C11.
806 (flag_isoc1x): Change to flag_isoc11.
807 * c-common.h (flag_isoc99): Update comment to refer to C11.
808 (flag_isoc1x): Change to flag_isoc11.
809 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
811 * c-opts.c (set_std_c1x): Change to set_std_c11.
812 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
814 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
815 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
816 * c.opt (std=c1x): Change to std=c11. Document as non-draft
818 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
819 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
820 (std=gnu1x): Make alias of std=gnu11.
822 2011-12-19 Jason Merrill <jason@redhat.com>
825 * c-common.c (handle_transparent_union_attribute): Check the first
826 field if the type is complete.
828 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
831 * c-common.c (RID_IS_FINAL): Add.
832 * c-common.h (RID_IS_FINAL): Add.
834 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
836 * c.opt (fgnu-runtime): Provide full description.
837 (fnext-runtime): Likewise.
838 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
840 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
842 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
843 predefines in one place. Add LOCK_FREE predefines.
844 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
847 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
850 * c-common.c (get_atomic_generic_size): Check for various error
852 (resolve_overloaded_atomic_exchange,
853 resolve_overloaded_atomic_compare_exchange,
854 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
855 error_mark_node for error conditions.
857 2011-11-08 Richard Guenther <rguenther@suse.de>
862 2011-11-07 Richard Henderson <rth@redhat.com>
863 Aldy Hernandez <aldyh@redhat.com>
864 Torvald Riegel <triegel@redhat.com>
866 Merged from transactional-memory.
868 * c-common.c (handle_tm_wrap_attribute,
869 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
870 (struct c_common_reswords): Added __transaction* keywords.
871 (struct c_common_attribute_table): Added transaction* and tm_regparm
873 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
875 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
876 find_tm_attribute): Declare.
878 2011-11-07 Jason Merrill <jason@redhat.com>
881 * c-common.c, c-common.h: Revert yesterday's changes.
883 2011-11-06 Jason Merrill <jason@redhat.com>
886 * c-common.c (decl_has_visibility_attr): Split out from...
887 (c_determine_visibility): ...here.
888 * c-common.h: Declare it.
890 2011-11-06 Joseph Myers <joseph@codesourcery.com>
892 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
893 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
895 (check_user_alignment): New. Split out of
896 handle_aligned_attribute. Disallow integer constants with
897 noninteger types. Conditionally allow zero.
898 (handle_aligned_attribute): Use check_user_alignment.
899 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
901 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
902 Richard Henderson <rth@redhat.com>
904 Merged from cxx-mem-model.
906 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
907 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
908 parameters that are the same type size.
909 (get_atomic_generic_size): New. Find size of generic
910 atomic function parameters and do typechecking.
911 (add_atomic_size_parameter): New. Insert size into parameter list.
912 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
913 either __atomic_exchange_n or external library call.
914 (resolve_overloaded_atomic_compare_exchange): Restructure
915 __atomic_compare_exchange to either _n variant or external library call.
916 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
917 __atomic_load_n or an external library call.
918 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
919 __atomic_store_n or an external library call.
920 (resolve_overloaded_builtin): Handle new __atomic builtins.
922 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
925 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
926 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
927 <INDIRECT_REF>: Return the argument.
928 <ARRAY_REF>: Remove special code for negative offset.
929 Call fold_build_pointer_plus instead of size_binop.
930 (fold_offsetof): Remove STOP_REF argument and adjust.
931 * c-common.h (fold_offsetof_1): Declare.
932 (fold_offsetof): Remove STOP_REF argument.
934 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
937 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
938 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
939 Wnarrowing for C++0x and C++98.
940 * c.opt ([Wnarrowing]): Update.
942 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
945 * c.opt: Add Wzero-as-null-pointer-constant.
947 2011-10-31 Jason Merrill <jason@redhat.com>
949 * c.opt (-fdeduce-init-list): Off by default.
952 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
953 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
955 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
957 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
960 * c.opt (fvisibility-inlines-hidden): Description change.
962 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
964 Implement C++11 user-defined literals.
965 * c-common.c (build_userdef_literal): New.
966 * c-common.def: New tree code.
967 * c-common.h (tree_userdef_literal): New tree struct and accessors.
968 * c-lex.c (interpret_float): Add suffix parm.
969 (c_lex_with_flags): Build literal tokens.
971 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
975 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
978 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
979 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
980 Wnarrowing for C++0x and C++98.
981 * c.opt ([Wnarrowing]): Update.
983 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
986 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
987 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
988 Wnarrowing for C++0x and C++98.
989 * c.opt ([Wnarrowing]): Update.
991 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
994 * c-common.c (conversion_warning): Remove code looking for
997 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1000 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1001 !NO_IMPLICIT_EXTERN_C.
1003 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1005 * c-common.c (c_common_reswords): Add __bases,
1007 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1009 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1012 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1014 2011-10-15 Tom Tromey <tromey@redhat.com>
1015 Dodji Seketeli <dodji@redhat.com>
1017 * c.opt (fdebug-cpp): New option.
1018 * c-opts.c (c_common_handle_option): Handle the option.
1019 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1020 output stream in parameter. Factorized from ...
1021 (maybe_print_line): ... this. Dump location debug information when
1022 -fdebug-cpp is in effect.
1023 (print_line_1): New static function. Takes an output stream in
1024 parameter. Factorized from ...
1025 (print_line): ... here. Dump location information when -fdebug-cpp
1027 (scan_translation_unit): Dump location information when
1028 -fdebug-cpp is in effect.
1030 2011-10-15 Tom Tromey <tromey@redhat.com>
1031 Dodji Seketeli <dodji@redhat.com>
1033 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1035 * c-opts.c (c_common_handle_option)<case
1036 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1037 cases. Handle -ftrack-macro-expansion with and without argument.
1039 2011-10-15 Tom Tromey <tromey@redhat.com>
1040 Dodji Seketeli <dodji@redhat.com>
1042 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1043 (print_line, cb_define, do_line_change): Adjust to avoid touching
1044 the internals of struct line_map. Use the public API instead.
1045 * c-pch.c (c_common_read_pch): Likewise.
1046 * c-lex.c (fe_file_change): Likewise.
1048 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1051 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1053 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1056 * c-pretty-print.c (pp_c_floating_constant): Output
1057 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1059 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1061 * c-common.c (def_builtin_1): Delete old interface with two
1062 parallel arrays to hold standard builtin declarations, and replace
1063 it with a function based interface that can support creating
1064 builtins on the fly in the future. Change all uses, and poison
1065 the old names. Make sure 0 is not a legitimate builtin index.
1066 * c-omp.c (c_finish_omp_barrier): Ditto.
1067 (c_finish_omp_taskwait): Ditto.
1068 (c_finish_omp_flush): Ditto.
1070 2011-10-11 Tristan Gingold <gingold@adacore.com>
1072 * c.opt: (fallow-parameterless-variadic-functions): New.
1074 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1076 PR c++/33255 - Support -Wunused-local-typedefs warning
1077 * c-common.h (struct c_language_function::local_typedefs): New
1079 (record_locally_defined_typedef, maybe_record_typedef_use)
1080 (maybe_warn_unused_local_typedefs): Declare new functions.
1081 * c-common.c (record_locally_defined_typedef)
1082 (maybe_record_typedef_use)
1083 (maybe_warn_unused_local_typedefs): Define new functions.
1084 * c.opt: Declare new -Wunused-local-typedefs flag.
1086 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1089 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1092 2011-09-05 Richard Guenther <rguenther@suse.de>
1094 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1095 of integer_minus_one_node for empty array upper bounds.
1097 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1099 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1100 it's the first time it's being called on this main TU.
1102 2011-08-24 Richard Guenther <rguenther@suse.de>
1105 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1107 2011-08-22 Gabriel Charette <gchare@google.com>
1109 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1110 defined in cpp_init_builtins and c_cpp_builtins.
1112 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1114 * c-common.c (c_common_reswords): Add __builtin_complex.
1115 * c-common.h (RID_BUILTIN_COMPLEX): New.
1117 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1119 * c-common.c (c_common_reswords): Add _Noreturn.
1120 (keyword_is_function_specifier): Handle RID_NORETURN.
1121 * c-common.h (RID_NORETURN): New.
1123 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1125 * c-common.c (unsafe_conversion_p): New function. Check if it is
1126 unsafe to convert an expression to the type.
1127 (conversion_warning): Adjust, use unsafe_conversion_p.
1128 * c-common.h (unsafe_conversion_p): New function declaration.
1130 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1132 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1133 (c_finish_omp_taskyield): New prototype.
1134 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1135 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1136 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1137 or RHS1 have side-effects, evaluate those too in the right spot,
1138 if it is a decl and LHS is also a decl, error out if they
1140 (c_finish_omp_taskyield): New function.
1141 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1142 * c-pragma.c (omp_pragmas): Add taskyield.
1143 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1144 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1145 PRAGMA_OMP_CLAUSE_MERGEABLE.
1147 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1149 * c-common.h (set_underlying_type): Remove parm name from
1152 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1154 * c-pretty-print.h: Search c-common.h in c-family.
1156 2011-07-22 Jason Merrill <jason@redhat.com>
1159 * c.opt (Wnarrowing): New.
1162 * c-common.h: Declare c_linkage_bindings.
1163 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1166 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1167 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1168 as flag_isoc99 for 'restrict'.
1169 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1171 2011-07-21 Ian Lance Taylor <iant@google.com>
1174 * c-common.c (c_disable_warnings): New static function.
1175 (c_enable_warnings): New static function.
1176 (c_fully_fold_internal): Change local unused_p to bool. Call
1177 c_disable_warnings and c_enable_warnings rather than change
1178 c_inhibit_evaluation_warnings.
1180 2011-07-20 Jason Merrill <jason@redhat.com>
1182 PR c++/6709 (DR 743)
1183 PR c++/42603 (DR 950)
1184 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1185 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1186 (CPP_DECLTYPE): New.
1187 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1189 2011-07-19 Richard Guenther <rguenther@suse.de>
1191 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1192 * c-omp.c (c_finish_omp_for): Likewise.
1194 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1196 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1197 body on the next line.
1199 2011-07-08 Jason Merrill <jason@redhat.com>
1202 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1205 * c-common.c (c_apply_type_quals_to_decl): Don't check
1206 TYPE_NEEDS_CONSTRUCTING.
1208 2011-07-06 Richard Guenther <rguenther@suse.de>
1210 * c-common.c (c_common_nodes_and_builtins):
1211 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1213 2011-07-05 Richard Guenther <rguenther@suse.de>
1215 * c-common.c (c_common_nodes_and_builtins): Build all common
1218 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1220 * c-common.h (c_tree_chain_next): New static inline function.
1222 * c-common.c (check_builtin_function_arguments): Handle
1223 BUILT_IN_ASSUME_ALIGNED.
1225 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1227 * c-common.c: Add sync_ or SYNC__ to builtin names.
1228 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1230 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1232 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1234 (gen_pragma_handler): New union.
1235 (internal_pragma_handler): New type.
1236 (c_register_pragma_with_data)
1237 (c_register_pragma_with_expansion_and_data): New functions.
1239 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1240 (c_register_pragma, c_register_pragma_with_expansion)
1241 (c_invoke_pragma_handler): Changed to work with
1242 internal_pragma_handler.
1243 (c_register_pragma_with_data)
1244 (c_register_pragma_with_expansion_and_data): New functions.
1246 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1248 * c-common.c: Include common/common-target.h.
1249 (handle_section_attribute): Use
1250 targetm_common.have_named_sections.
1251 * c-cppbuiltin.c: Include common/common-target.h.
1252 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1254 2011-06-10 Richard Guenther <rguenther@suse.de>
1256 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1257 to print a IDENTIFIER_NODE.
1259 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1260 Joseph Myers <joseph@codesourcery.com>
1262 * c.opt (fbuilding-libgcc): New option.
1263 * c-cppbuiltin.c (c_cpp_builtins): Define
1264 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1266 2011-06-07 Jason Merrill <jason@redhat.com>
1268 * c-common.c (max_tinst_depth): Lower default to 900.
1270 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1272 2011-06-07 Richard Guenther <rguenther@suse.de>
1274 * c-common.c (c_common_nodes_and_builtins): Do not set
1275 size_type_node or call set_sizetype.
1277 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1280 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1281 type when using pointer comparison to compare types.
1283 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1285 * c.opt: Add -Wdelete-non-virtual-dtor.
1286 * c-opts.c (c_common_handle_option): Include it in -Wall.
1288 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1293 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1295 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1298 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1301 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1302 C++ don't call c_common_truthvalue_conversion on void type arms.
1304 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1306 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1307 (stmt_list_stack): Define.
1308 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1309 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1311 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1313 * c-common.c (warning_candidate_p): Check for BLOCKs.
1315 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1317 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1320 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1322 * c-common.c (def_fn_type): Remove extra va_end.
1324 2011-05-23 Jason Merrill <jason@redhat.com>
1327 * c-common.c (c_common_get_narrower): New.
1328 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1330 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1332 * c-common.h (check_function_arguments): Tweak prototype of
1333 check_function_arguments.
1334 * c-common.c (check_function_arguments): Likewise. Adjust
1335 calls to check_function_nonnull, check_function_format, and
1336 check_function_sentinel.
1337 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1338 separate attributes and typelist arguments. Use
1339 FOREACH_FUNCTION_ARGS to iterate over argument types.
1341 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1343 * c-common.c (c_common_reswords): Reorder.
1344 * c-common.h (rid): Likewise.
1346 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1348 * c-common.c (def_fn_type): Don't call build_function_type, call
1349 build_function_type_array or build_varargs_function_type_array
1351 (c_common_nodes_and_builtins): Likewise.
1353 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1355 * c-common.c (c_add_case_label): Omit the loc argument to
1357 * c-common.h (build_case_label): Remove.
1358 * c-semantics.c (build_case_label): Remove.
1360 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1362 * c-objc.h (objc_start_method_definition): Update prototype.
1363 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1365 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1367 * c-common.c (check_main_parameter_types): Reindent. Don't use
1368 TYPE_ARG_TYPES directly.
1369 (handle_nonnull_attribute): Likewise.
1370 (sync_resolve_params): Likewise.
1371 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1372 to check_format_string.
1373 (handle_format_attribute): Likewise.
1374 (check_format_string): Take a function type to examine instead of
1375 a type list. Use a function_arg_iterator to step through argument
1378 2011-05-04 Richard Guenther <rguenther@suse.de>
1380 * c-common.c (fix_string_type): Use size_int for index type bounds.
1381 (start_fname_decls): Do not pass NULL to build_int_cst.
1382 (c_init_attributes): Likewise.
1383 * c-lex.c (c_lex_with_flags): Likewise.
1385 2011-04-27 Jason Merrill <jason@redhat.com>
1387 * c-common.c (make_tree_vector_from_list): New.
1388 * c-common.h: Declare it.
1390 2011-04-26 Richard Guenther <rguenther@suse.de>
1392 PR preprocessor/48248
1393 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1394 for output size with -P.
1396 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1398 * c-common.c (struct c_common_resword): Add __underlying_type.
1399 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1401 2011-04-20 Jim Meyering <meyering@redhat.com>
1403 * c-format.c (init_dollar_format_checking): Remove useless
1406 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1408 * c-objc.h (objc_get_interface_ivars): Removed.
1409 (objc_detect_field_duplicates): New.
1410 * stub-objc.c: Likewise.
1412 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1414 * stub-objc.c (objc_declare_protocols): Renamed to
1415 objc_declare_protocol.
1416 * c-objc.h: Likewise.
1418 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1420 * stub-objc.c (objc_declare_class): Updated argument name.
1422 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1424 * c-common.h (c_common_init_ts): Declare.
1425 * c-common.c (c_common_init_ts): Define.
1427 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1429 * c-objc.h (objc_build_message_expr): Updated prototype.
1430 * stub-objc.c (objc_build_message_expr): Likewise.
1432 2011-04-12 Martin Jambor <mjambor@suse.cz>
1434 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1437 2011-04-11 Richard Guenther <rguenther@suse.de>
1439 * c-common.c (complete_array_type): Build a range type of
1442 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1444 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1445 (handle_type_generic_attribute): Likewise.
1447 2011-04-07 Jason Merrill <jason@redhat.com>
1450 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1451 conversion from C++0x scoped enum.
1453 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1455 * c-target-def.h: New file.
1456 * c-target.def: New file.
1457 * c-target.h: New file.
1458 * c-common.c (targetcm): Don't define here.
1459 * c-common.h (default_handle_c_option): Declare.
1460 * c-format.c: Include c-target.h instead of target.h.
1461 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1463 (default_handle_c_option): Move from targhooks.c.
1465 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1467 PR preprocessor/48248
1468 * c-ppoutput.c (print): Add src_file field.
1469 (init_pp_output): Initialize it.
1470 (maybe_print_line): Don't optimize by adding up to 8 newlines
1471 if map->to_file and print.src_file are different file.
1472 (print_line): Update print.src_file.
1474 2011-03-25 Kai Tietz <ktietz@redhat.com>
1476 * c-ada-spec.c (compare_comment): Use filename_cmp
1477 instead of strcmp for filename.
1479 2011-03-25 Jeff Law <law@redhat.com>
1481 * c-family/c-common.c (def_fn_type): Add missing va_end.
1483 2011-03-25 Jason Merrill <jason@redhat.com>
1485 * c.opt: Add -std=c++03.
1487 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1489 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1491 2011-03-17 Kai Tietz
1494 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1495 Display allowed attributes for function pointer types.
1496 (pp_c_attributes_display): New function to display
1497 attributes having affects_type_identity flag set to true.
1498 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1500 * c-common.c (c_common_attribute_table):
1502 (c_common_format_attribute_table): Likewise.
1504 2011-03-18 Jason Merrill <jason@redhat.com>
1506 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1507 * c-common.h: Don't declare it here.
1508 * c-common.c: Or define it here.
1509 * c-opts.c (c_common_handle_option): Or set it here.
1512 * c-common.c (handle_transparent_union_attribute): Don't
1513 make a duplicate type in C++.
1515 2011-03-15 Jason Merrill <jason@redhat.com>
1517 * c-common.c (max_constexpr_depth): New.
1518 * c-common.h: Declare it.
1519 * c-opts.c (c_common_handle_option): Set it.
1520 * c.opt (fconstexpr-depth): New option.
1522 2011-03-11 Jason Merrill <jason@redhat.com>
1524 * c-common.c (attribute_takes_identifier_p): Add missing const.
1527 * c-common.c (attribute_takes_identifier_p): Assume that an
1528 unknown attribute takes an identifier.
1530 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1533 * c-common.c (c_type_hash): Call list_length instead of iterating
1534 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1536 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1539 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1541 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1543 * c.opt (fobjc-abi-version=) New.
1544 (fobjc-nilcheck): New.
1546 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1549 * c-common.h (keyword_is_decl_specifier): Declare.
1550 * c-common.c (keyword_is_decl_specifier): Define.
1551 (keyword_is_function_specifier): New function.
1553 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1556 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1557 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1560 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1562 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1564 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1567 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1568 after init_c_lex if pch_file is set.
1570 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1573 * c.opt (-fkeep-inline-dllexport): New switch.
1575 2011-01-12 Richard Guenther <rguenther@suse.de>
1578 * c-common.c (handle_weak_attribute): Warn instead of error
1579 on declaring an inline function weak.
1581 2011-01-05 Tom Tromey <tromey@redhat.com>
1583 * c-common.h (lvalue_error): Update.
1584 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1587 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1590 * c-objc.h (objc_finish_message_expr): Added argument to
1593 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1595 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1598 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1600 * c-objc.h (objc_maybe_warn_exceptions): New.
1601 * stub-objc.c (objc_maybe_warn_exceptions): New.
1603 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1605 * c-common.h (readonly_error): Declare.
1606 * c-common.c (readonly_error): Define.
1608 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1610 * c-common.h (invalid_indirection_error): Declare.
1611 * c-common.c (invalid_indirection_error): Define.
1613 2010-12-03 Richard Guenther <rguenther@suse.de>
1616 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1617 (pp_c_unary_expression): Likewise.
1618 (pp_c_expression): Likewise.
1620 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1622 * c-common.h (objc_finish_function): New.
1623 (objc_non_volatilized_type): Removed.
1624 (objc_type_quals_match): Removed.
1625 * stub-objc.c (objc_finish_function): New.
1626 (objc_non_volatilized_type): Removed.
1627 (objc_type_quals_match): Removed.
1629 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1631 * c-common.h (parse_optimize_options): Declare.
1632 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1633 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1635 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1637 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1639 * c-pch.c (O_BINARY): Don't define here.
1640 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1642 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1644 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1645 targetm.except_unwind_info.
1647 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1649 * c-opts.c (c_common_handle_option): Pass location to
1650 set_struct_debug_option.
1652 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1654 * c-common.c (visibility_options): Move from ../opts.c.
1655 * c-common.h (struct visibility_flags, visibility_options):
1657 * c-opts.c (finish_options): Rename to c_finish_options.
1658 (c_common_init): Update call to finish_options.
1660 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1663 * c-lex.c (lex_string): Check that each string in an Objective-C
1664 string concat sequence starts with either one or zero '@', and
1665 that there are no spurious '@' signs at the end.
1667 2010-11-20 Joseph Myers <joseph@codesourcery.com>
1669 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1670 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1671 HANDLE_PRAGMA_VISIBILITY.
1672 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1673 HANDLE_PRAGMA_VISIBILITY): Don't define.
1674 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1676 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1681 * c-common.h (keyword_begins_type_specifier): Declare.
1682 (keyword_is_storage_class_specifier): Declare.
1683 (keyword_is_type_qualifier): Declare.
1684 * c-common.c (keyword_begins_type_specifier): New function.
1685 (keyword_is_storage_class_specifier): New function.
1686 (keyword_is_type_qualifier): Declare.
1688 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1691 * c-common.c (in_late_binary_op): Define.
1692 (c_common_truthvalue_conversion): Check in_late_binary_op before
1693 calling c_save_expr.
1694 * c-common.h (in_late_binary_op): Declare.
1696 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1698 * c-opts.c (c_common_handle_option): Update calls to
1699 set_struct_debug_option.
1701 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1703 * c-common.h (objc_declare_protocols): Added additional argument.
1704 * stub-objc.c (objc_declare_protocol): Same change.
1706 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1709 * c-common.h (build_real_imag_expr): Declare.
1710 * c-semantics.c (build_real_imag_expr): Define.
1712 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1714 * c-opts.c (c_common_parse_file): Take no arguments.
1715 * c-common.h (c_common_parse_file): Update prototype.
1717 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1720 * c-common.c (warning_candidate_p): Don't track non-const calls
1723 2010-11-15 Ian Lance Taylor <iant@google.com>
1725 * c-lex.c (init_c_lex): Set macro debug callbacks if
1726 flag_dump_go_spec is set.
1728 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1730 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1731 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1733 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1735 PR preprocessor/45038
1736 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1739 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1741 * c-common.h (c_family_lang_mask): Declare.
1742 * c-opts.c (c_family_lang_mask): Make extern.
1743 * c-pragma.c (handle_pragma_diagnostic): Use
1744 control_warning_option.
1746 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1748 * c-common.c (parse_optimize_options): Update call to
1750 * c-common.h (c_common_handle_option): Update prototype.
1751 * c-opts.c (c_common_handle_option): Take location_t parameter and
1752 pass it to other functions.
1754 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1756 * c-opts.c (warning_as_error_callback): Remove.
1757 (c_common_initialize_diagnostics): Don't call
1758 register_warning_as_error_callback.
1759 (c_common_handle_option): Handle -Werror=normalized= here.
1761 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1763 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1765 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1767 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1768 Remove trailing '.' from diagnostics.
1769 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1771 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1773 * c-common.c (parse_optimize_options): Pass global_dc to
1775 * c-opts.c (c_common_handle_option): Pass &global_options to
1776 set_Wstrict_aliasing.
1777 * c.opt (v): Don't mark Common or document here.
1779 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1782 * c-format.c (format_type): New type gcc_objc_string_format_type.
1783 (valid_stringptr_type_p): New.
1784 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1785 (check_format_string): Pass expected type, use
1786 valid_stringptr_type_p (), check that the format string types are
1787 consistent with the format specification.
1788 (decode_format_attr): Warn if NSString is used outside objective-c.
1789 (format_types_orig): Add NSString.
1791 (format_flags): New.
1792 (check_format_arg): Handle format strings requiring an external parser.
1793 first_target_format_type: New variable.
1794 (handle_format_attribute): Set up first_target_format_type, pass the
1795 expected format arg string type to check_format_string().
1796 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1797 * stub-objc.c (objc_string_ref_type_p): New.
1798 (objc_check_format_arg): New.
1800 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1802 Fixed using the Objective-C 2.0 dot-syntax with class names.
1803 * c-common.h (objc_build_class_component_ref): New.
1804 * stub-objc.c (objc_build_class_component_ref): New.
1806 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1808 * c.opt (Wproperty-assign-default): New option.
1810 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1812 Implemented -fobjc-std=objc1 flag.
1813 * c.opt (fobjc-std=objc1): New option.
1815 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1817 Implemented format and noreturn attributes for Objective-C methods.
1818 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1819 attribute for Objective-C methods.
1821 2010-10-31 Jason Merrill <jason@redhat.com>
1823 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1826 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1828 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1829 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1830 (objc_add_property_declaration): Removed arguments for copies and
1832 (objc_build_getter_call): Renamed to
1833 objc_maybe_build_component_ref.
1834 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1835 (objc_is_property_ref): New.
1836 * c-common.c (c_common_reswords): Removed copies and ivar.
1837 * stub-objc.c (objc_add_property_declaration): Removed arguments
1838 for copies and ivar.
1839 (objc_build_getter_call): Renamed to
1840 objc_maybe_build_component_ref.
1841 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1842 (objc_is_property_ref): New.
1844 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1845 Matthew Gingell <gingell@adacore.com>
1847 * c-ada-spec.c (separate_class_package): New function.
1848 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1849 name of their enclosing package.
1850 (print_ada_declaration): Use separate_class_package.
1852 2010-10-27 Jason Merrill <jason@redhat.com>
1854 * c-common.c (c_common_reswords): Add __is_literal_type.
1855 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1857 * c-common.c (check_case_value): Remove special C++ code.
1859 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1861 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1862 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1864 (objc_add_property_declaration): Added additional arguments.
1865 (objc_property_attribute_kind): Removed.
1866 (objc_set_property_attr): Removed.
1867 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1869 * stub-objc.c (objc_add_property_declaration): Added additional
1871 (objc_set_property_attr): Removed.
1873 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1875 * c-common.h (objc_add_property_variable): Renamed to
1876 objc_add_property_declaration. Added location argument.
1877 * stub-objc.c (objc_add_property_variable): Same change.
1879 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1881 * c-common.h (objc_maybe_printable_name): New.
1882 * stub-objc.c (objc_maybe_printable_name): New.
1884 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1885 Andrew Pinski <pinskia@gmail.com>
1887 * c-common.h (c_common_mark_addressable_vec): Declare.
1888 * c-common.c (c_common_mark_addressable_vec): New function.
1890 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1892 * c-common.h (objc_set_method_type): Removed.
1893 (objc_add_method_declaration): Added boolean argument.
1894 (objc_start_method_definition): Same change.
1895 (objc_build_method_signature): Same change.
1896 * stub-objc.c (objc_set_method_type): Removed.
1897 (objc_add_method_declaration): Added boolean argument.
1898 (objc_start_method_definition): Same change.
1899 (objc_build_method_signature): Same change.
1901 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1903 * c-common.h (finish_file): Removed.
1904 (objc_write_global_declarations): New.
1905 * c-opts.c (c_common_parse_file): Do not call finish_file.
1906 * stub-objc.c (objc_write_global_declarations): New.
1908 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1910 Implemented parsing @synthesize and @dynamic for
1911 Objective-C/Objective-C++.
1912 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1913 (objc_add_synthesize_declaration): New.
1914 (objc_add_dynamic_declaration): New.
1915 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1916 * stub-objc.c (objc_add_synthesize_declaration): New.
1917 (objc_add_dynamic_declaration): New.
1919 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1922 * c-cppbuiltin.c (mode_has_fma): Move function here from
1923 builtins.c. Don't use the fma optab, instead just use the
1924 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1927 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1929 Merge from 'apple/trunk' branch on FSF servers.
1931 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1934 * c-common.h (objc_non_volatilized_type): New declaration
1935 * stub-objc.c (objc_non_volatilized_type): New stub.
1937 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1939 Merge from 'apple/trunk' branch on FSF servers.
1941 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1944 * c-common.h (objc_diagnose_private_ivar): New decl.
1945 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1947 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1949 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1950 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1951 (objc_ivar_visibility_kind): New enum.
1952 (objc_set_visibility): Adjust prototype to use visibility enum.
1953 * stub-objc.c (objc_set_visibility): Adjust stub to use
1956 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1958 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1959 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1960 has the appropriate fma builtins.
1961 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1963 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1965 merge from FSF apple 'trunk' branch.
1966 2006 Fariborz Jahanian <fjahanian@apple.com>
1968 Radars 4436866, 4505126, 4506903, 4517826
1969 * c-common.c (c_common_resword): Define @property and its attributes.
1970 * c-common.h: Define property attribute enum entries.
1971 (OBJC_IS_PATTR_KEYWORD): New.
1972 (objc_property_attribute_kind): New enum.
1973 Declare objc_set_property_attr (), objc_add_property_variable (),
1974 objc_build_getter_call () and objc_build_setter_call ().
1975 * stub-objc.c (objc_set_property_attr): New stub.
1976 (objc_add_property_variable): Likewise.
1977 (objc_build_getter_call): Likewise.
1978 (objc_build_setter_call) Likewise.
1980 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1982 merge from FSF apple 'trunk' branch.
1983 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1985 Radar 3803157 (method attributes)
1986 * c-common.c (handle_deprecated_attribute): Recognize
1987 objc methods as valid declarations.
1988 * c-common.h: Declare objc_method_decl ().
1989 * stub-objc.c (objc_method_decl): New stub.
1991 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1993 * c-common.c (parse_optimize_options): Call
1994 decode_cmdline_options_to_array_default_mask before
1995 decode_options. Update arguments to decode_options.
1996 * c-common.h (c_common_init_options_struct): Declare.
1997 * c-opts.c (c_common_init_options_struct): New. Split out from
1998 c_common_init_options.
2000 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2002 Implemented fast enumeration for Objective-C.
2003 * c-common.h (objc_finish_foreach_loop): New.
2004 * stub-objc.c (objc_finish_foreach_loop): New.
2006 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2008 * c-common.h (struct diagnostic_context): Don't declare here.
2009 (c_common_initialize_diagnostics): Declare using
2010 diagnostic_context typedef.
2011 * c-opts.c (c_common_handle_option): Pass global_dc to
2012 handle_generated_option.
2014 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2016 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2017 handle_generated_option.
2019 2010-10-03 Ian Lance Taylor <iant@google.com>
2021 * c.opt (-fplan9-extensions): New option.
2023 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2025 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2027 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2028 of duplicating code.
2030 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2032 * c-common.c: Add two new entries for @optional
2033 and @required keywords.
2035 merge from FSF 'apple/trunk' branch.
2036 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2039 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2040 objective-c keywords.
2041 (objc_set_method_opt): New declaration.
2042 * stub-objc.c (objc_set_method_opt): New stub.
2044 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2046 * c-common.c (handle_optimize_attribute): Pass &global_options to
2047 cl_optimization_save and cl_optimization_restore.
2048 * c-opts.c (c_common_handle_option): Pass &global_options to
2049 handle_generated_option.
2050 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2051 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2052 &global_options to cl_optimization_restore.
2054 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2056 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2057 Objective-C/Objective-C++ keywords.
2059 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2061 Merge from 'apple/trunk' branch on FSF servers.
2063 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2066 * c-common.h (objc_check_global_decl): New declaration.
2067 * stub-objc.c (objc_check_global_decl): New stub.
2069 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2071 * c.opt: Don't use VarExists.
2073 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2075 * c-common.c (c_cpp_error): Update names of diagnostic_context
2077 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2078 cl_optimization members.
2079 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2080 sanitize_cpp_opts, finish_options): Update names of cpp_options
2083 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2085 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2086 (objc_is_reserved_word): Removed.
2087 * c-common.c: Updated comments.
2088 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2089 objc_is_reserved_word.
2090 * stub-objc.c (objc_is_reserved_word): Removed.
2092 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2094 * c-common.h (objc_add_method_declaration): Adjust prototype to
2096 (objc_start_method_definition): Likewise.
2097 (objc_build_keyword_decl): Likewise.
2098 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2099 (objc_start_method_definition): Likewise.
2100 (objc_build_keyword_decl): Likewise.
2102 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2104 * c-common.h (objc_start_class_interface): Adjust prototype.
2105 (objc_start_category_interface): Likewise.
2106 (objc_start_protocol): Likewise.
2107 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2108 (objc_start_class_interface): Likewise.
2109 (objc_start_category_interface): Likewise.
2111 2010-09-27 Ian Lance Taylor <iant@google.com>
2113 * c-common.c (c_common_attribute_table): Add no_split_stack.
2114 (handle_no_split_stack_attribute): New static function.
2116 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2118 Merge from 'apple/trunk' branch on FSF servers.
2120 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2123 * c-common.h (objc_have_common_type): New declaration.
2124 * stub-objc.c (objc_have_common_type): New stub.
2126 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2129 * c-common.h (objc_common_type): New prototype.
2130 * stub-objc.c (objc_common_type): New stub.
2132 2010-09-24 Jan Hubicka <jh@suse.cz>
2134 * c-common.c (handle_leaf_attribute): New function.
2135 (struct attribute_spec c_common_att): Add leaf.
2137 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2139 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2140 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2141 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2142 -include-barrier, -include-directory, -include-directory=,
2143 -include-directory-after, -include-directory-after=,
2144 -include-prefix, -include-prefix=, -include-with-prefix,
2145 -include-with-prefix=, -include-with-prefix-after,
2146 -include-with-prefix-after=, -include-with-prefix-before,
2147 -include-with-prefix-before=, -no-integrated-cpp,
2148 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2149 -output=, -pedantic, -pedantic-errors, -preprocess,
2150 -print-missing-file-dependencies, -trace-includes, -traditional,
2151 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2152 -user-dependencies, -verbose, -write-dependencies,
2153 -write-user-dependencies, no-integrated-cpp, traditional): New.
2155 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2158 * c-common.h (objc_start_method_definition): Return bool instead
2160 * stub-objc.c (objc_start_method_definition): Return bool instead
2163 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2166 * c-common.h (objc_get_interface_ivars): New declaration.
2167 * stub-objc.c (objc_get_interface_ivars): New stub.
2169 2010-09-15 Ian Lance Taylor <iant@google.com>
2171 * c-common.c (parse_optimize_options): Do not capitalize warning
2172 messages. Remove period at end of warning message.
2174 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2176 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2177 (handle_alias_attribute): ... here.
2178 (handle_ifunc_attribute): New.
2180 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2182 * c-common.h (do_warn_double_promotion): Declare.
2183 * c-common.c (do_warn_double_promotion): Define.
2185 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2187 * c.opt (Wdouble-promotion): New.
2189 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2191 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2192 fvtable-thunks, fxref): Mark no longer supported in help text.
2194 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2196 * c.opt (Wimport, fall-virtual, falt-external-templates,
2197 fdefault-inline, fenum-int-equiv, fexternal-templates,
2198 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2199 fname-mangling-version-, fnew-abi, fnonnull-objects,
2200 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2201 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2203 (fhandle-exceptions): Mark with Alias and Warn.
2204 * c-opts.c (c_common_handle_option): Don't handle options marked
2207 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2209 * c.opt (Wcomments, Werror-implicit-function-declaration,
2210 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2211 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2213 * c-common.c (option_codes): Use OPT_Wcomment instead of
2215 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2216 Don't handle options marked as aliases.
2218 2010-08-25 Richard Guenther <rguenther@suse.de>
2220 * c-common.c (c_common_get_alias_set): Remove special
2221 handling for pointers.
2223 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2225 * c-common.c: Use FOR_EACH_VEC_ELT.
2226 * c-gimplify.c: Likewise.
2227 * c-pragma.c: Likewise.
2229 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2231 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2233 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2235 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2236 instead of OPT_MDX and OPT_MMDX.
2238 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2240 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2242 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2244 * c.opt (MD, MMD): Change to MDX and MMDX.
2245 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2247 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2249 * c-opts.c (c_common_handle_option): Call handle_generated_option
2250 instead of handle_option.
2252 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2254 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2255 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2257 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2259 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2260 (pending_redefine_extname): Change type to a VEC.
2261 (add_to_renaming_pragma_list): Update for new type of
2262 pending_redefine_extname.
2263 (maybe_apply_renaming_pragma): Likewise.
2265 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2267 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2269 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2270 decide whether a type has already been declared/seen.
2271 Do not go to the original type.
2272 (dump_nested_types): New parameter forward.
2273 Generate forward declaration if needed and mark type as visited.
2274 (print_ada_declaration): Call dump_nested_types if not already done.
2275 Mark types as visited.
2277 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2279 * c.opt (-print-pch-checksum): Remove option.
2280 * c-opts.c (c_common_handle_option): Don't handle
2281 OPT_print_pch_checksum.
2283 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2285 * c-common.h (c_common_handle_option): Update prototype and return
2287 * c-opts.c (c_common_handle_option): Update prototype and return
2288 value type. Update calls to handle_option and
2289 enable_warning_as_error.
2291 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2294 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2296 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2298 * c-common.h (c_common_missing_argument): Remove.
2299 * c-opts.c (c_common_missing_argument): Remove.
2300 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2301 idirafter, imacros, include, isysroot, isystem, iquote): Add
2303 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2305 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2307 * c-common.h (c_common_option_lang_mask,
2308 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2310 (c_common_init_options): Update prototype.
2311 * c-opts.c (c_common_option_lang_mask): New.
2312 (c_common_initialize_diagnostics): Split out of
2313 c_common_init_options.
2314 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2316 (c_common_init_options): Update prototype. Use decoded options in
2317 search for -lang-asm.
2319 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2321 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2322 * c-format.c: Likewise.
2324 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2326 * c-common.h: Include diagnostic-core.h. Error if already
2328 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2330 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2332 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2333 Do not include expr.h
2334 (vector_mode_valid_p): Move here.
2336 2010-06-21 DJ Delorie <dj@redhat.com>
2338 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2339 allow these pragmas anywhere.
2341 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2344 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2345 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2346 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2347 ggc_strdup instead of xstrdup.
2349 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2351 * c-cppbuiltin.c: Include cpp-id-data.h.
2352 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2353 (lazy_hex_fp_value): New function.
2354 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2356 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2358 * c-gimplify.c: Do not include tree-flow.h
2360 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2363 * c-common.c: Rename targetm member:
2364 targetm.enum_va_list -> targetm.enum_va_list_p
2366 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2368 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2370 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2372 * c-cppbuiltin.c: Do not include except.h.
2374 2010-06-24 Andi Kleen <ak@linux.intel.com>
2376 * c-common.c (warn_for_omitted_condop): New.
2377 * c-common.h (warn_for_omitted_condop): Add prototype.
2379 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2381 * c.opt (lang-objc): Remove.
2382 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2384 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2386 * c-opts.c: Include "tm_p.h".
2388 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2390 * c-common.c (parse_optimize_options): Update call to
2393 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2395 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2396 new type of types_used_by_cur_var_decl.
2398 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2401 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2402 for C++ standard compliance.
2404 2010-06-16 Jason Merrill <jason@redhat.com>
2406 * c.opt: Add -Wnoexcept.
2408 2010-06-16 Richard Guenther <rguenther@suse.de>
2411 * c-common.c (c_common_truthvalue_conversion): Remove
2412 premature and wrong optimization concering ADDR_EXPRs.
2414 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2416 * c-ada-spec.c (dump_sloc): Remove column info.
2417 (is_simple_enum): New function.
2418 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2419 enum types when relevant.
2421 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2423 * c-common.c (conversion_warning): Warn at expression
2426 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2428 * c-opts.c (c_common_handle_option): Don't handle
2431 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2433 * c-pragma.c (push_alignment): Use typed GC allocation.
2434 (handle_pragma_push_options): Likewise.
2436 * c-common.c (parse_optimize_options): Likewise.
2438 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2441 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2443 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2444 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2445 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2446 flag_signed_bitfields, warn_strict_null_sentinel,
2447 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2448 flag_gen_declaration, flag_no_gnu_keywords,
2449 flag_implement_inlines, flag_implicit_templates,
2450 flag_implicit_inline_templates, flag_optional_diags,
2451 flag_elide_constructors, flag_default_inline, flag_rtti,
2452 flag_conserve_space, flag_access_control, flag_check_new,
2453 flag_new_for_scope, flag_weak, flag_working_directory,
2454 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2455 flag_enforce_eh_specs, flag_threadsafe_statics,
2456 flag_pretty_templates): Remove.
2457 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2458 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2459 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2460 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2461 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2462 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2463 flag_no_gnu_keywords, flag_implement_inlines,
2464 flag_implicit_templates, flag_implicit_inline_templates,
2465 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2466 flag_rtti, flag_conserve_space, flag_access_control,
2467 flag_check_new, flag_new_for_scope, flag_weak,
2468 flag_working_directory, flag_use_cxa_atexit,
2469 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2470 flag_threadsafe_statics, flag_pretty_templates,
2471 warn_strict_null_sentinel): Remove.
2472 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2473 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2474 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2475 fimplicit-inline-templates, fimplicit-templates,
2476 flax-vector-conversions, fms-extensions, fnil-receivers,
2477 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2478 frtti, fshort-double, fshort-enums, fshort-wchar,
2479 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2480 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2481 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2482 gen-decls, undef): Use Var.
2483 (fdefault-inline, foptional-diags): Document as doing nothing.
2484 * c-opts.c (c_common_handle_option): Remove cases for options now
2485 using Var. Mark ignored options as such.
2487 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2489 * c-common.c: Moved to here from parent directory.
2490 * c-common.def: Likewise.
2491 * c-common.h: Likewise.
2492 * c-cppbuiltin.c: Likewise.
2493 * c-dump.c: Likewise.
2494 * c-format.c: Likewise.
2495 * c-format.h : Likewise.
2496 * c-gimplify.c: Likewise.
2497 * c-lex.c: Likewise.
2498 * c-omp.c: Likewise.
2500 * c-opts.c: Likewise.
2501 * c-pch.c: Likewise.
2502 * c-ppoutput.c: Likewise.
2503 * c-pragma.c: Likewise.
2504 * c-pragma.h: Likewise.
2505 * c-pretty-print.c: Likewise.
2506 * c-pretty-print.h: Likewise.
2507 * c-semantics.c: Likewise.
2508 * stub-objc.c: Likewise.
2510 * c-common.c: Include gt-c-family-c-common.h.
2511 * c-pragma.c: Include gt-c-family-c-pragma.h.
2513 Copyright (C) 2010-2013 Free Software Foundation, Inc.
2515 Copying and distribution of this file, with or without modification,
2516 are permitted in any medium without royalty provided the copyright
2517 notice and this notice are preserved.