]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/c-family/ChangeLog
Merger of git branch "gimple-classes-v2-option-3"
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
1 2014-11-19 David Malcolm <dmalcolm@redhat.com>
2
3 Merger of git branch "gimple-classes-v2-option-3".
4 * ChangeLog.gimple-classes: New.
5 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
6 from being just a vec<gimple> to a vec<gbind *>.
7
8 2014-11-18 Jakub Jelinek <jakub@redhat.com>
9
10 PR sanitizer/63813
11 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
12 argument to ptype, set type to TREE_TYPE (ptype). Don't call
13 get_pointer_alignment for non-pointers. Use ptype, or if it is
14 reference type, corresponding pointer type, as type of kind
15 argument.
16 (ubsan_maybe_instrument_reference,
17 ubsan_maybe_instrument_member_call): Adjust callers.
18
19 2014-11-15 Marek Polacek <polacek@redhat.com>
20
21 PR middle-end/63884
22 * array-notation-common.c (is_sec_implicit_index_fn): Return false
23 for NULL fndecl.
24 (extract_array_notation_exprs): Return for NULL node.
25
26 2014-11-12 Joseph Myers <joseph@codesourcery.com>
27
28 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
29 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
30
31 2014-11-12 Jakub Jelinek <jakub@redhat.com>
32
33 PR c/59708
34 * c-common.c (check_builtin_function_arguments): Handle
35 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
36
37 2014-11-10 Andi Kleen <ak@linux.intel.com>
38
39 PR c/60804
40 * c-common.h (check_no_cilk): Declare.
41 * cilk.c (get_error_location): New function.
42 (check_no_cilk): Dito.
43
44 2014-11-10 Andi Kleen <ak@linux.intel.com>
45
46 * cilk.c (recognize_spawn): Use expression location
47 for error message.
48
49 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
50
51 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
52
53 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
54
55 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
56 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
57 (__cpp_range_based_for, __cpp_initializer_lists,
58 __cpp_delegating_constructors, __cpp_nsdmi,
59 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
60 for C++11; (__cpp_attribute_deprecated): Remove in favor of
61 __has_cpp_attribute.
62 * c-lex.c (cb_has_attribute): New callback CPP function;
63 (init_c_lex): Set has_attribute callback.
64
65 2014-11-04 Richard Biener <rguenther@suse.de>
66
67 * c-common.c (shorten_compare): Do not shorten mixed
68 DFP and non-DFP compares.
69
70 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
71
72 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
73 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
74 Commentary and rearrangement of tests.
75 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
76 Commentary and rearrangement of tests.
77 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
78 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
79
80 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
81
82 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
83 enum from machine_mode.
84
85 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
86
87 * c-family/c-common.c: Adjust include files.
88 * c-family/c-gimplify.c: Ditto.
89 * c-family/cilk.c: Ditto.
90 * c-family/c-pragma.c: Ditto.
91 * c-family/c-ubsan.c: Ditto.
92
93 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
94
95 * c-gimplify.c: Adjust include files.
96
97 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
98
99 PR c++/53061
100 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
101 c_common_initialize_diagnostics.
102 * c-common.h: Likewise.
103
104 2014-10-24 Marek Polacek <polacek@redhat.com>
105
106 PR c/56980
107 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
108 print "struct"/"union"/"enum" for typedefed names.
109
110 2014-10-23 Marek Polacek <polacek@redhat.com>
111
112 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
113 in unsigned type.
114
115 2014-10-22 Jakub Jelinek <jakub@redhat.com>
116 Yury Gribov <y.gribov@samsung.com>
117
118 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
119 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
120 instead of flag_sanitize_recover as bool flag.
121
122 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
123
124 * cilk.c: Revert previous change.
125
126 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
127
128 PR c/63307
129 * cilk.c: Include vec.h.
130 (struct cilk_decls): New structure.
131 (wrapper_parm_cb): Split this function to...
132 (fill_decls_vec): ...this...
133 (create_parm_list): ...and this.
134 (compare_decls): New function.
135 (for_local_cb): Remove.
136 (wrapper_local_cb): Ditto.
137 (build_wrapper_type): For now first traverse and fill vector of
138 declarations then sort it and then deal with sorted vector.
139 (cilk_outline): Ditto.
140 (declare_one_free_variable): Ditto.
141
142 2014-10-17 Marek Polacek <polacek@redhat.com>
143
144 * c-opts.c (c_common_post_options): Set warn_implicit_int.
145 * c.opt (Wimplicit-int): Initialize to -1.
146
147 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
148
149 * c-pragma.c: Adjust include files.
150 * c-semantics.c: Likewise.
151
152 2014-10-16 DJ Delorie <dj@redhat.com>
153
154 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
155 multiples of bytes.
156
157 2014-10-14 Jason Merrill <jason@redhat.com>
158
159 PR c++/63455
160 * c-common.h (CPP_PREPARSED_EXPR): New.
161 (N_CP_TTYPES): Adjust.
162
163 2014-10-15 Marek Polacek <polacek@redhat.com>
164
165 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
166
167 2014-10-14 DJ Delorie <dj@redhat.com>
168
169 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
170 types, not just __int128.
171 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
172 types, not just __int128.
173 (cpp_atomic_builtins): Round pointer sizes up.
174 (type_suffix): Use type precision, not specific types.
175 * c-common.c (c_common_reswords): Remove __int128 special case.
176 (c_common_type_for_size): Check for all __intN types, not just
177 __int128.
178 (c_common_type_for_mode): Likewise.
179 (c_common_signed_or_unsigned_type): Likewise.
180 (c_build_bitfield_integer_type): Likewise.
181 (c_common_nodes_and_builtins): Likewise.
182 (keyword_begins_type_specifier): Likewise.
183 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
184 __intN variants.
185
186 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
187
188 * c-common.c: Use hash_table instead of hashtab.
189
190 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
191
192 * c-family/c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
193 C++11 section.
194
195 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
196
197 PR c++/54427
198 PR c++/57198
199 PR c++/58845
200 * c-common.c (warn_logical_operator): Punt for vectors.
201
202 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
203
204 Implement SD-6: SG10 Feature Test Recommendations
205 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
206 macros and the __has_header macro.
207
208 2014-09-30 Jason Merrill <jason@redhat.com>
209
210 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
211 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
212 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
213
214 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
215 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
216
217 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
218 * c-common.c (c_common_reswords): Remove __is_convertible_to.
219
220 2014-09-24 Marek Polacek <polacek@redhat.com>
221
222 PR c/61405
223 PR c/53874
224 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
225
226 2014-09-23 Andi Kleen <ak@linux.intel.com>
227
228 * c-common.c (handle_no_reorder_attribute): New function.
229 (c_common_attribute_table): Add no_reorder attribute.
230
231 2014-09-22 Joseph Myers <joseph@codesourcery.com>
232
233 * c-cppbuiltin.c (c_cpp_builtins): Define
234 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
235 modes.
236
237 2014-09-18 Joseph Myers <joseph@codesourcery.com>
238
239 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
240 for supported floating-point modes.
241
242 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
243
244 * c.opt (Wpsabi): Use LangEnabledBy.
245 * c-opts.c (c_common_handle_option): Do not handle here.
246
247 2014-09-12 Joseph Myers <joseph@codesourcery.com>
248
249 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
250 macros for floating-point modes.
251
252 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
253
254 PR target/58757
255 * c-cppbuiltin.c (builtin_define_float_constants): Correct
256 __*_DENORM_MIN__ without denormals.
257
258 2014-09-10 Jakub Jelinek <jakub@redhat.com>
259
260 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
261 ubsan_instrument_vla, ubsan_instrument_return): Adjust
262 ubsan_create_data callers.
263 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
264 index is constant or BIT_AND_EXPR with constant mask and is
265 small enough for the bound.
266 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
267 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
268
269 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
270
271 * c.opt: Add CppReason to various flags.
272 (Wdate-time): Re-sort.
273 * c-common.c: Include c-common.h earlier.
274 (struct reason_option_codes_t): Delete.
275 (c_option_controlling_cpp_error): Prefix global type and struct
276 with cpp_.
277
278 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
279
280 * c.opt (Wnormalized): New.
281 (Wnormalized=): Use Enum and Reject Negative.
282 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
283
284 2014-09-08 Joseph Myers <joseph@codesourcery.com>
285
286 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
287 digits of floating-point modes if -fbuilding-libgcc.
288
289 2014-09-05 Joseph Myers <joseph@codesourcery.com>
290
291 * c-cppbuiltin.c (c_cpp_builtins): Also define
292 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
293 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
294 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
295 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
296 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
297 __LIBGCC_STACK_GROWS_DOWNWARD__,
298 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
299 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
300 __LIBGCC_DWARF_FRAME_REGISTERS__,
301 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
302 __LIBGCC_STACK_POINTER_REGNUM__ and
303 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
304 (builtin_define_with_value): Handle backslash-escaping in string
305 macro values.
306
307 2014-09-05 Richard Biener <rguenther@suse.de>
308
309 PR middle-end/63148
310 * c-format.c (check_format_arg): Properly handle
311 effectively signed POINTER_PLUS_EXPR offset.
312
313 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
314
315 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
316 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
317 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
318 and Init.
319 * c-opts.c (c_common_handle_option): Do not handle here.
320 (sanitize_cpp_opts): Likewise.
321 * c-common.c (struct reason_option_codes_t): Handle
322 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
323
324 2014-09-03 Marek Polacek <polacek@redhat.com>
325
326 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
327
328 2014-09-02 Jakub Jelinek <jakub@redhat.com>
329 Balaji V. Iyer <balaji.v.iyer@intel.com>
330 Igor Zamyatin <igor.zamyatin@intel.com>
331
332 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
333 * c-common.c (c_common_reswords): Added _Cilk_for.
334 * c-common.h (enum rid): Added RID_CILK_FOR.
335 (cilk_for_number_of_iterations): Add declaration.
336 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
337 CILK_FOR.
338 * c-pragma.c (init_pragma): Register "grainsize" pragma.
339 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
340
341 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
342
343 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
344 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
345 Wundef): Use CPP, Var and Init.
346 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
347
348 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
349
350 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
351 * c-opts.c (c_common_handle_option): Do not handle here.
352
353 2014-08-25 Jason Merrill <jason@redhat.com>
354
355 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
356 -std=c++14 and -std=gnu++14, rather than the reverse.
357 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
358 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
359 * c-common.h (cxx_dialect): Remove cxx1y.
360
361 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
362
363 * c-common.h (enum cxx_dialect): Add cxx14.
364 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
365 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
366 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
367
368 2014-08-22 Jason Merrill <jason@redhat.com>
369
370 * c.opt (std=gnu++17): Fix alias.
371
372 2014-08-22 Marek Polacek <polacek@redhat.com>
373
374 PR c++/62199
375 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
376 check for vector types. Drop LHS argument.
377 * c-common.h (warn_logical_not_parentheses): Adjust.
378
379 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
380
381 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
382 (Wmultichar): Likewise.
383 (Wdate-time): Use C-family languages instead of Common. Use CPP
384 and Var.
385 * c-opts.c (c_common_handle_option): Do not handle the above
386 options here.
387 (sanitize_cpp_opts): Likewise.
388
389 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
390
391 PR fortran/44054
392 * c-opts.c: Include tree-diagnostics.h.
393 (c_diagnostic_finalizer): New.
394 (c_common_initialize_diagnostics): Use it.
395
396 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
397
398 PR preprocessor/51303
399 * c-common.c (struct reason_option_codes_t option_codes):
400 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
401
402 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
403
404 PR c/60975
405 PR c/53063
406 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
407 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
408 (c_common_post_options): Call init_global_opts_from_cpp.
409 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
410
411 2014-08-19 Marek Polacek <polacek@redhat.com>
412
413 PR c++/62153
414 * c-common.c (maybe_warn_bool_compare): New function.
415 * c-common.h (maybe_warn_bool_compare): Declare.
416 * c.opt (Wbool-compare): New option.
417
418 2014-08-19 Marek Polacek <polacek@redhat.com>
419
420 * c.opt (Wc99-c11-compat): New option.
421
422 2014-08-19 Marek Polacek <polacek@redhat.com>
423
424 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
425 to warn_c90_c99_compat.
426 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
427 to -1.
428
429 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
430 Steven Bosscher <steven@gcc.gnu.org>
431
432 PR c/52952
433 * c-format.c: Add extra_arg_loc and format_string_loc to struct
434 format_check_results.
435 (check_function_format): Use true and add comment for boolean
436 argument.
437 (finish_dollar_format_checking): Use explicit location when warning.
438 (check_format_info): Likewise.
439 (check_format_arg): Set extra_arg_loc and format_string_loc.
440 (check_format_info_main): Use explicit location when warning.
441 (check_format_types): Pass explicit location.
442 (format_type_warning): Likewise.
443
444 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
445
446 PR fortran/44054
447 * c-format.c: Handle Fortran flags.
448
449 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
450
451 PR other/61962
452 * array-notation-common.c (find_rank): Added handling for other
453 types of references.
454
455 2014-08-10 Marek Polacek <polacek@redhat.com>
456
457 PR c/51849
458 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
459 * c.opt (Wc90-c99-compat): Add option.
460
461 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
462
463 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
464
465 2014-08-03 Marek Polacek <polacek@redhat.com>
466
467 * c-common.c (check_case_value): Add location_t parameter. Use it.
468 (c_add_case_label): Pass loc to check_case_value.
469
470 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
471
472 * cilk.c: Use hash_map instead of pointer_map.
473
474 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
475
476 * c-gimplify.c: Use hash_set instead of pointer_set.
477
478 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
479
480 PR middle-end/61455
481 * array-notation-common.c (extract_array_notation_exprs): Handling
482 of DECL_EXPR added.
483
484 2014-08-01 Jakub Jelinek <jakub@redhat.com>
485
486 * c-common.h (min_align_of_type): Removed prototype.
487 * c-common.c (min_align_of_type): Removed.
488 * c-ubsan.h (ubsan_maybe_instrument_reference,
489 ubsan_maybe_instrument_member_call): New prototypes.
490 * c-ubsan.c: Include stor-layout.h and builtins.h.
491 (ubsan_maybe_instrument_reference_or_call,
492 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
493 functions.
494
495 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
496
497 PR c++/60517
498 * c.opt (-Wreturn-local-addr): Move to common.opt.
499
500 2014-07-30 Jason Merrill <jason@redhat.com>
501
502 PR c++/61659
503 PR c++/61687
504 Revert:
505 * c.opt (-fuse-all-virtuals): New.
506
507 2014-07-30 Tom Tromey <tromey@redhat.com>
508
509 PR c/59855
510 * c.opt (Wdesignated-init): New option.
511 * c-common.c (c_common_attribute_table): Add "designated_init".
512 (handle_designated_init): New function.
513
514 2014-07-24 Marek Polacek <polacek@redhat.com>
515
516 PR c/57653
517 * c-opts.c (c_finish_options): If -imacros is in effect, return.
518
519 2014-07-16 Dodji Seketeli <dodji@redhat.com>
520
521 PR preprocessor/60723 - missing system-ness marks for macro tokens
522 * c-ppoutput.c (struct print::prev_was_system_token): New data
523 member.
524 (init_pp_output): Initialize it.
525 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
526 (do_line_change): Return a flag saying if a line marker was
527 emitted or not.
528 (scan_translation_unit): Detect if the system-ness of the token we
529 are about to emit is different from the one of the previously
530 emitted token. If so, emit a line marker. Avoid emitting useless
531 adjacent line markers. Avoid emitting line markers for tokens
532 originating from the expansion of built-in macros.
533 (scan_translation_unit_directives_only): Adjust.
534
535 2014-07-15 Marek Polacek <polacek@redhat.com>
536
537 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
538 TYPE_MAX_VALUE is NULL.
539
540 2014-07-14 Jakub Jelinek <jakub@redhat.com>
541
542 PR middle-end/61294
543 * c.opt (Wmemset-transposed-args): New warning.
544
545 2014-07-10 Jason Merrill <jason@redhat.com>
546
547 PR c++/61659
548 PR c++/61687
549 * c.opt (-fuse-all-virtuals): New.
550
551 2014-07-09 Richard Biener <rguenther@suse.de>
552
553 PR c-family/61741
554 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
555 using unsigned arithmetic if overflow does not wrap instead of
556 if overflow is undefined.
557
558 2014-07-06 Marek Polacek <polacek@redhat.com>
559
560 PR c/6940
561 * c.opt (Wsizeof-array-argument): New option.
562
563 2014-07-03 Jakub Jelinek <jakub@redhat.com>
564
565 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
566 comments->count <= 1, as comments->entries might be NULL.
567
568 2014-07-01 Marek Polacek <polacek@redhat.com>
569
570 * c.opt (Wint-conversion): New option.
571
572 2014-07-01 Marek Polacek <polacek@redhat.com>
573
574 PR c/58286
575 * c.opt (Wincompatible-pointer-types): New option.
576
577 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
578
579 PR c++/51400
580 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
581 Do not discard TYPE_QUALS of type.
582
583 2014-06-26 Jason Merrill <jason@redhat.com>
584
585 * c-common.h (enum cxx_dialect): Add cxx1z.
586 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
587 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
588
589 2014-06-26 Teresa Johnson <tejohnson@google.com>
590
591 * c-common.h (get_dump_info): Declare.
592 * c-gimplify.c (c_genericize): Use saved dump files.
593 * c-opts.c (c_common_parse_file): Begin and end dumps
594 once around parsing invocation.
595 (get_dump_info): New function.
596
597 2014-06-23 Marek Polacek <polacek@redhat.com>
598 Andrew MacLeod <amacleod@redhat.com>
599
600 PR c/61553
601 * c-common.c (get_atomic_generic_size): Don't segfault if the
602 type doesn't have a size.
603
604 2014-06-20 Marek Polacek <polacek@redhat.com>
605
606 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
607 (ubsan_walk_array_refs_r): New function.
608 (c_genericize): Instrument array bounds.
609 * c-ubsan.c: Include "internal-fn.h".
610 (ubsan_instrument_division): Mark instrumented arrays as having
611 side effects. Adjust ubsan_type_descriptor call.
612 (ubsan_instrument_shift): Likewise.
613 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
614 (ubsan_instrument_bounds): New function.
615 (ubsan_array_ref_instrumented_p): New function.
616 (ubsan_maybe_instrument_array_ref): New function.
617 * c-ubsan.h (ubsan_instrument_bounds): Declare.
618 (ubsan_array_ref_instrumented_p): Declare.
619 (ubsan_maybe_instrument_array_ref): Declare.
620
621 2014-06-20 Hale Wang <hale.wang@arm.com>
622
623 PR lto/61123
624 * c.opt (fshort-enums): Add to LTO.
625 * c.opt (fshort-wchar): Likewise.
626
627 2014-06-16 Marek Polacek <polacek@redhat.com>
628
629 PR c/60439
630 * c.opt (Wswitch-bool): Add Var.
631
632 2014-06-12 Jakub Jelinek <jakub@redhat.com>
633
634 PR middle-end/61486
635 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
636 #pragma omp target teams or
637 #pragma omp {,target }teams distribute simd.
638
639 2014-06-12 Jason Merrill <jason@redhat.com>
640
641 * c.opt (Wabi=, fabi-compat-version): New.
642 * c-opts.c (c_common_handle_option): Handle -Wabi=.
643 (c_common_post_options): Handle flag_abi_compat_version default.
644 Disallow -fabi-compat-version=1.
645 * c-common.h (abi_version_crosses): New.
646
647 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
648
649 * c-family/c-common.c (handle_section_attribute): Update handling for
650 section names that are no longer trees.
651
652 2014-06-10 Jakub Jelinek <jakub@redhat.com>
653
654 PR fortran/60928
655 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
656 (omp_pragmas): ... back here.
657
658 2014-06-05 Marek Polacek <polacek@redhat.com>
659
660 PR c/49706
661 * c-common.c (warn_logical_not_parentheses): New function.
662 * c-common.h (warn_logical_not_parentheses): Declare.
663 * c.opt (Wlogical-not-parentheses): New option.
664
665 2014-06-04 Marek Polacek <polacek@redhat.com>
666
667 PR c/30020
668 * c-common.c (check_case_bounds): Add location parameter.
669 Use it.
670 (c_add_case_label): Pass loc to check_case_bounds.
671
672 2014-06-03 Marek Polacek <polacek@redhat.com>
673
674 PR c/60439
675 * c.opt (Wswitch-bool): New option.
676
677 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
678
679 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
680 Remove prototypes.
681 (record_types_used_by_current_var_decl): Move prototype to where
682 it belongs.
683
684 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
685 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
686 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
687
688 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
689
690 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
691 * c-common.c (c_common_nodes_and_builtins): Don't initialize
692 void_zero_node.
693 * c-pretty-print.c (pp_c_void_constant): New function.
694 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
695 (c_pretty_printer::expression): Handle VOID_CST.
696 * cilk.c (extract_free_variables): Likewise.
697 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
698 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
699
700 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
701
702 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
703 * c-pragma.c (push_alignment): Adjust.
704 (handle_pragma_push_options): Likewise.
705
706 2014-05-09 Marek Polacek <polacek@redhat.com>
707
708 PR c/50459
709 * c-common.c (check_user_alignment): Return -1 if alignment is error
710 node.
711 (handle_aligned_attribute): Don't call default_conversion on
712 FUNCTION_DECLs.
713 (handle_vector_size_attribute): Likewise.
714 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
715 (handle_sentinel_attribute): Call default_conversion and allow even
716 integral types as an argument.
717
718 2014-05-08 Marek Polacek <polacek@redhat.com>
719
720 PR c/61053
721 * c-common.c (min_align_of_type): New function factored out from...
722 (c_sizeof_or_alignof_type): ...here.
723 * c-common.h (min_align_of_type): Declare.
724
725 2014-05-08 Marek Polacek <polacek@redhat.com>
726
727 PR c/61077
728 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
729 parameter type of main.
730
731 2014-05-07 DJ Delorie <dj@redhat.com>
732
733 * c-cppbuiltin.c (print_bits_of_hex): New.
734 (builtin_define_type_minmax): Print values using hex so as not to
735 require a pre-computed list of string values.
736
737 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
738 Mike Stump <mikestump@comcast.net>
739 Richard Sandiford <rdsandiford@googlemail.com>
740
741 * c-ada-spec.c: Include wide-int.h.
742 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
743 (dump_generic_ada_node): Use wide-int interfaces.
744 * c-common.c: Include wide-int-print.h.
745 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
746 (pointer_int_sum): Use wide-int interfaces.
747 (c_common_nodes_and_builtins): Use make_int_cst.
748 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
749 (handle_alloc_size_attribute): Use wide-int interfaces.
750 (get_nonnull_operand): Likewise.
751 * c-format.c (get_constant): Use tree_fits_uhwi_p.
752 * c-lex.c: Include wide-int.h.
753 (narrowest_unsigned_type): Take a widest_int rather than two
754 HOST_WIDE_INTs.
755 (narrowest_signed_type): Likewise.
756 (interpret_integer): Update accordingly. Use wide-int interfaces.
757 (lex_charconst): Use wide-int interfaces.
758 * c-pretty-print.c: Include wide-int.h.
759 (pp_c_integer_constant): Use wide-int interfaces.
760 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
761 INT_CST_LT_UNSIGNED.
762
763 2014-05-06 Richard Biener <rguenther@suse.de>
764
765 * c-opts.c (c_common_post_options): For -freestanding,
766 -fno-hosted and -fno-builtin disable pattern recognition
767 if not enabled explicitely.
768
769 2014-05-02 Marek Polacek <polacek@redhat.com>
770
771 * c.opt (Wsizeof-pointer-memaccess): Describe option.
772
773 2014-05-01 Marek Polacek <polacek@redhat.com>
774
775 PR c/43245
776 * c.opt (Wdiscarded-qualifiers): Add.
777
778 2014-04-30 Marek Polacek <polacek@redhat.com>
779
780 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
781 INT_MIN / -1 sanitization only for integer types.
782
783 2014-04-25 Marek Polacek <polacek@redhat.com>
784
785 PR c/18079
786 * c-common.c (handle_noinline_attribute): Warn if the attribute
787 conflicts with always_inline attribute.
788 (handle_always_inline_attribute): Warn if the attribute conflicts
789 with noinline attribute.
790
791 2014-04-25 Marek Polacek <polacek@redhat.com>
792
793 PR c/60156
794 * c-common.c (check_main_parameter_types): Warn about variadic main.
795
796 2014-04-24 Mike Stump <mikestump@comcast.net>
797
798 * c.opt (Wshadow-ivar): Default to on.
799
800 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
801
802 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
803
804 2014-04-23 Marek Polacek <polacek@redhat.com>
805
806 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
807
808 2014-04-22 Jakub Jelinek <jakub@redhat.com>
809
810 PR sanitizer/60275
811 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
812 if flag_sanitize_undefined_trap_on_error.
813 (ubsan_instrument_division, ubsan_instrument_shift,
814 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
815 if !flag_sanitize_recover.
816
817 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
818
819 PR libstdc++/43622
820 * c-common.c (registered_builtin_types): Make non-static.
821 * c-common.h (registered_builtin_types): Declare.
822
823 2014-04-14 Richard Biener <rguenther@suse.de>
824 Marc Glisse <marc.glisse@inria.fr>
825
826 PR c/60819
827 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
828 apply may-alias the scalar pointer type when applicable.
829
830 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
831
832 PR middle-end/60467
833 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
834 as possible argument for Cilk_spawn.
835
836 2014-04-11 Tobias Burnus <burnus@net-b.de>
837
838 PR c/60194
839 * c.opt (Wformat-signedness): Add
840 * c-format.c(check_format_types): Use it.
841
842 2014-04-11 Jason Merrill <jason@redhat.com>
843
844 PR c++/57926
845 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
846 default_conversion for an array argument.
847
848 2014-04-08 Marek Polacek <polacek@redhat.com>
849
850 PR sanitizer/60745
851 * c-ubsan.c: Include asan.h.
852 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
853
854 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
855
856 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
857
858 2014-04-02 Marek Polacek <polacek@redhat.com>
859
860 * c-common.h (c_expand_expr): Remove declaration.
861
862 2014-03-28 Jakub Jelinek <jakub@redhat.com>
863
864 PR c++/60689
865 * c-common.c (add_atomic_size_parameter): When creating new
866 params vector, push the size argument first.
867
868 2014-03-26 Jakub Jelinek <jakub@redhat.com>
869
870 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
871 ubsan_instrument_vla, ubsan_instrument_return): Adjust
872 ubsan_create_data callers.
873
874 2014-03-22 Jakub Jelinek <jakub@redhat.com>
875
876 PR debug/60603
877 * c-opts.c (c_finish_options): Restore cb_file_change call to
878 <built-in>.
879
880 2014-03-13 Jakub Jelinek <jakub@redhat.com>
881
882 PR middle-end/36282
883 * c-pragma.c (apply_pragma_weak): Only look at
884 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
885 DECL_ASSEMBLER_NAME_SET_P (decl).
886 (maybe_apply_pending_pragma_weaks): Exit early if
887 vec_safe_is_empty (pending_weaks) rather than only when
888 !pending_weaks.
889 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
890 set assembler name back to NULL afterwards.
891
892 2014-03-11 Jason Merrill <jason@redhat.com>
893
894 * c.opt: Add -std=gnu++14.
895
896 2014-03-11 Ian Bolton <ian.bolton@arm.com>
897
898 * c-opts.c (c_common_post_options): Don't override
899 -ffp-contract=fast if unsafe-math-optimizations is on.
900
901 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
902
903 * c.opt: Enable LTO FE for fshort-double.
904
905 2014-03-07 Jason Merrill <jason@redhat.com>
906
907 * c.opt: Add -std=c++14.
908
909 2014-03-06 Marek Polacek <polacek@redhat.com>
910
911 PR c/60197
912 * cilk.c (contains_cilk_spawn_stmt): New function.
913 (contains_cilk_spawn_stmt_walker): Likewise.
914 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
915 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
916
917 2014-03-03 Jakub Jelinek <jakub@redhat.com>
918
919 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
920 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
921 even when flag_preprocess_only.
922
923 2014-02-26 Jason Merrill <jason@redhat.com>
924
925 PR c++/59231
926 PR c++/11586
927 * c-common.c (shorten_compare): Don't check
928 c_inhibit_evaluation_warnings.
929
930 2014-02-19 Jakub Jelinek <jakub@redhat.com>
931
932 PR c/37743
933 * c-common.c (c_common_nodes_and_builtins): When initializing
934 c_uint{16,32,64}_type_node, also set corresponding
935 uint{16,32,64}_type_node to the same value.
936
937 PR c++/60267
938 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
939 for PRAGMA_IVDEP if flag_preprocess_only.
940
941 2014-02-12 Jakub Jelinek <jakub@redhat.com>
942
943 PR c/60101
944 * c-common.c (merge_tlist): If copy is true, call new_tlist,
945 if false, add ADD itself, rather than vice versa.
946 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
947 copy. For SAVE_EXPR, only call merge_tlist once.
948
949 2014-02-08 Jakub Jelinek <jakub@redhat.com>
950
951 PR middle-end/60092
952 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
953 and tree_to_uhwi.
954 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
955 functions.
956 (c_common_attribute_table): Add alloc_align and assume_aligned
957 attributes.
958
959 2014-02-06 Marek Polacek <polacek@redhat.com>
960
961 PR c/60087
962 * c-common.c (warn_for_sign_compare): Call warning_at with location
963 instead of warning.
964
965 2014-02-05 Marek Polacek <polacek@redhat.com>
966
967 PR c/53123
968 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
969 statement.
970
971 2014-02-04 Marek Polacek <polacek@redhat.com>
972
973 PR c/60036
974 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
975 SAVE_EXPR.
976
977 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
978
979 PR c++/53017
980 PR c++/59211
981 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
982 handle_vector_size_attribute, handle_nonnull_attribute): Call
983 default_conversion on the attribute argument.
984 (handle_nonnull_attribute): Increment the argument number.
985
986 2014-01-31 Marek Polacek <polacek@redhat.com>
987
988 PR c/59963
989 * c-common.c (add_atomic_size_parameter): Pass vNULL to
990 build_function_call_vec.
991 (resolve_overloaded_builtin): Likewise.
992 * c-common.h (build_function_call_vec): Adjust declaration.
993
994 2014-01-30 Marek Polacek <polacek@redhat.com>
995
996 PR c/59940
997 * c-common.h (unsafe_conversion_p): Adjust declaration.
998 (warnings_for_convert_and_check): Likewise.
999 (convert_and_check): Likewise.
1000 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1001 expansion_point_location_if_in_system_header on it.
1002 (warnings_for_convert_and_check): Add location parameter. Call
1003 expansion_point_location_if_in_system_header on it. Use it.
1004 (convert_and_check): Add location parameter. Use it.
1005 (conversion_warning): Likewise.
1006 (c_add_case_label): Adjust convert_and_check calls.
1007 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1008
1009 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1010
1011 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1012 flag_cilkplus.
1013 * c-pragma.c (init_pragma): Likewise.
1014 * c.opt: Likewise.
1015
1016 2014-01-23 Marek Polacek <polacek@redhat.com>
1017
1018 PR c/59846
1019 * c-common.c (shorten_compare): Add location_t parameter.
1020 * c-common.h (shorten_binary_op): Adjust declaration.
1021
1022 2014-01-23 Marek Polacek <polacek@redhat.com>
1023
1024 PR c/58346
1025 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1026 * c-common.h: Declare it.
1027
1028 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1029
1030 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1031 * c-ada-spec.c (dump_ads): Likewise.
1032 (cpp_check): Likewise.
1033 (dump_ada_specs): Likewise.
1034
1035 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
1036
1037 PR c++/49718
1038 * c-common.c (handle_no_instrument_function_attribute): Allow
1039 no_instrument_function attribute in class member
1040 definition/declaration.
1041
1042 2014-01-15 Jakub Jelinek <jakub@redhat.com>
1043
1044 PR c/58943
1045 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1046 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1047 being COMPOUND_EXPR.
1048 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1049 operand a SAVE_EXPR and second MODIFY_EXPR.
1050
1051 2014-01-09 Jakub Jelinek <jakub@redhat.com>
1052
1053 PR target/58115
1054 * c-pch.c (c_common_write_pch): Call
1055 prepare_target_option_nodes_for_pch.
1056
1057 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1058
1059 Update copyright years
1060
1061 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1062
1063 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1064 the copyright notice.
1065
1066 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1067
1068 * c-ada-spec.c (print_constructor): New function.
1069 (print_destructor): Retrieve the origin of the destructor.
1070 (print_ada_declaration): Revamp handling of constructors/destructors.
1071
1072 2013-12-23 Stuart Hastings <stuart@apple.com>
1073 Bill Maddox <maddox@google.com>
1074 Jason Merrill <jason@redhat.com>
1075
1076 * c.opt: Add -fdeclone-ctor-dtor.
1077 * c-opts.c (c_common_post_options): Default to on iff -Os.
1078
1079 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1080
1081 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1082 attribute.
1083 * c-pragma.h (enum pragma_cilk_clause): Remove.
1084 (enum pragma_omp_clause): Added the following fields:
1085 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1086 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1087 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1088 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1089 PRAGMA_CILK_CLAUSE_UNIFORM.
1090
1091
1092 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1093
1094 * cilk.c (cilk_outline): Made this function non-static.
1095 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1096 (create_cilk_wrapper): Added a new parameter: a function pointer.
1097 (c_install_body_w_frame_cleanup): Remove
1098 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1099 * c-common.h (cilk_outline): New prototype.
1100 (gimplify_cilk_spawn): Removed two parameters.
1101 (cilk_install_body_with_frame_cleanup): New prototype.
1102 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1103 CILK_SPAWN_STMT case.
1104
1105 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1106
1107 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1108
1109 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1110 (int_array_type_node): Remove.
1111 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1112
1113 2013-12-05 Marek Polacek <polacek@redhat.com>
1114
1115 PR c/52023
1116 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1117 [ADJUST_FIELD_ALIGN].
1118
1119 2013-12-04 Joseph Myers <joseph@codesourcery.com>
1120
1121 PR c/52023
1122 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1123 and check field alignment if set.
1124 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1125 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1126
1127 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1128 Marek Polacek <polacek@redhat.com>
1129
1130 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1131 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1132
1133 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1134
1135 PR c/59309
1136 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1137 arguments.
1138
1139 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1140
1141 PR c/59280
1142 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1143 goto invalid. If it is error_mark_node, don't issue further
1144 diagnostics.
1145
1146 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1147
1148 * c.opt (Wopenmp-simd): New.
1149
1150 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1151
1152 * c-ubsan.h (ubsan_instrument_return): New prototype.
1153 * c-ubsan.c (ubsan_instrument_return): New function.
1154
1155 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1156
1157 * c-common.c: Add required include files from gimple.h.
1158 * c-gimplify.c: Likewise
1159 * cilk.c: Likewise
1160
1161 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1162
1163 * c-common.c (unsafe_conversion_p): Remove use of
1164 EXPR_LOC_OR_HERE macro.
1165 (conversion_warning): Likewise.
1166 (warnings_for_convert_and_check): Likewise.
1167 (warn_for_collisions_1): Likewise.
1168 (shorten_compare): Likewise, and remove use of in_system_header
1169 macro, using the location from the former.
1170 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1171 (cb_def_pragma): Remove use of in_system_header macro.
1172 (lex_string): Likewise.
1173 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1174
1175 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1176 Mike Stump <mikestump@comcast.net>
1177 Richard Sandiford <rdsandiford@googlemail.com>
1178
1179 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1180 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1181 tree_fits_shwi_p or tree_fits_uhwi_p.
1182 (dump_generic_ada_node): Likewise.
1183 * c-format.c (check_format_arg): Likewise.
1184 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1185
1186 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1187
1188 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1189
1190 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1191
1192 PR c/53001
1193 * c-common.c (unsafe_conversion_p): Make this function
1194 return an enumeration with more detail.
1195 (conversion_warning): Use the new return type of
1196 unsafe_conversion_p to separately warn either about conversions
1197 that lower floating point number precision or about the other
1198 kinds of conversions.
1199 * c-common.h (enum conversion_safety): New enumeration.
1200 (unsafe_conversion_p): switching return type to
1201 conversion_safety enumeration.
1202 * c.opt: Adding new warning -Wfloat-conversion and
1203 enabling it with -Wconversion.
1204
1205 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1206
1207 * c-opts.c: Include plugin.h.
1208 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1209
1210 2013-11-19 Marek Polacek <polacek@redhat.com>
1211
1212 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1213 call.
1214 (ubsan_instrument_shift): Likewise.
1215 (ubsan_instrument_vla): Likewise.
1216
1217 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1218
1219 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1220 cast to unsigned type.
1221
1222 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1223
1224 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1225 tree_low_cst.
1226 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1227 rather than tree_low_cst.
1228
1229 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1230
1231 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1232 tree_to_uhwi throughout.
1233
1234 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1235
1236 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1237 tree_low_cst (..., 0) with tree_to_shwi throughout.
1238
1239 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1240
1241 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1242 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1243
1244 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1245
1246 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1247 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1248
1249 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1250
1251 * c-cilkplus.c: New file.
1252 * c-common.c (readonly_error): Add location argument.
1253 * c-common.h (readonly_error): Same.
1254 (c_finish_cilk_clauses): Protoize.
1255 (c_check_cilk_loop): Same.
1256 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1257 Do not fail on error_mark_node.
1258 Abstract increment canonicalization to here...
1259 (c_omp_for_incr_canonicalize_ptr): New.
1260 c-pragma.c (init_pragma): Register "simd" pragma.
1261 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1262 (enum pragma_cilk_clause): New.
1263
1264 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1265
1266 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1267 wchar_type and host_integerp checks.
1268
1269 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1270
1271 * c-common.c: Likewise.
1272 * c-gimplify.c: Likewise.
1273 * cilk.c: Likewise.
1274
1275 2013-11-14 Diego Novillo <dnovillo@google.com>
1276
1277 * c-common.c: Include fold-const.h.
1278 Include stor-layout.h.
1279 Include calls.h.
1280 Include stringpool.h.
1281 Include attribs.h.
1282 Include varasm.h.
1283 Include trans-mem.h.
1284 * c-cppbuiltin.c: Include stor-layout.h.
1285 Include stringpool.h.
1286 * c-format.c: Include stringpool.h.
1287 * c-lex.c: Include stringpool.h.
1288 Include stor-layout.h.
1289 * c-pragma.c: Include stringpool.h.
1290 Include attribs.h.
1291 Include varasm.h.
1292 Include gcc-symtab.h.
1293 * c-pretty-print.c: Include stor-layout.h.
1294 Include attribs.h.
1295 * cilk.c: Include stringpool.h.
1296 Include calls.h.
1297
1298 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1299
1300 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1301 * c-common.c (c_common_reswords): Add __auto_type.
1302 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1303
1304 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1305
1306 * c-common.c: Include gimplify.h.
1307 * c-gimplify.c: Likewise.
1308 * cilk.c: Likewise.
1309 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1310 * c-ubsan.c: Don't include gimple.h.
1311
1312 2013-11-12 Joseph Myers <joseph@codesourcery.com>
1313
1314 * c-common.c (c_common_reswords): Add _Thread_local.
1315
1316 2013-11-09 Joseph Myers <joseph@codesourcery.com>
1317
1318 * c-common.c (atomic_size_supported_p): New function.
1319 (resolve_overloaded_atomic_exchange)
1320 (resolve_overloaded_atomic_compare_exchange)
1321 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1322 Use it instead of comparing size with a local list of sizes.
1323
1324 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
1325 Joseph Myers <joseph@codesourcery.com>
1326
1327 * c-common.h (enum rid): Add RID_ATOMIC.
1328 * c-common.c (c_common_reswords): Add _Atomic.
1329 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1330 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1331 * c-format.c (check_format_types): Check for extra _Atomic
1332 qualifiers in format argument.
1333 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1334 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1335
1336 2013-11-06 Tobias Burnus <burnus@net-b.de>
1337
1338 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1339
1340 2013-11-06 Joseph Myers <joseph@codesourcery.com>
1341
1342 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1343 standards modes.
1344 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1345 to mean lack of IEEE 754 support.
1346
1347 2013-11-05 Tobias Burnus <burnus@net-b.de>
1348
1349 * c.opt (-Wdate-time): New option
1350 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1351
1352 2013-11-05 Joseph Myers <joseph@codesourcery.com>
1353
1354 * c-cppbuiltin.c (cpp_iec_559_value): Test
1355 flag_excess_precision_cmdline not flag_excess_precision.
1356
1357 2013-11-05 Tobias Burnus <burnus@net-b.de>
1358
1359 * c.opt (fopenmp-simd): New option.
1360 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1361 (omp_pragmas): ... this new struct.
1362 (c_pp_lookup_pragma): Also walk omp_pragmas.
1363 (init_pragma): Init pragmas for -fopenmp-simd.
1364
1365 2013-11-04 Marek Polacek <polacek@redhat.com>
1366
1367 PR c++/58979
1368 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1369
1370 2013-11-04 Joseph Myers <joseph@codesourcery.com>
1371
1372 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1373 New functions.
1374 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1375
1376 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1377
1378 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1379 (dump_ada_specs): Adjust prototype of second callback.
1380 * c-ada-spec.c (cpp_check): New global variable.
1381 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1382 (print_generic_ada_decl): Likewise.
1383 (has_static_fields): Change return type to bool and add guard.
1384 (has_nontrivial_methods): New predicate.
1385 (is_tagged_type): Change return type to bool.
1386 (separate_class_package): Call has_nontrivial_methods.
1387 (pp_ada_tree_identifier): Minor tweaks.
1388 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1389 (dump_ada_array_domains): Likewise.
1390 (dump_ada_array_type): Likewise.
1391 (dump_template_types): Remove cpp_check parameter and do not pass it to
1392 dump_generic_ada_node.
1393 (dump_ada_template): Likewise.
1394 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1395 recursively.
1396 (print_ada_methods): Change return type to integer. Remove cpp_check
1397 parameter and do not pass it down.
1398 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1399 dump_generic_ada_node.
1400 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1401 accessing methods.
1402 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1403 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1404 value of print_ada_methods.
1405 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1406 Set cpp_check to it before invoking dump_ada_nodes.
1407 (dump_ada_specs): Likewise.
1408
1409 2013-11-03 Marek Polacek <polacek@redhat.com>
1410
1411 * c-ubsan.c: Don't include hash-table.h.
1412 (ubsan_instrument_vla): New function.
1413 * c-ubsan.h: Declare it.
1414
1415 2013-10-31 David Malcolm <dmalcolm@redhat.com>
1416
1417 Automated part of renaming of symtab_node_base to symtab_node.
1418
1419 Patch autogenerated by rename_symtab.py from
1420 https://github.com/davidmalcolm/gcc-refactoring-scripts
1421 revision 58bb219cc090b2f4516a9297d868c245495ee622
1422
1423 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1424 symtab_node_base to symtab_node.
1425
1426 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1427
1428 Implement C++14 digit separators.
1429 * c-lex.c (interpret_float): Remove digit separators from scratch string
1430 before building real literal.
1431
1432 2013-10-30 Jakub Jelinek <jakub@redhat.com>
1433
1434 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1435
1436 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1437
1438 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1439 fields.
1440 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1441 enabled.
1442 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1443 (insert_cilk_frame): New prototype.
1444 (cilk_init_builtins): Likewise.
1445 (gimplify_cilk_spawn): Likewise.
1446 (c_cilk_install_body_w_frame_cleanup): Likewise.
1447 (cilk_detect_spawn_and_unwrap): Likewise.
1448 (cilk_set_spawn_marker): Likewise.
1449 (build_cilk_sync): Likewise.
1450 (build_cilk_spawn): Likewise.
1451 * cilk.c: New file.
1452
1453 2013-10-29 David Malcolm <dmalcolm@redhat.com>
1454
1455 Patch autogenerated by refactor_symtab.py from
1456 https://github.com/davidmalcolm/gcc-refactoring-scripts
1457 revision 58bb219cc090b2f4516a9297d868c245495ee622
1458
1459 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1460 to a true class hierarchy.
1461 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1462
1463 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1464
1465 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1466
1467 2013-10-26 Jeff Law <law@redhat.com>
1468
1469 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1470 * c-family/c.opt: Ignore and warn for mudflap options.
1471
1472 2013-10-24 Tobias Burnus <burnus@net-b.de>
1473
1474 PR other/33426
1475 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1476 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1477
1478 2013-10-23 Jason Merrill <jason@redhat.com>
1479
1480 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1481
1482 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1483
1484 * c-common.h (omp_clause_mask::operator !=): New method.
1485 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1486 instead of if (mask & something) tests everywhere.
1487
1488 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1489 201307 instead of 201107.
1490 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1491 (c_common_attribute_table): Add "omp declare target" and
1492 "omp declare simd" attributes.
1493 (handle_omp_declare_target_attribute,
1494 handle_omp_declare_simd_attribute): New functions.
1495 * c-omp.c: Include c-pragma.h.
1496 (c_finish_omp_taskgroup): New function.
1497 (c_finish_omp_atomic): Add swapped argument, if true,
1498 build the operation first with rhs, lhs arguments and use NOP_EXPR
1499 build_modify_expr.
1500 (c_finish_omp_for): Add code argument, pass it down to make_code.
1501 (c_omp_split_clauses): New function.
1502 (c_split_parallel_clauses): Removed.
1503 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1504 c_omp_declare_simd_clauses_to_decls): New functions.
1505 * c-common.h (omp_clause_mask): New type.
1506 (OMP_CLAUSE_MASK_1): Define.
1507 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1508 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1509 omp_clause_mask::operator |, omp_clause_mask::operator &,
1510 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1511 omp_clause_mask::operator ==): New methods.
1512 (enum c_omp_clause_split): New.
1513 (c_finish_omp_taskgroup): New prototype.
1514 (c_finish_omp_atomic): Add swapped argument.
1515 (c_finish_omp_for): Add code argument.
1516 (c_omp_split_clauses): New prototype.
1517 (c_split_parallel_clauses): Removed.
1518 (c_omp_declare_simd_clauses_to_numbers,
1519 c_omp_declare_simd_clauses_to_decls): New prototypes.
1520 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1521 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1522 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1523 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1524 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1525 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1526 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1527 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1528 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1529 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1530 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1531 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1532 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1533 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1534 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1535 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1536 PRAGMA_OMP_CLAUSE_UNIFORM.
1537
1538 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
1539
1540 PR tree-optimization/20318
1541 * c-common.c (handle_returns_nonnull_attribute): New function.
1542 (c_common_attribute_table): Add returns_nonnull.
1543
1544 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
1545
1546 PR c++/19476
1547 * c.opt (fcheck-new): Move to common.opt.
1548
1549 2013-09-25 Marek Polacek <polacek@redhat.com>
1550 Jakub Jelinek <jakub@redhat.com>
1551
1552 PR sanitizer/58413
1553 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1554 an expression if we can prove it is correct.
1555 (ubsan_instrument_division): Likewise. Remove unnecessary
1556 check.
1557
1558 2013-09-18 Marek Polacek <polacek@redhat.com>
1559
1560 PR sanitizer/58411
1561 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1562 Declare it.
1563 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1564
1565 2013-09-14 Iain Sandoe <iain@codesourcery.com>
1566
1567 PR target/48094
1568 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1569 fobjc-gc, freplace-objc-classes): Accept for LTO.
1570
1571 2013-09-13 Jacek Caban <jacek@codeweavers.com>
1572
1573 * c-target.def: New hook
1574
1575 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1576
1577 PR c++/43452
1578 * c.opt (Wdelete-incomplete): Add.
1579
1580 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1581
1582 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1583 (vector_types_compatible_elements_p): New function.
1584 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1585 declaration.
1586 (vector_types_compatible_elements_p): Declare.
1587
1588 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1589
1590 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1591 a virtual member function.
1592 (pp_simple_type_specifier): Remove.
1593 (pp_c_type_specifier): Likewise.
1594 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1595 Rename from pp_c_type_specifier. Adjust.
1596 (c_pretty_printer::c_pretty_printer): Do not assign to
1597 simple_type_specifier.
1598
1599 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1600
1601 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1602 member function.
1603 (c_pretty_printer::storage_class_specifier): Likewise.
1604 (c_pretty_printer::initializer): Likewise.
1605 (pp_declaration): Remove.
1606 (pp_declaration_specifiers): Likewise.
1607 (pp_abstract_declarator): Likewise.
1608 (pp_declarator): Likewise.
1609 (pp_type_id): Likewise.
1610 (pp_statement): Likewise.
1611 (pp_constant): Likewise.
1612 (pp_id_expression): Likewise.
1613 (pp_primary_expression): Likewise.
1614 (pp_unary_expression): Likewise.
1615 (pp_multiplicative_expression): Likewise.
1616 (pp_conditional_expression): Likewise.
1617 (pp_assignment_expression): Likewise.
1618 (pp_expression): Likewise.
1619 (pp_c_type_id): Likewise.
1620 (pp_c_storage_class_specifier): Likewise.
1621 * c-pretty-print.c (pp_c_type_cast): Tidy.
1622 (pp_c_pointer): Likewise.
1623 (pp_c_type_specifier): Likewise.
1624 (pp_c_parameter_type_list): Likewise.
1625 (pp_c_function_definition): Likewise.
1626 (pp_c_init_declarator): Likewise.
1627 (pp_c_initializer_list): Likewise.
1628 (pp_c_constructor_elts): Likewise.
1629 (c_pretty_printer::direct_abstract_declarator): Likewise.
1630 (c_pretty_printer::declaration_specifiers): Likewise.
1631 (c_pretty_printer::primary_expression): Likewise.
1632 (c_pretty_printer::postfix_expression): Likewise.
1633 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1634 (c_pretty_printer::storage_class_specifier): Rename from
1635 pp_c_storage_class_specifier.
1636 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1637 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1638 storage_class_specifier, initializer, offset_list, flags.
1639
1640 2013-08-30 Marek Polacek <polacek@redhat.com>
1641
1642 * c-ubsan.c: New file.
1643 * c-ubsan.h: New file.
1644
1645 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1646
1647 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1648 member function.
1649 (c_pretty_printer::declaration_specifiers): Likewise.
1650 (c_pretty_printer::declarator): Likewise.
1651 (c_pretty_printer::abstract_declarator): Likewise.
1652 (c_pretty_printer::direct_abstract_declarator): Likewise.
1653 (c_pretty_printer::direct_declarator): Likewise.
1654 (c_pretty_printer::function_specifier): Likewise.
1655 (pp_declaration): Adjust.
1656 (pp_declaration_specifiers): Likewise.
1657 (pp_abstract_declarator): Likewise.
1658 (pp_direct_declarator): Likewise.
1659 (pp_function_specifier): Likewise.
1660 (pp_direct_abstract_declarator): Remove as unused.
1661 (pp_c_declaration): Remove.
1662 (pp_c_declaration_specifiers): Likewise.
1663 (pp_c_declarator): Likewise.
1664 (pp_c_direct_declarator): Likewise.
1665 (pp_c_function_specifier): Likewise.
1666 (pp_c_direct_abstract_declarator): Likewise.
1667 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1668 from pp_c_abstract_declarator. Adjust.
1669 (c_pretty_printer::direct_abstract_declarator): Rename from
1670 pp_c_direct_abstract_declarator. Adjust.
1671 (c_pretty_printer::function_specifier): Rename from
1672 pp_c_function_specifier. Adjust.
1673 (c_pretty_printer::declaration_specifiers): Rename from
1674 pp_c_declaration_specifiers. Adjust.
1675 (c_pretty_printer::direct_declarator): Rename from
1676 pp_c_direct_declarator. Adjust.
1677 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1678 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1679 (c_pretty_printer::c_pretty_printer): Do not assign to
1680 declaration, declaration_specifiers, declarator,
1681 direct_declarator, direct_abstract_declarator, function_specifier.
1682
1683 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1684
1685 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1686 virtual member function.
1687 (c_pretty_printer::multiplicative_expression): Likewise.
1688 (c_pretty_printer::conditional_expression): Likewise.
1689 (c_pretty_printer::assignment_expression): Likewise.
1690 (c_pretty_printer::expression): Likewise.
1691 (pp_unary_expression): Adjust.
1692 (pp_multiplicative_expression): Likewise.
1693 (pp_assignment_expression): Likewise.
1694 (pp_conditional_expression): Likewise.
1695 (pp_expression): Likewise.
1696 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1697 from pp_c_unary_expression. Adjust.
1698 (c_pretty_printer::multiplicative_expression): Rename from
1699 pp_c_multiplicative_expression. Adjust.
1700 (c_pretty_printer::conditional_expression): Rename from
1701 pp_c_conditional_expression. Adjust.
1702 (c_pretty_printer::assignment_expression): Rename from
1703 pp_c_assignment_expression. Adjust.
1704 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1705 (c_pretty_printer::c_pretty_printer): Do not assign to
1706 unary_expression, multiplicative_expression,
1707 conditional_expression, expression.
1708
1709 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1710
1711 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1712 virtual member function.
1713 (pp_postfix_expression): Adjust.
1714 (pp_c_postfix_expression): Remove.
1715 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1716 from pp_c_postfix_expression. Adjust.
1717 (c_pretty_printer::c_pretty_printer): Do not assign to
1718 postfix_expression.
1719
1720 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1721
1722 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1723 virtua member function.
1724 (pp_primary_expression): Adjust.
1725 (pp_c_primary_expression): Remove.
1726 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1727 from pp_c_primary_expression. Adjust.
1728 (pp_c_initializer_list): Use pp_primary_expression.
1729 (c_pretty_printer::c_pretty_printer): Do not assign to
1730 primary_expression.
1731
1732 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1733
1734 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1735 * c-pretty-print.c (M_): Remove.
1736 (c_pretty_printer::translate_string): Define.
1737 (pp_c_type_specifier): Use it.
1738 (pp_c_primary_expression): Likewise.
1739 (pp_c_expression): Likewise.
1740
1741 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1742
1743 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1744 virtual function.
1745 (pp_c_id_expression): Remove.
1746 (pp_id_expression): Adjust.
1747 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1748 pp_c_id_expression. Adjust.
1749 (pp_c_postfix_expression): Use pp_id_expression.
1750 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1751
1752 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1753
1754 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1755 member function.
1756 (pp_constant): Adjust.
1757 (pp_c_constant): Remove.
1758 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1759 pp_c_constant. Adjust.
1760 (pp_c_constant)
1761 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1762 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1763
1764 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1765
1766 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1767 (c_pretty_printer::c_pretty_printer): Declare.
1768 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1769 c_pretty_printer_init. Adjust.
1770 (print_c_tree): Do not call c_pretty_printer_init.
1771 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1772
1773 2013-08-09 Arnaud Charlet <charlet@adacore.com>
1774
1775 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1776
1777 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1778
1779 PR c++/58080
1780 * c-common.c (pointer_int_sum): Add bool parameter.
1781 * c-common.h (pointer_int_sum): Adjust declaration.
1782
1783 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1784
1785 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1786 c_pretty_printer variable.
1787
1788 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1789
1790 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1791 (pp_base): Remove.
1792 (pp_c_base): Likewise. Adjust users.
1793 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1794 (pp_c_whitespace): Do not call pp_base.
1795 (pp_c_left_paren): Likewise.
1796 (pp_c_right_paren): Likewise.
1797 (pp_c_left_brace): Likewise.
1798 (pp_c_right_brace): Likewise.
1799 (pp_c_left_bracket): Likewise.
1800 (pp_c_right_bracket): Likewise.
1801 (pp_c_dot): Likewise.
1802 (pp_c_ampersand): Likewise.
1803 (pp_c_star): Likewise.
1804 (pp_c_arrow): Likewise.
1805 (pp_c_semicolon): Likewise.
1806 (pp_c_complement): Likewise.
1807 (pp_c_exclamation): Likewise.
1808 (pp_c_direct_declarator): Likewise.
1809 (pp_c_ws_string): Likewise.
1810 (pp_c_identifier): Likewise.
1811 (pp_c_statement): Likewise.
1812 (print_c_tree): Likewise.
1813
1814 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1815
1816 PR c++/58072
1817 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1818 provide useful error strings.
1819
1820 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1821
1822 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1823 printer functions instead of pp_string or operators and punctuators.
1824 (dump_generic_ada_node): Likewise.
1825 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1826 (pp_c_relational_expression): Likewise.
1827 (pp_c_logical_or_expression): Likewise.
1828
1829 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1830
1831 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1832 functions instead of pp_character.
1833 (pp_ada_tree_identifier): Likewise.
1834 (dump_ada_double_name): Likewise.
1835 (dump_ada_function_declaration): Likewise.
1836 (dump_ada_array_domains): Likewise.
1837 (dump_template_types): Likewise.
1838 (dump_generic_ada_node): Likewise.
1839 (print_ada_declaration): Likewise.
1840 (print_ada_struct_decl): Likewise.
1841 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1842
1843 2013-07-23 Tom Tromey <tromey@redhat.com>
1844
1845 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1846 * c-common.c (c_common_reswords): Add _Generic.
1847
1848 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1849
1850 * c-common.c: Fix typos.
1851 * c-common.h: Likewise.
1852
1853 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
1854
1855 PR c++/55203
1856 * c-common.c (c_common_attribute_table): Add warn_unused.
1857 (handle_warn_unused_attribute): New.
1858
1859 2013-07-10 Jakub Jelinek <jakub@redhat.com>
1860
1861 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1862 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1863
1864 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1865
1866 PR c++/57869
1867 * c.opt: Add Wconditionally-supported.
1868
1869 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1870
1871 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1872 unused variables l_length and l_node.
1873
1874 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
1875
1876 PR c/57821
1877 * c-common.c (complete_array_type): Delay folding first index
1878 like other indices. When folding, check for index overflow.
1879
1880 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1881
1882 PR c++/57509
1883 * c-common.h (c_build_vec_perm_expr): New complain argument.
1884 * c-common.c (c_build_vec_perm_expr): Likewise.
1885 Use save_expr also in C++.
1886
1887 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1888
1889 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1890 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1891 * c-opts.c (c_common_post_options): Likewise.
1892
1893 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1894
1895 * array-notation-common.c (length_mismatch_in_expr): Changed the
1896 parameter type's from a dynamic array to a vec_tree. Also removed
1897 the size parameters.
1898 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1899 the change above.
1900
1901 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1902
1903 * c-common.h (struct cilkplus_an_parts): New structure.
1904 (struct cilkplus_an_loop_parts): Likewise.
1905 (cilkplus_extract_an_triplets): New prototype.
1906 (fix_sec_implicit_args): Likewise.
1907 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1908 (fix_sec_implicit_args): Likewise.
1909
1910 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1911
1912 * array-notation-common.c (find_inv_trees): Removed an unwanted
1913 typecasting.
1914 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1915 enum rid to enum tree_code.
1916
1917 2013-06-11 Jan Hubicka <jh@suse.cz>
1918
1919 * c-common.c (handle_alias_ifunc_attribute): Do not set
1920 DECL_EXTERNAL for weakref variables.
1921 * c-pragma.c (handle_pragma_weak): Make sure aliases
1922 are not declared as external.
1923
1924 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1925
1926 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1927 function from c/c-array-notation.c.
1928 (is_cilkplus_reduce_builtin): Likewise.
1929 (find_rank): Likewise.
1930 (extract_array_notation_exprs): Likewise.
1931 (replace_array_notations): Likewise.
1932 (find_inv_trees): Likewise.
1933 (replace_inv_trees): Likewise.
1934 (contains_array_notation_expr): Likewise.
1935 (find_correct_array_notation_type): Likewise.
1936 * c-common.h (struct inv_list): Moved this struct from the file
1937 c/c-array-notation.c and added a new field called additional tcodes.
1938 (length_mismatch_in_expr_p): New prototype.
1939 (is_cilkplus_reduce_builtin): Likewise.
1940 (find_rank): Likewise.
1941 (extract_array_notation_exprs): Likewise.
1942 (replace_array_notation): Likewise.
1943 (find_inv_trees): Likewise.
1944 (replace_inv_trees): Likewise.
1945 (find_correct_array_notation_type): Likewise.
1946
1947 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1948
1949 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1950 function array_notation_init_builtins is called.
1951 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1952 * c-common.def (ARRAY_NOTATION_REF): New tree.
1953 * c-common.h (build_array_notation_expr): New function declaration.
1954 (build_array_notation_ref): Likewise.
1955 (extract_sec_implicit_index_arg): New extern declaration.
1956 (is_sec_implicit_index_fn): Likewise.
1957 (ARRAY_NOTATION_CHECK): New define.
1958 (ARRAY_NOTATION_ARRAY): Likewise.
1959 (ARRAY_NOTATION_START): Likewise.
1960 (ARRAY_NOTATION_LENGTH): Likewise.
1961 (ARRAY_NOTATION_STRIDE): Likewise.
1962 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1963 ARRAY_NOTATION_REF.
1964 (pp_c_expression): Likewise.
1965 * c.opt (flag_enable_cilkplus): New flag.
1966 * array-notation-common.c: New file.
1967
1968 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1969
1970 PR c++/57274
1971 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1972
1973 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1974
1975 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1976 vectors.
1977
1978 2013-05-07 Han Shen <shenhan@google.com>
1979
1980 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1981
1982 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1983
1984 * c-common.c (check_user_alignment): Emit error for negative values.
1985
1986 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1987
1988 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1989
1990 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1991
1992 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1993 __GXX_EXPERIMENTAL_CXX1Y__.
1994
1995 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1996 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1997
1998 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1999 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2000 to simply use OPT_Wpointer_arith.
2001 (c_sizeof_or_alignof_type): Likewise.
2002
2003 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2004
2005 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2006
2007 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2008
2009 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2010 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2011 specifiers.
2012
2013 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2014
2015 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2016
2017 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2018
2019 * c-common.c (pointer_int_sum): Remove dead code.
2020
2021 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2022
2023 PR middle-end/56524
2024 * c-common.c (handle_optimize_attribute): Don't call
2025 save_optabs_if_changed.
2026
2027 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2028
2029 PR middle-end/56461
2030 * c-pch.c (pch_init): Free target_validity at the end.
2031
2032 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2033
2034 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2035
2036 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2037 Jakub Jelinek <jakub@redhat.com>
2038
2039 PR sanitizer/56454
2040 * c-common.c (handle_no_sanitize_address_attribute): New function.
2041 (c_common_attribute_table): Add no_sanitize_address attribute.
2042 (handle_no_address_safety_analysis_attribute): Add
2043 no_sanitize_address attribute, not no_address_safety_analysis
2044 attribute.
2045
2046 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2047
2048 PR target/52555
2049 * c-common.c (handle_optimize_attribute): Call
2050 save_optabs_if_changed.
2051
2052 2013-02-18 Jakub Jelinek <jakub@redhat.com>
2053 Steven Bosscher <steven@gcc.gnu.org>
2054
2055 PR pch/54117
2056 * c-opts.c (c_common_post_options): If debug info is enabled
2057 and non-dwarf*, refuse to load PCH files and when writing PCH
2058 file warn.
2059
2060 2013-02-05 Jakub Jelinek <jakub@redhat.com>
2061
2062 PR middle-end/56167
2063 * c-common.c (handle_error_attribute): Fix condition.
2064
2065 2013-01-30 Jakub Jelinek <jakub@redhat.com>
2066
2067 PR c++/55742
2068 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2069
2070 2013-01-18 Jason Merrill <jason@redhat.com>
2071
2072 PR target/54908
2073 * c.opt (-fextern-tls-init): New.
2074 * c-opts.c (c_common_post_options): Handle it.
2075
2076 2013-01-09 Jakub Jelinek <jakub@redhat.com>
2077
2078 PR c/48418
2079 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2080 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2081 and is either negative or bigger or equal to type precision
2082 of the first operand.
2083
2084 2012-12-03 Marek Polacek <polacek@redhat.com>
2085
2086 PR c/55570
2087 * c-common.c (check_user_alignment): Swap order of tests,
2088 check TREE_CODE first.
2089
2090 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2091
2092 PR c++/52654
2093 * c-common.h (overflow_type): New enum.
2094 (build_userdef_literal): Add overflow_type argument.
2095 (tree_userdef_literal): Add overflow_type.
2096 (USERDEF_LITERAL_OVERFLOW): New access macro.
2097 * c-common.c (build_userdef_literal): Add overflow_type
2098 argument.
2099 * c-lex.c (c_lex_with_flags): Add overflow_type to
2100 build_userdef_literal calls.
2101 (interpret_integer, interpret_float): Add overflow_type argument.
2102
2103 2012-11-28 Richard Biener <rguenther@suse.de>
2104
2105 PR c/35634
2106 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2107 here and use a type with proper overflow behavior for types that would
2108 need to be promoted for the arithmetic.
2109
2110 2012-11-23 Jakub Jelinek <jakub@redhat.com>
2111
2112 PR sanitizer/55435
2113 * c-common.c (handle_no_address_safety_analysis_attribute): New
2114 function.
2115 (c_common_attribute_table): Add no_address_safety_analysis.
2116
2117 2012-11-16 Simon Baldwin <simonb@google.com>
2118
2119 * c.opt: Add f[no-]canonical-system-headers.
2120 * c-opts.c (c_common_handle_option): Handle
2121 OPT_fcanonical_system_headers.
2122
2123 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2124
2125 PR c++/54413
2126 * c-opts.c (c_common_handle_option): Set new flags.
2127 * c.opt: Describe new flags.
2128
2129 2012-11-09 Jason Merrill <jason@redhat.com>
2130
2131 * c.opt (Wabi-tag): New.
2132
2133 2012-11-09 Andi Kleen <ak@linux.intel.com>
2134
2135 PR 55139
2136 * c-common.c (get_atomic_generic_size): Mask with
2137 MEMMODEL_MASK
2138
2139 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2140
2141 PR c/53063
2142 * c.opt (Wformat): Make it Alias Wformat=1.
2143 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2144 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2145 LangEnabledBy.
2146 (Wformat=): RejectNegative. Use LangEnabledBy.
2147 (Wnonnull): Use LangEnabledBy.
2148 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2149 * c-format.c (set_Wformat): Delete.
2150 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2151 (maybe_read_dollar_number): Likewise.
2152 (avoid_dollar_number): Likewise.
2153 (finish_dollar_format_checking): Likewise.
2154 (check_format_info): Likewise.
2155 (check_format_info_main): Likewise.
2156 (check_format_types): Likewise.
2157 (format_type_warning): Likewise.
2158 * c-common.c (int): Likewise.
2159 (check_function_sentinel): Likewise.
2160 * c-common.h (warn_format,set_Wformat): Do not declare here.
2161
2162 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2163
2164 PR c/53063
2165 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2166 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2167 Use LangEnabledBy.
2168 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2169 common.opt.
2170 (Wvariadic-macros): Init(1).
2171 * c-opts.c (c_common_handle_option): Do not handle them
2172 explicitly.
2173 (c_common_post_options): Likewise.
2174 (sanitize_cpp_opts): warn_unused_macros is now
2175 cpp_warn_unused_macros.
2176 (push_command_line_include): Likewise.
2177 * c-common.c (warn_unknown_pragmas): Do not define.
2178 * c-common.h (warn_unknown_pragmas): Do not declare.
2179
2180 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2181
2182 PR c/51294
2183 * c-common.c (conversion_warning): Handle conditional expressions.
2184
2185 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2186
2187 PR c++/54930
2188 * c.opt (Wreturn_local_addr): Define new option.
2189
2190 2012-10-25 Jason Merrill <jason@redhat.com>
2191
2192 * c.opt (Wvirtual-move-assign): New.
2193
2194 * c.opt (Winherited-variadic-ctor): New.
2195
2196 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
2197
2198 PR c++/54427
2199 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2200
2201 2012-10-23 Joseph Myers <joseph@codesourcery.com>
2202
2203 * c-common.h (pch_cpp_save_state): Declare.
2204 * c-target.def (c_preinclude): New hook.
2205 * c-opts.c (done_preinclude): New.
2206 (push_command_line_include): Handle default preincluded header.
2207 (cb_file_change): Call pch_cpp_save_state when calling
2208 push_command_line_include.
2209 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2210 (pch_cpp_save_state): New.
2211 (pch_init): Call pch_cpp_save_state conditionally, instead of
2212 calling cpp_save_state.
2213
2214 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2215
2216 PR c/53063
2217 PR c/40989
2218 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2219 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2220 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2221 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2222 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2223 * c-opts.c (c_common_handle_option): Remove explicit handling from
2224 here.
2225 (c_common_post_options): Likewise.
2226
2227 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2228
2229 * c-ada-spec.c (LOCATION_COL): Delete.
2230 (compare_location): New function.
2231 (compare_node): Use it.
2232 (compare_comment): Likewise.
2233
2234 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2235
2236 PR c/53063
2237 PR c/40989
2238 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2239 * c-opts.c (c_common_handle_option): Do not set them here. Add
2240 comment.
2241 (c_common_post_options): Likewise.
2242
2243 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2244
2245 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2246 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2247 Remove POINTER_TYPE handling, add large unsigned handling and use
2248 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2249
2250 2012-10-12 Jakub Jelinek <jakub@redhat.com>
2251
2252 PR c/54381
2253 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2254 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2255 locs and array of 3 trees instead of just single loc and single
2256 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2257 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2258 For *cmp* builtins that take two sources strings report warnings
2259 about first and second source, not about destination and source.
2260
2261 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
2262
2263 PR c++/53055
2264 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2265
2266 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2267
2268 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2269 declaring something coming from another file.
2270
2271 2012-10-10 Arnaud Charlet <charlet@adacore.com>
2272
2273 PR ada/54845
2274 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2275
2276 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2277
2278 PR c++/54194
2279 * c-common.c (warn_about_parentheses): Add location_t parameter;
2280 use EXPR_LOC_OR_LOC.
2281 * c-common.h: Update declaration.
2282
2283 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
2284
2285 PR c++/54427
2286 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2287 more operations. Make error messages optional.
2288 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2289 (scalar_to_vector): Declare.
2290
2291 2012-10-08 Jason Merrill <jason@redhat.com>
2292
2293 * c-common.c (c_common_reswords): Add thread_local.
2294
2295 2012-10-08 Dodji Seketeli <dodji@redhat.com>
2296
2297 PR c++/53528 C++11 attribute support
2298 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2299 new functions.
2300 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2301 static function.
2302 (handle_aligned_attribute): In choose strictest alignment
2303 among many. Use new check_cxx_fundamental_alignment_constraints.
2304 (handle_transparent_union_attribute): In c++11 attribute syntax,
2305 don't look through typedefs.
2306
2307 2012-10-04 Arnaud Charlet <charlet@adacore.com>
2308
2309 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2310 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2311 out of dumpfile.h.
2312
2313 2012-09-25 Dehao Chen <dehao@google.com>
2314
2315 PR middle-end/54645
2316 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2317 map when read in the pch.
2318
2319 2012-09-18 Arnaud Charlet <charlet@adacore.com>
2320
2321 * c-ada-spec.c: Style fixes.
2322
2323 2012-09-18 Thomas Quinot <quinot@adacore.com>
2324
2325 * c.opt (-fada-spec-parent): Define new command line switch.
2326 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2327 is specified, generate binding spec as a child of the specified unit.
2328
2329 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2330 Manuel López-Ibáñez <manu@gcc.gnu.org>
2331
2332 PR c++/53210
2333 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2334
2335 2012-08-23 Arnaud Charlet <charlet@adacore.com>
2336
2337 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2338 for pointers, and add missing Convention C pragma.
2339 (print_ada_struct_decl): Add missing aliased keyword.
2340 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2341
2342 2012-08-17 Jakub Jelinek <jakub@redhat.com>
2343
2344 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2345 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2346 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2347 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2348 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2349
2350 2012-08-10 Richard Guenther <rguenther@suse.de>
2351
2352 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2353
2354 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2355
2356 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2357 instead of separate pp_newline and pp_flush.
2358 (print_c_tree): Likewise.
2359
2360 2012-07-26 Richard Henderson <rth@redhat.com>
2361
2362 * c-common.c (handle_hot_attribute): Allow labels.
2363 (handle_cold_attribute): Likewise.
2364
2365 2012-07-20 Jakub Jelinek <jakub@redhat.com>
2366
2367 PR c++/28656
2368 * c-common.c (check_function_nonnull): Handle multiple nonnull
2369 attributes properly.
2370
2371 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2372
2373 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2374 * c-ada-spec.c: Likewise.
2375 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2376
2377 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2378
2379 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2380 Remove code conditional on it.
2381
2382 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2383
2384 * c-gimplify.c: Do not include basic-block.h.
2385 * c-common.c: Do not include linfuncs.h.
2386
2387 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2388
2389 * c-common.h: Include tree.h.
2390
2391 2012-07-02 Jason Merrill <jason@redhat.com>
2392
2393 PR c++/53524
2394 * c-common.c (get_priority): Call default_conversion.
2395
2396 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
2397
2398 * c-pch.c (c_common_write_pch): Remove unused variables.
2399
2400 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2401
2402 * cppspec.c: Moved from gcc/ to here.
2403
2404 2012-06-27 Kai Tietz <ktietz@redhat.com>
2405
2406 PR preprocessor/37215
2407 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2408
2409 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2410
2411 * c-common.h (c_common_print_pch_checksum): Remove.
2412 * c-pch.c: Do not include output.h.
2413 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2414 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2415 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2416 (struct c_pch_header): Remove.
2417 (get_ident): Update gpch version.
2418 (pch_init): Do not print executable_checksum to asm_out_file.
2419 Do not fail if there is no asm_out_file to read back from. Set
2420 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2421 (c_common_write_pch): Verify that nothing was written to asm_out_file
2422 since pch_init was called. Do not write a c_pch_header, and do not
2423 copy from asm_out_file to the PCH.
2424 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2425 the content of asm_out_file from the PCH.
2426 (c_common_print_pch_checksum): Remove.
2427 * c-opts.c (c_common_init): Print out executable_checksum directly.
2428
2429 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2430
2431 * c-target.def (objc_declare_unresolved_class_reference,
2432 objc_declare_class_definition): Add new hooks.
2433
2434 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2435
2436 * c-lex.c: Do not include output.h.
2437 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2438 Remove uses of ASM_OUTPUT_IDENT.
2439
2440 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
2441
2442 PR c++/51033
2443 * c-common.h (c_build_vec_perm_expr): Move decl here.
2444 * c-common.c (c_build_vec_perm_expr): Move definition
2445 here.
2446
2447 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2448
2449 * c.opt (fconserve-space): Turn into a no-op.
2450
2451 2012-06-04 Sterling Augustine <saugustine@google.com>
2452
2453 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2454 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2455 both the start and end of the function.
2456
2457 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2458
2459 * c-common.c: Do not include output.h.
2460 * c-pragma.c: Likewise.
2461
2462 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2463
2464 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2465 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2466 (lang_decl_name): Handle namespace decls.
2467
2468 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2469
2470 * c-ada-spec.c: Do not include output.h.
2471 * c-semantics.c: Likewise.
2472
2473 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2474
2475 * c-common.c: Fix typo.
2476
2477 2012-05-29 Michael Matz <matz@suse.de>
2478
2479 * c-common.h (c_expand_decl): Remove prototype.
2480
2481 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2482
2483 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2484 * c-opts.c (c_common_handle_option): Remove code handling
2485 warn_missing_braces.
2486
2487 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2488
2489 PR c++/25137
2490 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2491 -Wmissing_braces.
2492
2493 2012-05-22 Dodji Seketeli <dodji@redhat.com>
2494
2495 PR c++/53322
2496 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2497
2498 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2499
2500 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2501 * c-opts.c (c_common_handle_option): Do not handle explicitly
2502 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2503
2504 2012-05-16 Dodji Seketeli <dodji@redhat.com>
2505
2506 PR preprocessor/7263
2507 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2508 to cpp_classify_number. For diagnostics, use the precise location
2509 instead of the global input_location.
2510
2511 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2512
2513 PR c++/11856
2514 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2515
2516 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2517
2518 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2519
2520 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2521
2522 PR 53063
2523 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2524 Wreorder): Use LangEnabledBy.
2525 * c-opts.c (c_common_handle_option): Do not enable them
2526 explicitly. Call lang-specific generated functions.
2527 (c_common_post_options): Do not set them here.
2528
2529 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2530
2531 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2532 Wmissing-field-initializers,Wmissing-parameter-type,
2533 Wold-style-declaration,Woverride-init): Use EnabledBy.
2534 * c-opts.c (c_common_post_options): Do not set here explicitly.
2535
2536 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2537
2538 PR 53063
2539 * c-opts.c (c_common_handle_option): Use handle_generated_option
2540 to enable sub-options.
2541
2542 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2543
2544 PR c++/53158
2545 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2546
2547 2012-05-10 Richard Guenther <rguenther@suse.de>
2548
2549 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2550 adjust commentary about TYPE_IS_SIZETYPE types.
2551
2552 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2553
2554 PR c++/53261
2555 * c-common.c (warn_logical_operator): Check that argument of
2556 integer_zerop is not NULL.
2557
2558 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2559
2560 PR c/43772
2561 * c-common.c (warn_logical_operator): Do not warn if either side
2562 is already true or false.
2563
2564 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2565
2566 PR c/51712
2567 * c-common.c (expr_original_type): New.
2568 (shorten_compare): Do not warn for enumeration types.
2569
2570 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2571
2572 * c.opt (fpermissive): Add Var(flag_permissive).
2573
2574 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
2575
2576 PR c++/51033
2577 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2578 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2579
2580 2012-04-30 Dodji Seketeli <dodji@redhat.com>
2581
2582 Add -Wvarargs option
2583 * c.opt (Wvarargs): Define new option.
2584
2585 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2586
2587 * c-common.c (check_function_arguments): Replace
2588 Wmissing-format-attribute with Wsuggest-attribute=format.
2589
2590 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2591
2592 * c.opt (Wsuggest-attribute=format): New. Alias of
2593 Wmissing-format-attribute.
2594 * c-format.c (decode_format_type): Replace
2595 Wmissing-format-attribute with Wsuggest-attribute=format.
2596 (check_function_format): Likewise.
2597
2598 2012-04-27 Ollie Wild <aaw@google.com>
2599
2600 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2601 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2602 * c.opt: Add Wliteral-suffix.
2603
2604 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2605
2606 PR c/44774
2607 * c.opt (Wpedantic): New.
2608 (pedantic): Alias Wpedantic.
2609 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2610 (c_common_post_options): Likewise.
2611 (sanitize_cpp_opts): Likewise.
2612 * c-lex.c (interpret_float): Likewise.
2613 * c-format.c (check_format_types): Likewise.
2614 * c-common.c (pointer_int_sum): Likewise.
2615 (c_sizeof_or_alignof_type): Likewise.
2616 (c_add_case_label): Likewise.
2617 (c_do_switch_warnings): Likewise.
2618 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2619
2620 2012-04-15 Jason Merrill <jason@redhat.com>
2621
2622 PR c++/52818
2623 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2624 (C_STD_NAME): Distinguish between C++98 and C++11.
2625
2626 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2627
2628 PR target/52624
2629 * c-common.h (uint16_type_node): Rename into...
2630 (c_uint16_type_node): ...this.
2631 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2632 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2633
2634 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2635
2636 * c-common.c (warn_if_unused_value): Move definition to here.
2637 * c-common.h (warn_if_unused_value): Move declaration to here.
2638
2639 2012-03-23 William Bader <williambader@hotmail.com>
2640
2641 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2642
2643 2012-03-20 Jason Merrill <jason@redhat.com>
2644
2645 * c-common.h (enum cxx_dialect): Add cxx1y.
2646 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2647 test.
2648 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2649 * c-opts.c (c_common_post_options): Likewise.
2650 (set_std_cxx1y): New.
2651 (c_common_handle_option): Call it.
2652 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2653
2654 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2655
2656 PR c++/14710
2657 * c.opt ([Wuseless-cast]): Add.
2658
2659 2012-03-16 Richard Guenther <rguenther@suse.de>
2660
2661 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2662
2663 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2664
2665 PR c++/44783
2666 * c.opt (ftemplate-backtrace-limit) Add.
2667
2668 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2669
2670 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2671 handling.
2672 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2673 (init_pragma): Don't register extern_prefix.
2674
2675 2012-03-12 Richard Guenther <rguenther@suse.de>
2676
2677 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2678 (builtin_type_for_size): Likewise.
2679
2680 2012-02-13 Jakub Jelinek <jakub@redhat.com>
2681
2682 PR c++/52215
2683 * c-common.c (sync_resolve_params): Don't decide whether to convert
2684 or not based on TYPE_SIZE comparison, convert whenever arg_type
2685 is unsigned INTEGER_TYPE.
2686
2687 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2688
2689 PR c/52118
2690 * c.opt ([Wunused-local-typedefs]): Fix description.
2691
2692 2012-01-24 Mike Stump <mikestump@comcast.net>
2693
2694 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2695 exactly.
2696
2697 2012-01-18 Richard Guenther <rguenther@suse.de>
2698
2699 * c-opts.c (c_common_post_options): Reset LTO flags if
2700 we are about to generate a PCH.
2701
2702 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2703
2704 PR c++/51777
2705 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2706 use pp_unsigned_wide_integer.
2707
2708 2012-01-10 Richard Guenther <rguenther@suse.de>
2709
2710 PR middle-end/51806
2711 * c-opts.c (c_common_handle_option): Move -Werror handling
2712 to language independent code.
2713
2714 2012-01-05 Richard Guenther <rguenther@suse.de>
2715
2716 PR middle-end/51764
2717 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2718 from common.opt.
2719
2720 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2721
2722 PR c++/51316
2723 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2724 of array types with an unknown bound.
2725
2726 2011-12-20 Joseph Myers <joseph@codesourcery.com>
2727
2728 * c-common.c (flag_isoc99): Update comment to refer to C11.
2729 (flag_isoc1x): Change to flag_isoc11.
2730 * c-common.h (flag_isoc99): Update comment to refer to C11.
2731 (flag_isoc1x): Change to flag_isoc11.
2732 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2733 C11.
2734 * c-opts.c (set_std_c1x): Change to set_std_c11.
2735 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2736 Call set_std_c11.
2737 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2738 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2739 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2740 standard.
2741 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2742 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2743 (std=gnu1x): Make alias of std=gnu11.
2744
2745 2011-12-19 Jason Merrill <jason@redhat.com>
2746
2747 PR c++/51228
2748 * c-common.c (handle_transparent_union_attribute): Check the first
2749 field if the type is complete.
2750
2751 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2752
2753 PR libstdc++/51365
2754 * c-common.c (RID_IS_FINAL): Add.
2755 * c-common.h (RID_IS_FINAL): Add.
2756
2757 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2758
2759 * c.opt (fgnu-runtime): Provide full description.
2760 (fnext-runtime): Likewise.
2761 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2762
2763 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
2764
2765 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2766 predefines in one place. Add LOCK_FREE predefines.
2767 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2768 new func.
2769
2770 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2771
2772 PR c/51256
2773 * c-common.c (get_atomic_generic_size): Check for various error
2774 conditions
2775 (resolve_overloaded_atomic_exchange,
2776 resolve_overloaded_atomic_compare_exchange,
2777 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2778 error_mark_node for error conditions.
2779
2780 2011-11-08 Richard Guenther <rguenther@suse.de>
2781
2782 PR middle-end/51010
2783 c-family/
2784
2785 2011-11-07 Richard Henderson <rth@redhat.com>
2786 Aldy Hernandez <aldyh@redhat.com>
2787 Torvald Riegel <triegel@redhat.com>
2788
2789 Merged from transactional-memory.
2790
2791 * c-common.c (handle_tm_wrap_attribute,
2792 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2793 (struct c_common_reswords): Added __transaction* keywords.
2794 (struct c_common_attribute_table): Added transaction* and tm_regparm
2795 attributes.
2796 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2797 masks.
2798 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2799 find_tm_attribute): Declare.
2800
2801 2011-11-07 Jason Merrill <jason@redhat.com>
2802
2803 PR c++/35688
2804 * c-common.c, c-common.h: Revert yesterday's changes.
2805
2806 2011-11-06 Jason Merrill <jason@redhat.com>
2807
2808 PR c++/35688
2809 * c-common.c (decl_has_visibility_attr): Split out from...
2810 (c_determine_visibility): ...here.
2811 * c-common.h: Declare it.
2812
2813 2011-11-06 Joseph Myers <joseph@codesourcery.com>
2814
2815 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2816 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2817 type.
2818 (check_user_alignment): New. Split out of
2819 handle_aligned_attribute. Disallow integer constants with
2820 noninteger types. Conditionally allow zero.
2821 (handle_aligned_attribute): Use check_user_alignment.
2822 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2823
2824 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
2825 Richard Henderson <rth@redhat.com>
2826
2827 Merged from cxx-mem-model.
2828
2829 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
2830 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
2831 parameters that are the same type size.
2832 (get_atomic_generic_size): New. Find size of generic
2833 atomic function parameters and do typechecking.
2834 (add_atomic_size_parameter): New. Insert size into parameter list.
2835 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2836 either __atomic_exchange_n or external library call.
2837 (resolve_overloaded_atomic_compare_exchange): Restructure
2838 __atomic_compare_exchange to either _n variant or external library call.
2839 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
2840 __atomic_load_n or an external library call.
2841 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2842 __atomic_store_n or an external library call.
2843 (resolve_overloaded_builtin): Handle new __atomic builtins.
2844
2845 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2846
2847 PR c++/50608
2848 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2849 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2850 <INDIRECT_REF>: Return the argument.
2851 <ARRAY_REF>: Remove special code for negative offset.
2852 Call fold_build_pointer_plus instead of size_binop.
2853 (fold_offsetof): Remove STOP_REF argument and adjust.
2854 * c-common.h (fold_offsetof_1): Declare.
2855 (fold_offsetof): Remove STOP_REF argument.
2856
2857 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2858
2859 PR c++/50810
2860 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2861 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2862 Wnarrowing for C++0x and C++98.
2863 * c.opt ([Wnarrowing]): Update.
2864
2865 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2866
2867 PR c++/44277
2868 * c.opt: Add Wzero-as-null-pointer-constant.
2869
2870 2011-10-31 Jason Merrill <jason@redhat.com>
2871
2872 * c.opt (-fdeduce-init-list): Off by default.
2873
2874 PR c++/50920
2875 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2876 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2877 and -Wc++11-compat.
2878 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2879
2880 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2881
2882 PR c++/30066
2883 * c.opt (fvisibility-inlines-hidden): Description change.
2884
2885 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2886
2887 Implement C++11 user-defined literals.
2888 * c-common.c (build_userdef_literal): New.
2889 * c-common.def: New tree code.
2890 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2891 * c-lex.c (interpret_float): Add suffix parm.
2892 (c_lex_with_flags): Build literal tokens.
2893
2894 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2895
2896 PR c++/50841
2897 Revert:
2898 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2899
2900 PR c++/50810
2901 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2902 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2903 Wnarrowing for C++0x and C++98.
2904 * c.opt ([Wnarrowing]): Update.
2905
2906 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2907
2908 PR c++/50810
2909 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2910 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2911 Wnarrowing for C++0x and C++98.
2912 * c.opt ([Wnarrowing]): Update.
2913
2914 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2915
2916 PR c++/45385
2917 * c-common.c (conversion_warning): Remove code looking for
2918 artificial operands.
2919
2920 2011-10-18 Dodji Seketeli <dodji@redhat.com>
2921
2922 PR bootstrap/50760
2923 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2924 !NO_IMPLICIT_EXTERN_C.
2925
2926 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
2927
2928 * c-common.c (c_common_reswords): Add __bases,
2929 __direct_bases.
2930 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2931
2932 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2933
2934 PR c++/50757
2935 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2936
2937 2011-10-15 Tom Tromey <tromey@redhat.com>
2938 Dodji Seketeli <dodji@redhat.com>
2939
2940 * c.opt (fdebug-cpp): New option.
2941 * c-opts.c (c_common_handle_option): Handle the option.
2942 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2943 output stream in parameter. Factorized from ...
2944 (maybe_print_line): ... this. Dump location debug information when
2945 -fdebug-cpp is in effect.
2946 (print_line_1): New static function. Takes an output stream in
2947 parameter. Factorized from ...
2948 (print_line): ... here. Dump location information when -fdebug-cpp
2949 is in effect.
2950 (scan_translation_unit): Dump location information when
2951 -fdebug-cpp is in effect.
2952
2953 2011-10-15 Tom Tromey <tromey@redhat.com>
2954 Dodji Seketeli <dodji@redhat.com>
2955
2956 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2957 without argument.
2958 * c-opts.c (c_common_handle_option)<case
2959 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2960 cases. Handle -ftrack-macro-expansion with and without argument.
2961
2962 2011-10-15 Tom Tromey <tromey@redhat.com>
2963 Dodji Seketeli <dodji@redhat.com>
2964
2965 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2966 (print_line, cb_define, do_line_change): Adjust to avoid touching
2967 the internals of struct line_map. Use the public API instead.
2968 * c-pch.c (c_common_read_pch): Likewise.
2969 * c-lex.c (fe_file_change): Likewise.
2970
2971 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2972
2973 PR c++/17212
2974 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2975
2976 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2977
2978 PR c++/33067
2979 * c-pretty-print.c (pp_c_floating_constant): Output
2980 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2981
2982 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2983
2984 * c-common.c (def_builtin_1): Delete old interface with two
2985 parallel arrays to hold standard builtin declarations, and replace
2986 it with a function based interface that can support creating
2987 builtins on the fly in the future. Change all uses, and poison
2988 the old names. Make sure 0 is not a legitimate builtin index.
2989 * c-omp.c (c_finish_omp_barrier): Ditto.
2990 (c_finish_omp_taskwait): Ditto.
2991 (c_finish_omp_flush): Ditto.
2992
2993 2011-10-11 Tristan Gingold <gingold@adacore.com>
2994
2995 * c.opt: (fallow-parameterless-variadic-functions): New.
2996
2997 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2998
2999 PR c++/33255 - Support -Wunused-local-typedefs warning
3000 * c-common.h (struct c_language_function::local_typedefs): New
3001 field.
3002 (record_locally_defined_typedef, maybe_record_typedef_use)
3003 (maybe_warn_unused_local_typedefs): Declare new functions.
3004 * c-common.c (record_locally_defined_typedef)
3005 (maybe_record_typedef_use)
3006 (maybe_warn_unused_local_typedefs): Define new functions.
3007 * c.opt: Declare new -Wunused-local-typedefs flag.
3008
3009 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3010
3011 PR middle-end/50266
3012 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3013 computations.
3014
3015 2011-09-05 Richard Guenther <rguenther@suse.de>
3016
3017 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3018 of integer_minus_one_node for empty array upper bounds.
3019
3020 2011-08-28 Dodji Seketeli <dodji@redhat.com>
3021
3022 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3023 it's the first time it's being called on this main TU.
3024
3025 2011-08-24 Richard Guenther <rguenther@suse.de>
3026
3027 PR c/49396
3028 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3029
3030 2011-08-22 Gabriel Charette <gchare@google.com>
3031
3032 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3033 defined in cpp_init_builtins and c_cpp_builtins.
3034
3035 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3036
3037 * c-common.c (c_common_reswords): Add __builtin_complex.
3038 * c-common.h (RID_BUILTIN_COMPLEX): New.
3039
3040 2011-08-18 Joseph Myers <joseph@codesourcery.com>
3041
3042 * c-common.c (c_common_reswords): Add _Noreturn.
3043 (keyword_is_function_specifier): Handle RID_NORETURN.
3044 * c-common.h (RID_NORETURN): New.
3045
3046 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3047
3048 * c-common.c (unsafe_conversion_p): New function. Check if it is
3049 unsafe to convert an expression to the type.
3050 (conversion_warning): Adjust, use unsafe_conversion_p.
3051 * c-common.h (unsafe_conversion_p): New function declaration.
3052
3053 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3054
3055 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3056 (c_finish_omp_taskyield): New prototype.
3057 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3058 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3059 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3060 or RHS1 have side-effects, evaluate those too in the right spot,
3061 if it is a decl and LHS is also a decl, error out if they
3062 aren't the same.
3063 (c_finish_omp_taskyield): New function.
3064 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3065 * c-pragma.c (omp_pragmas): Add taskyield.
3066 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3067 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3068 PRAGMA_OMP_CLAUSE_MERGEABLE.
3069
3070 2011-07-25 Dodji Seketeli <dodji@redhat.com>
3071
3072 * c-common.h (set_underlying_type): Remove parm name from
3073 declaration.
3074
3075 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
3076
3077 * c-pretty-print.h: Search c-common.h in c-family.
3078
3079 2011-07-22 Jason Merrill <jason@redhat.com>
3080
3081 PR c++/49793
3082 * c.opt (Wnarrowing): New.
3083
3084 PR c++/30112
3085 * c-common.h: Declare c_linkage_bindings.
3086 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3087
3088 PR c++/49813
3089 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3090 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3091 as flag_isoc99 for 'restrict'.
3092 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3093
3094 2011-07-21 Ian Lance Taylor <iant@google.com>
3095
3096 PR middle-end/49705
3097 * c-common.c (c_disable_warnings): New static function.
3098 (c_enable_warnings): New static function.
3099 (c_fully_fold_internal): Change local unused_p to bool. Call
3100 c_disable_warnings and c_enable_warnings rather than change
3101 c_inhibit_evaluation_warnings.
3102
3103 2011-07-20 Jason Merrill <jason@redhat.com>
3104
3105 PR c++/6709 (DR 743)
3106 PR c++/42603 (DR 950)
3107 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3108 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3109 (CPP_DECLTYPE): New.
3110 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3111
3112 2011-07-19 Richard Guenther <rguenther@suse.de>
3113
3114 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3115 * c-omp.c (c_finish_omp_for): Likewise.
3116
3117 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3118
3119 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3120 body on the next line.
3121
3122 2011-07-08 Jason Merrill <jason@redhat.com>
3123
3124 PR c++/45437
3125 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3126
3127 PR c++/49673
3128 * c-common.c (c_apply_type_quals_to_decl): Don't check
3129 TYPE_NEEDS_CONSTRUCTING.
3130
3131 2011-07-06 Richard Guenther <rguenther@suse.de>
3132
3133 * c-common.c (c_common_nodes_and_builtins):
3134 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3135
3136 2011-07-05 Richard Guenther <rguenther@suse.de>
3137
3138 * c-common.c (c_common_nodes_and_builtins): Build all common
3139 tree nodes first.
3140
3141 2011-06-27 Jakub Jelinek <jakub@redhat.com>
3142
3143 * c-common.h (c_tree_chain_next): New static inline function.
3144
3145 * c-common.c (check_builtin_function_arguments): Handle
3146 BUILT_IN_ASSUME_ALIGNED.
3147
3148 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3149
3150 * c-common.c: Add sync_ or SYNC__ to builtin names.
3151 * c-omp.c: Add sync_ or SYNC__ to builtin names.
3152
3153 2011-06-20 Pierre Vittet <piervit@pvittet.com>
3154
3155 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3156 handler.
3157 (gen_pragma_handler): New union.
3158 (internal_pragma_handler): New type.
3159 (c_register_pragma_with_data)
3160 (c_register_pragma_with_expansion_and_data): New functions.
3161
3162 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3163 (c_register_pragma, c_register_pragma_with_expansion)
3164 (c_invoke_pragma_handler): Changed to work with
3165 internal_pragma_handler.
3166 (c_register_pragma_with_data)
3167 (c_register_pragma_with_expansion_and_data): New functions.
3168
3169 2011-06-14 Joseph Myers <joseph@codesourcery.com>
3170
3171 * c-common.c: Include common/common-target.h.
3172 (handle_section_attribute): Use
3173 targetm_common.have_named_sections.
3174 * c-cppbuiltin.c: Include common/common-target.h.
3175 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3176
3177 2011-06-10 Richard Guenther <rguenther@suse.de>
3178
3179 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3180 to print a IDENTIFIER_NODE.
3181
3182 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3183 Joseph Myers <joseph@codesourcery.com>
3184
3185 * c.opt (fbuilding-libgcc): New option.
3186 * c-cppbuiltin.c (c_cpp_builtins): Define
3187 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3188
3189 2011-06-07 Jason Merrill <jason@redhat.com>
3190
3191 * c-common.c (max_tinst_depth): Lower default to 900.
3192
3193 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3194
3195 2011-06-07 Richard Guenther <rguenther@suse.de>
3196
3197 * c-common.c (c_common_nodes_and_builtins): Do not set
3198 size_type_node or call set_sizetype.
3199
3200 2011-06-07 Dodji Seketeli <dodji@redhat.com>
3201
3202 PR debug/49130
3203 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3204 type when using pointer comparison to compare types.
3205
3206 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3207
3208 * c.opt: Add -Wdelete-non-virtual-dtor.
3209 * c-opts.c (c_common_handle_option): Include it in -Wall.
3210
3211 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3212
3213 PR bootstrap/49190
3214
3215 Revert:
3216 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3217
3218 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3219 not tree_common.
3220
3221 2011-05-27 Jakub Jelinek <jakub@redhat.com>
3222
3223 PR c++/49165
3224 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3225 C++ don't call c_common_truthvalue_conversion on void type arms.
3226
3227 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3228
3229 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3230 (stmt_list_stack): Define.
3231 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3232 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3233
3234 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3235
3236 * c-common.c (warning_candidate_p): Check for BLOCKs.
3237
3238 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3239
3240 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3241 not tree_common.
3242
3243 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3244
3245 * c-common.c (def_fn_type): Remove extra va_end.
3246
3247 2011-05-23 Jason Merrill <jason@redhat.com>
3248
3249 PR c++/48106
3250 * c-common.c (c_common_get_narrower): New.
3251 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3252
3253 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3254
3255 * c-common.h (check_function_arguments): Tweak prototype of
3256 check_function_arguments.
3257 * c-common.c (check_function_arguments): Likewise. Adjust
3258 calls to check_function_nonnull, check_function_format, and
3259 check_function_sentinel.
3260 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3261 separate attributes and typelist arguments. Use
3262 FOREACH_FUNCTION_ARGS to iterate over argument types.
3263
3264 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3265
3266 * c-common.c (c_common_reswords): Reorder.
3267 * c-common.h (rid): Likewise.
3268
3269 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3270
3271 * c-common.c (def_fn_type): Don't call build_function_type, call
3272 build_function_type_array or build_varargs_function_type_array
3273 instead.
3274 (c_common_nodes_and_builtins): Likewise.
3275
3276 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3277
3278 * c-common.c (c_add_case_label): Omit the loc argument to
3279 build_case_label.
3280 * c-common.h (build_case_label): Remove.
3281 * c-semantics.c (build_case_label): Remove.
3282
3283 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3284
3285 * c-objc.h (objc_start_method_definition): Update prototype.
3286 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3287
3288 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3289
3290 * c-common.c (check_main_parameter_types): Reindent. Don't use
3291 TYPE_ARG_TYPES directly.
3292 (handle_nonnull_attribute): Likewise.
3293 (sync_resolve_params): Likewise.
3294 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3295 to check_format_string.
3296 (handle_format_attribute): Likewise.
3297 (check_format_string): Take a function type to examine instead of
3298 a type list. Use a function_arg_iterator to step through argument
3299 types.
3300
3301 2011-05-04 Richard Guenther <rguenther@suse.de>
3302
3303 * c-common.c (fix_string_type): Use size_int for index type bounds.
3304 (start_fname_decls): Do not pass NULL to build_int_cst.
3305 (c_init_attributes): Likewise.
3306 * c-lex.c (c_lex_with_flags): Likewise.
3307
3308 2011-04-27 Jason Merrill <jason@redhat.com>
3309
3310 * c-common.c (make_tree_vector_from_list): New.
3311 * c-common.h: Declare it.
3312
3313 2011-04-26 Richard Guenther <rguenther@suse.de>
3314
3315 PR preprocessor/48248
3316 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3317 for output size with -P.
3318
3319 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3320
3321 * c-common.c (struct c_common_resword): Add __underlying_type.
3322 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3323
3324 2011-04-20 Jim Meyering <meyering@redhat.com>
3325
3326 * c-format.c (init_dollar_format_checking): Remove useless
3327 if-before-free.
3328
3329 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3330
3331 * c-objc.h (objc_get_interface_ivars): Removed.
3332 (objc_detect_field_duplicates): New.
3333 * stub-objc.c: Likewise.
3334
3335 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3336
3337 * stub-objc.c (objc_declare_protocols): Renamed to
3338 objc_declare_protocol.
3339 * c-objc.h: Likewise.
3340
3341 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3342
3343 * stub-objc.c (objc_declare_class): Updated argument name.
3344
3345 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3346
3347 * c-common.h (c_common_init_ts): Declare.
3348 * c-common.c (c_common_init_ts): Define.
3349
3350 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3351
3352 * c-objc.h (objc_build_message_expr): Updated prototype.
3353 * stub-objc.c (objc_build_message_expr): Likewise.
3354
3355 2011-04-12 Martin Jambor <mjambor@suse.cz>
3356
3357 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3358 of cgraph_node.
3359
3360 2011-04-11 Richard Guenther <rguenther@suse.de>
3361
3362 * c-common.c (complete_array_type): Build a range type of
3363 proper type.
3364
3365 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3366
3367 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3368 (handle_type_generic_attribute): Likewise.
3369
3370 2011-04-07 Jason Merrill <jason@redhat.com>
3371
3372 PR c++/48450
3373 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3374 conversion from C++0x scoped enum.
3375
3376 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3377
3378 * c-target-def.h: New file.
3379 * c-target.def: New file.
3380 * c-target.h: New file.
3381 * c-common.c (targetcm): Don't define here.
3382 * c-common.h (default_handle_c_option): Declare.
3383 * c-format.c: Include c-target.h instead of target.h.
3384 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3385 include tm.h.
3386 (default_handle_c_option): Move from targhooks.c.
3387
3388 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3389
3390 PR preprocessor/48248
3391 * c-ppoutput.c (print): Add src_file field.
3392 (init_pp_output): Initialize it.
3393 (maybe_print_line): Don't optimize by adding up to 8 newlines
3394 if map->to_file and print.src_file are different file.
3395 (print_line): Update print.src_file.
3396
3397 2011-03-25 Kai Tietz <ktietz@redhat.com>
3398
3399 * c-ada-spec.c (compare_comment): Use filename_cmp
3400 instead of strcmp for filename.
3401
3402 2011-03-25 Jeff Law <law@redhat.com>
3403
3404 * c-family/c-common.c (def_fn_type): Add missing va_end.
3405
3406 2011-03-25 Jason Merrill <jason@redhat.com>
3407
3408 * c.opt: Add -std=c++03.
3409
3410 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3411
3412 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3413
3414 2011-03-17 Kai Tietz
3415
3416 PR target/12171
3417 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3418 Display allowed attributes for function pointer types.
3419 (pp_c_attributes_display): New function to display
3420 attributes having affects_type_identity flag set to true.
3421 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3422
3423 * c-common.c (c_common_attribute_table):
3424 Add new element.
3425 (c_common_format_attribute_table): Likewise.
3426
3427 2011-03-18 Jason Merrill <jason@redhat.com>
3428
3429 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3430 * c-common.h: Don't declare it here.
3431 * c-common.c: Or define it here.
3432 * c-opts.c (c_common_handle_option): Or set it here.
3433
3434 PR c++/35315
3435 * c-common.c (handle_transparent_union_attribute): Don't
3436 make a duplicate type in C++.
3437
3438 2011-03-15 Jason Merrill <jason@redhat.com>
3439
3440 * c-common.c (max_constexpr_depth): New.
3441 * c-common.h: Declare it.
3442 * c-opts.c (c_common_handle_option): Set it.
3443 * c.opt (fconstexpr-depth): New option.
3444
3445 2011-03-11 Jason Merrill <jason@redhat.com>
3446
3447 * c-common.c (attribute_takes_identifier_p): Add missing const.
3448
3449 PR c++/46803
3450 * c-common.c (attribute_takes_identifier_p): Assume that an
3451 unknown attribute takes an identifier.
3452
3453 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3454
3455 PR c/47786
3456 * c-common.c (c_type_hash): Call list_length instead of iterating
3457 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3458
3459 2011-02-19 Jakub Jelinek <jakub@redhat.com>
3460
3461 PR c/47809
3462 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3463
3464 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3465
3466 * c.opt (fobjc-abi-version=) New.
3467 (fobjc-nilcheck): New.
3468
3469 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3470
3471 PR c++/46890
3472 * c-common.h (keyword_is_decl_specifier): Declare.
3473 * c-common.c (keyword_is_decl_specifier): Define.
3474 (keyword_is_function_specifier): New function.
3475
3476 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3477
3478 PR c/47473
3479 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3480 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3481 REAL_TYPE.
3482
3483 2011-01-26 Arnaud Charlet <charlet@adacore.com>
3484
3485 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3486
3487 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3488
3489 PR pch/47430
3490 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3491 after init_c_lex if pch_file is set.
3492
3493 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3494
3495 PR c++/43601
3496 * c.opt (-fkeep-inline-dllexport): New switch.
3497
3498 2011-01-12 Richard Guenther <rguenther@suse.de>
3499
3500 PR middle-end/32511
3501 * c-common.c (handle_weak_attribute): Warn instead of error
3502 on declaring an inline function weak.
3503
3504 2011-01-05 Tom Tromey <tromey@redhat.com>
3505
3506 * c-common.h (lvalue_error): Update.
3507 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3508 not error.
3509
3510 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
3511
3512 PR objc/47075
3513 * c-objc.h (objc_finish_message_expr): Added argument to
3514 prototype.
3515
3516 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3517
3518 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3519 Use prototype_p.
3520
3521 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3522
3523 * c-objc.h (objc_maybe_warn_exceptions): New.
3524 * stub-objc.c (objc_maybe_warn_exceptions): New.
3525
3526 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3527
3528 * c-common.h (readonly_error): Declare.
3529 * c-common.c (readonly_error): Define.
3530
3531 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3532
3533 * c-common.h (invalid_indirection_error): Declare.
3534 * c-common.c (invalid_indirection_error): Define.
3535
3536 2010-12-03 Richard Guenther <rguenther@suse.de>
3537
3538 PR c/46745
3539 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3540 (pp_c_unary_expression): Likewise.
3541 (pp_c_expression): Likewise.
3542
3543 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3544
3545 * c-common.h (objc_finish_function): New.
3546 (objc_non_volatilized_type): Removed.
3547 (objc_type_quals_match): Removed.
3548 * stub-objc.c (objc_finish_function): New.
3549 (objc_non_volatilized_type): Removed.
3550 (objc_type_quals_match): Removed.
3551
3552 2010-11-30 Joseph Myers <joseph@codesourcery.com>
3553
3554 * c-common.h (parse_optimize_options): Declare.
3555 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3556 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3557
3558 2010-11-29 Joseph Myers <joseph@codesourcery.com>
3559
3560 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3561 GET_ENVIRONMENT.
3562 * c-pch.c (O_BINARY): Don't define here.
3563 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3564
3565 2010-11-25 Joseph Myers <joseph@codesourcery.com>
3566
3567 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3568 targetm.except_unwind_info.
3569
3570 2010-11-23 Joseph Myers <joseph@codesourcery.com>
3571
3572 * c-opts.c (c_common_handle_option): Pass location to
3573 set_struct_debug_option.
3574
3575 2010-11-23 Joseph Myers <joseph@codesourcery.com>
3576
3577 * c-common.c (visibility_options): Move from ../opts.c.
3578 * c-common.h (struct visibility_flags, visibility_options):
3579 Declare here.
3580 * c-opts.c (finish_options): Rename to c_finish_options.
3581 (c_common_init): Update call to finish_options.
3582
3583 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3584
3585 PR objc/34033
3586 * c-lex.c (lex_string): Check that each string in an Objective-C
3587 string concat sequence starts with either one or zero '@', and
3588 that there are no spurious '@' signs at the end.
3589
3590 2010-11-20 Joseph Myers <joseph@codesourcery.com>
3591
3592 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3593 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3594 HANDLE_PRAGMA_VISIBILITY.
3595 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3596 HANDLE_PRAGMA_VISIBILITY): Don't define.
3597 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3598
3599 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3600
3601 PR c++/16189
3602 PR c++/36888
3603 PR c++/45331
3604 * c-common.h (keyword_begins_type_specifier): Declare.
3605 (keyword_is_storage_class_specifier): Declare.
3606 (keyword_is_type_qualifier): Declare.
3607 * c-common.c (keyword_begins_type_specifier): New function.
3608 (keyword_is_storage_class_specifier): New function.
3609 (keyword_is_type_qualifier): Declare.
3610
3611 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3612
3613 PR c/46547
3614 * c-common.c (in_late_binary_op): Define.
3615 (c_common_truthvalue_conversion): Check in_late_binary_op before
3616 calling c_save_expr.
3617 * c-common.h (in_late_binary_op): Declare.
3618
3619 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3620
3621 * c-opts.c (c_common_handle_option): Update calls to
3622 set_struct_debug_option.
3623
3624 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3625
3626 * c-common.h (objc_declare_protocols): Added additional argument.
3627 * stub-objc.c (objc_declare_protocol): Same change.
3628
3629 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3630
3631 PR c/33193
3632 * c-common.h (build_real_imag_expr): Declare.
3633 * c-semantics.c (build_real_imag_expr): Define.
3634
3635 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3636
3637 * c-opts.c (c_common_parse_file): Take no arguments.
3638 * c-common.h (c_common_parse_file): Update prototype.
3639
3640 2010-11-16 Jakub Jelinek <jakub@redhat.com>
3641
3642 PR c++/46401
3643 * c-common.c (warning_candidate_p): Don't track non-const calls
3644 or STRING_CSTs.
3645
3646 2010-11-15 Ian Lance Taylor <iant@google.com>
3647
3648 * c-lex.c (init_c_lex): Set macro debug callbacks if
3649 flag_dump_go_spec is set.
3650
3651 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3652
3653 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3654 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3655
3656 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3657
3658 PR preprocessor/45038
3659 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3660 dialects.
3661
3662 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3663
3664 * c-common.h (c_family_lang_mask): Declare.
3665 * c-opts.c (c_family_lang_mask): Make extern.
3666 * c-pragma.c (handle_pragma_diagnostic): Use
3667 control_warning_option.
3668
3669 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3670
3671 * c-common.c (parse_optimize_options): Update call to
3672 decode_options.
3673 * c-common.h (c_common_handle_option): Update prototype.
3674 * c-opts.c (c_common_handle_option): Take location_t parameter and
3675 pass it to other functions.
3676
3677 2010-11-11 Joseph Myers <joseph@codesourcery.com>
3678
3679 * c-opts.c (warning_as_error_callback): Remove.
3680 (c_common_initialize_diagnostics): Don't call
3681 register_warning_as_error_callback.
3682 (c_common_handle_option): Handle -Werror=normalized= here.
3683
3684 2010-11-10 Joseph Myers <joseph@codesourcery.com>
3685
3686 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3687 in diagnostic.
3688 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3689 letter.
3690 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3691 Remove trailing '.' from diagnostics.
3692 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3693
3694 2010-11-10 Joseph Myers <joseph@codesourcery.com>
3695
3696 * c-common.c (parse_optimize_options): Pass global_dc to
3697 decode_options.
3698 * c-opts.c (c_common_handle_option): Pass &global_options to
3699 set_Wstrict_aliasing.
3700 * c.opt (v): Don't mark Common or document here.
3701
3702 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3703
3704 PR target/44981
3705 * c-format.c (format_type): New type gcc_objc_string_format_type.
3706 (valid_stringptr_type_p): New.
3707 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
3708 (check_format_string): Pass expected type, use
3709 valid_stringptr_type_p (), check that the format string types are
3710 consistent with the format specification.
3711 (decode_format_attr): Warn if NSString is used outside objective-c.
3712 (format_types_orig): Add NSString.
3713 (format_name): New.
3714 (format_flags): New.
3715 (check_format_arg): Handle format strings requiring an external parser.
3716 first_target_format_type: New variable.
3717 (handle_format_attribute): Set up first_target_format_type, pass the
3718 expected format arg string type to check_format_string().
3719 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3720 * stub-objc.c (objc_string_ref_type_p): New.
3721 (objc_check_format_arg): New.
3722
3723 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3724
3725 Fixed using the Objective-C 2.0 dot-syntax with class names.
3726 * c-common.h (objc_build_class_component_ref): New.
3727 * stub-objc.c (objc_build_class_component_ref): New.
3728
3729 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3730
3731 * c.opt (Wproperty-assign-default): New option.
3732
3733 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3734
3735 Implemented -fobjc-std=objc1 flag.
3736 * c.opt (fobjc-std=objc1): New option.
3737
3738 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3739
3740 Implemented format and noreturn attributes for Objective-C methods.
3741 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3742 attribute for Objective-C methods.
3743
3744 2010-10-31 Jason Merrill <jason@redhat.com>
3745
3746 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3747 EXPR_LOC_OR_HERE.
3748
3749 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3750
3751 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3752 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3753 (objc_add_property_declaration): Removed arguments for copies and
3754 ivar.
3755 (objc_build_getter_call): Renamed to
3756 objc_maybe_build_component_ref.
3757 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3758 (objc_is_property_ref): New.
3759 * c-common.c (c_common_reswords): Removed copies and ivar.
3760 * stub-objc.c (objc_add_property_declaration): Removed arguments
3761 for copies and ivar.
3762 (objc_build_getter_call): Renamed to
3763 objc_maybe_build_component_ref.
3764 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3765 (objc_is_property_ref): New.
3766
3767 2010-10-29 Arnaud Charlet <charlet@adacore.com>
3768 Matthew Gingell <gingell@adacore.com>
3769
3770 * c-ada-spec.c (separate_class_package): New function.
3771 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3772 name of their enclosing package.
3773 (print_ada_declaration): Use separate_class_package.
3774
3775 2010-10-27 Jason Merrill <jason@redhat.com>
3776
3777 * c-common.c (c_common_reswords): Add __is_literal_type.
3778 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3779
3780 * c-common.c (check_case_value): Remove special C++ code.
3781
3782 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3783
3784 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3785 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3786 and RID_LAST_PATTR.
3787 (objc_add_property_declaration): Added additional arguments.
3788 (objc_property_attribute_kind): Removed.
3789 (objc_set_property_attr): Removed.
3790 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3791 copy and nonatomic.
3792 * stub-objc.c (objc_add_property_declaration): Added additional
3793 arguments.
3794 (objc_set_property_attr): Removed.
3795
3796 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3797
3798 * c-common.h (objc_add_property_variable): Renamed to
3799 objc_add_property_declaration. Added location argument.
3800 * stub-objc.c (objc_add_property_variable): Same change.
3801
3802 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3803
3804 * c-common.h (objc_maybe_printable_name): New.
3805 * stub-objc.c (objc_maybe_printable_name): New.
3806
3807 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3808 Andrew Pinski <pinskia@gmail.com>
3809
3810 * c-common.h (c_common_mark_addressable_vec): Declare.
3811 * c-common.c (c_common_mark_addressable_vec): New function.
3812
3813 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3814
3815 * c-common.h (objc_set_method_type): Removed.
3816 (objc_add_method_declaration): Added boolean argument.
3817 (objc_start_method_definition): Same change.
3818 (objc_build_method_signature): Same change.
3819 * stub-objc.c (objc_set_method_type): Removed.
3820 (objc_add_method_declaration): Added boolean argument.
3821 (objc_start_method_definition): Same change.
3822 (objc_build_method_signature): Same change.
3823
3824 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3825
3826 * c-common.h (finish_file): Removed.
3827 (objc_write_global_declarations): New.
3828 * c-opts.c (c_common_parse_file): Do not call finish_file.
3829 * stub-objc.c (objc_write_global_declarations): New.
3830
3831 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3832
3833 Implemented parsing @synthesize and @dynamic for
3834 Objective-C/Objective-C++.
3835 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3836 (objc_add_synthesize_declaration): New.
3837 (objc_add_dynamic_declaration): New.
3838 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3839 * stub-objc.c (objc_add_synthesize_declaration): New.
3840 (objc_add_dynamic_declaration): New.
3841
3842 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3843
3844 PR target/46041
3845 * c-cppbuiltin.c (mode_has_fma): Move function here from
3846 builtins.c. Don't use the fma optab, instead just use the
3847 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3848 using -save-temps.
3849
3850 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3851
3852 Merge from 'apple/trunk' branch on FSF servers.
3853
3854 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3855
3856 Radar 4330422
3857 * c-common.h (objc_non_volatilized_type): New declaration
3858 * stub-objc.c (objc_non_volatilized_type): New stub.
3859
3860 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3861
3862 Merge from 'apple/trunk' branch on FSF servers.
3863
3864 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3865
3866 Radar 4133425
3867 * c-common.h (objc_diagnose_private_ivar): New decl.
3868 * stub-objc.c (objc_diagnose_private_ivar): New stub.
3869
3870 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3871
3872 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3873 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3874 (objc_ivar_visibility_kind): New enum.
3875 (objc_set_visibility): Adjust prototype to use visibility enum.
3876 * stub-objc.c (objc_set_visibility): Adjust stub to use
3877 visibility enum.
3878
3879 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3880
3881 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3882 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3883 has the appropriate fma builtins.
3884 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3885
3886 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3887
3888 merge from FSF apple 'trunk' branch.
3889 2006 Fariborz Jahanian <fjahanian@apple.com>
3890
3891 Radars 4436866, 4505126, 4506903, 4517826
3892 * c-common.c (c_common_resword): Define @property and its attributes.
3893 * c-common.h: Define property attribute enum entries.
3894 (OBJC_IS_PATTR_KEYWORD): New.
3895 (objc_property_attribute_kind): New enum.
3896 Declare objc_set_property_attr (), objc_add_property_variable (),
3897 objc_build_getter_call () and objc_build_setter_call ().
3898 * stub-objc.c (objc_set_property_attr): New stub.
3899 (objc_add_property_variable): Likewise.
3900 (objc_build_getter_call): Likewise.
3901 (objc_build_setter_call) Likewise.
3902
3903 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3904
3905 merge from FSF apple 'trunk' branch.
3906 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3907
3908 Radar 3803157 (method attributes)
3909 * c-common.c (handle_deprecated_attribute): Recognize
3910 objc methods as valid declarations.
3911 * c-common.h: Declare objc_method_decl ().
3912 * stub-objc.c (objc_method_decl): New stub.
3913
3914 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3915
3916 * c-common.c (parse_optimize_options): Call
3917 decode_cmdline_options_to_array_default_mask before
3918 decode_options. Update arguments to decode_options.
3919 * c-common.h (c_common_init_options_struct): Declare.
3920 * c-opts.c (c_common_init_options_struct): New. Split out from
3921 c_common_init_options.
3922
3923 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3924
3925 Implemented fast enumeration for Objective-C.
3926 * c-common.h (objc_finish_foreach_loop): New.
3927 * stub-objc.c (objc_finish_foreach_loop): New.
3928
3929 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3930
3931 * c-common.h (struct diagnostic_context): Don't declare here.
3932 (c_common_initialize_diagnostics): Declare using
3933 diagnostic_context typedef.
3934 * c-opts.c (c_common_handle_option): Pass global_dc to
3935 handle_generated_option.
3936
3937 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3938
3939 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3940 handle_generated_option.
3941
3942 2010-10-03 Ian Lance Taylor <iant@google.com>
3943
3944 * c.opt (-fplan9-extensions): New option.
3945
3946 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3947
3948 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3949 Remove.
3950 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3951 of duplicating code.
3952
3953 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3954
3955 * c-common.c: Add two new entries for @optional
3956 and @required keywords.
3957
3958 merge from FSF 'apple/trunk' branch.
3959 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3960
3961 Radar 4386773
3962 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3963 objective-c keywords.
3964 (objc_set_method_opt): New declaration.
3965 * stub-objc.c (objc_set_method_opt): New stub.
3966
3967 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3968
3969 * c-common.c (handle_optimize_attribute): Pass &global_options to
3970 cl_optimization_save and cl_optimization_restore.
3971 * c-opts.c (c_common_handle_option): Pass &global_options to
3972 handle_generated_option.
3973 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3974 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3975 &global_options to cl_optimization_restore.
3976
3977 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3978
3979 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3980 Objective-C/Objective-C++ keywords.
3981
3982 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3983
3984 Merge from 'apple/trunk' branch on FSF servers.
3985
3986 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3987
3988 Radar 4281748
3989 * c-common.h (objc_check_global_decl): New declaration.
3990 * stub-objc.c (objc_check_global_decl): New stub.
3991
3992 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3993
3994 * c.opt: Don't use VarExists.
3995
3996 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3997
3998 * c-common.c (c_cpp_error): Update names of diagnostic_context
3999 members.
4000 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4001 cl_optimization members.
4002 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4003 sanitize_cpp_opts, finish_options): Update names of cpp_options
4004 members.
4005
4006 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4007
4008 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4009 (objc_is_reserved_word): Removed.
4010 * c-common.c: Updated comments.
4011 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4012 objc_is_reserved_word.
4013 * stub-objc.c (objc_is_reserved_word): Removed.
4014
4015 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4016
4017 * c-common.h (objc_add_method_declaration): Adjust prototype to
4018 include attributes.
4019 (objc_start_method_definition): Likewise.
4020 (objc_build_keyword_decl): Likewise.
4021 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4022 (objc_start_method_definition): Likewise.
4023 (objc_build_keyword_decl): Likewise.
4024
4025 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4026
4027 * c-common.h (objc_start_class_interface): Adjust prototype.
4028 (objc_start_category_interface): Likewise.
4029 (objc_start_protocol): Likewise.
4030 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4031 (objc_start_class_interface): Likewise.
4032 (objc_start_category_interface): Likewise.
4033
4034 2010-09-27 Ian Lance Taylor <iant@google.com>
4035
4036 * c-common.c (c_common_attribute_table): Add no_split_stack.
4037 (handle_no_split_stack_attribute): New static function.
4038
4039 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4040
4041 Merge from 'apple/trunk' branch on FSF servers.
4042
4043 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4044
4045 Radar 4229905
4046 * c-common.h (objc_have_common_type): New declaration.
4047 * stub-objc.c (objc_have_common_type): New stub.
4048
4049 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4050
4051 Radar 4154928
4052 * c-common.h (objc_common_type): New prototype.
4053 * stub-objc.c (objc_common_type): New stub.
4054
4055 2010-09-24 Jan Hubicka <jh@suse.cz>
4056
4057 * c-common.c (handle_leaf_attribute): New function.
4058 (struct attribute_spec c_common_att): Add leaf.
4059
4060 2010-09-22 Joseph Myers <joseph@codesourcery.com>
4061
4062 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4063 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4064 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4065 -include-barrier, -include-directory, -include-directory=,
4066 -include-directory-after, -include-directory-after=,
4067 -include-prefix, -include-prefix=, -include-with-prefix,
4068 -include-with-prefix=, -include-with-prefix-after,
4069 -include-with-prefix-after=, -include-with-prefix-before,
4070 -include-with-prefix-before=, -no-integrated-cpp,
4071 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4072 -output=, -pedantic, -pedantic-errors, -preprocess,
4073 -print-missing-file-dependencies, -trace-includes, -traditional,
4074 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4075 -user-dependencies, -verbose, -write-dependencies,
4076 -write-user-dependencies, no-integrated-cpp, traditional): New.
4077
4078 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4079
4080 PR objc/23710
4081 * c-common.h (objc_start_method_definition): Return bool instead
4082 of void.
4083 * stub-objc.c (objc_start_method_definition): Return bool instead
4084 of void.
4085
4086 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4087
4088 PR objc/25965
4089 * c-common.h (objc_get_interface_ivars): New declaration.
4090 * stub-objc.c (objc_get_interface_ivars): New stub.
4091
4092 2010-09-15 Ian Lance Taylor <iant@google.com>
4093
4094 * c-common.c (parse_optimize_options): Do not capitalize warning
4095 messages. Remove period at end of warning message.
4096
4097 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4098
4099 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4100 (handle_alias_attribute): ... here.
4101 (handle_ifunc_attribute): New.
4102
4103 2010-09-06 Mark Mitchell <mark@codesourcery.com>
4104
4105 * c-common.h (do_warn_double_promotion): Declare.
4106 * c-common.c (do_warn_double_promotion): Define.
4107
4108 2010-09-05 Mark Mitchell <mark@codesourcery.com>
4109
4110 * c.opt (Wdouble-promotion): New.
4111
4112 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4113
4114 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4115 fvtable-thunks, fxref): Mark no longer supported in help text.
4116
4117 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4118
4119 * c.opt (Wimport, fall-virtual, falt-external-templates,
4120 fdefault-inline, fenum-int-equiv, fexternal-templates,
4121 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4122 fname-mangling-version-, fnew-abi, fnonnull-objects,
4123 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4124 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4125 applicable.
4126 (fhandle-exceptions): Mark with Alias and Warn.
4127 * c-opts.c (c_common_handle_option): Don't handle options marked
4128 as ignored.
4129
4130 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4131
4132 * c.opt (Wcomments, Werror-implicit-function-declaration,
4133 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4134 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4135 aliases.
4136 * c-common.c (option_codes): Use OPT_Wcomment instead of
4137 OPT_Wcomments.
4138 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4139 Don't handle options marked as aliases.
4140
4141 2010-08-25 Richard Guenther <rguenther@suse.de>
4142
4143 * c-common.c (c_common_get_alias_set): Remove special
4144 handling for pointers.
4145
4146 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4147
4148 * c-common.c: Use FOR_EACH_VEC_ELT.
4149 * c-gimplify.c: Likewise.
4150 * c-pragma.c: Likewise.
4151
4152 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4153
4154 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4155 RejectDriver.
4156 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4157 RejectDriver.
4158 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4159 instead of OPT_MDX and OPT_MMDX.
4160
4161 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4162
4163 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4164
4165 2010-08-12 Joseph Myers <joseph@codesourcery.com>
4166
4167 * c.opt (MD, MMD): Change to MDX and MMDX.
4168 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4169
4170 2010-08-11 Joseph Myers <joseph@codesourcery.com>
4171
4172 * c-opts.c (c_common_handle_option): Call handle_generated_option
4173 instead of handle_option.
4174
4175 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4176
4177 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4178 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4179
4180 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4181
4182 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4183 (pending_redefine_extname): Change type to a VEC.
4184 (add_to_renaming_pragma_list): Update for new type of
4185 pending_redefine_extname.
4186 (maybe_apply_renaming_pragma): Likewise.
4187
4188 2010-08-04 Arnaud Charlet <charlet@adacore.com>
4189
4190 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4191 visited.
4192 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4193 decide whether a type has already been declared/seen.
4194 Do not go to the original type.
4195 (dump_nested_types): New parameter forward.
4196 Generate forward declaration if needed and mark type as visited.
4197 (print_ada_declaration): Call dump_nested_types if not already done.
4198 Mark types as visited.
4199
4200 2010-08-03 Joseph Myers <joseph@codesourcery.com>
4201
4202 * c.opt (-print-pch-checksum): Remove option.
4203 * c-opts.c (c_common_handle_option): Don't handle
4204 OPT_print_pch_checksum.
4205
4206 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4207
4208 * c-common.h (c_common_handle_option): Update prototype and return
4209 value type.
4210 * c-opts.c (c_common_handle_option): Update prototype and return
4211 value type. Update calls to handle_option and
4212 enable_warning_as_error.
4213
4214 2010-07-27 Jakub Jelinek <jakub@redhat.com>
4215
4216 PR c/45079
4217 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4218
4219 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4220
4221 * c-common.h (c_common_missing_argument): Remove.
4222 * c-opts.c (c_common_missing_argument): Remove.
4223 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4224 idirafter, imacros, include, isysroot, isystem, iquote): Add
4225 MissingArgError.
4226 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4227
4228 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4229
4230 * c-common.h (c_common_option_lang_mask,
4231 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4232 New.
4233 (c_common_init_options): Update prototype.
4234 * c-opts.c (c_common_option_lang_mask): New.
4235 (c_common_initialize_diagnostics): Split out of
4236 c_common_init_options.
4237 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4238 New.
4239 (c_common_init_options): Update prototype. Use decoded options in
4240 search for -lang-asm.
4241
4242 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4243
4244 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4245 * c-format.c: Likewise.
4246
4247 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4248
4249 * c-common.h: Include diagnostic-core.h. Error if already
4250 included.
4251 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4252
4253 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4254
4255 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4256 Do not include expr.h
4257 (vector_mode_valid_p): Move here.
4258
4259 2010-06-21 DJ Delorie <dj@redhat.com>
4260
4261 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4262 allow these pragmas anywhere.
4263
4264 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4265
4266 PR bootstrap/44509
4267 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4268 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4269 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4270 ggc_strdup instead of xstrdup.
4271
4272 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4273
4274 * c-cppbuiltin.c: Include cpp-id-data.h.
4275 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4276 (lazy_hex_fp_value): New function.
4277 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4278
4279 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4280
4281 * c-gimplify.c: Do not include tree-flow.h
4282
4283 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4284
4285 PR other/44034
4286 * c-common.c: Rename targetm member:
4287 targetm.enum_va_list -> targetm.enum_va_list_p
4288
4289 2010-06-28 Anatoly Sokolov <aesok@post.ru>
4290
4291 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4292
4293 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4294
4295 * c-cppbuiltin.c: Do not include except.h.
4296
4297 2010-06-24 Andi Kleen <ak@linux.intel.com>
4298
4299 * c-common.c (warn_for_omitted_condop): New.
4300 * c-common.h (warn_for_omitted_condop): Add prototype.
4301
4302 2010-06-21 Joseph Myers <joseph@codesourcery.com>
4303
4304 * c.opt (lang-objc): Remove.
4305 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4306
4307 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4308
4309 * c-opts.c: Include "tm_p.h".
4310
4311 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4312
4313 * c-common.c (parse_optimize_options): Update call to
4314 decode_options.
4315
4316 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4317
4318 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4319 new type of types_used_by_cur_var_decl.
4320
4321 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4322
4323 PR bootstrap/44512
4324 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4325 for C++ standard compliance.
4326
4327 2010-06-16 Jason Merrill <jason@redhat.com>
4328
4329 * c.opt: Add -Wnoexcept.
4330
4331 2010-06-16 Richard Guenther <rguenther@suse.de>
4332
4333 PR c/44555
4334 * c-common.c (c_common_truthvalue_conversion): Remove
4335 premature and wrong optimization concering ADDR_EXPRs.
4336
4337 2010-06-15 Arnaud Charlet <charlet@adacore.com>
4338
4339 * c-ada-spec.c (dump_sloc): Remove column info.
4340 (is_simple_enum): New function.
4341 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4342 enum types when relevant.
4343
4344 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4345
4346 * c-common.c (conversion_warning): Warn at expression
4347 location.
4348
4349 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4350
4351 * c-opts.c (c_common_handle_option): Don't handle
4352 OPT_fshow_column.
4353
4354 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4355
4356 * c-pragma.c (push_alignment): Use typed GC allocation.
4357 (handle_pragma_push_options): Likewise.
4358
4359 * c-common.c (parse_optimize_options): Likewise.
4360
4361 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4362 option.
4363
4364 2010-06-07 Joseph Myers <joseph@codesourcery.com>
4365
4366 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4367 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4368 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4369 flag_signed_bitfields, warn_strict_null_sentinel,
4370 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4371 flag_gen_declaration, flag_no_gnu_keywords,
4372 flag_implement_inlines, flag_implicit_templates,
4373 flag_implicit_inline_templates, flag_optional_diags,
4374 flag_elide_constructors, flag_default_inline, flag_rtti,
4375 flag_conserve_space, flag_access_control, flag_check_new,
4376 flag_new_for_scope, flag_weak, flag_working_directory,
4377 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4378 flag_enforce_eh_specs, flag_threadsafe_statics,
4379 flag_pretty_templates): Remove.
4380 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4381 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4382 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4383 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4384 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4385 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4386 flag_no_gnu_keywords, flag_implement_inlines,
4387 flag_implicit_templates, flag_implicit_inline_templates,
4388 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4389 flag_rtti, flag_conserve_space, flag_access_control,
4390 flag_check_new, flag_new_for_scope, flag_weak,
4391 flag_working_directory, flag_use_cxa_atexit,
4392 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4393 flag_threadsafe_statics, flag_pretty_templates,
4394 warn_strict_null_sentinel): Remove.
4395 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4396 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4397 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4398 fimplicit-inline-templates, fimplicit-templates,
4399 flax-vector-conversions, fms-extensions, fnil-receivers,
4400 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4401 frtti, fshort-double, fshort-enums, fshort-wchar,
4402 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4403 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4404 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4405 gen-decls, undef): Use Var.
4406 (fdefault-inline, foptional-diags): Document as doing nothing.
4407 * c-opts.c (c_common_handle_option): Remove cases for options now
4408 using Var. Mark ignored options as such.
4409
4410 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4411
4412 * c-common.c: Moved to here from parent directory.
4413 * c-common.def: Likewise.
4414 * c-common.h: Likewise.
4415 * c-cppbuiltin.c: Likewise.
4416 * c-dump.c: Likewise.
4417 * c-format.c: Likewise.
4418 * c-format.h : Likewise.
4419 * c-gimplify.c: Likewise.
4420 * c-lex.c: Likewise.
4421 * c-omp.c: Likewise.
4422 * c.opt: Likewise.
4423 * c-opts.c: Likewise.
4424 * c-pch.c: Likewise.
4425 * c-ppoutput.c: Likewise.
4426 * c-pragma.c: Likewise.
4427 * c-pragma.h: Likewise.
4428 * c-pretty-print.c: Likewise.
4429 * c-pretty-print.h: Likewise.
4430 * c-semantics.c: Likewise.
4431 * stub-objc.c: Likewise.
4432
4433 * c-common.c: Include gt-c-family-c-common.h.
4434 * c-pragma.c: Include gt-c-family-c-pragma.h.
4435 \f
4436 Copyright (C) 2010-2014 Free Software Foundation, Inc.
4437
4438 Copying and distribution of this file, with or without modification,
4439 are permitted in any medium without royalty provided the copyright
4440 notice and this notice are preserved.