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