1 2013-01-18 Jason Merrill <jason@redhat.com>
4 * c.opt (-fextern-tls-init): New.
5 * c-opts.c (c_common_post_options): Handle it.
7 2013-01-09 Jakub Jelinek <jakub@redhat.com>
10 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
11 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
12 and is either negative or bigger or equal to type precision
15 2012-12-03 Marek Polacek <polacek@redhat.com>
18 * c-common.c (check_user_alignment): Swap order of tests,
19 check TREE_CODE first.
21 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
24 * c-common.h (overflow_type): New enum.
25 (build_userdef_literal): Add overflow_type argument.
26 (tree_userdef_literal): Add overflow_type.
27 (USERDEF_LITERAL_OVERFLOW): New access macro.
28 * c-common.c (build_userdef_literal): Add overflow_type
30 * c-lex.c (c_lex_with_flags): Add overflow_type to
31 build_userdef_literal calls.
32 (interpret_integer, interpret_float): Add overflow_type argument.
34 2012-11-28 Richard Biener <rguenther@suse.de>
37 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
38 here and use a type with proper overflow behavior for types that would
39 need to be promoted for the arithmetic.
41 2012-11-23 Jakub Jelinek <jakub@redhat.com>
44 * c-common.c (handle_no_address_safety_analysis_attribute): New
46 (c_common_attribute_table): Add no_address_safety_analysis.
48 2012-11-16 Simon Baldwin <simonb@google.com>
50 * c.opt: Add f[no-]canonical-system-headers.
51 * c-opts.c (c_common_handle_option): Handle
52 OPT_fcanonical_system_headers.
54 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
57 * c-opts.c (c_common_handle_option): Set new flags.
58 * c.opt: Describe new flags.
60 2012-11-09 Jason Merrill <jason@redhat.com>
62 * c.opt (Wabi-tag): New.
64 2012-11-09 Andi Kleen <ak@linux.intel.com>
67 * c-common.c (get_atomic_generic_size): Mask with
70 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
73 * c.opt (Wformat): Make it Alias Wformat=1.
74 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
75 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
77 (Wformat=): RejectNegative. Use LangEnabledBy.
78 (Wnonnull): Use LangEnabledBy.
79 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
80 * c-format.c (set_Wformat): Delete.
81 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
82 (maybe_read_dollar_number): Likewise.
83 (avoid_dollar_number): Likewise.
84 (finish_dollar_format_checking): Likewise.
85 (check_format_info): Likewise.
86 (check_format_info_main): Likewise.
87 (check_format_types): Likewise.
88 (format_type_warning): Likewise.
89 * c-common.c (int): Likewise.
90 (check_function_sentinel): Likewise.
91 * c-common.h (warn_format,set_Wformat): Do not declare here.
93 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
96 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
97 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
99 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
101 (Wvariadic-macros): Init(1).
102 * c-opts.c (c_common_handle_option): Do not handle them
104 (c_common_post_options): Likewise.
105 (sanitize_cpp_opts): warn_unused_macros is now
106 cpp_warn_unused_macros.
107 (push_command_line_include): Likewise.
108 * c-common.c (warn_unknown_pragmas): Do not define.
109 * c-common.h (warn_unknown_pragmas): Do not declare.
111 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
114 * c-common.c (conversion_warning): Handle conditional expressions.
116 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
119 * c.opt (Wreturn_local_addr): Define new option.
121 2012-10-25 Jason Merrill <jason@redhat.com>
123 * c.opt (Wvirtual-move-assign): New.
125 * c.opt (Winherited-variadic-ctor): New.
127 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
130 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
132 2012-10-23 Joseph Myers <joseph@codesourcery.com>
134 * c-common.h (pch_cpp_save_state): Declare.
135 * c-target.def (c_preinclude): New hook.
136 * c-opts.c (done_preinclude): New.
137 (push_command_line_include): Handle default preincluded header.
138 (cb_file_change): Call pch_cpp_save_state when calling
139 push_command_line_include.
140 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
141 (pch_cpp_save_state): New.
142 (pch_init): Call pch_cpp_save_state conditionally, instead of
143 calling cpp_save_state.
145 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
149 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
150 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
151 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
152 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
153 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
154 * c-opts.c (c_common_handle_option): Remove explicit handling from
156 (c_common_post_options): Likewise.
158 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
160 * c-ada-spec.c (LOCATION_COL): Delete.
161 (compare_location): New function.
162 (compare_node): Use it.
163 (compare_comment): Likewise.
165 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
169 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
170 * c-opts.c (c_common_handle_option): Do not set them here. Add
172 (c_common_post_options): Likewise.
174 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
176 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
177 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
178 Remove POINTER_TYPE handling, add large unsigned handling and use
179 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
181 2012-10-12 Jakub Jelinek <jakub@redhat.com>
184 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
185 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
186 locs and array of 3 trees instead of just single loc and single
187 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
188 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
189 For *cmp* builtins that take two sources strings report warnings
190 about first and second source, not about destination and source.
192 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
195 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
197 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
199 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
200 declaring something coming from another file.
202 2012-10-10 Arnaud Charlet <charlet@adacore.com>
205 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
207 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
210 * c-common.c (warn_about_parentheses): Add location_t parameter;
212 * c-common.h: Update declaration.
214 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
217 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
218 more operations. Make error messages optional.
219 * c-common.h (enum stv_conv): Moved from c-typeck.c.
220 (scalar_to_vector): Declare.
222 2012-10-08 Jason Merrill <jason@redhat.com>
224 * c-common.c (c_common_reswords): Add thread_local.
226 2012-10-08 Dodji Seketeli <dodji@redhat.com>
228 PR c++/53528 C++11 attribute support
229 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
231 * c-common.c (check_cxx_fundamental_alignment_constraints): New
233 (handle_aligned_attribute): In choose strictest alignment
234 among many. Use new check_cxx_fundamental_alignment_constraints.
235 (handle_transparent_union_attribute): In c++11 attribute syntax,
236 don't look through typedefs.
238 2012-10-04 Arnaud Charlet <charlet@adacore.com>
240 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
241 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
244 2012-09-25 Dehao Chen <dehao@google.com>
247 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
248 map when read in the pch.
250 2012-09-18 Arnaud Charlet <charlet@adacore.com>
252 * c-ada-spec.c: Style fixes.
254 2012-09-18 Thomas Quinot <quinot@adacore.com>
256 * c.opt (-fada-spec-parent): Define new command line switch.
257 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
258 is specified, generate binding spec as a child of the specified unit.
260 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
261 Manuel López-Ibáñez <manu@gcc.gnu.org>
264 * c.opt ([Winit-self]): Enabled by -Wall in C++.
266 2012-08-23 Arnaud Charlet <charlet@adacore.com>
268 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
269 for pointers, and add missing Convention C pragma.
270 (print_ada_struct_decl): Add missing aliased keyword.
271 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
273 2012-08-17 Jakub Jelinek <jakub@redhat.com>
275 * c-common.c (sizeof_pointer_memaccess_warning): New function.
276 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
277 * c-opts.c (c_common_handle_option): Enable it for -Wall.
278 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
279 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
281 2012-08-10 Richard Guenther <rguenther@suse.de>
283 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
285 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
287 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
288 instead of separate pp_newline and pp_flush.
289 (print_c_tree): Likewise.
291 2012-07-26 Richard Henderson <rth@redhat.com>
293 * c-common.c (handle_hot_attribute): Allow labels.
294 (handle_cold_attribute): Likewise.
296 2012-07-20 Jakub Jelinek <jakub@redhat.com>
299 * c-common.c (check_function_nonnull): Handle multiple nonnull
302 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
304 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
305 * c-ada-spec.c: Likewise.
306 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
308 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
310 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
311 Remove code conditional on it.
313 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
315 * c-gimplify.c: Do not include basic-block.h.
316 * c-common.c: Do not include linfuncs.h.
318 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
320 * c-common.h: Include tree.h.
322 2012-07-02 Jason Merrill <jason@redhat.com>
325 * c-common.c (get_priority): Call default_conversion.
327 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
329 * c-pch.c (c_common_write_pch): Remove unused variables.
331 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
333 * cppspec.c: Moved from gcc/ to here.
335 2012-06-27 Kai Tietz <ktietz@redhat.com>
337 PR preprocessor/37215
338 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
340 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
342 * c-common.h (c_common_print_pch_checksum): Remove.
343 * c-pch.c: Do not include output.h.
344 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
345 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
346 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
347 (struct c_pch_header): Remove.
348 (get_ident): Update gpch version.
349 (pch_init): Do not print executable_checksum to asm_out_file.
350 Do not fail if there is no asm_out_file to read back from. Set
351 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
352 (c_common_write_pch): Verify that nothing was written to asm_out_file
353 since pch_init was called. Do not write a c_pch_header, and do not
354 copy from asm_out_file to the PCH.
355 (c_common_read_pch): Do not read a c_pch_header, and do not restore
356 the content of asm_out_file from the PCH.
357 (c_common_print_pch_checksum): Remove.
358 * c-opts.c (c_common_init): Print out executable_checksum directly.
360 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
362 * c-target.def (objc_declare_unresolved_class_reference,
363 objc_declare_class_definition): Add new hooks.
365 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
367 * c-lex.c: Do not include output.h.
368 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
369 Remove uses of ASM_OUTPUT_IDENT.
371 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
374 * c-common.h (c_build_vec_perm_expr): Move decl here.
375 * c-common.c (c_build_vec_perm_expr): Move definition
378 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
380 * c.opt (fconserve-space): Turn into a no-op.
382 2012-06-04 Sterling Augustine <saugustine@google.com>
384 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
385 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
386 both the start and end of the function.
388 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
390 * c-common.c: Do not include output.h.
391 * c-pragma.c: Likewise.
393 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
395 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
396 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
397 (lang_decl_name): Handle namespace decls.
399 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
401 * c-ada-spec.c: Do not include output.h.
402 * c-semantics.c: Likewise.
404 2012-05-29 Joseph Myers <joseph@codesourcery.com>
406 * c-common.c: Fix typo.
408 2012-05-29 Michael Matz <matz@suse.de>
410 * c-common.h (c_expand_decl): Remove prototype.
412 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
414 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
415 * c-opts.c (c_common_handle_option): Remove code handling
418 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
421 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
424 2012-05-22 Dodji Seketeli <dodji@redhat.com>
427 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
429 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
431 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
432 * c-opts.c (c_common_handle_option): Do not handle explicitly
433 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
435 2012-05-16 Dodji Seketeli <dodji@redhat.com>
438 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
439 to cpp_classify_number. For diagnostics, use the precise location
440 instead of the global input_location.
442 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
445 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
447 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
449 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
451 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
454 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
455 Wreorder): Use LangEnabledBy.
456 * c-opts.c (c_common_handle_option): Do not enable them
457 explicitly. Call lang-specific generated functions.
458 (c_common_post_options): Do not set them here.
460 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
462 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
463 Wmissing-field-initializers,Wmissing-parameter-type,
464 Wold-style-declaration,Woverride-init): Use EnabledBy.
465 * c-opts.c (c_common_post_options): Do not set here explicitly.
467 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
470 * c-opts.c (c_common_handle_option): Use handle_generated_option
471 to enable sub-options.
473 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
476 * c-common.c (warnings_for_convert_and_check): Use warning_at.
478 2012-05-10 Richard Guenther <rguenther@suse.de>
480 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
481 adjust commentary about TYPE_IS_SIZETYPE types.
483 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
486 * c-common.c (warn_logical_operator): Check that argument of
487 integer_zerop is not NULL.
489 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
492 * c-common.c (warn_logical_operator): Do not warn if either side
493 is already true or false.
495 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
498 * c-common.c (expr_original_type): New.
499 (shorten_compare): Do not warn for enumeration types.
501 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
503 * c.opt (fpermissive): Add Var(flag_permissive).
505 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
508 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
509 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
511 2012-04-30 Dodji Seketeli <dodji@redhat.com>
514 * c.opt (Wvarargs): Define new option.
516 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
518 * c-common.c (check_function_arguments): Replace
519 Wmissing-format-attribute with Wsuggest-attribute=format.
521 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
523 * c.opt (Wsuggest-attribute=format): New. Alias of
524 Wmissing-format-attribute.
525 * c-format.c (decode_format_type): Replace
526 Wmissing-format-attribute with Wsuggest-attribute=format.
527 (check_function_format): Likewise.
529 2012-04-27 Ollie Wild <aaw@google.com>
531 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
532 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
533 * c.opt: Add Wliteral-suffix.
535 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
538 * c.opt (Wpedantic): New.
539 (pedantic): Alias Wpedantic.
540 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
541 (c_common_post_options): Likewise.
542 (sanitize_cpp_opts): Likewise.
543 * c-lex.c (interpret_float): Likewise.
544 * c-format.c (check_format_types): Likewise.
545 * c-common.c (pointer_int_sum): Likewise.
546 (c_sizeof_or_alignof_type): Likewise.
547 (c_add_case_label): Likewise.
548 (c_do_switch_warnings): Likewise.
549 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
551 2012-04-15 Jason Merrill <jason@redhat.com>
554 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
555 (C_STD_NAME): Distinguish between C++98 and C++11.
557 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
560 * c-common.h (uint16_type_node): Rename into...
561 (c_uint16_type_node): ...this.
562 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
563 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
565 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
567 * c-common.c (warn_if_unused_value): Move definition to here.
568 * c-common.h (warn_if_unused_value): Move declaration to here.
570 2012-03-23 William Bader <williambader@hotmail.com>
572 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
574 2012-03-20 Jason Merrill <jason@redhat.com>
576 * c-common.h (enum cxx_dialect): Add cxx1y.
577 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
579 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
580 * c-opts.c (c_common_post_options): Likewise.
581 (set_std_cxx1y): New.
582 (c_common_handle_option): Call it.
583 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
585 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
588 * c.opt ([Wuseless-cast]): Add.
590 2012-03-16 Richard Guenther <rguenther@suse.de>
592 * c-pretty-print.c (pp_c_initializer_list): Adjust.
594 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
597 * c.opt (ftemplate-backtrace-limit) Add.
599 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
601 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
603 * c-pragma.c (handle_pragma_extern_prefix): Remove.
604 (init_pragma): Don't register extern_prefix.
606 2012-03-12 Richard Guenther <rguenther@suse.de>
608 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
609 (builtin_type_for_size): Likewise.
611 2012-02-13 Jakub Jelinek <jakub@redhat.com>
614 * c-common.c (sync_resolve_params): Don't decide whether to convert
615 or not based on TYPE_SIZE comparison, convert whenever arg_type
616 is unsigned INTEGER_TYPE.
618 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
621 * c.opt ([Wunused-local-typedefs]): Fix description.
623 2012-01-24 Mike Stump <mikestump@comcast.net>
625 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
628 2012-01-18 Richard Guenther <rguenther@suse.de>
630 * c-opts.c (c_common_post_options): Reset LTO flags if
631 we are about to generate a PCH.
633 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
636 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
637 use pp_unsigned_wide_integer.
639 2012-01-10 Richard Guenther <rguenther@suse.de>
642 * c-opts.c (c_common_handle_option): Move -Werror handling
643 to language independent code.
645 2012-01-05 Richard Guenther <rguenther@suse.de>
648 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
651 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
654 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
655 of array types with an unknown bound.
657 2011-12-20 Joseph Myers <joseph@codesourcery.com>
659 * c-common.c (flag_isoc99): Update comment to refer to C11.
660 (flag_isoc1x): Change to flag_isoc11.
661 * c-common.h (flag_isoc99): Update comment to refer to C11.
662 (flag_isoc1x): Change to flag_isoc11.
663 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
665 * c-opts.c (set_std_c1x): Change to set_std_c11.
666 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
668 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
669 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
670 * c.opt (std=c1x): Change to std=c11. Document as non-draft
672 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
673 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
674 (std=gnu1x): Make alias of std=gnu11.
676 2011-12-19 Jason Merrill <jason@redhat.com>
679 * c-common.c (handle_transparent_union_attribute): Check the first
680 field if the type is complete.
682 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
685 * c-common.c (RID_IS_FINAL): Add.
686 * c-common.h (RID_IS_FINAL): Add.
688 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
690 * c.opt (fgnu-runtime): Provide full description.
691 (fnext-runtime): Likewise.
692 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
694 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
696 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
697 predefines in one place. Add LOCK_FREE predefines.
698 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
701 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
704 * c-common.c (get_atomic_generic_size): Check for various error
706 (resolve_overloaded_atomic_exchange,
707 resolve_overloaded_atomic_compare_exchange,
708 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
709 error_mark_node for error conditions.
711 2011-11-08 Richard Guenther <rguenther@suse.de>
716 2011-11-07 Richard Henderson <rth@redhat.com>
717 Aldy Hernandez <aldyh@redhat.com>
718 Torvald Riegel <triegel@redhat.com>
720 Merged from transactional-memory.
722 * c-common.c (handle_tm_wrap_attribute,
723 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
724 (struct c_common_reswords): Added __transaction* keywords.
725 (struct c_common_attribute_table): Added transaction* and tm_regparm
727 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
729 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
730 find_tm_attribute): Declare.
732 2011-11-07 Jason Merrill <jason@redhat.com>
735 * c-common.c, c-common.h: Revert yesterday's changes.
737 2011-11-06 Jason Merrill <jason@redhat.com>
740 * c-common.c (decl_has_visibility_attr): Split out from...
741 (c_determine_visibility): ...here.
742 * c-common.h: Declare it.
744 2011-11-06 Joseph Myers <joseph@codesourcery.com>
746 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
747 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
749 (check_user_alignment): New. Split out of
750 handle_aligned_attribute. Disallow integer constants with
751 noninteger types. Conditionally allow zero.
752 (handle_aligned_attribute): Use check_user_alignment.
753 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
755 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
756 Richard Henderson <rth@redhat.com>
758 Merged from cxx-mem-model.
760 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
761 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
762 parameters that are the same type size.
763 (get_atomic_generic_size): New. Find size of generic
764 atomic function parameters and do typechecking.
765 (add_atomic_size_parameter): New. Insert size into parameter list.
766 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
767 either __atomic_exchange_n or external library call.
768 (resolve_overloaded_atomic_compare_exchange): Restructure
769 __atomic_compare_exchange to either _n variant or external library call.
770 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
771 __atomic_load_n or an external library call.
772 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
773 __atomic_store_n or an external library call.
774 (resolve_overloaded_builtin): Handle new __atomic builtins.
776 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
779 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
780 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
781 <INDIRECT_REF>: Return the argument.
782 <ARRAY_REF>: Remove special code for negative offset.
783 Call fold_build_pointer_plus instead of size_binop.
784 (fold_offsetof): Remove STOP_REF argument and adjust.
785 * c-common.h (fold_offsetof_1): Declare.
786 (fold_offsetof): Remove STOP_REF argument.
788 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
791 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
792 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
793 Wnarrowing for C++0x and C++98.
794 * c.opt ([Wnarrowing]): Update.
796 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
799 * c.opt: Add Wzero-as-null-pointer-constant.
801 2011-10-31 Jason Merrill <jason@redhat.com>
803 * c.opt (-fdeduce-init-list): Off by default.
806 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
807 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
809 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
811 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
814 * c.opt (fvisibility-inlines-hidden): Description change.
816 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
818 Implement C++11 user-defined literals.
819 * c-common.c (build_userdef_literal): New.
820 * c-common.def: New tree code.
821 * c-common.h (tree_userdef_literal): New tree struct and accessors.
822 * c-lex.c (interpret_float): Add suffix parm.
823 (c_lex_with_flags): Build literal tokens.
825 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
829 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
832 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
833 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
834 Wnarrowing for C++0x and C++98.
835 * c.opt ([Wnarrowing]): Update.
837 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
840 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
841 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
842 Wnarrowing for C++0x and C++98.
843 * c.opt ([Wnarrowing]): Update.
845 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
848 * c-common.c (conversion_warning): Remove code looking for
851 2011-10-18 Dodji Seketeli <dodji@redhat.com>
854 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
855 !NO_IMPLICIT_EXTERN_C.
857 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
859 * c-common.c (c_common_reswords): Add __bases,
861 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
863 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
866 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
868 2011-10-15 Tom Tromey <tromey@redhat.com>
869 Dodji Seketeli <dodji@redhat.com>
871 * c.opt (fdebug-cpp): New option.
872 * c-opts.c (c_common_handle_option): Handle the option.
873 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
874 output stream in parameter. Factorized from ...
875 (maybe_print_line): ... this. Dump location debug information when
876 -fdebug-cpp is in effect.
877 (print_line_1): New static function. Takes an output stream in
878 parameter. Factorized from ...
879 (print_line): ... here. Dump location information when -fdebug-cpp
881 (scan_translation_unit): Dump location information when
882 -fdebug-cpp is in effect.
884 2011-10-15 Tom Tromey <tromey@redhat.com>
885 Dodji Seketeli <dodji@redhat.com>
887 * c.opt (ftrack-macro-expansion): New option. Handle it with and
889 * c-opts.c (c_common_handle_option)<case
890 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
891 cases. Handle -ftrack-macro-expansion with and without argument.
893 2011-10-15 Tom Tromey <tromey@redhat.com>
894 Dodji Seketeli <dodji@redhat.com>
896 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
897 (print_line, cb_define, do_line_change): Adjust to avoid touching
898 the internals of struct line_map. Use the public API instead.
899 * c-pch.c (c_common_read_pch): Likewise.
900 * c-lex.c (fe_file_change): Likewise.
902 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
905 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
907 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
910 * c-pretty-print.c (pp_c_floating_constant): Output
911 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
913 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
915 * c-common.c (def_builtin_1): Delete old interface with two
916 parallel arrays to hold standard builtin declarations, and replace
917 it with a function based interface that can support creating
918 builtins on the fly in the future. Change all uses, and poison
919 the old names. Make sure 0 is not a legitimate builtin index.
920 * c-omp.c (c_finish_omp_barrier): Ditto.
921 (c_finish_omp_taskwait): Ditto.
922 (c_finish_omp_flush): Ditto.
924 2011-10-11 Tristan Gingold <gingold@adacore.com>
926 * c.opt: (fallow-parameterless-variadic-functions): New.
928 2011-09-08 Dodji Seketeli <dodji@redhat.com>
930 PR c++/33255 - Support -Wunused-local-typedefs warning
931 * c-common.h (struct c_language_function::local_typedefs): New
933 (record_locally_defined_typedef, maybe_record_typedef_use)
934 (maybe_warn_unused_local_typedefs): Declare new functions.
935 * c-common.c (record_locally_defined_typedef)
936 (maybe_record_typedef_use)
937 (maybe_warn_unused_local_typedefs): Define new functions.
938 * c.opt: Declare new -Wunused-local-typedefs flag.
940 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
943 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
946 2011-09-05 Richard Guenther <rguenther@suse.de>
948 * c-common.c (complete_array_type): Use ssize_int (-1) instead
949 of integer_minus_one_node for empty array upper bounds.
951 2011-08-28 Dodji Seketeli <dodji@redhat.com>
953 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
954 it's the first time it's being called on this main TU.
956 2011-08-24 Richard Guenther <rguenther@suse.de>
959 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
961 2011-08-22 Gabriel Charette <gchare@google.com>
963 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
964 defined in cpp_init_builtins and c_cpp_builtins.
966 2011-08-19 Joseph Myers <joseph@codesourcery.com>
968 * c-common.c (c_common_reswords): Add __builtin_complex.
969 * c-common.h (RID_BUILTIN_COMPLEX): New.
971 2011-08-18 Joseph Myers <joseph@codesourcery.com>
973 * c-common.c (c_common_reswords): Add _Noreturn.
974 (keyword_is_function_specifier): Handle RID_NORETURN.
975 * c-common.h (RID_NORETURN): New.
977 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
979 * c-common.c (unsafe_conversion_p): New function. Check if it is
980 unsafe to convert an expression to the type.
981 (conversion_warning): Adjust, use unsafe_conversion_p.
982 * c-common.h (unsafe_conversion_p): New function declaration.
984 2011-08-02 Jakub Jelinek <jakub@redhat.com>
986 * c-common.h (c_finish_omp_atomic): Adjust prototype.
987 (c_finish_omp_taskyield): New prototype.
988 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
989 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
990 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
991 or RHS1 have side-effects, evaluate those too in the right spot,
992 if it is a decl and LHS is also a decl, error out if they
994 (c_finish_omp_taskyield): New function.
995 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
996 * c-pragma.c (omp_pragmas): Add taskyield.
997 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
998 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
999 PRAGMA_OMP_CLAUSE_MERGEABLE.
1001 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1003 * c-common.h (set_underlying_type): Remove parm name from
1006 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1008 * c-pretty-print.h: Search c-common.h in c-family.
1010 2011-07-22 Jason Merrill <jason@redhat.com>
1013 * c.opt (Wnarrowing): New.
1016 * c-common.h: Declare c_linkage_bindings.
1017 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1020 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1021 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1022 as flag_isoc99 for 'restrict'.
1023 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1025 2011-07-21 Ian Lance Taylor <iant@google.com>
1028 * c-common.c (c_disable_warnings): New static function.
1029 (c_enable_warnings): New static function.
1030 (c_fully_fold_internal): Change local unused_p to bool. Call
1031 c_disable_warnings and c_enable_warnings rather than change
1032 c_inhibit_evaluation_warnings.
1034 2011-07-20 Jason Merrill <jason@redhat.com>
1036 PR c++/6709 (DR 743)
1037 PR c++/42603 (DR 950)
1038 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1039 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1040 (CPP_DECLTYPE): New.
1041 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1043 2011-07-19 Richard Guenther <rguenther@suse.de>
1045 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1046 * c-omp.c (c_finish_omp_for): Likewise.
1048 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1050 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1051 body on the next line.
1053 2011-07-08 Jason Merrill <jason@redhat.com>
1056 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1059 * c-common.c (c_apply_type_quals_to_decl): Don't check
1060 TYPE_NEEDS_CONSTRUCTING.
1062 2011-07-06 Richard Guenther <rguenther@suse.de>
1064 * c-common.c (c_common_nodes_and_builtins):
1065 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1067 2011-07-05 Richard Guenther <rguenther@suse.de>
1069 * c-common.c (c_common_nodes_and_builtins): Build all common
1072 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1074 * c-common.h (c_tree_chain_next): New static inline function.
1076 * c-common.c (check_builtin_function_arguments): Handle
1077 BUILT_IN_ASSUME_ALIGNED.
1079 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1081 * c-common.c: Add sync_ or SYNC__ to builtin names.
1082 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1084 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1086 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1088 (gen_pragma_handler): New union.
1089 (internal_pragma_handler): New type.
1090 (c_register_pragma_with_data)
1091 (c_register_pragma_with_expansion_and_data): New functions.
1093 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1094 (c_register_pragma, c_register_pragma_with_expansion)
1095 (c_invoke_pragma_handler): Changed to work with
1096 internal_pragma_handler.
1097 (c_register_pragma_with_data)
1098 (c_register_pragma_with_expansion_and_data): New functions.
1100 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1102 * c-common.c: Include common/common-target.h.
1103 (handle_section_attribute): Use
1104 targetm_common.have_named_sections.
1105 * c-cppbuiltin.c: Include common/common-target.h.
1106 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1108 2011-06-10 Richard Guenther <rguenther@suse.de>
1110 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1111 to print a IDENTIFIER_NODE.
1113 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1114 Joseph Myers <joseph@codesourcery.com>
1116 * c.opt (fbuilding-libgcc): New option.
1117 * c-cppbuiltin.c (c_cpp_builtins): Define
1118 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1120 2011-06-07 Jason Merrill <jason@redhat.com>
1122 * c-common.c (max_tinst_depth): Lower default to 900.
1124 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1126 2011-06-07 Richard Guenther <rguenther@suse.de>
1128 * c-common.c (c_common_nodes_and_builtins): Do not set
1129 size_type_node or call set_sizetype.
1131 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1134 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1135 type when using pointer comparison to compare types.
1137 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1139 * c.opt: Add -Wdelete-non-virtual-dtor.
1140 * c-opts.c (c_common_handle_option): Include it in -Wall.
1142 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1147 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1149 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1152 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1155 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1156 C++ don't call c_common_truthvalue_conversion on void type arms.
1158 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1160 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1161 (stmt_list_stack): Define.
1162 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1163 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1165 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1167 * c-common.c (warning_candidate_p): Check for BLOCKs.
1169 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1171 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1174 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1176 * c-common.c (def_fn_type): Remove extra va_end.
1178 2011-05-23 Jason Merrill <jason@redhat.com>
1181 * c-common.c (c_common_get_narrower): New.
1182 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1184 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1186 * c-common.h (check_function_arguments): Tweak prototype of
1187 check_function_arguments.
1188 * c-common.c (check_function_arguments): Likewise. Adjust
1189 calls to check_function_nonnull, check_function_format, and
1190 check_function_sentinel.
1191 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1192 separate attributes and typelist arguments. Use
1193 FOREACH_FUNCTION_ARGS to iterate over argument types.
1195 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1197 * c-common.c (c_common_reswords): Reorder.
1198 * c-common.h (rid): Likewise.
1200 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1202 * c-common.c (def_fn_type): Don't call build_function_type, call
1203 build_function_type_array or build_varargs_function_type_array
1205 (c_common_nodes_and_builtins): Likewise.
1207 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1209 * c-common.c (c_add_case_label): Omit the loc argument to
1211 * c-common.h (build_case_label): Remove.
1212 * c-semantics.c (build_case_label): Remove.
1214 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1216 * c-objc.h (objc_start_method_definition): Update prototype.
1217 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1219 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1221 * c-common.c (check_main_parameter_types): Reindent. Don't use
1222 TYPE_ARG_TYPES directly.
1223 (handle_nonnull_attribute): Likewise.
1224 (sync_resolve_params): Likewise.
1225 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1226 to check_format_string.
1227 (handle_format_attribute): Likewise.
1228 (check_format_string): Take a function type to examine instead of
1229 a type list. Use a function_arg_iterator to step through argument
1232 2011-05-04 Richard Guenther <rguenther@suse.de>
1234 * c-common.c (fix_string_type): Use size_int for index type bounds.
1235 (start_fname_decls): Do not pass NULL to build_int_cst.
1236 (c_init_attributes): Likewise.
1237 * c-lex.c (c_lex_with_flags): Likewise.
1239 2011-04-27 Jason Merrill <jason@redhat.com>
1241 * c-common.c (make_tree_vector_from_list): New.
1242 * c-common.h: Declare it.
1244 2011-04-26 Richard Guenther <rguenther@suse.de>
1246 PR preprocessor/48248
1247 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1248 for output size with -P.
1250 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1252 * c-common.c (struct c_common_resword): Add __underlying_type.
1253 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1255 2011-04-20 Jim Meyering <meyering@redhat.com>
1257 * c-format.c (init_dollar_format_checking): Remove useless
1260 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1262 * c-objc.h (objc_get_interface_ivars): Removed.
1263 (objc_detect_field_duplicates): New.
1264 * stub-objc.c: Likewise.
1266 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1268 * stub-objc.c (objc_declare_protocols): Renamed to
1269 objc_declare_protocol.
1270 * c-objc.h: Likewise.
1272 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1274 * stub-objc.c (objc_declare_class): Updated argument name.
1276 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1278 * c-common.h (c_common_init_ts): Declare.
1279 * c-common.c (c_common_init_ts): Define.
1281 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1283 * c-objc.h (objc_build_message_expr): Updated prototype.
1284 * stub-objc.c (objc_build_message_expr): Likewise.
1286 2011-04-12 Martin Jambor <mjambor@suse.cz>
1288 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1291 2011-04-11 Richard Guenther <rguenther@suse.de>
1293 * c-common.c (complete_array_type): Build a range type of
1296 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1298 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1299 (handle_type_generic_attribute): Likewise.
1301 2011-04-07 Jason Merrill <jason@redhat.com>
1304 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1305 conversion from C++0x scoped enum.
1307 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1309 * c-target-def.h: New file.
1310 * c-target.def: New file.
1311 * c-target.h: New file.
1312 * c-common.c (targetcm): Don't define here.
1313 * c-common.h (default_handle_c_option): Declare.
1314 * c-format.c: Include c-target.h instead of target.h.
1315 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1317 (default_handle_c_option): Move from targhooks.c.
1319 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1321 PR preprocessor/48248
1322 * c-ppoutput.c (print): Add src_file field.
1323 (init_pp_output): Initialize it.
1324 (maybe_print_line): Don't optimize by adding up to 8 newlines
1325 if map->to_file and print.src_file are different file.
1326 (print_line): Update print.src_file.
1328 2011-03-25 Kai Tietz <ktietz@redhat.com>
1330 * c-ada-spec.c (compare_comment): Use filename_cmp
1331 instead of strcmp for filename.
1333 2011-03-25 Jeff Law <law@redhat.com>
1335 * c-family/c-common.c (def_fn_type): Add missing va_end.
1337 2011-03-25 Jason Merrill <jason@redhat.com>
1339 * c.opt: Add -std=c++03.
1341 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1343 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1345 2011-03-17 Kai Tietz
1348 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1349 Display allowed attributes for function pointer types.
1350 (pp_c_attributes_display): New function to display
1351 attributes having affects_type_identity flag set to true.
1352 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1354 * c-common.c (c_common_attribute_table):
1356 (c_common_format_attribute_table): Likewise.
1358 2011-03-18 Jason Merrill <jason@redhat.com>
1360 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1361 * c-common.h: Don't declare it here.
1362 * c-common.c: Or define it here.
1363 * c-opts.c (c_common_handle_option): Or set it here.
1366 * c-common.c (handle_transparent_union_attribute): Don't
1367 make a duplicate type in C++.
1369 2011-03-15 Jason Merrill <jason@redhat.com>
1371 * c-common.c (max_constexpr_depth): New.
1372 * c-common.h: Declare it.
1373 * c-opts.c (c_common_handle_option): Set it.
1374 * c.opt (fconstexpr-depth): New option.
1376 2011-03-11 Jason Merrill <jason@redhat.com>
1378 * c-common.c (attribute_takes_identifier_p): Add missing const.
1381 * c-common.c (attribute_takes_identifier_p): Assume that an
1382 unknown attribute takes an identifier.
1384 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1387 * c-common.c (c_type_hash): Call list_length instead of iterating
1388 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1390 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1393 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1395 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1397 * c.opt (fobjc-abi-version=) New.
1398 (fobjc-nilcheck): New.
1400 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1403 * c-common.h (keyword_is_decl_specifier): Declare.
1404 * c-common.c (keyword_is_decl_specifier): Define.
1405 (keyword_is_function_specifier): New function.
1407 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1410 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1411 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1414 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1416 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1418 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1421 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1422 after init_c_lex if pch_file is set.
1424 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1427 * c.opt (-fkeep-inline-dllexport): New switch.
1429 2011-01-12 Richard Guenther <rguenther@suse.de>
1432 * c-common.c (handle_weak_attribute): Warn instead of error
1433 on declaring an inline function weak.
1435 2011-01-05 Tom Tromey <tromey@redhat.com>
1437 * c-common.h (lvalue_error): Update.
1438 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1441 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1444 * c-objc.h (objc_finish_message_expr): Added argument to
1447 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1449 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1452 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1454 * c-objc.h (objc_maybe_warn_exceptions): New.
1455 * stub-objc.c (objc_maybe_warn_exceptions): New.
1457 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1459 * c-common.h (readonly_error): Declare.
1460 * c-common.c (readonly_error): Define.
1462 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1464 * c-common.h (invalid_indirection_error): Declare.
1465 * c-common.c (invalid_indirection_error): Define.
1467 2010-12-03 Richard Guenther <rguenther@suse.de>
1470 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1471 (pp_c_unary_expression): Likewise.
1472 (pp_c_expression): Likewise.
1474 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1476 * c-common.h (objc_finish_function): New.
1477 (objc_non_volatilized_type): Removed.
1478 (objc_type_quals_match): Removed.
1479 * stub-objc.c (objc_finish_function): New.
1480 (objc_non_volatilized_type): Removed.
1481 (objc_type_quals_match): Removed.
1483 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1485 * c-common.h (parse_optimize_options): Declare.
1486 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1487 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1489 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1491 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1493 * c-pch.c (O_BINARY): Don't define here.
1494 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1496 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1498 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1499 targetm.except_unwind_info.
1501 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1503 * c-opts.c (c_common_handle_option): Pass location to
1504 set_struct_debug_option.
1506 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1508 * c-common.c (visibility_options): Move from ../opts.c.
1509 * c-common.h (struct visibility_flags, visibility_options):
1511 * c-opts.c (finish_options): Rename to c_finish_options.
1512 (c_common_init): Update call to finish_options.
1514 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1517 * c-lex.c (lex_string): Check that each string in an Objective-C
1518 string concat sequence starts with either one or zero '@', and
1519 that there are no spurious '@' signs at the end.
1521 2010-11-20 Joseph Myers <joseph@codesourcery.com>
1523 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1524 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1525 HANDLE_PRAGMA_VISIBILITY.
1526 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1527 HANDLE_PRAGMA_VISIBILITY): Don't define.
1528 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1530 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1535 * c-common.h (keyword_begins_type_specifier): Declare.
1536 (keyword_is_storage_class_specifier): Declare.
1537 (keyword_is_type_qualifier): Declare.
1538 * c-common.c (keyword_begins_type_specifier): New function.
1539 (keyword_is_storage_class_specifier): New function.
1540 (keyword_is_type_qualifier): Declare.
1542 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1545 * c-common.c (in_late_binary_op): Define.
1546 (c_common_truthvalue_conversion): Check in_late_binary_op before
1547 calling c_save_expr.
1548 * c-common.h (in_late_binary_op): Declare.
1550 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1552 * c-opts.c (c_common_handle_option): Update calls to
1553 set_struct_debug_option.
1555 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1557 * c-common.h (objc_declare_protocols): Added additional argument.
1558 * stub-objc.c (objc_declare_protocol): Same change.
1560 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1563 * c-common.h (build_real_imag_expr): Declare.
1564 * c-semantics.c (build_real_imag_expr): Define.
1566 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1568 * c-opts.c (c_common_parse_file): Take no arguments.
1569 * c-common.h (c_common_parse_file): Update prototype.
1571 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1574 * c-common.c (warning_candidate_p): Don't track non-const calls
1577 2010-11-15 Ian Lance Taylor <iant@google.com>
1579 * c-lex.c (init_c_lex): Set macro debug callbacks if
1580 flag_dump_go_spec is set.
1582 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1584 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1585 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1587 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1589 PR preprocessor/45038
1590 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1593 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1595 * c-common.h (c_family_lang_mask): Declare.
1596 * c-opts.c (c_family_lang_mask): Make extern.
1597 * c-pragma.c (handle_pragma_diagnostic): Use
1598 control_warning_option.
1600 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1602 * c-common.c (parse_optimize_options): Update call to
1604 * c-common.h (c_common_handle_option): Update prototype.
1605 * c-opts.c (c_common_handle_option): Take location_t parameter and
1606 pass it to other functions.
1608 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1610 * c-opts.c (warning_as_error_callback): Remove.
1611 (c_common_initialize_diagnostics): Don't call
1612 register_warning_as_error_callback.
1613 (c_common_handle_option): Handle -Werror=normalized= here.
1615 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1617 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1619 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1621 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1622 Remove trailing '.' from diagnostics.
1623 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1625 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1627 * c-common.c (parse_optimize_options): Pass global_dc to
1629 * c-opts.c (c_common_handle_option): Pass &global_options to
1630 set_Wstrict_aliasing.
1631 * c.opt (v): Don't mark Common or document here.
1633 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1636 * c-format.c (format_type): New type gcc_objc_string_format_type.
1637 (valid_stringptr_type_p): New.
1638 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1639 (check_format_string): Pass expected type, use
1640 valid_stringptr_type_p (), check that the format string types are
1641 consistent with the format specification.
1642 (decode_format_attr): Warn if NSString is used outside objective-c.
1643 (format_types_orig): Add NSString.
1645 (format_flags): New.
1646 (check_format_arg): Handle format strings requiring an external parser.
1647 first_target_format_type: New variable.
1648 (handle_format_attribute): Set up first_target_format_type, pass the
1649 expected format arg string type to check_format_string().
1650 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1651 * stub-objc.c (objc_string_ref_type_p): New.
1652 (objc_check_format_arg): New.
1654 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1656 Fixed using the Objective-C 2.0 dot-syntax with class names.
1657 * c-common.h (objc_build_class_component_ref): New.
1658 * stub-objc.c (objc_build_class_component_ref): New.
1660 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1662 * c.opt (Wproperty-assign-default): New option.
1664 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1666 Implemented -fobjc-std=objc1 flag.
1667 * c.opt (fobjc-std=objc1): New option.
1669 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1671 Implemented format and noreturn attributes for Objective-C methods.
1672 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1673 attribute for Objective-C methods.
1675 2010-10-31 Jason Merrill <jason@redhat.com>
1677 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1680 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1682 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1683 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1684 (objc_add_property_declaration): Removed arguments for copies and
1686 (objc_build_getter_call): Renamed to
1687 objc_maybe_build_component_ref.
1688 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1689 (objc_is_property_ref): New.
1690 * c-common.c (c_common_reswords): Removed copies and ivar.
1691 * stub-objc.c (objc_add_property_declaration): Removed arguments
1692 for copies and ivar.
1693 (objc_build_getter_call): Renamed to
1694 objc_maybe_build_component_ref.
1695 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1696 (objc_is_property_ref): New.
1698 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1699 Matthew Gingell <gingell@adacore.com>
1701 * c-ada-spec.c (separate_class_package): New function.
1702 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1703 name of their enclosing package.
1704 (print_ada_declaration): Use separate_class_package.
1706 2010-10-27 Jason Merrill <jason@redhat.com>
1708 * c-common.c (c_common_reswords): Add __is_literal_type.
1709 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1711 * c-common.c (check_case_value): Remove special C++ code.
1713 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1715 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1716 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1718 (objc_add_property_declaration): Added additional arguments.
1719 (objc_property_attribute_kind): Removed.
1720 (objc_set_property_attr): Removed.
1721 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1723 * stub-objc.c (objc_add_property_declaration): Added additional
1725 (objc_set_property_attr): Removed.
1727 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1729 * c-common.h (objc_add_property_variable): Renamed to
1730 objc_add_property_declaration. Added location argument.
1731 * stub-objc.c (objc_add_property_variable): Same change.
1733 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1735 * c-common.h (objc_maybe_printable_name): New.
1736 * stub-objc.c (objc_maybe_printable_name): New.
1738 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1739 Andrew Pinski <pinskia@gmail.com>
1741 * c-common.h (c_common_mark_addressable_vec): Declare.
1742 * c-common.c (c_common_mark_addressable_vec): New function.
1744 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1746 * c-common.h (objc_set_method_type): Removed.
1747 (objc_add_method_declaration): Added boolean argument.
1748 (objc_start_method_definition): Same change.
1749 (objc_build_method_signature): Same change.
1750 * stub-objc.c (objc_set_method_type): Removed.
1751 (objc_add_method_declaration): Added boolean argument.
1752 (objc_start_method_definition): Same change.
1753 (objc_build_method_signature): Same change.
1755 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1757 * c-common.h (finish_file): Removed.
1758 (objc_write_global_declarations): New.
1759 * c-opts.c (c_common_parse_file): Do not call finish_file.
1760 * stub-objc.c (objc_write_global_declarations): New.
1762 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1764 Implemented parsing @synthesize and @dynamic for
1765 Objective-C/Objective-C++.
1766 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1767 (objc_add_synthesize_declaration): New.
1768 (objc_add_dynamic_declaration): New.
1769 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1770 * stub-objc.c (objc_add_synthesize_declaration): New.
1771 (objc_add_dynamic_declaration): New.
1773 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1776 * c-cppbuiltin.c (mode_has_fma): Move function here from
1777 builtins.c. Don't use the fma optab, instead just use the
1778 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1781 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1783 Merge from 'apple/trunk' branch on FSF servers.
1785 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1788 * c-common.h (objc_non_volatilized_type): New declaration
1789 * stub-objc.c (objc_non_volatilized_type): New stub.
1791 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1793 Merge from 'apple/trunk' branch on FSF servers.
1795 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1798 * c-common.h (objc_diagnose_private_ivar): New decl.
1799 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1801 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1803 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1804 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1805 (objc_ivar_visibility_kind): New enum.
1806 (objc_set_visibility): Adjust prototype to use visibility enum.
1807 * stub-objc.c (objc_set_visibility): Adjust stub to use
1810 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1812 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1813 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1814 has the appropriate fma builtins.
1815 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1817 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1819 merge from FSF apple 'trunk' branch.
1820 2006 Fariborz Jahanian <fjahanian@apple.com>
1822 Radars 4436866, 4505126, 4506903, 4517826
1823 * c-common.c (c_common_resword): Define @property and its attributes.
1824 * c-common.h: Define property attribute enum entries.
1825 (OBJC_IS_PATTR_KEYWORD): New.
1826 (objc_property_attribute_kind): New enum.
1827 Declare objc_set_property_attr (), objc_add_property_variable (),
1828 objc_build_getter_call () and objc_build_setter_call ().
1829 * stub-objc.c (objc_set_property_attr): New stub.
1830 (objc_add_property_variable): Likewise.
1831 (objc_build_getter_call): Likewise.
1832 (objc_build_setter_call) Likewise.
1834 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1836 merge from FSF apple 'trunk' branch.
1837 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1839 Radar 3803157 (method attributes)
1840 * c-common.c (handle_deprecated_attribute): Recognize
1841 objc methods as valid declarations.
1842 * c-common.h: Declare objc_method_decl ().
1843 * stub-objc.c (objc_method_decl): New stub.
1845 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1847 * c-common.c (parse_optimize_options): Call
1848 decode_cmdline_options_to_array_default_mask before
1849 decode_options. Update arguments to decode_options.
1850 * c-common.h (c_common_init_options_struct): Declare.
1851 * c-opts.c (c_common_init_options_struct): New. Split out from
1852 c_common_init_options.
1854 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1856 Implemented fast enumeration for Objective-C.
1857 * c-common.h (objc_finish_foreach_loop): New.
1858 * stub-objc.c (objc_finish_foreach_loop): New.
1860 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1862 * c-common.h (struct diagnostic_context): Don't declare here.
1863 (c_common_initialize_diagnostics): Declare using
1864 diagnostic_context typedef.
1865 * c-opts.c (c_common_handle_option): Pass global_dc to
1866 handle_generated_option.
1868 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1870 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1871 handle_generated_option.
1873 2010-10-03 Ian Lance Taylor <iant@google.com>
1875 * c.opt (-fplan9-extensions): New option.
1877 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1879 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1881 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1882 of duplicating code.
1884 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1886 * c-common.c: Add two new entries for @optional
1887 and @required keywords.
1889 merge from FSF 'apple/trunk' branch.
1890 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1893 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1894 objective-c keywords.
1895 (objc_set_method_opt): New declaration.
1896 * stub-objc.c (objc_set_method_opt): New stub.
1898 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1900 * c-common.c (handle_optimize_attribute): Pass &global_options to
1901 cl_optimization_save and cl_optimization_restore.
1902 * c-opts.c (c_common_handle_option): Pass &global_options to
1903 handle_generated_option.
1904 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1905 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1906 &global_options to cl_optimization_restore.
1908 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1910 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1911 Objective-C/Objective-C++ keywords.
1913 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1915 Merge from 'apple/trunk' branch on FSF servers.
1917 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1920 * c-common.h (objc_check_global_decl): New declaration.
1921 * stub-objc.c (objc_check_global_decl): New stub.
1923 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1925 * c.opt: Don't use VarExists.
1927 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1929 * c-common.c (c_cpp_error): Update names of diagnostic_context
1931 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1932 cl_optimization members.
1933 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1934 sanitize_cpp_opts, finish_options): Update names of cpp_options
1937 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1939 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1940 (objc_is_reserved_word): Removed.
1941 * c-common.c: Updated comments.
1942 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1943 objc_is_reserved_word.
1944 * stub-objc.c (objc_is_reserved_word): Removed.
1946 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1948 * c-common.h (objc_add_method_declaration): Adjust prototype to
1950 (objc_start_method_definition): Likewise.
1951 (objc_build_keyword_decl): Likewise.
1952 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1953 (objc_start_method_definition): Likewise.
1954 (objc_build_keyword_decl): Likewise.
1956 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1958 * c-common.h (objc_start_class_interface): Adjust prototype.
1959 (objc_start_category_interface): Likewise.
1960 (objc_start_protocol): Likewise.
1961 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1962 (objc_start_class_interface): Likewise.
1963 (objc_start_category_interface): Likewise.
1965 2010-09-27 Ian Lance Taylor <iant@google.com>
1967 * c-common.c (c_common_attribute_table): Add no_split_stack.
1968 (handle_no_split_stack_attribute): New static function.
1970 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1972 Merge from 'apple/trunk' branch on FSF servers.
1974 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1977 * c-common.h (objc_have_common_type): New declaration.
1978 * stub-objc.c (objc_have_common_type): New stub.
1980 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1983 * c-common.h (objc_common_type): New prototype.
1984 * stub-objc.c (objc_common_type): New stub.
1986 2010-09-24 Jan Hubicka <jh@suse.cz>
1988 * c-common.c (handle_leaf_attribute): New function.
1989 (struct attribute_spec c_common_att): Add leaf.
1991 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1993 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1994 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1995 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1996 -include-barrier, -include-directory, -include-directory=,
1997 -include-directory-after, -include-directory-after=,
1998 -include-prefix, -include-prefix=, -include-with-prefix,
1999 -include-with-prefix=, -include-with-prefix-after,
2000 -include-with-prefix-after=, -include-with-prefix-before,
2001 -include-with-prefix-before=, -no-integrated-cpp,
2002 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2003 -output=, -pedantic, -pedantic-errors, -preprocess,
2004 -print-missing-file-dependencies, -trace-includes, -traditional,
2005 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2006 -user-dependencies, -verbose, -write-dependencies,
2007 -write-user-dependencies, no-integrated-cpp, traditional): New.
2009 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2012 * c-common.h (objc_start_method_definition): Return bool instead
2014 * stub-objc.c (objc_start_method_definition): Return bool instead
2017 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2020 * c-common.h (objc_get_interface_ivars): New declaration.
2021 * stub-objc.c (objc_get_interface_ivars): New stub.
2023 2010-09-15 Ian Lance Taylor <iant@google.com>
2025 * c-common.c (parse_optimize_options): Do not capitalize warning
2026 messages. Remove period at end of warning message.
2028 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2030 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2031 (handle_alias_attribute): ... here.
2032 (handle_ifunc_attribute): New.
2034 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2036 * c-common.h (do_warn_double_promotion): Declare.
2037 * c-common.c (do_warn_double_promotion): Define.
2039 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2041 * c.opt (Wdouble-promotion): New.
2043 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2045 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2046 fvtable-thunks, fxref): Mark no longer supported in help text.
2048 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2050 * c.opt (Wimport, fall-virtual, falt-external-templates,
2051 fdefault-inline, fenum-int-equiv, fexternal-templates,
2052 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2053 fname-mangling-version-, fnew-abi, fnonnull-objects,
2054 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2055 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2057 (fhandle-exceptions): Mark with Alias and Warn.
2058 * c-opts.c (c_common_handle_option): Don't handle options marked
2061 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2063 * c.opt (Wcomments, Werror-implicit-function-declaration,
2064 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2065 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2067 * c-common.c (option_codes): Use OPT_Wcomment instead of
2069 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2070 Don't handle options marked as aliases.
2072 2010-08-25 Richard Guenther <rguenther@suse.de>
2074 * c-common.c (c_common_get_alias_set): Remove special
2075 handling for pointers.
2077 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2079 * c-common.c: Use FOR_EACH_VEC_ELT.
2080 * c-gimplify.c: Likewise.
2081 * c-pragma.c: Likewise.
2083 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2085 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2087 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2089 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2090 instead of OPT_MDX and OPT_MMDX.
2092 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2094 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2096 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2098 * c.opt (MD, MMD): Change to MDX and MMDX.
2099 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2101 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2103 * c-opts.c (c_common_handle_option): Call handle_generated_option
2104 instead of handle_option.
2106 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2108 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2109 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2111 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2113 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2114 (pending_redefine_extname): Change type to a VEC.
2115 (add_to_renaming_pragma_list): Update for new type of
2116 pending_redefine_extname.
2117 (maybe_apply_renaming_pragma): Likewise.
2119 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2121 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2123 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2124 decide whether a type has already been declared/seen.
2125 Do not go to the original type.
2126 (dump_nested_types): New parameter forward.
2127 Generate forward declaration if needed and mark type as visited.
2128 (print_ada_declaration): Call dump_nested_types if not already done.
2129 Mark types as visited.
2131 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2133 * c.opt (-print-pch-checksum): Remove option.
2134 * c-opts.c (c_common_handle_option): Don't handle
2135 OPT_print_pch_checksum.
2137 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2139 * c-common.h (c_common_handle_option): Update prototype and return
2141 * c-opts.c (c_common_handle_option): Update prototype and return
2142 value type. Update calls to handle_option and
2143 enable_warning_as_error.
2145 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2148 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2150 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2152 * c-common.h (c_common_missing_argument): Remove.
2153 * c-opts.c (c_common_missing_argument): Remove.
2154 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2155 idirafter, imacros, include, isysroot, isystem, iquote): Add
2157 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2159 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2161 * c-common.h (c_common_option_lang_mask,
2162 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2164 (c_common_init_options): Update prototype.
2165 * c-opts.c (c_common_option_lang_mask): New.
2166 (c_common_initialize_diagnostics): Split out of
2167 c_common_init_options.
2168 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2170 (c_common_init_options): Update prototype. Use decoded options in
2171 search for -lang-asm.
2173 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2175 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2176 * c-format.c: Likewise.
2178 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2180 * c-common.h: Include diagnostic-core.h. Error if already
2182 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2184 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2186 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2187 Do not include expr.h
2188 (vector_mode_valid_p): Move here.
2190 2010-06-21 DJ Delorie <dj@redhat.com>
2192 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2193 allow these pragmas anywhere.
2195 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2198 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2199 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2200 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2201 ggc_strdup instead of xstrdup.
2203 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2205 * c-cppbuiltin.c: Include cpp-id-data.h.
2206 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2207 (lazy_hex_fp_value): New function.
2208 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2210 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2212 * c-gimplify.c: Do not include tree-flow.h
2214 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2217 * c-common.c: Rename targetm member:
2218 targetm.enum_va_list -> targetm.enum_va_list_p
2220 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2222 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2224 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2226 * c-cppbuiltin.c: Do not include except.h.
2228 2010-06-24 Andi Kleen <ak@linux.intel.com>
2230 * c-common.c (warn_for_omitted_condop): New.
2231 * c-common.h (warn_for_omitted_condop): Add prototype.
2233 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2235 * c.opt (lang-objc): Remove.
2236 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2238 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2240 * c-opts.c: Include "tm_p.h".
2242 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2244 * c-common.c (parse_optimize_options): Update call to
2247 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2249 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2250 new type of types_used_by_cur_var_decl.
2252 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2255 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2256 for C++ standard compliance.
2258 2010-06-16 Jason Merrill <jason@redhat.com>
2260 * c.opt: Add -Wnoexcept.
2262 2010-06-16 Richard Guenther <rguenther@suse.de>
2265 * c-common.c (c_common_truthvalue_conversion): Remove
2266 premature and wrong optimization concering ADDR_EXPRs.
2268 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2270 * c-ada-spec.c (dump_sloc): Remove column info.
2271 (is_simple_enum): New function.
2272 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2273 enum types when relevant.
2275 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2277 * c-common.c (conversion_warning): Warn at expression
2280 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2282 * c-opts.c (c_common_handle_option): Don't handle
2285 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2287 * c-pragma.c (push_alignment): Use typed GC allocation.
2288 (handle_pragma_push_options): Likewise.
2290 * c-common.c (parse_optimize_options): Likewise.
2292 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2295 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2297 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2298 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2299 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2300 flag_signed_bitfields, warn_strict_null_sentinel,
2301 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2302 flag_gen_declaration, flag_no_gnu_keywords,
2303 flag_implement_inlines, flag_implicit_templates,
2304 flag_implicit_inline_templates, flag_optional_diags,
2305 flag_elide_constructors, flag_default_inline, flag_rtti,
2306 flag_conserve_space, flag_access_control, flag_check_new,
2307 flag_new_for_scope, flag_weak, flag_working_directory,
2308 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2309 flag_enforce_eh_specs, flag_threadsafe_statics,
2310 flag_pretty_templates): Remove.
2311 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2312 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2313 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2314 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2315 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2316 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2317 flag_no_gnu_keywords, flag_implement_inlines,
2318 flag_implicit_templates, flag_implicit_inline_templates,
2319 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2320 flag_rtti, flag_conserve_space, flag_access_control,
2321 flag_check_new, flag_new_for_scope, flag_weak,
2322 flag_working_directory, flag_use_cxa_atexit,
2323 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2324 flag_threadsafe_statics, flag_pretty_templates,
2325 warn_strict_null_sentinel): Remove.
2326 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2327 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2328 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2329 fimplicit-inline-templates, fimplicit-templates,
2330 flax-vector-conversions, fms-extensions, fnil-receivers,
2331 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2332 frtti, fshort-double, fshort-enums, fshort-wchar,
2333 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2334 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2335 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2336 gen-decls, undef): Use Var.
2337 (fdefault-inline, foptional-diags): Document as doing nothing.
2338 * c-opts.c (c_common_handle_option): Remove cases for options now
2339 using Var. Mark ignored options as such.
2341 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2343 * c-common.c: Moved to here from parent directory.
2344 * c-common.def: Likewise.
2345 * c-common.h: Likewise.
2346 * c-cppbuiltin.c: Likewise.
2347 * c-dump.c: Likewise.
2348 * c-format.c: Likewise.
2349 * c-format.h : Likewise.
2350 * c-gimplify.c: Likewise.
2351 * c-lex.c: Likewise.
2352 * c-omp.c: Likewise.
2354 * c-opts.c: Likewise.
2355 * c-pch.c: Likewise.
2356 * c-ppoutput.c: Likewise.
2357 * c-pragma.c: Likewise.
2358 * c-pragma.h: Likewise.
2359 * c-pretty-print.c: Likewise.
2360 * c-pretty-print.h: Likewise.
2361 * c-semantics.c: Likewise.
2362 * stub-objc.c: Likewise.
2364 * c-common.c: Include gt-c-family-c-common.h.
2365 * c-pragma.c: Include gt-c-family-c-pragma.h.
2367 Copyright (C) 2010-2013 Free Software Foundation, Inc.
2369 Copying and distribution of this file, with or without modification,
2370 are permitted in any medium without royalty provided the copyright
2371 notice and this notice are preserved.