1 2012-09-18 Arnaud Charlet <charlet@adacore.com>
3 * c-ada-spec.c: Style fixes.
5 2012-09-18 Thomas Quinot <quinot@adacore.com>
7 * c.opt (-fada-spec-parent): Define new command line switch.
8 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
9 is specified, generate binding spec as a child of the specified unit.
11 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
12 Manuel López-Ibáñez <manu@gcc.gnu.org>
15 * c.opt ([Winit-self]): Enabled by -Wall in C++.
17 2012-08-23 Arnaud Charlet <charlet@adacore.com>
19 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
20 for pointers, and add missing Convention C pragma.
21 (print_ada_struct_decl): Add missing aliased keyword.
22 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
24 2012-08-17 Jakub Jelinek <jakub@redhat.com>
26 * c-common.c (sizeof_pointer_memaccess_warning): New function.
27 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
28 * c-opts.c (c_common_handle_option): Enable it for -Wall.
29 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
30 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
32 2012-08-10 Richard Guenther <rguenther@suse.de>
34 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
36 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
38 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
39 instead of separate pp_newline and pp_flush.
40 (print_c_tree): Likewise.
42 2012-07-26 Richard Henderson <rth@redhat.com>
44 * c-common.c (handle_hot_attribute): Allow labels.
45 (handle_cold_attribute): Likewise.
47 2012-07-20 Jakub Jelinek <jakub@redhat.com>
50 * c-common.c (check_function_nonnull): Handle multiple nonnull
53 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
55 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
56 * c-ada-spec.c: Likewise.
57 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
59 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
61 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
62 Remove code conditional on it.
64 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
66 * c-gimplify.c: Do not include basic-block.h.
67 * c-common.c: Do not include linfuncs.h.
69 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
71 * c-common.h: Include tree.h.
73 2012-07-02 Jason Merrill <jason@redhat.com>
76 * c-common.c (get_priority): Call default_conversion.
78 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
80 * c-pch.c (c_common_write_pch): Remove unused variables.
82 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
84 * cppspec.c: Moved from gcc/ to here.
86 2012-06-27 Kai Tietz <ktietz@redhat.com>
89 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
91 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
93 * c-common.h (c_common_print_pch_checksum): Remove.
94 * c-pch.c: Do not include output.h.
95 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
96 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
97 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
98 (struct c_pch_header): Remove.
99 (get_ident): Update gpch version.
100 (pch_init): Do not print executable_checksum to asm_out_file.
101 Do not fail if there is no asm_out_file to read back from. Set
102 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
103 (c_common_write_pch): Verify that nothing was written to asm_out_file
104 since pch_init was called. Do not write a c_pch_header, and do not
105 copy from asm_out_file to the PCH.
106 (c_common_read_pch): Do not read a c_pch_header, and do not restore
107 the content of asm_out_file from the PCH.
108 (c_common_print_pch_checksum): Remove.
109 * c-opts.c (c_common_init): Print out executable_checksum directly.
111 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
113 * c-target.def (objc_declare_unresolved_class_reference,
114 objc_declare_class_definition): Add new hooks.
116 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
118 * c-lex.c: Do not include output.h.
119 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
120 Remove uses of ASM_OUTPUT_IDENT.
122 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
125 * c-common.h (c_build_vec_perm_expr): Move decl here.
126 * c-common.c (c_build_vec_perm_expr): Move definition
129 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
131 * c.opt (fconserve-space): Turn into a no-op.
133 2012-06-04 Sterling Augustine <saugustine@google.com>
135 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
136 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
137 both the start and end of the function.
139 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
141 * c-common.c: Do not include output.h.
142 * c-pragma.c: Likewise.
144 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
146 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
147 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
148 (lang_decl_name): Handle namespace decls.
150 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
152 * c-ada-spec.c: Do not include output.h.
153 * c-semantics.c: Likewise.
155 2012-05-29 Joseph Myers <joseph@codesourcery.com>
157 * c-common.c: Fix typo.
159 2012-05-29 Michael Matz <matz@suse.de>
161 * c-common.h (c_expand_decl): Remove prototype.
163 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
165 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
166 * c-opts.c (c_common_handle_option): Remove code handling
169 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
172 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
175 2012-05-22 Dodji Seketeli <dodji@redhat.com>
178 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
180 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
182 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
183 * c-opts.c (c_common_handle_option): Do not handle explicitly
184 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
186 2012-05-16 Dodji Seketeli <dodji@redhat.com>
189 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
190 to cpp_classify_number. For diagnostics, use the precise location
191 instead of the global input_location.
193 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
196 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
198 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
200 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
202 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
205 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
206 Wreorder): Use LangEnabledBy.
207 * c-opts.c (c_common_handle_option): Do not enable them
208 explicitly. Call lang-specific generated functions.
209 (c_common_post_options): Do not set them here.
211 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
213 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
214 Wmissing-field-initializers,Wmissing-parameter-type,
215 Wold-style-declaration,Woverride-init): Use EnabledBy.
216 * c-opts.c (c_common_post_options): Do not set here explicitly.
218 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
221 * c-opts.c (c_common_handle_option): Use handle_generated_option
222 to enable sub-options.
224 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
227 * c-common.c (warnings_for_convert_and_check): Use warning_at.
229 2012-05-10 Richard Guenther <rguenther@suse.de>
231 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
232 adjust commentary about TYPE_IS_SIZETYPE types.
234 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
237 * c-common.c (warn_logical_operator): Check that argument of
238 integer_zerop is not NULL.
240 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
243 * c-common.c (warn_logical_operator): Do not warn if either side
244 is already true or false.
246 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
249 * c-common.c (expr_original_type): New.
250 (shorten_compare): Do not warn for enumeration types.
252 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
254 * c.opt (fpermissive): Add Var(flag_permissive).
256 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
259 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
260 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
262 2012-04-30 Dodji Seketeli <dodji@redhat.com>
265 * c.opt (Wvarargs): Define new option.
267 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
269 * c-common.c (check_function_arguments): Replace
270 Wmissing-format-attribute with Wsuggest-attribute=format.
272 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
274 * c.opt (Wsuggest-attribute=format): New. Alias of
275 Wmissing-format-attribute.
276 * c-format.c (decode_format_type): Replace
277 Wmissing-format-attribute with Wsuggest-attribute=format.
278 (check_function_format): Likewise.
280 2012-04-27 Ollie Wild <aaw@google.com>
282 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
283 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
284 * c.opt: Add Wliteral-suffix.
286 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
289 * c.opt (Wpedantic): New.
290 (pedantic): Alias Wpedantic.
291 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
292 (c_common_post_options): Likewise.
293 (sanitize_cpp_opts): Likewise.
294 * c-lex.c (interpret_float): Likewise.
295 * c-format.c (check_format_types): Likewise.
296 * c-common.c (pointer_int_sum): Likewise.
297 (c_sizeof_or_alignof_type): Likewise.
298 (c_add_case_label): Likewise.
299 (c_do_switch_warnings): Likewise.
300 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
302 2012-04-15 Jason Merrill <jason@redhat.com>
305 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
306 (C_STD_NAME): Distinguish between C++98 and C++11.
308 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
311 * c-common.h (uint16_type_node): Rename into...
312 (c_uint16_type_node): ...this.
313 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
314 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
316 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
318 * c-common.c (warn_if_unused_value): Move definition to here.
319 * c-common.h (warn_if_unused_value): Move declaration to here.
321 2012-03-23 William Bader <williambader@hotmail.com>
323 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
325 2012-03-20 Jason Merrill <jason@redhat.com>
327 * c-common.h (enum cxx_dialect): Add cxx1y.
328 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
330 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
331 * c-opts.c (c_common_post_options): Likewise.
332 (set_std_cxx1y): New.
333 (c_common_handle_option): Call it.
334 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
336 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
339 * c.opt ([Wuseless-cast]): Add.
341 2012-03-16 Richard Guenther <rguenther@suse.de>
343 * c-pretty-print.c (pp_c_initializer_list): Adjust.
345 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
348 * c.opt (ftemplate-backtrace-limit) Add.
350 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
352 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
354 * c-pragma.c (handle_pragma_extern_prefix): Remove.
355 (init_pragma): Don't register extern_prefix.
357 2012-03-12 Richard Guenther <rguenther@suse.de>
359 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
360 (builtin_type_for_size): Likewise.
362 2012-02-13 Jakub Jelinek <jakub@redhat.com>
365 * c-common.c (sync_resolve_params): Don't decide whether to convert
366 or not based on TYPE_SIZE comparison, convert whenever arg_type
367 is unsigned INTEGER_TYPE.
369 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
372 * c.opt ([Wunused-local-typedefs]): Fix description.
374 2012-01-24 Mike Stump <mikestump@comcast.net>
376 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
379 2012-01-18 Richard Guenther <rguenther@suse.de>
381 * c-opts.c (c_common_post_options): Reset LTO flags if
382 we are about to generate a PCH.
384 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
387 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
388 use pp_unsigned_wide_integer.
390 2012-01-10 Richard Guenther <rguenther@suse.de>
393 * c-opts.c (c_common_handle_option): Move -Werror handling
394 to language independent code.
396 2012-01-05 Richard Guenther <rguenther@suse.de>
399 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
402 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
405 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
406 of array types with an unknown bound.
408 2011-12-20 Joseph Myers <joseph@codesourcery.com>
410 * c-common.c (flag_isoc99): Update comment to refer to C11.
411 (flag_isoc1x): Change to flag_isoc11.
412 * c-common.h (flag_isoc99): Update comment to refer to C11.
413 (flag_isoc1x): Change to flag_isoc11.
414 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
416 * c-opts.c (set_std_c1x): Change to set_std_c11.
417 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
419 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
420 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
421 * c.opt (std=c1x): Change to std=c11. Document as non-draft
423 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
424 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
425 (std=gnu1x): Make alias of std=gnu11.
427 2011-12-19 Jason Merrill <jason@redhat.com>
430 * c-common.c (handle_transparent_union_attribute): Check the first
431 field if the type is complete.
433 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
436 * c-common.c (RID_IS_FINAL): Add.
437 * c-common.h (RID_IS_FINAL): Add.
439 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
441 * c.opt (fgnu-runtime): Provide full description.
442 (fnext-runtime): Likewise.
443 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
445 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
447 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
448 predefines in one place. Add LOCK_FREE predefines.
449 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
452 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
455 * c-common.c (get_atomic_generic_size): Check for various error
457 (resolve_overloaded_atomic_exchange,
458 resolve_overloaded_atomic_compare_exchange,
459 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
460 error_mark_node for error conditions.
462 2011-11-08 Richard Guenther <rguenther@suse.de>
467 2011-11-07 Richard Henderson <rth@redhat.com>
468 Aldy Hernandez <aldyh@redhat.com>
469 Torvald Riegel <triegel@redhat.com>
471 Merged from transactional-memory.
473 * c-common.c (handle_tm_wrap_attribute,
474 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
475 (struct c_common_reswords): Added __transaction* keywords.
476 (struct c_common_attribute_table): Added transaction* and tm_regparm
478 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
480 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
481 find_tm_attribute): Declare.
483 2011-11-07 Jason Merrill <jason@redhat.com>
486 * c-common.c, c-common.h: Revert yesterday's changes.
488 2011-11-06 Jason Merrill <jason@redhat.com>
491 * c-common.c (decl_has_visibility_attr): Split out from...
492 (c_determine_visibility): ...here.
493 * c-common.h: Declare it.
495 2011-11-06 Joseph Myers <joseph@codesourcery.com>
497 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
498 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
500 (check_user_alignment): New. Split out of
501 handle_aligned_attribute. Disallow integer constants with
502 noninteger types. Conditionally allow zero.
503 (handle_aligned_attribute): Use check_user_alignment.
504 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
506 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
507 Richard Henderson <rth@redhat.com>
509 Merged from cxx-mem-model.
511 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
512 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
513 parameters that are the same type size.
514 (get_atomic_generic_size): New. Find size of generic
515 atomic function parameters and do typechecking.
516 (add_atomic_size_parameter): New. Insert size into parameter list.
517 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
518 either __atomic_exchange_n or external library call.
519 (resolve_overloaded_atomic_compare_exchange): Restructure
520 __atomic_compare_exchange to either _n variant or external library call.
521 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
522 __atomic_load_n or an external library call.
523 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
524 __atomic_store_n or an external library call.
525 (resolve_overloaded_builtin): Handle new __atomic builtins.
527 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
530 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
531 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
532 <INDIRECT_REF>: Return the argument.
533 <ARRAY_REF>: Remove special code for negative offset.
534 Call fold_build_pointer_plus instead of size_binop.
535 (fold_offsetof): Remove STOP_REF argument and adjust.
536 * c-common.h (fold_offsetof_1): Declare.
537 (fold_offsetof): Remove STOP_REF argument.
539 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
542 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
543 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
544 Wnarrowing for C++0x and C++98.
545 * c.opt ([Wnarrowing]): Update.
547 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
550 * c.opt: Add Wzero-as-null-pointer-constant.
552 2011-10-31 Jason Merrill <jason@redhat.com>
554 * c.opt (-fdeduce-init-list): Off by default.
557 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
558 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
560 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
562 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
565 * c.opt (fvisibility-inlines-hidden): Description change.
567 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
569 Implement C++11 user-defined literals.
570 * c-common.c (build_userdef_literal): New.
571 * c-common.def: New tree code.
572 * c-common.h (tree_userdef_literal): New tree struct and accessors.
573 * c-lex.c (interpret_float): Add suffix parm.
574 (c_lex_with_flags): Build literal tokens.
576 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
580 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
583 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
584 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
585 Wnarrowing for C++0x and C++98.
586 * c.opt ([Wnarrowing]): Update.
588 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
591 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
592 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
593 Wnarrowing for C++0x and C++98.
594 * c.opt ([Wnarrowing]): Update.
596 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
599 * c-common.c (conversion_warning): Remove code looking for
602 2011-10-18 Dodji Seketeli <dodji@redhat.com>
605 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
606 !NO_IMPLICIT_EXTERN_C.
608 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
610 * c-common.c (c_common_reswords): Add __bases,
612 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
614 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
617 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
619 2011-10-15 Tom Tromey <tromey@redhat.com>
620 Dodji Seketeli <dodji@redhat.com>
622 * c.opt (fdebug-cpp): New option.
623 * c-opts.c (c_common_handle_option): Handle the option.
624 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
625 output stream in parameter. Factorized from ...
626 (maybe_print_line): ... this. Dump location debug information when
627 -fdebug-cpp is in effect.
628 (print_line_1): New static function. Takes an output stream in
629 parameter. Factorized from ...
630 (print_line): ... here. Dump location information when -fdebug-cpp
632 (scan_translation_unit): Dump location information when
633 -fdebug-cpp is in effect.
635 2011-10-15 Tom Tromey <tromey@redhat.com>
636 Dodji Seketeli <dodji@redhat.com>
638 * c.opt (ftrack-macro-expansion): New option. Handle it with and
640 * c-opts.c (c_common_handle_option)<case
641 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
642 cases. Handle -ftrack-macro-expansion with and without argument.
644 2011-10-15 Tom Tromey <tromey@redhat.com>
645 Dodji Seketeli <dodji@redhat.com>
647 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
648 (print_line, cb_define, do_line_change): Adjust to avoid touching
649 the internals of struct line_map. Use the public API instead.
650 * c-pch.c (c_common_read_pch): Likewise.
651 * c-lex.c (fe_file_change): Likewise.
653 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
656 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
658 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
661 * c-pretty-print.c (pp_c_floating_constant): Output
662 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
664 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
666 * c-common.c (def_builtin_1): Delete old interface with two
667 parallel arrays to hold standard builtin declarations, and replace
668 it with a function based interface that can support creating
669 builtins on the fly in the future. Change all uses, and poison
670 the old names. Make sure 0 is not a legitimate builtin index.
671 * c-omp.c (c_finish_omp_barrier): Ditto.
672 (c_finish_omp_taskwait): Ditto.
673 (c_finish_omp_flush): Ditto.
675 2011-10-11 Tristan Gingold <gingold@adacore.com>
677 * c.opt: (fallow-parameterless-variadic-functions): New.
679 2011-09-08 Dodji Seketeli <dodji@redhat.com>
681 PR c++/33255 - Support -Wunused-local-typedefs warning
682 * c-common.h (struct c_language_function::local_typedefs): New
684 (record_locally_defined_typedef, maybe_record_typedef_use)
685 (maybe_warn_unused_local_typedefs): Declare new functions.
686 * c-common.c (record_locally_defined_typedef)
687 (maybe_record_typedef_use)
688 (maybe_warn_unused_local_typedefs): Define new functions.
689 * c.opt: Declare new -Wunused-local-typedefs flag.
691 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
694 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
697 2011-09-05 Richard Guenther <rguenther@suse.de>
699 * c-common.c (complete_array_type): Use ssize_int (-1) instead
700 of integer_minus_one_node for empty array upper bounds.
702 2011-08-28 Dodji Seketeli <dodji@redhat.com>
704 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
705 it's the first time it's being called on this main TU.
707 2011-08-24 Richard Guenther <rguenther@suse.de>
710 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
712 2011-08-22 Gabriel Charette <gchare@google.com>
714 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
715 defined in cpp_init_builtins and c_cpp_builtins.
717 2011-08-19 Joseph Myers <joseph@codesourcery.com>
719 * c-common.c (c_common_reswords): Add __builtin_complex.
720 * c-common.h (RID_BUILTIN_COMPLEX): New.
722 2011-08-18 Joseph Myers <joseph@codesourcery.com>
724 * c-common.c (c_common_reswords): Add _Noreturn.
725 (keyword_is_function_specifier): Handle RID_NORETURN.
726 * c-common.h (RID_NORETURN): New.
728 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
730 * c-common.c (unsafe_conversion_p): New function. Check if it is
731 unsafe to convert an expression to the type.
732 (conversion_warning): Adjust, use unsafe_conversion_p.
733 * c-common.h (unsafe_conversion_p): New function declaration.
735 2011-08-02 Jakub Jelinek <jakub@redhat.com>
737 * c-common.h (c_finish_omp_atomic): Adjust prototype.
738 (c_finish_omp_taskyield): New prototype.
739 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
740 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
741 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
742 or RHS1 have side-effects, evaluate those too in the right spot,
743 if it is a decl and LHS is also a decl, error out if they
745 (c_finish_omp_taskyield): New function.
746 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
747 * c-pragma.c (omp_pragmas): Add taskyield.
748 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
749 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
750 PRAGMA_OMP_CLAUSE_MERGEABLE.
752 2011-07-25 Dodji Seketeli <dodji@redhat.com>
754 * c-common.h (set_underlying_type): Remove parm name from
757 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
759 * c-pretty-print.h: Search c-common.h in c-family.
761 2011-07-22 Jason Merrill <jason@redhat.com>
764 * c.opt (Wnarrowing): New.
767 * c-common.h: Declare c_linkage_bindings.
768 * c-pragma.c (handle_pragma_redefine_extname): Use it.
771 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
772 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
773 as flag_isoc99 for 'restrict'.
774 (pp_c_specifier_qualifier_list): Likewise for _Complex.
776 2011-07-21 Ian Lance Taylor <iant@google.com>
779 * c-common.c (c_disable_warnings): New static function.
780 (c_enable_warnings): New static function.
781 (c_fully_fold_internal): Change local unused_p to bool. Call
782 c_disable_warnings and c_enable_warnings rather than change
783 c_inhibit_evaluation_warnings.
785 2011-07-20 Jason Merrill <jason@redhat.com>
788 PR c++/42603 (DR 950)
789 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
790 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
792 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
794 2011-07-19 Richard Guenther <rguenther@suse.de>
796 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
797 * c-omp.c (c_finish_omp_for): Likewise.
799 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
801 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
802 body on the next line.
804 2011-07-08 Jason Merrill <jason@redhat.com>
807 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
810 * c-common.c (c_apply_type_quals_to_decl): Don't check
811 TYPE_NEEDS_CONSTRUCTING.
813 2011-07-06 Richard Guenther <rguenther@suse.de>
815 * c-common.c (c_common_nodes_and_builtins):
816 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
818 2011-07-05 Richard Guenther <rguenther@suse.de>
820 * c-common.c (c_common_nodes_and_builtins): Build all common
823 2011-06-27 Jakub Jelinek <jakub@redhat.com>
825 * c-common.h (c_tree_chain_next): New static inline function.
827 * c-common.c (check_builtin_function_arguments): Handle
828 BUILT_IN_ASSUME_ALIGNED.
830 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
832 * c-common.c: Add sync_ or SYNC__ to builtin names.
833 * c-omp.c: Add sync_ or SYNC__ to builtin names.
835 2011-06-20 Pierre Vittet <piervit@pvittet.com>
837 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
839 (gen_pragma_handler): New union.
840 (internal_pragma_handler): New type.
841 (c_register_pragma_with_data)
842 (c_register_pragma_with_expansion_and_data): New functions.
844 * c-pragma.c (registered_pragmas, c_register_pragma_1)
845 (c_register_pragma, c_register_pragma_with_expansion)
846 (c_invoke_pragma_handler): Changed to work with
847 internal_pragma_handler.
848 (c_register_pragma_with_data)
849 (c_register_pragma_with_expansion_and_data): New functions.
851 2011-06-14 Joseph Myers <joseph@codesourcery.com>
853 * c-common.c: Include common/common-target.h.
854 (handle_section_attribute): Use
855 targetm_common.have_named_sections.
856 * c-cppbuiltin.c: Include common/common-target.h.
857 (c_cpp_builtins): Use targetm_common.except_unwind_info.
859 2011-06-10 Richard Guenther <rguenther@suse.de>
861 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
862 to print a IDENTIFIER_NODE.
864 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
865 Joseph Myers <joseph@codesourcery.com>
867 * c.opt (fbuilding-libgcc): New option.
868 * c-cppbuiltin.c (c_cpp_builtins): Define
869 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
871 2011-06-07 Jason Merrill <jason@redhat.com>
873 * c-common.c (max_tinst_depth): Lower default to 900.
875 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
877 2011-06-07 Richard Guenther <rguenther@suse.de>
879 * c-common.c (c_common_nodes_and_builtins): Do not set
880 size_type_node or call set_sizetype.
882 2011-06-07 Dodji Seketeli <dodji@redhat.com>
885 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
886 type when using pointer comparison to compare types.
888 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
890 * c.opt: Add -Wdelete-non-virtual-dtor.
891 * c-opts.c (c_common_handle_option): Include it in -Wall.
893 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
898 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
900 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
903 2011-05-27 Jakub Jelinek <jakub@redhat.com>
906 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
907 C++ don't call c_common_truthvalue_conversion on void type arms.
909 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
911 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
912 (stmt_list_stack): Define.
913 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
914 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
916 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
918 * c-common.c (warning_candidate_p): Check for BLOCKs.
920 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
922 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
925 2011-05-25 Jakub Jelinek <jakub@redhat.com>
927 * c-common.c (def_fn_type): Remove extra va_end.
929 2011-05-23 Jason Merrill <jason@redhat.com>
932 * c-common.c (c_common_get_narrower): New.
933 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
935 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
937 * c-common.h (check_function_arguments): Tweak prototype of
938 check_function_arguments.
939 * c-common.c (check_function_arguments): Likewise. Adjust
940 calls to check_function_nonnull, check_function_format, and
941 check_function_sentinel.
942 (check_function_sentinel): Take a FUNCTION_TYPE rather than
943 separate attributes and typelist arguments. Use
944 FOREACH_FUNCTION_ARGS to iterate over argument types.
946 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
948 * c-common.c (c_common_reswords): Reorder.
949 * c-common.h (rid): Likewise.
951 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
953 * c-common.c (def_fn_type): Don't call build_function_type, call
954 build_function_type_array or build_varargs_function_type_array
956 (c_common_nodes_and_builtins): Likewise.
958 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
960 * c-common.c (c_add_case_label): Omit the loc argument to
962 * c-common.h (build_case_label): Remove.
963 * c-semantics.c (build_case_label): Remove.
965 2011-05-05 Joseph Myers <joseph@codesourcery.com>
967 * c-objc.h (objc_start_method_definition): Update prototype.
968 * stub-objc.c (objc_start_method_definition): Add extra parameter.
970 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
972 * c-common.c (check_main_parameter_types): Reindent. Don't use
973 TYPE_ARG_TYPES directly.
974 (handle_nonnull_attribute): Likewise.
975 (sync_resolve_params): Likewise.
976 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
977 to check_format_string.
978 (handle_format_attribute): Likewise.
979 (check_format_string): Take a function type to examine instead of
980 a type list. Use a function_arg_iterator to step through argument
983 2011-05-04 Richard Guenther <rguenther@suse.de>
985 * c-common.c (fix_string_type): Use size_int for index type bounds.
986 (start_fname_decls): Do not pass NULL to build_int_cst.
987 (c_init_attributes): Likewise.
988 * c-lex.c (c_lex_with_flags): Likewise.
990 2011-04-27 Jason Merrill <jason@redhat.com>
992 * c-common.c (make_tree_vector_from_list): New.
993 * c-common.h: Declare it.
995 2011-04-26 Richard Guenther <rguenther@suse.de>
997 PR preprocessor/48248
998 * c-ppoutput.c (maybe_print_line): Always optimize newlines
999 for output size with -P.
1001 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1003 * c-common.c (struct c_common_resword): Add __underlying_type.
1004 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1006 2011-04-20 Jim Meyering <meyering@redhat.com>
1008 * c-format.c (init_dollar_format_checking): Remove useless
1011 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1013 * c-objc.h (objc_get_interface_ivars): Removed.
1014 (objc_detect_field_duplicates): New.
1015 * stub-objc.c: Likewise.
1017 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1019 * stub-objc.c (objc_declare_protocols): Renamed to
1020 objc_declare_protocol.
1021 * c-objc.h: Likewise.
1023 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1025 * stub-objc.c (objc_declare_class): Updated argument name.
1027 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1029 * c-common.h (c_common_init_ts): Declare.
1030 * c-common.c (c_common_init_ts): Define.
1032 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1034 * c-objc.h (objc_build_message_expr): Updated prototype.
1035 * stub-objc.c (objc_build_message_expr): Likewise.
1037 2011-04-12 Martin Jambor <mjambor@suse.cz>
1039 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1042 2011-04-11 Richard Guenther <rguenther@suse.de>
1044 * c-common.c (complete_array_type): Build a range type of
1047 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1049 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1050 (handle_type_generic_attribute): Likewise.
1052 2011-04-07 Jason Merrill <jason@redhat.com>
1055 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1056 conversion from C++0x scoped enum.
1058 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1060 * c-target-def.h: New file.
1061 * c-target.def: New file.
1062 * c-target.h: New file.
1063 * c-common.c (targetcm): Don't define here.
1064 * c-common.h (default_handle_c_option): Declare.
1065 * c-format.c: Include c-target.h instead of target.h.
1066 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1068 (default_handle_c_option): Move from targhooks.c.
1070 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1072 PR preprocessor/48248
1073 * c-ppoutput.c (print): Add src_file field.
1074 (init_pp_output): Initialize it.
1075 (maybe_print_line): Don't optimize by adding up to 8 newlines
1076 if map->to_file and print.src_file are different file.
1077 (print_line): Update print.src_file.
1079 2011-03-25 Kai Tietz <ktietz@redhat.com>
1081 * c-ada-spec.c (compare_comment): Use filename_cmp
1082 instead of strcmp for filename.
1084 2011-03-25 Jeff Law <law@redhat.com>
1086 * c-family/c-common.c (def_fn_type): Add missing va_end.
1088 2011-03-25 Jason Merrill <jason@redhat.com>
1090 * c.opt: Add -std=c++03.
1092 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1094 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1096 2011-03-17 Kai Tietz
1099 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1100 Display allowed attributes for function pointer types.
1101 (pp_c_attributes_display): New function to display
1102 attributes having affects_type_identity flag set to true.
1103 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1105 * c-common.c (c_common_attribute_table):
1107 (c_common_format_attribute_table): Likewise.
1109 2011-03-18 Jason Merrill <jason@redhat.com>
1111 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1112 * c-common.h: Don't declare it here.
1113 * c-common.c: Or define it here.
1114 * c-opts.c (c_common_handle_option): Or set it here.
1117 * c-common.c (handle_transparent_union_attribute): Don't
1118 make a duplicate type in C++.
1120 2011-03-15 Jason Merrill <jason@redhat.com>
1122 * c-common.c (max_constexpr_depth): New.
1123 * c-common.h: Declare it.
1124 * c-opts.c (c_common_handle_option): Set it.
1125 * c.opt (fconstexpr-depth): New option.
1127 2011-03-11 Jason Merrill <jason@redhat.com>
1129 * c-common.c (attribute_takes_identifier_p): Add missing const.
1132 * c-common.c (attribute_takes_identifier_p): Assume that an
1133 unknown attribute takes an identifier.
1135 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1138 * c-common.c (c_type_hash): Call list_length instead of iterating
1139 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1141 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1144 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1146 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1148 * c.opt (fobjc-abi-version=) New.
1149 (fobjc-nilcheck): New.
1151 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1154 * c-common.h (keyword_is_decl_specifier): Declare.
1155 * c-common.c (keyword_is_decl_specifier): Define.
1156 (keyword_is_function_specifier): New function.
1158 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1161 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1162 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1165 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1167 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1169 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1172 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1173 after init_c_lex if pch_file is set.
1175 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1178 * c.opt (-fkeep-inline-dllexport): New switch.
1180 2011-01-12 Richard Guenther <rguenther@suse.de>
1183 * c-common.c (handle_weak_attribute): Warn instead of error
1184 on declaring an inline function weak.
1186 2011-01-05 Tom Tromey <tromey@redhat.com>
1188 * c-common.h (lvalue_error): Update.
1189 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1192 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1195 * c-objc.h (objc_finish_message_expr): Added argument to
1198 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1200 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1203 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1205 * c-objc.h (objc_maybe_warn_exceptions): New.
1206 * stub-objc.c (objc_maybe_warn_exceptions): New.
1208 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1210 * c-common.h (readonly_error): Declare.
1211 * c-common.c (readonly_error): Define.
1213 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1215 * c-common.h (invalid_indirection_error): Declare.
1216 * c-common.c (invalid_indirection_error): Define.
1218 2010-12-03 Richard Guenther <rguenther@suse.de>
1221 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1222 (pp_c_unary_expression): Likewise.
1223 (pp_c_expression): Likewise.
1225 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1227 * c-common.h (objc_finish_function): New.
1228 (objc_non_volatilized_type): Removed.
1229 (objc_type_quals_match): Removed.
1230 * stub-objc.c (objc_finish_function): New.
1231 (objc_non_volatilized_type): Removed.
1232 (objc_type_quals_match): Removed.
1234 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1236 * c-common.h (parse_optimize_options): Declare.
1237 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1238 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1240 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1242 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1244 * c-pch.c (O_BINARY): Don't define here.
1245 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1247 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1249 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1250 targetm.except_unwind_info.
1252 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1254 * c-opts.c (c_common_handle_option): Pass location to
1255 set_struct_debug_option.
1257 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1259 * c-common.c (visibility_options): Move from ../opts.c.
1260 * c-common.h (struct visibility_flags, visibility_options):
1262 * c-opts.c (finish_options): Rename to c_finish_options.
1263 (c_common_init): Update call to finish_options.
1265 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1268 * c-lex.c (lex_string): Check that each string in an Objective-C
1269 string concat sequence starts with either one or zero '@', and
1270 that there are no spurious '@' signs at the end.
1272 2010-11-20 Joseph Myers <joseph@codesourcery.com>
1274 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1275 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1276 HANDLE_PRAGMA_VISIBILITY.
1277 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1278 HANDLE_PRAGMA_VISIBILITY): Don't define.
1279 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1281 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1286 * c-common.h (keyword_begins_type_specifier): Declare.
1287 (keyword_is_storage_class_specifier): Declare.
1288 (keyword_is_type_qualifier): Declare.
1289 * c-common.c (keyword_begins_type_specifier): New function.
1290 (keyword_is_storage_class_specifier): New function.
1291 (keyword_is_type_qualifier): Declare.
1293 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1296 * c-common.c (in_late_binary_op): Define.
1297 (c_common_truthvalue_conversion): Check in_late_binary_op before
1298 calling c_save_expr.
1299 * c-common.h (in_late_binary_op): Declare.
1301 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1303 * c-opts.c (c_common_handle_option): Update calls to
1304 set_struct_debug_option.
1306 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1308 * c-common.h (objc_declare_protocols): Added additional argument.
1309 * stub-objc.c (objc_declare_protocol): Same change.
1311 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1314 * c-common.h (build_real_imag_expr): Declare.
1315 * c-semantics.c (build_real_imag_expr): Define.
1317 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1319 * c-opts.c (c_common_parse_file): Take no arguments.
1320 * c-common.h (c_common_parse_file): Update prototype.
1322 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1325 * c-common.c (warning_candidate_p): Don't track non-const calls
1328 2010-11-15 Ian Lance Taylor <iant@google.com>
1330 * c-lex.c (init_c_lex): Set macro debug callbacks if
1331 flag_dump_go_spec is set.
1333 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1335 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1336 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1338 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1340 PR preprocessor/45038
1341 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1344 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1346 * c-common.h (c_family_lang_mask): Declare.
1347 * c-opts.c (c_family_lang_mask): Make extern.
1348 * c-pragma.c (handle_pragma_diagnostic): Use
1349 control_warning_option.
1351 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1353 * c-common.c (parse_optimize_options): Update call to
1355 * c-common.h (c_common_handle_option): Update prototype.
1356 * c-opts.c (c_common_handle_option): Take location_t parameter and
1357 pass it to other functions.
1359 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1361 * c-opts.c (warning_as_error_callback): Remove.
1362 (c_common_initialize_diagnostics): Don't call
1363 register_warning_as_error_callback.
1364 (c_common_handle_option): Handle -Werror=normalized= here.
1366 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1368 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1370 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1372 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1373 Remove trailing '.' from diagnostics.
1374 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1376 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1378 * c-common.c (parse_optimize_options): Pass global_dc to
1380 * c-opts.c (c_common_handle_option): Pass &global_options to
1381 set_Wstrict_aliasing.
1382 * c.opt (v): Don't mark Common or document here.
1384 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1387 * c-format.c (format_type): New type gcc_objc_string_format_type.
1388 (valid_stringptr_type_p): New.
1389 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1390 (check_format_string): Pass expected type, use
1391 valid_stringptr_type_p (), check that the format string types are
1392 consistent with the format specification.
1393 (decode_format_attr): Warn if NSString is used outside objective-c.
1394 (format_types_orig): Add NSString.
1396 (format_flags): New.
1397 (check_format_arg): Handle format strings requiring an external parser.
1398 first_target_format_type: New variable.
1399 (handle_format_attribute): Set up first_target_format_type, pass the
1400 expected format arg string type to check_format_string().
1401 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1402 * stub-objc.c (objc_string_ref_type_p): New.
1403 (objc_check_format_arg): New.
1405 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1407 Fixed using the Objective-C 2.0 dot-syntax with class names.
1408 * c-common.h (objc_build_class_component_ref): New.
1409 * stub-objc.c (objc_build_class_component_ref): New.
1411 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1413 * c.opt (Wproperty-assign-default): New option.
1415 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1417 Implemented -fobjc-std=objc1 flag.
1418 * c.opt (fobjc-std=objc1): New option.
1420 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1422 Implemented format and noreturn attributes for Objective-C methods.
1423 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1424 attribute for Objective-C methods.
1426 2010-10-31 Jason Merrill <jason@redhat.com>
1428 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1431 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1433 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1434 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1435 (objc_add_property_declaration): Removed arguments for copies and
1437 (objc_build_getter_call): Renamed to
1438 objc_maybe_build_component_ref.
1439 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1440 (objc_is_property_ref): New.
1441 * c-common.c (c_common_reswords): Removed copies and ivar.
1442 * stub-objc.c (objc_add_property_declaration): Removed arguments
1443 for copies and ivar.
1444 (objc_build_getter_call): Renamed to
1445 objc_maybe_build_component_ref.
1446 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1447 (objc_is_property_ref): New.
1449 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1450 Matthew Gingell <gingell@adacore.com>
1452 * c-ada-spec.c (separate_class_package): New function.
1453 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1454 name of their enclosing package.
1455 (print_ada_declaration): Use separate_class_package.
1457 2010-10-27 Jason Merrill <jason@redhat.com>
1459 * c-common.c (c_common_reswords): Add __is_literal_type.
1460 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1462 * c-common.c (check_case_value): Remove special C++ code.
1464 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1466 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1467 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1469 (objc_add_property_declaration): Added additional arguments.
1470 (objc_property_attribute_kind): Removed.
1471 (objc_set_property_attr): Removed.
1472 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1474 * stub-objc.c (objc_add_property_declaration): Added additional
1476 (objc_set_property_attr): Removed.
1478 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1480 * c-common.h (objc_add_property_variable): Renamed to
1481 objc_add_property_declaration. Added location argument.
1482 * stub-objc.c (objc_add_property_variable): Same change.
1484 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1486 * c-common.h (objc_maybe_printable_name): New.
1487 * stub-objc.c (objc_maybe_printable_name): New.
1489 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1490 Andrew Pinski <pinskia@gmail.com>
1492 * c-common.h (c_common_mark_addressable_vec): Declare.
1493 * c-common.c (c_common_mark_addressable_vec): New function.
1495 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1497 * c-common.h (objc_set_method_type): Removed.
1498 (objc_add_method_declaration): Added boolean argument.
1499 (objc_start_method_definition): Same change.
1500 (objc_build_method_signature): Same change.
1501 * stub-objc.c (objc_set_method_type): Removed.
1502 (objc_add_method_declaration): Added boolean argument.
1503 (objc_start_method_definition): Same change.
1504 (objc_build_method_signature): Same change.
1506 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1508 * c-common.h (finish_file): Removed.
1509 (objc_write_global_declarations): New.
1510 * c-opts.c (c_common_parse_file): Do not call finish_file.
1511 * stub-objc.c (objc_write_global_declarations): New.
1513 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1515 Implemented parsing @synthesize and @dynamic for
1516 Objective-C/Objective-C++.
1517 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1518 (objc_add_synthesize_declaration): New.
1519 (objc_add_dynamic_declaration): New.
1520 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1521 * stub-objc.c (objc_add_synthesize_declaration): New.
1522 (objc_add_dynamic_declaration): New.
1524 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1527 * c-cppbuiltin.c (mode_has_fma): Move function here from
1528 builtins.c. Don't use the fma optab, instead just use the
1529 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1532 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1534 Merge from 'apple/trunk' branch on FSF servers.
1536 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1539 * c-common.h (objc_non_volatilized_type): New declaration
1540 * stub-objc.c (objc_non_volatilized_type): New stub.
1542 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1544 Merge from 'apple/trunk' branch on FSF servers.
1546 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1549 * c-common.h (objc_diagnose_private_ivar): New decl.
1550 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1552 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1554 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1555 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1556 (objc_ivar_visibility_kind): New enum.
1557 (objc_set_visibility): Adjust prototype to use visibility enum.
1558 * stub-objc.c (objc_set_visibility): Adjust stub to use
1561 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1563 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1564 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1565 has the appropriate fma builtins.
1566 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1568 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1570 merge from FSF apple 'trunk' branch.
1571 2006 Fariborz Jahanian <fjahanian@apple.com>
1573 Radars 4436866, 4505126, 4506903, 4517826
1574 * c-common.c (c_common_resword): Define @property and its attributes.
1575 * c-common.h: Define property attribute enum entries.
1576 (OBJC_IS_PATTR_KEYWORD): New.
1577 (objc_property_attribute_kind): New enum.
1578 Declare objc_set_property_attr (), objc_add_property_variable (),
1579 objc_build_getter_call () and objc_build_setter_call ().
1580 * stub-objc.c (objc_set_property_attr): New stub.
1581 (objc_add_property_variable): Likewise.
1582 (objc_build_getter_call): Likewise.
1583 (objc_build_setter_call) Likewise.
1585 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1587 merge from FSF apple 'trunk' branch.
1588 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1590 Radar 3803157 (method attributes)
1591 * c-common.c (handle_deprecated_attribute): Recognize
1592 objc methods as valid declarations.
1593 * c-common.h: Declare objc_method_decl ().
1594 * stub-objc.c (objc_method_decl): New stub.
1596 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1598 * c-common.c (parse_optimize_options): Call
1599 decode_cmdline_options_to_array_default_mask before
1600 decode_options. Update arguments to decode_options.
1601 * c-common.h (c_common_init_options_struct): Declare.
1602 * c-opts.c (c_common_init_options_struct): New. Split out from
1603 c_common_init_options.
1605 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1607 Implemented fast enumeration for Objective-C.
1608 * c-common.h (objc_finish_foreach_loop): New.
1609 * stub-objc.c (objc_finish_foreach_loop): New.
1611 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1613 * c-common.h (struct diagnostic_context): Don't declare here.
1614 (c_common_initialize_diagnostics): Declare using
1615 diagnostic_context typedef.
1616 * c-opts.c (c_common_handle_option): Pass global_dc to
1617 handle_generated_option.
1619 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1621 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1622 handle_generated_option.
1624 2010-10-03 Ian Lance Taylor <iant@google.com>
1626 * c.opt (-fplan9-extensions): New option.
1628 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1630 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1632 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1633 of duplicating code.
1635 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1637 * c-common.c: Add two new entries for @optional
1638 and @required keywords.
1640 merge from FSF 'apple/trunk' branch.
1641 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1644 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1645 objective-c keywords.
1646 (objc_set_method_opt): New declaration.
1647 * stub-objc.c (objc_set_method_opt): New stub.
1649 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1651 * c-common.c (handle_optimize_attribute): Pass &global_options to
1652 cl_optimization_save and cl_optimization_restore.
1653 * c-opts.c (c_common_handle_option): Pass &global_options to
1654 handle_generated_option.
1655 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1656 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1657 &global_options to cl_optimization_restore.
1659 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1661 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1662 Objective-C/Objective-C++ keywords.
1664 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1666 Merge from 'apple/trunk' branch on FSF servers.
1668 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1671 * c-common.h (objc_check_global_decl): New declaration.
1672 * stub-objc.c (objc_check_global_decl): New stub.
1674 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1676 * c.opt: Don't use VarExists.
1678 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1680 * c-common.c (c_cpp_error): Update names of diagnostic_context
1682 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1683 cl_optimization members.
1684 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1685 sanitize_cpp_opts, finish_options): Update names of cpp_options
1688 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1690 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1691 (objc_is_reserved_word): Removed.
1692 * c-common.c: Updated comments.
1693 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1694 objc_is_reserved_word.
1695 * stub-objc.c (objc_is_reserved_word): Removed.
1697 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1699 * c-common.h (objc_add_method_declaration): Adjust prototype to
1701 (objc_start_method_definition): Likewise.
1702 (objc_build_keyword_decl): Likewise.
1703 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1704 (objc_start_method_definition): Likewise.
1705 (objc_build_keyword_decl): Likewise.
1707 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1709 * c-common.h (objc_start_class_interface): Adjust prototype.
1710 (objc_start_category_interface): Likewise.
1711 (objc_start_protocol): Likewise.
1712 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1713 (objc_start_class_interface): Likewise.
1714 (objc_start_category_interface): Likewise.
1716 2010-09-27 Ian Lance Taylor <iant@google.com>
1718 * c-common.c (c_common_attribute_table): Add no_split_stack.
1719 (handle_no_split_stack_attribute): New static function.
1721 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1723 Merge from 'apple/trunk' branch on FSF servers.
1725 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1728 * c-common.h (objc_have_common_type): New declaration.
1729 * stub-objc.c (objc_have_common_type): New stub.
1731 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1734 * c-common.h (objc_common_type): New prototype.
1735 * stub-objc.c (objc_common_type): New stub.
1737 2010-09-24 Jan Hubicka <jh@suse.cz>
1739 * c-common.c (handle_leaf_attribute): New function.
1740 (struct attribute_spec c_common_att): Add leaf.
1742 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1744 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1745 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1746 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1747 -include-barrier, -include-directory, -include-directory=,
1748 -include-directory-after, -include-directory-after=,
1749 -include-prefix, -include-prefix=, -include-with-prefix,
1750 -include-with-prefix=, -include-with-prefix-after,
1751 -include-with-prefix-after=, -include-with-prefix-before,
1752 -include-with-prefix-before=, -no-integrated-cpp,
1753 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1754 -output=, -pedantic, -pedantic-errors, -preprocess,
1755 -print-missing-file-dependencies, -trace-includes, -traditional,
1756 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1757 -user-dependencies, -verbose, -write-dependencies,
1758 -write-user-dependencies, no-integrated-cpp, traditional): New.
1760 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1763 * c-common.h (objc_start_method_definition): Return bool instead
1765 * stub-objc.c (objc_start_method_definition): Return bool instead
1768 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1771 * c-common.h (objc_get_interface_ivars): New declaration.
1772 * stub-objc.c (objc_get_interface_ivars): New stub.
1774 2010-09-15 Ian Lance Taylor <iant@google.com>
1776 * c-common.c (parse_optimize_options): Do not capitalize warning
1777 messages. Remove period at end of warning message.
1779 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1781 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1782 (handle_alias_attribute): ... here.
1783 (handle_ifunc_attribute): New.
1785 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1787 * c-common.h (do_warn_double_promotion): Declare.
1788 * c-common.c (do_warn_double_promotion): Define.
1790 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1792 * c.opt (Wdouble-promotion): New.
1794 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1796 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1797 fvtable-thunks, fxref): Mark no longer supported in help text.
1799 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1801 * c.opt (Wimport, fall-virtual, falt-external-templates,
1802 fdefault-inline, fenum-int-equiv, fexternal-templates,
1803 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1804 fname-mangling-version-, fnew-abi, fnonnull-objects,
1805 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1806 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1808 (fhandle-exceptions): Mark with Alias and Warn.
1809 * c-opts.c (c_common_handle_option): Don't handle options marked
1812 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1814 * c.opt (Wcomments, Werror-implicit-function-declaration,
1815 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1816 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1818 * c-common.c (option_codes): Use OPT_Wcomment instead of
1820 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1821 Don't handle options marked as aliases.
1823 2010-08-25 Richard Guenther <rguenther@suse.de>
1825 * c-common.c (c_common_get_alias_set): Remove special
1826 handling for pointers.
1828 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1830 * c-common.c: Use FOR_EACH_VEC_ELT.
1831 * c-gimplify.c: Likewise.
1832 * c-pragma.c: Likewise.
1834 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1836 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1838 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1840 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1841 instead of OPT_MDX and OPT_MMDX.
1843 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1845 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1847 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1849 * c.opt (MD, MMD): Change to MDX and MMDX.
1850 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1852 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1854 * c-opts.c (c_common_handle_option): Call handle_generated_option
1855 instead of handle_option.
1857 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1859 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1860 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1862 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1864 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1865 (pending_redefine_extname): Change type to a VEC.
1866 (add_to_renaming_pragma_list): Update for new type of
1867 pending_redefine_extname.
1868 (maybe_apply_renaming_pragma): Likewise.
1870 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1872 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1874 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1875 decide whether a type has already been declared/seen.
1876 Do not go to the original type.
1877 (dump_nested_types): New parameter forward.
1878 Generate forward declaration if needed and mark type as visited.
1879 (print_ada_declaration): Call dump_nested_types if not already done.
1880 Mark types as visited.
1882 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1884 * c.opt (-print-pch-checksum): Remove option.
1885 * c-opts.c (c_common_handle_option): Don't handle
1886 OPT_print_pch_checksum.
1888 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1890 * c-common.h (c_common_handle_option): Update prototype and return
1892 * c-opts.c (c_common_handle_option): Update prototype and return
1893 value type. Update calls to handle_option and
1894 enable_warning_as_error.
1896 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1899 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1901 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1903 * c-common.h (c_common_missing_argument): Remove.
1904 * c-opts.c (c_common_missing_argument): Remove.
1905 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1906 idirafter, imacros, include, isysroot, isystem, iquote): Add
1908 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1910 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1912 * c-common.h (c_common_option_lang_mask,
1913 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1915 (c_common_init_options): Update prototype.
1916 * c-opts.c (c_common_option_lang_mask): New.
1917 (c_common_initialize_diagnostics): Split out of
1918 c_common_init_options.
1919 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1921 (c_common_init_options): Update prototype. Use decoded options in
1922 search for -lang-asm.
1924 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1926 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1927 * c-format.c: Likewise.
1929 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1931 * c-common.h: Include diagnostic-core.h. Error if already
1933 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1935 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1937 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1938 Do not include expr.h
1939 (vector_mode_valid_p): Move here.
1941 2010-06-21 DJ Delorie <dj@redhat.com>
1943 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1944 allow these pragmas anywhere.
1946 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1949 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1950 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1951 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1952 ggc_strdup instead of xstrdup.
1954 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1956 * c-cppbuiltin.c: Include cpp-id-data.h.
1957 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1958 (lazy_hex_fp_value): New function.
1959 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1961 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1963 * c-gimplify.c: Do not include tree-flow.h
1965 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1968 * c-common.c: Rename targetm member:
1969 targetm.enum_va_list -> targetm.enum_va_list_p
1971 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1973 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1975 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1977 * c-cppbuiltin.c: Do not include except.h.
1979 2010-06-24 Andi Kleen <ak@linux.intel.com>
1981 * c-common.c (warn_for_omitted_condop): New.
1982 * c-common.h (warn_for_omitted_condop): Add prototype.
1984 2010-06-21 Joseph Myers <joseph@codesourcery.com>
1986 * c.opt (lang-objc): Remove.
1987 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1989 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1991 * c-opts.c: Include "tm_p.h".
1993 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1995 * c-common.c (parse_optimize_options): Update call to
1998 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2000 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2001 new type of types_used_by_cur_var_decl.
2003 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2006 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2007 for C++ standard compliance.
2009 2010-06-16 Jason Merrill <jason@redhat.com>
2011 * c.opt: Add -Wnoexcept.
2013 2010-06-16 Richard Guenther <rguenther@suse.de>
2016 * c-common.c (c_common_truthvalue_conversion): Remove
2017 premature and wrong optimization concering ADDR_EXPRs.
2019 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2021 * c-ada-spec.c (dump_sloc): Remove column info.
2022 (is_simple_enum): New function.
2023 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2024 enum types when relevant.
2026 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2028 * c-common.c (conversion_warning): Warn at expression
2031 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2033 * c-opts.c (c_common_handle_option): Don't handle
2036 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2038 * c-pragma.c (push_alignment): Use typed GC allocation.
2039 (handle_pragma_push_options): Likewise.
2041 * c-common.c (parse_optimize_options): Likewise.
2043 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2046 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2048 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2049 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2050 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2051 flag_signed_bitfields, warn_strict_null_sentinel,
2052 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2053 flag_gen_declaration, flag_no_gnu_keywords,
2054 flag_implement_inlines, flag_implicit_templates,
2055 flag_implicit_inline_templates, flag_optional_diags,
2056 flag_elide_constructors, flag_default_inline, flag_rtti,
2057 flag_conserve_space, flag_access_control, flag_check_new,
2058 flag_new_for_scope, flag_weak, flag_working_directory,
2059 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2060 flag_enforce_eh_specs, flag_threadsafe_statics,
2061 flag_pretty_templates): Remove.
2062 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2063 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2064 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2065 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2066 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2067 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2068 flag_no_gnu_keywords, flag_implement_inlines,
2069 flag_implicit_templates, flag_implicit_inline_templates,
2070 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2071 flag_rtti, flag_conserve_space, flag_access_control,
2072 flag_check_new, flag_new_for_scope, flag_weak,
2073 flag_working_directory, flag_use_cxa_atexit,
2074 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2075 flag_threadsafe_statics, flag_pretty_templates,
2076 warn_strict_null_sentinel): Remove.
2077 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2078 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2079 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2080 fimplicit-inline-templates, fimplicit-templates,
2081 flax-vector-conversions, fms-extensions, fnil-receivers,
2082 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2083 frtti, fshort-double, fshort-enums, fshort-wchar,
2084 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2085 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2086 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2087 gen-decls, undef): Use Var.
2088 (fdefault-inline, foptional-diags): Document as doing nothing.
2089 * c-opts.c (c_common_handle_option): Remove cases for options now
2090 using Var. Mark ignored options as such.
2092 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2094 * c-common.c: Moved to here from parent directory.
2095 * c-common.def: Likewise.
2096 * c-common.h: Likewise.
2097 * c-cppbuiltin.c: Likewise.
2098 * c-dump.c: Likewise.
2099 * c-format.c: Likewise.
2100 * c-format.h : Likewise.
2101 * c-gimplify.c: Likewise.
2102 * c-lex.c: Likewise.
2103 * c-omp.c: Likewise.
2105 * c-opts.c: Likewise.
2106 * c-pch.c: Likewise.
2107 * c-ppoutput.c: Likewise.
2108 * c-pragma.c: Likewise.
2109 * c-pragma.h: Likewise.
2110 * c-pretty-print.c: Likewise.
2111 * c-pretty-print.h: Likewise.
2112 * c-semantics.c: Likewise.
2113 * stub-objc.c: Likewise.
2115 * c-common.c: Include gt-c-family-c-common.h.
2116 * c-pragma.c: Include gt-c-family-c-pragma.h.
2118 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
2120 Copying and distribution of this file, with or without modification,
2121 are permitted in any medium without royalty provided the copyright
2122 notice and this notice are preserved.