efe6b54a984a17021063ea33b41da6d8ef04602b
[gcc.git] / gcc / c-family / ChangeLog
1 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2
3 * c-common.h (struct diagnostic_context): Don't declare here.
4 (c_common_initialize_diagnostics): Declare using
5 diagnostic_context typedef.
6 * c-opts.c (c_common_handle_option): Pass global_dc to
7 handle_generated_option.
8
9 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10
11 * c-opts.c (c_common_handle_option): Pass &global_options_set to
12 handle_generated_option.
13
14 2010-10-03 Ian Lance Taylor <iant@google.com>
15
16 * c.opt (-fplan9-extensions): New option.
17
18 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19
20 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
21 Remove.
22 (c_cpp_builtins): Call functions from cppbuiltin.c instead
23 of duplicating code.
24
25 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
26
27 * c-common.c: Add two new entries for @optional
28 and @required keywords.
29
30 merge from FSF 'apple/trunk' branch.
31 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
32
33 Radar 4386773
34 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
35 objective-c keywords.
36 (objc_set_method_opt): New declaration.
37 * stub-objc.c (objc_set_method_opt): New stub.
38
39 2010-09-30 Joseph Myers <joseph@codesourcery.com>
40
41 * c-common.c (handle_optimize_attribute): Pass &global_options to
42 cl_optimization_save and cl_optimization_restore.
43 * c-opts.c (c_common_handle_option): Pass &global_options to
44 handle_generated_option.
45 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
46 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
47 &global_options to cl_optimization_restore.
48
49 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
50
51 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
52 Objective-C/Objective-C++ keywords.
53
54 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
55
56 Merge from 'apple/trunk' branch on FSF servers.
57
58 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
59
60 Radar 4281748
61 * c-common.h (objc_check_global_decl): New declaration.
62 * stub-objc.c (objc_check_global_decl): New stub.
63
64 2010-09-29 Joseph Myers <joseph@codesourcery.com>
65
66 * c.opt: Don't use VarExists.
67
68 2010-09-29 Joseph Myers <joseph@codesourcery.com>
69
70 * c-common.c (c_cpp_error): Update names of diagnostic_context
71 members.
72 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
73 cl_optimization members.
74 * c-opts.c (warning_as_error_callback, c_common_handle_option,
75 sanitize_cpp_opts, finish_options): Update names of cpp_options
76 members.
77
78 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
79
80 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
81 (objc_is_reserved_word): Removed.
82 * c-common.c: Updated comments.
83 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
84 objc_is_reserved_word.
85 * stub-objc.c (objc_is_reserved_word): Removed.
86
87 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
88
89 * c-common.h (objc_add_method_declaration): Adjust prototype to
90 include attributes.
91 (objc_start_method_definition): Likewise.
92 (objc_build_keyword_decl): Likewise.
93 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
94 (objc_start_method_definition): Likewise.
95 (objc_build_keyword_decl): Likewise.
96
97 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
98
99 * c-common.h (objc_start_class_interface): Adjust prototype.
100 (objc_start_category_interface): Likewise.
101 (objc_start_protocol): Likewise.
102 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
103 (objc_start_class_interface): Likewise.
104 (objc_start_category_interface): Likewise.
105
106 2010-09-27 Ian Lance Taylor <iant@google.com>
107
108 * c-common.c (c_common_attribute_table): Add no_split_stack.
109 (handle_no_split_stack_attribute): New static function.
110
111 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
112
113 Merge from 'apple/trunk' branch on FSF servers.
114
115 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
116
117 Radar 4229905
118 * c-common.h (objc_have_common_type): New declaration.
119 * stub-objc.c (objc_have_common_type): New stub.
120
121 2005-06-22 Ziemowit Laski <zlaski@apple.com>
122
123 Radar 4154928
124 * c-common.h (objc_common_type): New prototype.
125 * stub-objc.c (objc_common_type): New stub.
126
127 2010-09-24 Jan Hubicka <jh@suse.cz>
128
129 * c-common.c (handle_leaf_attribute): New function.
130 (struct attribute_spec c_common_att): Add leaf.
131
132 2010-09-22 Joseph Myers <joseph@codesourcery.com>
133
134 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
135 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
136 -dump, -dump=, -imacros, -imacros=, -include, -include=,
137 -include-barrier, -include-directory, -include-directory=,
138 -include-directory-after, -include-directory-after=,
139 -include-prefix, -include-prefix=, -include-with-prefix,
140 -include-with-prefix=, -include-with-prefix-after,
141 -include-with-prefix-after=, -include-with-prefix-before,
142 -include-with-prefix-before=, -no-integrated-cpp,
143 -no-line-commands, -no-standard-includes, -no-warnings, -output,
144 -output=, -pedantic, -pedantic-errors, -preprocess,
145 -print-missing-file-dependencies, -trace-includes, -traditional,
146 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
147 -user-dependencies, -verbose, -write-dependencies,
148 -write-user-dependencies, no-integrated-cpp, traditional): New.
149
150 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
151
152 PR objc/23710
153 * c-common.h (objc_start_method_definition): Return bool instead
154 of void.
155 * stub-objc.c (objc_start_method_definition): Return bool instead
156 of void.
157
158 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
159
160 PR objc/25965
161 * c-common.h (objc_get_interface_ivars): New declaration.
162 * stub-objc.c (objc_get_interface_ivars): New stub.
163
164 2010-09-15 Ian Lance Taylor <iant@google.com>
165
166 * c-common.c (parse_optimize_options): Do not capitalize warning
167 messages. Remove period at end of warning message.
168
169 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
170
171 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
172 (handle_alias_attribute): ... here.
173 (handle_ifunc_attribute): New.
174
175 2010-09-06 Mark Mitchell <mark@codesourcery.com>
176
177 * c-common.h (do_warn_double_promotion): Declare.
178 * c-common.c (do_warn_double_promotion): Define.
179
180 2010-09-05 Mark Mitchell <mark@codesourcery.com>
181
182 * c.opt (Wdouble-promotion): New.
183
184 2010-09-02 Joseph Myers <joseph@codesourcery.com>
185
186 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
187 fvtable-thunks, fxref): Mark no longer supported in help text.
188
189 2010-09-02 Joseph Myers <joseph@codesourcery.com>
190
191 * c.opt (Wimport, fall-virtual, falt-external-templates,
192 fdefault-inline, fenum-int-equiv, fexternal-templates,
193 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
194 fname-mangling-version-, fnew-abi, fnonnull-objects,
195 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
196 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
197 applicable.
198 (fhandle-exceptions): Mark with Alias and Warn.
199 * c-opts.c (c_common_handle_option): Don't handle options marked
200 as ignored.
201
202 2010-09-02 Joseph Myers <joseph@codesourcery.com>
203
204 * c.opt (Wcomments, Werror-implicit-function-declaration,
205 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
206 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
207 aliases.
208 * c-common.c (option_codes): Use OPT_Wcomment instead of
209 OPT_Wcomments.
210 * c-opts.c (warning_as_error_callback, c_common_handle_option):
211 Don't handle options marked as aliases.
212
213 2010-08-25 Richard Guenther <rguenther@suse.de>
214
215 * c-common.c (c_common_get_alias_set): Remove special
216 handling for pointers.
217
218 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
219
220 * c-common.c: Use FOR_EACH_VEC_ELT.
221 * c-gimplify.c: Likewise.
222 * c-pragma.c: Likewise.
223
224 2010-08-16 Joseph Myers <joseph@codesourcery.com>
225
226 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
227 RejectDriver.
228 (MMDX): Change back to MMD. Mark NoDriverArg instead of
229 RejectDriver.
230 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
231 instead of OPT_MDX and OPT_MMDX.
232
233 2010-08-16 Joseph Myers <joseph@codesourcery.com>
234
235 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
236
237 2010-08-12 Joseph Myers <joseph@codesourcery.com>
238
239 * c.opt (MD, MMD): Change to MDX and MMDX.
240 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
241
242 2010-08-11 Joseph Myers <joseph@codesourcery.com>
243
244 * c-opts.c (c_common_handle_option): Call handle_generated_option
245 instead of handle_option.
246
247 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
248
249 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
250 (maybe_apply_renaming_pragma): Delete unneeded declarations.
251
252 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
253
254 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
255 (pending_redefine_extname): Change type to a VEC.
256 (add_to_renaming_pragma_list): Update for new type of
257 pending_redefine_extname.
258 (maybe_apply_renaming_pragma): Likewise.
259
260 2010-08-04 Arnaud Charlet <charlet@adacore.com>
261
262 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
263 visited.
264 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
265 decide whether a type has already been declared/seen.
266 Do not go to the original type.
267 (dump_nested_types): New parameter forward.
268 Generate forward declaration if needed and mark type as visited.
269 (print_ada_declaration): Call dump_nested_types if not already done.
270 Mark types as visited.
271
272 2010-08-03 Joseph Myers <joseph@codesourcery.com>
273
274 * c.opt (-print-pch-checksum): Remove option.
275 * c-opts.c (c_common_handle_option): Don't handle
276 OPT_print_pch_checksum.
277
278 2010-07-27 Joseph Myers <joseph@codesourcery.com>
279
280 * c-common.h (c_common_handle_option): Update prototype and return
281 value type.
282 * c-opts.c (c_common_handle_option): Update prototype and return
283 value type. Update calls to handle_option and
284 enable_warning_as_error.
285
286 2010-07-27 Jakub Jelinek <jakub@redhat.com>
287
288 PR c/45079
289 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
290
291 2010-07-27 Joseph Myers <joseph@codesourcery.com>
292
293 * c-common.h (c_common_missing_argument): Remove.
294 * c-opts.c (c_common_missing_argument): Remove.
295 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
296 idirafter, imacros, include, isysroot, isystem, iquote): Add
297 MissingArgError.
298 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
299
300 2010-07-27 Joseph Myers <joseph@codesourcery.com>
301
302 * c-common.h (c_common_option_lang_mask,
303 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
304 New.
305 (c_common_init_options): Update prototype.
306 * c-opts.c (c_common_option_lang_mask): New.
307 (c_common_initialize_diagnostics): Split out of
308 c_common_init_options.
309 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
310 New.
311 (c_common_init_options): Update prototype. Use decoded options in
312 search for -lang-asm.
313
314 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
315
316 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
317 * c-format.c: Likewise.
318
319 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
320
321 * c-common.h: Include diagnostic-core.h. Error if already
322 included.
323 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
324
325 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
326
327 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
328 Do not include expr.h
329 (vector_mode_valid_p): Move here.
330
331 2010-06-21 DJ Delorie <dj@redhat.com>
332
333 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
334 allow these pragmas anywhere.
335
336 2010-06-14 Jakub Jelinek <jakub@redhat.com>
337
338 PR bootstrap/44509
339 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
340 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
341 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
342 ggc_strdup instead of xstrdup.
343
344 2010-06-10 Jakub Jelinek <jakub@redhat.com>
345
346 * c-cppbuiltin.c: Include cpp-id-data.h.
347 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
348 (lazy_hex_fp_value): New function.
349 (builtin_define_with_hex_fp_value): Provide definitions lazily.
350
351 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
352
353 * c-gimplify.c: Do not include tree-flow.h
354
355 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
356
357 PR other/44034
358 * c-common.c: Rename targetm member:
359 targetm.enum_va_list -> targetm.enum_va_list_p
360
361 2010-06-28 Anatoly Sokolov <aesok@post.ru>
362
363 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
364
365 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
366
367 * c-cppbuiltin.c: Do not include except.h.
368
369 2010-06-24 Andi Kleen <ak@linux.intel.com>
370
371 * c-common.c (warn_for_omitted_condop): New.
372 * c-common.h (warn_for_omitted_condop): Add prototype.
373
374 2010-06-21 Joseph Myers <joseph@codesourcery.com>
375
376 * c.opt (lang-objc): Remove.
377 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
378
379 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
380
381 * c-opts.c: Include "tm_p.h".
382
383 2010-06-20 Joseph Myers <joseph@codesourcery.com>
384
385 * c-common.c (parse_optimize_options): Update call to
386 decode_options.
387
388 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
389
390 * c-common.c (record_types_used_by_current_var_decl): Adjust for
391 new type of types_used_by_cur_var_decl.
392
393 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
394
395 PR bootstrap/44512
396 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
397 for C++ standard compliance.
398
399 2010-06-16 Jason Merrill <jason@redhat.com>
400
401 * c.opt: Add -Wnoexcept.
402
403 2010-06-16 Richard Guenther <rguenther@suse.de>
404
405 PR c/44555
406 * c-common.c (c_common_truthvalue_conversion): Remove
407 premature and wrong optimization concering ADDR_EXPRs.
408
409 2010-06-15 Arnaud Charlet <charlet@adacore.com>
410
411 * c-ada-spec.c (dump_sloc): Remove column info.
412 (is_simple_enum): New function.
413 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
414 enum types when relevant.
415
416 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
417
418 * c-common.c (conversion_warning): Warn at expression
419 location.
420
421 2010-06-10 Joseph Myers <joseph@codesourcery.com>
422
423 * c-opts.c (c_common_handle_option): Don't handle
424 OPT_fshow_column.
425
426 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
427
428 * c-pragma.c (push_alignment): Use typed GC allocation.
429 (handle_pragma_push_options): Likewise.
430
431 * c-common.c (parse_optimize_options): Likewise.
432
433 * c-common.h (struct sorted_fields_type): Add variable_size GTY
434 option.
435
436 2010-06-07 Joseph Myers <joseph@codesourcery.com>
437
438 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
439 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
440 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
441 flag_signed_bitfields, warn_strict_null_sentinel,
442 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
443 flag_gen_declaration, flag_no_gnu_keywords,
444 flag_implement_inlines, flag_implicit_templates,
445 flag_implicit_inline_templates, flag_optional_diags,
446 flag_elide_constructors, flag_default_inline, flag_rtti,
447 flag_conserve_space, flag_access_control, flag_check_new,
448 flag_new_for_scope, flag_weak, flag_working_directory,
449 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
450 flag_enforce_eh_specs, flag_threadsafe_statics,
451 flag_pretty_templates): Remove.
452 * c-common.h (flag_preprocess_only, flag_nil_receivers,
453 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
454 flag_replace_objc_classes, flag_undef, flag_no_builtin,
455 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
456 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
457 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
458 flag_no_gnu_keywords, flag_implement_inlines,
459 flag_implicit_templates, flag_implicit_inline_templates,
460 flag_optional_diags, flag_elide_constructors, flag_default_inline,
461 flag_rtti, flag_conserve_space, flag_access_control,
462 flag_check_new, flag_new_for_scope, flag_weak,
463 flag_working_directory, flag_use_cxa_atexit,
464 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
465 flag_threadsafe_statics, flag_pretty_templates,
466 warn_strict_null_sentinel): Remove.
467 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
468 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
469 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
470 fimplicit-inline-templates, fimplicit-templates,
471 flax-vector-conversions, fms-extensions, fnil-receivers,
472 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
473 frtti, fshort-double, fshort-enums, fshort-wchar,
474 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
475 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
476 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
477 gen-decls, undef): Use Var.
478 (fdefault-inline, foptional-diags): Document as doing nothing.
479 * c-opts.c (c_common_handle_option): Remove cases for options now
480 using Var. Mark ignored options as such.
481
482 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
483
484 * c-common.c: Moved to here from parent directory.
485 * c-common.def: Likewise.
486 * c-common.h: Likewise.
487 * c-cppbuiltin.c: Likewise.
488 * c-dump.c: Likewise.
489 * c-format.c: Likewise.
490 * c-format.h : Likewise.
491 * c-gimplify.c: Likewise.
492 * c-lex.c: Likewise.
493 * c-omp.c: Likewise.
494 * c.opt: Likewise.
495 * c-opts.c: Likewise.
496 * c-pch.c: Likewise.
497 * c-ppoutput.c: Likewise.
498 * c-pragma.c: Likewise.
499 * c-pragma.h: Likewise.
500 * c-pretty-print.c: Likewise.
501 * c-pretty-print.h: Likewise.
502 * c-semantics.c: Likewise.
503 * stub-objc.c: Likewise.
504
505 * c-common.c: Include gt-c-family-c-common.h.
506 * c-pragma.c: Include gt-c-family-c-pragma.h.
507 \f
508 Copyright (C) 2010 Free Software Foundation, Inc.
509
510 Copying and distribution of this file, with or without modification,
511 are permitted in any medium without royalty provided the copyright
512 notice and this notice are preserved.