]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR c/60139 (Imprecise column number for -pedantic on non-computable initializer...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
45484dcf
MP
12014-04-25 Marek Polacek <polacek@redhat.com>
2
3 PR c/18079
4 * c-common.c (handle_noinline_attribute): Warn if the attribute
5 conflicts with always_inline attribute.
6 (handle_always_inline_attribute): Warn if the attribute conflicts
7 with noinline attribute.
8
38e514c0
MP
92014-04-25 Marek Polacek <polacek@redhat.com>
10
11 PR c/60156
12 * c-common.c (check_main_parameter_types): Warn about variadic main.
13
44875f92
MS
142014-04-24 Mike Stump <mikestump@comcast.net>
15
16 * c.opt (Wshadow-ivar): Default to on.
17
dcaaa5a0
DP
182014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19
20 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
21
c07d7c02
MP
222014-04-23 Marek Polacek <polacek@redhat.com>
23
24 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
25
1c33c9b7
JJ
262014-04-22 Jakub Jelinek <jakub@redhat.com>
27
28 PR sanitizer/60275
29 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
30 if flag_sanitize_undefined_trap_on_error.
31 (ubsan_instrument_division, ubsan_instrument_shift,
32 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
33 if !flag_sanitize_recover.
34
793c625f
MG
352014-04-22 Marc Glisse <marc.glisse@inria.fr>
36
37 PR libstdc++/43622
38 * c-common.c (registered_builtin_types): Make non-static.
39 * c-common.h (registered_builtin_types): Declare.
40
b0f1bf36
RB
412014-04-14 Richard Biener <rguenther@suse.de>
42 Marc Glisse <marc.glisse@inria.fr>
43
44 PR c/60819
45 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
46 apply may-alias the scalar pointer type when applicable.
47
3b07fa4a
IZ
482014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
49
50 PR middle-end/60467
51 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
52 as possible argument for Cilk_spawn.
53
cbbd2b1c
TB
542014-04-11 Tobias Burnus <burnus@net-b.de>
55
56 PR c/60194
57 * c.opt (Wformat-signedness): Add
58 * c-format.c(check_format_types): Use it.
59
6415bd5d
JM
602014-04-11 Jason Merrill <jason@redhat.com>
61
62 PR c++/57926
63 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
64 default_conversion for an array argument.
65
6525783a
MP
662014-04-08 Marek Polacek <polacek@redhat.com>
67
68 PR sanitizer/60745
69 * c-ubsan.c: Include asan.h.
70 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
71
880a467b
NS
722014-04-03 Nathan Sidwell <nathan@codesourcery.com>
73
74 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
75
7b59ff2d
MP
762014-04-02 Marek Polacek <polacek@redhat.com>
77
78 * c-common.h (c_expand_expr): Remove declaration.
79
8edbfaa6
JJ
802014-03-28 Jakub Jelinek <jakub@redhat.com>
81
82 PR c++/60689
83 * c-common.c (add_atomic_size_parameter): When creating new
84 params vector, push the size argument first.
85
07d72e1d
JJ
862014-03-26 Jakub Jelinek <jakub@redhat.com>
87
88 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
89 ubsan_instrument_vla, ubsan_instrument_return): Adjust
90 ubsan_create_data callers.
91
b35e0fa0
JJ
922014-03-22 Jakub Jelinek <jakub@redhat.com>
93
94 PR debug/60603
95 * c-opts.c (c_finish_options): Restore cb_file_change call to
96 <built-in>.
97
39a1ebb3
JJ
982014-03-13 Jakub Jelinek <jakub@redhat.com>
99
100 PR middle-end/36282
101 * c-pragma.c (apply_pragma_weak): Only look at
102 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
103 DECL_ASSEMBLER_NAME_SET_P (decl).
104 (maybe_apply_pending_pragma_weaks): Exit early if
105 vec_safe_is_empty (pending_weaks) rather than only when
106 !pending_weaks.
107 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
108 set assembler name back to NULL afterwards.
109
a07f6ed2
JM
1102014-03-11 Jason Merrill <jason@redhat.com>
111
112 * c.opt: Add -std=gnu++14.
113
75b107f5
IB
1142014-03-11 Ian Bolton <ian.bolton@arm.com>
115
116 * c-opts.c (c_common_post_options): Don't override
117 -ffp-contract=fast if unsafe-math-optimizations is on.
118
f42c637e
PM
1192014-03-08 Paulo Matos <paulo@matos-sorge.com>
120
121 * c.opt: Enable LTO FE for fshort-double.
122
70e24808
JM
1232014-03-07 Jason Merrill <jason@redhat.com>
124
125 * c.opt: Add -std=c++14.
126
3af9c5e9
MP
1272014-03-06 Marek Polacek <polacek@redhat.com>
128
129 PR c/60197
130 * cilk.c (contains_cilk_spawn_stmt): New function.
131 (contains_cilk_spawn_stmt_walker): Likewise.
132 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
133 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
134
b3bdf019
JJ
1352014-03-03 Jakub Jelinek <jakub@redhat.com>
136
137 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
138 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
139 even when flag_preprocess_only.
140
ca7e759d
JM
1412014-02-26 Jason Merrill <jason@redhat.com>
142
143 PR c++/59231
144 PR c++/11586
145 * c-common.c (shorten_compare): Don't check
146 c_inhibit_evaluation_warnings.
147
28e41874
JJ
1482014-02-19 Jakub Jelinek <jakub@redhat.com>
149
cca615af
JJ
150 PR c/37743
151 * c-common.c (c_common_nodes_and_builtins): When initializing
152 c_uint{16,32,64}_type_node, also set corresponding
153 uint{16,32,64}_type_node to the same value.
154
28e41874
JJ
155 PR c++/60267
156 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
157 for PRAGMA_IVDEP if flag_preprocess_only.
158
c2bf53a1
JJ
1592014-02-12 Jakub Jelinek <jakub@redhat.com>
160
161 PR c/60101
162 * c-common.c (merge_tlist): If copy is true, call new_tlist,
163 if false, add ADD itself, rather than vice versa.
164 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
165 copy. For SAVE_EXPR, only call merge_tlist once.
166
8fcbce72
JJ
1672014-02-08 Jakub Jelinek <jakub@redhat.com>
168
169 PR middle-end/60092
170 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
171 and tree_to_uhwi.
172 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
173 functions.
174 (c_common_attribute_table): Add alloc_align and assume_aligned
175 attributes.
176
0a756a3f
MP
1772014-02-06 Marek Polacek <polacek@redhat.com>
178
179 PR c/60087
180 * c-common.c (warn_for_sign_compare): Call warning_at with location
181 instead of warning.
182
7ec4847a
MP
1832014-02-05 Marek Polacek <polacek@redhat.com>
184
185 PR c/53123
186 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
187 statement.
188
66f20604
MP
1892014-02-04 Marek Polacek <polacek@redhat.com>
190
191 PR c/60036
192 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
193 SAVE_EXPR.
194
5d77fb19
MG
1952014-02-03 Marc Glisse <marc.glisse@inria.fr>
196
197 PR c++/53017
198 PR c++/59211
199 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
200 handle_vector_size_attribute, handle_nonnull_attribute): Call
201 default_conversion on the attribute argument.
202 (handle_nonnull_attribute): Increment the argument number.
203
81e5eca8
MP
2042014-01-31 Marek Polacek <polacek@redhat.com>
205
206 PR c/59963
207 * c-common.c (add_atomic_size_parameter): Pass vNULL to
208 build_function_call_vec.
209 (resolve_overloaded_builtin): Likewise.
210 * c-common.h (build_function_call_vec): Adjust declaration.
211
68fca595
MP
2122014-01-30 Marek Polacek <polacek@redhat.com>
213
214 PR c/59940
215 * c-common.h (unsafe_conversion_p): Adjust declaration.
216 (warnings_for_convert_and_check): Likewise.
217 (convert_and_check): Likewise.
218 * c-common.c (unsafe_conversion_p): Add location parameter. Call
219 expansion_point_location_if_in_system_header on it.
220 (warnings_for_convert_and_check): Add location parameter. Call
221 expansion_point_location_if_in_system_header on it. Use it.
222 (convert_and_check): Add location parameter. Use it.
223 (conversion_warning): Likewise.
224 (c_add_case_label): Adjust convert_and_check calls.
225 (scalar_to_vector): Adjust unsafe_conversion_p calls.
226
b72271b9
BI
2272014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
228
229 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
230 flag_cilkplus.
231 * c-pragma.c (init_pragma): Likewise.
232 * c.opt: Likewise.
233
393e8e8b
MP
2342014-01-23 Marek Polacek <polacek@redhat.com>
235
236 PR c/59846
237 * c-common.c (shorten_compare): Add location_t parameter.
238 * c-common.h (shorten_binary_op): Adjust declaration.
239
f04dda30
MP
2402014-01-23 Marek Polacek <polacek@redhat.com>
241
242 PR c/58346
243 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
244 * c-common.h: Declare it.
245
621955cb
EB
2462014-01-20 Eric Botcazou <ebotcazou@adacore.com>
247
248 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
249 * c-ada-spec.c (dump_ads): Likewise.
250 (cpp_check): Likewise.
251 (dump_ada_specs): Likewise.
252
2532014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
254
255 PR c++/49718
256 * c-common.c (handle_no_instrument_function_attribute): Allow
257 no_instrument_function attribute in class member
258 definition/declaration.
259
241f845a
JJ
2602014-01-15 Jakub Jelinek <jakub@redhat.com>
261
262 PR c/58943
263 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
264 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
265 being COMPOUND_EXPR.
266 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
267 operand a SAVE_EXPR and second MODIFY_EXPR.
268
e83b8e2e
JJ
2692014-01-09 Jakub Jelinek <jakub@redhat.com>
270
271 PR target/58115
272 * c-pch.c (c_common_write_pch): Call
273 prepare_target_option_nodes_for_pch.
274
23a5b65a
RS
2752014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
276
277 Update copyright years
278
f9030485
RS
2792014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
280
281 * array-notation-common.c, c-cilkplus.c: Use the standard form for
282 the copyright notice.
283
f2aa696b
EB
2842013-12-28 Eric Botcazou <ebotcazou@adacore.com>
285
286 * c-ada-spec.c (print_constructor): New function.
287 (print_destructor): Retrieve the origin of the destructor.
288 (print_ada_declaration): Revamp handling of constructors/destructors.
289
1f26ac87
JM
2902013-12-23 Stuart Hastings <stuart@apple.com>
291 Bill Maddox <maddox@google.com>
292 Jason Merrill <jason@redhat.com>
293
294 * c.opt: Add -fdeclone-ctor-dtor.
295 * c-opts.c (c_common_post_options): Default to on iff -Os.
296
41958c28
BI
2972013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
298
299 * c-common.c (c_common_attribute_table): Added "cilk simd function"
300 attribute.
301 * c-pragma.h (enum pragma_cilk_clause): Remove.
302 (enum pragma_omp_clause): Added the following fields:
303 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
304 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
305 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
306 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
307 PRAGMA_CILK_CLAUSE_UNIFORM.
308
309
12893402
BI
3102013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
311
312 * cilk.c (cilk_outline): Made this function non-static.
313 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
314 (create_cilk_wrapper): Added a new parameter: a function pointer.
315 (c_install_body_w_frame_cleanup): Remove
316 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
317 * c-common.h (cilk_outline): New prototype.
318 (gimplify_cilk_spawn): Removed two parameters.
319 (cilk_install_body_with_frame_cleanup): New prototype.
320 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
321 CILK_SPAWN_STMT case.
322
085b42ed
BS
3232013-12-11 Bernd Schmidt <bernds@codesourcery.com>
324
2ce064c3
BS
325 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
326
085b42ed
BS
327 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
328 (int_array_type_node): Remove.
329 * c-common.c (c_common_nodes_and_builtins): Don't build it.
330
9e36c9ed
MP
3312013-12-05 Marek Polacek <polacek@redhat.com>
332
333 PR c/52023
334 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
335 [ADJUST_FIELD_ALIGN].
336
296674db
JM
3372013-12-04 Joseph Myers <joseph@codesourcery.com>
338
339 PR c/52023
340 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
341 and check field alignment if set.
342 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
343 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
344
31e071ae
MP
3452013-12-04 Jakub Jelinek <jakub@redhat.com>
346 Marek Polacek <polacek@redhat.com>
347
348 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
349 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
350
d7947e19
L
3512013-11-29 H.J. Lu <hongjiu.lu@intel.com>
352
353 PR c/59309
354 * cilk.c (gimplify_cilk_spawn): Properly handle function without
355 arguments.
356
fad7652e
JJ
3572013-11-29 Jakub Jelinek <jakub@redhat.com>
358
359 PR c/59280
360 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
361 goto invalid. If it is error_mark_node, don't issue further
362 diagnostics.
363
8b5e1202
SO
3642013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
365
366 * c.opt (Wopenmp-simd): New.
367
0a508bb6
JJ
3682013-11-22 Jakub Jelinek <jakub@redhat.com>
369
370 * c-ubsan.h (ubsan_instrument_return): New prototype.
371 * c-ubsan.c (ubsan_instrument_return): New function.
372
2fb9a547
AM
3732013-11-22 Andrew MacLeod <amacleod@redhat.com>
374
375 * c-common.c: Add required include files from gimple.h.
376 * c-gimplify.c: Likewise
377 * cilk.c: Likewise
378
8400e75e
DM
3792013-11-22 David Malcolm <dmalcolm@redhat.com>
380
381 * c-common.c (unsafe_conversion_p): Remove use of
382 EXPR_LOC_OR_HERE macro.
383 (conversion_warning): Likewise.
384 (warnings_for_convert_and_check): Likewise.
385 (warn_for_collisions_1): Likewise.
386 (shorten_compare): Likewise, and remove use of in_system_header
387 macro, using the location from the former.
388 * c-lex.c (dump_one_header): Remove use of input_filename macro.
389 (cb_def_pragma): Remove use of in_system_header macro.
390 (lex_string): Likewise.
391 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
392
eb1ce453
KZ
3932013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
394 Mike Stump <mikestump@comcast.net>
395 Richard Sandiford <rdsandiford@googlemail.com>
396
397 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
398 instead of TREE_INT_CST_LOW, in cases where there is a protecting
399 tree_fits_shwi_p or tree_fits_uhwi_p.
400 (dump_generic_ada_node): Likewise.
401 * c-format.c (check_format_arg): Likewise.
402 * c-pretty-print.c (pp_c_integer_constant): Likewise.
403
6b3b8c27
KZ
4042013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
405
406 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
407
49b0aa18
JC
4082013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
409
410 PR c/53001
411 * c-common.c (unsafe_conversion_p): Make this function
412 return an enumeration with more detail.
413 (conversion_warning): Use the new return type of
414 unsafe_conversion_p to separately warn either about conversions
415 that lower floating point number precision or about the other
416 kinds of conversions.
417 * c-common.h (enum conversion_safety): New enumeration.
418 (unsafe_conversion_p): switching return type to
419 conversion_safety enumeration.
420 * c.opt: Adding new warning -Wfloat-conversion and
421 enabling it with -Wconversion.
422
b826515a
BS
4232013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
424
425 * c-opts.c: Include plugin.h.
426 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
427
b9a55b13
MP
4282013-11-19 Marek Polacek <polacek@redhat.com>
429
430 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
431 call.
432 (ubsan_instrument_shift): Likewise.
433 (ubsan_instrument_vla): Likewise.
434
7d362f6c
RS
4352013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
436
437 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
438 cast to unsigned type.
439
386b1f1f
RS
4402013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
441
442 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
443 tree_low_cst.
444 (complete_array_type): Update comment to refer to tree_to_[su]hwi
445 rather than tree_low_cst.
446
ae7e9ddd
RS
4472013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
448
449 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
450 tree_to_uhwi throughout.
451
9439e9a1
RS
4522013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
453
454 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
455 tree_low_cst (..., 0) with tree_to_shwi throughout.
456
cc269bb6
RS
4572013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
458
459 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
460 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
461
9541ffee
RS
4622013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
463
464 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
465 host_integerp (..., 0) with tree_fits_shwi_p throughout.
466
c02065fc
AH
4672013-11-15 Aldy Hernandez <aldyh@redhat.com>
468
469 * c-cilkplus.c: New file.
470 * c-common.c (readonly_error): Add location argument.
471 * c-common.h (readonly_error): Same.
472 (c_finish_cilk_clauses): Protoize.
473 (c_check_cilk_loop): Same.
474 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
475 Do not fail on error_mark_node.
476 Abstract increment canonicalization to here...
477 (c_omp_for_incr_canonicalize_ptr): New.
478 c-pragma.c (init_pragma): Register "simd" pragma.
479 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
480 (enum pragma_cilk_clause): New.
481
9cc65f15
RS
4822013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
483
484 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
485 wchar_type and host_integerp checks.
486
18f429e2
AM
4872013-11-14 Andrew MacLeod <amacleod@redhat.com>
488
489 * c-common.c: Likewise.
490 * c-gimplify.c: Likewise.
491 * cilk.c: Likewise.
492
d8a2d370
DN
4932013-11-14 Diego Novillo <dnovillo@google.com>
494
495 * c-common.c: Include fold-const.h.
496 Include stor-layout.h.
497 Include calls.h.
498 Include stringpool.h.
499 Include attribs.h.
500 Include varasm.h.
501 Include trans-mem.h.
502 * c-cppbuiltin.c: Include stor-layout.h.
503 Include stringpool.h.
504 * c-format.c: Include stringpool.h.
505 * c-lex.c: Include stringpool.h.
506 Include stor-layout.h.
507 * c-pragma.c: Include stringpool.h.
508 Include attribs.h.
509 Include varasm.h.
510 Include gcc-symtab.h.
511 * c-pretty-print.c: Include stor-layout.h.
512 Include attribs.h.
513 * cilk.c: Include stringpool.h.
514 Include calls.h.
515
38b7bc7f
JM
5162013-11-13 Joseph Myers <joseph@codesourcery.com>
517
518 * c-common.h (enum rid): Add RID_AUTO_TYPE.
519 * c-common.c (c_common_reswords): Add __auto_type.
520 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
521
45b0be94
AM
5222013-11-12 Andrew MacLeod <amacleod@redhat.com>
523
18f429e2
AM
524 * c-common.c: Include gimplify.h.
525 * c-gimplify.c: Likewise.
526 * cilk.c: Likewise.
527 * c-omp.c: Include gimple-expr.h instead of gimple.h.
528 * c-ubsan.c: Don't include gimple.h.
45b0be94 529
582d9b50
JM
5302013-11-12 Joseph Myers <joseph@codesourcery.com>
531
532 * c-common.c (c_common_reswords): Add _Thread_local.
533
6b28e197
JM
5342013-11-09 Joseph Myers <joseph@codesourcery.com>
535
536 * c-common.c (atomic_size_supported_p): New function.
537 (resolve_overloaded_atomic_exchange)
538 (resolve_overloaded_atomic_compare_exchange)
539 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
540 Use it instead of comparing size with a local list of sizes.
541
267bac10
JM
5422013-11-07 Andrew MacLeod <amacleod@redhat.com>
543 Joseph Myers <joseph@codesourcery.com>
544
545 * c-common.h (enum rid): Add RID_ATOMIC.
546 * c-common.c (c_common_reswords): Add _Atomic.
547 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
548 (keyword_is_type_qualifier): Accept RID_ATOMIC.
549 * c-format.c (check_format_types): Check for extra _Atomic
550 qualifiers in format argument.
551 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
552 (pp_c_type_qualifier_list): Mention _Atomic in comment.
553
5157b91e
TB
5542013-11-06 Tobias Burnus <burnus@net-b.de>
555
556 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
557
6dbe0958
JM
5582013-11-06 Joseph Myers <joseph@codesourcery.com>
559
560 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
561 standards modes.
562 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
563 to mean lack of IEEE 754 support.
564
e8ff5196
TB
5652013-11-05 Tobias Burnus <burnus@net-b.de>
566
567 * c.opt (-Wdate-time): New option
568 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
569
254a0760
JM
5702013-11-05 Joseph Myers <joseph@codesourcery.com>
571
572 * c-cppbuiltin.c (cpp_iec_559_value): Test
573 flag_excess_precision_cmdline not flag_excess_precision.
574
6d7f7e0a
TB
5752013-11-05 Tobias Burnus <burnus@net-b.de>
576
577 * c.opt (fopenmp-simd): New option.
578 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
579 (omp_pragmas): ... this new struct.
580 (c_pp_lookup_pragma): Also walk omp_pragmas.
581 (init_pragma): Init pragmas for -fopenmp-simd.
582
55a7f02f
MP
5832013-11-04 Marek Polacek <polacek@redhat.com>
584
585 PR c++/58979
586 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
587
9193fb05
JM
5882013-11-04 Joseph Myers <joseph@codesourcery.com>
589
590 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
591 New functions.
592 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
593
94159ecf
EB
5942013-11-04 Eric Botcazou <ebotcazou@adacore.com>
595
596 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
597 (dump_ada_specs): Adjust prototype of second callback.
598 * c-ada-spec.c (cpp_check): New global variable.
599 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
600 (print_generic_ada_decl): Likewise.
601 (has_static_fields): Change return type to bool and add guard.
602 (has_nontrivial_methods): New predicate.
603 (is_tagged_type): Change return type to bool.
604 (separate_class_package): Call has_nontrivial_methods.
605 (pp_ada_tree_identifier): Minor tweaks.
606 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
607 (dump_ada_array_domains): Likewise.
608 (dump_ada_array_type): Likewise.
609 (dump_template_types): Remove cpp_check parameter and do not pass it to
610 dump_generic_ada_node.
611 (dump_ada_template): Likewise.
612 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
613 recursively.
614 (print_ada_methods): Change return type to integer. Remove cpp_check
615 parameter and do not pass it down.
616 (dump_nested_types): Remove cpp_check parameter and do not pass it to
617 dump_generic_ada_node.
618 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
619 accessing methods.
620 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
621 down. Use has_nontrivial_methods to recognize C++ classes. Use return
622 value of print_ada_methods.
623 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
624 Set cpp_check to it before invoking dump_ada_nodes.
625 (dump_ada_specs): Likewise.
626
b906f4ca
MP
6272013-11-03 Marek Polacek <polacek@redhat.com>
628
629 * c-ubsan.c: Don't include hash-table.h.
630 (ubsan_instrument_vla): New function.
631 * c-ubsan.h: Declare it.
632
5e20cdc9
DM
6332013-10-31 David Malcolm <dmalcolm@redhat.com>
634
635 Automated part of renaming of symtab_node_base to symtab_node.
636
637 Patch autogenerated by rename_symtab.py from
638 https://github.com/davidmalcolm/gcc-refactoring-scripts
639 revision 58bb219cc090b2f4516a9297d868c245495ee622
640
641 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
642 symtab_node_base to symtab_node.
643
7057e645
ESR
6442013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
645
646 Implement C++14 digit separators.
647 * c-lex.c (interpret_float): Remove digit separators from scratch string
648 before building real literal.
649
193ea7bc
JJ
6502013-10-30 Jakub Jelinek <jakub@redhat.com>
651
652 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
653
939b37da
BI
6542013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
655
656 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
657 fields.
658 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
659 enabled.
660 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
661 (insert_cilk_frame): New prototype.
662 (cilk_init_builtins): Likewise.
663 (gimplify_cilk_spawn): Likewise.
664 (c_cilk_install_body_w_frame_cleanup): Likewise.
665 (cilk_detect_spawn_and_unwrap): Likewise.
666 (cilk_set_spawn_marker): Likewise.
667 (build_cilk_sync): Likewise.
668 (build_cilk_spawn): Likewise.
669 * cilk.c: New file.
670
67348ccc
DM
6712013-10-29 David Malcolm <dmalcolm@redhat.com>
672
673 Patch autogenerated by refactor_symtab.py from
674 https://github.com/davidmalcolm/gcc-refactoring-scripts
675 revision 58bb219cc090b2f4516a9297d868c245495ee622
676
677 * c-gimplify.c (c_genericize): Update for conversion of symtab types
678 to a true class hierarchy.
679 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
680
d570872d
RS
6812013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
682
683 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
684
98906124
JL
6852013-10-26 Jeff Law <law@redhat.com>
686
687 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
688 * c-family/c.opt: Ignore and warn for mudflap options.
689
d73749df 6902013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
691
692 PR other/33426
693 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
694 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
695
3f04b1bb
JM
6962013-10-23 Jason Merrill <jason@redhat.com>
697
698 * c-format.c (gcc_cxxdiag_char_table): Add %X.
699
acf0174b
JJ
7002013-10-11 Jakub Jelinek <jakub@redhat.com>
701
acd15a28
JJ
702 * c-common.h (omp_clause_mask::operator !=): New method.
703 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
704 instead of if (mask & something) tests everywhere.
705
acf0174b
JJ
706 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
707 201307 instead of 201107.
708 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
709 (c_common_attribute_table): Add "omp declare target" and
710 "omp declare simd" attributes.
711 (handle_omp_declare_target_attribute,
712 handle_omp_declare_simd_attribute): New functions.
713 * c-omp.c: Include c-pragma.h.
714 (c_finish_omp_taskgroup): New function.
715 (c_finish_omp_atomic): Add swapped argument, if true,
716 build the operation first with rhs, lhs arguments and use NOP_EXPR
717 build_modify_expr.
718 (c_finish_omp_for): Add code argument, pass it down to make_code.
719 (c_omp_split_clauses): New function.
720 (c_split_parallel_clauses): Removed.
721 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
722 c_omp_declare_simd_clauses_to_decls): New functions.
723 * c-common.h (omp_clause_mask): New type.
724 (OMP_CLAUSE_MASK_1): Define.
725 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
726 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
727 omp_clause_mask::operator |, omp_clause_mask::operator &,
728 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
729 omp_clause_mask::operator ==): New methods.
730 (enum c_omp_clause_split): New.
731 (c_finish_omp_taskgroup): New prototype.
732 (c_finish_omp_atomic): Add swapped argument.
733 (c_finish_omp_for): Add code argument.
734 (c_omp_split_clauses): New prototype.
735 (c_split_parallel_clauses): Removed.
736 (c_omp_declare_simd_clauses_to_numbers,
737 c_omp_declare_simd_clauses_to_decls): New prototypes.
738 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
739 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
740 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
741 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
742 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
743 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
744 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
745 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
746 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
747 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
748 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
749 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
750 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
751 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
752 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
753 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
754 PRAGMA_OMP_CLAUSE_UNIFORM.
755
826cacfe
MG
7562013-10-09 Marc Glisse <marc.glisse@inria.fr>
757
758 PR tree-optimization/20318
759 * c-common.c (handle_returns_nonnull_attribute): New function.
760 (c_common_attribute_table): Add returns_nonnull.
761
2284b034
MG
7622013-10-03 Marc Glisse <marc.glisse@inria.fr>
763
764 PR c++/19476
765 * c.opt (fcheck-new): Move to common.opt.
766
b56e9788
MP
7672013-09-25 Marek Polacek <polacek@redhat.com>
768 Jakub Jelinek <jakub@redhat.com>
769
770 PR sanitizer/58413
771 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
772 an expression if we can prove it is correct.
773 (ubsan_instrument_division): Likewise. Remove unnecessary
774 check.
775
ce6923c5
MP
7762013-09-18 Marek Polacek <polacek@redhat.com>
777
778 PR sanitizer/58411
779 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
780 Declare it.
781 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
782
fb5610fb
IS
7832013-09-14 Iain Sandoe <iain@codesourcery.com>
784
785 PR target/48094
786 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
787 fobjc-gc, freplace-objc-classes): Accept for LTO.
788
88b0e79e
JC
7892013-09-13 Jacek Caban <jacek@codeweavers.com>
790
791 * c-target.def: New hook
792
c9b0866a
PC
7932013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
794
795 PR c++/43452
796 * c.opt (Wdelete-incomplete): Add.
797
0af94e6f
JR
7982013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
799
800 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
801 (vector_types_compatible_elements_p): New function.
802 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
803 declaration.
804 (vector_types_compatible_elements_p): Declare.
805
7c26172c
GDR
8062013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
807
808 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
809 a virtual member function.
810 (pp_simple_type_specifier): Remove.
811 (pp_c_type_specifier): Likewise.
812 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
813 Rename from pp_c_type_specifier. Adjust.
814 (c_pretty_printer::c_pretty_printer): Do not assign to
815 simple_type_specifier.
816
20059c8b
GDR
8172013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
818
819 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
820 member function.
821 (c_pretty_printer::storage_class_specifier): Likewise.
822 (c_pretty_printer::initializer): Likewise.
823 (pp_declaration): Remove.
824 (pp_declaration_specifiers): Likewise.
825 (pp_abstract_declarator): Likewise.
826 (pp_declarator): Likewise.
827 (pp_type_id): Likewise.
828 (pp_statement): Likewise.
829 (pp_constant): Likewise.
830 (pp_id_expression): Likewise.
831 (pp_primary_expression): Likewise.
832 (pp_unary_expression): Likewise.
833 (pp_multiplicative_expression): Likewise.
834 (pp_conditional_expression): Likewise.
835 (pp_assignment_expression): Likewise.
836 (pp_expression): Likewise.
837 (pp_c_type_id): Likewise.
838 (pp_c_storage_class_specifier): Likewise.
839 * c-pretty-print.c (pp_c_type_cast): Tidy.
840 (pp_c_pointer): Likewise.
841 (pp_c_type_specifier): Likewise.
842 (pp_c_parameter_type_list): Likewise.
843 (pp_c_function_definition): Likewise.
844 (pp_c_init_declarator): Likewise.
845 (pp_c_initializer_list): Likewise.
846 (pp_c_constructor_elts): Likewise.
847 (c_pretty_printer::direct_abstract_declarator): Likewise.
848 (c_pretty_printer::declaration_specifiers): Likewise.
849 (c_pretty_printer::primary_expression): Likewise.
850 (c_pretty_printer::postfix_expression): Likewise.
851 (c_pretty_printer::type_id): Rename from pp_c_type_id.
852 (c_pretty_printer::storage_class_specifier): Rename from
853 pp_c_storage_class_specifier.
854 (c_pretty_printer::initializer): Rename from pp_c_initializer.
855 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
856 storage_class_specifier, initializer, offset_list, flags.
857
de5a5fa1
MP
8582013-08-30 Marek Polacek <polacek@redhat.com>
859
860 * c-ubsan.c: New file.
861 * c-ubsan.h: New file.
862
8f0e4d72
GDR
8632013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
864
865 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
866 member function.
867 (c_pretty_printer::declaration_specifiers): Likewise.
868 (c_pretty_printer::declarator): Likewise.
869 (c_pretty_printer::abstract_declarator): Likewise.
870 (c_pretty_printer::direct_abstract_declarator): Likewise.
871 (c_pretty_printer::direct_declarator): Likewise.
872 (c_pretty_printer::function_specifier): Likewise.
873 (pp_declaration): Adjust.
874 (pp_declaration_specifiers): Likewise.
875 (pp_abstract_declarator): Likewise.
876 (pp_direct_declarator): Likewise.
877 (pp_function_specifier): Likewise.
878 (pp_direct_abstract_declarator): Remove as unused.
879 (pp_c_declaration): Remove.
880 (pp_c_declaration_specifiers): Likewise.
881 (pp_c_declarator): Likewise.
882 (pp_c_direct_declarator): Likewise.
883 (pp_c_function_specifier): Likewise.
884 (pp_c_direct_abstract_declarator): Likewise.
885 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
886 from pp_c_abstract_declarator. Adjust.
887 (c_pretty_printer::direct_abstract_declarator): Rename from
888 pp_c_direct_abstract_declarator. Adjust.
889 (c_pretty_printer::function_specifier): Rename from
890 pp_c_function_specifier. Adjust.
891 (c_pretty_printer::declaration_specifiers): Rename from
892 pp_c_declaration_specifiers. Adjust.
893 (c_pretty_printer::direct_declarator): Rename from
894 pp_c_direct_declarator. Adjust.
895 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
896 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
897 (c_pretty_printer::c_pretty_printer): Do not assign to
898 declaration, declaration_specifiers, declarator,
899 direct_declarator, direct_abstract_declarator, function_specifier.
900
00d34d3a
GDR
9012013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
902
903 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
904 virtual member function.
905 (c_pretty_printer::multiplicative_expression): Likewise.
906 (c_pretty_printer::conditional_expression): Likewise.
907 (c_pretty_printer::assignment_expression): Likewise.
908 (c_pretty_printer::expression): Likewise.
909 (pp_unary_expression): Adjust.
910 (pp_multiplicative_expression): Likewise.
911 (pp_assignment_expression): Likewise.
912 (pp_conditional_expression): Likewise.
913 (pp_expression): Likewise.
914 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
915 from pp_c_unary_expression. Adjust.
916 (c_pretty_printer::multiplicative_expression): Rename from
917 pp_c_multiplicative_expression. Adjust.
918 (c_pretty_printer::conditional_expression): Rename from
919 pp_c_conditional_expression. Adjust.
920 (c_pretty_printer::assignment_expression): Rename from
921 pp_c_assignment_expression. Adjust.
922 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
923 (c_pretty_printer::c_pretty_printer): Do not assign to
924 unary_expression, multiplicative_expression,
925 conditional_expression, expression.
926
fb22178f
GDR
9272013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
928
929 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
930 virtual member function.
931 (pp_postfix_expression): Adjust.
932 (pp_c_postfix_expression): Remove.
933 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
934 from pp_c_postfix_expression. Adjust.
935 (c_pretty_printer::c_pretty_printer): Do not assign to
936 postfix_expression.
937
7ecc2600
GDR
9382013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
939
940 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
941 virtua member function.
942 (pp_primary_expression): Adjust.
943 (pp_c_primary_expression): Remove.
944 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
945 from pp_c_primary_expression. Adjust.
946 (pp_c_initializer_list): Use pp_primary_expression.
947 (c_pretty_printer::c_pretty_printer): Do not assign to
948 primary_expression.
949
0691175f
GDR
9502013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
951
952 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
953 * c-pretty-print.c (M_): Remove.
954 (c_pretty_printer::translate_string): Define.
955 (pp_c_type_specifier): Use it.
956 (pp_c_primary_expression): Likewise.
957 (pp_c_expression): Likewise.
958
66dfe4c4
GDR
9592013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
960
961 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
962 virtual function.
963 (pp_c_id_expression): Remove.
964 (pp_id_expression): Adjust.
965 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
966 pp_c_id_expression. Adjust.
967 (pp_c_postfix_expression): Use pp_id_expression.
968 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
969
ca43e9d5
GDR
9702013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
971
972 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
973 member function.
974 (pp_constant): Adjust.
975 (pp_c_constant): Remove.
976 * c-pretty-print.c (c_pretty_printer::constant): Rename from
977 pp_c_constant. Adjust.
978 (pp_c_constant)
979 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
980 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
981
da6ca2b5
GDR
9822013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
983
984 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
985 (c_pretty_printer::c_pretty_printer): Declare.
986 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
987 c_pretty_printer_init. Adjust.
988 (print_c_tree): Do not call c_pretty_printer_init.
989 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
990
65a372f4
AC
9912013-08-09 Arnaud Charlet <charlet@adacore.com>
992
993 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
994
fd9b0f32
PC
9952013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
996
997 PR c++/58080
998 * c-common.c (pointer_int_sum): Add bool parameter.
999 * c-common.h (pointer_int_sum): Adjust declaration.
1000
e0aec1e9
GDR
10012013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1002
1003 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1004 c_pretty_printer variable.
1005
b066401f
GDR
10062013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1007
1008 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1009 (pp_base): Remove.
1010 (pp_c_base): Likewise. Adjust users.
1011 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1012 (pp_c_whitespace): Do not call pp_base.
1013 (pp_c_left_paren): Likewise.
1014 (pp_c_right_paren): Likewise.
1015 (pp_c_left_brace): Likewise.
1016 (pp_c_right_brace): Likewise.
1017 (pp_c_left_bracket): Likewise.
1018 (pp_c_right_bracket): Likewise.
1019 (pp_c_dot): Likewise.
1020 (pp_c_ampersand): Likewise.
1021 (pp_c_star): Likewise.
1022 (pp_c_arrow): Likewise.
1023 (pp_c_semicolon): Likewise.
1024 (pp_c_complement): Likewise.
1025 (pp_c_exclamation): Likewise.
1026 (pp_c_direct_declarator): Likewise.
1027 (pp_c_ws_string): Likewise.
1028 (pp_c_identifier): Likewise.
1029 (pp_c_statement): Likewise.
1030 (print_c_tree): Likewise.
1031
65e5a578
ESR
10322013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1033
1034 PR c++/58072
1035 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1036 provide useful error strings.
1037
137a1a27
GDR
10382013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1039
1040 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1041 printer functions instead of pp_string or operators and punctuators.
1042 (dump_generic_ada_node): Likewise.
1043 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1044 (pp_c_relational_expression): Likewise.
1045 (pp_c_logical_or_expression): Likewise.
1046
07838b13
GDR
10472013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1048
1049 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1050 functions instead of pp_character.
1051 (pp_ada_tree_identifier): Likewise.
1052 (dump_ada_double_name): Likewise.
1053 (dump_ada_function_declaration): Likewise.
1054 (dump_ada_array_domains): Likewise.
1055 (dump_template_types): Likewise.
1056 (dump_generic_ada_node): Likewise.
1057 (print_ada_declaration): Likewise.
1058 (print_ada_struct_decl): Likewise.
1059 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1060
433cc7b0
TT
10612013-07-23 Tom Tromey <tromey@redhat.com>
1062
1063 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1064 * c-common.c (c_common_reswords): Add _Generic.
1065
688010ba
OB
10662013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1067
1068 * c-common.c: Fix typos.
1069 * c-common.h: Likewise.
1070
2a99e5e6
LL
10712013-07-13 Lubos Lunak <l.lunak@suse.cz>
1072
1073 PR c++/55203
1074 * c-common.c (c_common_attribute_table): Add warn_unused.
1075 (handle_warn_unused_attribute): New.
1076
c26302d5
JJ
10772013-07-10 Jakub Jelinek <jakub@redhat.com>
1078
1079 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1080 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1081
dfeadaa0
PC
10822013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1083
1084 PR c++/57869
1085 * c.opt: Add Wconditionally-supported.
1086
6a2fa4b2
GS
10872013-07-08 Graham Stott <graham.stott@btinternet.com>
1088
1089 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1090 unused variables l_length and l_node.
1091
ecdbd01a 10922013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1093
1094 PR c/57821
1095 * c-common.c (complete_array_type): Delay folding first index
1096 like other indices. When folding, check for index overflow.
1097
bedc293e
MG
10982013-06-27 Marc Glisse <marc.glisse@inria.fr>
1099
1100 PR c++/57509
1101 * c-common.h (c_build_vec_perm_expr): New complain argument.
1102 * c-common.c (c_build_vec_perm_expr): Likewise.
1103 Use save_expr also in C++.
1104
604b2bfc
GDR
11052013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1106
1107 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1108 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1109 * c-opts.c (c_common_post_options): Likewise.
1110
dfeadaa0 11112013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1112
1113 * array-notation-common.c (length_mismatch_in_expr): Changed the
1114 parameter type's from a dynamic array to a vec_tree. Also removed
1115 the size parameters.
1116 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1117 the change above.
1118
2ce86d2e
BI
11192013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1120
1121 * c-common.h (struct cilkplus_an_parts): New structure.
1122 (struct cilkplus_an_loop_parts): Likewise.
1123 (cilkplus_extract_an_triplets): New prototype.
1124 (fix_sec_implicit_args): Likewise.
1125 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1126 (fix_sec_implicit_args): Likewise.
604b2bfc 1127
07a6825b
BI
11282013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1129
1130 * array-notation-common.c (find_inv_trees): Removed an unwanted
1131 typecasting.
1132 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1133 enum rid to enum tree_code.
1134
08346abd
JH
11352013-06-11 Jan Hubicka <jh@suse.cz>
1136
1137 * c-common.c (handle_alias_ifunc_attribute): Do not set
1138 DECL_EXTERNAL for weakref variables.
1139 * c-pragma.c (handle_pragma_weak): Make sure aliases
1140 are not declared as external.
1141
d60f1706
BI
11422013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1143
1144 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1145 function from c/c-array-notation.c.
1146 (is_cilkplus_reduce_builtin): Likewise.
1147 (find_rank): Likewise.
1148 (extract_array_notation_exprs): Likewise.
1149 (replace_array_notations): Likewise.
1150 (find_inv_trees): Likewise.
1151 (replace_inv_trees): Likewise.
1152 (contains_array_notation_expr): Likewise.
1153 (find_correct_array_notation_type): Likewise.
1154 * c-common.h (struct inv_list): Moved this struct from the file
1155 c/c-array-notation.c and added a new field called additional tcodes.
1156 (length_mismatch_in_expr_p): New prototype.
1157 (is_cilkplus_reduce_builtin): Likewise.
1158 (find_rank): Likewise.
1159 (extract_array_notation_exprs): Likewise.
1160 (replace_array_notation): Likewise.
1161 (find_inv_trees): Likewise.
1162 (replace_inv_trees): Likewise.
1163 (find_correct_array_notation_type): Likewise.
dfeadaa0 1164
36536d79
BI
11652013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1166
1167 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1168 function array_notation_init_builtins is called.
1169 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1170 * c-common.def (ARRAY_NOTATION_REF): New tree.
1171 * c-common.h (build_array_notation_expr): New function declaration.
1172 (build_array_notation_ref): Likewise.
1173 (extract_sec_implicit_index_arg): New extern declaration.
1174 (is_sec_implicit_index_fn): Likewise.
1175 (ARRAY_NOTATION_CHECK): New define.
1176 (ARRAY_NOTATION_ARRAY): Likewise.
1177 (ARRAY_NOTATION_START): Likewise.
1178 (ARRAY_NOTATION_LENGTH): Likewise.
1179 (ARRAY_NOTATION_STRIDE): Likewise.
1180 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1181 ARRAY_NOTATION_REF.
1182 (pp_c_expression): Likewise.
1183 * c.opt (flag_enable_cilkplus): New flag.
1184 * array-notation-common.c: New file.
1185
f7716d57
JJ
11862013-05-14 Jakub Jelinek <jakub@redhat.com>
1187
1188 PR c++/57274
1189 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1190
a5e0cd1d
MG
11912013-05-10 Marc Glisse <marc.glisse@inria.fr>
1192
1193 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1194 vectors.
1195
f6bc1c4a
HS
11962013-05-07 Han Shen <shenhan@google.com>
1197
1198 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1199
3f12f6e9
SKS
12002013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1201
1202 * c-common.c (check_user_alignment): Emit error for negative values.
1203
61949153
PC
12042013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1205
1206 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1207
e93e18e9
PC
12082013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1209
1210 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1211 __GXX_EXPERIMENTAL_CXX1Y__.
1212
44d90fe1
PC
12132013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1214 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1215
1216 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1217 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1218 to simply use OPT_Wpointer_arith.
1219 (c_sizeof_or_alignof_type): Likewise.
1220
13f39b2e
PC
12212013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1222
1223 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1224
4b84d650
JJ
12252013-04-12 Jakub Jelinek <jakub@redhat.com>
1226
1227 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1228 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1229 specifiers.
1230
fb037b5d
SB
12312013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1232
1233 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1234
4e856798
PC
12352013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1236
1237 * c-common.c (pointer_int_sum): Remove dead code.
1238
4b1baac8
RS
12392013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1240
1241 PR middle-end/56524
1242 * c-common.c (handle_optimize_attribute): Don't call
1243 save_optabs_if_changed.
1244
0b50e654
JJ
12452013-03-05 Jakub Jelinek <jakub@redhat.com>
1246
1247 PR middle-end/56461
1248 * c-pch.c (pch_init): Free target_validity at the end.
1249
48c41403
JJ
12502013-03-04 Jakub Jelinek <jakub@redhat.com>
1251
1252 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1253
e664c61c
KS
12542013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1255 Jakub Jelinek <jakub@redhat.com>
1256
1257 PR sanitizer/56454
1258 * c-common.c (handle_no_sanitize_address_attribute): New function.
1259 (c_common_attribute_table): Add no_sanitize_address attribute.
1260 (handle_no_address_safety_analysis_attribute): Add
1261 no_sanitize_address attribute, not no_address_safety_analysis
1262 attribute.
1263
a475fd3d 12642013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1265
1266 PR target/52555
1267 * c-common.c (handle_optimize_attribute): Call
1268 save_optabs_if_changed.
1269
f6007d99
JJ
12702013-02-18 Jakub Jelinek <jakub@redhat.com>
1271 Steven Bosscher <steven@gcc.gnu.org>
1272
1273 PR pch/54117
1274 * c-opts.c (c_common_post_options): If debug info is enabled
1275 and non-dwarf*, refuse to load PCH files and when writing PCH
1276 file warn.
1277
cf35e2b1
JJ
12782013-02-05 Jakub Jelinek <jakub@redhat.com>
1279
1280 PR middle-end/56167
1281 * c-common.c (handle_error_attribute): Fix condition.
1282
32887460
JJ
12832013-01-30 Jakub Jelinek <jakub@redhat.com>
1284
1285 PR c++/55742
1286 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1287
5af057d8
JM
12882013-01-18 Jason Merrill <jason@redhat.com>
1289
1290 PR target/54908
1291 * c.opt (-fextern-tls-init): New.
1292 * c-opts.c (c_common_post_options): Handle it.
1293
cc83c823
JJ
12942013-01-09 Jakub Jelinek <jakub@redhat.com>
1295
1296 PR c/48418
1297 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1298 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1299 and is either negative or bigger or equal to type precision
1300 of the first operand.
1301
a859517f
MP
13022012-12-03 Marek Polacek <polacek@redhat.com>
1303
1304 PR c/55570
1305 * c-common.c (check_user_alignment): Swap order of tests,
1306 check TREE_CODE first.
1307
2d7aa578
ESR
13082012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1309
1310 PR c++/52654
1311 * c-common.h (overflow_type): New enum.
1312 (build_userdef_literal): Add overflow_type argument.
1313 (tree_userdef_literal): Add overflow_type.
1314 (USERDEF_LITERAL_OVERFLOW): New access macro.
1315 * c-common.c (build_userdef_literal): Add overflow_type
1316 argument.
1317 * c-lex.c (c_lex_with_flags): Add overflow_type to
1318 build_userdef_literal calls.
1319 (interpret_integer, interpret_float): Add overflow_type argument.
1320
cc3c4f62
RB
13212012-11-28 Richard Biener <rguenther@suse.de>
1322
1323 PR c/35634
1324 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1325 here and use a type with proper overflow behavior for types that would
1326 need to be promoted for the arithmetic.
1327
77bc5132
JJ
13282012-11-23 Jakub Jelinek <jakub@redhat.com>
1329
1330 PR sanitizer/55435
1331 * c-common.c (handle_no_address_safety_analysis_attribute): New
1332 function.
1333 (c_common_attribute_table): Add no_address_safety_analysis.
1334
5dc99c46
SB
13352012-11-16 Simon Baldwin <simonb@google.com>
1336
1337 * c.opt: Add f[no-]canonical-system-headers.
1338 * c-opts.c (c_common_handle_option): Handle
1339 OPT_fcanonical_system_headers.
1340
a4a0016d
ESR
13412012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1342
1343 PR c++/54413
1344 * c-opts.c (c_common_handle_option): Set new flags.
1345 * c.opt: Describe new flags.
1346
7dbb85a7
JM
13472012-11-09 Jason Merrill <jason@redhat.com>
1348
1349 * c.opt (Wabi-tag): New.
1350
ad7bac31
AK
13512012-11-09 Andi Kleen <ak@linux.intel.com>
1352
1353 PR 55139
1354 * c-common.c (get_atomic_generic_size): Mask with
1355 MEMMODEL_MASK
1356
7332899a
MLI
13572012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1358
1359 PR c/53063
1360 * c.opt (Wformat): Make it Alias Wformat=1.
1361 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1362 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1363 LangEnabledBy.
1364 (Wformat=): RejectNegative. Use LangEnabledBy.
1365 (Wnonnull): Use LangEnabledBy.
1366 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1367 * c-format.c (set_Wformat): Delete.
1368 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1369 (maybe_read_dollar_number): Likewise.
1370 (avoid_dollar_number): Likewise.
1371 (finish_dollar_format_checking): Likewise.
1372 (check_format_info): Likewise.
1373 (check_format_info_main): Likewise.
1374 (check_format_types): Likewise.
1375 (format_type_warning): Likewise.
1376 * c-common.c (int): Likewise.
1377 (check_function_sentinel): Likewise.
1378 * c-common.h (warn_format,set_Wformat): Do not declare here.
1379
34a180a6
MLI
13802012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1381
1382 PR c/53063
1383 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1384 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1385 Use LangEnabledBy.
1386 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1387 common.opt.
1388 (Wvariadic-macros): Init(1).
1389 * c-opts.c (c_common_handle_option): Do not handle them
1390 explicitly.
1391 (c_common_post_options): Likewise.
1392 (sanitize_cpp_opts): warn_unused_macros is now
1393 cpp_warn_unused_macros.
1394 (push_command_line_include): Likewise.
1395 * c-common.c (warn_unknown_pragmas): Do not define.
1396 * c-common.h (warn_unknown_pragmas): Do not declare.
1397
3f46d6a5
MLI
13982012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1399
1400 PR c/51294
1401 * c-common.c (conversion_warning): Handle conditional expressions.
1402
880661a4
JW
14032012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1404
1405 PR c++/54930
1406 * c.opt (Wreturn_local_addr): Define new option.
1407
4514a96b
JM
14082012-10-25 Jason Merrill <jason@redhat.com>
1409
f14edc1a
JM
1410 * c.opt (Wvirtual-move-assign): New.
1411
4514a96b
JM
1412 * c.opt (Winherited-variadic-ctor): New.
1413
93100c6b
MG
14142012-10-25 Marc Glisse <marc.glisse@inria.fr>
1415
1416 PR c++/54427
1417 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1418
1efcb8c6
JM
14192012-10-23 Joseph Myers <joseph@codesourcery.com>
1420
1421 * c-common.h (pch_cpp_save_state): Declare.
1422 * c-target.def (c_preinclude): New hook.
1423 * c-opts.c (done_preinclude): New.
1424 (push_command_line_include): Handle default preincluded header.
1425 (cb_file_change): Call pch_cpp_save_state when calling
1426 push_command_line_include.
1427 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1428 (pch_cpp_save_state): New.
1429 (pch_init): Call pch_cpp_save_state conditionally, instead of
1430 calling cpp_save_state.
1431
4a0ae68e
MLI
14322012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1433
1434 PR c/53063
1435 PR c/40989
1436 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1437 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1438 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1439 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1440 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1441 * c-opts.c (c_common_handle_option): Remove explicit handling from
1442 here.
1443 (c_common_post_options): Likewise.
1444
67e4210b
EB
14452012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1446
1447 * c-ada-spec.c (LOCATION_COL): Delete.
1448 (compare_location): New function.
1449 (compare_node): Use it.
1450 (compare_comment): Likewise.
1451
65d4f2cd
MLI
14522012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1453
1454 PR c/53063
1455 PR c/40989
1456 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1457 * c-opts.c (c_common_handle_option): Do not set them here. Add
1458 comment.
1459 (c_common_post_options): Likewise.
1460
909881cb
EB
14612012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1462
1463 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1464 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1465 Remove POINTER_TYPE handling, add large unsigned handling and use
1466 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1467
3a785c97
JJ
14682012-10-12 Jakub Jelinek <jakub@redhat.com>
1469
1470 PR c/54381
1471 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1472 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1473 locs and array of 3 trees instead of just single loc and single
1474 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1475 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1476 For *cmp* builtins that take two sources strings report warnings
1477 about first and second source, not about destination and source.
1478
5e54f81d
MG
14792012-10-12 Marc Glisse <marc.glisse@inria.fr>
1480
1481 PR c++/53055
1482 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1483
f5b02f1e
EB
14842012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1485
1486 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1487 declaring something coming from another file.
1488
b46dbc6c
AC
14892012-10-10 Arnaud Charlet <charlet@adacore.com>
1490
f5b02f1e 1491 PR ada/54845
b46dbc6c
AC
1492 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1493
5d9de0d0
PC
14942012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1495
1496 PR c++/54194
1497 * c-common.c (warn_about_parentheses): Add location_t parameter;
1498 use EXPR_LOC_OR_LOC.
1499 * c-common.h: Update declaration.
1500
a212e43f
MG
15012012-10-09 Marc Glisse <marc.glisse@inria.fr>
1502
1503 PR c++/54427
1504 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1505 more operations. Make error messages optional.
1506 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1507 (scalar_to_vector): Declare.
1508
b1db7f91
JM
15092012-10-08 Jason Merrill <jason@redhat.com>
1510
1511 * c-common.c (c_common_reswords): Add thread_local.
1512
e28d52cf
DS
15132012-10-08 Dodji Seketeli <dodji@redhat.com>
1514
1515 PR c++/53528 C++11 attribute support
1516 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1517 new functions.
1518 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1519 static function.
1520 (handle_aligned_attribute): In choose strictest alignment
1521 among many. Use new check_cxx_fundamental_alignment_constraints.
1522 (handle_transparent_union_attribute): In c++11 attribute syntax,
1523 don't look through typedefs.
1524
3b78de56
AC
15252012-10-04 Arnaud Charlet <charlet@adacore.com>
1526
1527 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1528 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1529 out of dumpfile.h.
1530
6040bb5f
DC
15312012-09-25 Dehao Chen <dehao@google.com>
1532
1533 PR middle-end/54645
3b78de56 1534 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1535 map when read in the pch.
1536
0b07a57e
AC
15372012-09-18 Arnaud Charlet <charlet@adacore.com>
1538
1539 * c-ada-spec.c: Style fixes.
1540
da5182be
TQ
15412012-09-18 Thomas Quinot <quinot@adacore.com>
1542
1543 * c.opt (-fada-spec-parent): Define new command line switch.
1544 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1545 is specified, generate binding spec as a child of the specified unit.
1546
0ccb505d
PC
15472012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1548 Manuel López-Ibáñez <manu@gcc.gnu.org>
1549
1550 PR c++/53210
1551 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1552
c583af79
AC
15532012-08-23 Arnaud Charlet <charlet@adacore.com>
1554
1555 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1556 for pointers, and add missing Convention C pragma.
1557 (print_ada_struct_decl): Add missing aliased keyword.
1558 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1559
1a4049e7
JJ
15602012-08-17 Jakub Jelinek <jakub@redhat.com>
1561
1562 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1563 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1564 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1565 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1566 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1567
70b5e7dc
RG
15682012-08-10 Richard Guenther <rguenther@suse.de>
1569
1570 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1571
f8923f7e
SB
15722012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1573
1574 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1575 instead of separate pp_newline and pp_flush.
1576 (print_c_tree): Likewise.
1577
e45abe1f
RH
15782012-07-26 Richard Henderson <rth@redhat.com>
1579
1580 * c-common.c (handle_hot_attribute): Allow labels.
1581 (handle_cold_attribute): Likewise.
1582
332f1d24
JJ
15832012-07-20 Jakub Jelinek <jakub@redhat.com>
1584
1585 PR c++/28656
1586 * c-common.c (check_function_nonnull): Handle multiple nonnull
1587 attributes properly.
1588
7ee2468b
SB
15892012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1590
1591 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1592 * c-ada-spec.c: Likewise.
1593 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1594
ee7b28eb
SB
15952012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1596
1597 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1598 Remove code conditional on it.
1599
6bdf3519
SB
16002012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1601
1602 * c-gimplify.c: Do not include basic-block.h.
1603 * c-common.c: Do not include linfuncs.h.
1604
532aafad
SB
16052012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1606
1607 * c-common.h: Include tree.h.
1608
8d0d1915
JM
16092012-07-02 Jason Merrill <jason@redhat.com>
1610
1611 PR c++/53524
1612 * c-common.c (get_priority): Call default_conversion.
1613
fbc873ad
UB
16142012-07-01 Uros Bizjak <ubizjak@gmail.com>
1615
1616 * c-pch.c (c_common_write_pch): Remove unused variables.
1617
d4a10d0a
SB
16182012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1619
1620 * cppspec.c: Moved from gcc/ to here.
1621
6f3a2e23
KT
16222012-06-27 Kai Tietz <ktietz@redhat.com>
1623
1624 PR preprocessor/37215
1625 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1626
8ca92d04
SB
16272012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1628
1629 * c-common.h (c_common_print_pch_checksum): Remove.
1630 * c-pch.c: Do not include output.h.
1631 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1632 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1633 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1634 (struct c_pch_header): Remove.
1635 (get_ident): Update gpch version.
1636 (pch_init): Do not print executable_checksum to asm_out_file.
1637 Do not fail if there is no asm_out_file to read back from. Set
1638 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1639 (c_common_write_pch): Verify that nothing was written to asm_out_file
1640 since pch_init was called. Do not write a c_pch_header, and do not
1641 copy from asm_out_file to the PCH.
1642 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1643 the content of asm_out_file from the PCH.
1644 (c_common_print_pch_checksum): Remove.
1645 * c-opts.c (c_common_init): Print out executable_checksum directly.
1646
70f42967
SB
16472012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1648
1649 * c-target.def (objc_declare_unresolved_class_reference,
1650 objc_declare_class_definition): Add new hooks.
1651
a8781821
SB
16522012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1653
1654 * c-lex.c: Do not include output.h.
1655 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1656 Remove uses of ASM_OUTPUT_IDENT.
1657
9e1a8dd1
RR
16582012-06-15 Marc Glisse <marc.glisse@inria.fr>
1659
1660 PR c++/51033
1661 * c-common.h (c_build_vec_perm_expr): Move decl here.
1662 * c-common.c (c_build_vec_perm_expr): Move definition
1663 here.
1664
6f07a821
SB
16652012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1666
1667 * c.opt (fconserve-space): Turn into a no-op.
1668
9faeb493 16692012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1670
1671 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1672 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1673 both the start and end of the function.
1674
a4b7d13c
SB
16752012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1676
1677 * c-common.c: Do not include output.h.
1678 * c-pragma.c: Likewise.
1679
c265f413
SA
16802012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1681
1682 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1683 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1684 (lang_decl_name): Handle namespace decls.
1685
be7a421e
SB
16862012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1687
1688 * c-ada-spec.c: Do not include output.h.
1689 * c-semantics.c: Likewise.
1690
65de6659
JM
16912012-05-29 Joseph Myers <joseph@codesourcery.com>
1692
1693 * c-common.c: Fix typo.
1694
ca5f4331
MM
16952012-05-29 Michael Matz <matz@suse.de>
1696
1697 * c-common.h (c_expand_decl): Remove prototype.
1698
4f7f7aca
MLI
16992012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1700
1701 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1702 * c-opts.c (c_common_handle_option): Remove code handling
1703 warn_missing_braces.
1704
4a792f9b
PC
17052012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1706
1707 PR c++/25137
1708 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1709 -Wmissing_braces.
1710
650dc14a
DS
17112012-05-22 Dodji Seketeli <dodji@redhat.com>
1712
1713 PR c++/53322
1714 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1715
9b095bf1
MLI
17162012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1717
1718 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1719 * c-opts.c (c_common_handle_option): Do not handle explicitly
1720 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1721
0b2c4be5
DS
17222012-05-16 Dodji Seketeli <dodji@redhat.com>
1723
1724 PR preprocessor/7263
1725 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1726 to cpp_classify_number. For diagnostics, use the precise location
1727 instead of the global input_location.
1728
a1bde5af
PC
17292012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1730
d02924ef 1731 PR c++/11856
a1bde5af
PC
1732 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1733
d1ede5f4
BS
17342012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1735
a1bde5af 1736 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1737
f2bc201f
MLI
17382012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1739
1740 PR 53063
1741 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1742 Wreorder): Use LangEnabledBy.
1743 * c-opts.c (c_common_handle_option): Do not enable them
1744 explicitly. Call lang-specific generated functions.
1745 (c_common_post_options): Do not set them here.
1746
95744782
MLI
17472012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1748
1749 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1750 Wmissing-field-initializers,Wmissing-parameter-type,
1751 Wold-style-declaration,Woverride-init): Use EnabledBy.
1752 * c-opts.c (c_common_post_options): Do not set here explicitly.
1753
7d5a5747
MLI
17542012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1755
1756 PR 53063
1757 * c-opts.c (c_common_handle_option): Use handle_generated_option
1758 to enable sub-options.
1759
5a3c9cf2
PC
17602012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1761
1762 PR c++/53158
1763 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1764
3ac8781c
RG
17652012-05-10 Richard Guenther <rguenther@suse.de>
1766
1767 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1768 adjust commentary about TYPE_IS_SIZETYPE types.
1769
1e537948
MLI
17702012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1771
1772 PR c++/53261
1773 * c-common.c (warn_logical_operator): Check that argument of
1774 integer_zerop is not NULL.
1775
f2c4a785
MLI
17762012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1777
1778 PR c/43772
1779 * c-common.c (warn_logical_operator): Do not warn if either side
1780 is already true or false.
1781
50f305ca
MLI
17822012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1783
1784 PR c/51712
1785 * c-common.c (expr_original_type): New.
1786 (shorten_compare): Do not warn for enumeration types.
1787
0c3641b0
MLI
17882012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1789
1790 * c.opt (fpermissive): Add Var(flag_permissive).
1791
7edaa4d2
MG
17922012-04-30 Marc Glisse <marc.glisse@inria.fr>
1793
1794 PR c++/51033
1795 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1796 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1797
b9c8da34
DS
17982012-04-30 Dodji Seketeli <dodji@redhat.com>
1799
1800 Add -Wvarargs option
1801 * c.opt (Wvarargs): Define new option.
1802
e6c69da0
MLI
18032012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1804
1805 * c-common.c (check_function_arguments): Replace
1806 Wmissing-format-attribute with Wsuggest-attribute=format.
1807
90137d8f
MLI
18082012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1809
1810 * c.opt (Wsuggest-attribute=format): New. Alias of
1811 Wmissing-format-attribute.
1812 * c-format.c (decode_format_type): Replace
1813 Wmissing-format-attribute with Wsuggest-attribute=format.
1814 (check_function_format): Likewise.
1815
9faeb493 18162012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1817
1818 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1819 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1820 * c.opt: Add Wliteral-suffix.
1821
c1771a20
MLI
18222012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1823
1824 PR c/44774
1825 * c.opt (Wpedantic): New.
1826 (pedantic): Alias Wpedantic.
1827 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1828 (c_common_post_options): Likewise.
1829 (sanitize_cpp_opts): Likewise.
1830 * c-lex.c (interpret_float): Likewise.
1831 * c-format.c (check_format_types): Likewise.
1832 * c-common.c (pointer_int_sum): Likewise.
1833 (c_sizeof_or_alignof_type): Likewise.
1834 (c_add_case_label): Likewise.
1835 (c_do_switch_warnings): Likewise.
1836 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1837
04b391c1
JM
18382012-04-15 Jason Merrill <jason@redhat.com>
1839
1840 PR c++/52818
1841 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1842 (C_STD_NAME): Distinguish between C++98 and C++11.
1843
ac868f29
EB
18442012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1845
1846 PR target/52624
1847 * c-common.h (uint16_type_node): Rename into...
1848 (c_uint16_type_node): ...this.
1849 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1850 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1851
fd4116f4
MLI
18522012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1853
1854 * c-common.c (warn_if_unused_value): Move definition to here.
1855 * c-common.h (warn_if_unused_value): Move declaration to here.
1856
573ac65e
WB
18572012-03-23 William Bader <williambader@hotmail.com>
1858
1859 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1860
552b8185
JM
18612012-03-20 Jason Merrill <jason@redhat.com>
1862
1863 * c-common.h (enum cxx_dialect): Add cxx1y.
1864 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1865 test.
1866 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1867 * c-opts.c (c_common_post_options): Likewise.
1868 (set_std_cxx1y): New.
1869 (c_common_handle_option): Call it.
1870 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1871
04398fa8
PC
18722012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1873
1874 PR c++/14710
1875 * c.opt ([Wuseless-cast]): Add.
1876
d2a12ae7
RG
18772012-03-16 Richard Guenther <rguenther@suse.de>
1878
1879 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1880
a12bf402
MLI
18812012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1882
1883 PR c++/44783
1884 * c.opt (ftemplate-backtrace-limit) Add.
1885
5c30094f
RO
18862012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1887
1888 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1889 handling.
1890 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1891 (init_pragma): Don't register extern_prefix.
1892
21fa2faf
RG
18932012-03-12 Richard Guenther <rguenther@suse.de>
1894
1895 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1896 (builtin_type_for_size): Likewise.
1897
e3793c6f
JJ
18982012-02-13 Jakub Jelinek <jakub@redhat.com>
1899
1900 PR c++/52215
1901 * c-common.c (sync_resolve_params): Don't decide whether to convert
1902 or not based on TYPE_SIZE comparison, convert whenever arg_type
1903 is unsigned INTEGER_TYPE.
1904
93286335
PC
19052012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1906
1907 PR c/52118
1908 * c.opt ([Wunused-local-typedefs]): Fix description.
1909
7a421706
MS
19102012-01-24 Mike Stump <mikestump@comcast.net>
1911
1912 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1913 exactly.
1914
ba9b1f11
RG
19152012-01-18 Richard Guenther <rguenther@suse.de>
1916
1917 * c-opts.c (c_common_post_options): Reset LTO flags if
1918 we are about to generate a PCH.
1919
465406be
PC
19202012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1921
1922 PR c++/51777
1923 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1924 use pp_unsigned_wide_integer.
1925
aee15221
RG
19262012-01-10 Richard Guenther <rguenther@suse.de>
1927
1928 PR middle-end/51806
1929 * c-opts.c (c_common_handle_option): Move -Werror handling
1930 to language independent code.
1931
5720c0dc
RG
19322012-01-05 Richard Guenther <rguenther@suse.de>
1933
1934 PR middle-end/51764
1935 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1936 from common.opt.
1937
73ac190a
PC
19382011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1939
1940 PR c++/51316
1941 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1942 of array types with an unknown bound.
1943
48b0b196
JM
19442011-12-20 Joseph Myers <joseph@codesourcery.com>
1945
1946 * c-common.c (flag_isoc99): Update comment to refer to C11.
1947 (flag_isoc1x): Change to flag_isoc11.
1948 * c-common.h (flag_isoc99): Update comment to refer to C11.
1949 (flag_isoc1x): Change to flag_isoc11.
1950 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1951 C11.
1952 * c-opts.c (set_std_c1x): Change to set_std_c11.
1953 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1954 Call set_std_c11.
1955 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1956 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1957 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1958 standard.
1959 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1960 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1961 (std=gnu1x): Make alias of std=gnu11.
1962
d58d6eb5
JM
19632011-12-19 Jason Merrill <jason@redhat.com>
1964
1965 PR c++/51228
1966 * c-common.c (handle_transparent_union_attribute): Check the first
1967 field if the type is complete.
1968
b3908fcc
JW
19692011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1970
1971 PR libstdc++/51365
1972 * c-common.c (RID_IS_FINAL): Add.
1973 * c-common.h (RID_IS_FINAL): Add.
1974
fea3ca91
IS
19752011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1976
1977 * c.opt (fgnu-runtime): Provide full description.
1978 (fnext-runtime): Likewise.
1979 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1980
62bad7cd
AM
19812011-11-28 Andrew MacLeod <amacleod@redhat.com>
1982
1983 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1984 predefines in one place. Add LOCK_FREE predefines.
1985 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1986 new func.
1987
c466c4ff
AM
19882011-11-24 Andrew MacLeod <amacleod@redhat.com>
1989
1990 PR c/51256
9faeb493 1991 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1992 conditions
9faeb493
UB
1993 (resolve_overloaded_atomic_exchange,
1994 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1995 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1996 error_mark_node for error conditions.
9faeb493 1997
a5952633
RG
19982011-11-08 Richard Guenther <rguenther@suse.de>
1999
2000 PR middle-end/51010
2001 c-family/
2002
0a35513e
AH
20032011-11-07 Richard Henderson <rth@redhat.com>
2004 Aldy Hernandez <aldyh@redhat.com>
2005 Torvald Riegel <triegel@redhat.com>
2006
2007 Merged from transactional-memory.
2008
2009 * c-common.c (handle_tm_wrap_attribute,
2010 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2011 (struct c_common_reswords): Added __transaction* keywords.
2012 (struct c_common_attribute_table): Added transaction* and tm_regparm
2013 attributes.
2014 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2015 masks.
2016 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2017 find_tm_attribute): Declare.
2018
6d87092d
JM
20192011-11-07 Jason Merrill <jason@redhat.com>
2020
2021 PR c++/35688
2022 * c-common.c, c-common.h: Revert yesterday's changes.
2023
8e7860a1
JM
20242011-11-06 Jason Merrill <jason@redhat.com>
2025
2026 PR c++/35688
2027 * c-common.c (decl_has_visibility_attr): Split out from...
2028 (c_determine_visibility): ...here.
2029 * c-common.h: Declare it.
2030
d19fa6b5
JM
20312011-11-06 Joseph Myers <joseph@codesourcery.com>
2032
2033 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2034 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2035 type.
2036 (check_user_alignment): New. Split out of
2037 handle_aligned_attribute. Disallow integer constants with
2038 noninteger types. Conditionally allow zero.
2039 (handle_aligned_attribute): Use check_user_alignment.
2040 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2041
86951993
AM
20422011-11-06 Andrew MacLeod <amacleod@redhat.com>
2043 Richard Henderson <rth@redhat.com>
2044
2045 Merged from cxx-mem-model.
2046
2047 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2048 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2049 parameters that are the same type size.
2050 (get_atomic_generic_size): New. Find size of generic
2051 atomic function parameters and do typechecking.
2052 (add_atomic_size_parameter): New. Insert size into parameter list.
2053 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2054 either __atomic_exchange_n or external library call.
9faeb493 2055 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2056 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2057 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2058 __atomic_load_n or an external library call.
2059 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2060 __atomic_store_n or an external library call.
2061 (resolve_overloaded_builtin): Handle new __atomic builtins.
2062
cf9e9959
EB
20632011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2064
2065 PR c++/50608
2066 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2067 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2068 <INDIRECT_REF>: Return the argument.
2069 <ARRAY_REF>: Remove special code for negative offset.
2070 Call fold_build_pointer_plus instead of size_binop.
2071 (fold_offsetof): Remove STOP_REF argument and adjust.
2072 * c-common.h (fold_offsetof_1): Declare.
2073 (fold_offsetof): Remove STOP_REF argument.
2074
25339f10
JM
20752011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2076
2077 PR c++/50810
2078 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2079 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2080 Wnarrowing for C++0x and C++98.
2081 * c.opt ([Wnarrowing]): Update.
2082
89401152
PC
20832011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2084
2085 PR c++/44277
2086 * c.opt: Add Wzero-as-null-pointer-constant.
2087
97e3ad20
JM
20882011-10-31 Jason Merrill <jason@redhat.com>
2089
15694fdd
JM
2090 * c.opt (-fdeduce-init-list): Off by default.
2091
97e3ad20
JM
2092 PR c++/50920
2093 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2094 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2095 and -Wc++11-compat.
2096 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2097
fb9120e3
RAV
20982011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2099
2100 PR c++/30066
2101 * c.opt (fvisibility-inlines-hidden): Description change.
2102
3ce4f9e4
ESR
21032011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2104
2105 Implement C++11 user-defined literals.
2106 * c-common.c (build_userdef_literal): New.
2107 * c-common.def: New tree code.
2108 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2109 * c-lex.c (interpret_float): Add suffix parm.
2110 (c_lex_with_flags): Build literal tokens.
2111
5f53c243
PC
21122011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2113
2114 PR c++/50841
2115 Revert:
2116 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2117
2118 PR c++/50810
2119 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2120 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2121 Wnarrowing for C++0x and C++98.
2122 * c.opt ([Wnarrowing]): Update.
2123
263734e1
PC
21242011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2125
2126 PR c++/50810
2127 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2128 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2129 Wnarrowing for C++0x and C++98.
2130 * c.opt ([Wnarrowing]): Update.
2131
d2e312d7
PC
21322011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2133
2134 PR c++/45385
2135 * c-common.c (conversion_warning): Remove code looking for
2136 artificial operands.
2137
d17687f6
DS
21382011-10-18 Dodji Seketeli <dodji@redhat.com>
2139
2140 PR bootstrap/50760
2141 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2142 !NO_IMPLICIT_EXTERN_C.
d17687f6 2143
fc8396e9
PC
21442011-10-17 Michael Spertus <mike_spertus@symantec.com>
2145
2146 * c-common.c (c_common_reswords): Add __bases,
2147 __direct_bases.
2148 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2149
21502011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2151
2152 PR c++/50757
2153 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2154
847e697a
TT
21552011-10-15 Tom Tromey <tromey@redhat.com>
2156 Dodji Seketeli <dodji@redhat.com>
2157
2158 * c.opt (fdebug-cpp): New option.
2159 * c-opts.c (c_common_handle_option): Handle the option.
2160 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2161 output stream in parameter. Factorized from ...
2162 (maybe_print_line): ... this. Dump location debug information when
2163 -fdebug-cpp is in effect.
2164 (print_line_1): New static function. Takes an output stream in
2165 parameter. Factorized from ...
2166 (print_line): ... here. Dump location information when -fdebug-cpp
2167 is in effect.
2168 (scan_translation_unit): Dump location information when
2169 -fdebug-cpp is in effect.
2170
92582b75
TT
21712011-10-15 Tom Tromey <tromey@redhat.com>
2172 Dodji Seketeli <dodji@redhat.com>
2173
2174 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2175 without argument.
2176 * c-opts.c (c_common_handle_option)<case
2177 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2178 cases. Handle -ftrack-macro-expansion with and without argument.
2179
46427374
TT
21802011-10-15 Tom Tromey <tromey@redhat.com>
2181 Dodji Seketeli <dodji@redhat.com>
2182
2183 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2184 (print_line, cb_define, do_line_change): Adjust to avoid touching
2185 the internals of struct line_map. Use the public API instead.
2186 * c-pch.c (c_common_read_pch): Likewise.
2187 * c-lex.c (fe_file_change): Likewise.
2188
fc8396e9
PC
21892011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2190
2191 PR c++/17212
2192 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2193
21942011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2195
2196 PR c++/33067
2197 * c-pretty-print.c (pp_c_floating_constant): Output
2198 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2199
e79983f4
MM
22002011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2201
2202 * c-common.c (def_builtin_1): Delete old interface with two
2203 parallel arrays to hold standard builtin declarations, and replace
2204 it with a function based interface that can support creating
2205 builtins on the fly in the future. Change all uses, and poison
2206 the old names. Make sure 0 is not a legitimate builtin index.
2207 * c-omp.c (c_finish_omp_barrier): Ditto.
2208 (c_finish_omp_taskwait): Ditto.
2209 (c_finish_omp_flush): Ditto.
2210
6637388f
TG
22112011-10-11 Tristan Gingold <gingold@adacore.com>
2212
2213 * c.opt: (fallow-parameterless-variadic-functions): New.
2214
3797cb21
DS
22152011-09-08 Dodji Seketeli <dodji@redhat.com>
2216
2217 PR c++/33255 - Support -Wunused-local-typedefs warning
2218 * c-common.h (struct c_language_function::local_typedefs): New
2219 field.
9faeb493
UB
2220 (record_locally_defined_typedef, maybe_record_typedef_use)
2221 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2222 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2223 (maybe_record_typedef_use)
2224 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2225 * c.opt: Declare new -Wunused-local-typedefs flag.
2226
693ddb1b
EB
22272011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2228
2229 PR middle-end/50266
2230 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2231 computations.
2232
830c740f
RG
22332011-09-05 Richard Guenther <rguenther@suse.de>
2234
2235 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2236 of integer_minus_one_node for empty array upper bounds.
2237
892a371f
DS
22382011-08-28 Dodji Seketeli <dodji@redhat.com>
2239
2240 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2241 it's the first time it's being called on this main TU.
2242
0e3fdb48
RB
22432011-08-24 Richard Guenther <rguenther@suse.de>
2244
2245 PR c/49396
2246 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2247
22482011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2249
2250 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2251 defined in cpp_init_builtins and c_cpp_builtins.
2252
d4a83c10
JM
22532011-08-19 Joseph Myers <joseph@codesourcery.com>
2254
2255 * c-common.c (c_common_reswords): Add __builtin_complex.
2256 * c-common.h (RID_BUILTIN_COMPLEX): New.
2257
bbceee64
JM
22582011-08-18 Joseph Myers <joseph@codesourcery.com>
2259
2260 * c-common.c (c_common_reswords): Add _Noreturn.
2261 (keyword_is_function_specifier): Handle RID_NORETURN.
2262 * c-common.h (RID_NORETURN): New.
2263
0e3a99ae
AS
22642011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2265
2266 * c-common.c (unsafe_conversion_p): New function. Check if it is
2267 unsafe to convert an expression to the type.
2268 (conversion_warning): Adjust, use unsafe_conversion_p.
2269 * c-common.h (unsafe_conversion_p): New function declaration.
2270
20906c66
JJ
22712011-08-02 Jakub Jelinek <jakub@redhat.com>
2272
2273 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2274 (c_finish_omp_taskyield): New prototype.
2275 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2276 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2277 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2278 or RHS1 have side-effects, evaluate those too in the right spot,
2279 if it is a decl and LHS is also a decl, error out if they
2280 aren't the same.
2281 (c_finish_omp_taskyield): New function.
2282 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2283 * c-pragma.c (omp_pragmas): Add taskyield.
2284 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2285 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2286 PRAGMA_OMP_CLAUSE_MERGEABLE.
2287
770e5a2e
DS
22882011-07-25 Dodji Seketeli <dodji@redhat.com>
2289
2290 * c-common.h (set_underlying_type): Remove parm name from
2291 declaration.
2292
1baae426
RG
22932011-07-25 Romain Geissler <romain.geissler@gmail.com>
2294
2295 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2296
fcb21722
JM
22972011-07-22 Jason Merrill <jason@redhat.com>
2298
76f86d00
JM
2299 PR c++/49793
2300 * c.opt (Wnarrowing): New.
2301
3a636414
JM
2302 PR c++/30112
2303 * c-common.h: Declare c_linkage_bindings.
2304 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2305
fcb21722
JM
2306 PR c++/49813
2307 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2308 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2309 as flag_isoc99 for 'restrict'.
2310 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2311
02614448
ILT
23122011-07-21 Ian Lance Taylor <iant@google.com>
2313
2314 PR middle-end/49705
2315 * c-common.c (c_disable_warnings): New static function.
2316 (c_enable_warnings): New static function.
2317 (c_fully_fold_internal): Change local unused_p to bool. Call
2318 c_disable_warnings and c_enable_warnings rather than change
2319 c_inhibit_evaluation_warnings.
2320
34429675
JM
23212011-07-20 Jason Merrill <jason@redhat.com>
2322
2323 PR c++/6709 (DR 743)
2324 PR c++/42603 (DR 950)
2325 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2326 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2327 (CPP_DECLTYPE): New.
2328 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2329
5d49b6a7
RG
23302011-07-19 Richard Guenther <rguenther@suse.de>
2331
2332 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2333 * c-omp.c (c_finish_omp_for): Likewise.
2334
e84a58ff
EB
23352011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2336
2337 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2338 body on the next line.
2339
329af3c7
JM
23402011-07-08 Jason Merrill <jason@redhat.com>
2341
4063e61b
JM
2342 PR c++/45437
2343 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2344
329af3c7
JM
2345 PR c++/49673
2346 * c-common.c (c_apply_type_quals_to_decl): Don't check
2347 TYPE_NEEDS_CONSTRUCTING.
2348
1a072294
RG
23492011-07-06 Richard Guenther <rguenther@suse.de>
2350
2351 * c-common.c (c_common_nodes_and_builtins):
2352 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2353
fce5dddd
RG
23542011-07-05 Richard Guenther <rguenther@suse.de>
2355
2356 * c-common.c (c_common_nodes_and_builtins): Build all common
2357 tree nodes first.
2358
45d439ac
JJ
23592011-06-27 Jakub Jelinek <jakub@redhat.com>
2360
56300785
JJ
2361 * c-common.h (c_tree_chain_next): New static inline function.
2362
45d439ac
JJ
2363 * c-common.c (check_builtin_function_arguments): Handle
2364 BUILT_IN_ASSUME_ALIGNED.
2365
e0a8ecf2
AM
23662011-06-21 Andrew MacLeod <amacleod@redhat.com>
2367
2368 * c-common.c: Add sync_ or SYNC__ to builtin names.
2369 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2370
23712011-06-20 Pierre Vittet <piervit@pvittet.com>
2372
2373 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2374 handler.
2375 (gen_pragma_handler): New union.
2376 (internal_pragma_handler): New type.
2377 (c_register_pragma_with_data)
2378 (c_register_pragma_with_expansion_and_data): New functions.
2379
2380 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2381 (c_register_pragma, c_register_pragma_with_expansion)
2382 (c_invoke_pragma_handler): Changed to work with
2383 internal_pragma_handler.
2384 (c_register_pragma_with_data)
2385 (c_register_pragma_with_expansion_and_data): New functions.
2386
677f3fa8
JM
23872011-06-14 Joseph Myers <joseph@codesourcery.com>
2388
2389 * c-common.c: Include common/common-target.h.
2390 (handle_section_attribute): Use
2391 targetm_common.have_named_sections.
2392 * c-cppbuiltin.c: Include common/common-target.h.
2393 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2394
d7fc8c14
RG
23952011-06-10 Richard Guenther <rguenther@suse.de>
2396
2397 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2398 to print a IDENTIFIER_NODE.
2399
10e48e39
RO
24002011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2401 Joseph Myers <joseph@codesourcery.com>
2402
2403 * c.opt (fbuilding-libgcc): New option.
2404 * c-cppbuiltin.c (c_cpp_builtins): Define
2405 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2406
6976ae51
JM
24072011-06-07 Jason Merrill <jason@redhat.com>
2408
3ff60975
JM
2409 * c-common.c (max_tinst_depth): Lower default to 900.
2410
6976ae51
JM
2411 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2412
009db074
RG
24132011-06-07 Richard Guenther <rguenther@suse.de>
2414
2415 * c-common.c (c_common_nodes_and_builtins): Do not set
2416 size_type_node or call set_sizetype.
2417
b4592b92
DS
24182011-06-07 Dodji Seketeli <dodji@redhat.com>
2419
2420 PR debug/49130
2421 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2422 type when using pointer comparison to compare types.
b4592b92 2423
014ab419
JW
24242011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2425
2426 * c.opt: Add -Wdelete-non-virtual-dtor.
2427 * c-opts.c (c_common_handle_option): Include it in -Wall.
2428
4f60111f
NF
24292011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2430
2431 PR bootstrap/49190
2432
2433 Revert:
2434 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2435
2436 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2437 not tree_common.
2438
4cc4f2f4
JJ
24392011-05-27 Jakub Jelinek <jakub@redhat.com>
2440
2441 PR c++/49165
2442 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2443 C++ don't call c_common_truthvalue_conversion on void type arms.
2444
38e01f9e
NF
24452011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2446
2447 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2448 (stmt_list_stack): Define.
2449 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2450 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2451
92e948a8
NF
24522011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2453
2454 * c-common.c (warning_candidate_p): Check for BLOCKs.
2455
a2fc3e63
NF
24562011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2457
2458 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2459 not tree_common.
2460
0957c029
JJ
24612011-05-25 Jakub Jelinek <jakub@redhat.com>
2462
2463 * c-common.c (def_fn_type): Remove extra va_end.
2464
828fb3ba
JM
24652011-05-23 Jason Merrill <jason@redhat.com>
2466
2467 PR c++/48106
2468 * c-common.c (c_common_get_narrower): New.
2469 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2470
dde05067
NF
24712011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2472
2473 * c-common.h (check_function_arguments): Tweak prototype of
2474 check_function_arguments.
2475 * c-common.c (check_function_arguments): Likewise. Adjust
2476 calls to check_function_nonnull, check_function_format, and
2477 check_function_sentinel.
2478 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2479 separate attributes and typelist arguments. Use
2480 FOREACH_FUNCTION_ARGS to iterate over argument types.
2481
3c0d13bf
PC
24822011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2483
2484 * c-common.c (c_common_reswords): Reorder.
2485 * c-common.h (rid): Likewise.
2486
8242dd04
NF
24872011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2488
2489 * c-common.c (def_fn_type): Don't call build_function_type, call
2490 build_function_type_array or build_varargs_function_type_array
2491 instead.
2492 (c_common_nodes_and_builtins): Likewise.
2493
3d528853
NF
24942011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2495
2496 * c-common.c (c_add_case_label): Omit the loc argument to
2497 build_case_label.
2498 * c-common.h (build_case_label): Remove.
2499 * c-semantics.c (build_case_label): Remove.
2500
a04a722b
JM
25012011-05-05 Joseph Myers <joseph@codesourcery.com>
2502
2503 * c-objc.h (objc_start_method_definition): Update prototype.
2504 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2505
e19a18d4
NF
25062011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2507
2508 * c-common.c (check_main_parameter_types): Reindent. Don't use
2509 TYPE_ARG_TYPES directly.
2510 (handle_nonnull_attribute): Likewise.
2511 (sync_resolve_params): Likewise.
2512 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2513 to check_format_string.
2514 (handle_format_attribute): Likewise.
2515 (check_format_string): Take a function type to examine instead of
2516 a type list. Use a function_arg_iterator to step through argument
2517 types.
2518
c62c040f
RG
25192011-05-04 Richard Guenther <rguenther@suse.de>
2520
2521 * c-common.c (fix_string_type): Use size_int for index type bounds.
2522 (start_fname_decls): Do not pass NULL to build_int_cst.
2523 (c_init_attributes): Likewise.
2524 * c-lex.c (c_lex_with_flags): Likewise.
2525
c12ff9d8
JM
25262011-04-27 Jason Merrill <jason@redhat.com>
2527
2528 * c-common.c (make_tree_vector_from_list): New.
2529 * c-common.h: Declare it.
2530
304dfbe3
RG
25312011-04-26 Richard Guenther <rguenther@suse.de>
2532
2533 PR preprocessor/48248
2534 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2535 for output size with -P.
2536
3c0d13bf
PC
25372011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2538
2539 * c-common.c (struct c_common_resword): Add __underlying_type.
2540 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2541
04695783
JM
25422011-04-20 Jim Meyering <meyering@redhat.com>
2543
2544 * c-format.c (init_dollar_format_checking): Remove useless
2545 if-before-free.
2546
0dc33c3c
NP
25472011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2548
2549 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2550 (objc_detect_field_duplicates): New.
0dc33c3c 2551 * stub-objc.c: Likewise.
3c0d13bf 2552
c59633d9
NP
25532011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2554
2555 * stub-objc.c (objc_declare_protocols): Renamed to
2556 objc_declare_protocol.
2557 * c-objc.h: Likewise.
3c0d13bf 2558
32dabdaf
NP
25592011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2560
2561 * stub-objc.c (objc_declare_class): Updated argument name.
2562
81f653d6
NF
25632011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2564
2565 * c-common.h (c_common_init_ts): Declare.
2566 * c-common.c (c_common_init_ts): Define.
2567
eb345401
NP
25682011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2569
2570 * c-objc.h (objc_build_message_expr): Updated prototype.
2571 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2572
a358e188
MJ
25732011-04-12 Martin Jambor <mjambor@suse.cz>
2574
2575 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2576 of cgraph_node.
2577
e6313a78
RG
25782011-04-11 Richard Guenther <rguenther@suse.de>
2579
2580 * c-common.c (complete_array_type): Build a range type of
2581 proper type.
2582
dcf0c47e
NF
25832011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2584
2585 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2586 (handle_type_generic_attribute): Likewise.
2587
1ee44b26
JM
25882011-04-07 Jason Merrill <jason@redhat.com>
2589
2590 PR c++/48450
2591 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2592 conversion from C++0x scoped enum.
2593
acce4e77
JM
25942011-04-06 Joseph Myers <joseph@codesourcery.com>
2595
2596 * c-target-def.h: New file.
2597 * c-target.def: New file.
2598 * c-target.h: New file.
2599 * c-common.c (targetcm): Don't define here.
2600 * c-common.h (default_handle_c_option): Declare.
2601 * c-format.c: Include c-target.h instead of target.h.
2602 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2603 include tm.h.
2604 (default_handle_c_option): Move from targhooks.c.
2605
e2eefb55
JJ
26062011-03-29 Jakub Jelinek <jakub@redhat.com>
2607
2608 PR preprocessor/48248
2609 * c-ppoutput.c (print): Add src_file field.
2610 (init_pp_output): Initialize it.
2611 (maybe_print_line): Don't optimize by adding up to 8 newlines
2612 if map->to_file and print.src_file are different file.
2613 (print_line): Update print.src_file.
2614
ba78087b
KT
26152011-03-25 Kai Tietz <ktietz@redhat.com>
2616
2617 * c-ada-spec.c (compare_comment): Use filename_cmp
2618 instead of strcmp for filename.
2619
0edf1bb2
JL
26202011-03-25 Jeff Law <law@redhat.com>
2621
2622 * c-family/c-common.c (def_fn_type): Add missing va_end.
2623
c7dc8804
JM
26242011-03-25 Jason Merrill <jason@redhat.com>
2625
2626 * c.opt: Add -std=c++03.
2627
d1d879b1
EB
26282011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2629
2630 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2631
62d784f7
KT
26322011-03-17 Kai Tietz
2633
2634 PR target/12171
5050afdf
KT
2635 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2636 Display allowed attributes for function pointer types.
2637 (pp_c_attributes_display): New function to display
2638 attributes having affects_type_identity flag set to true.
2639 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2640
62d784f7
KT
2641 * c-common.c (c_common_attribute_table):
2642 Add new element.
2643 (c_common_format_attribute_table): Likewise.
2644
82d37118
JM
26452011-03-18 Jason Merrill <jason@redhat.com>
2646
49a000c3
JM
2647 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2648 * c-common.h: Don't declare it here.
2649 * c-common.c: Or define it here.
2650 * c-opts.c (c_common_handle_option): Or set it here.
2651
82d37118
JM
2652 PR c++/35315
2653 * c-common.c (handle_transparent_union_attribute): Don't
2654 make a duplicate type in C++.
2655
17bc631c
JM
26562011-03-15 Jason Merrill <jason@redhat.com>
2657
2658 * c-common.c (max_constexpr_depth): New.
2659 * c-common.h: Declare it.
2660 * c-opts.c (c_common_handle_option): Set it.
2661 * c.opt (fconstexpr-depth): New option.
2662
1b9b91a6
JM
26632011-03-11 Jason Merrill <jason@redhat.com>
2664
f231b5ff
JM
2665 * c-common.c (attribute_takes_identifier_p): Add missing const.
2666
1b9b91a6
JM
2667 PR c++/46803
2668 * c-common.c (attribute_takes_identifier_p): Assume that an
2669 unknown attribute takes an identifier.
2670
a19e4d44
NF
26712011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2672
2673 PR c/47786
2674 * c-common.c (c_type_hash): Call list_length instead of iterating
2675 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2676
982d62f6
JJ
26772011-02-19 Jakub Jelinek <jakub@redhat.com>
2678
2679 PR c/47809
2680 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2681
0a256240
NP
26822011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2683
2684 * c.opt (fobjc-abi-version=) New.
2685 (fobjc-nilcheck): New.
2686
ba9e6dd5
NF
26872011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2688
2689 PR c++/46890
2690 * c-common.h (keyword_is_decl_specifier): Declare.
2691 * c-common.c (keyword_is_decl_specifier): Define.
2692 (keyword_is_function_specifier): New function.
2693
7273813a
JJ
26942011-01-26 Jakub Jelinek <jakub@redhat.com>
2695
2696 PR c/47473
2697 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2698 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2699 REAL_TYPE.
2700
908ef79b
AC
27012011-01-26 Arnaud Charlet <charlet@adacore.com>
2702
2703 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2704
237e9384
JJ
27052011-01-26 Jakub Jelinek <jakub@redhat.com>
2706
2707 PR pch/47430
2708 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2709 after init_c_lex if pch_file is set.
2710
47ea1edf
DK
27112011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2712
d4dba752 2713 PR c++/43601
47ea1edf
DK
2714 * c.opt (-fkeep-inline-dllexport): New switch.
2715
2aa9c6ae
RG
27162011-01-12 Richard Guenther <rguenther@suse.de>
2717
2718 PR middle-end/32511
2719 * c-common.c (handle_weak_attribute): Warn instead of error
2720 on declaring an inline function weak.
2721
7bd11157
TT
27222011-01-05 Tom Tromey <tromey@redhat.com>
2723
2724 * c-common.h (lvalue_error): Update.
2725 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2726 not error.
2727
0e66e494 27282010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2729
b4f588c4
NP
2730 PR objc/47075
2731 * c-objc.h (objc_finish_message_expr): Added argument to
2732 prototype.
2733
f4da8dce
NF
27342010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2735
2736 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2737 Use prototype_p.
2738
46270f14
NP
27392010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2740
2741 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2742 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2743
4816c593
NF
27442010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2745
2746 * c-common.h (readonly_error): Declare.
2747 * c-common.c (readonly_error): Define.
2748
7a6daeb0
NF
27492010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2750
2751 * c-common.h (invalid_indirection_error): Declare.
2752 * c-common.c (invalid_indirection_error): Define.
2753
892f6119
RG
27542010-12-03 Richard Guenther <rguenther@suse.de>
2755
2756 PR c/46745
2757 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2758 (pp_c_unary_expression): Likewise.
2759 (pp_c_expression): Likewise.
2760
6c39e757
NP
27612010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2762
2763 * c-common.h (objc_finish_function): New.
2764 (objc_non_volatilized_type): Removed.
2765 (objc_type_quals_match): Removed.
2766 * stub-objc.c (objc_finish_function): New.
2767 (objc_non_volatilized_type): Removed.
2768 (objc_type_quals_match): Removed.
9faeb493 2769
7c475d11
JM
27702010-11-30 Joseph Myers <joseph@codesourcery.com>
2771
2772 * c-common.h (parse_optimize_options): Declare.
2773 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2774 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2775
71f3e391
JM
27762010-11-29 Joseph Myers <joseph@codesourcery.com>
2777
2778 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2779 GET_ENVIRONMENT.
2780 * c-pch.c (O_BINARY): Don't define here.
2781 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2782
d5fabb58
JM
27832010-11-25 Joseph Myers <joseph@codesourcery.com>
2784
2785 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2786 targetm.except_unwind_info.
2787
299404a1
JM
27882010-11-23 Joseph Myers <joseph@codesourcery.com>
2789
2790 * c-opts.c (c_common_handle_option): Pass location to
2791 set_struct_debug_option.
2792
c98cd5bf
JM
27932010-11-23 Joseph Myers <joseph@codesourcery.com>
2794
2795 * c-common.c (visibility_options): Move from ../opts.c.
2796 * c-common.h (struct visibility_flags, visibility_options):
2797 Declare here.
2798 * c-opts.c (finish_options): Rename to c_finish_options.
2799 (c_common_init): Update call to finish_options.
2800
a9546771
NP
28012010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2802
2803 PR objc/34033
2804 * c-lex.c (lex_string): Check that each string in an Objective-C
2805 string concat sequence starts with either one or zero '@', and
2806 that there are no spurious '@' signs at the end.
2807
24a57808
JM
28082010-11-20 Joseph Myers <joseph@codesourcery.com>
2809
2810 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2811 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2812 HANDLE_PRAGMA_VISIBILITY.
2813 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2814 HANDLE_PRAGMA_VISIBILITY): Don't define.
2815 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2816
a9aa2c3a
NF
28172010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2818
2819 PR c++/16189
2820 PR c++/36888
2821 PR c++/45331
2822 * c-common.h (keyword_begins_type_specifier): Declare.
2823 (keyword_is_storage_class_specifier): Declare.
2824 (keyword_is_type_qualifier): Declare.
2825 * c-common.c (keyword_begins_type_specifier): New function.
2826 (keyword_is_storage_class_specifier): New function.
2827 (keyword_is_type_qualifier): Declare.
2828
5386338c
JM
28292010-11-19 Joseph Myers <joseph@codesourcery.com>
2830
2831 PR c/46547
2832 * c-common.c (in_late_binary_op): Define.
2833 (c_common_truthvalue_conversion): Check in_late_binary_op before
2834 calling c_save_expr.
2835 * c-common.h (in_late_binary_op): Declare.
2836
69ccdddb
JM
28372010-11-19 Joseph Myers <joseph@codesourcery.com>
2838
2839 * c-opts.c (c_common_handle_option): Update calls to
2840 set_struct_debug_option.
2841
6b192a09
NP
28422010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2843
2844 * c-common.h (objc_declare_protocols): Added additional argument.
2845 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2846
fb52b50a
NF
28472010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2848
2849 PR c/33193
2850 * c-common.h (build_real_imag_expr): Declare.
2851 * c-semantics.c (build_real_imag_expr): Define.
2852
b37421c6
JM
28532010-11-17 Joseph Myers <joseph@codesourcery.com>
2854
2855 * c-opts.c (c_common_parse_file): Take no arguments.
2856 * c-common.h (c_common_parse_file): Update prototype.
2857
07078664
JJ
28582010-11-16 Jakub Jelinek <jakub@redhat.com>
2859
2860 PR c++/46401
2861 * c-common.c (warning_candidate_p): Don't track non-const calls
2862 or STRING_CSTs.
2863
c6a13190
ILT
28642010-11-15 Ian Lance Taylor <iant@google.com>
2865
2866 * c-lex.c (init_c_lex): Set macro debug callbacks if
2867 flag_dump_go_spec is set.
2868
925e8657
NP
28692010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2870
2871 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2872 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2873
bb0a9581
NF
28742010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2875
2876 PR preprocessor/45038
2877 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2878 dialects.
2879
c5fa0890
JM
28802010-11-12 Joseph Myers <joseph@codesourcery.com>
2881
2882 * c-common.h (c_family_lang_mask): Declare.
2883 * c-opts.c (c_family_lang_mask): Make extern.
2884 * c-pragma.c (handle_pragma_diagnostic): Use
2885 control_warning_option.
2886
a4d8c676
JM
28872010-11-12 Joseph Myers <joseph@codesourcery.com>
2888
2889 * c-common.c (parse_optimize_options): Update call to
2890 decode_options.
2891 * c-common.h (c_common_handle_option): Update prototype.
2892 * c-opts.c (c_common_handle_option): Take location_t parameter and
2893 pass it to other functions.
2894
f954bd2c
JM
28952010-11-11 Joseph Myers <joseph@codesourcery.com>
2896
2897 * c-opts.c (warning_as_error_callback): Remove.
2898 (c_common_initialize_diagnostics): Don't call
2899 register_warning_as_error_callback.
2900 (c_common_handle_option): Handle -Werror=normalized= here.
2901
d8a07487
JM
29022010-11-10 Joseph Myers <joseph@codesourcery.com>
2903
2904 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2905 in diagnostic.
2906 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2907 letter.
2908 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2909 Remove trailing '.' from diagnostics.
2910 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2911
d5478783
JM
29122010-11-10 Joseph Myers <joseph@codesourcery.com>
2913
2914 * c-common.c (parse_optimize_options): Pass global_dc to
2915 decode_options.
2916 * c-opts.c (c_common_handle_option): Pass &global_options to
2917 set_Wstrict_aliasing.
2918 * c.opt (v): Don't mark Common or document here.
2919
91ebb981
IS
29202010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2921
2922 PR target/44981
2923 * c-format.c (format_type): New type gcc_objc_string_format_type.
2924 (valid_stringptr_type_p): New.
2925 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2926 (check_format_string): Pass expected type, use
91ebb981
IS
2927 valid_stringptr_type_p (), check that the format string types are
2928 consistent with the format specification.
2929 (decode_format_attr): Warn if NSString is used outside objective-c.
2930 (format_types_orig): Add NSString.
2931 (format_name): New.
2932 (format_flags): New.
2933 (check_format_arg): Handle format strings requiring an external parser.
2934 first_target_format_type: New variable.
2935 (handle_format_attribute): Set up first_target_format_type, pass the
2936 expected format arg string type to check_format_string().
2937 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2938 * stub-objc.c (objc_string_ref_type_p): New.
2939 (objc_check_format_arg): New.
2940
bede2adc
NP
29412010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2942
9faeb493 2943 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2944 * c-common.h (objc_build_class_component_ref): New.
2945 * stub-objc.c (objc_build_class_component_ref): New.
2946
9a179d01
NP
29472010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2948
2949 * c.opt (Wproperty-assign-default): New option.
2950
22d8d616
NP
29512010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2952
2953 Implemented -fobjc-std=objc1 flag.
2954 * c.opt (fobjc-std=objc1): New option.
2955
2debdb4f
NP
29562010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2957
2958 Implemented format and noreturn attributes for Objective-C methods.
2959 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2960 attribute for Objective-C methods.
2961
ec52b111
JM
29622010-10-31 Jason Merrill <jason@redhat.com>
2963
2964 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2965 EXPR_LOC_OR_HERE.
2966
46a88c12
NP
29672010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2968
2969 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2970 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2971 (objc_add_property_declaration): Removed arguments for copies and
2972 ivar.
2973 (objc_build_getter_call): Renamed to
2974 objc_maybe_build_component_ref.
2975 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2976 (objc_is_property_ref): New.
2977 * c-common.c (c_common_reswords): Removed copies and ivar.
2978 * stub-objc.c (objc_add_property_declaration): Removed arguments
2979 for copies and ivar.
2980 (objc_build_getter_call): Renamed to
2981 objc_maybe_build_component_ref.
2982 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2983 (objc_is_property_ref): New.
9faeb493 2984
1e4bf85b
AC
29852010-10-29 Arnaud Charlet <charlet@adacore.com>
2986 Matthew Gingell <gingell@adacore.com>
2987
2988 * c-ada-spec.c (separate_class_package): New function.
2989 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2990 name of their enclosing package.
2991 (print_ada_declaration): Use separate_class_package.
2992
81f0bab2
JM
29932010-10-27 Jason Merrill <jason@redhat.com>
2994
2b08f2c5
JM
2995 * c-common.c (c_common_reswords): Add __is_literal_type.
2996 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2997
81f0bab2
JM
2998 * c-common.c (check_case_value): Remove special C++ code.
2999
200290f2
NP
30002010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3001
3002 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3003 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3004 and RID_LAST_PATTR.
3005 (objc_add_property_declaration): Added additional arguments.
3006 (objc_property_attribute_kind): Removed.
3007 (objc_set_property_attr): Removed.
3008 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3009 copy and nonatomic.
3010 * stub-objc.c (objc_add_property_declaration): Added additional
3011 arguments.
3012 (objc_set_property_attr): Removed.
9faeb493 3013
f614132b
NP
30142010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3015
3016 * c-common.h (objc_add_property_variable): Renamed to
3017 objc_add_property_declaration. Added location argument.
3018 * stub-objc.c (objc_add_property_variable): Same change.
3019
b8a18805
NP
30202010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3021
3022 * c-common.h (objc_maybe_printable_name): New.
3023 * stub-objc.c (objc_maybe_printable_name): New.
3024
30cd1c5d
AS
30252010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3026 Andrew Pinski <pinskia@gmail.com>
3027
3028 * c-common.h (c_common_mark_addressable_vec): Declare.
3029 * c-common.c (c_common_mark_addressable_vec): New function.
3030
249a82c4
NP
30312010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3032
3033 * c-common.h (objc_set_method_type): Removed.
3034 (objc_add_method_declaration): Added boolean argument.
3035 (objc_start_method_definition): Same change.
3036 (objc_build_method_signature): Same change.
3037 * stub-objc.c (objc_set_method_type): Removed.
3038 (objc_add_method_declaration): Added boolean argument.
3039 (objc_start_method_definition): Same change.
3040 (objc_build_method_signature): Same change.
3041
977e30bc
NP
30422010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3043
3044 * c-common.h (finish_file): Removed.
3045 (objc_write_global_declarations): New.
3046 * c-opts.c (c_common_parse_file): Do not call finish_file.
3047 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3048
da57d1b9
NP
30492010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3050
3051 Implemented parsing @synthesize and @dynamic for
3052 Objective-C/Objective-C++.
3053 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3054 (objc_add_synthesize_declaration): New.
3055 (objc_add_dynamic_declaration): New.
3056 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3057 * stub-objc.c (objc_add_synthesize_declaration): New.
3058 (objc_add_dynamic_declaration): New.
9faeb493 3059
0069111f
MM
30602010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3061
3062 PR target/46041
3063 * c-cppbuiltin.c (mode_has_fma): Move function here from
3064 builtins.c. Don't use the fma optab, instead just use the
3065 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3066 using -save-temps.
3067
e426b47b
NP
30682010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3069
3070 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3071
e426b47b
NP
3072 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3073
9faeb493 3074 Radar 4330422
e426b47b
NP
3075 * c-common.h (objc_non_volatilized_type): New declaration
3076 * stub-objc.c (objc_non_volatilized_type): New stub.
3077
90fbfdc3
NP
30782010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3079
e426b47b 3080 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3081
3082 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3083
9faeb493 3084 Radar 4133425
90fbfdc3 3085 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3086 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3087
c37d8c30
IS
30882010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3089
3090 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3091 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3092 (objc_ivar_visibility_kind): New enum.
3093 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3094 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3095 visibility enum.
3096
1b1562a5
MM
30972010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3098
3099 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3100 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3101 has the appropriate fma builtins.
3102 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3103
668ea4b1
IS
31042010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3105
1b1562a5 3106 merge from FSF apple 'trunk' branch.
668ea4b1 3107 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3108
668ea4b1
IS
3109 Radars 4436866, 4505126, 4506903, 4517826
3110 * c-common.c (c_common_resword): Define @property and its attributes.
3111 * c-common.h: Define property attribute enum entries.
3112 (OBJC_IS_PATTR_KEYWORD): New.
3113 (objc_property_attribute_kind): New enum.
3114 Declare objc_set_property_attr (), objc_add_property_variable (),
3115 objc_build_getter_call () and objc_build_setter_call ().
3116 * stub-objc.c (objc_set_property_attr): New stub.
3117 (objc_add_property_variable): Likewise.
3118 (objc_build_getter_call): Likewise.
3119 (objc_build_setter_call) Likewise.
1b1562a5 3120
a1178b30
IS
31212010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3122
1b1562a5 3123 merge from FSF apple 'trunk' branch.
a1178b30
IS
3124 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3125
3126 Radar 3803157 (method attributes)
3127 * c-common.c (handle_deprecated_attribute): Recognize
3128 objc methods as valid declarations.
3129 * c-common.h: Declare objc_method_decl ().
1b1562a5 3130 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3131
a75bfaa6
JM
31322010-10-08 Joseph Myers <joseph@codesourcery.com>
3133
3134 * c-common.c (parse_optimize_options): Call
3135 decode_cmdline_options_to_array_default_mask before
3136 decode_options. Update arguments to decode_options.
3137 * c-common.h (c_common_init_options_struct): Declare.
3138 * c-opts.c (c_common_init_options_struct): New. Split out from
3139 c_common_init_options.
3140
f05b9d93
NP
31412010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3142
3143 Implemented fast enumeration for Objective-C.
3144 * c-common.h (objc_finish_foreach_loop): New.
3145 * stub-objc.c (objc_finish_foreach_loop): New.
3146
1ebe4b4f
JM
31472010-10-05 Joseph Myers <joseph@codesourcery.com>
3148
3149 * c-common.h (struct diagnostic_context): Don't declare here.
3150 (c_common_initialize_diagnostics): Declare using
3151 diagnostic_context typedef.
3152 * c-opts.c (c_common_handle_option): Pass global_dc to
3153 handle_generated_option.
3154
d4d24ba4
JM
31552010-10-04 Joseph Myers <joseph@codesourcery.com>
3156
3157 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3158 handle_generated_option.
3159
478a1c5b
ILT
31602010-10-03 Ian Lance Taylor <iant@google.com>
3161
3162 * c.opt (-fplan9-extensions): New option.
3163
82a1c2fe
FXC
31642010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3165
3166 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3167 Remove.
3168 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3169 of duplicating code.
3170
92902b1b
IS
31712010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3172
3173 * c-common.c: Add two new entries for @optional
3174 and @required keywords.
3175
3176 merge from FSF 'apple/trunk' branch.
3177 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3178
3179 Radar 4386773
3180 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3181 objective-c keywords.
3182 (objc_set_method_opt): New declaration.
3183 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3184
46625112
JM
31852010-09-30 Joseph Myers <joseph@codesourcery.com>
3186
3187 * c-common.c (handle_optimize_attribute): Pass &global_options to
3188 cl_optimization_save and cl_optimization_restore.
3189 * c-opts.c (c_common_handle_option): Pass &global_options to
3190 handle_generated_option.
3191 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3192 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3193 &global_options to cl_optimization_restore.
3194
49b91f05
NP
31952010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3196
3197 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3198 Objective-C/Objective-C++ keywords.
3199
13ed556f 32002010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3201
9faeb493
UB
3202 Merge from 'apple/trunk' branch on FSF servers.
3203
a6341d57
NP
3204 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3205
3206 Radar 4281748
3207 * c-common.h (objc_check_global_decl): New declaration.
3208 * stub-objc.c (objc_check_global_decl): New stub.
3209
f0036cca
JM
32102010-09-29 Joseph Myers <joseph@codesourcery.com>
3211
3212 * c.opt: Don't use VarExists.
3213
e3339d0f
JM
32142010-09-29 Joseph Myers <joseph@codesourcery.com>
3215
3216 * c-common.c (c_cpp_error): Update names of diagnostic_context
3217 members.
3218 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3219 cl_optimization members.
3220 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3221 sanitize_cpp_opts, finish_options): Update names of cpp_options
3222 members.
3223
1973201f
NP
32242010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3225
3226 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3227 (objc_is_reserved_word): Removed.
3228 * c-common.c: Updated comments.
3229 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3230 objc_is_reserved_word.
3231 * stub-objc.c (objc_is_reserved_word): Removed.
3232
f7e71da5
IS
32332010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3234
9faeb493 3235 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3236 include attributes.
3237 (objc_start_method_definition): Likewise.
3238 (objc_build_keyword_decl): Likewise.
3239 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3240 (objc_start_method_definition): Likewise.
3241 (objc_build_keyword_decl): Likewise.
3242
c165dca7
IS
32432010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3244
3245 * c-common.h (objc_start_class_interface): Adjust prototype.
3246 (objc_start_category_interface): Likewise.
3247 (objc_start_protocol): Likewise.
3248 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3249 (objc_start_class_interface): Likewise.
3250 (objc_start_category_interface): Likewise.
3251
7458026b
ILT
32522010-09-27 Ian Lance Taylor <iant@google.com>
3253
3254 * c-common.c (c_common_attribute_table): Add no_split_stack.
3255 (handle_no_split_stack_attribute): New static function.
3256
b581b85b
NP
32572010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3258
9faeb493 3259 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3260
3261 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3262
9faeb493 3263 Radar 4229905
b581b85b
NP
3264 * c-common.h (objc_have_common_type): New declaration.
3265 * stub-objc.c (objc_have_common_type): New stub.
3266
3267 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3268
3269 Radar 4154928
3270 * c-common.h (objc_common_type): New prototype.
9faeb493 3271 * stub-objc.c (objc_common_type): New stub.
b581b85b 3272
46a4da10
JH
32732010-09-24 Jan Hubicka <jh@suse.cz>
3274
3275 * c-common.c (handle_leaf_attribute): New function.
3276 (struct attribute_spec c_common_att): Add leaf.
3277
e200444e
JM
32782010-09-22 Joseph Myers <joseph@codesourcery.com>
3279
3280 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3281 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3282 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3283 -include-barrier, -include-directory, -include-directory=,
3284 -include-directory-after, -include-directory-after=,
3285 -include-prefix, -include-prefix=, -include-with-prefix,
3286 -include-with-prefix=, -include-with-prefix-after,
3287 -include-with-prefix-after=, -include-with-prefix-before,
3288 -include-with-prefix-before=, -no-integrated-cpp,
3289 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3290 -output=, -pedantic, -pedantic-errors, -preprocess,
3291 -print-missing-file-dependencies, -trace-includes, -traditional,
3292 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3293 -user-dependencies, -verbose, -write-dependencies,
3294 -write-user-dependencies, no-integrated-cpp, traditional): New.
3295
29a80ea6
NP
32962010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3297
3298 PR objc/23710
ac1fc2fc
NP
3299 * c-common.h (objc_start_method_definition): Return bool instead
3300 of void.
3301 * stub-objc.c (objc_start_method_definition): Return bool instead
3302 of void.
3303
33042010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3305
3306 PR objc/25965
3307 * c-common.h (objc_get_interface_ivars): New declaration.
3308 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3309
de621752
ILT
33102010-09-15 Ian Lance Taylor <iant@google.com>
3311
3312 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3313 messages. Remove period at end of warning message.
de621752 3314
ba885ec5
NS
33152010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3316
3317 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3318 (handle_alias_attribute): ... here.
3319 (handle_ifunc_attribute): New.
3320
c5ee1358
MM
33212010-09-06 Mark Mitchell <mark@codesourcery.com>
3322
3323 * c-common.h (do_warn_double_promotion): Declare.
3324 * c-common.c (do_warn_double_promotion): Define.
3325
0a0b3574
MM
33262010-09-05 Mark Mitchell <mark@codesourcery.com>
3327
3328 * c.opt (Wdouble-promotion): New.
3329
d1779886
JM
33302010-09-02 Joseph Myers <joseph@codesourcery.com>
3331
3332 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3333 fvtable-thunks, fxref): Mark no longer supported in help text.
3334
2d2bd949
JM
33352010-09-02 Joseph Myers <joseph@codesourcery.com>
3336
3337 * c.opt (Wimport, fall-virtual, falt-external-templates,
3338 fdefault-inline, fenum-int-equiv, fexternal-templates,
3339 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3340 fname-mangling-version-, fnew-abi, fnonnull-objects,
3341 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3342 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3343 applicable.
3344 (fhandle-exceptions): Mark with Alias and Warn.
3345 * c-opts.c (c_common_handle_option): Don't handle options marked
3346 as ignored.
3347
5de8299c
JM
33482010-09-02 Joseph Myers <joseph@codesourcery.com>
3349
3350 * c.opt (Wcomments, Werror-implicit-function-declaration,
3351 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3352 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3353 aliases.
3354 * c-common.c (option_codes): Use OPT_Wcomment instead of
3355 OPT_Wcomments.
3356 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3357 Don't handle options marked as aliases.
3358
0ceb0201
RG
33592010-08-25 Richard Guenther <rguenther@suse.de>
3360
3361 * c-common.c (c_common_get_alias_set): Remove special
3362 handling for pointers.
3363
ac47786e
NF
33642010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3365
3366 * c-common.c: Use FOR_EACH_VEC_ELT.
3367 * c-gimplify.c: Likewise.
3368 * c-pragma.c: Likewise.
3369
c878765b
JM
33702010-08-16 Joseph Myers <joseph@codesourcery.com>
3371
3372 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3373 RejectDriver.
3374 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3375 RejectDriver.
3376 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3377 instead of OPT_MDX and OPT_MMDX.
3378
603349bf
JM
33792010-08-16 Joseph Myers <joseph@codesourcery.com>
3380
3381 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3382
644fa7ac
JM
33832010-08-12 Joseph Myers <joseph@codesourcery.com>
3384
3385 * c.opt (MD, MMD): Change to MDX and MMDX.
3386 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3387
481e1176
JM
33882010-08-11 Joseph Myers <joseph@codesourcery.com>
3389
3390 * c-opts.c (c_common_handle_option): Call handle_generated_option
3391 instead of handle_option.
3392
ac8dc9f7
NF
33932010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3394
3395 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3396 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3397
4f8c876d
NF
33982010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3399
3400 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3401 (pending_redefine_extname): Change type to a VEC.
3402 (add_to_renaming_pragma_list): Update for new type of
3403 pending_redefine_extname.
ac8dc9f7 3404 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3405
3b0c690e
AC
34062010-08-04 Arnaud Charlet <charlet@adacore.com>
3407
3408 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3409 visited.
3410 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3411 decide whether a type has already been declared/seen.
3412 Do not go to the original type.
3413 (dump_nested_types): New parameter forward.
3414 Generate forward declaration if needed and mark type as visited.
3415 (print_ada_declaration): Call dump_nested_types if not already done.
3416 Mark types as visited.
3417
1890bccc
JM
34182010-08-03 Joseph Myers <joseph@codesourcery.com>
3419
3420 * c.opt (-print-pch-checksum): Remove option.
3421 * c-opts.c (c_common_handle_option): Don't handle
3422 OPT_print_pch_checksum.
3423
5f20c657
JM
34242010-07-27 Joseph Myers <joseph@codesourcery.com>
3425
3426 * c-common.h (c_common_handle_option): Update prototype and return
3427 value type.
3428 * c-opts.c (c_common_handle_option): Update prototype and return
3429 value type. Update calls to handle_option and
3430 enable_warning_as_error.
3431
f551f80c
JJ
34322010-07-27 Jakub Jelinek <jakub@redhat.com>
3433
3434 PR c/45079
3435 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3436
61ff2bdc
JM
34372010-07-27 Joseph Myers <joseph@codesourcery.com>
3438
3439 * c-common.h (c_common_missing_argument): Remove.
3440 * c-opts.c (c_common_missing_argument): Remove.
3441 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3442 idirafter, imacros, include, isysroot, isystem, iquote): Add
3443 MissingArgError.
3444 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3445
7a9bf9a4
JM
34462010-07-27 Joseph Myers <joseph@codesourcery.com>
3447
3448 * c-common.h (c_common_option_lang_mask,
3449 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3450 New.
3451 (c_common_init_options): Update prototype.
3452 * c-opts.c (c_common_option_lang_mask): New.
3453 (c_common_initialize_diagnostics): Split out of
3454 c_common_init_options.
3455 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3456 New.
3457 (c_common_init_options): Update prototype. Use decoded options in
3458 search for -lang-asm.
3459
910ad8de
NF
34602010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3461
3462 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3463 * c-format.c: Likewise.
3464
718f9c0f
MLI
34652010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3466
3467 * c-common.h: Include diagnostic-core.h. Error if already
3468 included.
3469 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3470
4d451982
MLI
34712010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3472
3473 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3474 Do not include expr.h
3475 (vector_mode_valid_p): Move here.
3476
119fe915
SB
34772010-06-21 DJ Delorie <dj@redhat.com>
3478
3479 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3480 allow these pragmas anywhere.
3481
34822010-06-14 Jakub Jelinek <jakub@redhat.com>
3483
3484 PR bootstrap/44509
3485 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3486 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3487 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3488 ggc_strdup instead of xstrdup.
3489
34902010-06-10 Jakub Jelinek <jakub@redhat.com>
3491
3492 * c-cppbuiltin.c: Include cpp-id-data.h.
3493 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3494 (lazy_hex_fp_value): New function.
3495 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3496
6662d794
MLI
34972010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3498
3499 * c-gimplify.c: Do not include tree-flow.h
3500
38f8b050
JR
35012010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3502
3503 PR other/44034
3504 * c-common.c: Rename targetm member:
3505 targetm.enum_va_list -> targetm.enum_va_list_p
3506
9589f23e
AS
35072010-06-28 Anatoly Sokolov <aesok@post.ru>
3508
3509 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3510
3b06d379
SB
35112010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3512
3513 * c-cppbuiltin.c: Do not include except.h.
3514
d166d4c3
AK
35152010-06-24 Andi Kleen <ak@linux.intel.com>
3516
9faeb493
UB
3517 * c-common.c (warn_for_omitted_condop): New.
3518 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3519
70cb8be6
JM
35202010-06-21 Joseph Myers <joseph@codesourcery.com>
3521
3522 * c.opt (lang-objc): Remove.
3523 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3524
a4c97feb
JR
35252010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3526
3527 * c-opts.c: Include "tm_p.h".
3528
6e2f1956
JM
35292010-06-20 Joseph Myers <joseph@codesourcery.com>
3530
3531 * c-common.c (parse_optimize_options): Update call to
3532 decode_options.
3533
bc87224e
NF
35342010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3535
3536 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3537 new type of types_used_by_cur_var_decl.
3538
b49cf425
JR
35392010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3540
3541 PR bootstrap/44512
3542 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3543 for C++ standard compliance.
3544
59f9c2ed
JM
35452010-06-16 Jason Merrill <jason@redhat.com>
3546
3547 * c.opt: Add -Wnoexcept.
3548
33766b66
RG
35492010-06-16 Richard Guenther <rguenther@suse.de>
3550
3551 PR c/44555
3552 * c-common.c (c_common_truthvalue_conversion): Remove
3553 premature and wrong optimization concering ADDR_EXPRs.
3554
eff7e30c
AC
35552010-06-15 Arnaud Charlet <charlet@adacore.com>
3556
3557 * c-ada-spec.c (dump_sloc): Remove column info.
3558 (is_simple_enum): New function.
3559 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3560 enum types when relevant.
3561
6312e84d
MLI
35622010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3563
9faeb493 3564 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3565 location.
3566
1cb42611
JM
35672010-06-10 Joseph Myers <joseph@codesourcery.com>
3568
3569 * c-opts.c (c_common_handle_option): Don't handle
3570 OPT_fshow_column.
3571
a9429e29
LB
35722010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3573
3574 * c-pragma.c (push_alignment): Use typed GC allocation.
3575 (handle_pragma_push_options): Likewise.
3576
3577 * c-common.c (parse_optimize_options): Likewise.
3578
3579 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3580 option.
3581
5498f011
JM
35822010-06-07 Joseph Myers <joseph@codesourcery.com>
3583
3584 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3585 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3586 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3587 flag_signed_bitfields, warn_strict_null_sentinel,
3588 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3589 flag_gen_declaration, flag_no_gnu_keywords,
3590 flag_implement_inlines, flag_implicit_templates,
3591 flag_implicit_inline_templates, flag_optional_diags,
3592 flag_elide_constructors, flag_default_inline, flag_rtti,
3593 flag_conserve_space, flag_access_control, flag_check_new,
3594 flag_new_for_scope, flag_weak, flag_working_directory,
3595 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3596 flag_enforce_eh_specs, flag_threadsafe_statics,
3597 flag_pretty_templates): Remove.
3598 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3599 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3600 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3601 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3602 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3603 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3604 flag_no_gnu_keywords, flag_implement_inlines,
3605 flag_implicit_templates, flag_implicit_inline_templates,
3606 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3607 flag_rtti, flag_conserve_space, flag_access_control,
3608 flag_check_new, flag_new_for_scope, flag_weak,
3609 flag_working_directory, flag_use_cxa_atexit,
3610 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3611 flag_threadsafe_statics, flag_pretty_templates,
3612 warn_strict_null_sentinel): Remove.
3613 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3614 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3615 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3616 fimplicit-inline-templates, fimplicit-templates,
3617 flax-vector-conversions, fms-extensions, fnil-receivers,
3618 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3619 frtti, fshort-double, fshort-enums, fshort-wchar,
3620 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3621 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3622 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3623 gen-decls, undef): Use Var.
3624 (fdefault-inline, foptional-diags): Document as doing nothing.
3625 * c-opts.c (c_common_handle_option): Remove cases for options now
3626 using Var. Mark ignored options as such.
3627
39dabefd
SB
36282010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3629
9faeb493 3630 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3631 * c-common.def: Likewise.
3632 * c-common.h: Likewise.
3633 * c-cppbuiltin.c: Likewise.
3634 * c-dump.c: Likewise.
3635 * c-format.c: Likewise.
3636 * c-format.h : Likewise.
3637 * c-gimplify.c: Likewise.
3638 * c-lex.c: Likewise.
3639 * c-omp.c: Likewise.
3640 * c.opt: Likewise.
3641 * c-opts.c: Likewise.
3642 * c-pch.c: Likewise.
3643 * c-ppoutput.c: Likewise.
3644 * c-pragma.c: Likewise.
3645 * c-pragma.h: Likewise.
3646 * c-pretty-print.c: Likewise.
3647 * c-pretty-print.h: Likewise.
3648 * c-semantics.c: Likewise.
3649 * stub-objc.c: Likewise.
3650
3651 * c-common.c: Include gt-c-family-c-common.h.
3652 * c-pragma.c: Include gt-c-family-c-pragma.h.
3653\f
23a5b65a 3654Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3655
3656Copying and distribution of this file, with or without modification,
3657are permitted in any medium without royalty provided the copyright
3658notice and this notice are preserved.
This page took 1.349167 seconds and 5 git commands to generate.