1 2012-10-08 Jason Merrill <jason@redhat.com>
3 * c-common.c (c_common_reswords): Add thread_local.
5 2012-10-08 Dodji Seketeli <dodji@redhat.com>
7 PR c++/53528 C++11 attribute support
8 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
10 * c-common.c (check_cxx_fundamental_alignment_constraints): New
12 (handle_aligned_attribute): In choose strictest alignment
13 among many. Use new check_cxx_fundamental_alignment_constraints.
14 (handle_transparent_union_attribute): In c++11 attribute syntax,
15 don't look through typedefs.
17 2012-10-04 Arnaud Charlet <charlet@adacore.com>
19 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
20 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
23 2012-09-25 Dehao Chen <dehao@google.com>
26 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
27 map when read in the pch.
29 2012-09-18 Arnaud Charlet <charlet@adacore.com>
31 * c-ada-spec.c: Style fixes.
33 2012-09-18 Thomas Quinot <quinot@adacore.com>
35 * c.opt (-fada-spec-parent): Define new command line switch.
36 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
37 is specified, generate binding spec as a child of the specified unit.
39 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
40 Manuel López-Ibáñez <manu@gcc.gnu.org>
43 * c.opt ([Winit-self]): Enabled by -Wall in C++.
45 2012-08-23 Arnaud Charlet <charlet@adacore.com>
47 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
48 for pointers, and add missing Convention C pragma.
49 (print_ada_struct_decl): Add missing aliased keyword.
50 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
52 2012-08-17 Jakub Jelinek <jakub@redhat.com>
54 * c-common.c (sizeof_pointer_memaccess_warning): New function.
55 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
56 * c-opts.c (c_common_handle_option): Enable it for -Wall.
57 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
58 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
60 2012-08-10 Richard Guenther <rguenther@suse.de>
62 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
64 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
66 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
67 instead of separate pp_newline and pp_flush.
68 (print_c_tree): Likewise.
70 2012-07-26 Richard Henderson <rth@redhat.com>
72 * c-common.c (handle_hot_attribute): Allow labels.
73 (handle_cold_attribute): Likewise.
75 2012-07-20 Jakub Jelinek <jakub@redhat.com>
78 * c-common.c (check_function_nonnull): Handle multiple nonnull
81 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
83 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
84 * c-ada-spec.c: Likewise.
85 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
87 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
89 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
90 Remove code conditional on it.
92 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
94 * c-gimplify.c: Do not include basic-block.h.
95 * c-common.c: Do not include linfuncs.h.
97 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
99 * c-common.h: Include tree.h.
101 2012-07-02 Jason Merrill <jason@redhat.com>
104 * c-common.c (get_priority): Call default_conversion.
106 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
108 * c-pch.c (c_common_write_pch): Remove unused variables.
110 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
112 * cppspec.c: Moved from gcc/ to here.
114 2012-06-27 Kai Tietz <ktietz@redhat.com>
116 PR preprocessor/37215
117 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
119 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
121 * c-common.h (c_common_print_pch_checksum): Remove.
122 * c-pch.c: Do not include output.h.
123 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
124 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
125 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
126 (struct c_pch_header): Remove.
127 (get_ident): Update gpch version.
128 (pch_init): Do not print executable_checksum to asm_out_file.
129 Do not fail if there is no asm_out_file to read back from. Set
130 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
131 (c_common_write_pch): Verify that nothing was written to asm_out_file
132 since pch_init was called. Do not write a c_pch_header, and do not
133 copy from asm_out_file to the PCH.
134 (c_common_read_pch): Do not read a c_pch_header, and do not restore
135 the content of asm_out_file from the PCH.
136 (c_common_print_pch_checksum): Remove.
137 * c-opts.c (c_common_init): Print out executable_checksum directly.
139 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
141 * c-target.def (objc_declare_unresolved_class_reference,
142 objc_declare_class_definition): Add new hooks.
144 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
146 * c-lex.c: Do not include output.h.
147 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
148 Remove uses of ASM_OUTPUT_IDENT.
150 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
153 * c-common.h (c_build_vec_perm_expr): Move decl here.
154 * c-common.c (c_build_vec_perm_expr): Move definition
157 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
159 * c.opt (fconserve-space): Turn into a no-op.
161 2012-06-04 Sterling Augustine <saugustine@google.com>
163 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
164 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
165 both the start and end of the function.
167 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
169 * c-common.c: Do not include output.h.
170 * c-pragma.c: Likewise.
172 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
174 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
175 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
176 (lang_decl_name): Handle namespace decls.
178 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
180 * c-ada-spec.c: Do not include output.h.
181 * c-semantics.c: Likewise.
183 2012-05-29 Joseph Myers <joseph@codesourcery.com>
185 * c-common.c: Fix typo.
187 2012-05-29 Michael Matz <matz@suse.de>
189 * c-common.h (c_expand_decl): Remove prototype.
191 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
193 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
194 * c-opts.c (c_common_handle_option): Remove code handling
197 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
200 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
203 2012-05-22 Dodji Seketeli <dodji@redhat.com>
206 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
208 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
210 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
211 * c-opts.c (c_common_handle_option): Do not handle explicitly
212 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
214 2012-05-16 Dodji Seketeli <dodji@redhat.com>
217 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
218 to cpp_classify_number. For diagnostics, use the precise location
219 instead of the global input_location.
221 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
224 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
226 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
228 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
230 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
233 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
234 Wreorder): Use LangEnabledBy.
235 * c-opts.c (c_common_handle_option): Do not enable them
236 explicitly. Call lang-specific generated functions.
237 (c_common_post_options): Do not set them here.
239 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
241 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
242 Wmissing-field-initializers,Wmissing-parameter-type,
243 Wold-style-declaration,Woverride-init): Use EnabledBy.
244 * c-opts.c (c_common_post_options): Do not set here explicitly.
246 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
249 * c-opts.c (c_common_handle_option): Use handle_generated_option
250 to enable sub-options.
252 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
255 * c-common.c (warnings_for_convert_and_check): Use warning_at.
257 2012-05-10 Richard Guenther <rguenther@suse.de>
259 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
260 adjust commentary about TYPE_IS_SIZETYPE types.
262 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
265 * c-common.c (warn_logical_operator): Check that argument of
266 integer_zerop is not NULL.
268 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
271 * c-common.c (warn_logical_operator): Do not warn if either side
272 is already true or false.
274 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
277 * c-common.c (expr_original_type): New.
278 (shorten_compare): Do not warn for enumeration types.
280 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
282 * c.opt (fpermissive): Add Var(flag_permissive).
284 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
287 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
288 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
290 2012-04-30 Dodji Seketeli <dodji@redhat.com>
293 * c.opt (Wvarargs): Define new option.
295 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
297 * c-common.c (check_function_arguments): Replace
298 Wmissing-format-attribute with Wsuggest-attribute=format.
300 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
302 * c.opt (Wsuggest-attribute=format): New. Alias of
303 Wmissing-format-attribute.
304 * c-format.c (decode_format_type): Replace
305 Wmissing-format-attribute with Wsuggest-attribute=format.
306 (check_function_format): Likewise.
308 2012-04-27 Ollie Wild <aaw@google.com>
310 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
311 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
312 * c.opt: Add Wliteral-suffix.
314 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
317 * c.opt (Wpedantic): New.
318 (pedantic): Alias Wpedantic.
319 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
320 (c_common_post_options): Likewise.
321 (sanitize_cpp_opts): Likewise.
322 * c-lex.c (interpret_float): Likewise.
323 * c-format.c (check_format_types): Likewise.
324 * c-common.c (pointer_int_sum): Likewise.
325 (c_sizeof_or_alignof_type): Likewise.
326 (c_add_case_label): Likewise.
327 (c_do_switch_warnings): Likewise.
328 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
330 2012-04-15 Jason Merrill <jason@redhat.com>
333 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
334 (C_STD_NAME): Distinguish between C++98 and C++11.
336 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
339 * c-common.h (uint16_type_node): Rename into...
340 (c_uint16_type_node): ...this.
341 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
342 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
344 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
346 * c-common.c (warn_if_unused_value): Move definition to here.
347 * c-common.h (warn_if_unused_value): Move declaration to here.
349 2012-03-23 William Bader <williambader@hotmail.com>
351 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
353 2012-03-20 Jason Merrill <jason@redhat.com>
355 * c-common.h (enum cxx_dialect): Add cxx1y.
356 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
358 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
359 * c-opts.c (c_common_post_options): Likewise.
360 (set_std_cxx1y): New.
361 (c_common_handle_option): Call it.
362 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
364 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
367 * c.opt ([Wuseless-cast]): Add.
369 2012-03-16 Richard Guenther <rguenther@suse.de>
371 * c-pretty-print.c (pp_c_initializer_list): Adjust.
373 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
376 * c.opt (ftemplate-backtrace-limit) Add.
378 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
380 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
382 * c-pragma.c (handle_pragma_extern_prefix): Remove.
383 (init_pragma): Don't register extern_prefix.
385 2012-03-12 Richard Guenther <rguenther@suse.de>
387 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
388 (builtin_type_for_size): Likewise.
390 2012-02-13 Jakub Jelinek <jakub@redhat.com>
393 * c-common.c (sync_resolve_params): Don't decide whether to convert
394 or not based on TYPE_SIZE comparison, convert whenever arg_type
395 is unsigned INTEGER_TYPE.
397 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
400 * c.opt ([Wunused-local-typedefs]): Fix description.
402 2012-01-24 Mike Stump <mikestump@comcast.net>
404 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
407 2012-01-18 Richard Guenther <rguenther@suse.de>
409 * c-opts.c (c_common_post_options): Reset LTO flags if
410 we are about to generate a PCH.
412 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
415 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
416 use pp_unsigned_wide_integer.
418 2012-01-10 Richard Guenther <rguenther@suse.de>
421 * c-opts.c (c_common_handle_option): Move -Werror handling
422 to language independent code.
424 2012-01-05 Richard Guenther <rguenther@suse.de>
427 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
430 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
433 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
434 of array types with an unknown bound.
436 2011-12-20 Joseph Myers <joseph@codesourcery.com>
438 * c-common.c (flag_isoc99): Update comment to refer to C11.
439 (flag_isoc1x): Change to flag_isoc11.
440 * c-common.h (flag_isoc99): Update comment to refer to C11.
441 (flag_isoc1x): Change to flag_isoc11.
442 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
444 * c-opts.c (set_std_c1x): Change to set_std_c11.
445 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
447 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
448 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
449 * c.opt (std=c1x): Change to std=c11. Document as non-draft
451 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
452 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
453 (std=gnu1x): Make alias of std=gnu11.
455 2011-12-19 Jason Merrill <jason@redhat.com>
458 * c-common.c (handle_transparent_union_attribute): Check the first
459 field if the type is complete.
461 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
464 * c-common.c (RID_IS_FINAL): Add.
465 * c-common.h (RID_IS_FINAL): Add.
467 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
469 * c.opt (fgnu-runtime): Provide full description.
470 (fnext-runtime): Likewise.
471 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
473 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
475 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
476 predefines in one place. Add LOCK_FREE predefines.
477 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
480 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
483 * c-common.c (get_atomic_generic_size): Check for various error
485 (resolve_overloaded_atomic_exchange,
486 resolve_overloaded_atomic_compare_exchange,
487 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
488 error_mark_node for error conditions.
490 2011-11-08 Richard Guenther <rguenther@suse.de>
495 2011-11-07 Richard Henderson <rth@redhat.com>
496 Aldy Hernandez <aldyh@redhat.com>
497 Torvald Riegel <triegel@redhat.com>
499 Merged from transactional-memory.
501 * c-common.c (handle_tm_wrap_attribute,
502 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
503 (struct c_common_reswords): Added __transaction* keywords.
504 (struct c_common_attribute_table): Added transaction* and tm_regparm
506 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
508 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
509 find_tm_attribute): Declare.
511 2011-11-07 Jason Merrill <jason@redhat.com>
514 * c-common.c, c-common.h: Revert yesterday's changes.
516 2011-11-06 Jason Merrill <jason@redhat.com>
519 * c-common.c (decl_has_visibility_attr): Split out from...
520 (c_determine_visibility): ...here.
521 * c-common.h: Declare it.
523 2011-11-06 Joseph Myers <joseph@codesourcery.com>
525 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
526 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
528 (check_user_alignment): New. Split out of
529 handle_aligned_attribute. Disallow integer constants with
530 noninteger types. Conditionally allow zero.
531 (handle_aligned_attribute): Use check_user_alignment.
532 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
534 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
535 Richard Henderson <rth@redhat.com>
537 Merged from cxx-mem-model.
539 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
540 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
541 parameters that are the same type size.
542 (get_atomic_generic_size): New. Find size of generic
543 atomic function parameters and do typechecking.
544 (add_atomic_size_parameter): New. Insert size into parameter list.
545 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
546 either __atomic_exchange_n or external library call.
547 (resolve_overloaded_atomic_compare_exchange): Restructure
548 __atomic_compare_exchange to either _n variant or external library call.
549 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
550 __atomic_load_n or an external library call.
551 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
552 __atomic_store_n or an external library call.
553 (resolve_overloaded_builtin): Handle new __atomic builtins.
555 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
558 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
559 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
560 <INDIRECT_REF>: Return the argument.
561 <ARRAY_REF>: Remove special code for negative offset.
562 Call fold_build_pointer_plus instead of size_binop.
563 (fold_offsetof): Remove STOP_REF argument and adjust.
564 * c-common.h (fold_offsetof_1): Declare.
565 (fold_offsetof): Remove STOP_REF argument.
567 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
570 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
571 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
572 Wnarrowing for C++0x and C++98.
573 * c.opt ([Wnarrowing]): Update.
575 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
578 * c.opt: Add Wzero-as-null-pointer-constant.
580 2011-10-31 Jason Merrill <jason@redhat.com>
582 * c.opt (-fdeduce-init-list): Off by default.
585 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
586 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
588 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
590 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
593 * c.opt (fvisibility-inlines-hidden): Description change.
595 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
597 Implement C++11 user-defined literals.
598 * c-common.c (build_userdef_literal): New.
599 * c-common.def: New tree code.
600 * c-common.h (tree_userdef_literal): New tree struct and accessors.
601 * c-lex.c (interpret_float): Add suffix parm.
602 (c_lex_with_flags): Build literal tokens.
604 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
608 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
611 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
612 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
613 Wnarrowing for C++0x and C++98.
614 * c.opt ([Wnarrowing]): Update.
616 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
619 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
620 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
621 Wnarrowing for C++0x and C++98.
622 * c.opt ([Wnarrowing]): Update.
624 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
627 * c-common.c (conversion_warning): Remove code looking for
630 2011-10-18 Dodji Seketeli <dodji@redhat.com>
633 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
634 !NO_IMPLICIT_EXTERN_C.
636 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
638 * c-common.c (c_common_reswords): Add __bases,
640 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
642 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
645 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
647 2011-10-15 Tom Tromey <tromey@redhat.com>
648 Dodji Seketeli <dodji@redhat.com>
650 * c.opt (fdebug-cpp): New option.
651 * c-opts.c (c_common_handle_option): Handle the option.
652 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
653 output stream in parameter. Factorized from ...
654 (maybe_print_line): ... this. Dump location debug information when
655 -fdebug-cpp is in effect.
656 (print_line_1): New static function. Takes an output stream in
657 parameter. Factorized from ...
658 (print_line): ... here. Dump location information when -fdebug-cpp
660 (scan_translation_unit): Dump location information when
661 -fdebug-cpp is in effect.
663 2011-10-15 Tom Tromey <tromey@redhat.com>
664 Dodji Seketeli <dodji@redhat.com>
666 * c.opt (ftrack-macro-expansion): New option. Handle it with and
668 * c-opts.c (c_common_handle_option)<case
669 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
670 cases. Handle -ftrack-macro-expansion with and without argument.
672 2011-10-15 Tom Tromey <tromey@redhat.com>
673 Dodji Seketeli <dodji@redhat.com>
675 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
676 (print_line, cb_define, do_line_change): Adjust to avoid touching
677 the internals of struct line_map. Use the public API instead.
678 * c-pch.c (c_common_read_pch): Likewise.
679 * c-lex.c (fe_file_change): Likewise.
681 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
684 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
686 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
689 * c-pretty-print.c (pp_c_floating_constant): Output
690 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
692 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
694 * c-common.c (def_builtin_1): Delete old interface with two
695 parallel arrays to hold standard builtin declarations, and replace
696 it with a function based interface that can support creating
697 builtins on the fly in the future. Change all uses, and poison
698 the old names. Make sure 0 is not a legitimate builtin index.
699 * c-omp.c (c_finish_omp_barrier): Ditto.
700 (c_finish_omp_taskwait): Ditto.
701 (c_finish_omp_flush): Ditto.
703 2011-10-11 Tristan Gingold <gingold@adacore.com>
705 * c.opt: (fallow-parameterless-variadic-functions): New.
707 2011-09-08 Dodji Seketeli <dodji@redhat.com>
709 PR c++/33255 - Support -Wunused-local-typedefs warning
710 * c-common.h (struct c_language_function::local_typedefs): New
712 (record_locally_defined_typedef, maybe_record_typedef_use)
713 (maybe_warn_unused_local_typedefs): Declare new functions.
714 * c-common.c (record_locally_defined_typedef)
715 (maybe_record_typedef_use)
716 (maybe_warn_unused_local_typedefs): Define new functions.
717 * c.opt: Declare new -Wunused-local-typedefs flag.
719 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
722 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
725 2011-09-05 Richard Guenther <rguenther@suse.de>
727 * c-common.c (complete_array_type): Use ssize_int (-1) instead
728 of integer_minus_one_node for empty array upper bounds.
730 2011-08-28 Dodji Seketeli <dodji@redhat.com>
732 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
733 it's the first time it's being called on this main TU.
735 2011-08-24 Richard Guenther <rguenther@suse.de>
738 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
740 2011-08-22 Gabriel Charette <gchare@google.com>
742 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
743 defined in cpp_init_builtins and c_cpp_builtins.
745 2011-08-19 Joseph Myers <joseph@codesourcery.com>
747 * c-common.c (c_common_reswords): Add __builtin_complex.
748 * c-common.h (RID_BUILTIN_COMPLEX): New.
750 2011-08-18 Joseph Myers <joseph@codesourcery.com>
752 * c-common.c (c_common_reswords): Add _Noreturn.
753 (keyword_is_function_specifier): Handle RID_NORETURN.
754 * c-common.h (RID_NORETURN): New.
756 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
758 * c-common.c (unsafe_conversion_p): New function. Check if it is
759 unsafe to convert an expression to the type.
760 (conversion_warning): Adjust, use unsafe_conversion_p.
761 * c-common.h (unsafe_conversion_p): New function declaration.
763 2011-08-02 Jakub Jelinek <jakub@redhat.com>
765 * c-common.h (c_finish_omp_atomic): Adjust prototype.
766 (c_finish_omp_taskyield): New prototype.
767 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
768 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
769 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
770 or RHS1 have side-effects, evaluate those too in the right spot,
771 if it is a decl and LHS is also a decl, error out if they
773 (c_finish_omp_taskyield): New function.
774 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
775 * c-pragma.c (omp_pragmas): Add taskyield.
776 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
777 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
778 PRAGMA_OMP_CLAUSE_MERGEABLE.
780 2011-07-25 Dodji Seketeli <dodji@redhat.com>
782 * c-common.h (set_underlying_type): Remove parm name from
785 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
787 * c-pretty-print.h: Search c-common.h in c-family.
789 2011-07-22 Jason Merrill <jason@redhat.com>
792 * c.opt (Wnarrowing): New.
795 * c-common.h: Declare c_linkage_bindings.
796 * c-pragma.c (handle_pragma_redefine_extname): Use it.
799 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
800 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
801 as flag_isoc99 for 'restrict'.
802 (pp_c_specifier_qualifier_list): Likewise for _Complex.
804 2011-07-21 Ian Lance Taylor <iant@google.com>
807 * c-common.c (c_disable_warnings): New static function.
808 (c_enable_warnings): New static function.
809 (c_fully_fold_internal): Change local unused_p to bool. Call
810 c_disable_warnings and c_enable_warnings rather than change
811 c_inhibit_evaluation_warnings.
813 2011-07-20 Jason Merrill <jason@redhat.com>
816 PR c++/42603 (DR 950)
817 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
818 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
820 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
822 2011-07-19 Richard Guenther <rguenther@suse.de>
824 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
825 * c-omp.c (c_finish_omp_for): Likewise.
827 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
829 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
830 body on the next line.
832 2011-07-08 Jason Merrill <jason@redhat.com>
835 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
838 * c-common.c (c_apply_type_quals_to_decl): Don't check
839 TYPE_NEEDS_CONSTRUCTING.
841 2011-07-06 Richard Guenther <rguenther@suse.de>
843 * c-common.c (c_common_nodes_and_builtins):
844 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
846 2011-07-05 Richard Guenther <rguenther@suse.de>
848 * c-common.c (c_common_nodes_and_builtins): Build all common
851 2011-06-27 Jakub Jelinek <jakub@redhat.com>
853 * c-common.h (c_tree_chain_next): New static inline function.
855 * c-common.c (check_builtin_function_arguments): Handle
856 BUILT_IN_ASSUME_ALIGNED.
858 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
860 * c-common.c: Add sync_ or SYNC__ to builtin names.
861 * c-omp.c: Add sync_ or SYNC__ to builtin names.
863 2011-06-20 Pierre Vittet <piervit@pvittet.com>
865 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
867 (gen_pragma_handler): New union.
868 (internal_pragma_handler): New type.
869 (c_register_pragma_with_data)
870 (c_register_pragma_with_expansion_and_data): New functions.
872 * c-pragma.c (registered_pragmas, c_register_pragma_1)
873 (c_register_pragma, c_register_pragma_with_expansion)
874 (c_invoke_pragma_handler): Changed to work with
875 internal_pragma_handler.
876 (c_register_pragma_with_data)
877 (c_register_pragma_with_expansion_and_data): New functions.
879 2011-06-14 Joseph Myers <joseph@codesourcery.com>
881 * c-common.c: Include common/common-target.h.
882 (handle_section_attribute): Use
883 targetm_common.have_named_sections.
884 * c-cppbuiltin.c: Include common/common-target.h.
885 (c_cpp_builtins): Use targetm_common.except_unwind_info.
887 2011-06-10 Richard Guenther <rguenther@suse.de>
889 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
890 to print a IDENTIFIER_NODE.
892 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
893 Joseph Myers <joseph@codesourcery.com>
895 * c.opt (fbuilding-libgcc): New option.
896 * c-cppbuiltin.c (c_cpp_builtins): Define
897 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
899 2011-06-07 Jason Merrill <jason@redhat.com>
901 * c-common.c (max_tinst_depth): Lower default to 900.
903 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
905 2011-06-07 Richard Guenther <rguenther@suse.de>
907 * c-common.c (c_common_nodes_and_builtins): Do not set
908 size_type_node or call set_sizetype.
910 2011-06-07 Dodji Seketeli <dodji@redhat.com>
913 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
914 type when using pointer comparison to compare types.
916 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
918 * c.opt: Add -Wdelete-non-virtual-dtor.
919 * c-opts.c (c_common_handle_option): Include it in -Wall.
921 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
926 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
928 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
931 2011-05-27 Jakub Jelinek <jakub@redhat.com>
934 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
935 C++ don't call c_common_truthvalue_conversion on void type arms.
937 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
939 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
940 (stmt_list_stack): Define.
941 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
942 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
944 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
946 * c-common.c (warning_candidate_p): Check for BLOCKs.
948 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
950 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
953 2011-05-25 Jakub Jelinek <jakub@redhat.com>
955 * c-common.c (def_fn_type): Remove extra va_end.
957 2011-05-23 Jason Merrill <jason@redhat.com>
960 * c-common.c (c_common_get_narrower): New.
961 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
963 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
965 * c-common.h (check_function_arguments): Tweak prototype of
966 check_function_arguments.
967 * c-common.c (check_function_arguments): Likewise. Adjust
968 calls to check_function_nonnull, check_function_format, and
969 check_function_sentinel.
970 (check_function_sentinel): Take a FUNCTION_TYPE rather than
971 separate attributes and typelist arguments. Use
972 FOREACH_FUNCTION_ARGS to iterate over argument types.
974 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
976 * c-common.c (c_common_reswords): Reorder.
977 * c-common.h (rid): Likewise.
979 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
981 * c-common.c (def_fn_type): Don't call build_function_type, call
982 build_function_type_array or build_varargs_function_type_array
984 (c_common_nodes_and_builtins): Likewise.
986 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
988 * c-common.c (c_add_case_label): Omit the loc argument to
990 * c-common.h (build_case_label): Remove.
991 * c-semantics.c (build_case_label): Remove.
993 2011-05-05 Joseph Myers <joseph@codesourcery.com>
995 * c-objc.h (objc_start_method_definition): Update prototype.
996 * stub-objc.c (objc_start_method_definition): Add extra parameter.
998 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1000 * c-common.c (check_main_parameter_types): Reindent. Don't use
1001 TYPE_ARG_TYPES directly.
1002 (handle_nonnull_attribute): Likewise.
1003 (sync_resolve_params): Likewise.
1004 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1005 to check_format_string.
1006 (handle_format_attribute): Likewise.
1007 (check_format_string): Take a function type to examine instead of
1008 a type list. Use a function_arg_iterator to step through argument
1011 2011-05-04 Richard Guenther <rguenther@suse.de>
1013 * c-common.c (fix_string_type): Use size_int for index type bounds.
1014 (start_fname_decls): Do not pass NULL to build_int_cst.
1015 (c_init_attributes): Likewise.
1016 * c-lex.c (c_lex_with_flags): Likewise.
1018 2011-04-27 Jason Merrill <jason@redhat.com>
1020 * c-common.c (make_tree_vector_from_list): New.
1021 * c-common.h: Declare it.
1023 2011-04-26 Richard Guenther <rguenther@suse.de>
1025 PR preprocessor/48248
1026 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1027 for output size with -P.
1029 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1031 * c-common.c (struct c_common_resword): Add __underlying_type.
1032 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1034 2011-04-20 Jim Meyering <meyering@redhat.com>
1036 * c-format.c (init_dollar_format_checking): Remove useless
1039 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1041 * c-objc.h (objc_get_interface_ivars): Removed.
1042 (objc_detect_field_duplicates): New.
1043 * stub-objc.c: Likewise.
1045 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1047 * stub-objc.c (objc_declare_protocols): Renamed to
1048 objc_declare_protocol.
1049 * c-objc.h: Likewise.
1051 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1053 * stub-objc.c (objc_declare_class): Updated argument name.
1055 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1057 * c-common.h (c_common_init_ts): Declare.
1058 * c-common.c (c_common_init_ts): Define.
1060 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1062 * c-objc.h (objc_build_message_expr): Updated prototype.
1063 * stub-objc.c (objc_build_message_expr): Likewise.
1065 2011-04-12 Martin Jambor <mjambor@suse.cz>
1067 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1070 2011-04-11 Richard Guenther <rguenther@suse.de>
1072 * c-common.c (complete_array_type): Build a range type of
1075 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1077 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1078 (handle_type_generic_attribute): Likewise.
1080 2011-04-07 Jason Merrill <jason@redhat.com>
1083 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1084 conversion from C++0x scoped enum.
1086 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1088 * c-target-def.h: New file.
1089 * c-target.def: New file.
1090 * c-target.h: New file.
1091 * c-common.c (targetcm): Don't define here.
1092 * c-common.h (default_handle_c_option): Declare.
1093 * c-format.c: Include c-target.h instead of target.h.
1094 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1096 (default_handle_c_option): Move from targhooks.c.
1098 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1100 PR preprocessor/48248
1101 * c-ppoutput.c (print): Add src_file field.
1102 (init_pp_output): Initialize it.
1103 (maybe_print_line): Don't optimize by adding up to 8 newlines
1104 if map->to_file and print.src_file are different file.
1105 (print_line): Update print.src_file.
1107 2011-03-25 Kai Tietz <ktietz@redhat.com>
1109 * c-ada-spec.c (compare_comment): Use filename_cmp
1110 instead of strcmp for filename.
1112 2011-03-25 Jeff Law <law@redhat.com>
1114 * c-family/c-common.c (def_fn_type): Add missing va_end.
1116 2011-03-25 Jason Merrill <jason@redhat.com>
1118 * c.opt: Add -std=c++03.
1120 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1122 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1124 2011-03-17 Kai Tietz
1127 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1128 Display allowed attributes for function pointer types.
1129 (pp_c_attributes_display): New function to display
1130 attributes having affects_type_identity flag set to true.
1131 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1133 * c-common.c (c_common_attribute_table):
1135 (c_common_format_attribute_table): Likewise.
1137 2011-03-18 Jason Merrill <jason@redhat.com>
1139 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1140 * c-common.h: Don't declare it here.
1141 * c-common.c: Or define it here.
1142 * c-opts.c (c_common_handle_option): Or set it here.
1145 * c-common.c (handle_transparent_union_attribute): Don't
1146 make a duplicate type in C++.
1148 2011-03-15 Jason Merrill <jason@redhat.com>
1150 * c-common.c (max_constexpr_depth): New.
1151 * c-common.h: Declare it.
1152 * c-opts.c (c_common_handle_option): Set it.
1153 * c.opt (fconstexpr-depth): New option.
1155 2011-03-11 Jason Merrill <jason@redhat.com>
1157 * c-common.c (attribute_takes_identifier_p): Add missing const.
1160 * c-common.c (attribute_takes_identifier_p): Assume that an
1161 unknown attribute takes an identifier.
1163 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1166 * c-common.c (c_type_hash): Call list_length instead of iterating
1167 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1169 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1172 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1174 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1176 * c.opt (fobjc-abi-version=) New.
1177 (fobjc-nilcheck): New.
1179 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1182 * c-common.h (keyword_is_decl_specifier): Declare.
1183 * c-common.c (keyword_is_decl_specifier): Define.
1184 (keyword_is_function_specifier): New function.
1186 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1189 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1190 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1193 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1195 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1197 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1200 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1201 after init_c_lex if pch_file is set.
1203 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1206 * c.opt (-fkeep-inline-dllexport): New switch.
1208 2011-01-12 Richard Guenther <rguenther@suse.de>
1211 * c-common.c (handle_weak_attribute): Warn instead of error
1212 on declaring an inline function weak.
1214 2011-01-05 Tom Tromey <tromey@redhat.com>
1216 * c-common.h (lvalue_error): Update.
1217 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1220 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1223 * c-objc.h (objc_finish_message_expr): Added argument to
1226 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1228 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1231 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1233 * c-objc.h (objc_maybe_warn_exceptions): New.
1234 * stub-objc.c (objc_maybe_warn_exceptions): New.
1236 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1238 * c-common.h (readonly_error): Declare.
1239 * c-common.c (readonly_error): Define.
1241 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1243 * c-common.h (invalid_indirection_error): Declare.
1244 * c-common.c (invalid_indirection_error): Define.
1246 2010-12-03 Richard Guenther <rguenther@suse.de>
1249 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1250 (pp_c_unary_expression): Likewise.
1251 (pp_c_expression): Likewise.
1253 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1255 * c-common.h (objc_finish_function): New.
1256 (objc_non_volatilized_type): Removed.
1257 (objc_type_quals_match): Removed.
1258 * stub-objc.c (objc_finish_function): New.
1259 (objc_non_volatilized_type): Removed.
1260 (objc_type_quals_match): Removed.
1262 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1264 * c-common.h (parse_optimize_options): Declare.
1265 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1266 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1268 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1270 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1272 * c-pch.c (O_BINARY): Don't define here.
1273 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1275 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1277 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1278 targetm.except_unwind_info.
1280 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1282 * c-opts.c (c_common_handle_option): Pass location to
1283 set_struct_debug_option.
1285 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1287 * c-common.c (visibility_options): Move from ../opts.c.
1288 * c-common.h (struct visibility_flags, visibility_options):
1290 * c-opts.c (finish_options): Rename to c_finish_options.
1291 (c_common_init): Update call to finish_options.
1293 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1296 * c-lex.c (lex_string): Check that each string in an Objective-C
1297 string concat sequence starts with either one or zero '@', and
1298 that there are no spurious '@' signs at the end.
1300 2010-11-20 Joseph Myers <joseph@codesourcery.com>
1302 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1303 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1304 HANDLE_PRAGMA_VISIBILITY.
1305 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1306 HANDLE_PRAGMA_VISIBILITY): Don't define.
1307 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1309 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1314 * c-common.h (keyword_begins_type_specifier): Declare.
1315 (keyword_is_storage_class_specifier): Declare.
1316 (keyword_is_type_qualifier): Declare.
1317 * c-common.c (keyword_begins_type_specifier): New function.
1318 (keyword_is_storage_class_specifier): New function.
1319 (keyword_is_type_qualifier): Declare.
1321 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1324 * c-common.c (in_late_binary_op): Define.
1325 (c_common_truthvalue_conversion): Check in_late_binary_op before
1326 calling c_save_expr.
1327 * c-common.h (in_late_binary_op): Declare.
1329 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1331 * c-opts.c (c_common_handle_option): Update calls to
1332 set_struct_debug_option.
1334 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1336 * c-common.h (objc_declare_protocols): Added additional argument.
1337 * stub-objc.c (objc_declare_protocol): Same change.
1339 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1342 * c-common.h (build_real_imag_expr): Declare.
1343 * c-semantics.c (build_real_imag_expr): Define.
1345 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1347 * c-opts.c (c_common_parse_file): Take no arguments.
1348 * c-common.h (c_common_parse_file): Update prototype.
1350 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1353 * c-common.c (warning_candidate_p): Don't track non-const calls
1356 2010-11-15 Ian Lance Taylor <iant@google.com>
1358 * c-lex.c (init_c_lex): Set macro debug callbacks if
1359 flag_dump_go_spec is set.
1361 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1363 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1364 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1366 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1368 PR preprocessor/45038
1369 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1372 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1374 * c-common.h (c_family_lang_mask): Declare.
1375 * c-opts.c (c_family_lang_mask): Make extern.
1376 * c-pragma.c (handle_pragma_diagnostic): Use
1377 control_warning_option.
1379 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1381 * c-common.c (parse_optimize_options): Update call to
1383 * c-common.h (c_common_handle_option): Update prototype.
1384 * c-opts.c (c_common_handle_option): Take location_t parameter and
1385 pass it to other functions.
1387 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1389 * c-opts.c (warning_as_error_callback): Remove.
1390 (c_common_initialize_diagnostics): Don't call
1391 register_warning_as_error_callback.
1392 (c_common_handle_option): Handle -Werror=normalized= here.
1394 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1396 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1398 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1400 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1401 Remove trailing '.' from diagnostics.
1402 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1404 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1406 * c-common.c (parse_optimize_options): Pass global_dc to
1408 * c-opts.c (c_common_handle_option): Pass &global_options to
1409 set_Wstrict_aliasing.
1410 * c.opt (v): Don't mark Common or document here.
1412 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1415 * c-format.c (format_type): New type gcc_objc_string_format_type.
1416 (valid_stringptr_type_p): New.
1417 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1418 (check_format_string): Pass expected type, use
1419 valid_stringptr_type_p (), check that the format string types are
1420 consistent with the format specification.
1421 (decode_format_attr): Warn if NSString is used outside objective-c.
1422 (format_types_orig): Add NSString.
1424 (format_flags): New.
1425 (check_format_arg): Handle format strings requiring an external parser.
1426 first_target_format_type: New variable.
1427 (handle_format_attribute): Set up first_target_format_type, pass the
1428 expected format arg string type to check_format_string().
1429 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1430 * stub-objc.c (objc_string_ref_type_p): New.
1431 (objc_check_format_arg): New.
1433 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1435 Fixed using the Objective-C 2.0 dot-syntax with class names.
1436 * c-common.h (objc_build_class_component_ref): New.
1437 * stub-objc.c (objc_build_class_component_ref): New.
1439 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1441 * c.opt (Wproperty-assign-default): New option.
1443 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1445 Implemented -fobjc-std=objc1 flag.
1446 * c.opt (fobjc-std=objc1): New option.
1448 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1450 Implemented format and noreturn attributes for Objective-C methods.
1451 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1452 attribute for Objective-C methods.
1454 2010-10-31 Jason Merrill <jason@redhat.com>
1456 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1459 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1461 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1462 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1463 (objc_add_property_declaration): Removed arguments for copies and
1465 (objc_build_getter_call): Renamed to
1466 objc_maybe_build_component_ref.
1467 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1468 (objc_is_property_ref): New.
1469 * c-common.c (c_common_reswords): Removed copies and ivar.
1470 * stub-objc.c (objc_add_property_declaration): Removed arguments
1471 for copies and ivar.
1472 (objc_build_getter_call): Renamed to
1473 objc_maybe_build_component_ref.
1474 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1475 (objc_is_property_ref): New.
1477 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1478 Matthew Gingell <gingell@adacore.com>
1480 * c-ada-spec.c (separate_class_package): New function.
1481 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1482 name of their enclosing package.
1483 (print_ada_declaration): Use separate_class_package.
1485 2010-10-27 Jason Merrill <jason@redhat.com>
1487 * c-common.c (c_common_reswords): Add __is_literal_type.
1488 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1490 * c-common.c (check_case_value): Remove special C++ code.
1492 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1494 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1495 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1497 (objc_add_property_declaration): Added additional arguments.
1498 (objc_property_attribute_kind): Removed.
1499 (objc_set_property_attr): Removed.
1500 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1502 * stub-objc.c (objc_add_property_declaration): Added additional
1504 (objc_set_property_attr): Removed.
1506 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1508 * c-common.h (objc_add_property_variable): Renamed to
1509 objc_add_property_declaration. Added location argument.
1510 * stub-objc.c (objc_add_property_variable): Same change.
1512 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1514 * c-common.h (objc_maybe_printable_name): New.
1515 * stub-objc.c (objc_maybe_printable_name): New.
1517 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1518 Andrew Pinski <pinskia@gmail.com>
1520 * c-common.h (c_common_mark_addressable_vec): Declare.
1521 * c-common.c (c_common_mark_addressable_vec): New function.
1523 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1525 * c-common.h (objc_set_method_type): Removed.
1526 (objc_add_method_declaration): Added boolean argument.
1527 (objc_start_method_definition): Same change.
1528 (objc_build_method_signature): Same change.
1529 * stub-objc.c (objc_set_method_type): Removed.
1530 (objc_add_method_declaration): Added boolean argument.
1531 (objc_start_method_definition): Same change.
1532 (objc_build_method_signature): Same change.
1534 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1536 * c-common.h (finish_file): Removed.
1537 (objc_write_global_declarations): New.
1538 * c-opts.c (c_common_parse_file): Do not call finish_file.
1539 * stub-objc.c (objc_write_global_declarations): New.
1541 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1543 Implemented parsing @synthesize and @dynamic for
1544 Objective-C/Objective-C++.
1545 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1546 (objc_add_synthesize_declaration): New.
1547 (objc_add_dynamic_declaration): New.
1548 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1549 * stub-objc.c (objc_add_synthesize_declaration): New.
1550 (objc_add_dynamic_declaration): New.
1552 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1555 * c-cppbuiltin.c (mode_has_fma): Move function here from
1556 builtins.c. Don't use the fma optab, instead just use the
1557 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1560 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1562 Merge from 'apple/trunk' branch on FSF servers.
1564 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1567 * c-common.h (objc_non_volatilized_type): New declaration
1568 * stub-objc.c (objc_non_volatilized_type): New stub.
1570 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1572 Merge from 'apple/trunk' branch on FSF servers.
1574 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1577 * c-common.h (objc_diagnose_private_ivar): New decl.
1578 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1580 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1582 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1583 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1584 (objc_ivar_visibility_kind): New enum.
1585 (objc_set_visibility): Adjust prototype to use visibility enum.
1586 * stub-objc.c (objc_set_visibility): Adjust stub to use
1589 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1591 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1592 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1593 has the appropriate fma builtins.
1594 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1596 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1598 merge from FSF apple 'trunk' branch.
1599 2006 Fariborz Jahanian <fjahanian@apple.com>
1601 Radars 4436866, 4505126, 4506903, 4517826
1602 * c-common.c (c_common_resword): Define @property and its attributes.
1603 * c-common.h: Define property attribute enum entries.
1604 (OBJC_IS_PATTR_KEYWORD): New.
1605 (objc_property_attribute_kind): New enum.
1606 Declare objc_set_property_attr (), objc_add_property_variable (),
1607 objc_build_getter_call () and objc_build_setter_call ().
1608 * stub-objc.c (objc_set_property_attr): New stub.
1609 (objc_add_property_variable): Likewise.
1610 (objc_build_getter_call): Likewise.
1611 (objc_build_setter_call) Likewise.
1613 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1615 merge from FSF apple 'trunk' branch.
1616 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1618 Radar 3803157 (method attributes)
1619 * c-common.c (handle_deprecated_attribute): Recognize
1620 objc methods as valid declarations.
1621 * c-common.h: Declare objc_method_decl ().
1622 * stub-objc.c (objc_method_decl): New stub.
1624 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1626 * c-common.c (parse_optimize_options): Call
1627 decode_cmdline_options_to_array_default_mask before
1628 decode_options. Update arguments to decode_options.
1629 * c-common.h (c_common_init_options_struct): Declare.
1630 * c-opts.c (c_common_init_options_struct): New. Split out from
1631 c_common_init_options.
1633 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1635 Implemented fast enumeration for Objective-C.
1636 * c-common.h (objc_finish_foreach_loop): New.
1637 * stub-objc.c (objc_finish_foreach_loop): New.
1639 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1641 * c-common.h (struct diagnostic_context): Don't declare here.
1642 (c_common_initialize_diagnostics): Declare using
1643 diagnostic_context typedef.
1644 * c-opts.c (c_common_handle_option): Pass global_dc to
1645 handle_generated_option.
1647 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1649 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1650 handle_generated_option.
1652 2010-10-03 Ian Lance Taylor <iant@google.com>
1654 * c.opt (-fplan9-extensions): New option.
1656 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1658 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1660 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1661 of duplicating code.
1663 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1665 * c-common.c: Add two new entries for @optional
1666 and @required keywords.
1668 merge from FSF 'apple/trunk' branch.
1669 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1672 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1673 objective-c keywords.
1674 (objc_set_method_opt): New declaration.
1675 * stub-objc.c (objc_set_method_opt): New stub.
1677 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1679 * c-common.c (handle_optimize_attribute): Pass &global_options to
1680 cl_optimization_save and cl_optimization_restore.
1681 * c-opts.c (c_common_handle_option): Pass &global_options to
1682 handle_generated_option.
1683 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1684 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1685 &global_options to cl_optimization_restore.
1687 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1689 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1690 Objective-C/Objective-C++ keywords.
1692 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1694 Merge from 'apple/trunk' branch on FSF servers.
1696 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1699 * c-common.h (objc_check_global_decl): New declaration.
1700 * stub-objc.c (objc_check_global_decl): New stub.
1702 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1704 * c.opt: Don't use VarExists.
1706 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1708 * c-common.c (c_cpp_error): Update names of diagnostic_context
1710 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1711 cl_optimization members.
1712 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1713 sanitize_cpp_opts, finish_options): Update names of cpp_options
1716 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1718 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1719 (objc_is_reserved_word): Removed.
1720 * c-common.c: Updated comments.
1721 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1722 objc_is_reserved_word.
1723 * stub-objc.c (objc_is_reserved_word): Removed.
1725 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1727 * c-common.h (objc_add_method_declaration): Adjust prototype to
1729 (objc_start_method_definition): Likewise.
1730 (objc_build_keyword_decl): Likewise.
1731 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1732 (objc_start_method_definition): Likewise.
1733 (objc_build_keyword_decl): Likewise.
1735 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1737 * c-common.h (objc_start_class_interface): Adjust prototype.
1738 (objc_start_category_interface): Likewise.
1739 (objc_start_protocol): Likewise.
1740 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1741 (objc_start_class_interface): Likewise.
1742 (objc_start_category_interface): Likewise.
1744 2010-09-27 Ian Lance Taylor <iant@google.com>
1746 * c-common.c (c_common_attribute_table): Add no_split_stack.
1747 (handle_no_split_stack_attribute): New static function.
1749 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1751 Merge from 'apple/trunk' branch on FSF servers.
1753 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1756 * c-common.h (objc_have_common_type): New declaration.
1757 * stub-objc.c (objc_have_common_type): New stub.
1759 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1762 * c-common.h (objc_common_type): New prototype.
1763 * stub-objc.c (objc_common_type): New stub.
1765 2010-09-24 Jan Hubicka <jh@suse.cz>
1767 * c-common.c (handle_leaf_attribute): New function.
1768 (struct attribute_spec c_common_att): Add leaf.
1770 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1772 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1773 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1774 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1775 -include-barrier, -include-directory, -include-directory=,
1776 -include-directory-after, -include-directory-after=,
1777 -include-prefix, -include-prefix=, -include-with-prefix,
1778 -include-with-prefix=, -include-with-prefix-after,
1779 -include-with-prefix-after=, -include-with-prefix-before,
1780 -include-with-prefix-before=, -no-integrated-cpp,
1781 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1782 -output=, -pedantic, -pedantic-errors, -preprocess,
1783 -print-missing-file-dependencies, -trace-includes, -traditional,
1784 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1785 -user-dependencies, -verbose, -write-dependencies,
1786 -write-user-dependencies, no-integrated-cpp, traditional): New.
1788 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1791 * c-common.h (objc_start_method_definition): Return bool instead
1793 * stub-objc.c (objc_start_method_definition): Return bool instead
1796 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1799 * c-common.h (objc_get_interface_ivars): New declaration.
1800 * stub-objc.c (objc_get_interface_ivars): New stub.
1802 2010-09-15 Ian Lance Taylor <iant@google.com>
1804 * c-common.c (parse_optimize_options): Do not capitalize warning
1805 messages. Remove period at end of warning message.
1807 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1809 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1810 (handle_alias_attribute): ... here.
1811 (handle_ifunc_attribute): New.
1813 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1815 * c-common.h (do_warn_double_promotion): Declare.
1816 * c-common.c (do_warn_double_promotion): Define.
1818 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1820 * c.opt (Wdouble-promotion): New.
1822 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1824 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1825 fvtable-thunks, fxref): Mark no longer supported in help text.
1827 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1829 * c.opt (Wimport, fall-virtual, falt-external-templates,
1830 fdefault-inline, fenum-int-equiv, fexternal-templates,
1831 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1832 fname-mangling-version-, fnew-abi, fnonnull-objects,
1833 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1834 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1836 (fhandle-exceptions): Mark with Alias and Warn.
1837 * c-opts.c (c_common_handle_option): Don't handle options marked
1840 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1842 * c.opt (Wcomments, Werror-implicit-function-declaration,
1843 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1844 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1846 * c-common.c (option_codes): Use OPT_Wcomment instead of
1848 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1849 Don't handle options marked as aliases.
1851 2010-08-25 Richard Guenther <rguenther@suse.de>
1853 * c-common.c (c_common_get_alias_set): Remove special
1854 handling for pointers.
1856 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1858 * c-common.c: Use FOR_EACH_VEC_ELT.
1859 * c-gimplify.c: Likewise.
1860 * c-pragma.c: Likewise.
1862 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1864 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1866 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1868 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1869 instead of OPT_MDX and OPT_MMDX.
1871 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1873 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1875 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1877 * c.opt (MD, MMD): Change to MDX and MMDX.
1878 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1880 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1882 * c-opts.c (c_common_handle_option): Call handle_generated_option
1883 instead of handle_option.
1885 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1887 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1888 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1890 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1892 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1893 (pending_redefine_extname): Change type to a VEC.
1894 (add_to_renaming_pragma_list): Update for new type of
1895 pending_redefine_extname.
1896 (maybe_apply_renaming_pragma): Likewise.
1898 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1900 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1902 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1903 decide whether a type has already been declared/seen.
1904 Do not go to the original type.
1905 (dump_nested_types): New parameter forward.
1906 Generate forward declaration if needed and mark type as visited.
1907 (print_ada_declaration): Call dump_nested_types if not already done.
1908 Mark types as visited.
1910 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1912 * c.opt (-print-pch-checksum): Remove option.
1913 * c-opts.c (c_common_handle_option): Don't handle
1914 OPT_print_pch_checksum.
1916 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1918 * c-common.h (c_common_handle_option): Update prototype and return
1920 * c-opts.c (c_common_handle_option): Update prototype and return
1921 value type. Update calls to handle_option and
1922 enable_warning_as_error.
1924 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1927 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1929 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1931 * c-common.h (c_common_missing_argument): Remove.
1932 * c-opts.c (c_common_missing_argument): Remove.
1933 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1934 idirafter, imacros, include, isysroot, isystem, iquote): Add
1936 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1938 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1940 * c-common.h (c_common_option_lang_mask,
1941 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1943 (c_common_init_options): Update prototype.
1944 * c-opts.c (c_common_option_lang_mask): New.
1945 (c_common_initialize_diagnostics): Split out of
1946 c_common_init_options.
1947 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1949 (c_common_init_options): Update prototype. Use decoded options in
1950 search for -lang-asm.
1952 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1954 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1955 * c-format.c: Likewise.
1957 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1959 * c-common.h: Include diagnostic-core.h. Error if already
1961 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1963 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1965 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1966 Do not include expr.h
1967 (vector_mode_valid_p): Move here.
1969 2010-06-21 DJ Delorie <dj@redhat.com>
1971 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1972 allow these pragmas anywhere.
1974 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1977 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1978 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1979 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1980 ggc_strdup instead of xstrdup.
1982 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1984 * c-cppbuiltin.c: Include cpp-id-data.h.
1985 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1986 (lazy_hex_fp_value): New function.
1987 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1989 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1991 * c-gimplify.c: Do not include tree-flow.h
1993 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1996 * c-common.c: Rename targetm member:
1997 targetm.enum_va_list -> targetm.enum_va_list_p
1999 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2001 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2003 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2005 * c-cppbuiltin.c: Do not include except.h.
2007 2010-06-24 Andi Kleen <ak@linux.intel.com>
2009 * c-common.c (warn_for_omitted_condop): New.
2010 * c-common.h (warn_for_omitted_condop): Add prototype.
2012 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2014 * c.opt (lang-objc): Remove.
2015 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2017 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2019 * c-opts.c: Include "tm_p.h".
2021 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2023 * c-common.c (parse_optimize_options): Update call to
2026 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2028 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2029 new type of types_used_by_cur_var_decl.
2031 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2034 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2035 for C++ standard compliance.
2037 2010-06-16 Jason Merrill <jason@redhat.com>
2039 * c.opt: Add -Wnoexcept.
2041 2010-06-16 Richard Guenther <rguenther@suse.de>
2044 * c-common.c (c_common_truthvalue_conversion): Remove
2045 premature and wrong optimization concering ADDR_EXPRs.
2047 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2049 * c-ada-spec.c (dump_sloc): Remove column info.
2050 (is_simple_enum): New function.
2051 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2052 enum types when relevant.
2054 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2056 * c-common.c (conversion_warning): Warn at expression
2059 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2061 * c-opts.c (c_common_handle_option): Don't handle
2064 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2066 * c-pragma.c (push_alignment): Use typed GC allocation.
2067 (handle_pragma_push_options): Likewise.
2069 * c-common.c (parse_optimize_options): Likewise.
2071 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2074 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2076 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2077 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2078 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2079 flag_signed_bitfields, warn_strict_null_sentinel,
2080 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2081 flag_gen_declaration, flag_no_gnu_keywords,
2082 flag_implement_inlines, flag_implicit_templates,
2083 flag_implicit_inline_templates, flag_optional_diags,
2084 flag_elide_constructors, flag_default_inline, flag_rtti,
2085 flag_conserve_space, flag_access_control, flag_check_new,
2086 flag_new_for_scope, flag_weak, flag_working_directory,
2087 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2088 flag_enforce_eh_specs, flag_threadsafe_statics,
2089 flag_pretty_templates): Remove.
2090 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2091 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2092 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2093 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2094 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2095 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2096 flag_no_gnu_keywords, flag_implement_inlines,
2097 flag_implicit_templates, flag_implicit_inline_templates,
2098 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2099 flag_rtti, flag_conserve_space, flag_access_control,
2100 flag_check_new, flag_new_for_scope, flag_weak,
2101 flag_working_directory, flag_use_cxa_atexit,
2102 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2103 flag_threadsafe_statics, flag_pretty_templates,
2104 warn_strict_null_sentinel): Remove.
2105 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2106 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2107 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2108 fimplicit-inline-templates, fimplicit-templates,
2109 flax-vector-conversions, fms-extensions, fnil-receivers,
2110 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2111 frtti, fshort-double, fshort-enums, fshort-wchar,
2112 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2113 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2114 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2115 gen-decls, undef): Use Var.
2116 (fdefault-inline, foptional-diags): Document as doing nothing.
2117 * c-opts.c (c_common_handle_option): Remove cases for options now
2118 using Var. Mark ignored options as such.
2120 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2122 * c-common.c: Moved to here from parent directory.
2123 * c-common.def: Likewise.
2124 * c-common.h: Likewise.
2125 * c-cppbuiltin.c: Likewise.
2126 * c-dump.c: Likewise.
2127 * c-format.c: Likewise.
2128 * c-format.h : Likewise.
2129 * c-gimplify.c: Likewise.
2130 * c-lex.c: Likewise.
2131 * c-omp.c: Likewise.
2133 * c-opts.c: Likewise.
2134 * c-pch.c: Likewise.
2135 * c-ppoutput.c: Likewise.
2136 * c-pragma.c: Likewise.
2137 * c-pragma.h: Likewise.
2138 * c-pretty-print.c: Likewise.
2139 * c-pretty-print.h: Likewise.
2140 * c-semantics.c: Likewise.
2141 * stub-objc.c: Likewise.
2143 * c-common.c: Include gt-c-family-c-common.h.
2144 * c-pragma.c: Include gt-c-family-c-pragma.h.
2146 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
2148 Copying and distribution of this file, with or without modification,
2149 are permitted in any medium without royalty provided the copyright
2150 notice and this notice are preserved.