1 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4 * c-common.c (in_late_binary_op): Define.
5 (c_common_truthvalue_conversion): Check in_late_binary_op before
7 * c-common.h (in_late_binary_op): Declare.
9 2010-11-19 Joseph Myers <joseph@codesourcery.com>
11 * c-opts.c (c_common_handle_option): Update calls to
12 set_struct_debug_option.
14 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
16 * c-common.h (objc_declare_protocols): Added additional argument.
17 * stub-objc.c (objc_declare_protocol): Same change.
19 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
22 * c-common.h (build_real_imag_expr): Declare.
23 * c-semantics.c (build_real_imag_expr): Define.
25 2010-11-17 Joseph Myers <joseph@codesourcery.com>
27 * c-opts.c (c_common_parse_file): Take no arguments.
28 * c-common.h (c_common_parse_file): Update prototype.
30 2010-11-16 Jakub Jelinek <jakub@redhat.com>
33 * c-common.c (warning_candidate_p): Don't track non-const calls
36 2010-11-15 Ian Lance Taylor <iant@google.com>
38 * c-lex.c (init_c_lex): Set macro debug callbacks if
39 flag_dump_go_spec is set.
41 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
43 * c-common.h (objc_build_incr_expr_for_property_ref): New.
44 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
46 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
49 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
52 2010-11-12 Joseph Myers <joseph@codesourcery.com>
54 * c-common.h (c_family_lang_mask): Declare.
55 * c-opts.c (c_family_lang_mask): Make extern.
56 * c-pragma.c (handle_pragma_diagnostic): Use
57 control_warning_option.
59 2010-11-12 Joseph Myers <joseph@codesourcery.com>
61 * c-common.c (parse_optimize_options): Update call to
63 * c-common.h (c_common_handle_option): Update prototype.
64 * c-opts.c (c_common_handle_option): Take location_t parameter and
65 pass it to other functions.
67 2010-11-11 Joseph Myers <joseph@codesourcery.com>
69 * c-opts.c (warning_as_error_callback): Remove.
70 (c_common_initialize_diagnostics): Don't call
71 register_warning_as_error_callback.
72 (c_common_handle_option): Handle -Werror=normalized= here.
74 2010-11-10 Joseph Myers <joseph@codesourcery.com>
76 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
78 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
80 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
81 Remove trailing '.' from diagnostics.
82 * c.opt (Wwrite-strings_: Avoid '`' in help text.
84 2010-11-10 Joseph Myers <joseph@codesourcery.com>
86 * c-common.c (parse_optimize_options): Pass global_dc to
88 * c-opts.c (c_common_handle_option): Pass &global_options to
90 * c.opt (v): Don't mark Common or document here.
92 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
95 * c-format.c (format_type): New type gcc_objc_string_format_type.
96 (valid_stringptr_type_p): New.
97 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
98 (check_format_string): Pass expected type, use
99 valid_stringptr_type_p (), check that the format string types are
100 consistent with the format specification.
101 (decode_format_attr): Warn if NSString is used outside objective-c.
102 (format_types_orig): Add NSString.
105 (check_format_arg): Handle format strings requiring an external parser.
106 first_target_format_type: New variable.
107 (handle_format_attribute): Set up first_target_format_type, pass the
108 expected format arg string type to check_format_string().
109 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
110 * stub-objc.c (objc_string_ref_type_p): New.
111 (objc_check_format_arg): New.
113 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
115 Fixed using the Objective-C 2.0 dot-syntax with class names.
116 * c-common.h (objc_build_class_component_ref): New.
117 * stub-objc.c (objc_build_class_component_ref): New.
119 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
121 * c.opt (Wproperty-assign-default): New option.
123 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
125 Implemented -fobjc-std=objc1 flag.
126 * c.opt (fobjc-std=objc1): New option.
128 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
130 Implemented format and noreturn attributes for Objective-C methods.
131 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
132 attribute for Objective-C methods.
134 2010-10-31 Jason Merrill <jason@redhat.com>
136 * c-common.c (conversion_warning, warn_for_collisions_1): Use
139 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
141 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
142 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
143 (objc_add_property_declaration): Removed arguments for copies and
145 (objc_build_getter_call): Renamed to
146 objc_maybe_build_component_ref.
147 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
148 (objc_is_property_ref): New.
149 * c-common.c (c_common_reswords): Removed copies and ivar.
150 * stub-objc.c (objc_add_property_declaration): Removed arguments
152 (objc_build_getter_call): Renamed to
153 objc_maybe_build_component_ref.
154 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
155 (objc_is_property_ref): New.
157 2010-10-29 Arnaud Charlet <charlet@adacore.com>
158 Matthew Gingell <gingell@adacore.com>
160 * c-ada-spec.c (separate_class_package): New function.
161 (pp_ada_tree_identifier): Prefix references to C++ classes with the
162 name of their enclosing package.
163 (print_ada_declaration): Use separate_class_package.
165 2010-10-27 Jason Merrill <jason@redhat.com>
167 * c-common.c (c_common_reswords): Add __is_literal_type.
168 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
170 * c-common.c (check_case_value): Remove special C++ code.
172 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
174 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
175 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
177 (objc_add_property_declaration): Added additional arguments.
178 (objc_property_attribute_kind): Removed.
179 (objc_set_property_attr): Removed.
180 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
182 * stub-objc.c (objc_add_property_declaration): Added additional
184 (objc_set_property_attr): Removed.
186 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
188 * c-common.h (objc_add_property_variable): Renamed to
189 objc_add_property_declaration. Added location argument.
190 * stub-objc.c (objc_add_property_variable): Same change.
192 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
194 * c-common.h (objc_maybe_printable_name): New.
195 * stub-objc.c (objc_maybe_printable_name): New.
197 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
198 Andrew Pinski <pinskia@gmail.com>
200 * c-common.h (c_common_mark_addressable_vec): Declare.
201 * c-common.c (c_common_mark_addressable_vec): New function.
203 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
205 * c-common.h (objc_set_method_type): Removed.
206 (objc_add_method_declaration): Added boolean argument.
207 (objc_start_method_definition): Same change.
208 (objc_build_method_signature): Same change.
209 * stub-objc.c (objc_set_method_type): Removed.
210 (objc_add_method_declaration): Added boolean argument.
211 (objc_start_method_definition): Same change.
212 (objc_build_method_signature): Same change.
214 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
216 * c-common.h (finish_file): Removed.
217 (objc_write_global_declarations): New.
218 * c-opts.c (c_common_parse_file): Do not call finish_file.
219 * stub-objc.c (objc_write_global_declarations): New.
221 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
223 Implemented parsing @synthesize and @dynamic for
224 Objective-C/Objective-C++.
225 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
226 (objc_add_synthesize_declaration): New.
227 (objc_add_dynamic_declaration): New.
228 * c-common.c (c_common_reswords): Add synthesize and dynamic.
229 * stub-objc.c (objc_add_synthesize_declaration): New.
230 (objc_add_dynamic_declaration): New.
232 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
235 * c-cppbuiltin.c (mode_has_fma): Move function here from
236 builtins.c. Don't use the fma optab, instead just use the
237 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
240 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
242 Merge from 'apple/trunk' branch on FSF servers.
244 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
247 * c-common.h (objc_non_volatilized_type): New declaration
248 * stub-objc.c (objc_non_volatilized_type): New stub.
250 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
252 Merge from 'apple/trunk' branch on FSF servers.
254 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
257 * c-common.h (objc_diagnose_private_ivar): New decl.
258 * stub-objc.c (objc_diagnose_private_ivar): New stub.
260 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
262 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
263 * c-common.h (enum rid): Add RID_AT_PACKAGE.
264 (objc_ivar_visibility_kind): New enum.
265 (objc_set_visibility): Adjust prototype to use visibility enum.
266 * stub-objc.c (objc_set_visibility): Adjust stub to use
269 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
271 * c-cppbuiltin.c (builtin_define_float_constants): Emit
272 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
273 has the appropriate fma builtins.
274 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
276 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
278 merge from FSF apple 'trunk' branch.
279 2006 Fariborz Jahanian <fjahanian@apple.com>
281 Radars 4436866, 4505126, 4506903, 4517826
282 * c-common.c (c_common_resword): Define @property and its attributes.
283 * c-common.h: Define property attribute enum entries.
284 (OBJC_IS_PATTR_KEYWORD): New.
285 (objc_property_attribute_kind): New enum.
286 Declare objc_set_property_attr (), objc_add_property_variable (),
287 objc_build_getter_call () and objc_build_setter_call ().
288 * stub-objc.c (objc_set_property_attr): New stub.
289 (objc_add_property_variable): Likewise.
290 (objc_build_getter_call): Likewise.
291 (objc_build_setter_call) Likewise.
293 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
295 merge from FSF apple 'trunk' branch.
296 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
298 Radar 3803157 (method attributes)
299 * c-common.c (handle_deprecated_attribute): Recognize
300 objc methods as valid declarations.
301 * c-common.h: Declare objc_method_decl ().
302 * stub-objc.c (objc_method_decl): New stub.
304 2010-10-08 Joseph Myers <joseph@codesourcery.com>
306 * c-common.c (parse_optimize_options): Call
307 decode_cmdline_options_to_array_default_mask before
308 decode_options. Update arguments to decode_options.
309 * c-common.h (c_common_init_options_struct): Declare.
310 * c-opts.c (c_common_init_options_struct): New. Split out from
311 c_common_init_options.
313 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
315 Implemented fast enumeration for Objective-C.
316 * c-common.h (objc_finish_foreach_loop): New.
317 * stub-objc.c (objc_finish_foreach_loop): New.
319 2010-10-05 Joseph Myers <joseph@codesourcery.com>
321 * c-common.h (struct diagnostic_context): Don't declare here.
322 (c_common_initialize_diagnostics): Declare using
323 diagnostic_context typedef.
324 * c-opts.c (c_common_handle_option): Pass global_dc to
325 handle_generated_option.
327 2010-10-04 Joseph Myers <joseph@codesourcery.com>
329 * c-opts.c (c_common_handle_option): Pass &global_options_set to
330 handle_generated_option.
332 2010-10-03 Ian Lance Taylor <iant@google.com>
334 * c.opt (-fplan9-extensions): New option.
336 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
338 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
340 (c_cpp_builtins): Call functions from cppbuiltin.c instead
343 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
345 * c-common.c: Add two new entries for @optional
346 and @required keywords.
348 merge from FSF 'apple/trunk' branch.
349 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
352 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
353 objective-c keywords.
354 (objc_set_method_opt): New declaration.
355 * stub-objc.c (objc_set_method_opt): New stub.
357 2010-09-30 Joseph Myers <joseph@codesourcery.com>
359 * c-common.c (handle_optimize_attribute): Pass &global_options to
360 cl_optimization_save and cl_optimization_restore.
361 * c-opts.c (c_common_handle_option): Pass &global_options to
362 handle_generated_option.
363 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
364 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
365 &global_options to cl_optimization_restore.
367 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
369 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
370 Objective-C/Objective-C++ keywords.
372 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
374 Merge from 'apple/trunk' branch on FSF servers.
376 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
379 * c-common.h (objc_check_global_decl): New declaration.
380 * stub-objc.c (objc_check_global_decl): New stub.
382 2010-09-29 Joseph Myers <joseph@codesourcery.com>
384 * c.opt: Don't use VarExists.
386 2010-09-29 Joseph Myers <joseph@codesourcery.com>
388 * c-common.c (c_cpp_error): Update names of diagnostic_context
390 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
391 cl_optimization members.
392 * c-opts.c (warning_as_error_callback, c_common_handle_option,
393 sanitize_cpp_opts, finish_options): Update names of cpp_options
396 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
398 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
399 (objc_is_reserved_word): Removed.
400 * c-common.c: Updated comments.
401 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
402 objc_is_reserved_word.
403 * stub-objc.c (objc_is_reserved_word): Removed.
405 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
407 * c-common.h (objc_add_method_declaration): Adjust prototype to
409 (objc_start_method_definition): Likewise.
410 (objc_build_keyword_decl): Likewise.
411 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
412 (objc_start_method_definition): Likewise.
413 (objc_build_keyword_decl): Likewise.
415 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
417 * c-common.h (objc_start_class_interface): Adjust prototype.
418 (objc_start_category_interface): Likewise.
419 (objc_start_protocol): Likewise.
420 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
421 (objc_start_class_interface): Likewise.
422 (objc_start_category_interface): Likewise.
424 2010-09-27 Ian Lance Taylor <iant@google.com>
426 * c-common.c (c_common_attribute_table): Add no_split_stack.
427 (handle_no_split_stack_attribute): New static function.
429 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
431 Merge from 'apple/trunk' branch on FSF servers.
433 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
436 * c-common.h (objc_have_common_type): New declaration.
437 * stub-objc.c (objc_have_common_type): New stub.
439 2005-06-22 Ziemowit Laski <zlaski@apple.com>
442 * c-common.h (objc_common_type): New prototype.
443 * stub-objc.c (objc_common_type): New stub.
445 2010-09-24 Jan Hubicka <jh@suse.cz>
447 * c-common.c (handle_leaf_attribute): New function.
448 (struct attribute_spec c_common_att): Add leaf.
450 2010-09-22 Joseph Myers <joseph@codesourcery.com>
452 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
453 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
454 -dump, -dump=, -imacros, -imacros=, -include, -include=,
455 -include-barrier, -include-directory, -include-directory=,
456 -include-directory-after, -include-directory-after=,
457 -include-prefix, -include-prefix=, -include-with-prefix,
458 -include-with-prefix=, -include-with-prefix-after,
459 -include-with-prefix-after=, -include-with-prefix-before,
460 -include-with-prefix-before=, -no-integrated-cpp,
461 -no-line-commands, -no-standard-includes, -no-warnings, -output,
462 -output=, -pedantic, -pedantic-errors, -preprocess,
463 -print-missing-file-dependencies, -trace-includes, -traditional,
464 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
465 -user-dependencies, -verbose, -write-dependencies,
466 -write-user-dependencies, no-integrated-cpp, traditional): New.
468 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
471 * c-common.h (objc_start_method_definition): Return bool instead
473 * stub-objc.c (objc_start_method_definition): Return bool instead
476 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
479 * c-common.h (objc_get_interface_ivars): New declaration.
480 * stub-objc.c (objc_get_interface_ivars): New stub.
482 2010-09-15 Ian Lance Taylor <iant@google.com>
484 * c-common.c (parse_optimize_options): Do not capitalize warning
485 messages. Remove period at end of warning message.
487 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
489 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
490 (handle_alias_attribute): ... here.
491 (handle_ifunc_attribute): New.
493 2010-09-06 Mark Mitchell <mark@codesourcery.com>
495 * c-common.h (do_warn_double_promotion): Declare.
496 * c-common.c (do_warn_double_promotion): Define.
498 2010-09-05 Mark Mitchell <mark@codesourcery.com>
500 * c.opt (Wdouble-promotion): New.
502 2010-09-02 Joseph Myers <joseph@codesourcery.com>
504 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
505 fvtable-thunks, fxref): Mark no longer supported in help text.
507 2010-09-02 Joseph Myers <joseph@codesourcery.com>
509 * c.opt (Wimport, fall-virtual, falt-external-templates,
510 fdefault-inline, fenum-int-equiv, fexternal-templates,
511 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
512 fname-mangling-version-, fnew-abi, fnonnull-objects,
513 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
514 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
516 (fhandle-exceptions): Mark with Alias and Warn.
517 * c-opts.c (c_common_handle_option): Don't handle options marked
520 2010-09-02 Joseph Myers <joseph@codesourcery.com>
522 * c.opt (Wcomments, Werror-implicit-function-declaration,
523 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
524 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
526 * c-common.c (option_codes): Use OPT_Wcomment instead of
528 * c-opts.c (warning_as_error_callback, c_common_handle_option):
529 Don't handle options marked as aliases.
531 2010-08-25 Richard Guenther <rguenther@suse.de>
533 * c-common.c (c_common_get_alias_set): Remove special
534 handling for pointers.
536 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
538 * c-common.c: Use FOR_EACH_VEC_ELT.
539 * c-gimplify.c: Likewise.
540 * c-pragma.c: Likewise.
542 2010-08-16 Joseph Myers <joseph@codesourcery.com>
544 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
546 (MMDX): Change back to MMD. Mark NoDriverArg instead of
548 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
549 instead of OPT_MDX and OPT_MMDX.
551 2010-08-16 Joseph Myers <joseph@codesourcery.com>
553 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
555 2010-08-12 Joseph Myers <joseph@codesourcery.com>
557 * c.opt (MD, MMD): Change to MDX and MMDX.
558 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
560 2010-08-11 Joseph Myers <joseph@codesourcery.com>
562 * c-opts.c (c_common_handle_option): Call handle_generated_option
563 instead of handle_option.
565 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
567 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
568 (maybe_apply_renaming_pragma): Delete unneeded declarations.
570 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
572 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
573 (pending_redefine_extname): Change type to a VEC.
574 (add_to_renaming_pragma_list): Update for new type of
575 pending_redefine_extname.
576 (maybe_apply_renaming_pragma): Likewise.
578 2010-08-04 Arnaud Charlet <charlet@adacore.com>
580 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
582 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
583 decide whether a type has already been declared/seen.
584 Do not go to the original type.
585 (dump_nested_types): New parameter forward.
586 Generate forward declaration if needed and mark type as visited.
587 (print_ada_declaration): Call dump_nested_types if not already done.
588 Mark types as visited.
590 2010-08-03 Joseph Myers <joseph@codesourcery.com>
592 * c.opt (-print-pch-checksum): Remove option.
593 * c-opts.c (c_common_handle_option): Don't handle
594 OPT_print_pch_checksum.
596 2010-07-27 Joseph Myers <joseph@codesourcery.com>
598 * c-common.h (c_common_handle_option): Update prototype and return
600 * c-opts.c (c_common_handle_option): Update prototype and return
601 value type. Update calls to handle_option and
602 enable_warning_as_error.
604 2010-07-27 Jakub Jelinek <jakub@redhat.com>
607 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
609 2010-07-27 Joseph Myers <joseph@codesourcery.com>
611 * c-common.h (c_common_missing_argument): Remove.
612 * c-opts.c (c_common_missing_argument): Remove.
613 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
614 idirafter, imacros, include, isysroot, isystem, iquote): Add
616 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
618 2010-07-27 Joseph Myers <joseph@codesourcery.com>
620 * c-common.h (c_common_option_lang_mask,
621 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
623 (c_common_init_options): Update prototype.
624 * c-opts.c (c_common_option_lang_mask): New.
625 (c_common_initialize_diagnostics): Split out of
626 c_common_init_options.
627 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
629 (c_common_init_options): Update prototype. Use decoded options in
630 search for -lang-asm.
632 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
634 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
635 * c-format.c: Likewise.
637 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
639 * c-common.h: Include diagnostic-core.h. Error if already
641 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
643 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
645 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
646 Do not include expr.h
647 (vector_mode_valid_p): Move here.
649 2010-06-21 DJ Delorie <dj@redhat.com>
651 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
652 allow these pragmas anywhere.
654 2010-06-14 Jakub Jelinek <jakub@redhat.com>
657 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
658 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
659 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
660 ggc_strdup instead of xstrdup.
662 2010-06-10 Jakub Jelinek <jakub@redhat.com>
664 * c-cppbuiltin.c: Include cpp-id-data.h.
665 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
666 (lazy_hex_fp_value): New function.
667 (builtin_define_with_hex_fp_value): Provide definitions lazily.
669 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
671 * c-gimplify.c: Do not include tree-flow.h
673 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
676 * c-common.c: Rename targetm member:
677 targetm.enum_va_list -> targetm.enum_va_list_p
679 2010-06-28 Anatoly Sokolov <aesok@post.ru>
681 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
683 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
685 * c-cppbuiltin.c: Do not include except.h.
687 2010-06-24 Andi Kleen <ak@linux.intel.com>
689 * c-common.c (warn_for_omitted_condop): New.
690 * c-common.h (warn_for_omitted_condop): Add prototype.
692 2010-06-21 Joseph Myers <joseph@codesourcery.com>
694 * c.opt (lang-objc): Remove.
695 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
697 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
699 * c-opts.c: Include "tm_p.h".
701 2010-06-20 Joseph Myers <joseph@codesourcery.com>
703 * c-common.c (parse_optimize_options): Update call to
706 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
708 * c-common.c (record_types_used_by_current_var_decl): Adjust for
709 new type of types_used_by_cur_var_decl.
711 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
714 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
715 for C++ standard compliance.
717 2010-06-16 Jason Merrill <jason@redhat.com>
719 * c.opt: Add -Wnoexcept.
721 2010-06-16 Richard Guenther <rguenther@suse.de>
724 * c-common.c (c_common_truthvalue_conversion): Remove
725 premature and wrong optimization concering ADDR_EXPRs.
727 2010-06-15 Arnaud Charlet <charlet@adacore.com>
729 * c-ada-spec.c (dump_sloc): Remove column info.
730 (is_simple_enum): New function.
731 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
732 enum types when relevant.
734 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
736 * c-common.c (conversion_warning): Warn at expression
739 2010-06-10 Joseph Myers <joseph@codesourcery.com>
741 * c-opts.c (c_common_handle_option): Don't handle
744 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
746 * c-pragma.c (push_alignment): Use typed GC allocation.
747 (handle_pragma_push_options): Likewise.
749 * c-common.c (parse_optimize_options): Likewise.
751 * c-common.h (struct sorted_fields_type): Add variable_size GTY
754 2010-06-07 Joseph Myers <joseph@codesourcery.com>
756 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
757 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
758 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
759 flag_signed_bitfields, warn_strict_null_sentinel,
760 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
761 flag_gen_declaration, flag_no_gnu_keywords,
762 flag_implement_inlines, flag_implicit_templates,
763 flag_implicit_inline_templates, flag_optional_diags,
764 flag_elide_constructors, flag_default_inline, flag_rtti,
765 flag_conserve_space, flag_access_control, flag_check_new,
766 flag_new_for_scope, flag_weak, flag_working_directory,
767 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
768 flag_enforce_eh_specs, flag_threadsafe_statics,
769 flag_pretty_templates): Remove.
770 * c-common.h (flag_preprocess_only, flag_nil_receivers,
771 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
772 flag_replace_objc_classes, flag_undef, flag_no_builtin,
773 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
774 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
775 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
776 flag_no_gnu_keywords, flag_implement_inlines,
777 flag_implicit_templates, flag_implicit_inline_templates,
778 flag_optional_diags, flag_elide_constructors, flag_default_inline,
779 flag_rtti, flag_conserve_space, flag_access_control,
780 flag_check_new, flag_new_for_scope, flag_weak,
781 flag_working_directory, flag_use_cxa_atexit,
782 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
783 flag_threadsafe_statics, flag_pretty_templates,
784 warn_strict_null_sentinel): Remove.
785 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
786 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
787 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
788 fimplicit-inline-templates, fimplicit-templates,
789 flax-vector-conversions, fms-extensions, fnil-receivers,
790 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
791 frtti, fshort-double, fshort-enums, fshort-wchar,
792 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
793 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
794 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
795 gen-decls, undef): Use Var.
796 (fdefault-inline, foptional-diags): Document as doing nothing.
797 * c-opts.c (c_common_handle_option): Remove cases for options now
798 using Var. Mark ignored options as such.
800 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
802 * c-common.c: Moved to here from parent directory.
803 * c-common.def: Likewise.
804 * c-common.h: Likewise.
805 * c-cppbuiltin.c: Likewise.
806 * c-dump.c: Likewise.
807 * c-format.c: Likewise.
808 * c-format.h : Likewise.
809 * c-gimplify.c: Likewise.
813 * c-opts.c: Likewise.
815 * c-ppoutput.c: Likewise.
816 * c-pragma.c: Likewise.
817 * c-pragma.h: Likewise.
818 * c-pretty-print.c: Likewise.
819 * c-pretty-print.h: Likewise.
820 * c-semantics.c: Likewise.
821 * stub-objc.c: Likewise.
823 * c-common.c: Include gt-c-family-c-common.h.
824 * c-pragma.c: Include gt-c-family-c-pragma.h.
826 Copyright (C) 2010 Free Software Foundation, Inc.
828 Copying and distribution of this file, with or without modification,
829 are permitted in any medium without royalty provided the copyright
830 notice and this notice are preserved.