opts.c: Include diagnostic-color.h.
[gcc.git] / gcc / c-family / ChangeLog
1 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2
3 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
5 specifiers.
6
7 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
8
9 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
10
11 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
12
13 * c-common.c (pointer_int_sum): Remove dead code.
14
15 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
16
17 PR middle-end/56524
18 * c-common.c (handle_optimize_attribute): Don't call
19 save_optabs_if_changed.
20
21 2013-03-05 Jakub Jelinek <jakub@redhat.com>
22
23 PR middle-end/56461
24 * c-pch.c (pch_init): Free target_validity at the end.
25
26 2013-03-04 Jakub Jelinek <jakub@redhat.com>
27
28 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
29
30 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
31 Jakub Jelinek <jakub@redhat.com>
32
33 PR sanitizer/56454
34 * c-common.c (handle_no_sanitize_address_attribute): New function.
35 (c_common_attribute_table): Add no_sanitize_address attribute.
36 (handle_no_address_safety_analysis_attribute): Add
37 no_sanitize_address attribute, not no_address_safety_analysis
38 attribute.
39
40 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
41
42 PR target/52555
43 * c-common.c (handle_optimize_attribute): Call
44 save_optabs_if_changed.
45
46 2013-02-18 Jakub Jelinek <jakub@redhat.com>
47 Steven Bosscher <steven@gcc.gnu.org>
48
49 PR pch/54117
50 * c-opts.c (c_common_post_options): If debug info is enabled
51 and non-dwarf*, refuse to load PCH files and when writing PCH
52 file warn.
53
54 2013-02-05 Jakub Jelinek <jakub@redhat.com>
55
56 PR middle-end/56167
57 * c-common.c (handle_error_attribute): Fix condition.
58
59 2013-01-30 Jakub Jelinek <jakub@redhat.com>
60
61 PR c++/55742
62 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
63
64 2013-01-18 Jason Merrill <jason@redhat.com>
65
66 PR target/54908
67 * c.opt (-fextern-tls-init): New.
68 * c-opts.c (c_common_post_options): Handle it.
69
70 2013-01-09 Jakub Jelinek <jakub@redhat.com>
71
72 PR c/48418
73 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
74 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
75 and is either negative or bigger or equal to type precision
76 of the first operand.
77
78 2012-12-03 Marek Polacek <polacek@redhat.com>
79
80 PR c/55570
81 * c-common.c (check_user_alignment): Swap order of tests,
82 check TREE_CODE first.
83
84 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
85
86 PR c++/52654
87 * c-common.h (overflow_type): New enum.
88 (build_userdef_literal): Add overflow_type argument.
89 (tree_userdef_literal): Add overflow_type.
90 (USERDEF_LITERAL_OVERFLOW): New access macro.
91 * c-common.c (build_userdef_literal): Add overflow_type
92 argument.
93 * c-lex.c (c_lex_with_flags): Add overflow_type to
94 build_userdef_literal calls.
95 (interpret_integer, interpret_float): Add overflow_type argument.
96
97 2012-11-28 Richard Biener <rguenther@suse.de>
98
99 PR c/35634
100 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
101 here and use a type with proper overflow behavior for types that would
102 need to be promoted for the arithmetic.
103
104 2012-11-23 Jakub Jelinek <jakub@redhat.com>
105
106 PR sanitizer/55435
107 * c-common.c (handle_no_address_safety_analysis_attribute): New
108 function.
109 (c_common_attribute_table): Add no_address_safety_analysis.
110
111 2012-11-16 Simon Baldwin <simonb@google.com>
112
113 * c.opt: Add f[no-]canonical-system-headers.
114 * c-opts.c (c_common_handle_option): Handle
115 OPT_fcanonical_system_headers.
116
117 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
118
119 PR c++/54413
120 * c-opts.c (c_common_handle_option): Set new flags.
121 * c.opt: Describe new flags.
122
123 2012-11-09 Jason Merrill <jason@redhat.com>
124
125 * c.opt (Wabi-tag): New.
126
127 2012-11-09 Andi Kleen <ak@linux.intel.com>
128
129 PR 55139
130 * c-common.c (get_atomic_generic_size): Mask with
131 MEMMODEL_MASK
132
133 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
134
135 PR c/53063
136 * c.opt (Wformat): Make it Alias Wformat=1.
137 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
138 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
139 LangEnabledBy.
140 (Wformat=): RejectNegative. Use LangEnabledBy.
141 (Wnonnull): Use LangEnabledBy.
142 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
143 * c-format.c (set_Wformat): Delete.
144 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
145 (maybe_read_dollar_number): Likewise.
146 (avoid_dollar_number): Likewise.
147 (finish_dollar_format_checking): Likewise.
148 (check_format_info): Likewise.
149 (check_format_info_main): Likewise.
150 (check_format_types): Likewise.
151 (format_type_warning): Likewise.
152 * c-common.c (int): Likewise.
153 (check_function_sentinel): Likewise.
154 * c-common.h (warn_format,set_Wformat): Do not declare here.
155
156 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
157
158 PR c/53063
159 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
160 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
161 Use LangEnabledBy.
162 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
163 common.opt.
164 (Wvariadic-macros): Init(1).
165 * c-opts.c (c_common_handle_option): Do not handle them
166 explicitly.
167 (c_common_post_options): Likewise.
168 (sanitize_cpp_opts): warn_unused_macros is now
169 cpp_warn_unused_macros.
170 (push_command_line_include): Likewise.
171 * c-common.c (warn_unknown_pragmas): Do not define.
172 * c-common.h (warn_unknown_pragmas): Do not declare.
173
174 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
175
176 PR c/51294
177 * c-common.c (conversion_warning): Handle conditional expressions.
178
179 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
180
181 PR c++/54930
182 * c.opt (Wreturn_local_addr): Define new option.
183
184 2012-10-25 Jason Merrill <jason@redhat.com>
185
186 * c.opt (Wvirtual-move-assign): New.
187
188 * c.opt (Winherited-variadic-ctor): New.
189
190 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
191
192 PR c++/54427
193 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
194
195 2012-10-23 Joseph Myers <joseph@codesourcery.com>
196
197 * c-common.h (pch_cpp_save_state): Declare.
198 * c-target.def (c_preinclude): New hook.
199 * c-opts.c (done_preinclude): New.
200 (push_command_line_include): Handle default preincluded header.
201 (cb_file_change): Call pch_cpp_save_state when calling
202 push_command_line_include.
203 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
204 (pch_cpp_save_state): New.
205 (pch_init): Call pch_cpp_save_state conditionally, instead of
206 calling cpp_save_state.
207
208 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
209
210 PR c/53063
211 PR c/40989
212 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
213 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
214 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
215 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
216 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
217 * c-opts.c (c_common_handle_option): Remove explicit handling from
218 here.
219 (c_common_post_options): Likewise.
220
221 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
222
223 * c-ada-spec.c (LOCATION_COL): Delete.
224 (compare_location): New function.
225 (compare_node): Use it.
226 (compare_comment): Likewise.
227
228 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
229
230 PR c/53063
231 PR c/40989
232 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
233 * c-opts.c (c_common_handle_option): Do not set them here. Add
234 comment.
235 (c_common_post_options): Likewise.
236
237 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
238
239 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
240 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
241 Remove POINTER_TYPE handling, add large unsigned handling and use
242 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
243
244 2012-10-12 Jakub Jelinek <jakub@redhat.com>
245
246 PR c/54381
247 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
248 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
249 locs and array of 3 trees instead of just single loc and single
250 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
251 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
252 For *cmp* builtins that take two sources strings report warnings
253 about first and second source, not about destination and source.
254
255 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
256
257 PR c++/53055
258 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
259
260 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
261
262 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
263 declaring something coming from another file.
264
265 2012-10-10 Arnaud Charlet <charlet@adacore.com>
266
267 PR ada/54845
268 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
269
270 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
271
272 PR c++/54194
273 * c-common.c (warn_about_parentheses): Add location_t parameter;
274 use EXPR_LOC_OR_LOC.
275 * c-common.h: Update declaration.
276
277 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
278
279 PR c++/54427
280 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
281 more operations. Make error messages optional.
282 * c-common.h (enum stv_conv): Moved from c-typeck.c.
283 (scalar_to_vector): Declare.
284
285 2012-10-08 Jason Merrill <jason@redhat.com>
286
287 * c-common.c (c_common_reswords): Add thread_local.
288
289 2012-10-08 Dodji Seketeli <dodji@redhat.com>
290
291 PR c++/53528 C++11 attribute support
292 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
293 new functions.
294 * c-common.c (check_cxx_fundamental_alignment_constraints): New
295 static function.
296 (handle_aligned_attribute): In choose strictest alignment
297 among many. Use new check_cxx_fundamental_alignment_constraints.
298 (handle_transparent_union_attribute): In c++11 attribute syntax,
299 don't look through typedefs.
300
301 2012-10-04 Arnaud Charlet <charlet@adacore.com>
302
303 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
304 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
305 out of dumpfile.h.
306
307 2012-09-25 Dehao Chen <dehao@google.com>
308
309 PR middle-end/54645
310 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
311 map when read in the pch.
312
313 2012-09-18 Arnaud Charlet <charlet@adacore.com>
314
315 * c-ada-spec.c: Style fixes.
316
317 2012-09-18 Thomas Quinot <quinot@adacore.com>
318
319 * c.opt (-fada-spec-parent): Define new command line switch.
320 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
321 is specified, generate binding spec as a child of the specified unit.
322
323 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
324 Manuel López-Ibáñez <manu@gcc.gnu.org>
325
326 PR c++/53210
327 * c.opt ([Winit-self]): Enabled by -Wall in C++.
328
329 2012-08-23 Arnaud Charlet <charlet@adacore.com>
330
331 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
332 for pointers, and add missing Convention C pragma.
333 (print_ada_struct_decl): Add missing aliased keyword.
334 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
335
336 2012-08-17 Jakub Jelinek <jakub@redhat.com>
337
338 * c-common.c (sizeof_pointer_memaccess_warning): New function.
339 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
340 * c-opts.c (c_common_handle_option): Enable it for -Wall.
341 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
342 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
343
344 2012-08-10 Richard Guenther <rguenther@suse.de>
345
346 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
347
348 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
349
350 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
351 instead of separate pp_newline and pp_flush.
352 (print_c_tree): Likewise.
353
354 2012-07-26 Richard Henderson <rth@redhat.com>
355
356 * c-common.c (handle_hot_attribute): Allow labels.
357 (handle_cold_attribute): Likewise.
358
359 2012-07-20 Jakub Jelinek <jakub@redhat.com>
360
361 PR c++/28656
362 * c-common.c (check_function_nonnull): Handle multiple nonnull
363 attributes properly.
364
365 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
366
367 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
368 * c-ada-spec.c: Likewise.
369 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
370
371 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
372
373 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
374 Remove code conditional on it.
375
376 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
377
378 * c-gimplify.c: Do not include basic-block.h.
379 * c-common.c: Do not include linfuncs.h.
380
381 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
382
383 * c-common.h: Include tree.h.
384
385 2012-07-02 Jason Merrill <jason@redhat.com>
386
387 PR c++/53524
388 * c-common.c (get_priority): Call default_conversion.
389
390 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
391
392 * c-pch.c (c_common_write_pch): Remove unused variables.
393
394 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
395
396 * cppspec.c: Moved from gcc/ to here.
397
398 2012-06-27 Kai Tietz <ktietz@redhat.com>
399
400 PR preprocessor/37215
401 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
402
403 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
404
405 * c-common.h (c_common_print_pch_checksum): Remove.
406 * c-pch.c: Do not include output.h.
407 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
408 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
409 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
410 (struct c_pch_header): Remove.
411 (get_ident): Update gpch version.
412 (pch_init): Do not print executable_checksum to asm_out_file.
413 Do not fail if there is no asm_out_file to read back from. Set
414 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
415 (c_common_write_pch): Verify that nothing was written to asm_out_file
416 since pch_init was called. Do not write a c_pch_header, and do not
417 copy from asm_out_file to the PCH.
418 (c_common_read_pch): Do not read a c_pch_header, and do not restore
419 the content of asm_out_file from the PCH.
420 (c_common_print_pch_checksum): Remove.
421 * c-opts.c (c_common_init): Print out executable_checksum directly.
422
423 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
424
425 * c-target.def (objc_declare_unresolved_class_reference,
426 objc_declare_class_definition): Add new hooks.
427
428 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
429
430 * c-lex.c: Do not include output.h.
431 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
432 Remove uses of ASM_OUTPUT_IDENT.
433
434 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
435
436 PR c++/51033
437 * c-common.h (c_build_vec_perm_expr): Move decl here.
438 * c-common.c (c_build_vec_perm_expr): Move definition
439 here.
440
441 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
442
443 * c.opt (fconserve-space): Turn into a no-op.
444
445 2012-06-04 Sterling Augustine <saugustine@google.com>
446
447 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
448 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
449 both the start and end of the function.
450
451 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
452
453 * c-common.c: Do not include output.h.
454 * c-pragma.c: Likewise.
455
456 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
457
458 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
459 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
460 (lang_decl_name): Handle namespace decls.
461
462 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
463
464 * c-ada-spec.c: Do not include output.h.
465 * c-semantics.c: Likewise.
466
467 2012-05-29 Joseph Myers <joseph@codesourcery.com>
468
469 * c-common.c: Fix typo.
470
471 2012-05-29 Michael Matz <matz@suse.de>
472
473 * c-common.h (c_expand_decl): Remove prototype.
474
475 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
476
477 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
478 * c-opts.c (c_common_handle_option): Remove code handling
479 warn_missing_braces.
480
481 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
482
483 PR c++/25137
484 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
485 -Wmissing_braces.
486
487 2012-05-22 Dodji Seketeli <dodji@redhat.com>
488
489 PR c++/53322
490 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
491
492 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
493
494 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
495 * c-opts.c (c_common_handle_option): Do not handle explicitly
496 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
497
498 2012-05-16 Dodji Seketeli <dodji@redhat.com>
499
500 PR preprocessor/7263
501 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
502 to cpp_classify_number. For diagnostics, use the precise location
503 instead of the global input_location.
504
505 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
506
507 PR c++/11856
508 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
509
510 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
511
512 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
513
514 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
515
516 PR 53063
517 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
518 Wreorder): Use LangEnabledBy.
519 * c-opts.c (c_common_handle_option): Do not enable them
520 explicitly. Call lang-specific generated functions.
521 (c_common_post_options): Do not set them here.
522
523 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
524
525 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
526 Wmissing-field-initializers,Wmissing-parameter-type,
527 Wold-style-declaration,Woverride-init): Use EnabledBy.
528 * c-opts.c (c_common_post_options): Do not set here explicitly.
529
530 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
531
532 PR 53063
533 * c-opts.c (c_common_handle_option): Use handle_generated_option
534 to enable sub-options.
535
536 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
537
538 PR c++/53158
539 * c-common.c (warnings_for_convert_and_check): Use warning_at.
540
541 2012-05-10 Richard Guenther <rguenther@suse.de>
542
543 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
544 adjust commentary about TYPE_IS_SIZETYPE types.
545
546 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
547
548 PR c++/53261
549 * c-common.c (warn_logical_operator): Check that argument of
550 integer_zerop is not NULL.
551
552 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
553
554 PR c/43772
555 * c-common.c (warn_logical_operator): Do not warn if either side
556 is already true or false.
557
558 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
559
560 PR c/51712
561 * c-common.c (expr_original_type): New.
562 (shorten_compare): Do not warn for enumeration types.
563
564 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
565
566 * c.opt (fpermissive): Add Var(flag_permissive).
567
568 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
569
570 PR c++/51033
571 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
572 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
573
574 2012-04-30 Dodji Seketeli <dodji@redhat.com>
575
576 Add -Wvarargs option
577 * c.opt (Wvarargs): Define new option.
578
579 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
580
581 * c-common.c (check_function_arguments): Replace
582 Wmissing-format-attribute with Wsuggest-attribute=format.
583
584 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
585
586 * c.opt (Wsuggest-attribute=format): New. Alias of
587 Wmissing-format-attribute.
588 * c-format.c (decode_format_type): Replace
589 Wmissing-format-attribute with Wsuggest-attribute=format.
590 (check_function_format): Likewise.
591
592 2012-04-27 Ollie Wild <aaw@google.com>
593
594 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
595 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
596 * c.opt: Add Wliteral-suffix.
597
598 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
599
600 PR c/44774
601 * c.opt (Wpedantic): New.
602 (pedantic): Alias Wpedantic.
603 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
604 (c_common_post_options): Likewise.
605 (sanitize_cpp_opts): Likewise.
606 * c-lex.c (interpret_float): Likewise.
607 * c-format.c (check_format_types): Likewise.
608 * c-common.c (pointer_int_sum): Likewise.
609 (c_sizeof_or_alignof_type): Likewise.
610 (c_add_case_label): Likewise.
611 (c_do_switch_warnings): Likewise.
612 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
613
614 2012-04-15 Jason Merrill <jason@redhat.com>
615
616 PR c++/52818
617 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
618 (C_STD_NAME): Distinguish between C++98 and C++11.
619
620 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
621
622 PR target/52624
623 * c-common.h (uint16_type_node): Rename into...
624 (c_uint16_type_node): ...this.
625 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
626 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
627
628 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
629
630 * c-common.c (warn_if_unused_value): Move definition to here.
631 * c-common.h (warn_if_unused_value): Move declaration to here.
632
633 2012-03-23 William Bader <williambader@hotmail.com>
634
635 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
636
637 2012-03-20 Jason Merrill <jason@redhat.com>
638
639 * c-common.h (enum cxx_dialect): Add cxx1y.
640 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
641 test.
642 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
643 * c-opts.c (c_common_post_options): Likewise.
644 (set_std_cxx1y): New.
645 (c_common_handle_option): Call it.
646 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
647
648 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
649
650 PR c++/14710
651 * c.opt ([Wuseless-cast]): Add.
652
653 2012-03-16 Richard Guenther <rguenther@suse.de>
654
655 * c-pretty-print.c (pp_c_initializer_list): Adjust.
656
657 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
658
659 PR c++/44783
660 * c.opt (ftemplate-backtrace-limit) Add.
661
662 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
663
664 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
665 handling.
666 * c-pragma.c (handle_pragma_extern_prefix): Remove.
667 (init_pragma): Don't register extern_prefix.
668
669 2012-03-12 Richard Guenther <rguenther@suse.de>
670
671 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
672 (builtin_type_for_size): Likewise.
673
674 2012-02-13 Jakub Jelinek <jakub@redhat.com>
675
676 PR c++/52215
677 * c-common.c (sync_resolve_params): Don't decide whether to convert
678 or not based on TYPE_SIZE comparison, convert whenever arg_type
679 is unsigned INTEGER_TYPE.
680
681 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
682
683 PR c/52118
684 * c.opt ([Wunused-local-typedefs]): Fix description.
685
686 2012-01-24 Mike Stump <mikestump@comcast.net>
687
688 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
689 exactly.
690
691 2012-01-18 Richard Guenther <rguenther@suse.de>
692
693 * c-opts.c (c_common_post_options): Reset LTO flags if
694 we are about to generate a PCH.
695
696 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
697
698 PR c++/51777
699 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
700 use pp_unsigned_wide_integer.
701
702 2012-01-10 Richard Guenther <rguenther@suse.de>
703
704 PR middle-end/51806
705 * c-opts.c (c_common_handle_option): Move -Werror handling
706 to language independent code.
707
708 2012-01-05 Richard Guenther <rguenther@suse.de>
709
710 PR middle-end/51764
711 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
712 from common.opt.
713
714 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
715
716 PR c++/51316
717 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
718 of array types with an unknown bound.
719
720 2011-12-20 Joseph Myers <joseph@codesourcery.com>
721
722 * c-common.c (flag_isoc99): Update comment to refer to C11.
723 (flag_isoc1x): Change to flag_isoc11.
724 * c-common.h (flag_isoc99): Update comment to refer to C11.
725 (flag_isoc1x): Change to flag_isoc11.
726 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
727 C11.
728 * c-opts.c (set_std_c1x): Change to set_std_c11.
729 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
730 Call set_std_c11.
731 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
732 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
733 * c.opt (std=c1x): Change to std=c11. Document as non-draft
734 standard.
735 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
736 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
737 (std=gnu1x): Make alias of std=gnu11.
738
739 2011-12-19 Jason Merrill <jason@redhat.com>
740
741 PR c++/51228
742 * c-common.c (handle_transparent_union_attribute): Check the first
743 field if the type is complete.
744
745 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
746
747 PR libstdc++/51365
748 * c-common.c (RID_IS_FINAL): Add.
749 * c-common.h (RID_IS_FINAL): Add.
750
751 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
752
753 * c.opt (fgnu-runtime): Provide full description.
754 (fnext-runtime): Likewise.
755 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
756
757 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
758
759 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
760 predefines in one place. Add LOCK_FREE predefines.
761 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
762 new func.
763
764 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
765
766 PR c/51256
767 * c-common.c (get_atomic_generic_size): Check for various error
768 conditions
769 (resolve_overloaded_atomic_exchange,
770 resolve_overloaded_atomic_compare_exchange,
771 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
772 error_mark_node for error conditions.
773
774 2011-11-08 Richard Guenther <rguenther@suse.de>
775
776 PR middle-end/51010
777 c-family/
778
779 2011-11-07 Richard Henderson <rth@redhat.com>
780 Aldy Hernandez <aldyh@redhat.com>
781 Torvald Riegel <triegel@redhat.com>
782
783 Merged from transactional-memory.
784
785 * c-common.c (handle_tm_wrap_attribute,
786 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
787 (struct c_common_reswords): Added __transaction* keywords.
788 (struct c_common_attribute_table): Added transaction* and tm_regparm
789 attributes.
790 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
791 masks.
792 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
793 find_tm_attribute): Declare.
794
795 2011-11-07 Jason Merrill <jason@redhat.com>
796
797 PR c++/35688
798 * c-common.c, c-common.h: Revert yesterday's changes.
799
800 2011-11-06 Jason Merrill <jason@redhat.com>
801
802 PR c++/35688
803 * c-common.c (decl_has_visibility_attr): Split out from...
804 (c_determine_visibility): ...here.
805 * c-common.h: Declare it.
806
807 2011-11-06 Joseph Myers <joseph@codesourcery.com>
808
809 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
810 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
811 type.
812 (check_user_alignment): New. Split out of
813 handle_aligned_attribute. Disallow integer constants with
814 noninteger types. Conditionally allow zero.
815 (handle_aligned_attribute): Use check_user_alignment.
816 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
817
818 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
819 Richard Henderson <rth@redhat.com>
820
821 Merged from cxx-mem-model.
822
823 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
824 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
825 parameters that are the same type size.
826 (get_atomic_generic_size): New. Find size of generic
827 atomic function parameters and do typechecking.
828 (add_atomic_size_parameter): New. Insert size into parameter list.
829 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
830 either __atomic_exchange_n or external library call.
831 (resolve_overloaded_atomic_compare_exchange): Restructure
832 __atomic_compare_exchange to either _n variant or external library call.
833 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
834 __atomic_load_n or an external library call.
835 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
836 __atomic_store_n or an external library call.
837 (resolve_overloaded_builtin): Handle new __atomic builtins.
838
839 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
840
841 PR c++/50608
842 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
843 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
844 <INDIRECT_REF>: Return the argument.
845 <ARRAY_REF>: Remove special code for negative offset.
846 Call fold_build_pointer_plus instead of size_binop.
847 (fold_offsetof): Remove STOP_REF argument and adjust.
848 * c-common.h (fold_offsetof_1): Declare.
849 (fold_offsetof): Remove STOP_REF argument.
850
851 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
852
853 PR c++/50810
854 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
855 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
856 Wnarrowing for C++0x and C++98.
857 * c.opt ([Wnarrowing]): Update.
858
859 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
860
861 PR c++/44277
862 * c.opt: Add Wzero-as-null-pointer-constant.
863
864 2011-10-31 Jason Merrill <jason@redhat.com>
865
866 * c.opt (-fdeduce-init-list): Off by default.
867
868 PR c++/50920
869 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
870 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
871 and -Wc++11-compat.
872 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
873
874 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
875
876 PR c++/30066
877 * c.opt (fvisibility-inlines-hidden): Description change.
878
879 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
880
881 Implement C++11 user-defined literals.
882 * c-common.c (build_userdef_literal): New.
883 * c-common.def: New tree code.
884 * c-common.h (tree_userdef_literal): New tree struct and accessors.
885 * c-lex.c (interpret_float): Add suffix parm.
886 (c_lex_with_flags): Build literal tokens.
887
888 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
889
890 PR c++/50841
891 Revert:
892 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
893
894 PR c++/50810
895 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
896 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
897 Wnarrowing for C++0x and C++98.
898 * c.opt ([Wnarrowing]): Update.
899
900 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
901
902 PR c++/50810
903 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
904 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
905 Wnarrowing for C++0x and C++98.
906 * c.opt ([Wnarrowing]): Update.
907
908 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
909
910 PR c++/45385
911 * c-common.c (conversion_warning): Remove code looking for
912 artificial operands.
913
914 2011-10-18 Dodji Seketeli <dodji@redhat.com>
915
916 PR bootstrap/50760
917 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
918 !NO_IMPLICIT_EXTERN_C.
919
920 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
921
922 * c-common.c (c_common_reswords): Add __bases,
923 __direct_bases.
924 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
925
926 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
927
928 PR c++/50757
929 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
930
931 2011-10-15 Tom Tromey <tromey@redhat.com>
932 Dodji Seketeli <dodji@redhat.com>
933
934 * c.opt (fdebug-cpp): New option.
935 * c-opts.c (c_common_handle_option): Handle the option.
936 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
937 output stream in parameter. Factorized from ...
938 (maybe_print_line): ... this. Dump location debug information when
939 -fdebug-cpp is in effect.
940 (print_line_1): New static function. Takes an output stream in
941 parameter. Factorized from ...
942 (print_line): ... here. Dump location information when -fdebug-cpp
943 is in effect.
944 (scan_translation_unit): Dump location information when
945 -fdebug-cpp is in effect.
946
947 2011-10-15 Tom Tromey <tromey@redhat.com>
948 Dodji Seketeli <dodji@redhat.com>
949
950 * c.opt (ftrack-macro-expansion): New option. Handle it with and
951 without argument.
952 * c-opts.c (c_common_handle_option)<case
953 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
954 cases. Handle -ftrack-macro-expansion with and without argument.
955
956 2011-10-15 Tom Tromey <tromey@redhat.com>
957 Dodji Seketeli <dodji@redhat.com>
958
959 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
960 (print_line, cb_define, do_line_change): Adjust to avoid touching
961 the internals of struct line_map. Use the public API instead.
962 * c-pch.c (c_common_read_pch): Likewise.
963 * c-lex.c (fe_file_change): Likewise.
964
965 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
966
967 PR c++/17212
968 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
969
970 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
971
972 PR c++/33067
973 * c-pretty-print.c (pp_c_floating_constant): Output
974 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
975
976 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
977
978 * c-common.c (def_builtin_1): Delete old interface with two
979 parallel arrays to hold standard builtin declarations, and replace
980 it with a function based interface that can support creating
981 builtins on the fly in the future. Change all uses, and poison
982 the old names. Make sure 0 is not a legitimate builtin index.
983 * c-omp.c (c_finish_omp_barrier): Ditto.
984 (c_finish_omp_taskwait): Ditto.
985 (c_finish_omp_flush): Ditto.
986
987 2011-10-11 Tristan Gingold <gingold@adacore.com>
988
989 * c.opt: (fallow-parameterless-variadic-functions): New.
990
991 2011-09-08 Dodji Seketeli <dodji@redhat.com>
992
993 PR c++/33255 - Support -Wunused-local-typedefs warning
994 * c-common.h (struct c_language_function::local_typedefs): New
995 field.
996 (record_locally_defined_typedef, maybe_record_typedef_use)
997 (maybe_warn_unused_local_typedefs): Declare new functions.
998 * c-common.c (record_locally_defined_typedef)
999 (maybe_record_typedef_use)
1000 (maybe_warn_unused_local_typedefs): Define new functions.
1001 * c.opt: Declare new -Wunused-local-typedefs flag.
1002
1003 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1004
1005 PR middle-end/50266
1006 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1007 computations.
1008
1009 2011-09-05 Richard Guenther <rguenther@suse.de>
1010
1011 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1012 of integer_minus_one_node for empty array upper bounds.
1013
1014 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1015
1016 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1017 it's the first time it's being called on this main TU.
1018
1019 2011-08-24 Richard Guenther <rguenther@suse.de>
1020
1021 PR c/49396
1022 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1023
1024 2011-08-22 Gabriel Charette <gchare@google.com>
1025
1026 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1027 defined in cpp_init_builtins and c_cpp_builtins.
1028
1029 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1030
1031 * c-common.c (c_common_reswords): Add __builtin_complex.
1032 * c-common.h (RID_BUILTIN_COMPLEX): New.
1033
1034 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1035
1036 * c-common.c (c_common_reswords): Add _Noreturn.
1037 (keyword_is_function_specifier): Handle RID_NORETURN.
1038 * c-common.h (RID_NORETURN): New.
1039
1040 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1041
1042 * c-common.c (unsafe_conversion_p): New function. Check if it is
1043 unsafe to convert an expression to the type.
1044 (conversion_warning): Adjust, use unsafe_conversion_p.
1045 * c-common.h (unsafe_conversion_p): New function declaration.
1046
1047 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1048
1049 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1050 (c_finish_omp_taskyield): New prototype.
1051 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1052 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1053 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1054 or RHS1 have side-effects, evaluate those too in the right spot,
1055 if it is a decl and LHS is also a decl, error out if they
1056 aren't the same.
1057 (c_finish_omp_taskyield): New function.
1058 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1059 * c-pragma.c (omp_pragmas): Add taskyield.
1060 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1061 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1062 PRAGMA_OMP_CLAUSE_MERGEABLE.
1063
1064 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1065
1066 * c-common.h (set_underlying_type): Remove parm name from
1067 declaration.
1068
1069 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1070
1071 * c-pretty-print.h: Search c-common.h in c-family.
1072
1073 2011-07-22 Jason Merrill <jason@redhat.com>
1074
1075 PR c++/49793
1076 * c.opt (Wnarrowing): New.
1077
1078 PR c++/30112
1079 * c-common.h: Declare c_linkage_bindings.
1080 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1081
1082 PR c++/49813
1083 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1084 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1085 as flag_isoc99 for 'restrict'.
1086 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1087
1088 2011-07-21 Ian Lance Taylor <iant@google.com>
1089
1090 PR middle-end/49705
1091 * c-common.c (c_disable_warnings): New static function.
1092 (c_enable_warnings): New static function.
1093 (c_fully_fold_internal): Change local unused_p to bool. Call
1094 c_disable_warnings and c_enable_warnings rather than change
1095 c_inhibit_evaluation_warnings.
1096
1097 2011-07-20 Jason Merrill <jason@redhat.com>
1098
1099 PR c++/6709 (DR 743)
1100 PR c++/42603 (DR 950)
1101 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1102 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1103 (CPP_DECLTYPE): New.
1104 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1105
1106 2011-07-19 Richard Guenther <rguenther@suse.de>
1107
1108 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1109 * c-omp.c (c_finish_omp_for): Likewise.
1110
1111 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1112
1113 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1114 body on the next line.
1115
1116 2011-07-08 Jason Merrill <jason@redhat.com>
1117
1118 PR c++/45437
1119 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1120
1121 PR c++/49673
1122 * c-common.c (c_apply_type_quals_to_decl): Don't check
1123 TYPE_NEEDS_CONSTRUCTING.
1124
1125 2011-07-06 Richard Guenther <rguenther@suse.de>
1126
1127 * c-common.c (c_common_nodes_and_builtins):
1128 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1129
1130 2011-07-05 Richard Guenther <rguenther@suse.de>
1131
1132 * c-common.c (c_common_nodes_and_builtins): Build all common
1133 tree nodes first.
1134
1135 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1136
1137 * c-common.h (c_tree_chain_next): New static inline function.
1138
1139 * c-common.c (check_builtin_function_arguments): Handle
1140 BUILT_IN_ASSUME_ALIGNED.
1141
1142 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1143
1144 * c-common.c: Add sync_ or SYNC__ to builtin names.
1145 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1146
1147 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1148
1149 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1150 handler.
1151 (gen_pragma_handler): New union.
1152 (internal_pragma_handler): New type.
1153 (c_register_pragma_with_data)
1154 (c_register_pragma_with_expansion_and_data): New functions.
1155
1156 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1157 (c_register_pragma, c_register_pragma_with_expansion)
1158 (c_invoke_pragma_handler): Changed to work with
1159 internal_pragma_handler.
1160 (c_register_pragma_with_data)
1161 (c_register_pragma_with_expansion_and_data): New functions.
1162
1163 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1164
1165 * c-common.c: Include common/common-target.h.
1166 (handle_section_attribute): Use
1167 targetm_common.have_named_sections.
1168 * c-cppbuiltin.c: Include common/common-target.h.
1169 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1170
1171 2011-06-10 Richard Guenther <rguenther@suse.de>
1172
1173 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1174 to print a IDENTIFIER_NODE.
1175
1176 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1177 Joseph Myers <joseph@codesourcery.com>
1178
1179 * c.opt (fbuilding-libgcc): New option.
1180 * c-cppbuiltin.c (c_cpp_builtins): Define
1181 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1182
1183 2011-06-07 Jason Merrill <jason@redhat.com>
1184
1185 * c-common.c (max_tinst_depth): Lower default to 900.
1186
1187 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1188
1189 2011-06-07 Richard Guenther <rguenther@suse.de>
1190
1191 * c-common.c (c_common_nodes_and_builtins): Do not set
1192 size_type_node or call set_sizetype.
1193
1194 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1195
1196 PR debug/49130
1197 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1198 type when using pointer comparison to compare types.
1199
1200 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1201
1202 * c.opt: Add -Wdelete-non-virtual-dtor.
1203 * c-opts.c (c_common_handle_option): Include it in -Wall.
1204
1205 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1206
1207 PR bootstrap/49190
1208
1209 Revert:
1210 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1211
1212 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1213 not tree_common.
1214
1215 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1216
1217 PR c++/49165
1218 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1219 C++ don't call c_common_truthvalue_conversion on void type arms.
1220
1221 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1222
1223 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1224 (stmt_list_stack): Define.
1225 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1226 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1227
1228 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1229
1230 * c-common.c (warning_candidate_p): Check for BLOCKs.
1231
1232 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1233
1234 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1235 not tree_common.
1236
1237 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1238
1239 * c-common.c (def_fn_type): Remove extra va_end.
1240
1241 2011-05-23 Jason Merrill <jason@redhat.com>
1242
1243 PR c++/48106
1244 * c-common.c (c_common_get_narrower): New.
1245 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1246
1247 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1248
1249 * c-common.h (check_function_arguments): Tweak prototype of
1250 check_function_arguments.
1251 * c-common.c (check_function_arguments): Likewise. Adjust
1252 calls to check_function_nonnull, check_function_format, and
1253 check_function_sentinel.
1254 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1255 separate attributes and typelist arguments. Use
1256 FOREACH_FUNCTION_ARGS to iterate over argument types.
1257
1258 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1259
1260 * c-common.c (c_common_reswords): Reorder.
1261 * c-common.h (rid): Likewise.
1262
1263 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1264
1265 * c-common.c (def_fn_type): Don't call build_function_type, call
1266 build_function_type_array or build_varargs_function_type_array
1267 instead.
1268 (c_common_nodes_and_builtins): Likewise.
1269
1270 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1271
1272 * c-common.c (c_add_case_label): Omit the loc argument to
1273 build_case_label.
1274 * c-common.h (build_case_label): Remove.
1275 * c-semantics.c (build_case_label): Remove.
1276
1277 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1278
1279 * c-objc.h (objc_start_method_definition): Update prototype.
1280 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1281
1282 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1283
1284 * c-common.c (check_main_parameter_types): Reindent. Don't use
1285 TYPE_ARG_TYPES directly.
1286 (handle_nonnull_attribute): Likewise.
1287 (sync_resolve_params): Likewise.
1288 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1289 to check_format_string.
1290 (handle_format_attribute): Likewise.
1291 (check_format_string): Take a function type to examine instead of
1292 a type list. Use a function_arg_iterator to step through argument
1293 types.
1294
1295 2011-05-04 Richard Guenther <rguenther@suse.de>
1296
1297 * c-common.c (fix_string_type): Use size_int for index type bounds.
1298 (start_fname_decls): Do not pass NULL to build_int_cst.
1299 (c_init_attributes): Likewise.
1300 * c-lex.c (c_lex_with_flags): Likewise.
1301
1302 2011-04-27 Jason Merrill <jason@redhat.com>
1303
1304 * c-common.c (make_tree_vector_from_list): New.
1305 * c-common.h: Declare it.
1306
1307 2011-04-26 Richard Guenther <rguenther@suse.de>
1308
1309 PR preprocessor/48248
1310 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1311 for output size with -P.
1312
1313 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1314
1315 * c-common.c (struct c_common_resword): Add __underlying_type.
1316 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1317
1318 2011-04-20 Jim Meyering <meyering@redhat.com>
1319
1320 * c-format.c (init_dollar_format_checking): Remove useless
1321 if-before-free.
1322
1323 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1324
1325 * c-objc.h (objc_get_interface_ivars): Removed.
1326 (objc_detect_field_duplicates): New.
1327 * stub-objc.c: Likewise.
1328
1329 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1330
1331 * stub-objc.c (objc_declare_protocols): Renamed to
1332 objc_declare_protocol.
1333 * c-objc.h: Likewise.
1334
1335 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1336
1337 * stub-objc.c (objc_declare_class): Updated argument name.
1338
1339 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1340
1341 * c-common.h (c_common_init_ts): Declare.
1342 * c-common.c (c_common_init_ts): Define.
1343
1344 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1345
1346 * c-objc.h (objc_build_message_expr): Updated prototype.
1347 * stub-objc.c (objc_build_message_expr): Likewise.
1348
1349 2011-04-12 Martin Jambor <mjambor@suse.cz>
1350
1351 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1352 of cgraph_node.
1353
1354 2011-04-11 Richard Guenther <rguenther@suse.de>
1355
1356 * c-common.c (complete_array_type): Build a range type of
1357 proper type.
1358
1359 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1360
1361 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1362 (handle_type_generic_attribute): Likewise.
1363
1364 2011-04-07 Jason Merrill <jason@redhat.com>
1365
1366 PR c++/48450
1367 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1368 conversion from C++0x scoped enum.
1369
1370 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1371
1372 * c-target-def.h: New file.
1373 * c-target.def: New file.
1374 * c-target.h: New file.
1375 * c-common.c (targetcm): Don't define here.
1376 * c-common.h (default_handle_c_option): Declare.
1377 * c-format.c: Include c-target.h instead of target.h.
1378 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1379 include tm.h.
1380 (default_handle_c_option): Move from targhooks.c.
1381
1382 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1383
1384 PR preprocessor/48248
1385 * c-ppoutput.c (print): Add src_file field.
1386 (init_pp_output): Initialize it.
1387 (maybe_print_line): Don't optimize by adding up to 8 newlines
1388 if map->to_file and print.src_file are different file.
1389 (print_line): Update print.src_file.
1390
1391 2011-03-25 Kai Tietz <ktietz@redhat.com>
1392
1393 * c-ada-spec.c (compare_comment): Use filename_cmp
1394 instead of strcmp for filename.
1395
1396 2011-03-25 Jeff Law <law@redhat.com>
1397
1398 * c-family/c-common.c (def_fn_type): Add missing va_end.
1399
1400 2011-03-25 Jason Merrill <jason@redhat.com>
1401
1402 * c.opt: Add -std=c++03.
1403
1404 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1405
1406 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1407
1408 2011-03-17 Kai Tietz
1409
1410 PR target/12171
1411 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1412 Display allowed attributes for function pointer types.
1413 (pp_c_attributes_display): New function to display
1414 attributes having affects_type_identity flag set to true.
1415 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1416
1417 * c-common.c (c_common_attribute_table):
1418 Add new element.
1419 (c_common_format_attribute_table): Likewise.
1420
1421 2011-03-18 Jason Merrill <jason@redhat.com>
1422
1423 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1424 * c-common.h: Don't declare it here.
1425 * c-common.c: Or define it here.
1426 * c-opts.c (c_common_handle_option): Or set it here.
1427
1428 PR c++/35315
1429 * c-common.c (handle_transparent_union_attribute): Don't
1430 make a duplicate type in C++.
1431
1432 2011-03-15 Jason Merrill <jason@redhat.com>
1433
1434 * c-common.c (max_constexpr_depth): New.
1435 * c-common.h: Declare it.
1436 * c-opts.c (c_common_handle_option): Set it.
1437 * c.opt (fconstexpr-depth): New option.
1438
1439 2011-03-11 Jason Merrill <jason@redhat.com>
1440
1441 * c-common.c (attribute_takes_identifier_p): Add missing const.
1442
1443 PR c++/46803
1444 * c-common.c (attribute_takes_identifier_p): Assume that an
1445 unknown attribute takes an identifier.
1446
1447 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1448
1449 PR c/47786
1450 * c-common.c (c_type_hash): Call list_length instead of iterating
1451 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1452
1453 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1454
1455 PR c/47809
1456 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1457
1458 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1459
1460 * c.opt (fobjc-abi-version=) New.
1461 (fobjc-nilcheck): New.
1462
1463 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1464
1465 PR c++/46890
1466 * c-common.h (keyword_is_decl_specifier): Declare.
1467 * c-common.c (keyword_is_decl_specifier): Define.
1468 (keyword_is_function_specifier): New function.
1469
1470 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1471
1472 PR c/47473
1473 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1474 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1475 REAL_TYPE.
1476
1477 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1478
1479 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1480
1481 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1482
1483 PR pch/47430
1484 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1485 after init_c_lex if pch_file is set.
1486
1487 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1488
1489 PR c++/43601
1490 * c.opt (-fkeep-inline-dllexport): New switch.
1491
1492 2011-01-12 Richard Guenther <rguenther@suse.de>
1493
1494 PR middle-end/32511
1495 * c-common.c (handle_weak_attribute): Warn instead of error
1496 on declaring an inline function weak.
1497
1498 2011-01-05 Tom Tromey <tromey@redhat.com>
1499
1500 * c-common.h (lvalue_error): Update.
1501 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1502 not error.
1503
1504 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1505
1506 PR objc/47075
1507 * c-objc.h (objc_finish_message_expr): Added argument to
1508 prototype.
1509
1510 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1511
1512 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1513 Use prototype_p.
1514
1515 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1516
1517 * c-objc.h (objc_maybe_warn_exceptions): New.
1518 * stub-objc.c (objc_maybe_warn_exceptions): New.
1519
1520 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1521
1522 * c-common.h (readonly_error): Declare.
1523 * c-common.c (readonly_error): Define.
1524
1525 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1526
1527 * c-common.h (invalid_indirection_error): Declare.
1528 * c-common.c (invalid_indirection_error): Define.
1529
1530 2010-12-03 Richard Guenther <rguenther@suse.de>
1531
1532 PR c/46745
1533 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1534 (pp_c_unary_expression): Likewise.
1535 (pp_c_expression): Likewise.
1536
1537 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1538
1539 * c-common.h (objc_finish_function): New.
1540 (objc_non_volatilized_type): Removed.
1541 (objc_type_quals_match): Removed.
1542 * stub-objc.c (objc_finish_function): New.
1543 (objc_non_volatilized_type): Removed.
1544 (objc_type_quals_match): Removed.
1545
1546 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1547
1548 * c-common.h (parse_optimize_options): Declare.
1549 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1550 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1551
1552 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1553
1554 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1555 GET_ENVIRONMENT.
1556 * c-pch.c (O_BINARY): Don't define here.
1557 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1558
1559 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1560
1561 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1562 targetm.except_unwind_info.
1563
1564 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1565
1566 * c-opts.c (c_common_handle_option): Pass location to
1567 set_struct_debug_option.
1568
1569 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1570
1571 * c-common.c (visibility_options): Move from ../opts.c.
1572 * c-common.h (struct visibility_flags, visibility_options):
1573 Declare here.
1574 * c-opts.c (finish_options): Rename to c_finish_options.
1575 (c_common_init): Update call to finish_options.
1576
1577 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1578
1579 PR objc/34033
1580 * c-lex.c (lex_string): Check that each string in an Objective-C
1581 string concat sequence starts with either one or zero '@', and
1582 that there are no spurious '@' signs at the end.
1583
1584 2010-11-20 Joseph Myers <joseph@codesourcery.com>
1585
1586 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1587 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1588 HANDLE_PRAGMA_VISIBILITY.
1589 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1590 HANDLE_PRAGMA_VISIBILITY): Don't define.
1591 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1592
1593 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1594
1595 PR c++/16189
1596 PR c++/36888
1597 PR c++/45331
1598 * c-common.h (keyword_begins_type_specifier): Declare.
1599 (keyword_is_storage_class_specifier): Declare.
1600 (keyword_is_type_qualifier): Declare.
1601 * c-common.c (keyword_begins_type_specifier): New function.
1602 (keyword_is_storage_class_specifier): New function.
1603 (keyword_is_type_qualifier): Declare.
1604
1605 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1606
1607 PR c/46547
1608 * c-common.c (in_late_binary_op): Define.
1609 (c_common_truthvalue_conversion): Check in_late_binary_op before
1610 calling c_save_expr.
1611 * c-common.h (in_late_binary_op): Declare.
1612
1613 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1614
1615 * c-opts.c (c_common_handle_option): Update calls to
1616 set_struct_debug_option.
1617
1618 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1619
1620 * c-common.h (objc_declare_protocols): Added additional argument.
1621 * stub-objc.c (objc_declare_protocol): Same change.
1622
1623 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1624
1625 PR c/33193
1626 * c-common.h (build_real_imag_expr): Declare.
1627 * c-semantics.c (build_real_imag_expr): Define.
1628
1629 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1630
1631 * c-opts.c (c_common_parse_file): Take no arguments.
1632 * c-common.h (c_common_parse_file): Update prototype.
1633
1634 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1635
1636 PR c++/46401
1637 * c-common.c (warning_candidate_p): Don't track non-const calls
1638 or STRING_CSTs.
1639
1640 2010-11-15 Ian Lance Taylor <iant@google.com>
1641
1642 * c-lex.c (init_c_lex): Set macro debug callbacks if
1643 flag_dump_go_spec is set.
1644
1645 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1646
1647 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1648 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1649
1650 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1651
1652 PR preprocessor/45038
1653 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1654 dialects.
1655
1656 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1657
1658 * c-common.h (c_family_lang_mask): Declare.
1659 * c-opts.c (c_family_lang_mask): Make extern.
1660 * c-pragma.c (handle_pragma_diagnostic): Use
1661 control_warning_option.
1662
1663 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1664
1665 * c-common.c (parse_optimize_options): Update call to
1666 decode_options.
1667 * c-common.h (c_common_handle_option): Update prototype.
1668 * c-opts.c (c_common_handle_option): Take location_t parameter and
1669 pass it to other functions.
1670
1671 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1672
1673 * c-opts.c (warning_as_error_callback): Remove.
1674 (c_common_initialize_diagnostics): Don't call
1675 register_warning_as_error_callback.
1676 (c_common_handle_option): Handle -Werror=normalized= here.
1677
1678 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1679
1680 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1681 in diagnostic.
1682 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1683 letter.
1684 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1685 Remove trailing '.' from diagnostics.
1686 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1687
1688 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1689
1690 * c-common.c (parse_optimize_options): Pass global_dc to
1691 decode_options.
1692 * c-opts.c (c_common_handle_option): Pass &global_options to
1693 set_Wstrict_aliasing.
1694 * c.opt (v): Don't mark Common or document here.
1695
1696 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1697
1698 PR target/44981
1699 * c-format.c (format_type): New type gcc_objc_string_format_type.
1700 (valid_stringptr_type_p): New.
1701 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1702 (check_format_string): Pass expected type, use
1703 valid_stringptr_type_p (), check that the format string types are
1704 consistent with the format specification.
1705 (decode_format_attr): Warn if NSString is used outside objective-c.
1706 (format_types_orig): Add NSString.
1707 (format_name): New.
1708 (format_flags): New.
1709 (check_format_arg): Handle format strings requiring an external parser.
1710 first_target_format_type: New variable.
1711 (handle_format_attribute): Set up first_target_format_type, pass the
1712 expected format arg string type to check_format_string().
1713 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1714 * stub-objc.c (objc_string_ref_type_p): New.
1715 (objc_check_format_arg): New.
1716
1717 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1718
1719 Fixed using the Objective-C 2.0 dot-syntax with class names.
1720 * c-common.h (objc_build_class_component_ref): New.
1721 * stub-objc.c (objc_build_class_component_ref): New.
1722
1723 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1724
1725 * c.opt (Wproperty-assign-default): New option.
1726
1727 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1728
1729 Implemented -fobjc-std=objc1 flag.
1730 * c.opt (fobjc-std=objc1): New option.
1731
1732 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1733
1734 Implemented format and noreturn attributes for Objective-C methods.
1735 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1736 attribute for Objective-C methods.
1737
1738 2010-10-31 Jason Merrill <jason@redhat.com>
1739
1740 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1741 EXPR_LOC_OR_HERE.
1742
1743 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1744
1745 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1746 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1747 (objc_add_property_declaration): Removed arguments for copies and
1748 ivar.
1749 (objc_build_getter_call): Renamed to
1750 objc_maybe_build_component_ref.
1751 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1752 (objc_is_property_ref): New.
1753 * c-common.c (c_common_reswords): Removed copies and ivar.
1754 * stub-objc.c (objc_add_property_declaration): Removed arguments
1755 for copies and ivar.
1756 (objc_build_getter_call): Renamed to
1757 objc_maybe_build_component_ref.
1758 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1759 (objc_is_property_ref): New.
1760
1761 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1762 Matthew Gingell <gingell@adacore.com>
1763
1764 * c-ada-spec.c (separate_class_package): New function.
1765 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1766 name of their enclosing package.
1767 (print_ada_declaration): Use separate_class_package.
1768
1769 2010-10-27 Jason Merrill <jason@redhat.com>
1770
1771 * c-common.c (c_common_reswords): Add __is_literal_type.
1772 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1773
1774 * c-common.c (check_case_value): Remove special C++ code.
1775
1776 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1777
1778 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1779 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1780 and RID_LAST_PATTR.
1781 (objc_add_property_declaration): Added additional arguments.
1782 (objc_property_attribute_kind): Removed.
1783 (objc_set_property_attr): Removed.
1784 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1785 copy and nonatomic.
1786 * stub-objc.c (objc_add_property_declaration): Added additional
1787 arguments.
1788 (objc_set_property_attr): Removed.
1789
1790 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1791
1792 * c-common.h (objc_add_property_variable): Renamed to
1793 objc_add_property_declaration. Added location argument.
1794 * stub-objc.c (objc_add_property_variable): Same change.
1795
1796 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1797
1798 * c-common.h (objc_maybe_printable_name): New.
1799 * stub-objc.c (objc_maybe_printable_name): New.
1800
1801 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1802 Andrew Pinski <pinskia@gmail.com>
1803
1804 * c-common.h (c_common_mark_addressable_vec): Declare.
1805 * c-common.c (c_common_mark_addressable_vec): New function.
1806
1807 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1808
1809 * c-common.h (objc_set_method_type): Removed.
1810 (objc_add_method_declaration): Added boolean argument.
1811 (objc_start_method_definition): Same change.
1812 (objc_build_method_signature): Same change.
1813 * stub-objc.c (objc_set_method_type): Removed.
1814 (objc_add_method_declaration): Added boolean argument.
1815 (objc_start_method_definition): Same change.
1816 (objc_build_method_signature): Same change.
1817
1818 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1819
1820 * c-common.h (finish_file): Removed.
1821 (objc_write_global_declarations): New.
1822 * c-opts.c (c_common_parse_file): Do not call finish_file.
1823 * stub-objc.c (objc_write_global_declarations): New.
1824
1825 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1826
1827 Implemented parsing @synthesize and @dynamic for
1828 Objective-C/Objective-C++.
1829 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1830 (objc_add_synthesize_declaration): New.
1831 (objc_add_dynamic_declaration): New.
1832 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1833 * stub-objc.c (objc_add_synthesize_declaration): New.
1834 (objc_add_dynamic_declaration): New.
1835
1836 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1837
1838 PR target/46041
1839 * c-cppbuiltin.c (mode_has_fma): Move function here from
1840 builtins.c. Don't use the fma optab, instead just use the
1841 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1842 using -save-temps.
1843
1844 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1845
1846 Merge from 'apple/trunk' branch on FSF servers.
1847
1848 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1849
1850 Radar 4330422
1851 * c-common.h (objc_non_volatilized_type): New declaration
1852 * stub-objc.c (objc_non_volatilized_type): New stub.
1853
1854 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1855
1856 Merge from 'apple/trunk' branch on FSF servers.
1857
1858 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1859
1860 Radar 4133425
1861 * c-common.h (objc_diagnose_private_ivar): New decl.
1862 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1863
1864 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1865
1866 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1867 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1868 (objc_ivar_visibility_kind): New enum.
1869 (objc_set_visibility): Adjust prototype to use visibility enum.
1870 * stub-objc.c (objc_set_visibility): Adjust stub to use
1871 visibility enum.
1872
1873 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1874
1875 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1876 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1877 has the appropriate fma builtins.
1878 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1879
1880 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1881
1882 merge from FSF apple 'trunk' branch.
1883 2006 Fariborz Jahanian <fjahanian@apple.com>
1884
1885 Radars 4436866, 4505126, 4506903, 4517826
1886 * c-common.c (c_common_resword): Define @property and its attributes.
1887 * c-common.h: Define property attribute enum entries.
1888 (OBJC_IS_PATTR_KEYWORD): New.
1889 (objc_property_attribute_kind): New enum.
1890 Declare objc_set_property_attr (), objc_add_property_variable (),
1891 objc_build_getter_call () and objc_build_setter_call ().
1892 * stub-objc.c (objc_set_property_attr): New stub.
1893 (objc_add_property_variable): Likewise.
1894 (objc_build_getter_call): Likewise.
1895 (objc_build_setter_call) Likewise.
1896
1897 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1898
1899 merge from FSF apple 'trunk' branch.
1900 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1901
1902 Radar 3803157 (method attributes)
1903 * c-common.c (handle_deprecated_attribute): Recognize
1904 objc methods as valid declarations.
1905 * c-common.h: Declare objc_method_decl ().
1906 * stub-objc.c (objc_method_decl): New stub.
1907
1908 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1909
1910 * c-common.c (parse_optimize_options): Call
1911 decode_cmdline_options_to_array_default_mask before
1912 decode_options. Update arguments to decode_options.
1913 * c-common.h (c_common_init_options_struct): Declare.
1914 * c-opts.c (c_common_init_options_struct): New. Split out from
1915 c_common_init_options.
1916
1917 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1918
1919 Implemented fast enumeration for Objective-C.
1920 * c-common.h (objc_finish_foreach_loop): New.
1921 * stub-objc.c (objc_finish_foreach_loop): New.
1922
1923 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1924
1925 * c-common.h (struct diagnostic_context): Don't declare here.
1926 (c_common_initialize_diagnostics): Declare using
1927 diagnostic_context typedef.
1928 * c-opts.c (c_common_handle_option): Pass global_dc to
1929 handle_generated_option.
1930
1931 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1932
1933 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1934 handle_generated_option.
1935
1936 2010-10-03 Ian Lance Taylor <iant@google.com>
1937
1938 * c.opt (-fplan9-extensions): New option.
1939
1940 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1941
1942 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1943 Remove.
1944 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1945 of duplicating code.
1946
1947 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1948
1949 * c-common.c: Add two new entries for @optional
1950 and @required keywords.
1951
1952 merge from FSF 'apple/trunk' branch.
1953 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1954
1955 Radar 4386773
1956 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1957 objective-c keywords.
1958 (objc_set_method_opt): New declaration.
1959 * stub-objc.c (objc_set_method_opt): New stub.
1960
1961 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1962
1963 * c-common.c (handle_optimize_attribute): Pass &global_options to
1964 cl_optimization_save and cl_optimization_restore.
1965 * c-opts.c (c_common_handle_option): Pass &global_options to
1966 handle_generated_option.
1967 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1968 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1969 &global_options to cl_optimization_restore.
1970
1971 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1972
1973 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1974 Objective-C/Objective-C++ keywords.
1975
1976 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1977
1978 Merge from 'apple/trunk' branch on FSF servers.
1979
1980 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1981
1982 Radar 4281748
1983 * c-common.h (objc_check_global_decl): New declaration.
1984 * stub-objc.c (objc_check_global_decl): New stub.
1985
1986 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1987
1988 * c.opt: Don't use VarExists.
1989
1990 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1991
1992 * c-common.c (c_cpp_error): Update names of diagnostic_context
1993 members.
1994 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1995 cl_optimization members.
1996 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1997 sanitize_cpp_opts, finish_options): Update names of cpp_options
1998 members.
1999
2000 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2001
2002 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2003 (objc_is_reserved_word): Removed.
2004 * c-common.c: Updated comments.
2005 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2006 objc_is_reserved_word.
2007 * stub-objc.c (objc_is_reserved_word): Removed.
2008
2009 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2010
2011 * c-common.h (objc_add_method_declaration): Adjust prototype to
2012 include attributes.
2013 (objc_start_method_definition): Likewise.
2014 (objc_build_keyword_decl): Likewise.
2015 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2016 (objc_start_method_definition): Likewise.
2017 (objc_build_keyword_decl): Likewise.
2018
2019 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2020
2021 * c-common.h (objc_start_class_interface): Adjust prototype.
2022 (objc_start_category_interface): Likewise.
2023 (objc_start_protocol): Likewise.
2024 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2025 (objc_start_class_interface): Likewise.
2026 (objc_start_category_interface): Likewise.
2027
2028 2010-09-27 Ian Lance Taylor <iant@google.com>
2029
2030 * c-common.c (c_common_attribute_table): Add no_split_stack.
2031 (handle_no_split_stack_attribute): New static function.
2032
2033 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2034
2035 Merge from 'apple/trunk' branch on FSF servers.
2036
2037 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2038
2039 Radar 4229905
2040 * c-common.h (objc_have_common_type): New declaration.
2041 * stub-objc.c (objc_have_common_type): New stub.
2042
2043 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2044
2045 Radar 4154928
2046 * c-common.h (objc_common_type): New prototype.
2047 * stub-objc.c (objc_common_type): New stub.
2048
2049 2010-09-24 Jan Hubicka <jh@suse.cz>
2050
2051 * c-common.c (handle_leaf_attribute): New function.
2052 (struct attribute_spec c_common_att): Add leaf.
2053
2054 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2055
2056 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2057 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2058 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2059 -include-barrier, -include-directory, -include-directory=,
2060 -include-directory-after, -include-directory-after=,
2061 -include-prefix, -include-prefix=, -include-with-prefix,
2062 -include-with-prefix=, -include-with-prefix-after,
2063 -include-with-prefix-after=, -include-with-prefix-before,
2064 -include-with-prefix-before=, -no-integrated-cpp,
2065 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2066 -output=, -pedantic, -pedantic-errors, -preprocess,
2067 -print-missing-file-dependencies, -trace-includes, -traditional,
2068 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2069 -user-dependencies, -verbose, -write-dependencies,
2070 -write-user-dependencies, no-integrated-cpp, traditional): New.
2071
2072 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2073
2074 PR objc/23710
2075 * c-common.h (objc_start_method_definition): Return bool instead
2076 of void.
2077 * stub-objc.c (objc_start_method_definition): Return bool instead
2078 of void.
2079
2080 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2081
2082 PR objc/25965
2083 * c-common.h (objc_get_interface_ivars): New declaration.
2084 * stub-objc.c (objc_get_interface_ivars): New stub.
2085
2086 2010-09-15 Ian Lance Taylor <iant@google.com>
2087
2088 * c-common.c (parse_optimize_options): Do not capitalize warning
2089 messages. Remove period at end of warning message.
2090
2091 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2092
2093 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2094 (handle_alias_attribute): ... here.
2095 (handle_ifunc_attribute): New.
2096
2097 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2098
2099 * c-common.h (do_warn_double_promotion): Declare.
2100 * c-common.c (do_warn_double_promotion): Define.
2101
2102 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2103
2104 * c.opt (Wdouble-promotion): New.
2105
2106 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2107
2108 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2109 fvtable-thunks, fxref): Mark no longer supported in help text.
2110
2111 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2112
2113 * c.opt (Wimport, fall-virtual, falt-external-templates,
2114 fdefault-inline, fenum-int-equiv, fexternal-templates,
2115 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2116 fname-mangling-version-, fnew-abi, fnonnull-objects,
2117 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2118 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2119 applicable.
2120 (fhandle-exceptions): Mark with Alias and Warn.
2121 * c-opts.c (c_common_handle_option): Don't handle options marked
2122 as ignored.
2123
2124 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2125
2126 * c.opt (Wcomments, Werror-implicit-function-declaration,
2127 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2128 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2129 aliases.
2130 * c-common.c (option_codes): Use OPT_Wcomment instead of
2131 OPT_Wcomments.
2132 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2133 Don't handle options marked as aliases.
2134
2135 2010-08-25 Richard Guenther <rguenther@suse.de>
2136
2137 * c-common.c (c_common_get_alias_set): Remove special
2138 handling for pointers.
2139
2140 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2141
2142 * c-common.c: Use FOR_EACH_VEC_ELT.
2143 * c-gimplify.c: Likewise.
2144 * c-pragma.c: Likewise.
2145
2146 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2147
2148 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2149 RejectDriver.
2150 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2151 RejectDriver.
2152 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2153 instead of OPT_MDX and OPT_MMDX.
2154
2155 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2156
2157 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2158
2159 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2160
2161 * c.opt (MD, MMD): Change to MDX and MMDX.
2162 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2163
2164 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2165
2166 * c-opts.c (c_common_handle_option): Call handle_generated_option
2167 instead of handle_option.
2168
2169 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2170
2171 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2172 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2173
2174 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2175
2176 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2177 (pending_redefine_extname): Change type to a VEC.
2178 (add_to_renaming_pragma_list): Update for new type of
2179 pending_redefine_extname.
2180 (maybe_apply_renaming_pragma): Likewise.
2181
2182 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2183
2184 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2185 visited.
2186 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2187 decide whether a type has already been declared/seen.
2188 Do not go to the original type.
2189 (dump_nested_types): New parameter forward.
2190 Generate forward declaration if needed and mark type as visited.
2191 (print_ada_declaration): Call dump_nested_types if not already done.
2192 Mark types as visited.
2193
2194 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2195
2196 * c.opt (-print-pch-checksum): Remove option.
2197 * c-opts.c (c_common_handle_option): Don't handle
2198 OPT_print_pch_checksum.
2199
2200 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2201
2202 * c-common.h (c_common_handle_option): Update prototype and return
2203 value type.
2204 * c-opts.c (c_common_handle_option): Update prototype and return
2205 value type. Update calls to handle_option and
2206 enable_warning_as_error.
2207
2208 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2209
2210 PR c/45079
2211 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2212
2213 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2214
2215 * c-common.h (c_common_missing_argument): Remove.
2216 * c-opts.c (c_common_missing_argument): Remove.
2217 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2218 idirafter, imacros, include, isysroot, isystem, iquote): Add
2219 MissingArgError.
2220 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2221
2222 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2223
2224 * c-common.h (c_common_option_lang_mask,
2225 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2226 New.
2227 (c_common_init_options): Update prototype.
2228 * c-opts.c (c_common_option_lang_mask): New.
2229 (c_common_initialize_diagnostics): Split out of
2230 c_common_init_options.
2231 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2232 New.
2233 (c_common_init_options): Update prototype. Use decoded options in
2234 search for -lang-asm.
2235
2236 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2237
2238 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2239 * c-format.c: Likewise.
2240
2241 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2242
2243 * c-common.h: Include diagnostic-core.h. Error if already
2244 included.
2245 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2246
2247 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2248
2249 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2250 Do not include expr.h
2251 (vector_mode_valid_p): Move here.
2252
2253 2010-06-21 DJ Delorie <dj@redhat.com>
2254
2255 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2256 allow these pragmas anywhere.
2257
2258 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2259
2260 PR bootstrap/44509
2261 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2262 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2263 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2264 ggc_strdup instead of xstrdup.
2265
2266 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2267
2268 * c-cppbuiltin.c: Include cpp-id-data.h.
2269 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2270 (lazy_hex_fp_value): New function.
2271 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2272
2273 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2274
2275 * c-gimplify.c: Do not include tree-flow.h
2276
2277 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2278
2279 PR other/44034
2280 * c-common.c: Rename targetm member:
2281 targetm.enum_va_list -> targetm.enum_va_list_p
2282
2283 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2284
2285 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2286
2287 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2288
2289 * c-cppbuiltin.c: Do not include except.h.
2290
2291 2010-06-24 Andi Kleen <ak@linux.intel.com>
2292
2293 * c-common.c (warn_for_omitted_condop): New.
2294 * c-common.h (warn_for_omitted_condop): Add prototype.
2295
2296 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2297
2298 * c.opt (lang-objc): Remove.
2299 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2300
2301 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2302
2303 * c-opts.c: Include "tm_p.h".
2304
2305 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2306
2307 * c-common.c (parse_optimize_options): Update call to
2308 decode_options.
2309
2310 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2311
2312 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2313 new type of types_used_by_cur_var_decl.
2314
2315 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2316
2317 PR bootstrap/44512
2318 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2319 for C++ standard compliance.
2320
2321 2010-06-16 Jason Merrill <jason@redhat.com>
2322
2323 * c.opt: Add -Wnoexcept.
2324
2325 2010-06-16 Richard Guenther <rguenther@suse.de>
2326
2327 PR c/44555
2328 * c-common.c (c_common_truthvalue_conversion): Remove
2329 premature and wrong optimization concering ADDR_EXPRs.
2330
2331 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2332
2333 * c-ada-spec.c (dump_sloc): Remove column info.
2334 (is_simple_enum): New function.
2335 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2336 enum types when relevant.
2337
2338 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2339
2340 * c-common.c (conversion_warning): Warn at expression
2341 location.
2342
2343 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2344
2345 * c-opts.c (c_common_handle_option): Don't handle
2346 OPT_fshow_column.
2347
2348 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2349
2350 * c-pragma.c (push_alignment): Use typed GC allocation.
2351 (handle_pragma_push_options): Likewise.
2352
2353 * c-common.c (parse_optimize_options): Likewise.
2354
2355 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2356 option.
2357
2358 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2359
2360 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2361 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2362 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2363 flag_signed_bitfields, warn_strict_null_sentinel,
2364 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2365 flag_gen_declaration, flag_no_gnu_keywords,
2366 flag_implement_inlines, flag_implicit_templates,
2367 flag_implicit_inline_templates, flag_optional_diags,
2368 flag_elide_constructors, flag_default_inline, flag_rtti,
2369 flag_conserve_space, flag_access_control, flag_check_new,
2370 flag_new_for_scope, flag_weak, flag_working_directory,
2371 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2372 flag_enforce_eh_specs, flag_threadsafe_statics,
2373 flag_pretty_templates): Remove.
2374 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2375 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2376 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2377 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2378 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2379 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2380 flag_no_gnu_keywords, flag_implement_inlines,
2381 flag_implicit_templates, flag_implicit_inline_templates,
2382 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2383 flag_rtti, flag_conserve_space, flag_access_control,
2384 flag_check_new, flag_new_for_scope, flag_weak,
2385 flag_working_directory, flag_use_cxa_atexit,
2386 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2387 flag_threadsafe_statics, flag_pretty_templates,
2388 warn_strict_null_sentinel): Remove.
2389 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2390 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2391 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2392 fimplicit-inline-templates, fimplicit-templates,
2393 flax-vector-conversions, fms-extensions, fnil-receivers,
2394 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2395 frtti, fshort-double, fshort-enums, fshort-wchar,
2396 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2397 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2398 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2399 gen-decls, undef): Use Var.
2400 (fdefault-inline, foptional-diags): Document as doing nothing.
2401 * c-opts.c (c_common_handle_option): Remove cases for options now
2402 using Var. Mark ignored options as such.
2403
2404 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2405
2406 * c-common.c: Moved to here from parent directory.
2407 * c-common.def: Likewise.
2408 * c-common.h: Likewise.
2409 * c-cppbuiltin.c: Likewise.
2410 * c-dump.c: Likewise.
2411 * c-format.c: Likewise.
2412 * c-format.h : Likewise.
2413 * c-gimplify.c: Likewise.
2414 * c-lex.c: Likewise.
2415 * c-omp.c: Likewise.
2416 * c.opt: Likewise.
2417 * c-opts.c: Likewise.
2418 * c-pch.c: Likewise.
2419 * c-ppoutput.c: Likewise.
2420 * c-pragma.c: Likewise.
2421 * c-pragma.h: Likewise.
2422 * c-pretty-print.c: Likewise.
2423 * c-pretty-print.h: Likewise.
2424 * c-semantics.c: Likewise.
2425 * stub-objc.c: Likewise.
2426
2427 * c-common.c: Include gt-c-family-c-common.h.
2428 * c-pragma.c: Include gt-c-family-c-pragma.h.
2429 \f
2430 Copyright (C) 2010-2013 Free Software Foundation, Inc.
2431
2432 Copying and distribution of this file, with or without modification,
2433 are permitted in any medium without royalty provided the copyright
2434 notice and this notice are preserved.