]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
testsuite_abi.cc (check_version): Update for CXXABI_1.3.9.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
44875f92
MS
12014-04-24 Mike Stump <mikestump@comcast.net>
2
3 * c.opt (Wshadow-ivar): Default to on.
4
dcaaa5a0
DP
52014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
6
7 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
8
c07d7c02
MP
92014-04-23 Marek Polacek <polacek@redhat.com>
10
11 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
12
1c33c9b7
JJ
132014-04-22 Jakub Jelinek <jakub@redhat.com>
14
15 PR sanitizer/60275
16 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
17 if flag_sanitize_undefined_trap_on_error.
18 (ubsan_instrument_division, ubsan_instrument_shift,
19 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
20 if !flag_sanitize_recover.
21
793c625f
MG
222014-04-22 Marc Glisse <marc.glisse@inria.fr>
23
24 PR libstdc++/43622
25 * c-common.c (registered_builtin_types): Make non-static.
26 * c-common.h (registered_builtin_types): Declare.
27
b0f1bf36
RB
282014-04-14 Richard Biener <rguenther@suse.de>
29 Marc Glisse <marc.glisse@inria.fr>
30
31 PR c/60819
32 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
33 apply may-alias the scalar pointer type when applicable.
34
3b07fa4a
IZ
352014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
36
37 PR middle-end/60467
38 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
39 as possible argument for Cilk_spawn.
40
cbbd2b1c
TB
412014-04-11 Tobias Burnus <burnus@net-b.de>
42
43 PR c/60194
44 * c.opt (Wformat-signedness): Add
45 * c-format.c(check_format_types): Use it.
46
6415bd5d
JM
472014-04-11 Jason Merrill <jason@redhat.com>
48
49 PR c++/57926
50 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
51 default_conversion for an array argument.
52
6525783a
MP
532014-04-08 Marek Polacek <polacek@redhat.com>
54
55 PR sanitizer/60745
56 * c-ubsan.c: Include asan.h.
57 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
58
880a467b
NS
592014-04-03 Nathan Sidwell <nathan@codesourcery.com>
60
61 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
62
7b59ff2d
MP
632014-04-02 Marek Polacek <polacek@redhat.com>
64
65 * c-common.h (c_expand_expr): Remove declaration.
66
8edbfaa6
JJ
672014-03-28 Jakub Jelinek <jakub@redhat.com>
68
69 PR c++/60689
70 * c-common.c (add_atomic_size_parameter): When creating new
71 params vector, push the size argument first.
72
07d72e1d
JJ
732014-03-26 Jakub Jelinek <jakub@redhat.com>
74
75 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
76 ubsan_instrument_vla, ubsan_instrument_return): Adjust
77 ubsan_create_data callers.
78
b35e0fa0
JJ
792014-03-22 Jakub Jelinek <jakub@redhat.com>
80
81 PR debug/60603
82 * c-opts.c (c_finish_options): Restore cb_file_change call to
83 <built-in>.
84
39a1ebb3
JJ
852014-03-13 Jakub Jelinek <jakub@redhat.com>
86
87 PR middle-end/36282
88 * c-pragma.c (apply_pragma_weak): Only look at
89 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
90 DECL_ASSEMBLER_NAME_SET_P (decl).
91 (maybe_apply_pending_pragma_weaks): Exit early if
92 vec_safe_is_empty (pending_weaks) rather than only when
93 !pending_weaks.
94 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
95 set assembler name back to NULL afterwards.
96
a07f6ed2
JM
972014-03-11 Jason Merrill <jason@redhat.com>
98
99 * c.opt: Add -std=gnu++14.
100
75b107f5
IB
1012014-03-11 Ian Bolton <ian.bolton@arm.com>
102
103 * c-opts.c (c_common_post_options): Don't override
104 -ffp-contract=fast if unsafe-math-optimizations is on.
105
f42c637e
PM
1062014-03-08 Paulo Matos <paulo@matos-sorge.com>
107
108 * c.opt: Enable LTO FE for fshort-double.
109
70e24808
JM
1102014-03-07 Jason Merrill <jason@redhat.com>
111
112 * c.opt: Add -std=c++14.
113
3af9c5e9
MP
1142014-03-06 Marek Polacek <polacek@redhat.com>
115
116 PR c/60197
117 * cilk.c (contains_cilk_spawn_stmt): New function.
118 (contains_cilk_spawn_stmt_walker): Likewise.
119 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
120 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
121
b3bdf019
JJ
1222014-03-03 Jakub Jelinek <jakub@redhat.com>
123
124 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
125 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
126 even when flag_preprocess_only.
127
ca7e759d
JM
1282014-02-26 Jason Merrill <jason@redhat.com>
129
130 PR c++/59231
131 PR c++/11586
132 * c-common.c (shorten_compare): Don't check
133 c_inhibit_evaluation_warnings.
134
28e41874
JJ
1352014-02-19 Jakub Jelinek <jakub@redhat.com>
136
cca615af
JJ
137 PR c/37743
138 * c-common.c (c_common_nodes_and_builtins): When initializing
139 c_uint{16,32,64}_type_node, also set corresponding
140 uint{16,32,64}_type_node to the same value.
141
28e41874
JJ
142 PR c++/60267
143 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
144 for PRAGMA_IVDEP if flag_preprocess_only.
145
c2bf53a1
JJ
1462014-02-12 Jakub Jelinek <jakub@redhat.com>
147
148 PR c/60101
149 * c-common.c (merge_tlist): If copy is true, call new_tlist,
150 if false, add ADD itself, rather than vice versa.
151 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
152 copy. For SAVE_EXPR, only call merge_tlist once.
153
8fcbce72
JJ
1542014-02-08 Jakub Jelinek <jakub@redhat.com>
155
156 PR middle-end/60092
157 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
158 and tree_to_uhwi.
159 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
160 functions.
161 (c_common_attribute_table): Add alloc_align and assume_aligned
162 attributes.
163
0a756a3f
MP
1642014-02-06 Marek Polacek <polacek@redhat.com>
165
166 PR c/60087
167 * c-common.c (warn_for_sign_compare): Call warning_at with location
168 instead of warning.
169
7ec4847a
MP
1702014-02-05 Marek Polacek <polacek@redhat.com>
171
172 PR c/53123
173 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
174 statement.
175
66f20604
MP
1762014-02-04 Marek Polacek <polacek@redhat.com>
177
178 PR c/60036
179 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
180 SAVE_EXPR.
181
5d77fb19
MG
1822014-02-03 Marc Glisse <marc.glisse@inria.fr>
183
184 PR c++/53017
185 PR c++/59211
186 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
187 handle_vector_size_attribute, handle_nonnull_attribute): Call
188 default_conversion on the attribute argument.
189 (handle_nonnull_attribute): Increment the argument number.
190
81e5eca8
MP
1912014-01-31 Marek Polacek <polacek@redhat.com>
192
193 PR c/59963
194 * c-common.c (add_atomic_size_parameter): Pass vNULL to
195 build_function_call_vec.
196 (resolve_overloaded_builtin): Likewise.
197 * c-common.h (build_function_call_vec): Adjust declaration.
198
68fca595
MP
1992014-01-30 Marek Polacek <polacek@redhat.com>
200
201 PR c/59940
202 * c-common.h (unsafe_conversion_p): Adjust declaration.
203 (warnings_for_convert_and_check): Likewise.
204 (convert_and_check): Likewise.
205 * c-common.c (unsafe_conversion_p): Add location parameter. Call
206 expansion_point_location_if_in_system_header on it.
207 (warnings_for_convert_and_check): Add location parameter. Call
208 expansion_point_location_if_in_system_header on it. Use it.
209 (convert_and_check): Add location parameter. Use it.
210 (conversion_warning): Likewise.
211 (c_add_case_label): Adjust convert_and_check calls.
212 (scalar_to_vector): Adjust unsafe_conversion_p calls.
213
b72271b9
BI
2142014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
215
216 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
217 flag_cilkplus.
218 * c-pragma.c (init_pragma): Likewise.
219 * c.opt: Likewise.
220
393e8e8b
MP
2212014-01-23 Marek Polacek <polacek@redhat.com>
222
223 PR c/59846
224 * c-common.c (shorten_compare): Add location_t parameter.
225 * c-common.h (shorten_binary_op): Adjust declaration.
226
f04dda30
MP
2272014-01-23 Marek Polacek <polacek@redhat.com>
228
229 PR c/58346
230 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
231 * c-common.h: Declare it.
232
621955cb
EB
2332014-01-20 Eric Botcazou <ebotcazou@adacore.com>
234
235 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
236 * c-ada-spec.c (dump_ads): Likewise.
237 (cpp_check): Likewise.
238 (dump_ada_specs): Likewise.
239
2402014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
241
242 PR c++/49718
243 * c-common.c (handle_no_instrument_function_attribute): Allow
244 no_instrument_function attribute in class member
245 definition/declaration.
246
241f845a
JJ
2472014-01-15 Jakub Jelinek <jakub@redhat.com>
248
249 PR c/58943
250 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
251 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
252 being COMPOUND_EXPR.
253 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
254 operand a SAVE_EXPR and second MODIFY_EXPR.
255
e83b8e2e
JJ
2562014-01-09 Jakub Jelinek <jakub@redhat.com>
257
258 PR target/58115
259 * c-pch.c (c_common_write_pch): Call
260 prepare_target_option_nodes_for_pch.
261
23a5b65a
RS
2622014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
263
264 Update copyright years
265
f9030485
RS
2662014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
267
268 * array-notation-common.c, c-cilkplus.c: Use the standard form for
269 the copyright notice.
270
f2aa696b
EB
2712013-12-28 Eric Botcazou <ebotcazou@adacore.com>
272
273 * c-ada-spec.c (print_constructor): New function.
274 (print_destructor): Retrieve the origin of the destructor.
275 (print_ada_declaration): Revamp handling of constructors/destructors.
276
1f26ac87
JM
2772013-12-23 Stuart Hastings <stuart@apple.com>
278 Bill Maddox <maddox@google.com>
279 Jason Merrill <jason@redhat.com>
280
281 * c.opt: Add -fdeclone-ctor-dtor.
282 * c-opts.c (c_common_post_options): Default to on iff -Os.
283
41958c28
BI
2842013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
285
286 * c-common.c (c_common_attribute_table): Added "cilk simd function"
287 attribute.
288 * c-pragma.h (enum pragma_cilk_clause): Remove.
289 (enum pragma_omp_clause): Added the following fields:
290 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
291 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
292 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
293 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
294 PRAGMA_CILK_CLAUSE_UNIFORM.
295
296
12893402
BI
2972013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
298
299 * cilk.c (cilk_outline): Made this function non-static.
300 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
301 (create_cilk_wrapper): Added a new parameter: a function pointer.
302 (c_install_body_w_frame_cleanup): Remove
303 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
304 * c-common.h (cilk_outline): New prototype.
305 (gimplify_cilk_spawn): Removed two parameters.
306 (cilk_install_body_with_frame_cleanup): New prototype.
307 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
308 CILK_SPAWN_STMT case.
309
085b42ed
BS
3102013-12-11 Bernd Schmidt <bernds@codesourcery.com>
311
2ce064c3
BS
312 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
313
085b42ed
BS
314 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
315 (int_array_type_node): Remove.
316 * c-common.c (c_common_nodes_and_builtins): Don't build it.
317
9e36c9ed
MP
3182013-12-05 Marek Polacek <polacek@redhat.com>
319
320 PR c/52023
321 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
322 [ADJUST_FIELD_ALIGN].
323
296674db
JM
3242013-12-04 Joseph Myers <joseph@codesourcery.com>
325
326 PR c/52023
327 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
328 and check field alignment if set.
329 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
330 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
331
31e071ae
MP
3322013-12-04 Jakub Jelinek <jakub@redhat.com>
333 Marek Polacek <polacek@redhat.com>
334
335 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
336 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
337
d7947e19
L
3382013-11-29 H.J. Lu <hongjiu.lu@intel.com>
339
340 PR c/59309
341 * cilk.c (gimplify_cilk_spawn): Properly handle function without
342 arguments.
343
fad7652e
JJ
3442013-11-29 Jakub Jelinek <jakub@redhat.com>
345
346 PR c/59280
347 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
348 goto invalid. If it is error_mark_node, don't issue further
349 diagnostics.
350
8b5e1202
SO
3512013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
352
353 * c.opt (Wopenmp-simd): New.
354
0a508bb6
JJ
3552013-11-22 Jakub Jelinek <jakub@redhat.com>
356
357 * c-ubsan.h (ubsan_instrument_return): New prototype.
358 * c-ubsan.c (ubsan_instrument_return): New function.
359
2fb9a547
AM
3602013-11-22 Andrew MacLeod <amacleod@redhat.com>
361
362 * c-common.c: Add required include files from gimple.h.
363 * c-gimplify.c: Likewise
364 * cilk.c: Likewise
365
8400e75e
DM
3662013-11-22 David Malcolm <dmalcolm@redhat.com>
367
368 * c-common.c (unsafe_conversion_p): Remove use of
369 EXPR_LOC_OR_HERE macro.
370 (conversion_warning): Likewise.
371 (warnings_for_convert_and_check): Likewise.
372 (warn_for_collisions_1): Likewise.
373 (shorten_compare): Likewise, and remove use of in_system_header
374 macro, using the location from the former.
375 * c-lex.c (dump_one_header): Remove use of input_filename macro.
376 (cb_def_pragma): Remove use of in_system_header macro.
377 (lex_string): Likewise.
378 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
379
eb1ce453
KZ
3802013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
381 Mike Stump <mikestump@comcast.net>
382 Richard Sandiford <rdsandiford@googlemail.com>
383
384 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
385 instead of TREE_INT_CST_LOW, in cases where there is a protecting
386 tree_fits_shwi_p or tree_fits_uhwi_p.
387 (dump_generic_ada_node): Likewise.
388 * c-format.c (check_format_arg): Likewise.
389 * c-pretty-print.c (pp_c_integer_constant): Likewise.
390
6b3b8c27
KZ
3912013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
392
393 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
394
49b0aa18
JC
3952013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
396
397 PR c/53001
398 * c-common.c (unsafe_conversion_p): Make this function
399 return an enumeration with more detail.
400 (conversion_warning): Use the new return type of
401 unsafe_conversion_p to separately warn either about conversions
402 that lower floating point number precision or about the other
403 kinds of conversions.
404 * c-common.h (enum conversion_safety): New enumeration.
405 (unsafe_conversion_p): switching return type to
406 conversion_safety enumeration.
407 * c.opt: Adding new warning -Wfloat-conversion and
408 enabling it with -Wconversion.
409
b826515a
BS
4102013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
411
412 * c-opts.c: Include plugin.h.
413 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
414
b9a55b13
MP
4152013-11-19 Marek Polacek <polacek@redhat.com>
416
417 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
418 call.
419 (ubsan_instrument_shift): Likewise.
420 (ubsan_instrument_vla): Likewise.
421
7d362f6c
RS
4222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
423
424 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
425 cast to unsigned type.
426
386b1f1f
RS
4272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
428
429 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
430 tree_low_cst.
431 (complete_array_type): Update comment to refer to tree_to_[su]hwi
432 rather than tree_low_cst.
433
ae7e9ddd
RS
4342013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
435
436 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
437 tree_to_uhwi throughout.
438
9439e9a1
RS
4392013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
440
441 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
442 tree_low_cst (..., 0) with tree_to_shwi throughout.
443
cc269bb6
RS
4442013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
445
446 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
447 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
448
9541ffee
RS
4492013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
450
451 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
452 host_integerp (..., 0) with tree_fits_shwi_p throughout.
453
c02065fc
AH
4542013-11-15 Aldy Hernandez <aldyh@redhat.com>
455
456 * c-cilkplus.c: New file.
457 * c-common.c (readonly_error): Add location argument.
458 * c-common.h (readonly_error): Same.
459 (c_finish_cilk_clauses): Protoize.
460 (c_check_cilk_loop): Same.
461 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
462 Do not fail on error_mark_node.
463 Abstract increment canonicalization to here...
464 (c_omp_for_incr_canonicalize_ptr): New.
465 c-pragma.c (init_pragma): Register "simd" pragma.
466 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
467 (enum pragma_cilk_clause): New.
468
9cc65f15
RS
4692013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
470
471 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
472 wchar_type and host_integerp checks.
473
18f429e2
AM
4742013-11-14 Andrew MacLeod <amacleod@redhat.com>
475
476 * c-common.c: Likewise.
477 * c-gimplify.c: Likewise.
478 * cilk.c: Likewise.
479
d8a2d370
DN
4802013-11-14 Diego Novillo <dnovillo@google.com>
481
482 * c-common.c: Include fold-const.h.
483 Include stor-layout.h.
484 Include calls.h.
485 Include stringpool.h.
486 Include attribs.h.
487 Include varasm.h.
488 Include trans-mem.h.
489 * c-cppbuiltin.c: Include stor-layout.h.
490 Include stringpool.h.
491 * c-format.c: Include stringpool.h.
492 * c-lex.c: Include stringpool.h.
493 Include stor-layout.h.
494 * c-pragma.c: Include stringpool.h.
495 Include attribs.h.
496 Include varasm.h.
497 Include gcc-symtab.h.
498 * c-pretty-print.c: Include stor-layout.h.
499 Include attribs.h.
500 * cilk.c: Include stringpool.h.
501 Include calls.h.
502
38b7bc7f
JM
5032013-11-13 Joseph Myers <joseph@codesourcery.com>
504
505 * c-common.h (enum rid): Add RID_AUTO_TYPE.
506 * c-common.c (c_common_reswords): Add __auto_type.
507 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
508
45b0be94
AM
5092013-11-12 Andrew MacLeod <amacleod@redhat.com>
510
18f429e2
AM
511 * c-common.c: Include gimplify.h.
512 * c-gimplify.c: Likewise.
513 * cilk.c: Likewise.
514 * c-omp.c: Include gimple-expr.h instead of gimple.h.
515 * c-ubsan.c: Don't include gimple.h.
45b0be94 516
582d9b50
JM
5172013-11-12 Joseph Myers <joseph@codesourcery.com>
518
519 * c-common.c (c_common_reswords): Add _Thread_local.
520
6b28e197
JM
5212013-11-09 Joseph Myers <joseph@codesourcery.com>
522
523 * c-common.c (atomic_size_supported_p): New function.
524 (resolve_overloaded_atomic_exchange)
525 (resolve_overloaded_atomic_compare_exchange)
526 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
527 Use it instead of comparing size with a local list of sizes.
528
267bac10
JM
5292013-11-07 Andrew MacLeod <amacleod@redhat.com>
530 Joseph Myers <joseph@codesourcery.com>
531
532 * c-common.h (enum rid): Add RID_ATOMIC.
533 * c-common.c (c_common_reswords): Add _Atomic.
534 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
535 (keyword_is_type_qualifier): Accept RID_ATOMIC.
536 * c-format.c (check_format_types): Check for extra _Atomic
537 qualifiers in format argument.
538 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
539 (pp_c_type_qualifier_list): Mention _Atomic in comment.
540
5157b91e
TB
5412013-11-06 Tobias Burnus <burnus@net-b.de>
542
543 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
544
6dbe0958
JM
5452013-11-06 Joseph Myers <joseph@codesourcery.com>
546
547 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
548 standards modes.
549 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
550 to mean lack of IEEE 754 support.
551
e8ff5196
TB
5522013-11-05 Tobias Burnus <burnus@net-b.de>
553
554 * c.opt (-Wdate-time): New option
555 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
556
254a0760
JM
5572013-11-05 Joseph Myers <joseph@codesourcery.com>
558
559 * c-cppbuiltin.c (cpp_iec_559_value): Test
560 flag_excess_precision_cmdline not flag_excess_precision.
561
6d7f7e0a
TB
5622013-11-05 Tobias Burnus <burnus@net-b.de>
563
564 * c.opt (fopenmp-simd): New option.
565 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
566 (omp_pragmas): ... this new struct.
567 (c_pp_lookup_pragma): Also walk omp_pragmas.
568 (init_pragma): Init pragmas for -fopenmp-simd.
569
55a7f02f
MP
5702013-11-04 Marek Polacek <polacek@redhat.com>
571
572 PR c++/58979
573 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
574
9193fb05
JM
5752013-11-04 Joseph Myers <joseph@codesourcery.com>
576
577 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
578 New functions.
579 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
580
94159ecf
EB
5812013-11-04 Eric Botcazou <ebotcazou@adacore.com>
582
583 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
584 (dump_ada_specs): Adjust prototype of second callback.
585 * c-ada-spec.c (cpp_check): New global variable.
586 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
587 (print_generic_ada_decl): Likewise.
588 (has_static_fields): Change return type to bool and add guard.
589 (has_nontrivial_methods): New predicate.
590 (is_tagged_type): Change return type to bool.
591 (separate_class_package): Call has_nontrivial_methods.
592 (pp_ada_tree_identifier): Minor tweaks.
593 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
594 (dump_ada_array_domains): Likewise.
595 (dump_ada_array_type): Likewise.
596 (dump_template_types): Remove cpp_check parameter and do not pass it to
597 dump_generic_ada_node.
598 (dump_ada_template): Likewise.
599 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
600 recursively.
601 (print_ada_methods): Change return type to integer. Remove cpp_check
602 parameter and do not pass it down.
603 (dump_nested_types): Remove cpp_check parameter and do not pass it to
604 dump_generic_ada_node.
605 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
606 accessing methods.
607 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
608 down. Use has_nontrivial_methods to recognize C++ classes. Use return
609 value of print_ada_methods.
610 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
611 Set cpp_check to it before invoking dump_ada_nodes.
612 (dump_ada_specs): Likewise.
613
b906f4ca
MP
6142013-11-03 Marek Polacek <polacek@redhat.com>
615
616 * c-ubsan.c: Don't include hash-table.h.
617 (ubsan_instrument_vla): New function.
618 * c-ubsan.h: Declare it.
619
5e20cdc9
DM
6202013-10-31 David Malcolm <dmalcolm@redhat.com>
621
622 Automated part of renaming of symtab_node_base to symtab_node.
623
624 Patch autogenerated by rename_symtab.py from
625 https://github.com/davidmalcolm/gcc-refactoring-scripts
626 revision 58bb219cc090b2f4516a9297d868c245495ee622
627
628 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
629 symtab_node_base to symtab_node.
630
7057e645
ESR
6312013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
632
633 Implement C++14 digit separators.
634 * c-lex.c (interpret_float): Remove digit separators from scratch string
635 before building real literal.
636
193ea7bc
JJ
6372013-10-30 Jakub Jelinek <jakub@redhat.com>
638
639 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
640
939b37da
BI
6412013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
642
643 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
644 fields.
645 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
646 enabled.
647 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
648 (insert_cilk_frame): New prototype.
649 (cilk_init_builtins): Likewise.
650 (gimplify_cilk_spawn): Likewise.
651 (c_cilk_install_body_w_frame_cleanup): Likewise.
652 (cilk_detect_spawn_and_unwrap): Likewise.
653 (cilk_set_spawn_marker): Likewise.
654 (build_cilk_sync): Likewise.
655 (build_cilk_spawn): Likewise.
656 * cilk.c: New file.
657
67348ccc
DM
6582013-10-29 David Malcolm <dmalcolm@redhat.com>
659
660 Patch autogenerated by refactor_symtab.py from
661 https://github.com/davidmalcolm/gcc-refactoring-scripts
662 revision 58bb219cc090b2f4516a9297d868c245495ee622
663
664 * c-gimplify.c (c_genericize): Update for conversion of symtab types
665 to a true class hierarchy.
666 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
667
d570872d
RS
6682013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
669
670 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
671
98906124
JL
6722013-10-26 Jeff Law <law@redhat.com>
673
674 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
675 * c-family/c.opt: Ignore and warn for mudflap options.
676
d73749df 6772013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
678
679 PR other/33426
680 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
681 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
682
3f04b1bb
JM
6832013-10-23 Jason Merrill <jason@redhat.com>
684
685 * c-format.c (gcc_cxxdiag_char_table): Add %X.
686
acf0174b
JJ
6872013-10-11 Jakub Jelinek <jakub@redhat.com>
688
acd15a28
JJ
689 * c-common.h (omp_clause_mask::operator !=): New method.
690 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
691 instead of if (mask & something) tests everywhere.
692
acf0174b
JJ
693 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
694 201307 instead of 201107.
695 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
696 (c_common_attribute_table): Add "omp declare target" and
697 "omp declare simd" attributes.
698 (handle_omp_declare_target_attribute,
699 handle_omp_declare_simd_attribute): New functions.
700 * c-omp.c: Include c-pragma.h.
701 (c_finish_omp_taskgroup): New function.
702 (c_finish_omp_atomic): Add swapped argument, if true,
703 build the operation first with rhs, lhs arguments and use NOP_EXPR
704 build_modify_expr.
705 (c_finish_omp_for): Add code argument, pass it down to make_code.
706 (c_omp_split_clauses): New function.
707 (c_split_parallel_clauses): Removed.
708 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
709 c_omp_declare_simd_clauses_to_decls): New functions.
710 * c-common.h (omp_clause_mask): New type.
711 (OMP_CLAUSE_MASK_1): Define.
712 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
713 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
714 omp_clause_mask::operator |, omp_clause_mask::operator &,
715 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
716 omp_clause_mask::operator ==): New methods.
717 (enum c_omp_clause_split): New.
718 (c_finish_omp_taskgroup): New prototype.
719 (c_finish_omp_atomic): Add swapped argument.
720 (c_finish_omp_for): Add code argument.
721 (c_omp_split_clauses): New prototype.
722 (c_split_parallel_clauses): Removed.
723 (c_omp_declare_simd_clauses_to_numbers,
724 c_omp_declare_simd_clauses_to_decls): New prototypes.
725 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
726 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
727 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
728 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
729 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
730 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
731 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
732 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
733 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
734 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
735 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
736 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
737 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
738 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
739 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
740 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
741 PRAGMA_OMP_CLAUSE_UNIFORM.
742
826cacfe
MG
7432013-10-09 Marc Glisse <marc.glisse@inria.fr>
744
745 PR tree-optimization/20318
746 * c-common.c (handle_returns_nonnull_attribute): New function.
747 (c_common_attribute_table): Add returns_nonnull.
748
2284b034
MG
7492013-10-03 Marc Glisse <marc.glisse@inria.fr>
750
751 PR c++/19476
752 * c.opt (fcheck-new): Move to common.opt.
753
b56e9788
MP
7542013-09-25 Marek Polacek <polacek@redhat.com>
755 Jakub Jelinek <jakub@redhat.com>
756
757 PR sanitizer/58413
758 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
759 an expression if we can prove it is correct.
760 (ubsan_instrument_division): Likewise. Remove unnecessary
761 check.
762
ce6923c5
MP
7632013-09-18 Marek Polacek <polacek@redhat.com>
764
765 PR sanitizer/58411
766 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
767 Declare it.
768 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
769
fb5610fb
IS
7702013-09-14 Iain Sandoe <iain@codesourcery.com>
771
772 PR target/48094
773 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
774 fobjc-gc, freplace-objc-classes): Accept for LTO.
775
88b0e79e
JC
7762013-09-13 Jacek Caban <jacek@codeweavers.com>
777
778 * c-target.def: New hook
779
c9b0866a
PC
7802013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
781
782 PR c++/43452
783 * c.opt (Wdelete-incomplete): Add.
784
0af94e6f
JR
7852013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
786
787 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
788 (vector_types_compatible_elements_p): New function.
789 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
790 declaration.
791 (vector_types_compatible_elements_p): Declare.
792
7c26172c
GDR
7932013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
794
795 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
796 a virtual member function.
797 (pp_simple_type_specifier): Remove.
798 (pp_c_type_specifier): Likewise.
799 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
800 Rename from pp_c_type_specifier. Adjust.
801 (c_pretty_printer::c_pretty_printer): Do not assign to
802 simple_type_specifier.
803
20059c8b
GDR
8042013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
805
806 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
807 member function.
808 (c_pretty_printer::storage_class_specifier): Likewise.
809 (c_pretty_printer::initializer): Likewise.
810 (pp_declaration): Remove.
811 (pp_declaration_specifiers): Likewise.
812 (pp_abstract_declarator): Likewise.
813 (pp_declarator): Likewise.
814 (pp_type_id): Likewise.
815 (pp_statement): Likewise.
816 (pp_constant): Likewise.
817 (pp_id_expression): Likewise.
818 (pp_primary_expression): Likewise.
819 (pp_unary_expression): Likewise.
820 (pp_multiplicative_expression): Likewise.
821 (pp_conditional_expression): Likewise.
822 (pp_assignment_expression): Likewise.
823 (pp_expression): Likewise.
824 (pp_c_type_id): Likewise.
825 (pp_c_storage_class_specifier): Likewise.
826 * c-pretty-print.c (pp_c_type_cast): Tidy.
827 (pp_c_pointer): Likewise.
828 (pp_c_type_specifier): Likewise.
829 (pp_c_parameter_type_list): Likewise.
830 (pp_c_function_definition): Likewise.
831 (pp_c_init_declarator): Likewise.
832 (pp_c_initializer_list): Likewise.
833 (pp_c_constructor_elts): Likewise.
834 (c_pretty_printer::direct_abstract_declarator): Likewise.
835 (c_pretty_printer::declaration_specifiers): Likewise.
836 (c_pretty_printer::primary_expression): Likewise.
837 (c_pretty_printer::postfix_expression): Likewise.
838 (c_pretty_printer::type_id): Rename from pp_c_type_id.
839 (c_pretty_printer::storage_class_specifier): Rename from
840 pp_c_storage_class_specifier.
841 (c_pretty_printer::initializer): Rename from pp_c_initializer.
842 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
843 storage_class_specifier, initializer, offset_list, flags.
844
de5a5fa1
MP
8452013-08-30 Marek Polacek <polacek@redhat.com>
846
847 * c-ubsan.c: New file.
848 * c-ubsan.h: New file.
849
8f0e4d72
GDR
8502013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
851
852 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
853 member function.
854 (c_pretty_printer::declaration_specifiers): Likewise.
855 (c_pretty_printer::declarator): Likewise.
856 (c_pretty_printer::abstract_declarator): Likewise.
857 (c_pretty_printer::direct_abstract_declarator): Likewise.
858 (c_pretty_printer::direct_declarator): Likewise.
859 (c_pretty_printer::function_specifier): Likewise.
860 (pp_declaration): Adjust.
861 (pp_declaration_specifiers): Likewise.
862 (pp_abstract_declarator): Likewise.
863 (pp_direct_declarator): Likewise.
864 (pp_function_specifier): Likewise.
865 (pp_direct_abstract_declarator): Remove as unused.
866 (pp_c_declaration): Remove.
867 (pp_c_declaration_specifiers): Likewise.
868 (pp_c_declarator): Likewise.
869 (pp_c_direct_declarator): Likewise.
870 (pp_c_function_specifier): Likewise.
871 (pp_c_direct_abstract_declarator): Likewise.
872 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
873 from pp_c_abstract_declarator. Adjust.
874 (c_pretty_printer::direct_abstract_declarator): Rename from
875 pp_c_direct_abstract_declarator. Adjust.
876 (c_pretty_printer::function_specifier): Rename from
877 pp_c_function_specifier. Adjust.
878 (c_pretty_printer::declaration_specifiers): Rename from
879 pp_c_declaration_specifiers. Adjust.
880 (c_pretty_printer::direct_declarator): Rename from
881 pp_c_direct_declarator. Adjust.
882 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
883 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
884 (c_pretty_printer::c_pretty_printer): Do not assign to
885 declaration, declaration_specifiers, declarator,
886 direct_declarator, direct_abstract_declarator, function_specifier.
887
00d34d3a
GDR
8882013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
889
890 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
891 virtual member function.
892 (c_pretty_printer::multiplicative_expression): Likewise.
893 (c_pretty_printer::conditional_expression): Likewise.
894 (c_pretty_printer::assignment_expression): Likewise.
895 (c_pretty_printer::expression): Likewise.
896 (pp_unary_expression): Adjust.
897 (pp_multiplicative_expression): Likewise.
898 (pp_assignment_expression): Likewise.
899 (pp_conditional_expression): Likewise.
900 (pp_expression): Likewise.
901 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
902 from pp_c_unary_expression. Adjust.
903 (c_pretty_printer::multiplicative_expression): Rename from
904 pp_c_multiplicative_expression. Adjust.
905 (c_pretty_printer::conditional_expression): Rename from
906 pp_c_conditional_expression. Adjust.
907 (c_pretty_printer::assignment_expression): Rename from
908 pp_c_assignment_expression. Adjust.
909 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
910 (c_pretty_printer::c_pretty_printer): Do not assign to
911 unary_expression, multiplicative_expression,
912 conditional_expression, expression.
913
fb22178f
GDR
9142013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
915
916 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
917 virtual member function.
918 (pp_postfix_expression): Adjust.
919 (pp_c_postfix_expression): Remove.
920 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
921 from pp_c_postfix_expression. Adjust.
922 (c_pretty_printer::c_pretty_printer): Do not assign to
923 postfix_expression.
924
7ecc2600
GDR
9252013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
926
927 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
928 virtua member function.
929 (pp_primary_expression): Adjust.
930 (pp_c_primary_expression): Remove.
931 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
932 from pp_c_primary_expression. Adjust.
933 (pp_c_initializer_list): Use pp_primary_expression.
934 (c_pretty_printer::c_pretty_printer): Do not assign to
935 primary_expression.
936
0691175f
GDR
9372013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
938
939 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
940 * c-pretty-print.c (M_): Remove.
941 (c_pretty_printer::translate_string): Define.
942 (pp_c_type_specifier): Use it.
943 (pp_c_primary_expression): Likewise.
944 (pp_c_expression): Likewise.
945
66dfe4c4
GDR
9462013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
947
948 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
949 virtual function.
950 (pp_c_id_expression): Remove.
951 (pp_id_expression): Adjust.
952 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
953 pp_c_id_expression. Adjust.
954 (pp_c_postfix_expression): Use pp_id_expression.
955 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
956
ca43e9d5
GDR
9572013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
958
959 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
960 member function.
961 (pp_constant): Adjust.
962 (pp_c_constant): Remove.
963 * c-pretty-print.c (c_pretty_printer::constant): Rename from
964 pp_c_constant. Adjust.
965 (pp_c_constant)
966 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
967 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
968
da6ca2b5
GDR
9692013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
970
971 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
972 (c_pretty_printer::c_pretty_printer): Declare.
973 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
974 c_pretty_printer_init. Adjust.
975 (print_c_tree): Do not call c_pretty_printer_init.
976 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
977
65a372f4
AC
9782013-08-09 Arnaud Charlet <charlet@adacore.com>
979
980 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
981
fd9b0f32
PC
9822013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
983
984 PR c++/58080
985 * c-common.c (pointer_int_sum): Add bool parameter.
986 * c-common.h (pointer_int_sum): Adjust declaration.
987
e0aec1e9
GDR
9882013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
989
990 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
991 c_pretty_printer variable.
992
b066401f
GDR
9932013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
994
995 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
996 (pp_base): Remove.
997 (pp_c_base): Likewise. Adjust users.
998 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
999 (pp_c_whitespace): Do not call pp_base.
1000 (pp_c_left_paren): Likewise.
1001 (pp_c_right_paren): Likewise.
1002 (pp_c_left_brace): Likewise.
1003 (pp_c_right_brace): Likewise.
1004 (pp_c_left_bracket): Likewise.
1005 (pp_c_right_bracket): Likewise.
1006 (pp_c_dot): Likewise.
1007 (pp_c_ampersand): Likewise.
1008 (pp_c_star): Likewise.
1009 (pp_c_arrow): Likewise.
1010 (pp_c_semicolon): Likewise.
1011 (pp_c_complement): Likewise.
1012 (pp_c_exclamation): Likewise.
1013 (pp_c_direct_declarator): Likewise.
1014 (pp_c_ws_string): Likewise.
1015 (pp_c_identifier): Likewise.
1016 (pp_c_statement): Likewise.
1017 (print_c_tree): Likewise.
1018
65e5a578
ESR
10192013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1020
1021 PR c++/58072
1022 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1023 provide useful error strings.
1024
137a1a27
GDR
10252013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1026
1027 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1028 printer functions instead of pp_string or operators and punctuators.
1029 (dump_generic_ada_node): Likewise.
1030 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1031 (pp_c_relational_expression): Likewise.
1032 (pp_c_logical_or_expression): Likewise.
1033
07838b13
GDR
10342013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1035
1036 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1037 functions instead of pp_character.
1038 (pp_ada_tree_identifier): Likewise.
1039 (dump_ada_double_name): Likewise.
1040 (dump_ada_function_declaration): Likewise.
1041 (dump_ada_array_domains): Likewise.
1042 (dump_template_types): Likewise.
1043 (dump_generic_ada_node): Likewise.
1044 (print_ada_declaration): Likewise.
1045 (print_ada_struct_decl): Likewise.
1046 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1047
433cc7b0
TT
10482013-07-23 Tom Tromey <tromey@redhat.com>
1049
1050 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1051 * c-common.c (c_common_reswords): Add _Generic.
1052
688010ba
OB
10532013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1054
1055 * c-common.c: Fix typos.
1056 * c-common.h: Likewise.
1057
2a99e5e6
LL
10582013-07-13 Lubos Lunak <l.lunak@suse.cz>
1059
1060 PR c++/55203
1061 * c-common.c (c_common_attribute_table): Add warn_unused.
1062 (handle_warn_unused_attribute): New.
1063
c26302d5
JJ
10642013-07-10 Jakub Jelinek <jakub@redhat.com>
1065
1066 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1067 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1068
dfeadaa0
PC
10692013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1070
1071 PR c++/57869
1072 * c.opt: Add Wconditionally-supported.
1073
6a2fa4b2
GS
10742013-07-08 Graham Stott <graham.stott@btinternet.com>
1075
1076 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1077 unused variables l_length and l_node.
1078
ecdbd01a 10792013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1080
1081 PR c/57821
1082 * c-common.c (complete_array_type): Delay folding first index
1083 like other indices. When folding, check for index overflow.
1084
bedc293e
MG
10852013-06-27 Marc Glisse <marc.glisse@inria.fr>
1086
1087 PR c++/57509
1088 * c-common.h (c_build_vec_perm_expr): New complain argument.
1089 * c-common.c (c_build_vec_perm_expr): Likewise.
1090 Use save_expr also in C++.
1091
604b2bfc
GDR
10922013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1093
1094 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1095 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1096 * c-opts.c (c_common_post_options): Likewise.
1097
dfeadaa0 10982013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1099
1100 * array-notation-common.c (length_mismatch_in_expr): Changed the
1101 parameter type's from a dynamic array to a vec_tree. Also removed
1102 the size parameters.
1103 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1104 the change above.
1105
2ce86d2e
BI
11062013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1107
1108 * c-common.h (struct cilkplus_an_parts): New structure.
1109 (struct cilkplus_an_loop_parts): Likewise.
1110 (cilkplus_extract_an_triplets): New prototype.
1111 (fix_sec_implicit_args): Likewise.
1112 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1113 (fix_sec_implicit_args): Likewise.
604b2bfc 1114
07a6825b
BI
11152013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1116
1117 * array-notation-common.c (find_inv_trees): Removed an unwanted
1118 typecasting.
1119 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1120 enum rid to enum tree_code.
1121
08346abd
JH
11222013-06-11 Jan Hubicka <jh@suse.cz>
1123
1124 * c-common.c (handle_alias_ifunc_attribute): Do not set
1125 DECL_EXTERNAL for weakref variables.
1126 * c-pragma.c (handle_pragma_weak): Make sure aliases
1127 are not declared as external.
1128
d60f1706
BI
11292013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1130
1131 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1132 function from c/c-array-notation.c.
1133 (is_cilkplus_reduce_builtin): Likewise.
1134 (find_rank): Likewise.
1135 (extract_array_notation_exprs): Likewise.
1136 (replace_array_notations): Likewise.
1137 (find_inv_trees): Likewise.
1138 (replace_inv_trees): Likewise.
1139 (contains_array_notation_expr): Likewise.
1140 (find_correct_array_notation_type): Likewise.
1141 * c-common.h (struct inv_list): Moved this struct from the file
1142 c/c-array-notation.c and added a new field called additional tcodes.
1143 (length_mismatch_in_expr_p): New prototype.
1144 (is_cilkplus_reduce_builtin): Likewise.
1145 (find_rank): Likewise.
1146 (extract_array_notation_exprs): Likewise.
1147 (replace_array_notation): Likewise.
1148 (find_inv_trees): Likewise.
1149 (replace_inv_trees): Likewise.
1150 (find_correct_array_notation_type): Likewise.
dfeadaa0 1151
36536d79
BI
11522013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1153
1154 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1155 function array_notation_init_builtins is called.
1156 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1157 * c-common.def (ARRAY_NOTATION_REF): New tree.
1158 * c-common.h (build_array_notation_expr): New function declaration.
1159 (build_array_notation_ref): Likewise.
1160 (extract_sec_implicit_index_arg): New extern declaration.
1161 (is_sec_implicit_index_fn): Likewise.
1162 (ARRAY_NOTATION_CHECK): New define.
1163 (ARRAY_NOTATION_ARRAY): Likewise.
1164 (ARRAY_NOTATION_START): Likewise.
1165 (ARRAY_NOTATION_LENGTH): Likewise.
1166 (ARRAY_NOTATION_STRIDE): Likewise.
1167 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1168 ARRAY_NOTATION_REF.
1169 (pp_c_expression): Likewise.
1170 * c.opt (flag_enable_cilkplus): New flag.
1171 * array-notation-common.c: New file.
1172
f7716d57
JJ
11732013-05-14 Jakub Jelinek <jakub@redhat.com>
1174
1175 PR c++/57274
1176 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1177
a5e0cd1d
MG
11782013-05-10 Marc Glisse <marc.glisse@inria.fr>
1179
1180 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1181 vectors.
1182
f6bc1c4a
HS
11832013-05-07 Han Shen <shenhan@google.com>
1184
1185 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1186
3f12f6e9
SKS
11872013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1188
1189 * c-common.c (check_user_alignment): Emit error for negative values.
1190
61949153
PC
11912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1192
1193 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1194
e93e18e9
PC
11952013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1196
1197 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1198 __GXX_EXPERIMENTAL_CXX1Y__.
1199
44d90fe1
PC
12002013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1201 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1202
1203 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1204 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1205 to simply use OPT_Wpointer_arith.
1206 (c_sizeof_or_alignof_type): Likewise.
1207
13f39b2e
PC
12082013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1209
1210 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1211
4b84d650
JJ
12122013-04-12 Jakub Jelinek <jakub@redhat.com>
1213
1214 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1215 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1216 specifiers.
1217
fb037b5d
SB
12182013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1219
1220 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1221
4e856798
PC
12222013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1223
1224 * c-common.c (pointer_int_sum): Remove dead code.
1225
4b1baac8
RS
12262013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1227
1228 PR middle-end/56524
1229 * c-common.c (handle_optimize_attribute): Don't call
1230 save_optabs_if_changed.
1231
0b50e654
JJ
12322013-03-05 Jakub Jelinek <jakub@redhat.com>
1233
1234 PR middle-end/56461
1235 * c-pch.c (pch_init): Free target_validity at the end.
1236
48c41403
JJ
12372013-03-04 Jakub Jelinek <jakub@redhat.com>
1238
1239 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1240
e664c61c
KS
12412013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1242 Jakub Jelinek <jakub@redhat.com>
1243
1244 PR sanitizer/56454
1245 * c-common.c (handle_no_sanitize_address_attribute): New function.
1246 (c_common_attribute_table): Add no_sanitize_address attribute.
1247 (handle_no_address_safety_analysis_attribute): Add
1248 no_sanitize_address attribute, not no_address_safety_analysis
1249 attribute.
1250
a475fd3d 12512013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1252
1253 PR target/52555
1254 * c-common.c (handle_optimize_attribute): Call
1255 save_optabs_if_changed.
1256
f6007d99
JJ
12572013-02-18 Jakub Jelinek <jakub@redhat.com>
1258 Steven Bosscher <steven@gcc.gnu.org>
1259
1260 PR pch/54117
1261 * c-opts.c (c_common_post_options): If debug info is enabled
1262 and non-dwarf*, refuse to load PCH files and when writing PCH
1263 file warn.
1264
cf35e2b1
JJ
12652013-02-05 Jakub Jelinek <jakub@redhat.com>
1266
1267 PR middle-end/56167
1268 * c-common.c (handle_error_attribute): Fix condition.
1269
32887460
JJ
12702013-01-30 Jakub Jelinek <jakub@redhat.com>
1271
1272 PR c++/55742
1273 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1274
5af057d8
JM
12752013-01-18 Jason Merrill <jason@redhat.com>
1276
1277 PR target/54908
1278 * c.opt (-fextern-tls-init): New.
1279 * c-opts.c (c_common_post_options): Handle it.
1280
cc83c823
JJ
12812013-01-09 Jakub Jelinek <jakub@redhat.com>
1282
1283 PR c/48418
1284 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1285 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1286 and is either negative or bigger or equal to type precision
1287 of the first operand.
1288
a859517f
MP
12892012-12-03 Marek Polacek <polacek@redhat.com>
1290
1291 PR c/55570
1292 * c-common.c (check_user_alignment): Swap order of tests,
1293 check TREE_CODE first.
1294
2d7aa578
ESR
12952012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1296
1297 PR c++/52654
1298 * c-common.h (overflow_type): New enum.
1299 (build_userdef_literal): Add overflow_type argument.
1300 (tree_userdef_literal): Add overflow_type.
1301 (USERDEF_LITERAL_OVERFLOW): New access macro.
1302 * c-common.c (build_userdef_literal): Add overflow_type
1303 argument.
1304 * c-lex.c (c_lex_with_flags): Add overflow_type to
1305 build_userdef_literal calls.
1306 (interpret_integer, interpret_float): Add overflow_type argument.
1307
cc3c4f62
RB
13082012-11-28 Richard Biener <rguenther@suse.de>
1309
1310 PR c/35634
1311 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1312 here and use a type with proper overflow behavior for types that would
1313 need to be promoted for the arithmetic.
1314
77bc5132
JJ
13152012-11-23 Jakub Jelinek <jakub@redhat.com>
1316
1317 PR sanitizer/55435
1318 * c-common.c (handle_no_address_safety_analysis_attribute): New
1319 function.
1320 (c_common_attribute_table): Add no_address_safety_analysis.
1321
5dc99c46
SB
13222012-11-16 Simon Baldwin <simonb@google.com>
1323
1324 * c.opt: Add f[no-]canonical-system-headers.
1325 * c-opts.c (c_common_handle_option): Handle
1326 OPT_fcanonical_system_headers.
1327
a4a0016d
ESR
13282012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1329
1330 PR c++/54413
1331 * c-opts.c (c_common_handle_option): Set new flags.
1332 * c.opt: Describe new flags.
1333
7dbb85a7
JM
13342012-11-09 Jason Merrill <jason@redhat.com>
1335
1336 * c.opt (Wabi-tag): New.
1337
ad7bac31
AK
13382012-11-09 Andi Kleen <ak@linux.intel.com>
1339
1340 PR 55139
1341 * c-common.c (get_atomic_generic_size): Mask with
1342 MEMMODEL_MASK
1343
7332899a
MLI
13442012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1345
1346 PR c/53063
1347 * c.opt (Wformat): Make it Alias Wformat=1.
1348 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1349 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1350 LangEnabledBy.
1351 (Wformat=): RejectNegative. Use LangEnabledBy.
1352 (Wnonnull): Use LangEnabledBy.
1353 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1354 * c-format.c (set_Wformat): Delete.
1355 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1356 (maybe_read_dollar_number): Likewise.
1357 (avoid_dollar_number): Likewise.
1358 (finish_dollar_format_checking): Likewise.
1359 (check_format_info): Likewise.
1360 (check_format_info_main): Likewise.
1361 (check_format_types): Likewise.
1362 (format_type_warning): Likewise.
1363 * c-common.c (int): Likewise.
1364 (check_function_sentinel): Likewise.
1365 * c-common.h (warn_format,set_Wformat): Do not declare here.
1366
34a180a6
MLI
13672012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1368
1369 PR c/53063
1370 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1371 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1372 Use LangEnabledBy.
1373 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1374 common.opt.
1375 (Wvariadic-macros): Init(1).
1376 * c-opts.c (c_common_handle_option): Do not handle them
1377 explicitly.
1378 (c_common_post_options): Likewise.
1379 (sanitize_cpp_opts): warn_unused_macros is now
1380 cpp_warn_unused_macros.
1381 (push_command_line_include): Likewise.
1382 * c-common.c (warn_unknown_pragmas): Do not define.
1383 * c-common.h (warn_unknown_pragmas): Do not declare.
1384
3f46d6a5
MLI
13852012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1386
1387 PR c/51294
1388 * c-common.c (conversion_warning): Handle conditional expressions.
1389
880661a4
JW
13902012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1391
1392 PR c++/54930
1393 * c.opt (Wreturn_local_addr): Define new option.
1394
4514a96b
JM
13952012-10-25 Jason Merrill <jason@redhat.com>
1396
f14edc1a
JM
1397 * c.opt (Wvirtual-move-assign): New.
1398
4514a96b
JM
1399 * c.opt (Winherited-variadic-ctor): New.
1400
93100c6b
MG
14012012-10-25 Marc Glisse <marc.glisse@inria.fr>
1402
1403 PR c++/54427
1404 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1405
1efcb8c6
JM
14062012-10-23 Joseph Myers <joseph@codesourcery.com>
1407
1408 * c-common.h (pch_cpp_save_state): Declare.
1409 * c-target.def (c_preinclude): New hook.
1410 * c-opts.c (done_preinclude): New.
1411 (push_command_line_include): Handle default preincluded header.
1412 (cb_file_change): Call pch_cpp_save_state when calling
1413 push_command_line_include.
1414 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1415 (pch_cpp_save_state): New.
1416 (pch_init): Call pch_cpp_save_state conditionally, instead of
1417 calling cpp_save_state.
1418
4a0ae68e
MLI
14192012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1420
1421 PR c/53063
1422 PR c/40989
1423 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1424 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1425 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1426 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1427 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1428 * c-opts.c (c_common_handle_option): Remove explicit handling from
1429 here.
1430 (c_common_post_options): Likewise.
1431
67e4210b
EB
14322012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1433
1434 * c-ada-spec.c (LOCATION_COL): Delete.
1435 (compare_location): New function.
1436 (compare_node): Use it.
1437 (compare_comment): Likewise.
1438
65d4f2cd
MLI
14392012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1440
1441 PR c/53063
1442 PR c/40989
1443 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1444 * c-opts.c (c_common_handle_option): Do not set them here. Add
1445 comment.
1446 (c_common_post_options): Likewise.
1447
909881cb
EB
14482012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1449
1450 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1451 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1452 Remove POINTER_TYPE handling, add large unsigned handling and use
1453 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1454
3a785c97
JJ
14552012-10-12 Jakub Jelinek <jakub@redhat.com>
1456
1457 PR c/54381
1458 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1459 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1460 locs and array of 3 trees instead of just single loc and single
1461 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1462 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1463 For *cmp* builtins that take two sources strings report warnings
1464 about first and second source, not about destination and source.
1465
5e54f81d
MG
14662012-10-12 Marc Glisse <marc.glisse@inria.fr>
1467
1468 PR c++/53055
1469 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1470
f5b02f1e
EB
14712012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1472
1473 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1474 declaring something coming from another file.
1475
b46dbc6c
AC
14762012-10-10 Arnaud Charlet <charlet@adacore.com>
1477
f5b02f1e 1478 PR ada/54845
b46dbc6c
AC
1479 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1480
5d9de0d0
PC
14812012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1482
1483 PR c++/54194
1484 * c-common.c (warn_about_parentheses): Add location_t parameter;
1485 use EXPR_LOC_OR_LOC.
1486 * c-common.h: Update declaration.
1487
a212e43f
MG
14882012-10-09 Marc Glisse <marc.glisse@inria.fr>
1489
1490 PR c++/54427
1491 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1492 more operations. Make error messages optional.
1493 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1494 (scalar_to_vector): Declare.
1495
b1db7f91
JM
14962012-10-08 Jason Merrill <jason@redhat.com>
1497
1498 * c-common.c (c_common_reswords): Add thread_local.
1499
e28d52cf
DS
15002012-10-08 Dodji Seketeli <dodji@redhat.com>
1501
1502 PR c++/53528 C++11 attribute support
1503 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1504 new functions.
1505 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1506 static function.
1507 (handle_aligned_attribute): In choose strictest alignment
1508 among many. Use new check_cxx_fundamental_alignment_constraints.
1509 (handle_transparent_union_attribute): In c++11 attribute syntax,
1510 don't look through typedefs.
1511
3b78de56
AC
15122012-10-04 Arnaud Charlet <charlet@adacore.com>
1513
1514 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1515 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1516 out of dumpfile.h.
1517
6040bb5f
DC
15182012-09-25 Dehao Chen <dehao@google.com>
1519
1520 PR middle-end/54645
3b78de56 1521 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1522 map when read in the pch.
1523
0b07a57e
AC
15242012-09-18 Arnaud Charlet <charlet@adacore.com>
1525
1526 * c-ada-spec.c: Style fixes.
1527
da5182be
TQ
15282012-09-18 Thomas Quinot <quinot@adacore.com>
1529
1530 * c.opt (-fada-spec-parent): Define new command line switch.
1531 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1532 is specified, generate binding spec as a child of the specified unit.
1533
0ccb505d
PC
15342012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1535 Manuel López-Ibáñez <manu@gcc.gnu.org>
1536
1537 PR c++/53210
1538 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1539
c583af79
AC
15402012-08-23 Arnaud Charlet <charlet@adacore.com>
1541
1542 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1543 for pointers, and add missing Convention C pragma.
1544 (print_ada_struct_decl): Add missing aliased keyword.
1545 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1546
1a4049e7
JJ
15472012-08-17 Jakub Jelinek <jakub@redhat.com>
1548
1549 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1550 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1551 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1552 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1553 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1554
70b5e7dc
RG
15552012-08-10 Richard Guenther <rguenther@suse.de>
1556
1557 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1558
f8923f7e
SB
15592012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1560
1561 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1562 instead of separate pp_newline and pp_flush.
1563 (print_c_tree): Likewise.
1564
e45abe1f
RH
15652012-07-26 Richard Henderson <rth@redhat.com>
1566
1567 * c-common.c (handle_hot_attribute): Allow labels.
1568 (handle_cold_attribute): Likewise.
1569
332f1d24
JJ
15702012-07-20 Jakub Jelinek <jakub@redhat.com>
1571
1572 PR c++/28656
1573 * c-common.c (check_function_nonnull): Handle multiple nonnull
1574 attributes properly.
1575
7ee2468b
SB
15762012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1577
1578 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1579 * c-ada-spec.c: Likewise.
1580 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1581
ee7b28eb
SB
15822012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1583
1584 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1585 Remove code conditional on it.
1586
6bdf3519
SB
15872012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1588
1589 * c-gimplify.c: Do not include basic-block.h.
1590 * c-common.c: Do not include linfuncs.h.
1591
532aafad
SB
15922012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1593
1594 * c-common.h: Include tree.h.
1595
8d0d1915
JM
15962012-07-02 Jason Merrill <jason@redhat.com>
1597
1598 PR c++/53524
1599 * c-common.c (get_priority): Call default_conversion.
1600
fbc873ad
UB
16012012-07-01 Uros Bizjak <ubizjak@gmail.com>
1602
1603 * c-pch.c (c_common_write_pch): Remove unused variables.
1604
d4a10d0a
SB
16052012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1606
1607 * cppspec.c: Moved from gcc/ to here.
1608
6f3a2e23
KT
16092012-06-27 Kai Tietz <ktietz@redhat.com>
1610
1611 PR preprocessor/37215
1612 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1613
8ca92d04
SB
16142012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1615
1616 * c-common.h (c_common_print_pch_checksum): Remove.
1617 * c-pch.c: Do not include output.h.
1618 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1619 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1620 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1621 (struct c_pch_header): Remove.
1622 (get_ident): Update gpch version.
1623 (pch_init): Do not print executable_checksum to asm_out_file.
1624 Do not fail if there is no asm_out_file to read back from. Set
1625 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1626 (c_common_write_pch): Verify that nothing was written to asm_out_file
1627 since pch_init was called. Do not write a c_pch_header, and do not
1628 copy from asm_out_file to the PCH.
1629 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1630 the content of asm_out_file from the PCH.
1631 (c_common_print_pch_checksum): Remove.
1632 * c-opts.c (c_common_init): Print out executable_checksum directly.
1633
70f42967
SB
16342012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1635
1636 * c-target.def (objc_declare_unresolved_class_reference,
1637 objc_declare_class_definition): Add new hooks.
1638
a8781821
SB
16392012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1640
1641 * c-lex.c: Do not include output.h.
1642 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1643 Remove uses of ASM_OUTPUT_IDENT.
1644
9e1a8dd1
RR
16452012-06-15 Marc Glisse <marc.glisse@inria.fr>
1646
1647 PR c++/51033
1648 * c-common.h (c_build_vec_perm_expr): Move decl here.
1649 * c-common.c (c_build_vec_perm_expr): Move definition
1650 here.
1651
6f07a821
SB
16522012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1653
1654 * c.opt (fconserve-space): Turn into a no-op.
1655
9faeb493 16562012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1657
1658 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1659 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1660 both the start and end of the function.
1661
a4b7d13c
SB
16622012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1663
1664 * c-common.c: Do not include output.h.
1665 * c-pragma.c: Likewise.
1666
c265f413
SA
16672012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1668
1669 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1670 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1671 (lang_decl_name): Handle namespace decls.
1672
be7a421e
SB
16732012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1674
1675 * c-ada-spec.c: Do not include output.h.
1676 * c-semantics.c: Likewise.
1677
65de6659
JM
16782012-05-29 Joseph Myers <joseph@codesourcery.com>
1679
1680 * c-common.c: Fix typo.
1681
ca5f4331
MM
16822012-05-29 Michael Matz <matz@suse.de>
1683
1684 * c-common.h (c_expand_decl): Remove prototype.
1685
4f7f7aca
MLI
16862012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1687
1688 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1689 * c-opts.c (c_common_handle_option): Remove code handling
1690 warn_missing_braces.
1691
4a792f9b
PC
16922012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1693
1694 PR c++/25137
1695 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1696 -Wmissing_braces.
1697
650dc14a
DS
16982012-05-22 Dodji Seketeli <dodji@redhat.com>
1699
1700 PR c++/53322
1701 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1702
9b095bf1
MLI
17032012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1704
1705 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1706 * c-opts.c (c_common_handle_option): Do not handle explicitly
1707 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1708
0b2c4be5
DS
17092012-05-16 Dodji Seketeli <dodji@redhat.com>
1710
1711 PR preprocessor/7263
1712 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1713 to cpp_classify_number. For diagnostics, use the precise location
1714 instead of the global input_location.
1715
a1bde5af
PC
17162012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1717
d02924ef 1718 PR c++/11856
a1bde5af
PC
1719 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1720
d1ede5f4
BS
17212012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1722
a1bde5af 1723 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1724
f2bc201f
MLI
17252012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1726
1727 PR 53063
1728 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1729 Wreorder): Use LangEnabledBy.
1730 * c-opts.c (c_common_handle_option): Do not enable them
1731 explicitly. Call lang-specific generated functions.
1732 (c_common_post_options): Do not set them here.
1733
95744782
MLI
17342012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1735
1736 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1737 Wmissing-field-initializers,Wmissing-parameter-type,
1738 Wold-style-declaration,Woverride-init): Use EnabledBy.
1739 * c-opts.c (c_common_post_options): Do not set here explicitly.
1740
7d5a5747
MLI
17412012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1742
1743 PR 53063
1744 * c-opts.c (c_common_handle_option): Use handle_generated_option
1745 to enable sub-options.
1746
5a3c9cf2
PC
17472012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1748
1749 PR c++/53158
1750 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1751
3ac8781c
RG
17522012-05-10 Richard Guenther <rguenther@suse.de>
1753
1754 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1755 adjust commentary about TYPE_IS_SIZETYPE types.
1756
1e537948
MLI
17572012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1758
1759 PR c++/53261
1760 * c-common.c (warn_logical_operator): Check that argument of
1761 integer_zerop is not NULL.
1762
f2c4a785
MLI
17632012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1764
1765 PR c/43772
1766 * c-common.c (warn_logical_operator): Do not warn if either side
1767 is already true or false.
1768
50f305ca
MLI
17692012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1770
1771 PR c/51712
1772 * c-common.c (expr_original_type): New.
1773 (shorten_compare): Do not warn for enumeration types.
1774
0c3641b0
MLI
17752012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1776
1777 * c.opt (fpermissive): Add Var(flag_permissive).
1778
7edaa4d2
MG
17792012-04-30 Marc Glisse <marc.glisse@inria.fr>
1780
1781 PR c++/51033
1782 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1783 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1784
b9c8da34
DS
17852012-04-30 Dodji Seketeli <dodji@redhat.com>
1786
1787 Add -Wvarargs option
1788 * c.opt (Wvarargs): Define new option.
1789
e6c69da0
MLI
17902012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1791
1792 * c-common.c (check_function_arguments): Replace
1793 Wmissing-format-attribute with Wsuggest-attribute=format.
1794
90137d8f
MLI
17952012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1796
1797 * c.opt (Wsuggest-attribute=format): New. Alias of
1798 Wmissing-format-attribute.
1799 * c-format.c (decode_format_type): Replace
1800 Wmissing-format-attribute with Wsuggest-attribute=format.
1801 (check_function_format): Likewise.
1802
9faeb493 18032012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1804
1805 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1806 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1807 * c.opt: Add Wliteral-suffix.
1808
c1771a20
MLI
18092012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1810
1811 PR c/44774
1812 * c.opt (Wpedantic): New.
1813 (pedantic): Alias Wpedantic.
1814 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1815 (c_common_post_options): Likewise.
1816 (sanitize_cpp_opts): Likewise.
1817 * c-lex.c (interpret_float): Likewise.
1818 * c-format.c (check_format_types): Likewise.
1819 * c-common.c (pointer_int_sum): Likewise.
1820 (c_sizeof_or_alignof_type): Likewise.
1821 (c_add_case_label): Likewise.
1822 (c_do_switch_warnings): Likewise.
1823 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1824
04b391c1
JM
18252012-04-15 Jason Merrill <jason@redhat.com>
1826
1827 PR c++/52818
1828 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1829 (C_STD_NAME): Distinguish between C++98 and C++11.
1830
ac868f29
EB
18312012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1832
1833 PR target/52624
1834 * c-common.h (uint16_type_node): Rename into...
1835 (c_uint16_type_node): ...this.
1836 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1837 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1838
fd4116f4
MLI
18392012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1840
1841 * c-common.c (warn_if_unused_value): Move definition to here.
1842 * c-common.h (warn_if_unused_value): Move declaration to here.
1843
573ac65e
WB
18442012-03-23 William Bader <williambader@hotmail.com>
1845
1846 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1847
552b8185
JM
18482012-03-20 Jason Merrill <jason@redhat.com>
1849
1850 * c-common.h (enum cxx_dialect): Add cxx1y.
1851 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1852 test.
1853 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1854 * c-opts.c (c_common_post_options): Likewise.
1855 (set_std_cxx1y): New.
1856 (c_common_handle_option): Call it.
1857 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1858
04398fa8
PC
18592012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1860
1861 PR c++/14710
1862 * c.opt ([Wuseless-cast]): Add.
1863
d2a12ae7
RG
18642012-03-16 Richard Guenther <rguenther@suse.de>
1865
1866 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1867
a12bf402
MLI
18682012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1869
1870 PR c++/44783
1871 * c.opt (ftemplate-backtrace-limit) Add.
1872
5c30094f
RO
18732012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1874
1875 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1876 handling.
1877 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1878 (init_pragma): Don't register extern_prefix.
1879
21fa2faf
RG
18802012-03-12 Richard Guenther <rguenther@suse.de>
1881
1882 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1883 (builtin_type_for_size): Likewise.
1884
e3793c6f
JJ
18852012-02-13 Jakub Jelinek <jakub@redhat.com>
1886
1887 PR c++/52215
1888 * c-common.c (sync_resolve_params): Don't decide whether to convert
1889 or not based on TYPE_SIZE comparison, convert whenever arg_type
1890 is unsigned INTEGER_TYPE.
1891
93286335
PC
18922012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1893
1894 PR c/52118
1895 * c.opt ([Wunused-local-typedefs]): Fix description.
1896
7a421706
MS
18972012-01-24 Mike Stump <mikestump@comcast.net>
1898
1899 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1900 exactly.
1901
ba9b1f11
RG
19022012-01-18 Richard Guenther <rguenther@suse.de>
1903
1904 * c-opts.c (c_common_post_options): Reset LTO flags if
1905 we are about to generate a PCH.
1906
465406be
PC
19072012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1908
1909 PR c++/51777
1910 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1911 use pp_unsigned_wide_integer.
1912
aee15221
RG
19132012-01-10 Richard Guenther <rguenther@suse.de>
1914
1915 PR middle-end/51806
1916 * c-opts.c (c_common_handle_option): Move -Werror handling
1917 to language independent code.
1918
5720c0dc
RG
19192012-01-05 Richard Guenther <rguenther@suse.de>
1920
1921 PR middle-end/51764
1922 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1923 from common.opt.
1924
73ac190a
PC
19252011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1926
1927 PR c++/51316
1928 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1929 of array types with an unknown bound.
1930
48b0b196
JM
19312011-12-20 Joseph Myers <joseph@codesourcery.com>
1932
1933 * c-common.c (flag_isoc99): Update comment to refer to C11.
1934 (flag_isoc1x): Change to flag_isoc11.
1935 * c-common.h (flag_isoc99): Update comment to refer to C11.
1936 (flag_isoc1x): Change to flag_isoc11.
1937 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1938 C11.
1939 * c-opts.c (set_std_c1x): Change to set_std_c11.
1940 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1941 Call set_std_c11.
1942 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1943 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1944 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1945 standard.
1946 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1947 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1948 (std=gnu1x): Make alias of std=gnu11.
1949
d58d6eb5
JM
19502011-12-19 Jason Merrill <jason@redhat.com>
1951
1952 PR c++/51228
1953 * c-common.c (handle_transparent_union_attribute): Check the first
1954 field if the type is complete.
1955
b3908fcc
JW
19562011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1957
1958 PR libstdc++/51365
1959 * c-common.c (RID_IS_FINAL): Add.
1960 * c-common.h (RID_IS_FINAL): Add.
1961
fea3ca91
IS
19622011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1963
1964 * c.opt (fgnu-runtime): Provide full description.
1965 (fnext-runtime): Likewise.
1966 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1967
62bad7cd
AM
19682011-11-28 Andrew MacLeod <amacleod@redhat.com>
1969
1970 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1971 predefines in one place. Add LOCK_FREE predefines.
1972 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1973 new func.
1974
c466c4ff
AM
19752011-11-24 Andrew MacLeod <amacleod@redhat.com>
1976
1977 PR c/51256
9faeb493 1978 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1979 conditions
9faeb493
UB
1980 (resolve_overloaded_atomic_exchange,
1981 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1982 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1983 error_mark_node for error conditions.
9faeb493 1984
a5952633
RG
19852011-11-08 Richard Guenther <rguenther@suse.de>
1986
1987 PR middle-end/51010
1988 c-family/
1989
0a35513e
AH
19902011-11-07 Richard Henderson <rth@redhat.com>
1991 Aldy Hernandez <aldyh@redhat.com>
1992 Torvald Riegel <triegel@redhat.com>
1993
1994 Merged from transactional-memory.
1995
1996 * c-common.c (handle_tm_wrap_attribute,
1997 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1998 (struct c_common_reswords): Added __transaction* keywords.
1999 (struct c_common_attribute_table): Added transaction* and tm_regparm
2000 attributes.
2001 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2002 masks.
2003 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2004 find_tm_attribute): Declare.
2005
6d87092d
JM
20062011-11-07 Jason Merrill <jason@redhat.com>
2007
2008 PR c++/35688
2009 * c-common.c, c-common.h: Revert yesterday's changes.
2010
8e7860a1
JM
20112011-11-06 Jason Merrill <jason@redhat.com>
2012
2013 PR c++/35688
2014 * c-common.c (decl_has_visibility_attr): Split out from...
2015 (c_determine_visibility): ...here.
2016 * c-common.h: Declare it.
2017
d19fa6b5
JM
20182011-11-06 Joseph Myers <joseph@codesourcery.com>
2019
2020 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2021 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2022 type.
2023 (check_user_alignment): New. Split out of
2024 handle_aligned_attribute. Disallow integer constants with
2025 noninteger types. Conditionally allow zero.
2026 (handle_aligned_attribute): Use check_user_alignment.
2027 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2028
86951993
AM
20292011-11-06 Andrew MacLeod <amacleod@redhat.com>
2030 Richard Henderson <rth@redhat.com>
2031
2032 Merged from cxx-mem-model.
2033
2034 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2035 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2036 parameters that are the same type size.
2037 (get_atomic_generic_size): New. Find size of generic
2038 atomic function parameters and do typechecking.
2039 (add_atomic_size_parameter): New. Insert size into parameter list.
2040 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2041 either __atomic_exchange_n or external library call.
9faeb493 2042 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2043 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2044 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2045 __atomic_load_n or an external library call.
2046 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2047 __atomic_store_n or an external library call.
2048 (resolve_overloaded_builtin): Handle new __atomic builtins.
2049
cf9e9959
EB
20502011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2051
2052 PR c++/50608
2053 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2054 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2055 <INDIRECT_REF>: Return the argument.
2056 <ARRAY_REF>: Remove special code for negative offset.
2057 Call fold_build_pointer_plus instead of size_binop.
2058 (fold_offsetof): Remove STOP_REF argument and adjust.
2059 * c-common.h (fold_offsetof_1): Declare.
2060 (fold_offsetof): Remove STOP_REF argument.
2061
25339f10
JM
20622011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2063
2064 PR c++/50810
2065 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2066 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2067 Wnarrowing for C++0x and C++98.
2068 * c.opt ([Wnarrowing]): Update.
2069
89401152
PC
20702011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2071
2072 PR c++/44277
2073 * c.opt: Add Wzero-as-null-pointer-constant.
2074
97e3ad20
JM
20752011-10-31 Jason Merrill <jason@redhat.com>
2076
15694fdd
JM
2077 * c.opt (-fdeduce-init-list): Off by default.
2078
97e3ad20
JM
2079 PR c++/50920
2080 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2081 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2082 and -Wc++11-compat.
2083 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2084
fb9120e3
RAV
20852011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2086
2087 PR c++/30066
2088 * c.opt (fvisibility-inlines-hidden): Description change.
2089
3ce4f9e4
ESR
20902011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2091
2092 Implement C++11 user-defined literals.
2093 * c-common.c (build_userdef_literal): New.
2094 * c-common.def: New tree code.
2095 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2096 * c-lex.c (interpret_float): Add suffix parm.
2097 (c_lex_with_flags): Build literal tokens.
2098
5f53c243
PC
20992011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2100
2101 PR c++/50841
2102 Revert:
2103 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2104
2105 PR c++/50810
2106 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2107 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2108 Wnarrowing for C++0x and C++98.
2109 * c.opt ([Wnarrowing]): Update.
2110
263734e1
PC
21112011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2112
2113 PR c++/50810
2114 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2115 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2116 Wnarrowing for C++0x and C++98.
2117 * c.opt ([Wnarrowing]): Update.
2118
d2e312d7
PC
21192011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2120
2121 PR c++/45385
2122 * c-common.c (conversion_warning): Remove code looking for
2123 artificial operands.
2124
d17687f6
DS
21252011-10-18 Dodji Seketeli <dodji@redhat.com>
2126
2127 PR bootstrap/50760
2128 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2129 !NO_IMPLICIT_EXTERN_C.
d17687f6 2130
fc8396e9
PC
21312011-10-17 Michael Spertus <mike_spertus@symantec.com>
2132
2133 * c-common.c (c_common_reswords): Add __bases,
2134 __direct_bases.
2135 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2136
21372011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2138
2139 PR c++/50757
2140 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2141
847e697a
TT
21422011-10-15 Tom Tromey <tromey@redhat.com>
2143 Dodji Seketeli <dodji@redhat.com>
2144
2145 * c.opt (fdebug-cpp): New option.
2146 * c-opts.c (c_common_handle_option): Handle the option.
2147 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2148 output stream in parameter. Factorized from ...
2149 (maybe_print_line): ... this. Dump location debug information when
2150 -fdebug-cpp is in effect.
2151 (print_line_1): New static function. Takes an output stream in
2152 parameter. Factorized from ...
2153 (print_line): ... here. Dump location information when -fdebug-cpp
2154 is in effect.
2155 (scan_translation_unit): Dump location information when
2156 -fdebug-cpp is in effect.
2157
92582b75
TT
21582011-10-15 Tom Tromey <tromey@redhat.com>
2159 Dodji Seketeli <dodji@redhat.com>
2160
2161 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2162 without argument.
2163 * c-opts.c (c_common_handle_option)<case
2164 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2165 cases. Handle -ftrack-macro-expansion with and without argument.
2166
46427374
TT
21672011-10-15 Tom Tromey <tromey@redhat.com>
2168 Dodji Seketeli <dodji@redhat.com>
2169
2170 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2171 (print_line, cb_define, do_line_change): Adjust to avoid touching
2172 the internals of struct line_map. Use the public API instead.
2173 * c-pch.c (c_common_read_pch): Likewise.
2174 * c-lex.c (fe_file_change): Likewise.
2175
fc8396e9
PC
21762011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2177
2178 PR c++/17212
2179 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2180
21812011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2182
2183 PR c++/33067
2184 * c-pretty-print.c (pp_c_floating_constant): Output
2185 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2186
e79983f4
MM
21872011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2188
2189 * c-common.c (def_builtin_1): Delete old interface with two
2190 parallel arrays to hold standard builtin declarations, and replace
2191 it with a function based interface that can support creating
2192 builtins on the fly in the future. Change all uses, and poison
2193 the old names. Make sure 0 is not a legitimate builtin index.
2194 * c-omp.c (c_finish_omp_barrier): Ditto.
2195 (c_finish_omp_taskwait): Ditto.
2196 (c_finish_omp_flush): Ditto.
2197
6637388f
TG
21982011-10-11 Tristan Gingold <gingold@adacore.com>
2199
2200 * c.opt: (fallow-parameterless-variadic-functions): New.
2201
3797cb21
DS
22022011-09-08 Dodji Seketeli <dodji@redhat.com>
2203
2204 PR c++/33255 - Support -Wunused-local-typedefs warning
2205 * c-common.h (struct c_language_function::local_typedefs): New
2206 field.
9faeb493
UB
2207 (record_locally_defined_typedef, maybe_record_typedef_use)
2208 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2209 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2210 (maybe_record_typedef_use)
2211 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2212 * c.opt: Declare new -Wunused-local-typedefs flag.
2213
693ddb1b
EB
22142011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2215
2216 PR middle-end/50266
2217 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2218 computations.
2219
830c740f
RG
22202011-09-05 Richard Guenther <rguenther@suse.de>
2221
2222 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2223 of integer_minus_one_node for empty array upper bounds.
2224
892a371f
DS
22252011-08-28 Dodji Seketeli <dodji@redhat.com>
2226
2227 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2228 it's the first time it's being called on this main TU.
2229
0e3fdb48
RB
22302011-08-24 Richard Guenther <rguenther@suse.de>
2231
2232 PR c/49396
2233 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2234
22352011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2236
2237 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2238 defined in cpp_init_builtins and c_cpp_builtins.
2239
d4a83c10
JM
22402011-08-19 Joseph Myers <joseph@codesourcery.com>
2241
2242 * c-common.c (c_common_reswords): Add __builtin_complex.
2243 * c-common.h (RID_BUILTIN_COMPLEX): New.
2244
bbceee64
JM
22452011-08-18 Joseph Myers <joseph@codesourcery.com>
2246
2247 * c-common.c (c_common_reswords): Add _Noreturn.
2248 (keyword_is_function_specifier): Handle RID_NORETURN.
2249 * c-common.h (RID_NORETURN): New.
2250
0e3a99ae
AS
22512011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2252
2253 * c-common.c (unsafe_conversion_p): New function. Check if it is
2254 unsafe to convert an expression to the type.
2255 (conversion_warning): Adjust, use unsafe_conversion_p.
2256 * c-common.h (unsafe_conversion_p): New function declaration.
2257
20906c66
JJ
22582011-08-02 Jakub Jelinek <jakub@redhat.com>
2259
2260 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2261 (c_finish_omp_taskyield): New prototype.
2262 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2263 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2264 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2265 or RHS1 have side-effects, evaluate those too in the right spot,
2266 if it is a decl and LHS is also a decl, error out if they
2267 aren't the same.
2268 (c_finish_omp_taskyield): New function.
2269 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2270 * c-pragma.c (omp_pragmas): Add taskyield.
2271 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2272 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2273 PRAGMA_OMP_CLAUSE_MERGEABLE.
2274
770e5a2e
DS
22752011-07-25 Dodji Seketeli <dodji@redhat.com>
2276
2277 * c-common.h (set_underlying_type): Remove parm name from
2278 declaration.
2279
1baae426
RG
22802011-07-25 Romain Geissler <romain.geissler@gmail.com>
2281
2282 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2283
fcb21722
JM
22842011-07-22 Jason Merrill <jason@redhat.com>
2285
76f86d00
JM
2286 PR c++/49793
2287 * c.opt (Wnarrowing): New.
2288
3a636414
JM
2289 PR c++/30112
2290 * c-common.h: Declare c_linkage_bindings.
2291 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2292
fcb21722
JM
2293 PR c++/49813
2294 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2295 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2296 as flag_isoc99 for 'restrict'.
2297 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2298
02614448
ILT
22992011-07-21 Ian Lance Taylor <iant@google.com>
2300
2301 PR middle-end/49705
2302 * c-common.c (c_disable_warnings): New static function.
2303 (c_enable_warnings): New static function.
2304 (c_fully_fold_internal): Change local unused_p to bool. Call
2305 c_disable_warnings and c_enable_warnings rather than change
2306 c_inhibit_evaluation_warnings.
2307
34429675
JM
23082011-07-20 Jason Merrill <jason@redhat.com>
2309
2310 PR c++/6709 (DR 743)
2311 PR c++/42603 (DR 950)
2312 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2313 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2314 (CPP_DECLTYPE): New.
2315 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2316
5d49b6a7
RG
23172011-07-19 Richard Guenther <rguenther@suse.de>
2318
2319 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2320 * c-omp.c (c_finish_omp_for): Likewise.
2321
e84a58ff
EB
23222011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2323
2324 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2325 body on the next line.
2326
329af3c7
JM
23272011-07-08 Jason Merrill <jason@redhat.com>
2328
4063e61b
JM
2329 PR c++/45437
2330 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2331
329af3c7
JM
2332 PR c++/49673
2333 * c-common.c (c_apply_type_quals_to_decl): Don't check
2334 TYPE_NEEDS_CONSTRUCTING.
2335
1a072294
RG
23362011-07-06 Richard Guenther <rguenther@suse.de>
2337
2338 * c-common.c (c_common_nodes_and_builtins):
2339 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2340
fce5dddd
RG
23412011-07-05 Richard Guenther <rguenther@suse.de>
2342
2343 * c-common.c (c_common_nodes_and_builtins): Build all common
2344 tree nodes first.
2345
45d439ac
JJ
23462011-06-27 Jakub Jelinek <jakub@redhat.com>
2347
56300785
JJ
2348 * c-common.h (c_tree_chain_next): New static inline function.
2349
45d439ac
JJ
2350 * c-common.c (check_builtin_function_arguments): Handle
2351 BUILT_IN_ASSUME_ALIGNED.
2352
e0a8ecf2
AM
23532011-06-21 Andrew MacLeod <amacleod@redhat.com>
2354
2355 * c-common.c: Add sync_ or SYNC__ to builtin names.
2356 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2357
23582011-06-20 Pierre Vittet <piervit@pvittet.com>
2359
2360 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2361 handler.
2362 (gen_pragma_handler): New union.
2363 (internal_pragma_handler): New type.
2364 (c_register_pragma_with_data)
2365 (c_register_pragma_with_expansion_and_data): New functions.
2366
2367 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2368 (c_register_pragma, c_register_pragma_with_expansion)
2369 (c_invoke_pragma_handler): Changed to work with
2370 internal_pragma_handler.
2371 (c_register_pragma_with_data)
2372 (c_register_pragma_with_expansion_and_data): New functions.
2373
677f3fa8
JM
23742011-06-14 Joseph Myers <joseph@codesourcery.com>
2375
2376 * c-common.c: Include common/common-target.h.
2377 (handle_section_attribute): Use
2378 targetm_common.have_named_sections.
2379 * c-cppbuiltin.c: Include common/common-target.h.
2380 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2381
d7fc8c14
RG
23822011-06-10 Richard Guenther <rguenther@suse.de>
2383
2384 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2385 to print a IDENTIFIER_NODE.
2386
10e48e39
RO
23872011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2388 Joseph Myers <joseph@codesourcery.com>
2389
2390 * c.opt (fbuilding-libgcc): New option.
2391 * c-cppbuiltin.c (c_cpp_builtins): Define
2392 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2393
6976ae51
JM
23942011-06-07 Jason Merrill <jason@redhat.com>
2395
3ff60975
JM
2396 * c-common.c (max_tinst_depth): Lower default to 900.
2397
6976ae51
JM
2398 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2399
009db074
RG
24002011-06-07 Richard Guenther <rguenther@suse.de>
2401
2402 * c-common.c (c_common_nodes_and_builtins): Do not set
2403 size_type_node or call set_sizetype.
2404
b4592b92
DS
24052011-06-07 Dodji Seketeli <dodji@redhat.com>
2406
2407 PR debug/49130
2408 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2409 type when using pointer comparison to compare types.
b4592b92 2410
014ab419
JW
24112011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2412
2413 * c.opt: Add -Wdelete-non-virtual-dtor.
2414 * c-opts.c (c_common_handle_option): Include it in -Wall.
2415
4f60111f
NF
24162011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2417
2418 PR bootstrap/49190
2419
2420 Revert:
2421 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2422
2423 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2424 not tree_common.
2425
4cc4f2f4
JJ
24262011-05-27 Jakub Jelinek <jakub@redhat.com>
2427
2428 PR c++/49165
2429 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2430 C++ don't call c_common_truthvalue_conversion on void type arms.
2431
38e01f9e
NF
24322011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2433
2434 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2435 (stmt_list_stack): Define.
2436 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2437 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2438
92e948a8
NF
24392011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2440
2441 * c-common.c (warning_candidate_p): Check for BLOCKs.
2442
a2fc3e63
NF
24432011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2444
2445 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2446 not tree_common.
2447
0957c029
JJ
24482011-05-25 Jakub Jelinek <jakub@redhat.com>
2449
2450 * c-common.c (def_fn_type): Remove extra va_end.
2451
828fb3ba
JM
24522011-05-23 Jason Merrill <jason@redhat.com>
2453
2454 PR c++/48106
2455 * c-common.c (c_common_get_narrower): New.
2456 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2457
dde05067
NF
24582011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2459
2460 * c-common.h (check_function_arguments): Tweak prototype of
2461 check_function_arguments.
2462 * c-common.c (check_function_arguments): Likewise. Adjust
2463 calls to check_function_nonnull, check_function_format, and
2464 check_function_sentinel.
2465 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2466 separate attributes and typelist arguments. Use
2467 FOREACH_FUNCTION_ARGS to iterate over argument types.
2468
3c0d13bf
PC
24692011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2470
2471 * c-common.c (c_common_reswords): Reorder.
2472 * c-common.h (rid): Likewise.
2473
8242dd04
NF
24742011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2475
2476 * c-common.c (def_fn_type): Don't call build_function_type, call
2477 build_function_type_array or build_varargs_function_type_array
2478 instead.
2479 (c_common_nodes_and_builtins): Likewise.
2480
3d528853
NF
24812011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2482
2483 * c-common.c (c_add_case_label): Omit the loc argument to
2484 build_case_label.
2485 * c-common.h (build_case_label): Remove.
2486 * c-semantics.c (build_case_label): Remove.
2487
a04a722b
JM
24882011-05-05 Joseph Myers <joseph@codesourcery.com>
2489
2490 * c-objc.h (objc_start_method_definition): Update prototype.
2491 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2492
e19a18d4
NF
24932011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2494
2495 * c-common.c (check_main_parameter_types): Reindent. Don't use
2496 TYPE_ARG_TYPES directly.
2497 (handle_nonnull_attribute): Likewise.
2498 (sync_resolve_params): Likewise.
2499 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2500 to check_format_string.
2501 (handle_format_attribute): Likewise.
2502 (check_format_string): Take a function type to examine instead of
2503 a type list. Use a function_arg_iterator to step through argument
2504 types.
2505
c62c040f
RG
25062011-05-04 Richard Guenther <rguenther@suse.de>
2507
2508 * c-common.c (fix_string_type): Use size_int for index type bounds.
2509 (start_fname_decls): Do not pass NULL to build_int_cst.
2510 (c_init_attributes): Likewise.
2511 * c-lex.c (c_lex_with_flags): Likewise.
2512
c12ff9d8
JM
25132011-04-27 Jason Merrill <jason@redhat.com>
2514
2515 * c-common.c (make_tree_vector_from_list): New.
2516 * c-common.h: Declare it.
2517
304dfbe3
RG
25182011-04-26 Richard Guenther <rguenther@suse.de>
2519
2520 PR preprocessor/48248
2521 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2522 for output size with -P.
2523
3c0d13bf
PC
25242011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2525
2526 * c-common.c (struct c_common_resword): Add __underlying_type.
2527 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2528
04695783
JM
25292011-04-20 Jim Meyering <meyering@redhat.com>
2530
2531 * c-format.c (init_dollar_format_checking): Remove useless
2532 if-before-free.
2533
0dc33c3c
NP
25342011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2535
2536 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2537 (objc_detect_field_duplicates): New.
0dc33c3c 2538 * stub-objc.c: Likewise.
3c0d13bf 2539
c59633d9
NP
25402011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2541
2542 * stub-objc.c (objc_declare_protocols): Renamed to
2543 objc_declare_protocol.
2544 * c-objc.h: Likewise.
3c0d13bf 2545
32dabdaf
NP
25462011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2547
2548 * stub-objc.c (objc_declare_class): Updated argument name.
2549
81f653d6
NF
25502011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2551
2552 * c-common.h (c_common_init_ts): Declare.
2553 * c-common.c (c_common_init_ts): Define.
2554
eb345401
NP
25552011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2556
2557 * c-objc.h (objc_build_message_expr): Updated prototype.
2558 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2559
a358e188
MJ
25602011-04-12 Martin Jambor <mjambor@suse.cz>
2561
2562 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2563 of cgraph_node.
2564
e6313a78
RG
25652011-04-11 Richard Guenther <rguenther@suse.de>
2566
2567 * c-common.c (complete_array_type): Build a range type of
2568 proper type.
2569
dcf0c47e
NF
25702011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2571
2572 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2573 (handle_type_generic_attribute): Likewise.
2574
1ee44b26
JM
25752011-04-07 Jason Merrill <jason@redhat.com>
2576
2577 PR c++/48450
2578 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2579 conversion from C++0x scoped enum.
2580
acce4e77
JM
25812011-04-06 Joseph Myers <joseph@codesourcery.com>
2582
2583 * c-target-def.h: New file.
2584 * c-target.def: New file.
2585 * c-target.h: New file.
2586 * c-common.c (targetcm): Don't define here.
2587 * c-common.h (default_handle_c_option): Declare.
2588 * c-format.c: Include c-target.h instead of target.h.
2589 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2590 include tm.h.
2591 (default_handle_c_option): Move from targhooks.c.
2592
e2eefb55
JJ
25932011-03-29 Jakub Jelinek <jakub@redhat.com>
2594
2595 PR preprocessor/48248
2596 * c-ppoutput.c (print): Add src_file field.
2597 (init_pp_output): Initialize it.
2598 (maybe_print_line): Don't optimize by adding up to 8 newlines
2599 if map->to_file and print.src_file are different file.
2600 (print_line): Update print.src_file.
2601
ba78087b
KT
26022011-03-25 Kai Tietz <ktietz@redhat.com>
2603
2604 * c-ada-spec.c (compare_comment): Use filename_cmp
2605 instead of strcmp for filename.
2606
0edf1bb2
JL
26072011-03-25 Jeff Law <law@redhat.com>
2608
2609 * c-family/c-common.c (def_fn_type): Add missing va_end.
2610
c7dc8804
JM
26112011-03-25 Jason Merrill <jason@redhat.com>
2612
2613 * c.opt: Add -std=c++03.
2614
d1d879b1
EB
26152011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2616
2617 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2618
62d784f7
KT
26192011-03-17 Kai Tietz
2620
2621 PR target/12171
5050afdf
KT
2622 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2623 Display allowed attributes for function pointer types.
2624 (pp_c_attributes_display): New function to display
2625 attributes having affects_type_identity flag set to true.
2626 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2627
62d784f7
KT
2628 * c-common.c (c_common_attribute_table):
2629 Add new element.
2630 (c_common_format_attribute_table): Likewise.
2631
82d37118
JM
26322011-03-18 Jason Merrill <jason@redhat.com>
2633
49a000c3
JM
2634 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2635 * c-common.h: Don't declare it here.
2636 * c-common.c: Or define it here.
2637 * c-opts.c (c_common_handle_option): Or set it here.
2638
82d37118
JM
2639 PR c++/35315
2640 * c-common.c (handle_transparent_union_attribute): Don't
2641 make a duplicate type in C++.
2642
17bc631c
JM
26432011-03-15 Jason Merrill <jason@redhat.com>
2644
2645 * c-common.c (max_constexpr_depth): New.
2646 * c-common.h: Declare it.
2647 * c-opts.c (c_common_handle_option): Set it.
2648 * c.opt (fconstexpr-depth): New option.
2649
1b9b91a6
JM
26502011-03-11 Jason Merrill <jason@redhat.com>
2651
f231b5ff
JM
2652 * c-common.c (attribute_takes_identifier_p): Add missing const.
2653
1b9b91a6
JM
2654 PR c++/46803
2655 * c-common.c (attribute_takes_identifier_p): Assume that an
2656 unknown attribute takes an identifier.
2657
a19e4d44
NF
26582011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2659
2660 PR c/47786
2661 * c-common.c (c_type_hash): Call list_length instead of iterating
2662 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2663
982d62f6
JJ
26642011-02-19 Jakub Jelinek <jakub@redhat.com>
2665
2666 PR c/47809
2667 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2668
0a256240
NP
26692011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2670
2671 * c.opt (fobjc-abi-version=) New.
2672 (fobjc-nilcheck): New.
2673
ba9e6dd5
NF
26742011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2675
2676 PR c++/46890
2677 * c-common.h (keyword_is_decl_specifier): Declare.
2678 * c-common.c (keyword_is_decl_specifier): Define.
2679 (keyword_is_function_specifier): New function.
2680
7273813a
JJ
26812011-01-26 Jakub Jelinek <jakub@redhat.com>
2682
2683 PR c/47473
2684 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2685 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2686 REAL_TYPE.
2687
908ef79b
AC
26882011-01-26 Arnaud Charlet <charlet@adacore.com>
2689
2690 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2691
237e9384
JJ
26922011-01-26 Jakub Jelinek <jakub@redhat.com>
2693
2694 PR pch/47430
2695 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2696 after init_c_lex if pch_file is set.
2697
47ea1edf
DK
26982011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2699
d4dba752 2700 PR c++/43601
47ea1edf
DK
2701 * c.opt (-fkeep-inline-dllexport): New switch.
2702
2aa9c6ae
RG
27032011-01-12 Richard Guenther <rguenther@suse.de>
2704
2705 PR middle-end/32511
2706 * c-common.c (handle_weak_attribute): Warn instead of error
2707 on declaring an inline function weak.
2708
7bd11157
TT
27092011-01-05 Tom Tromey <tromey@redhat.com>
2710
2711 * c-common.h (lvalue_error): Update.
2712 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2713 not error.
2714
0e66e494 27152010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2716
b4f588c4
NP
2717 PR objc/47075
2718 * c-objc.h (objc_finish_message_expr): Added argument to
2719 prototype.
2720
f4da8dce
NF
27212010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2722
2723 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2724 Use prototype_p.
2725
46270f14
NP
27262010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2727
2728 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2729 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2730
4816c593
NF
27312010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2732
2733 * c-common.h (readonly_error): Declare.
2734 * c-common.c (readonly_error): Define.
2735
7a6daeb0
NF
27362010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2737
2738 * c-common.h (invalid_indirection_error): Declare.
2739 * c-common.c (invalid_indirection_error): Define.
2740
892f6119
RG
27412010-12-03 Richard Guenther <rguenther@suse.de>
2742
2743 PR c/46745
2744 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2745 (pp_c_unary_expression): Likewise.
2746 (pp_c_expression): Likewise.
2747
6c39e757
NP
27482010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2749
2750 * c-common.h (objc_finish_function): New.
2751 (objc_non_volatilized_type): Removed.
2752 (objc_type_quals_match): Removed.
2753 * stub-objc.c (objc_finish_function): New.
2754 (objc_non_volatilized_type): Removed.
2755 (objc_type_quals_match): Removed.
9faeb493 2756
7c475d11
JM
27572010-11-30 Joseph Myers <joseph@codesourcery.com>
2758
2759 * c-common.h (parse_optimize_options): Declare.
2760 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2761 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2762
71f3e391
JM
27632010-11-29 Joseph Myers <joseph@codesourcery.com>
2764
2765 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2766 GET_ENVIRONMENT.
2767 * c-pch.c (O_BINARY): Don't define here.
2768 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2769
d5fabb58
JM
27702010-11-25 Joseph Myers <joseph@codesourcery.com>
2771
2772 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2773 targetm.except_unwind_info.
2774
299404a1
JM
27752010-11-23 Joseph Myers <joseph@codesourcery.com>
2776
2777 * c-opts.c (c_common_handle_option): Pass location to
2778 set_struct_debug_option.
2779
c98cd5bf
JM
27802010-11-23 Joseph Myers <joseph@codesourcery.com>
2781
2782 * c-common.c (visibility_options): Move from ../opts.c.
2783 * c-common.h (struct visibility_flags, visibility_options):
2784 Declare here.
2785 * c-opts.c (finish_options): Rename to c_finish_options.
2786 (c_common_init): Update call to finish_options.
2787
a9546771
NP
27882010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2789
2790 PR objc/34033
2791 * c-lex.c (lex_string): Check that each string in an Objective-C
2792 string concat sequence starts with either one or zero '@', and
2793 that there are no spurious '@' signs at the end.
2794
24a57808
JM
27952010-11-20 Joseph Myers <joseph@codesourcery.com>
2796
2797 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2798 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2799 HANDLE_PRAGMA_VISIBILITY.
2800 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2801 HANDLE_PRAGMA_VISIBILITY): Don't define.
2802 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2803
a9aa2c3a
NF
28042010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2805
2806 PR c++/16189
2807 PR c++/36888
2808 PR c++/45331
2809 * c-common.h (keyword_begins_type_specifier): Declare.
2810 (keyword_is_storage_class_specifier): Declare.
2811 (keyword_is_type_qualifier): Declare.
2812 * c-common.c (keyword_begins_type_specifier): New function.
2813 (keyword_is_storage_class_specifier): New function.
2814 (keyword_is_type_qualifier): Declare.
2815
5386338c
JM
28162010-11-19 Joseph Myers <joseph@codesourcery.com>
2817
2818 PR c/46547
2819 * c-common.c (in_late_binary_op): Define.
2820 (c_common_truthvalue_conversion): Check in_late_binary_op before
2821 calling c_save_expr.
2822 * c-common.h (in_late_binary_op): Declare.
2823
69ccdddb
JM
28242010-11-19 Joseph Myers <joseph@codesourcery.com>
2825
2826 * c-opts.c (c_common_handle_option): Update calls to
2827 set_struct_debug_option.
2828
6b192a09
NP
28292010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2830
2831 * c-common.h (objc_declare_protocols): Added additional argument.
2832 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2833
fb52b50a
NF
28342010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2835
2836 PR c/33193
2837 * c-common.h (build_real_imag_expr): Declare.
2838 * c-semantics.c (build_real_imag_expr): Define.
2839
b37421c6
JM
28402010-11-17 Joseph Myers <joseph@codesourcery.com>
2841
2842 * c-opts.c (c_common_parse_file): Take no arguments.
2843 * c-common.h (c_common_parse_file): Update prototype.
2844
07078664
JJ
28452010-11-16 Jakub Jelinek <jakub@redhat.com>
2846
2847 PR c++/46401
2848 * c-common.c (warning_candidate_p): Don't track non-const calls
2849 or STRING_CSTs.
2850
c6a13190
ILT
28512010-11-15 Ian Lance Taylor <iant@google.com>
2852
2853 * c-lex.c (init_c_lex): Set macro debug callbacks if
2854 flag_dump_go_spec is set.
2855
925e8657
NP
28562010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2857
2858 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2859 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2860
bb0a9581
NF
28612010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2862
2863 PR preprocessor/45038
2864 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2865 dialects.
2866
c5fa0890
JM
28672010-11-12 Joseph Myers <joseph@codesourcery.com>
2868
2869 * c-common.h (c_family_lang_mask): Declare.
2870 * c-opts.c (c_family_lang_mask): Make extern.
2871 * c-pragma.c (handle_pragma_diagnostic): Use
2872 control_warning_option.
2873
a4d8c676
JM
28742010-11-12 Joseph Myers <joseph@codesourcery.com>
2875
2876 * c-common.c (parse_optimize_options): Update call to
2877 decode_options.
2878 * c-common.h (c_common_handle_option): Update prototype.
2879 * c-opts.c (c_common_handle_option): Take location_t parameter and
2880 pass it to other functions.
2881
f954bd2c
JM
28822010-11-11 Joseph Myers <joseph@codesourcery.com>
2883
2884 * c-opts.c (warning_as_error_callback): Remove.
2885 (c_common_initialize_diagnostics): Don't call
2886 register_warning_as_error_callback.
2887 (c_common_handle_option): Handle -Werror=normalized= here.
2888
d8a07487
JM
28892010-11-10 Joseph Myers <joseph@codesourcery.com>
2890
2891 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2892 in diagnostic.
2893 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2894 letter.
2895 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2896 Remove trailing '.' from diagnostics.
2897 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2898
d5478783
JM
28992010-11-10 Joseph Myers <joseph@codesourcery.com>
2900
2901 * c-common.c (parse_optimize_options): Pass global_dc to
2902 decode_options.
2903 * c-opts.c (c_common_handle_option): Pass &global_options to
2904 set_Wstrict_aliasing.
2905 * c.opt (v): Don't mark Common or document here.
2906
91ebb981
IS
29072010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2908
2909 PR target/44981
2910 * c-format.c (format_type): New type gcc_objc_string_format_type.
2911 (valid_stringptr_type_p): New.
2912 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2913 (check_format_string): Pass expected type, use
91ebb981
IS
2914 valid_stringptr_type_p (), check that the format string types are
2915 consistent with the format specification.
2916 (decode_format_attr): Warn if NSString is used outside objective-c.
2917 (format_types_orig): Add NSString.
2918 (format_name): New.
2919 (format_flags): New.
2920 (check_format_arg): Handle format strings requiring an external parser.
2921 first_target_format_type: New variable.
2922 (handle_format_attribute): Set up first_target_format_type, pass the
2923 expected format arg string type to check_format_string().
2924 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2925 * stub-objc.c (objc_string_ref_type_p): New.
2926 (objc_check_format_arg): New.
2927
bede2adc
NP
29282010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2929
9faeb493 2930 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2931 * c-common.h (objc_build_class_component_ref): New.
2932 * stub-objc.c (objc_build_class_component_ref): New.
2933
9a179d01
NP
29342010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2935
2936 * c.opt (Wproperty-assign-default): New option.
2937
22d8d616
NP
29382010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2939
2940 Implemented -fobjc-std=objc1 flag.
2941 * c.opt (fobjc-std=objc1): New option.
2942
2debdb4f
NP
29432010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2944
2945 Implemented format and noreturn attributes for Objective-C methods.
2946 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2947 attribute for Objective-C methods.
2948
ec52b111
JM
29492010-10-31 Jason Merrill <jason@redhat.com>
2950
2951 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2952 EXPR_LOC_OR_HERE.
2953
46a88c12
NP
29542010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2955
2956 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2957 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2958 (objc_add_property_declaration): Removed arguments for copies and
2959 ivar.
2960 (objc_build_getter_call): Renamed to
2961 objc_maybe_build_component_ref.
2962 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2963 (objc_is_property_ref): New.
2964 * c-common.c (c_common_reswords): Removed copies and ivar.
2965 * stub-objc.c (objc_add_property_declaration): Removed arguments
2966 for copies and ivar.
2967 (objc_build_getter_call): Renamed to
2968 objc_maybe_build_component_ref.
2969 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2970 (objc_is_property_ref): New.
9faeb493 2971
1e4bf85b
AC
29722010-10-29 Arnaud Charlet <charlet@adacore.com>
2973 Matthew Gingell <gingell@adacore.com>
2974
2975 * c-ada-spec.c (separate_class_package): New function.
2976 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2977 name of their enclosing package.
2978 (print_ada_declaration): Use separate_class_package.
2979
81f0bab2
JM
29802010-10-27 Jason Merrill <jason@redhat.com>
2981
2b08f2c5
JM
2982 * c-common.c (c_common_reswords): Add __is_literal_type.
2983 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2984
81f0bab2
JM
2985 * c-common.c (check_case_value): Remove special C++ code.
2986
200290f2
NP
29872010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2988
2989 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2990 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2991 and RID_LAST_PATTR.
2992 (objc_add_property_declaration): Added additional arguments.
2993 (objc_property_attribute_kind): Removed.
2994 (objc_set_property_attr): Removed.
2995 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2996 copy and nonatomic.
2997 * stub-objc.c (objc_add_property_declaration): Added additional
2998 arguments.
2999 (objc_set_property_attr): Removed.
9faeb493 3000
f614132b
NP
30012010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3002
3003 * c-common.h (objc_add_property_variable): Renamed to
3004 objc_add_property_declaration. Added location argument.
3005 * stub-objc.c (objc_add_property_variable): Same change.
3006
b8a18805
NP
30072010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3008
3009 * c-common.h (objc_maybe_printable_name): New.
3010 * stub-objc.c (objc_maybe_printable_name): New.
3011
30cd1c5d
AS
30122010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3013 Andrew Pinski <pinskia@gmail.com>
3014
3015 * c-common.h (c_common_mark_addressable_vec): Declare.
3016 * c-common.c (c_common_mark_addressable_vec): New function.
3017
249a82c4
NP
30182010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3019
3020 * c-common.h (objc_set_method_type): Removed.
3021 (objc_add_method_declaration): Added boolean argument.
3022 (objc_start_method_definition): Same change.
3023 (objc_build_method_signature): Same change.
3024 * stub-objc.c (objc_set_method_type): Removed.
3025 (objc_add_method_declaration): Added boolean argument.
3026 (objc_start_method_definition): Same change.
3027 (objc_build_method_signature): Same change.
3028
977e30bc
NP
30292010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3030
3031 * c-common.h (finish_file): Removed.
3032 (objc_write_global_declarations): New.
3033 * c-opts.c (c_common_parse_file): Do not call finish_file.
3034 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3035
da57d1b9
NP
30362010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3037
3038 Implemented parsing @synthesize and @dynamic for
3039 Objective-C/Objective-C++.
3040 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3041 (objc_add_synthesize_declaration): New.
3042 (objc_add_dynamic_declaration): New.
3043 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3044 * stub-objc.c (objc_add_synthesize_declaration): New.
3045 (objc_add_dynamic_declaration): New.
9faeb493 3046
0069111f
MM
30472010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3048
3049 PR target/46041
3050 * c-cppbuiltin.c (mode_has_fma): Move function here from
3051 builtins.c. Don't use the fma optab, instead just use the
3052 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3053 using -save-temps.
3054
e426b47b
NP
30552010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3056
3057 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3058
e426b47b
NP
3059 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3060
9faeb493 3061 Radar 4330422
e426b47b
NP
3062 * c-common.h (objc_non_volatilized_type): New declaration
3063 * stub-objc.c (objc_non_volatilized_type): New stub.
3064
90fbfdc3
NP
30652010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3066
e426b47b 3067 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3068
3069 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3070
9faeb493 3071 Radar 4133425
90fbfdc3 3072 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3073 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3074
c37d8c30
IS
30752010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3076
3077 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3078 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3079 (objc_ivar_visibility_kind): New enum.
3080 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3081 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3082 visibility enum.
3083
1b1562a5
MM
30842010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3085
3086 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3087 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3088 has the appropriate fma builtins.
3089 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3090
668ea4b1
IS
30912010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3092
1b1562a5 3093 merge from FSF apple 'trunk' branch.
668ea4b1 3094 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3095
668ea4b1
IS
3096 Radars 4436866, 4505126, 4506903, 4517826
3097 * c-common.c (c_common_resword): Define @property and its attributes.
3098 * c-common.h: Define property attribute enum entries.
3099 (OBJC_IS_PATTR_KEYWORD): New.
3100 (objc_property_attribute_kind): New enum.
3101 Declare objc_set_property_attr (), objc_add_property_variable (),
3102 objc_build_getter_call () and objc_build_setter_call ().
3103 * stub-objc.c (objc_set_property_attr): New stub.
3104 (objc_add_property_variable): Likewise.
3105 (objc_build_getter_call): Likewise.
3106 (objc_build_setter_call) Likewise.
1b1562a5 3107
a1178b30
IS
31082010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3109
1b1562a5 3110 merge from FSF apple 'trunk' branch.
a1178b30
IS
3111 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3112
3113 Radar 3803157 (method attributes)
3114 * c-common.c (handle_deprecated_attribute): Recognize
3115 objc methods as valid declarations.
3116 * c-common.h: Declare objc_method_decl ().
1b1562a5 3117 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3118
a75bfaa6
JM
31192010-10-08 Joseph Myers <joseph@codesourcery.com>
3120
3121 * c-common.c (parse_optimize_options): Call
3122 decode_cmdline_options_to_array_default_mask before
3123 decode_options. Update arguments to decode_options.
3124 * c-common.h (c_common_init_options_struct): Declare.
3125 * c-opts.c (c_common_init_options_struct): New. Split out from
3126 c_common_init_options.
3127
f05b9d93
NP
31282010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3129
3130 Implemented fast enumeration for Objective-C.
3131 * c-common.h (objc_finish_foreach_loop): New.
3132 * stub-objc.c (objc_finish_foreach_loop): New.
3133
1ebe4b4f
JM
31342010-10-05 Joseph Myers <joseph@codesourcery.com>
3135
3136 * c-common.h (struct diagnostic_context): Don't declare here.
3137 (c_common_initialize_diagnostics): Declare using
3138 diagnostic_context typedef.
3139 * c-opts.c (c_common_handle_option): Pass global_dc to
3140 handle_generated_option.
3141
d4d24ba4
JM
31422010-10-04 Joseph Myers <joseph@codesourcery.com>
3143
3144 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3145 handle_generated_option.
3146
478a1c5b
ILT
31472010-10-03 Ian Lance Taylor <iant@google.com>
3148
3149 * c.opt (-fplan9-extensions): New option.
3150
82a1c2fe
FXC
31512010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3152
3153 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3154 Remove.
3155 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3156 of duplicating code.
3157
92902b1b
IS
31582010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3159
3160 * c-common.c: Add two new entries for @optional
3161 and @required keywords.
3162
3163 merge from FSF 'apple/trunk' branch.
3164 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3165
3166 Radar 4386773
3167 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3168 objective-c keywords.
3169 (objc_set_method_opt): New declaration.
3170 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3171
46625112
JM
31722010-09-30 Joseph Myers <joseph@codesourcery.com>
3173
3174 * c-common.c (handle_optimize_attribute): Pass &global_options to
3175 cl_optimization_save and cl_optimization_restore.
3176 * c-opts.c (c_common_handle_option): Pass &global_options to
3177 handle_generated_option.
3178 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3179 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3180 &global_options to cl_optimization_restore.
3181
49b91f05
NP
31822010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3183
3184 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3185 Objective-C/Objective-C++ keywords.
3186
13ed556f 31872010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3188
9faeb493
UB
3189 Merge from 'apple/trunk' branch on FSF servers.
3190
a6341d57
NP
3191 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3192
3193 Radar 4281748
3194 * c-common.h (objc_check_global_decl): New declaration.
3195 * stub-objc.c (objc_check_global_decl): New stub.
3196
f0036cca
JM
31972010-09-29 Joseph Myers <joseph@codesourcery.com>
3198
3199 * c.opt: Don't use VarExists.
3200
e3339d0f
JM
32012010-09-29 Joseph Myers <joseph@codesourcery.com>
3202
3203 * c-common.c (c_cpp_error): Update names of diagnostic_context
3204 members.
3205 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3206 cl_optimization members.
3207 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3208 sanitize_cpp_opts, finish_options): Update names of cpp_options
3209 members.
3210
1973201f
NP
32112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3212
3213 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3214 (objc_is_reserved_word): Removed.
3215 * c-common.c: Updated comments.
3216 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3217 objc_is_reserved_word.
3218 * stub-objc.c (objc_is_reserved_word): Removed.
3219
f7e71da5
IS
32202010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3221
9faeb493 3222 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3223 include attributes.
3224 (objc_start_method_definition): Likewise.
3225 (objc_build_keyword_decl): Likewise.
3226 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3227 (objc_start_method_definition): Likewise.
3228 (objc_build_keyword_decl): Likewise.
3229
c165dca7
IS
32302010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3231
3232 * c-common.h (objc_start_class_interface): Adjust prototype.
3233 (objc_start_category_interface): Likewise.
3234 (objc_start_protocol): Likewise.
3235 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3236 (objc_start_class_interface): Likewise.
3237 (objc_start_category_interface): Likewise.
3238
7458026b
ILT
32392010-09-27 Ian Lance Taylor <iant@google.com>
3240
3241 * c-common.c (c_common_attribute_table): Add no_split_stack.
3242 (handle_no_split_stack_attribute): New static function.
3243
b581b85b
NP
32442010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3245
9faeb493 3246 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3247
3248 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3249
9faeb493 3250 Radar 4229905
b581b85b
NP
3251 * c-common.h (objc_have_common_type): New declaration.
3252 * stub-objc.c (objc_have_common_type): New stub.
3253
3254 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3255
3256 Radar 4154928
3257 * c-common.h (objc_common_type): New prototype.
9faeb493 3258 * stub-objc.c (objc_common_type): New stub.
b581b85b 3259
46a4da10
JH
32602010-09-24 Jan Hubicka <jh@suse.cz>
3261
3262 * c-common.c (handle_leaf_attribute): New function.
3263 (struct attribute_spec c_common_att): Add leaf.
3264
e200444e
JM
32652010-09-22 Joseph Myers <joseph@codesourcery.com>
3266
3267 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3268 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3269 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3270 -include-barrier, -include-directory, -include-directory=,
3271 -include-directory-after, -include-directory-after=,
3272 -include-prefix, -include-prefix=, -include-with-prefix,
3273 -include-with-prefix=, -include-with-prefix-after,
3274 -include-with-prefix-after=, -include-with-prefix-before,
3275 -include-with-prefix-before=, -no-integrated-cpp,
3276 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3277 -output=, -pedantic, -pedantic-errors, -preprocess,
3278 -print-missing-file-dependencies, -trace-includes, -traditional,
3279 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3280 -user-dependencies, -verbose, -write-dependencies,
3281 -write-user-dependencies, no-integrated-cpp, traditional): New.
3282
29a80ea6
NP
32832010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3284
3285 PR objc/23710
ac1fc2fc
NP
3286 * c-common.h (objc_start_method_definition): Return bool instead
3287 of void.
3288 * stub-objc.c (objc_start_method_definition): Return bool instead
3289 of void.
3290
32912010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3292
3293 PR objc/25965
3294 * c-common.h (objc_get_interface_ivars): New declaration.
3295 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3296
de621752
ILT
32972010-09-15 Ian Lance Taylor <iant@google.com>
3298
3299 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3300 messages. Remove period at end of warning message.
de621752 3301
ba885ec5
NS
33022010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3303
3304 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3305 (handle_alias_attribute): ... here.
3306 (handle_ifunc_attribute): New.
3307
c5ee1358
MM
33082010-09-06 Mark Mitchell <mark@codesourcery.com>
3309
3310 * c-common.h (do_warn_double_promotion): Declare.
3311 * c-common.c (do_warn_double_promotion): Define.
3312
0a0b3574
MM
33132010-09-05 Mark Mitchell <mark@codesourcery.com>
3314
3315 * c.opt (Wdouble-promotion): New.
3316
d1779886
JM
33172010-09-02 Joseph Myers <joseph@codesourcery.com>
3318
3319 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3320 fvtable-thunks, fxref): Mark no longer supported in help text.
3321
2d2bd949
JM
33222010-09-02 Joseph Myers <joseph@codesourcery.com>
3323
3324 * c.opt (Wimport, fall-virtual, falt-external-templates,
3325 fdefault-inline, fenum-int-equiv, fexternal-templates,
3326 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3327 fname-mangling-version-, fnew-abi, fnonnull-objects,
3328 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3329 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3330 applicable.
3331 (fhandle-exceptions): Mark with Alias and Warn.
3332 * c-opts.c (c_common_handle_option): Don't handle options marked
3333 as ignored.
3334
5de8299c
JM
33352010-09-02 Joseph Myers <joseph@codesourcery.com>
3336
3337 * c.opt (Wcomments, Werror-implicit-function-declaration,
3338 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3339 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3340 aliases.
3341 * c-common.c (option_codes): Use OPT_Wcomment instead of
3342 OPT_Wcomments.
3343 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3344 Don't handle options marked as aliases.
3345
0ceb0201
RG
33462010-08-25 Richard Guenther <rguenther@suse.de>
3347
3348 * c-common.c (c_common_get_alias_set): Remove special
3349 handling for pointers.
3350
ac47786e
NF
33512010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3352
3353 * c-common.c: Use FOR_EACH_VEC_ELT.
3354 * c-gimplify.c: Likewise.
3355 * c-pragma.c: Likewise.
3356
c878765b
JM
33572010-08-16 Joseph Myers <joseph@codesourcery.com>
3358
3359 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3360 RejectDriver.
3361 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3362 RejectDriver.
3363 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3364 instead of OPT_MDX and OPT_MMDX.
3365
603349bf
JM
33662010-08-16 Joseph Myers <joseph@codesourcery.com>
3367
3368 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3369
644fa7ac
JM
33702010-08-12 Joseph Myers <joseph@codesourcery.com>
3371
3372 * c.opt (MD, MMD): Change to MDX and MMDX.
3373 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3374
481e1176
JM
33752010-08-11 Joseph Myers <joseph@codesourcery.com>
3376
3377 * c-opts.c (c_common_handle_option): Call handle_generated_option
3378 instead of handle_option.
3379
ac8dc9f7
NF
33802010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3381
3382 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3383 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3384
4f8c876d
NF
33852010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3386
3387 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3388 (pending_redefine_extname): Change type to a VEC.
3389 (add_to_renaming_pragma_list): Update for new type of
3390 pending_redefine_extname.
ac8dc9f7 3391 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3392
3b0c690e
AC
33932010-08-04 Arnaud Charlet <charlet@adacore.com>
3394
3395 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3396 visited.
3397 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3398 decide whether a type has already been declared/seen.
3399 Do not go to the original type.
3400 (dump_nested_types): New parameter forward.
3401 Generate forward declaration if needed and mark type as visited.
3402 (print_ada_declaration): Call dump_nested_types if not already done.
3403 Mark types as visited.
3404
1890bccc
JM
34052010-08-03 Joseph Myers <joseph@codesourcery.com>
3406
3407 * c.opt (-print-pch-checksum): Remove option.
3408 * c-opts.c (c_common_handle_option): Don't handle
3409 OPT_print_pch_checksum.
3410
5f20c657
JM
34112010-07-27 Joseph Myers <joseph@codesourcery.com>
3412
3413 * c-common.h (c_common_handle_option): Update prototype and return
3414 value type.
3415 * c-opts.c (c_common_handle_option): Update prototype and return
3416 value type. Update calls to handle_option and
3417 enable_warning_as_error.
3418
f551f80c
JJ
34192010-07-27 Jakub Jelinek <jakub@redhat.com>
3420
3421 PR c/45079
3422 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3423
61ff2bdc
JM
34242010-07-27 Joseph Myers <joseph@codesourcery.com>
3425
3426 * c-common.h (c_common_missing_argument): Remove.
3427 * c-opts.c (c_common_missing_argument): Remove.
3428 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3429 idirafter, imacros, include, isysroot, isystem, iquote): Add
3430 MissingArgError.
3431 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3432
7a9bf9a4
JM
34332010-07-27 Joseph Myers <joseph@codesourcery.com>
3434
3435 * c-common.h (c_common_option_lang_mask,
3436 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3437 New.
3438 (c_common_init_options): Update prototype.
3439 * c-opts.c (c_common_option_lang_mask): New.
3440 (c_common_initialize_diagnostics): Split out of
3441 c_common_init_options.
3442 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3443 New.
3444 (c_common_init_options): Update prototype. Use decoded options in
3445 search for -lang-asm.
3446
910ad8de
NF
34472010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3448
3449 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3450 * c-format.c: Likewise.
3451
718f9c0f
MLI
34522010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3453
3454 * c-common.h: Include diagnostic-core.h. Error if already
3455 included.
3456 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3457
4d451982
MLI
34582010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3459
3460 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3461 Do not include expr.h
3462 (vector_mode_valid_p): Move here.
3463
119fe915
SB
34642010-06-21 DJ Delorie <dj@redhat.com>
3465
3466 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3467 allow these pragmas anywhere.
3468
34692010-06-14 Jakub Jelinek <jakub@redhat.com>
3470
3471 PR bootstrap/44509
3472 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3473 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3474 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3475 ggc_strdup instead of xstrdup.
3476
34772010-06-10 Jakub Jelinek <jakub@redhat.com>
3478
3479 * c-cppbuiltin.c: Include cpp-id-data.h.
3480 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3481 (lazy_hex_fp_value): New function.
3482 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3483
6662d794
MLI
34842010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3485
3486 * c-gimplify.c: Do not include tree-flow.h
3487
38f8b050
JR
34882010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3489
3490 PR other/44034
3491 * c-common.c: Rename targetm member:
3492 targetm.enum_va_list -> targetm.enum_va_list_p
3493
9589f23e
AS
34942010-06-28 Anatoly Sokolov <aesok@post.ru>
3495
3496 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3497
3b06d379
SB
34982010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3499
3500 * c-cppbuiltin.c: Do not include except.h.
3501
d166d4c3
AK
35022010-06-24 Andi Kleen <ak@linux.intel.com>
3503
9faeb493
UB
3504 * c-common.c (warn_for_omitted_condop): New.
3505 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3506
70cb8be6
JM
35072010-06-21 Joseph Myers <joseph@codesourcery.com>
3508
3509 * c.opt (lang-objc): Remove.
3510 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3511
a4c97feb
JR
35122010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3513
3514 * c-opts.c: Include "tm_p.h".
3515
6e2f1956
JM
35162010-06-20 Joseph Myers <joseph@codesourcery.com>
3517
3518 * c-common.c (parse_optimize_options): Update call to
3519 decode_options.
3520
bc87224e
NF
35212010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3522
3523 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3524 new type of types_used_by_cur_var_decl.
3525
b49cf425
JR
35262010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3527
3528 PR bootstrap/44512
3529 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3530 for C++ standard compliance.
3531
59f9c2ed
JM
35322010-06-16 Jason Merrill <jason@redhat.com>
3533
3534 * c.opt: Add -Wnoexcept.
3535
33766b66
RG
35362010-06-16 Richard Guenther <rguenther@suse.de>
3537
3538 PR c/44555
3539 * c-common.c (c_common_truthvalue_conversion): Remove
3540 premature and wrong optimization concering ADDR_EXPRs.
3541
eff7e30c
AC
35422010-06-15 Arnaud Charlet <charlet@adacore.com>
3543
3544 * c-ada-spec.c (dump_sloc): Remove column info.
3545 (is_simple_enum): New function.
3546 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3547 enum types when relevant.
3548
6312e84d
MLI
35492010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3550
9faeb493 3551 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3552 location.
3553
1cb42611
JM
35542010-06-10 Joseph Myers <joseph@codesourcery.com>
3555
3556 * c-opts.c (c_common_handle_option): Don't handle
3557 OPT_fshow_column.
3558
a9429e29
LB
35592010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3560
3561 * c-pragma.c (push_alignment): Use typed GC allocation.
3562 (handle_pragma_push_options): Likewise.
3563
3564 * c-common.c (parse_optimize_options): Likewise.
3565
3566 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3567 option.
3568
5498f011
JM
35692010-06-07 Joseph Myers <joseph@codesourcery.com>
3570
3571 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3572 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3573 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3574 flag_signed_bitfields, warn_strict_null_sentinel,
3575 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3576 flag_gen_declaration, flag_no_gnu_keywords,
3577 flag_implement_inlines, flag_implicit_templates,
3578 flag_implicit_inline_templates, flag_optional_diags,
3579 flag_elide_constructors, flag_default_inline, flag_rtti,
3580 flag_conserve_space, flag_access_control, flag_check_new,
3581 flag_new_for_scope, flag_weak, flag_working_directory,
3582 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3583 flag_enforce_eh_specs, flag_threadsafe_statics,
3584 flag_pretty_templates): Remove.
3585 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3586 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3587 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3588 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3589 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3590 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3591 flag_no_gnu_keywords, flag_implement_inlines,
3592 flag_implicit_templates, flag_implicit_inline_templates,
3593 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3594 flag_rtti, flag_conserve_space, flag_access_control,
3595 flag_check_new, flag_new_for_scope, flag_weak,
3596 flag_working_directory, flag_use_cxa_atexit,
3597 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3598 flag_threadsafe_statics, flag_pretty_templates,
3599 warn_strict_null_sentinel): Remove.
3600 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3601 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3602 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3603 fimplicit-inline-templates, fimplicit-templates,
3604 flax-vector-conversions, fms-extensions, fnil-receivers,
3605 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3606 frtti, fshort-double, fshort-enums, fshort-wchar,
3607 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3608 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3609 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3610 gen-decls, undef): Use Var.
3611 (fdefault-inline, foptional-diags): Document as doing nothing.
3612 * c-opts.c (c_common_handle_option): Remove cases for options now
3613 using Var. Mark ignored options as such.
3614
39dabefd
SB
36152010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3616
9faeb493 3617 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3618 * c-common.def: Likewise.
3619 * c-common.h: Likewise.
3620 * c-cppbuiltin.c: Likewise.
3621 * c-dump.c: Likewise.
3622 * c-format.c: Likewise.
3623 * c-format.h : Likewise.
3624 * c-gimplify.c: Likewise.
3625 * c-lex.c: Likewise.
3626 * c-omp.c: Likewise.
3627 * c.opt: Likewise.
3628 * c-opts.c: Likewise.
3629 * c-pch.c: Likewise.
3630 * c-ppoutput.c: Likewise.
3631 * c-pragma.c: Likewise.
3632 * c-pragma.h: Likewise.
3633 * c-pretty-print.c: Likewise.
3634 * c-pretty-print.h: Likewise.
3635 * c-semantics.c: Likewise.
3636 * stub-objc.c: Likewise.
3637
3638 * c-common.c: Include gt-c-family-c-common.h.
3639 * c-pragma.c: Include gt-c-family-c-pragma.h.
3640\f
23a5b65a 3641Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3642
3643Copying and distribution of this file, with or without modification,
3644are permitted in any medium without royalty provided the copyright
3645notice and this notice are preserved.