]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
* config/aarch64/aarch64.c (aarch64_classify_address)
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
fedfecef
MP
12014-06-03 Marek Polacek <polacek@redhat.com>
2
3 PR c/60439
4 * c.opt (Wswitch-bool): New option.
5
f6a7cffc
TS
62014-05-22 Thomas Schwinge <thomas@codesourcery.com>
7
040d18b6
TS
8 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
9 Remove prototypes.
10 (record_types_used_by_current_var_decl): Move prototype to where
11 it belongs.
12
f6a7cffc
TS
13 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
14 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
15 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
16
632f2871
RS
172014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18
19 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
20 * c-common.c (c_common_nodes_and_builtins): Don't initialize
21 void_zero_node.
22 * c-pretty-print.c (pp_c_void_constant): New function.
23 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
24 (c_pretty_printer::expression): Handle VOID_CST.
25 * cilk.c (extract_free_variables): Likewise.
26 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
27 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
28
766090c2
TS
292014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30
31 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
32 * c-pragma.c (push_alignment): Adjust.
33 (handle_pragma_push_options): Likewise.
34
661a0813
MP
352014-05-09 Marek Polacek <polacek@redhat.com>
36
37 PR c/50459
38 * c-common.c (check_user_alignment): Return -1 if alignment is error
39 node.
40 (handle_aligned_attribute): Don't call default_conversion on
41 FUNCTION_DECLs.
42 (handle_vector_size_attribute): Likewise.
43 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
44 (handle_sentinel_attribute): Call default_conversion and allow even
45 integral types as an argument.
46
2793eeab
MP
472014-05-08 Marek Polacek <polacek@redhat.com>
48
49 PR c/61053
50 * c-common.c (min_align_of_type): New function factored out from...
51 (c_sizeof_or_alignof_type): ...here.
52 * c-common.h (min_align_of_type): Declare.
53
f827930a
MP
542014-05-08 Marek Polacek <polacek@redhat.com>
55
56 PR c/61077
57 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
58 parameter type of main.
59
ca49b74e
DD
602014-05-07 DJ Delorie <dj@redhat.com>
61
62 * c-cppbuiltin.c (print_bits_of_hex): New.
63 (builtin_define_type_minmax): Print values using hex so as not to
64 require a pre-computed list of string values.
65
1d60af08
KZ
662014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
67 Mike Stump <mikestump@comcast.net>
68 Richard Sandiford <rdsandiford@googlemail.com>
69
70 * c-ada-spec.c: Include wide-int.h.
71 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
72 (dump_generic_ada_node): Use wide-int interfaces.
73 * c-common.c: Include wide-int-print.h.
74 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
75 (pointer_int_sum): Use wide-int interfaces.
76 (c_common_nodes_and_builtins): Use make_int_cst.
77 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
78 (handle_alloc_size_attribute): Use wide-int interfaces.
79 (get_nonnull_operand): Likewise.
80 * c-format.c (get_constant): Use tree_fits_uhwi_p.
81 * c-lex.c: Include wide-int.h.
82 (narrowest_unsigned_type): Take a widest_int rather than two
83 HOST_WIDE_INTs.
84 (narrowest_signed_type): Likewise.
85 (interpret_integer): Update accordingly. Use wide-int interfaces.
86 (lex_charconst): Use wide-int interfaces.
87 * c-pretty-print.c: Include wide-int.h.
88 (pp_c_integer_constant): Use wide-int interfaces.
89 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
90 INT_CST_LT_UNSIGNED.
91
b15458be
RB
922014-05-06 Richard Biener <rguenther@suse.de>
93
94 * c-opts.c (c_common_post_options): For -freestanding,
95 -fno-hosted and -fno-builtin disable pattern recognition
96 if not enabled explicitely.
97
6577374e
MP
982014-05-02 Marek Polacek <polacek@redhat.com>
99
100 * c.opt (Wsizeof-pointer-memaccess): Describe option.
101
d00887e8
MP
1022014-05-01 Marek Polacek <polacek@redhat.com>
103
104 PR c/43245
105 * c.opt (Wdiscarded-qualifiers): Add.
106
f8ed5150
MP
1072014-04-30 Marek Polacek <polacek@redhat.com>
108
109 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
110 INT_MIN / -1 sanitization only for integer types.
111
45484dcf
MP
1122014-04-25 Marek Polacek <polacek@redhat.com>
113
114 PR c/18079
115 * c-common.c (handle_noinline_attribute): Warn if the attribute
116 conflicts with always_inline attribute.
117 (handle_always_inline_attribute): Warn if the attribute conflicts
118 with noinline attribute.
119
38e514c0
MP
1202014-04-25 Marek Polacek <polacek@redhat.com>
121
122 PR c/60156
123 * c-common.c (check_main_parameter_types): Warn about variadic main.
124
44875f92
MS
1252014-04-24 Mike Stump <mikestump@comcast.net>
126
127 * c.opt (Wshadow-ivar): Default to on.
128
dcaaa5a0
DP
1292014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
130
131 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
132
c07d7c02
MP
1332014-04-23 Marek Polacek <polacek@redhat.com>
134
135 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
136
1c33c9b7
JJ
1372014-04-22 Jakub Jelinek <jakub@redhat.com>
138
139 PR sanitizer/60275
140 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
141 if flag_sanitize_undefined_trap_on_error.
142 (ubsan_instrument_division, ubsan_instrument_shift,
143 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
144 if !flag_sanitize_recover.
145
793c625f
MG
1462014-04-22 Marc Glisse <marc.glisse@inria.fr>
147
148 PR libstdc++/43622
149 * c-common.c (registered_builtin_types): Make non-static.
150 * c-common.h (registered_builtin_types): Declare.
151
b0f1bf36
RB
1522014-04-14 Richard Biener <rguenther@suse.de>
153 Marc Glisse <marc.glisse@inria.fr>
154
155 PR c/60819
156 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
157 apply may-alias the scalar pointer type when applicable.
158
3b07fa4a
IZ
1592014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
160
161 PR middle-end/60467
162 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
163 as possible argument for Cilk_spawn.
164
cbbd2b1c
TB
1652014-04-11 Tobias Burnus <burnus@net-b.de>
166
167 PR c/60194
168 * c.opt (Wformat-signedness): Add
169 * c-format.c(check_format_types): Use it.
170
6415bd5d
JM
1712014-04-11 Jason Merrill <jason@redhat.com>
172
173 PR c++/57926
174 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
175 default_conversion for an array argument.
176
6525783a
MP
1772014-04-08 Marek Polacek <polacek@redhat.com>
178
179 PR sanitizer/60745
180 * c-ubsan.c: Include asan.h.
181 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
182
880a467b
NS
1832014-04-03 Nathan Sidwell <nathan@codesourcery.com>
184
185 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
186
7b59ff2d
MP
1872014-04-02 Marek Polacek <polacek@redhat.com>
188
189 * c-common.h (c_expand_expr): Remove declaration.
190
8edbfaa6
JJ
1912014-03-28 Jakub Jelinek <jakub@redhat.com>
192
193 PR c++/60689
194 * c-common.c (add_atomic_size_parameter): When creating new
195 params vector, push the size argument first.
196
07d72e1d
JJ
1972014-03-26 Jakub Jelinek <jakub@redhat.com>
198
199 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
200 ubsan_instrument_vla, ubsan_instrument_return): Adjust
201 ubsan_create_data callers.
202
b35e0fa0
JJ
2032014-03-22 Jakub Jelinek <jakub@redhat.com>
204
205 PR debug/60603
206 * c-opts.c (c_finish_options): Restore cb_file_change call to
207 <built-in>.
208
39a1ebb3
JJ
2092014-03-13 Jakub Jelinek <jakub@redhat.com>
210
211 PR middle-end/36282
212 * c-pragma.c (apply_pragma_weak): Only look at
213 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
214 DECL_ASSEMBLER_NAME_SET_P (decl).
215 (maybe_apply_pending_pragma_weaks): Exit early if
216 vec_safe_is_empty (pending_weaks) rather than only when
217 !pending_weaks.
218 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
219 set assembler name back to NULL afterwards.
220
a07f6ed2
JM
2212014-03-11 Jason Merrill <jason@redhat.com>
222
223 * c.opt: Add -std=gnu++14.
224
75b107f5
IB
2252014-03-11 Ian Bolton <ian.bolton@arm.com>
226
227 * c-opts.c (c_common_post_options): Don't override
228 -ffp-contract=fast if unsafe-math-optimizations is on.
229
f42c637e
PM
2302014-03-08 Paulo Matos <paulo@matos-sorge.com>
231
232 * c.opt: Enable LTO FE for fshort-double.
233
70e24808
JM
2342014-03-07 Jason Merrill <jason@redhat.com>
235
236 * c.opt: Add -std=c++14.
237
3af9c5e9
MP
2382014-03-06 Marek Polacek <polacek@redhat.com>
239
240 PR c/60197
241 * cilk.c (contains_cilk_spawn_stmt): New function.
242 (contains_cilk_spawn_stmt_walker): Likewise.
243 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
244 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
245
b3bdf019
JJ
2462014-03-03 Jakub Jelinek <jakub@redhat.com>
247
248 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
249 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
250 even when flag_preprocess_only.
251
ca7e759d
JM
2522014-02-26 Jason Merrill <jason@redhat.com>
253
254 PR c++/59231
255 PR c++/11586
256 * c-common.c (shorten_compare): Don't check
257 c_inhibit_evaluation_warnings.
258
28e41874
JJ
2592014-02-19 Jakub Jelinek <jakub@redhat.com>
260
cca615af
JJ
261 PR c/37743
262 * c-common.c (c_common_nodes_and_builtins): When initializing
263 c_uint{16,32,64}_type_node, also set corresponding
264 uint{16,32,64}_type_node to the same value.
265
28e41874
JJ
266 PR c++/60267
267 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
268 for PRAGMA_IVDEP if flag_preprocess_only.
269
c2bf53a1
JJ
2702014-02-12 Jakub Jelinek <jakub@redhat.com>
271
272 PR c/60101
273 * c-common.c (merge_tlist): If copy is true, call new_tlist,
274 if false, add ADD itself, rather than vice versa.
275 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
276 copy. For SAVE_EXPR, only call merge_tlist once.
277
8fcbce72
JJ
2782014-02-08 Jakub Jelinek <jakub@redhat.com>
279
280 PR middle-end/60092
281 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
282 and tree_to_uhwi.
283 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
284 functions.
285 (c_common_attribute_table): Add alloc_align and assume_aligned
286 attributes.
287
0a756a3f
MP
2882014-02-06 Marek Polacek <polacek@redhat.com>
289
290 PR c/60087
291 * c-common.c (warn_for_sign_compare): Call warning_at with location
292 instead of warning.
293
7ec4847a
MP
2942014-02-05 Marek Polacek <polacek@redhat.com>
295
296 PR c/53123
297 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
298 statement.
299
66f20604
MP
3002014-02-04 Marek Polacek <polacek@redhat.com>
301
302 PR c/60036
303 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
304 SAVE_EXPR.
305
5d77fb19
MG
3062014-02-03 Marc Glisse <marc.glisse@inria.fr>
307
308 PR c++/53017
309 PR c++/59211
310 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
311 handle_vector_size_attribute, handle_nonnull_attribute): Call
312 default_conversion on the attribute argument.
313 (handle_nonnull_attribute): Increment the argument number.
314
81e5eca8
MP
3152014-01-31 Marek Polacek <polacek@redhat.com>
316
317 PR c/59963
318 * c-common.c (add_atomic_size_parameter): Pass vNULL to
319 build_function_call_vec.
320 (resolve_overloaded_builtin): Likewise.
321 * c-common.h (build_function_call_vec): Adjust declaration.
322
68fca595
MP
3232014-01-30 Marek Polacek <polacek@redhat.com>
324
325 PR c/59940
326 * c-common.h (unsafe_conversion_p): Adjust declaration.
327 (warnings_for_convert_and_check): Likewise.
328 (convert_and_check): Likewise.
329 * c-common.c (unsafe_conversion_p): Add location parameter. Call
330 expansion_point_location_if_in_system_header on it.
331 (warnings_for_convert_and_check): Add location parameter. Call
332 expansion_point_location_if_in_system_header on it. Use it.
333 (convert_and_check): Add location parameter. Use it.
334 (conversion_warning): Likewise.
335 (c_add_case_label): Adjust convert_and_check calls.
336 (scalar_to_vector): Adjust unsafe_conversion_p calls.
337
b72271b9
BI
3382014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
339
340 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
341 flag_cilkplus.
342 * c-pragma.c (init_pragma): Likewise.
343 * c.opt: Likewise.
344
393e8e8b
MP
3452014-01-23 Marek Polacek <polacek@redhat.com>
346
347 PR c/59846
348 * c-common.c (shorten_compare): Add location_t parameter.
349 * c-common.h (shorten_binary_op): Adjust declaration.
350
f04dda30
MP
3512014-01-23 Marek Polacek <polacek@redhat.com>
352
353 PR c/58346
354 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
355 * c-common.h: Declare it.
356
621955cb
EB
3572014-01-20 Eric Botcazou <ebotcazou@adacore.com>
358
359 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
360 * c-ada-spec.c (dump_ads): Likewise.
361 (cpp_check): Likewise.
362 (dump_ada_specs): Likewise.
363
3642014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
365
366 PR c++/49718
367 * c-common.c (handle_no_instrument_function_attribute): Allow
368 no_instrument_function attribute in class member
369 definition/declaration.
370
241f845a
JJ
3712014-01-15 Jakub Jelinek <jakub@redhat.com>
372
373 PR c/58943
374 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
375 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
376 being COMPOUND_EXPR.
377 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
378 operand a SAVE_EXPR and second MODIFY_EXPR.
379
e83b8e2e
JJ
3802014-01-09 Jakub Jelinek <jakub@redhat.com>
381
382 PR target/58115
383 * c-pch.c (c_common_write_pch): Call
384 prepare_target_option_nodes_for_pch.
385
23a5b65a
RS
3862014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
387
388 Update copyright years
389
f9030485
RS
3902014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
391
392 * array-notation-common.c, c-cilkplus.c: Use the standard form for
393 the copyright notice.
394
f2aa696b
EB
3952013-12-28 Eric Botcazou <ebotcazou@adacore.com>
396
397 * c-ada-spec.c (print_constructor): New function.
398 (print_destructor): Retrieve the origin of the destructor.
399 (print_ada_declaration): Revamp handling of constructors/destructors.
400
1f26ac87
JM
4012013-12-23 Stuart Hastings <stuart@apple.com>
402 Bill Maddox <maddox@google.com>
403 Jason Merrill <jason@redhat.com>
404
405 * c.opt: Add -fdeclone-ctor-dtor.
406 * c-opts.c (c_common_post_options): Default to on iff -Os.
407
41958c28
BI
4082013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
409
410 * c-common.c (c_common_attribute_table): Added "cilk simd function"
411 attribute.
412 * c-pragma.h (enum pragma_cilk_clause): Remove.
413 (enum pragma_omp_clause): Added the following fields:
414 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
415 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
416 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
417 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
418 PRAGMA_CILK_CLAUSE_UNIFORM.
419
420
12893402
BI
4212013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
422
423 * cilk.c (cilk_outline): Made this function non-static.
424 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
425 (create_cilk_wrapper): Added a new parameter: a function pointer.
426 (c_install_body_w_frame_cleanup): Remove
427 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
428 * c-common.h (cilk_outline): New prototype.
429 (gimplify_cilk_spawn): Removed two parameters.
430 (cilk_install_body_with_frame_cleanup): New prototype.
431 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
432 CILK_SPAWN_STMT case.
433
085b42ed
BS
4342013-12-11 Bernd Schmidt <bernds@codesourcery.com>
435
2ce064c3
BS
436 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
437
085b42ed
BS
438 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
439 (int_array_type_node): Remove.
440 * c-common.c (c_common_nodes_and_builtins): Don't build it.
441
9e36c9ed
MP
4422013-12-05 Marek Polacek <polacek@redhat.com>
443
444 PR c/52023
445 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
446 [ADJUST_FIELD_ALIGN].
447
296674db
JM
4482013-12-04 Joseph Myers <joseph@codesourcery.com>
449
450 PR c/52023
451 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
452 and check field alignment if set.
453 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
454 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
455
31e071ae
MP
4562013-12-04 Jakub Jelinek <jakub@redhat.com>
457 Marek Polacek <polacek@redhat.com>
458
459 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
460 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
461
d7947e19
L
4622013-11-29 H.J. Lu <hongjiu.lu@intel.com>
463
464 PR c/59309
465 * cilk.c (gimplify_cilk_spawn): Properly handle function without
466 arguments.
467
fad7652e
JJ
4682013-11-29 Jakub Jelinek <jakub@redhat.com>
469
470 PR c/59280
471 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
472 goto invalid. If it is error_mark_node, don't issue further
473 diagnostics.
474
8b5e1202
SO
4752013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
476
477 * c.opt (Wopenmp-simd): New.
478
0a508bb6
JJ
4792013-11-22 Jakub Jelinek <jakub@redhat.com>
480
481 * c-ubsan.h (ubsan_instrument_return): New prototype.
482 * c-ubsan.c (ubsan_instrument_return): New function.
483
2fb9a547
AM
4842013-11-22 Andrew MacLeod <amacleod@redhat.com>
485
486 * c-common.c: Add required include files from gimple.h.
487 * c-gimplify.c: Likewise
488 * cilk.c: Likewise
489
8400e75e
DM
4902013-11-22 David Malcolm <dmalcolm@redhat.com>
491
492 * c-common.c (unsafe_conversion_p): Remove use of
493 EXPR_LOC_OR_HERE macro.
494 (conversion_warning): Likewise.
495 (warnings_for_convert_and_check): Likewise.
496 (warn_for_collisions_1): Likewise.
497 (shorten_compare): Likewise, and remove use of in_system_header
498 macro, using the location from the former.
499 * c-lex.c (dump_one_header): Remove use of input_filename macro.
500 (cb_def_pragma): Remove use of in_system_header macro.
501 (lex_string): Likewise.
502 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
503
eb1ce453
KZ
5042013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
505 Mike Stump <mikestump@comcast.net>
506 Richard Sandiford <rdsandiford@googlemail.com>
507
508 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
509 instead of TREE_INT_CST_LOW, in cases where there is a protecting
510 tree_fits_shwi_p or tree_fits_uhwi_p.
511 (dump_generic_ada_node): Likewise.
512 * c-format.c (check_format_arg): Likewise.
513 * c-pretty-print.c (pp_c_integer_constant): Likewise.
514
6b3b8c27
KZ
5152013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
516
517 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
518
49b0aa18
JC
5192013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
520
521 PR c/53001
522 * c-common.c (unsafe_conversion_p): Make this function
523 return an enumeration with more detail.
524 (conversion_warning): Use the new return type of
525 unsafe_conversion_p to separately warn either about conversions
526 that lower floating point number precision or about the other
527 kinds of conversions.
528 * c-common.h (enum conversion_safety): New enumeration.
529 (unsafe_conversion_p): switching return type to
530 conversion_safety enumeration.
531 * c.opt: Adding new warning -Wfloat-conversion and
532 enabling it with -Wconversion.
533
b826515a
BS
5342013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
535
536 * c-opts.c: Include plugin.h.
537 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
538
b9a55b13
MP
5392013-11-19 Marek Polacek <polacek@redhat.com>
540
541 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
542 call.
543 (ubsan_instrument_shift): Likewise.
544 (ubsan_instrument_vla): Likewise.
545
7d362f6c
RS
5462013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
547
548 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
549 cast to unsigned type.
550
386b1f1f
RS
5512013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
552
553 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
554 tree_low_cst.
555 (complete_array_type): Update comment to refer to tree_to_[su]hwi
556 rather than tree_low_cst.
557
ae7e9ddd
RS
5582013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
559
560 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
561 tree_to_uhwi throughout.
562
9439e9a1
RS
5632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
564
565 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
566 tree_low_cst (..., 0) with tree_to_shwi throughout.
567
cc269bb6
RS
5682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
569
570 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
571 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
572
9541ffee
RS
5732013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
574
575 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
576 host_integerp (..., 0) with tree_fits_shwi_p throughout.
577
c02065fc
AH
5782013-11-15 Aldy Hernandez <aldyh@redhat.com>
579
580 * c-cilkplus.c: New file.
581 * c-common.c (readonly_error): Add location argument.
582 * c-common.h (readonly_error): Same.
583 (c_finish_cilk_clauses): Protoize.
584 (c_check_cilk_loop): Same.
585 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
586 Do not fail on error_mark_node.
587 Abstract increment canonicalization to here...
588 (c_omp_for_incr_canonicalize_ptr): New.
589 c-pragma.c (init_pragma): Register "simd" pragma.
590 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
591 (enum pragma_cilk_clause): New.
592
9cc65f15
RS
5932013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
594
595 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
596 wchar_type and host_integerp checks.
597
18f429e2
AM
5982013-11-14 Andrew MacLeod <amacleod@redhat.com>
599
600 * c-common.c: Likewise.
601 * c-gimplify.c: Likewise.
602 * cilk.c: Likewise.
603
d8a2d370
DN
6042013-11-14 Diego Novillo <dnovillo@google.com>
605
606 * c-common.c: Include fold-const.h.
607 Include stor-layout.h.
608 Include calls.h.
609 Include stringpool.h.
610 Include attribs.h.
611 Include varasm.h.
612 Include trans-mem.h.
613 * c-cppbuiltin.c: Include stor-layout.h.
614 Include stringpool.h.
615 * c-format.c: Include stringpool.h.
616 * c-lex.c: Include stringpool.h.
617 Include stor-layout.h.
618 * c-pragma.c: Include stringpool.h.
619 Include attribs.h.
620 Include varasm.h.
621 Include gcc-symtab.h.
622 * c-pretty-print.c: Include stor-layout.h.
623 Include attribs.h.
624 * cilk.c: Include stringpool.h.
625 Include calls.h.
626
38b7bc7f
JM
6272013-11-13 Joseph Myers <joseph@codesourcery.com>
628
629 * c-common.h (enum rid): Add RID_AUTO_TYPE.
630 * c-common.c (c_common_reswords): Add __auto_type.
631 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
632
45b0be94
AM
6332013-11-12 Andrew MacLeod <amacleod@redhat.com>
634
18f429e2
AM
635 * c-common.c: Include gimplify.h.
636 * c-gimplify.c: Likewise.
637 * cilk.c: Likewise.
638 * c-omp.c: Include gimple-expr.h instead of gimple.h.
639 * c-ubsan.c: Don't include gimple.h.
45b0be94 640
582d9b50
JM
6412013-11-12 Joseph Myers <joseph@codesourcery.com>
642
643 * c-common.c (c_common_reswords): Add _Thread_local.
644
6b28e197
JM
6452013-11-09 Joseph Myers <joseph@codesourcery.com>
646
647 * c-common.c (atomic_size_supported_p): New function.
648 (resolve_overloaded_atomic_exchange)
649 (resolve_overloaded_atomic_compare_exchange)
650 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
651 Use it instead of comparing size with a local list of sizes.
652
267bac10
JM
6532013-11-07 Andrew MacLeod <amacleod@redhat.com>
654 Joseph Myers <joseph@codesourcery.com>
655
656 * c-common.h (enum rid): Add RID_ATOMIC.
657 * c-common.c (c_common_reswords): Add _Atomic.
658 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
659 (keyword_is_type_qualifier): Accept RID_ATOMIC.
660 * c-format.c (check_format_types): Check for extra _Atomic
661 qualifiers in format argument.
662 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
663 (pp_c_type_qualifier_list): Mention _Atomic in comment.
664
5157b91e
TB
6652013-11-06 Tobias Burnus <burnus@net-b.de>
666
667 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
668
6dbe0958
JM
6692013-11-06 Joseph Myers <joseph@codesourcery.com>
670
671 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
672 standards modes.
673 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
674 to mean lack of IEEE 754 support.
675
e8ff5196
TB
6762013-11-05 Tobias Burnus <burnus@net-b.de>
677
678 * c.opt (-Wdate-time): New option
679 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
680
254a0760
JM
6812013-11-05 Joseph Myers <joseph@codesourcery.com>
682
683 * c-cppbuiltin.c (cpp_iec_559_value): Test
684 flag_excess_precision_cmdline not flag_excess_precision.
685
6d7f7e0a
TB
6862013-11-05 Tobias Burnus <burnus@net-b.de>
687
688 * c.opt (fopenmp-simd): New option.
689 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
690 (omp_pragmas): ... this new struct.
691 (c_pp_lookup_pragma): Also walk omp_pragmas.
692 (init_pragma): Init pragmas for -fopenmp-simd.
693
55a7f02f
MP
6942013-11-04 Marek Polacek <polacek@redhat.com>
695
696 PR c++/58979
697 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
698
9193fb05
JM
6992013-11-04 Joseph Myers <joseph@codesourcery.com>
700
701 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
702 New functions.
703 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
704
94159ecf
EB
7052013-11-04 Eric Botcazou <ebotcazou@adacore.com>
706
707 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
708 (dump_ada_specs): Adjust prototype of second callback.
709 * c-ada-spec.c (cpp_check): New global variable.
710 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
711 (print_generic_ada_decl): Likewise.
712 (has_static_fields): Change return type to bool and add guard.
713 (has_nontrivial_methods): New predicate.
714 (is_tagged_type): Change return type to bool.
715 (separate_class_package): Call has_nontrivial_methods.
716 (pp_ada_tree_identifier): Minor tweaks.
717 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
718 (dump_ada_array_domains): Likewise.
719 (dump_ada_array_type): Likewise.
720 (dump_template_types): Remove cpp_check parameter and do not pass it to
721 dump_generic_ada_node.
722 (dump_ada_template): Likewise.
723 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
724 recursively.
725 (print_ada_methods): Change return type to integer. Remove cpp_check
726 parameter and do not pass it down.
727 (dump_nested_types): Remove cpp_check parameter and do not pass it to
728 dump_generic_ada_node.
729 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
730 accessing methods.
731 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
732 down. Use has_nontrivial_methods to recognize C++ classes. Use return
733 value of print_ada_methods.
734 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
735 Set cpp_check to it before invoking dump_ada_nodes.
736 (dump_ada_specs): Likewise.
737
b906f4ca
MP
7382013-11-03 Marek Polacek <polacek@redhat.com>
739
740 * c-ubsan.c: Don't include hash-table.h.
741 (ubsan_instrument_vla): New function.
742 * c-ubsan.h: Declare it.
743
5e20cdc9
DM
7442013-10-31 David Malcolm <dmalcolm@redhat.com>
745
746 Automated part of renaming of symtab_node_base to symtab_node.
747
748 Patch autogenerated by rename_symtab.py from
749 https://github.com/davidmalcolm/gcc-refactoring-scripts
750 revision 58bb219cc090b2f4516a9297d868c245495ee622
751
752 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
753 symtab_node_base to symtab_node.
754
7057e645
ESR
7552013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
756
757 Implement C++14 digit separators.
758 * c-lex.c (interpret_float): Remove digit separators from scratch string
759 before building real literal.
760
193ea7bc
JJ
7612013-10-30 Jakub Jelinek <jakub@redhat.com>
762
763 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
764
939b37da
BI
7652013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
766
767 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
768 fields.
769 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
770 enabled.
771 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
772 (insert_cilk_frame): New prototype.
773 (cilk_init_builtins): Likewise.
774 (gimplify_cilk_spawn): Likewise.
775 (c_cilk_install_body_w_frame_cleanup): Likewise.
776 (cilk_detect_spawn_and_unwrap): Likewise.
777 (cilk_set_spawn_marker): Likewise.
778 (build_cilk_sync): Likewise.
779 (build_cilk_spawn): Likewise.
780 * cilk.c: New file.
781
67348ccc
DM
7822013-10-29 David Malcolm <dmalcolm@redhat.com>
783
784 Patch autogenerated by refactor_symtab.py from
785 https://github.com/davidmalcolm/gcc-refactoring-scripts
786 revision 58bb219cc090b2f4516a9297d868c245495ee622
787
788 * c-gimplify.c (c_genericize): Update for conversion of symtab types
789 to a true class hierarchy.
790 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
791
d570872d
RS
7922013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
793
794 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
795
98906124
JL
7962013-10-26 Jeff Law <law@redhat.com>
797
798 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
799 * c-family/c.opt: Ignore and warn for mudflap options.
800
d73749df 8012013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
802
803 PR other/33426
804 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
805 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
806
3f04b1bb
JM
8072013-10-23 Jason Merrill <jason@redhat.com>
808
809 * c-format.c (gcc_cxxdiag_char_table): Add %X.
810
acf0174b
JJ
8112013-10-11 Jakub Jelinek <jakub@redhat.com>
812
acd15a28
JJ
813 * c-common.h (omp_clause_mask::operator !=): New method.
814 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
815 instead of if (mask & something) tests everywhere.
816
acf0174b
JJ
817 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
818 201307 instead of 201107.
819 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
820 (c_common_attribute_table): Add "omp declare target" and
821 "omp declare simd" attributes.
822 (handle_omp_declare_target_attribute,
823 handle_omp_declare_simd_attribute): New functions.
824 * c-omp.c: Include c-pragma.h.
825 (c_finish_omp_taskgroup): New function.
826 (c_finish_omp_atomic): Add swapped argument, if true,
827 build the operation first with rhs, lhs arguments and use NOP_EXPR
828 build_modify_expr.
829 (c_finish_omp_for): Add code argument, pass it down to make_code.
830 (c_omp_split_clauses): New function.
831 (c_split_parallel_clauses): Removed.
832 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
833 c_omp_declare_simd_clauses_to_decls): New functions.
834 * c-common.h (omp_clause_mask): New type.
835 (OMP_CLAUSE_MASK_1): Define.
836 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
837 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
838 omp_clause_mask::operator |, omp_clause_mask::operator &,
839 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
840 omp_clause_mask::operator ==): New methods.
841 (enum c_omp_clause_split): New.
842 (c_finish_omp_taskgroup): New prototype.
843 (c_finish_omp_atomic): Add swapped argument.
844 (c_finish_omp_for): Add code argument.
845 (c_omp_split_clauses): New prototype.
846 (c_split_parallel_clauses): Removed.
847 (c_omp_declare_simd_clauses_to_numbers,
848 c_omp_declare_simd_clauses_to_decls): New prototypes.
849 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
850 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
851 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
852 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
853 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
854 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
855 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
856 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
857 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
858 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
859 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
860 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
861 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
862 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
863 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
864 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
865 PRAGMA_OMP_CLAUSE_UNIFORM.
866
826cacfe
MG
8672013-10-09 Marc Glisse <marc.glisse@inria.fr>
868
869 PR tree-optimization/20318
870 * c-common.c (handle_returns_nonnull_attribute): New function.
871 (c_common_attribute_table): Add returns_nonnull.
872
2284b034
MG
8732013-10-03 Marc Glisse <marc.glisse@inria.fr>
874
875 PR c++/19476
876 * c.opt (fcheck-new): Move to common.opt.
877
b56e9788
MP
8782013-09-25 Marek Polacek <polacek@redhat.com>
879 Jakub Jelinek <jakub@redhat.com>
880
881 PR sanitizer/58413
882 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
883 an expression if we can prove it is correct.
884 (ubsan_instrument_division): Likewise. Remove unnecessary
885 check.
886
ce6923c5
MP
8872013-09-18 Marek Polacek <polacek@redhat.com>
888
889 PR sanitizer/58411
890 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
891 Declare it.
892 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
893
fb5610fb
IS
8942013-09-14 Iain Sandoe <iain@codesourcery.com>
895
896 PR target/48094
897 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
898 fobjc-gc, freplace-objc-classes): Accept for LTO.
899
88b0e79e
JC
9002013-09-13 Jacek Caban <jacek@codeweavers.com>
901
902 * c-target.def: New hook
903
c9b0866a
PC
9042013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
905
906 PR c++/43452
907 * c.opt (Wdelete-incomplete): Add.
908
0af94e6f
JR
9092013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
910
911 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
912 (vector_types_compatible_elements_p): New function.
913 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
914 declaration.
915 (vector_types_compatible_elements_p): Declare.
916
7c26172c
GDR
9172013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
918
919 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
920 a virtual member function.
921 (pp_simple_type_specifier): Remove.
922 (pp_c_type_specifier): Likewise.
923 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
924 Rename from pp_c_type_specifier. Adjust.
925 (c_pretty_printer::c_pretty_printer): Do not assign to
926 simple_type_specifier.
927
20059c8b
GDR
9282013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
929
930 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
931 member function.
932 (c_pretty_printer::storage_class_specifier): Likewise.
933 (c_pretty_printer::initializer): Likewise.
934 (pp_declaration): Remove.
935 (pp_declaration_specifiers): Likewise.
936 (pp_abstract_declarator): Likewise.
937 (pp_declarator): Likewise.
938 (pp_type_id): Likewise.
939 (pp_statement): Likewise.
940 (pp_constant): Likewise.
941 (pp_id_expression): Likewise.
942 (pp_primary_expression): Likewise.
943 (pp_unary_expression): Likewise.
944 (pp_multiplicative_expression): Likewise.
945 (pp_conditional_expression): Likewise.
946 (pp_assignment_expression): Likewise.
947 (pp_expression): Likewise.
948 (pp_c_type_id): Likewise.
949 (pp_c_storage_class_specifier): Likewise.
950 * c-pretty-print.c (pp_c_type_cast): Tidy.
951 (pp_c_pointer): Likewise.
952 (pp_c_type_specifier): Likewise.
953 (pp_c_parameter_type_list): Likewise.
954 (pp_c_function_definition): Likewise.
955 (pp_c_init_declarator): Likewise.
956 (pp_c_initializer_list): Likewise.
957 (pp_c_constructor_elts): Likewise.
958 (c_pretty_printer::direct_abstract_declarator): Likewise.
959 (c_pretty_printer::declaration_specifiers): Likewise.
960 (c_pretty_printer::primary_expression): Likewise.
961 (c_pretty_printer::postfix_expression): Likewise.
962 (c_pretty_printer::type_id): Rename from pp_c_type_id.
963 (c_pretty_printer::storage_class_specifier): Rename from
964 pp_c_storage_class_specifier.
965 (c_pretty_printer::initializer): Rename from pp_c_initializer.
966 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
967 storage_class_specifier, initializer, offset_list, flags.
968
de5a5fa1
MP
9692013-08-30 Marek Polacek <polacek@redhat.com>
970
971 * c-ubsan.c: New file.
972 * c-ubsan.h: New file.
973
8f0e4d72
GDR
9742013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
975
976 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
977 member function.
978 (c_pretty_printer::declaration_specifiers): Likewise.
979 (c_pretty_printer::declarator): Likewise.
980 (c_pretty_printer::abstract_declarator): Likewise.
981 (c_pretty_printer::direct_abstract_declarator): Likewise.
982 (c_pretty_printer::direct_declarator): Likewise.
983 (c_pretty_printer::function_specifier): Likewise.
984 (pp_declaration): Adjust.
985 (pp_declaration_specifiers): Likewise.
986 (pp_abstract_declarator): Likewise.
987 (pp_direct_declarator): Likewise.
988 (pp_function_specifier): Likewise.
989 (pp_direct_abstract_declarator): Remove as unused.
990 (pp_c_declaration): Remove.
991 (pp_c_declaration_specifiers): Likewise.
992 (pp_c_declarator): Likewise.
993 (pp_c_direct_declarator): Likewise.
994 (pp_c_function_specifier): Likewise.
995 (pp_c_direct_abstract_declarator): Likewise.
996 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
997 from pp_c_abstract_declarator. Adjust.
998 (c_pretty_printer::direct_abstract_declarator): Rename from
999 pp_c_direct_abstract_declarator. Adjust.
1000 (c_pretty_printer::function_specifier): Rename from
1001 pp_c_function_specifier. Adjust.
1002 (c_pretty_printer::declaration_specifiers): Rename from
1003 pp_c_declaration_specifiers. Adjust.
1004 (c_pretty_printer::direct_declarator): Rename from
1005 pp_c_direct_declarator. Adjust.
1006 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1007 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1008 (c_pretty_printer::c_pretty_printer): Do not assign to
1009 declaration, declaration_specifiers, declarator,
1010 direct_declarator, direct_abstract_declarator, function_specifier.
1011
00d34d3a
GDR
10122013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1013
1014 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1015 virtual member function.
1016 (c_pretty_printer::multiplicative_expression): Likewise.
1017 (c_pretty_printer::conditional_expression): Likewise.
1018 (c_pretty_printer::assignment_expression): Likewise.
1019 (c_pretty_printer::expression): Likewise.
1020 (pp_unary_expression): Adjust.
1021 (pp_multiplicative_expression): Likewise.
1022 (pp_assignment_expression): Likewise.
1023 (pp_conditional_expression): Likewise.
1024 (pp_expression): Likewise.
1025 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1026 from pp_c_unary_expression. Adjust.
1027 (c_pretty_printer::multiplicative_expression): Rename from
1028 pp_c_multiplicative_expression. Adjust.
1029 (c_pretty_printer::conditional_expression): Rename from
1030 pp_c_conditional_expression. Adjust.
1031 (c_pretty_printer::assignment_expression): Rename from
1032 pp_c_assignment_expression. Adjust.
1033 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1034 (c_pretty_printer::c_pretty_printer): Do not assign to
1035 unary_expression, multiplicative_expression,
1036 conditional_expression, expression.
1037
fb22178f
GDR
10382013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1039
1040 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1041 virtual member function.
1042 (pp_postfix_expression): Adjust.
1043 (pp_c_postfix_expression): Remove.
1044 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1045 from pp_c_postfix_expression. Adjust.
1046 (c_pretty_printer::c_pretty_printer): Do not assign to
1047 postfix_expression.
1048
7ecc2600
GDR
10492013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1050
1051 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1052 virtua member function.
1053 (pp_primary_expression): Adjust.
1054 (pp_c_primary_expression): Remove.
1055 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1056 from pp_c_primary_expression. Adjust.
1057 (pp_c_initializer_list): Use pp_primary_expression.
1058 (c_pretty_printer::c_pretty_printer): Do not assign to
1059 primary_expression.
1060
0691175f
GDR
10612013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1062
1063 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1064 * c-pretty-print.c (M_): Remove.
1065 (c_pretty_printer::translate_string): Define.
1066 (pp_c_type_specifier): Use it.
1067 (pp_c_primary_expression): Likewise.
1068 (pp_c_expression): Likewise.
1069
66dfe4c4
GDR
10702013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1071
1072 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1073 virtual function.
1074 (pp_c_id_expression): Remove.
1075 (pp_id_expression): Adjust.
1076 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1077 pp_c_id_expression. Adjust.
1078 (pp_c_postfix_expression): Use pp_id_expression.
1079 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1080
ca43e9d5
GDR
10812013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1082
1083 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1084 member function.
1085 (pp_constant): Adjust.
1086 (pp_c_constant): Remove.
1087 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1088 pp_c_constant. Adjust.
1089 (pp_c_constant)
1090 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1091 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1092
da6ca2b5
GDR
10932013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1094
1095 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1096 (c_pretty_printer::c_pretty_printer): Declare.
1097 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1098 c_pretty_printer_init. Adjust.
1099 (print_c_tree): Do not call c_pretty_printer_init.
1100 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1101
65a372f4
AC
11022013-08-09 Arnaud Charlet <charlet@adacore.com>
1103
1104 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1105
fd9b0f32
PC
11062013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1107
1108 PR c++/58080
1109 * c-common.c (pointer_int_sum): Add bool parameter.
1110 * c-common.h (pointer_int_sum): Adjust declaration.
1111
e0aec1e9
GDR
11122013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1113
1114 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1115 c_pretty_printer variable.
1116
b066401f
GDR
11172013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1118
1119 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1120 (pp_base): Remove.
1121 (pp_c_base): Likewise. Adjust users.
1122 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1123 (pp_c_whitespace): Do not call pp_base.
1124 (pp_c_left_paren): Likewise.
1125 (pp_c_right_paren): Likewise.
1126 (pp_c_left_brace): Likewise.
1127 (pp_c_right_brace): Likewise.
1128 (pp_c_left_bracket): Likewise.
1129 (pp_c_right_bracket): Likewise.
1130 (pp_c_dot): Likewise.
1131 (pp_c_ampersand): Likewise.
1132 (pp_c_star): Likewise.
1133 (pp_c_arrow): Likewise.
1134 (pp_c_semicolon): Likewise.
1135 (pp_c_complement): Likewise.
1136 (pp_c_exclamation): Likewise.
1137 (pp_c_direct_declarator): Likewise.
1138 (pp_c_ws_string): Likewise.
1139 (pp_c_identifier): Likewise.
1140 (pp_c_statement): Likewise.
1141 (print_c_tree): Likewise.
1142
65e5a578
ESR
11432013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1144
1145 PR c++/58072
1146 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1147 provide useful error strings.
1148
137a1a27
GDR
11492013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1150
1151 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1152 printer functions instead of pp_string or operators and punctuators.
1153 (dump_generic_ada_node): Likewise.
1154 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1155 (pp_c_relational_expression): Likewise.
1156 (pp_c_logical_or_expression): Likewise.
1157
07838b13
GDR
11582013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1159
1160 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1161 functions instead of pp_character.
1162 (pp_ada_tree_identifier): Likewise.
1163 (dump_ada_double_name): Likewise.
1164 (dump_ada_function_declaration): Likewise.
1165 (dump_ada_array_domains): Likewise.
1166 (dump_template_types): Likewise.
1167 (dump_generic_ada_node): Likewise.
1168 (print_ada_declaration): Likewise.
1169 (print_ada_struct_decl): Likewise.
1170 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1171
433cc7b0
TT
11722013-07-23 Tom Tromey <tromey@redhat.com>
1173
1174 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1175 * c-common.c (c_common_reswords): Add _Generic.
1176
688010ba
OB
11772013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1178
1179 * c-common.c: Fix typos.
1180 * c-common.h: Likewise.
1181
2a99e5e6
LL
11822013-07-13 Lubos Lunak <l.lunak@suse.cz>
1183
1184 PR c++/55203
1185 * c-common.c (c_common_attribute_table): Add warn_unused.
1186 (handle_warn_unused_attribute): New.
1187
c26302d5
JJ
11882013-07-10 Jakub Jelinek <jakub@redhat.com>
1189
1190 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1191 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1192
dfeadaa0
PC
11932013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1194
1195 PR c++/57869
1196 * c.opt: Add Wconditionally-supported.
1197
6a2fa4b2
GS
11982013-07-08 Graham Stott <graham.stott@btinternet.com>
1199
1200 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1201 unused variables l_length and l_node.
1202
ecdbd01a 12032013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1204
1205 PR c/57821
1206 * c-common.c (complete_array_type): Delay folding first index
1207 like other indices. When folding, check for index overflow.
1208
bedc293e
MG
12092013-06-27 Marc Glisse <marc.glisse@inria.fr>
1210
1211 PR c++/57509
1212 * c-common.h (c_build_vec_perm_expr): New complain argument.
1213 * c-common.c (c_build_vec_perm_expr): Likewise.
1214 Use save_expr also in C++.
1215
604b2bfc
GDR
12162013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1217
1218 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1219 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1220 * c-opts.c (c_common_post_options): Likewise.
1221
dfeadaa0 12222013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1223
1224 * array-notation-common.c (length_mismatch_in_expr): Changed the
1225 parameter type's from a dynamic array to a vec_tree. Also removed
1226 the size parameters.
1227 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1228 the change above.
1229
2ce86d2e
BI
12302013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1231
1232 * c-common.h (struct cilkplus_an_parts): New structure.
1233 (struct cilkplus_an_loop_parts): Likewise.
1234 (cilkplus_extract_an_triplets): New prototype.
1235 (fix_sec_implicit_args): Likewise.
1236 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1237 (fix_sec_implicit_args): Likewise.
604b2bfc 1238
07a6825b
BI
12392013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1240
1241 * array-notation-common.c (find_inv_trees): Removed an unwanted
1242 typecasting.
1243 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1244 enum rid to enum tree_code.
1245
08346abd
JH
12462013-06-11 Jan Hubicka <jh@suse.cz>
1247
1248 * c-common.c (handle_alias_ifunc_attribute): Do not set
1249 DECL_EXTERNAL for weakref variables.
1250 * c-pragma.c (handle_pragma_weak): Make sure aliases
1251 are not declared as external.
1252
d60f1706
BI
12532013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1254
1255 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1256 function from c/c-array-notation.c.
1257 (is_cilkplus_reduce_builtin): Likewise.
1258 (find_rank): Likewise.
1259 (extract_array_notation_exprs): Likewise.
1260 (replace_array_notations): Likewise.
1261 (find_inv_trees): Likewise.
1262 (replace_inv_trees): Likewise.
1263 (contains_array_notation_expr): Likewise.
1264 (find_correct_array_notation_type): Likewise.
1265 * c-common.h (struct inv_list): Moved this struct from the file
1266 c/c-array-notation.c and added a new field called additional tcodes.
1267 (length_mismatch_in_expr_p): New prototype.
1268 (is_cilkplus_reduce_builtin): Likewise.
1269 (find_rank): Likewise.
1270 (extract_array_notation_exprs): Likewise.
1271 (replace_array_notation): Likewise.
1272 (find_inv_trees): Likewise.
1273 (replace_inv_trees): Likewise.
1274 (find_correct_array_notation_type): Likewise.
dfeadaa0 1275
36536d79
BI
12762013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1277
1278 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1279 function array_notation_init_builtins is called.
1280 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1281 * c-common.def (ARRAY_NOTATION_REF): New tree.
1282 * c-common.h (build_array_notation_expr): New function declaration.
1283 (build_array_notation_ref): Likewise.
1284 (extract_sec_implicit_index_arg): New extern declaration.
1285 (is_sec_implicit_index_fn): Likewise.
1286 (ARRAY_NOTATION_CHECK): New define.
1287 (ARRAY_NOTATION_ARRAY): Likewise.
1288 (ARRAY_NOTATION_START): Likewise.
1289 (ARRAY_NOTATION_LENGTH): Likewise.
1290 (ARRAY_NOTATION_STRIDE): Likewise.
1291 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1292 ARRAY_NOTATION_REF.
1293 (pp_c_expression): Likewise.
1294 * c.opt (flag_enable_cilkplus): New flag.
1295 * array-notation-common.c: New file.
1296
f7716d57
JJ
12972013-05-14 Jakub Jelinek <jakub@redhat.com>
1298
1299 PR c++/57274
1300 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1301
a5e0cd1d
MG
13022013-05-10 Marc Glisse <marc.glisse@inria.fr>
1303
1304 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1305 vectors.
1306
f6bc1c4a
HS
13072013-05-07 Han Shen <shenhan@google.com>
1308
1309 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1310
3f12f6e9
SKS
13112013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1312
1313 * c-common.c (check_user_alignment): Emit error for negative values.
1314
61949153
PC
13152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1316
1317 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1318
e93e18e9
PC
13192013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1320
1321 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1322 __GXX_EXPERIMENTAL_CXX1Y__.
1323
44d90fe1
PC
13242013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1325 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1326
1327 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1328 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1329 to simply use OPT_Wpointer_arith.
1330 (c_sizeof_or_alignof_type): Likewise.
1331
13f39b2e
PC
13322013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1333
1334 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1335
4b84d650
JJ
13362013-04-12 Jakub Jelinek <jakub@redhat.com>
1337
1338 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1339 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1340 specifiers.
1341
fb037b5d
SB
13422013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1343
1344 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1345
4e856798
PC
13462013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1347
1348 * c-common.c (pointer_int_sum): Remove dead code.
1349
4b1baac8
RS
13502013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1351
1352 PR middle-end/56524
1353 * c-common.c (handle_optimize_attribute): Don't call
1354 save_optabs_if_changed.
1355
0b50e654
JJ
13562013-03-05 Jakub Jelinek <jakub@redhat.com>
1357
1358 PR middle-end/56461
1359 * c-pch.c (pch_init): Free target_validity at the end.
1360
48c41403
JJ
13612013-03-04 Jakub Jelinek <jakub@redhat.com>
1362
1363 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1364
e664c61c
KS
13652013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1366 Jakub Jelinek <jakub@redhat.com>
1367
1368 PR sanitizer/56454
1369 * c-common.c (handle_no_sanitize_address_attribute): New function.
1370 (c_common_attribute_table): Add no_sanitize_address attribute.
1371 (handle_no_address_safety_analysis_attribute): Add
1372 no_sanitize_address attribute, not no_address_safety_analysis
1373 attribute.
1374
a475fd3d 13752013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1376
1377 PR target/52555
1378 * c-common.c (handle_optimize_attribute): Call
1379 save_optabs_if_changed.
1380
f6007d99
JJ
13812013-02-18 Jakub Jelinek <jakub@redhat.com>
1382 Steven Bosscher <steven@gcc.gnu.org>
1383
1384 PR pch/54117
1385 * c-opts.c (c_common_post_options): If debug info is enabled
1386 and non-dwarf*, refuse to load PCH files and when writing PCH
1387 file warn.
1388
cf35e2b1
JJ
13892013-02-05 Jakub Jelinek <jakub@redhat.com>
1390
1391 PR middle-end/56167
1392 * c-common.c (handle_error_attribute): Fix condition.
1393
32887460
JJ
13942013-01-30 Jakub Jelinek <jakub@redhat.com>
1395
1396 PR c++/55742
1397 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1398
5af057d8
JM
13992013-01-18 Jason Merrill <jason@redhat.com>
1400
1401 PR target/54908
1402 * c.opt (-fextern-tls-init): New.
1403 * c-opts.c (c_common_post_options): Handle it.
1404
cc83c823
JJ
14052013-01-09 Jakub Jelinek <jakub@redhat.com>
1406
1407 PR c/48418
1408 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1409 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1410 and is either negative or bigger or equal to type precision
1411 of the first operand.
1412
a859517f
MP
14132012-12-03 Marek Polacek <polacek@redhat.com>
1414
1415 PR c/55570
1416 * c-common.c (check_user_alignment): Swap order of tests,
1417 check TREE_CODE first.
1418
2d7aa578
ESR
14192012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1420
1421 PR c++/52654
1422 * c-common.h (overflow_type): New enum.
1423 (build_userdef_literal): Add overflow_type argument.
1424 (tree_userdef_literal): Add overflow_type.
1425 (USERDEF_LITERAL_OVERFLOW): New access macro.
1426 * c-common.c (build_userdef_literal): Add overflow_type
1427 argument.
1428 * c-lex.c (c_lex_with_flags): Add overflow_type to
1429 build_userdef_literal calls.
1430 (interpret_integer, interpret_float): Add overflow_type argument.
1431
cc3c4f62
RB
14322012-11-28 Richard Biener <rguenther@suse.de>
1433
1434 PR c/35634
1435 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1436 here and use a type with proper overflow behavior for types that would
1437 need to be promoted for the arithmetic.
1438
77bc5132
JJ
14392012-11-23 Jakub Jelinek <jakub@redhat.com>
1440
1441 PR sanitizer/55435
1442 * c-common.c (handle_no_address_safety_analysis_attribute): New
1443 function.
1444 (c_common_attribute_table): Add no_address_safety_analysis.
1445
5dc99c46
SB
14462012-11-16 Simon Baldwin <simonb@google.com>
1447
1448 * c.opt: Add f[no-]canonical-system-headers.
1449 * c-opts.c (c_common_handle_option): Handle
1450 OPT_fcanonical_system_headers.
1451
a4a0016d
ESR
14522012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1453
1454 PR c++/54413
1455 * c-opts.c (c_common_handle_option): Set new flags.
1456 * c.opt: Describe new flags.
1457
7dbb85a7
JM
14582012-11-09 Jason Merrill <jason@redhat.com>
1459
1460 * c.opt (Wabi-tag): New.
1461
ad7bac31
AK
14622012-11-09 Andi Kleen <ak@linux.intel.com>
1463
1464 PR 55139
1465 * c-common.c (get_atomic_generic_size): Mask with
1466 MEMMODEL_MASK
1467
7332899a
MLI
14682012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1469
1470 PR c/53063
1471 * c.opt (Wformat): Make it Alias Wformat=1.
1472 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1473 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1474 LangEnabledBy.
1475 (Wformat=): RejectNegative. Use LangEnabledBy.
1476 (Wnonnull): Use LangEnabledBy.
1477 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1478 * c-format.c (set_Wformat): Delete.
1479 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1480 (maybe_read_dollar_number): Likewise.
1481 (avoid_dollar_number): Likewise.
1482 (finish_dollar_format_checking): Likewise.
1483 (check_format_info): Likewise.
1484 (check_format_info_main): Likewise.
1485 (check_format_types): Likewise.
1486 (format_type_warning): Likewise.
1487 * c-common.c (int): Likewise.
1488 (check_function_sentinel): Likewise.
1489 * c-common.h (warn_format,set_Wformat): Do not declare here.
1490
34a180a6
MLI
14912012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1492
1493 PR c/53063
1494 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1495 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1496 Use LangEnabledBy.
1497 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1498 common.opt.
1499 (Wvariadic-macros): Init(1).
1500 * c-opts.c (c_common_handle_option): Do not handle them
1501 explicitly.
1502 (c_common_post_options): Likewise.
1503 (sanitize_cpp_opts): warn_unused_macros is now
1504 cpp_warn_unused_macros.
1505 (push_command_line_include): Likewise.
1506 * c-common.c (warn_unknown_pragmas): Do not define.
1507 * c-common.h (warn_unknown_pragmas): Do not declare.
1508
3f46d6a5
MLI
15092012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1510
1511 PR c/51294
1512 * c-common.c (conversion_warning): Handle conditional expressions.
1513
880661a4
JW
15142012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1515
1516 PR c++/54930
1517 * c.opt (Wreturn_local_addr): Define new option.
1518
4514a96b
JM
15192012-10-25 Jason Merrill <jason@redhat.com>
1520
f14edc1a
JM
1521 * c.opt (Wvirtual-move-assign): New.
1522
4514a96b
JM
1523 * c.opt (Winherited-variadic-ctor): New.
1524
93100c6b
MG
15252012-10-25 Marc Glisse <marc.glisse@inria.fr>
1526
1527 PR c++/54427
1528 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1529
1efcb8c6
JM
15302012-10-23 Joseph Myers <joseph@codesourcery.com>
1531
1532 * c-common.h (pch_cpp_save_state): Declare.
1533 * c-target.def (c_preinclude): New hook.
1534 * c-opts.c (done_preinclude): New.
1535 (push_command_line_include): Handle default preincluded header.
1536 (cb_file_change): Call pch_cpp_save_state when calling
1537 push_command_line_include.
1538 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1539 (pch_cpp_save_state): New.
1540 (pch_init): Call pch_cpp_save_state conditionally, instead of
1541 calling cpp_save_state.
1542
4a0ae68e
MLI
15432012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1544
1545 PR c/53063
1546 PR c/40989
1547 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1548 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1549 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1550 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1551 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1552 * c-opts.c (c_common_handle_option): Remove explicit handling from
1553 here.
1554 (c_common_post_options): Likewise.
1555
67e4210b
EB
15562012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1557
1558 * c-ada-spec.c (LOCATION_COL): Delete.
1559 (compare_location): New function.
1560 (compare_node): Use it.
1561 (compare_comment): Likewise.
1562
65d4f2cd
MLI
15632012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1564
1565 PR c/53063
1566 PR c/40989
1567 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1568 * c-opts.c (c_common_handle_option): Do not set them here. Add
1569 comment.
1570 (c_common_post_options): Likewise.
1571
909881cb
EB
15722012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1573
1574 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1575 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1576 Remove POINTER_TYPE handling, add large unsigned handling and use
1577 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1578
3a785c97
JJ
15792012-10-12 Jakub Jelinek <jakub@redhat.com>
1580
1581 PR c/54381
1582 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1583 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1584 locs and array of 3 trees instead of just single loc and single
1585 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1586 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1587 For *cmp* builtins that take two sources strings report warnings
1588 about first and second source, not about destination and source.
1589
5e54f81d
MG
15902012-10-12 Marc Glisse <marc.glisse@inria.fr>
1591
1592 PR c++/53055
1593 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1594
f5b02f1e
EB
15952012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1596
1597 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1598 declaring something coming from another file.
1599
b46dbc6c
AC
16002012-10-10 Arnaud Charlet <charlet@adacore.com>
1601
f5b02f1e 1602 PR ada/54845
b46dbc6c
AC
1603 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1604
5d9de0d0
PC
16052012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1606
1607 PR c++/54194
1608 * c-common.c (warn_about_parentheses): Add location_t parameter;
1609 use EXPR_LOC_OR_LOC.
1610 * c-common.h: Update declaration.
1611
a212e43f
MG
16122012-10-09 Marc Glisse <marc.glisse@inria.fr>
1613
1614 PR c++/54427
1615 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1616 more operations. Make error messages optional.
1617 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1618 (scalar_to_vector): Declare.
1619
b1db7f91
JM
16202012-10-08 Jason Merrill <jason@redhat.com>
1621
1622 * c-common.c (c_common_reswords): Add thread_local.
1623
e28d52cf
DS
16242012-10-08 Dodji Seketeli <dodji@redhat.com>
1625
1626 PR c++/53528 C++11 attribute support
1627 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1628 new functions.
1629 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1630 static function.
1631 (handle_aligned_attribute): In choose strictest alignment
1632 among many. Use new check_cxx_fundamental_alignment_constraints.
1633 (handle_transparent_union_attribute): In c++11 attribute syntax,
1634 don't look through typedefs.
1635
3b78de56
AC
16362012-10-04 Arnaud Charlet <charlet@adacore.com>
1637
1638 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1639 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1640 out of dumpfile.h.
1641
6040bb5f
DC
16422012-09-25 Dehao Chen <dehao@google.com>
1643
1644 PR middle-end/54645
3b78de56 1645 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1646 map when read in the pch.
1647
0b07a57e
AC
16482012-09-18 Arnaud Charlet <charlet@adacore.com>
1649
1650 * c-ada-spec.c: Style fixes.
1651
da5182be
TQ
16522012-09-18 Thomas Quinot <quinot@adacore.com>
1653
1654 * c.opt (-fada-spec-parent): Define new command line switch.
1655 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1656 is specified, generate binding spec as a child of the specified unit.
1657
0ccb505d
PC
16582012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1659 Manuel López-Ibáñez <manu@gcc.gnu.org>
1660
1661 PR c++/53210
1662 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1663
c583af79
AC
16642012-08-23 Arnaud Charlet <charlet@adacore.com>
1665
1666 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1667 for pointers, and add missing Convention C pragma.
1668 (print_ada_struct_decl): Add missing aliased keyword.
1669 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1670
1a4049e7
JJ
16712012-08-17 Jakub Jelinek <jakub@redhat.com>
1672
1673 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1674 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1675 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1676 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1677 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1678
70b5e7dc
RG
16792012-08-10 Richard Guenther <rguenther@suse.de>
1680
1681 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1682
f8923f7e
SB
16832012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1684
1685 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1686 instead of separate pp_newline and pp_flush.
1687 (print_c_tree): Likewise.
1688
e45abe1f
RH
16892012-07-26 Richard Henderson <rth@redhat.com>
1690
1691 * c-common.c (handle_hot_attribute): Allow labels.
1692 (handle_cold_attribute): Likewise.
1693
332f1d24
JJ
16942012-07-20 Jakub Jelinek <jakub@redhat.com>
1695
1696 PR c++/28656
1697 * c-common.c (check_function_nonnull): Handle multiple nonnull
1698 attributes properly.
1699
7ee2468b
SB
17002012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1701
1702 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1703 * c-ada-spec.c: Likewise.
1704 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1705
ee7b28eb
SB
17062012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1707
1708 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1709 Remove code conditional on it.
1710
6bdf3519
SB
17112012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1712
1713 * c-gimplify.c: Do not include basic-block.h.
1714 * c-common.c: Do not include linfuncs.h.
1715
532aafad
SB
17162012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1717
1718 * c-common.h: Include tree.h.
1719
8d0d1915
JM
17202012-07-02 Jason Merrill <jason@redhat.com>
1721
1722 PR c++/53524
1723 * c-common.c (get_priority): Call default_conversion.
1724
fbc873ad
UB
17252012-07-01 Uros Bizjak <ubizjak@gmail.com>
1726
1727 * c-pch.c (c_common_write_pch): Remove unused variables.
1728
d4a10d0a
SB
17292012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1730
1731 * cppspec.c: Moved from gcc/ to here.
1732
6f3a2e23
KT
17332012-06-27 Kai Tietz <ktietz@redhat.com>
1734
1735 PR preprocessor/37215
1736 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1737
8ca92d04
SB
17382012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1739
1740 * c-common.h (c_common_print_pch_checksum): Remove.
1741 * c-pch.c: Do not include output.h.
1742 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1743 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1744 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1745 (struct c_pch_header): Remove.
1746 (get_ident): Update gpch version.
1747 (pch_init): Do not print executable_checksum to asm_out_file.
1748 Do not fail if there is no asm_out_file to read back from. Set
1749 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1750 (c_common_write_pch): Verify that nothing was written to asm_out_file
1751 since pch_init was called. Do not write a c_pch_header, and do not
1752 copy from asm_out_file to the PCH.
1753 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1754 the content of asm_out_file from the PCH.
1755 (c_common_print_pch_checksum): Remove.
1756 * c-opts.c (c_common_init): Print out executable_checksum directly.
1757
70f42967
SB
17582012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1759
1760 * c-target.def (objc_declare_unresolved_class_reference,
1761 objc_declare_class_definition): Add new hooks.
1762
a8781821
SB
17632012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1764
1765 * c-lex.c: Do not include output.h.
1766 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1767 Remove uses of ASM_OUTPUT_IDENT.
1768
9e1a8dd1
RR
17692012-06-15 Marc Glisse <marc.glisse@inria.fr>
1770
1771 PR c++/51033
1772 * c-common.h (c_build_vec_perm_expr): Move decl here.
1773 * c-common.c (c_build_vec_perm_expr): Move definition
1774 here.
1775
6f07a821
SB
17762012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1777
1778 * c.opt (fconserve-space): Turn into a no-op.
1779
9faeb493 17802012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1781
1782 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1783 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1784 both the start and end of the function.
1785
a4b7d13c
SB
17862012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1787
1788 * c-common.c: Do not include output.h.
1789 * c-pragma.c: Likewise.
1790
c265f413
SA
17912012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1792
1793 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1794 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1795 (lang_decl_name): Handle namespace decls.
1796
be7a421e
SB
17972012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1798
1799 * c-ada-spec.c: Do not include output.h.
1800 * c-semantics.c: Likewise.
1801
65de6659
JM
18022012-05-29 Joseph Myers <joseph@codesourcery.com>
1803
1804 * c-common.c: Fix typo.
1805
ca5f4331
MM
18062012-05-29 Michael Matz <matz@suse.de>
1807
1808 * c-common.h (c_expand_decl): Remove prototype.
1809
4f7f7aca
MLI
18102012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1811
1812 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1813 * c-opts.c (c_common_handle_option): Remove code handling
1814 warn_missing_braces.
1815
4a792f9b
PC
18162012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1817
1818 PR c++/25137
1819 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1820 -Wmissing_braces.
1821
650dc14a
DS
18222012-05-22 Dodji Seketeli <dodji@redhat.com>
1823
1824 PR c++/53322
1825 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1826
9b095bf1
MLI
18272012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1828
1829 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1830 * c-opts.c (c_common_handle_option): Do not handle explicitly
1831 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1832
0b2c4be5
DS
18332012-05-16 Dodji Seketeli <dodji@redhat.com>
1834
1835 PR preprocessor/7263
1836 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1837 to cpp_classify_number. For diagnostics, use the precise location
1838 instead of the global input_location.
1839
a1bde5af
PC
18402012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1841
d02924ef 1842 PR c++/11856
a1bde5af
PC
1843 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1844
d1ede5f4
BS
18452012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1846
a1bde5af 1847 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1848
f2bc201f
MLI
18492012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1850
1851 PR 53063
1852 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1853 Wreorder): Use LangEnabledBy.
1854 * c-opts.c (c_common_handle_option): Do not enable them
1855 explicitly. Call lang-specific generated functions.
1856 (c_common_post_options): Do not set them here.
1857
95744782
MLI
18582012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1859
1860 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1861 Wmissing-field-initializers,Wmissing-parameter-type,
1862 Wold-style-declaration,Woverride-init): Use EnabledBy.
1863 * c-opts.c (c_common_post_options): Do not set here explicitly.
1864
7d5a5747
MLI
18652012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1866
1867 PR 53063
1868 * c-opts.c (c_common_handle_option): Use handle_generated_option
1869 to enable sub-options.
1870
5a3c9cf2
PC
18712012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1872
1873 PR c++/53158
1874 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1875
3ac8781c
RG
18762012-05-10 Richard Guenther <rguenther@suse.de>
1877
1878 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1879 adjust commentary about TYPE_IS_SIZETYPE types.
1880
1e537948
MLI
18812012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1882
1883 PR c++/53261
1884 * c-common.c (warn_logical_operator): Check that argument of
1885 integer_zerop is not NULL.
1886
f2c4a785
MLI
18872012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1888
1889 PR c/43772
1890 * c-common.c (warn_logical_operator): Do not warn if either side
1891 is already true or false.
1892
50f305ca
MLI
18932012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1894
1895 PR c/51712
1896 * c-common.c (expr_original_type): New.
1897 (shorten_compare): Do not warn for enumeration types.
1898
0c3641b0
MLI
18992012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1900
1901 * c.opt (fpermissive): Add Var(flag_permissive).
1902
7edaa4d2
MG
19032012-04-30 Marc Glisse <marc.glisse@inria.fr>
1904
1905 PR c++/51033
1906 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1907 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1908
b9c8da34
DS
19092012-04-30 Dodji Seketeli <dodji@redhat.com>
1910
1911 Add -Wvarargs option
1912 * c.opt (Wvarargs): Define new option.
1913
e6c69da0
MLI
19142012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1915
1916 * c-common.c (check_function_arguments): Replace
1917 Wmissing-format-attribute with Wsuggest-attribute=format.
1918
90137d8f
MLI
19192012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1920
1921 * c.opt (Wsuggest-attribute=format): New. Alias of
1922 Wmissing-format-attribute.
1923 * c-format.c (decode_format_type): Replace
1924 Wmissing-format-attribute with Wsuggest-attribute=format.
1925 (check_function_format): Likewise.
1926
9faeb493 19272012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1928
1929 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1930 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1931 * c.opt: Add Wliteral-suffix.
1932
c1771a20
MLI
19332012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1934
1935 PR c/44774
1936 * c.opt (Wpedantic): New.
1937 (pedantic): Alias Wpedantic.
1938 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1939 (c_common_post_options): Likewise.
1940 (sanitize_cpp_opts): Likewise.
1941 * c-lex.c (interpret_float): Likewise.
1942 * c-format.c (check_format_types): Likewise.
1943 * c-common.c (pointer_int_sum): Likewise.
1944 (c_sizeof_or_alignof_type): Likewise.
1945 (c_add_case_label): Likewise.
1946 (c_do_switch_warnings): Likewise.
1947 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1948
04b391c1
JM
19492012-04-15 Jason Merrill <jason@redhat.com>
1950
1951 PR c++/52818
1952 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1953 (C_STD_NAME): Distinguish between C++98 and C++11.
1954
ac868f29
EB
19552012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1956
1957 PR target/52624
1958 * c-common.h (uint16_type_node): Rename into...
1959 (c_uint16_type_node): ...this.
1960 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1961 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1962
fd4116f4
MLI
19632012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1964
1965 * c-common.c (warn_if_unused_value): Move definition to here.
1966 * c-common.h (warn_if_unused_value): Move declaration to here.
1967
573ac65e
WB
19682012-03-23 William Bader <williambader@hotmail.com>
1969
1970 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1971
552b8185
JM
19722012-03-20 Jason Merrill <jason@redhat.com>
1973
1974 * c-common.h (enum cxx_dialect): Add cxx1y.
1975 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1976 test.
1977 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1978 * c-opts.c (c_common_post_options): Likewise.
1979 (set_std_cxx1y): New.
1980 (c_common_handle_option): Call it.
1981 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1982
04398fa8
PC
19832012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1984
1985 PR c++/14710
1986 * c.opt ([Wuseless-cast]): Add.
1987
d2a12ae7
RG
19882012-03-16 Richard Guenther <rguenther@suse.de>
1989
1990 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1991
a12bf402
MLI
19922012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1993
1994 PR c++/44783
1995 * c.opt (ftemplate-backtrace-limit) Add.
1996
5c30094f
RO
19972012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1998
1999 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2000 handling.
2001 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2002 (init_pragma): Don't register extern_prefix.
2003
21fa2faf
RG
20042012-03-12 Richard Guenther <rguenther@suse.de>
2005
2006 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2007 (builtin_type_for_size): Likewise.
2008
e3793c6f
JJ
20092012-02-13 Jakub Jelinek <jakub@redhat.com>
2010
2011 PR c++/52215
2012 * c-common.c (sync_resolve_params): Don't decide whether to convert
2013 or not based on TYPE_SIZE comparison, convert whenever arg_type
2014 is unsigned INTEGER_TYPE.
2015
93286335
PC
20162012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2017
2018 PR c/52118
2019 * c.opt ([Wunused-local-typedefs]): Fix description.
2020
7a421706
MS
20212012-01-24 Mike Stump <mikestump@comcast.net>
2022
2023 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2024 exactly.
2025
ba9b1f11
RG
20262012-01-18 Richard Guenther <rguenther@suse.de>
2027
2028 * c-opts.c (c_common_post_options): Reset LTO flags if
2029 we are about to generate a PCH.
2030
465406be
PC
20312012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2032
2033 PR c++/51777
2034 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2035 use pp_unsigned_wide_integer.
2036
aee15221
RG
20372012-01-10 Richard Guenther <rguenther@suse.de>
2038
2039 PR middle-end/51806
2040 * c-opts.c (c_common_handle_option): Move -Werror handling
2041 to language independent code.
2042
5720c0dc
RG
20432012-01-05 Richard Guenther <rguenther@suse.de>
2044
2045 PR middle-end/51764
2046 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2047 from common.opt.
2048
73ac190a
PC
20492011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2050
2051 PR c++/51316
2052 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2053 of array types with an unknown bound.
2054
48b0b196
JM
20552011-12-20 Joseph Myers <joseph@codesourcery.com>
2056
2057 * c-common.c (flag_isoc99): Update comment to refer to C11.
2058 (flag_isoc1x): Change to flag_isoc11.
2059 * c-common.h (flag_isoc99): Update comment to refer to C11.
2060 (flag_isoc1x): Change to flag_isoc11.
2061 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2062 C11.
2063 * c-opts.c (set_std_c1x): Change to set_std_c11.
2064 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2065 Call set_std_c11.
2066 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2067 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2068 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2069 standard.
2070 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2071 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2072 (std=gnu1x): Make alias of std=gnu11.
2073
d58d6eb5
JM
20742011-12-19 Jason Merrill <jason@redhat.com>
2075
2076 PR c++/51228
2077 * c-common.c (handle_transparent_union_attribute): Check the first
2078 field if the type is complete.
2079
b3908fcc
JW
20802011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2081
2082 PR libstdc++/51365
2083 * c-common.c (RID_IS_FINAL): Add.
2084 * c-common.h (RID_IS_FINAL): Add.
2085
fea3ca91
IS
20862011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2087
2088 * c.opt (fgnu-runtime): Provide full description.
2089 (fnext-runtime): Likewise.
2090 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2091
62bad7cd
AM
20922011-11-28 Andrew MacLeod <amacleod@redhat.com>
2093
2094 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2095 predefines in one place. Add LOCK_FREE predefines.
2096 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2097 new func.
2098
c466c4ff
AM
20992011-11-24 Andrew MacLeod <amacleod@redhat.com>
2100
2101 PR c/51256
9faeb493 2102 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2103 conditions
9faeb493
UB
2104 (resolve_overloaded_atomic_exchange,
2105 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2106 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2107 error_mark_node for error conditions.
9faeb493 2108
a5952633
RG
21092011-11-08 Richard Guenther <rguenther@suse.de>
2110
2111 PR middle-end/51010
2112 c-family/
2113
0a35513e
AH
21142011-11-07 Richard Henderson <rth@redhat.com>
2115 Aldy Hernandez <aldyh@redhat.com>
2116 Torvald Riegel <triegel@redhat.com>
2117
2118 Merged from transactional-memory.
2119
2120 * c-common.c (handle_tm_wrap_attribute,
2121 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2122 (struct c_common_reswords): Added __transaction* keywords.
2123 (struct c_common_attribute_table): Added transaction* and tm_regparm
2124 attributes.
2125 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2126 masks.
2127 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2128 find_tm_attribute): Declare.
2129
6d87092d
JM
21302011-11-07 Jason Merrill <jason@redhat.com>
2131
2132 PR c++/35688
2133 * c-common.c, c-common.h: Revert yesterday's changes.
2134
8e7860a1
JM
21352011-11-06 Jason Merrill <jason@redhat.com>
2136
2137 PR c++/35688
2138 * c-common.c (decl_has_visibility_attr): Split out from...
2139 (c_determine_visibility): ...here.
2140 * c-common.h: Declare it.
2141
d19fa6b5
JM
21422011-11-06 Joseph Myers <joseph@codesourcery.com>
2143
2144 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2145 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2146 type.
2147 (check_user_alignment): New. Split out of
2148 handle_aligned_attribute. Disallow integer constants with
2149 noninteger types. Conditionally allow zero.
2150 (handle_aligned_attribute): Use check_user_alignment.
2151 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2152
86951993
AM
21532011-11-06 Andrew MacLeod <amacleod@redhat.com>
2154 Richard Henderson <rth@redhat.com>
2155
2156 Merged from cxx-mem-model.
2157
2158 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2159 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2160 parameters that are the same type size.
2161 (get_atomic_generic_size): New. Find size of generic
2162 atomic function parameters and do typechecking.
2163 (add_atomic_size_parameter): New. Insert size into parameter list.
2164 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2165 either __atomic_exchange_n or external library call.
9faeb493 2166 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2167 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2168 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2169 __atomic_load_n or an external library call.
2170 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2171 __atomic_store_n or an external library call.
2172 (resolve_overloaded_builtin): Handle new __atomic builtins.
2173
cf9e9959
EB
21742011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2175
2176 PR c++/50608
2177 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2178 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2179 <INDIRECT_REF>: Return the argument.
2180 <ARRAY_REF>: Remove special code for negative offset.
2181 Call fold_build_pointer_plus instead of size_binop.
2182 (fold_offsetof): Remove STOP_REF argument and adjust.
2183 * c-common.h (fold_offsetof_1): Declare.
2184 (fold_offsetof): Remove STOP_REF argument.
2185
25339f10
JM
21862011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2187
2188 PR c++/50810
2189 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2190 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2191 Wnarrowing for C++0x and C++98.
2192 * c.opt ([Wnarrowing]): Update.
2193
89401152
PC
21942011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2195
2196 PR c++/44277
2197 * c.opt: Add Wzero-as-null-pointer-constant.
2198
97e3ad20
JM
21992011-10-31 Jason Merrill <jason@redhat.com>
2200
15694fdd
JM
2201 * c.opt (-fdeduce-init-list): Off by default.
2202
97e3ad20
JM
2203 PR c++/50920
2204 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2205 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2206 and -Wc++11-compat.
2207 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2208
fb9120e3
RAV
22092011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2210
2211 PR c++/30066
2212 * c.opt (fvisibility-inlines-hidden): Description change.
2213
3ce4f9e4
ESR
22142011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2215
2216 Implement C++11 user-defined literals.
2217 * c-common.c (build_userdef_literal): New.
2218 * c-common.def: New tree code.
2219 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2220 * c-lex.c (interpret_float): Add suffix parm.
2221 (c_lex_with_flags): Build literal tokens.
2222
5f53c243
PC
22232011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2224
2225 PR c++/50841
2226 Revert:
2227 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2228
2229 PR c++/50810
2230 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2231 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2232 Wnarrowing for C++0x and C++98.
2233 * c.opt ([Wnarrowing]): Update.
2234
263734e1
PC
22352011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2236
2237 PR c++/50810
2238 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2239 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2240 Wnarrowing for C++0x and C++98.
2241 * c.opt ([Wnarrowing]): Update.
2242
d2e312d7
PC
22432011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2244
2245 PR c++/45385
2246 * c-common.c (conversion_warning): Remove code looking for
2247 artificial operands.
2248
d17687f6
DS
22492011-10-18 Dodji Seketeli <dodji@redhat.com>
2250
2251 PR bootstrap/50760
2252 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2253 !NO_IMPLICIT_EXTERN_C.
d17687f6 2254
fc8396e9
PC
22552011-10-17 Michael Spertus <mike_spertus@symantec.com>
2256
2257 * c-common.c (c_common_reswords): Add __bases,
2258 __direct_bases.
2259 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2260
22612011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2262
2263 PR c++/50757
2264 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2265
847e697a
TT
22662011-10-15 Tom Tromey <tromey@redhat.com>
2267 Dodji Seketeli <dodji@redhat.com>
2268
2269 * c.opt (fdebug-cpp): New option.
2270 * c-opts.c (c_common_handle_option): Handle the option.
2271 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2272 output stream in parameter. Factorized from ...
2273 (maybe_print_line): ... this. Dump location debug information when
2274 -fdebug-cpp is in effect.
2275 (print_line_1): New static function. Takes an output stream in
2276 parameter. Factorized from ...
2277 (print_line): ... here. Dump location information when -fdebug-cpp
2278 is in effect.
2279 (scan_translation_unit): Dump location information when
2280 -fdebug-cpp is in effect.
2281
92582b75
TT
22822011-10-15 Tom Tromey <tromey@redhat.com>
2283 Dodji Seketeli <dodji@redhat.com>
2284
2285 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2286 without argument.
2287 * c-opts.c (c_common_handle_option)<case
2288 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2289 cases. Handle -ftrack-macro-expansion with and without argument.
2290
46427374
TT
22912011-10-15 Tom Tromey <tromey@redhat.com>
2292 Dodji Seketeli <dodji@redhat.com>
2293
2294 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2295 (print_line, cb_define, do_line_change): Adjust to avoid touching
2296 the internals of struct line_map. Use the public API instead.
2297 * c-pch.c (c_common_read_pch): Likewise.
2298 * c-lex.c (fe_file_change): Likewise.
2299
fc8396e9
PC
23002011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2301
2302 PR c++/17212
2303 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2304
23052011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2306
2307 PR c++/33067
2308 * c-pretty-print.c (pp_c_floating_constant): Output
2309 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2310
e79983f4
MM
23112011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2312
2313 * c-common.c (def_builtin_1): Delete old interface with two
2314 parallel arrays to hold standard builtin declarations, and replace
2315 it with a function based interface that can support creating
2316 builtins on the fly in the future. Change all uses, and poison
2317 the old names. Make sure 0 is not a legitimate builtin index.
2318 * c-omp.c (c_finish_omp_barrier): Ditto.
2319 (c_finish_omp_taskwait): Ditto.
2320 (c_finish_omp_flush): Ditto.
2321
6637388f
TG
23222011-10-11 Tristan Gingold <gingold@adacore.com>
2323
2324 * c.opt: (fallow-parameterless-variadic-functions): New.
2325
3797cb21
DS
23262011-09-08 Dodji Seketeli <dodji@redhat.com>
2327
2328 PR c++/33255 - Support -Wunused-local-typedefs warning
2329 * c-common.h (struct c_language_function::local_typedefs): New
2330 field.
9faeb493
UB
2331 (record_locally_defined_typedef, maybe_record_typedef_use)
2332 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2333 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2334 (maybe_record_typedef_use)
2335 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2336 * c.opt: Declare new -Wunused-local-typedefs flag.
2337
693ddb1b
EB
23382011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2339
2340 PR middle-end/50266
2341 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2342 computations.
2343
830c740f
RG
23442011-09-05 Richard Guenther <rguenther@suse.de>
2345
2346 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2347 of integer_minus_one_node for empty array upper bounds.
2348
892a371f
DS
23492011-08-28 Dodji Seketeli <dodji@redhat.com>
2350
2351 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2352 it's the first time it's being called on this main TU.
2353
0e3fdb48
RB
23542011-08-24 Richard Guenther <rguenther@suse.de>
2355
2356 PR c/49396
2357 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2358
23592011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2360
2361 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2362 defined in cpp_init_builtins and c_cpp_builtins.
2363
d4a83c10
JM
23642011-08-19 Joseph Myers <joseph@codesourcery.com>
2365
2366 * c-common.c (c_common_reswords): Add __builtin_complex.
2367 * c-common.h (RID_BUILTIN_COMPLEX): New.
2368
bbceee64
JM
23692011-08-18 Joseph Myers <joseph@codesourcery.com>
2370
2371 * c-common.c (c_common_reswords): Add _Noreturn.
2372 (keyword_is_function_specifier): Handle RID_NORETURN.
2373 * c-common.h (RID_NORETURN): New.
2374
0e3a99ae
AS
23752011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2376
2377 * c-common.c (unsafe_conversion_p): New function. Check if it is
2378 unsafe to convert an expression to the type.
2379 (conversion_warning): Adjust, use unsafe_conversion_p.
2380 * c-common.h (unsafe_conversion_p): New function declaration.
2381
20906c66
JJ
23822011-08-02 Jakub Jelinek <jakub@redhat.com>
2383
2384 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2385 (c_finish_omp_taskyield): New prototype.
2386 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2387 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2388 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2389 or RHS1 have side-effects, evaluate those too in the right spot,
2390 if it is a decl and LHS is also a decl, error out if they
2391 aren't the same.
2392 (c_finish_omp_taskyield): New function.
2393 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2394 * c-pragma.c (omp_pragmas): Add taskyield.
2395 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2396 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2397 PRAGMA_OMP_CLAUSE_MERGEABLE.
2398
770e5a2e
DS
23992011-07-25 Dodji Seketeli <dodji@redhat.com>
2400
2401 * c-common.h (set_underlying_type): Remove parm name from
2402 declaration.
2403
1baae426
RG
24042011-07-25 Romain Geissler <romain.geissler@gmail.com>
2405
2406 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2407
fcb21722
JM
24082011-07-22 Jason Merrill <jason@redhat.com>
2409
76f86d00
JM
2410 PR c++/49793
2411 * c.opt (Wnarrowing): New.
2412
3a636414
JM
2413 PR c++/30112
2414 * c-common.h: Declare c_linkage_bindings.
2415 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2416
fcb21722
JM
2417 PR c++/49813
2418 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2419 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2420 as flag_isoc99 for 'restrict'.
2421 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2422
02614448
ILT
24232011-07-21 Ian Lance Taylor <iant@google.com>
2424
2425 PR middle-end/49705
2426 * c-common.c (c_disable_warnings): New static function.
2427 (c_enable_warnings): New static function.
2428 (c_fully_fold_internal): Change local unused_p to bool. Call
2429 c_disable_warnings and c_enable_warnings rather than change
2430 c_inhibit_evaluation_warnings.
2431
34429675
JM
24322011-07-20 Jason Merrill <jason@redhat.com>
2433
2434 PR c++/6709 (DR 743)
2435 PR c++/42603 (DR 950)
2436 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2437 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2438 (CPP_DECLTYPE): New.
2439 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2440
5d49b6a7
RG
24412011-07-19 Richard Guenther <rguenther@suse.de>
2442
2443 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2444 * c-omp.c (c_finish_omp_for): Likewise.
2445
e84a58ff
EB
24462011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2447
2448 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2449 body on the next line.
2450
329af3c7
JM
24512011-07-08 Jason Merrill <jason@redhat.com>
2452
4063e61b
JM
2453 PR c++/45437
2454 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2455
329af3c7
JM
2456 PR c++/49673
2457 * c-common.c (c_apply_type_quals_to_decl): Don't check
2458 TYPE_NEEDS_CONSTRUCTING.
2459
1a072294
RG
24602011-07-06 Richard Guenther <rguenther@suse.de>
2461
2462 * c-common.c (c_common_nodes_and_builtins):
2463 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2464
fce5dddd
RG
24652011-07-05 Richard Guenther <rguenther@suse.de>
2466
2467 * c-common.c (c_common_nodes_and_builtins): Build all common
2468 tree nodes first.
2469
45d439ac
JJ
24702011-06-27 Jakub Jelinek <jakub@redhat.com>
2471
56300785
JJ
2472 * c-common.h (c_tree_chain_next): New static inline function.
2473
45d439ac
JJ
2474 * c-common.c (check_builtin_function_arguments): Handle
2475 BUILT_IN_ASSUME_ALIGNED.
2476
e0a8ecf2
AM
24772011-06-21 Andrew MacLeod <amacleod@redhat.com>
2478
2479 * c-common.c: Add sync_ or SYNC__ to builtin names.
2480 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2481
24822011-06-20 Pierre Vittet <piervit@pvittet.com>
2483
2484 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2485 handler.
2486 (gen_pragma_handler): New union.
2487 (internal_pragma_handler): New type.
2488 (c_register_pragma_with_data)
2489 (c_register_pragma_with_expansion_and_data): New functions.
2490
2491 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2492 (c_register_pragma, c_register_pragma_with_expansion)
2493 (c_invoke_pragma_handler): Changed to work with
2494 internal_pragma_handler.
2495 (c_register_pragma_with_data)
2496 (c_register_pragma_with_expansion_and_data): New functions.
2497
677f3fa8
JM
24982011-06-14 Joseph Myers <joseph@codesourcery.com>
2499
2500 * c-common.c: Include common/common-target.h.
2501 (handle_section_attribute): Use
2502 targetm_common.have_named_sections.
2503 * c-cppbuiltin.c: Include common/common-target.h.
2504 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2505
d7fc8c14
RG
25062011-06-10 Richard Guenther <rguenther@suse.de>
2507
2508 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2509 to print a IDENTIFIER_NODE.
2510
10e48e39
RO
25112011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2512 Joseph Myers <joseph@codesourcery.com>
2513
2514 * c.opt (fbuilding-libgcc): New option.
2515 * c-cppbuiltin.c (c_cpp_builtins): Define
2516 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2517
6976ae51
JM
25182011-06-07 Jason Merrill <jason@redhat.com>
2519
3ff60975
JM
2520 * c-common.c (max_tinst_depth): Lower default to 900.
2521
6976ae51
JM
2522 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2523
009db074
RG
25242011-06-07 Richard Guenther <rguenther@suse.de>
2525
2526 * c-common.c (c_common_nodes_and_builtins): Do not set
2527 size_type_node or call set_sizetype.
2528
b4592b92
DS
25292011-06-07 Dodji Seketeli <dodji@redhat.com>
2530
2531 PR debug/49130
2532 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2533 type when using pointer comparison to compare types.
b4592b92 2534
014ab419
JW
25352011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2536
2537 * c.opt: Add -Wdelete-non-virtual-dtor.
2538 * c-opts.c (c_common_handle_option): Include it in -Wall.
2539
4f60111f
NF
25402011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2541
2542 PR bootstrap/49190
2543
2544 Revert:
2545 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2546
2547 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2548 not tree_common.
2549
4cc4f2f4
JJ
25502011-05-27 Jakub Jelinek <jakub@redhat.com>
2551
2552 PR c++/49165
2553 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2554 C++ don't call c_common_truthvalue_conversion on void type arms.
2555
38e01f9e
NF
25562011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2557
2558 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2559 (stmt_list_stack): Define.
2560 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2561 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2562
92e948a8
NF
25632011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2564
2565 * c-common.c (warning_candidate_p): Check for BLOCKs.
2566
a2fc3e63
NF
25672011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2568
2569 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2570 not tree_common.
2571
0957c029
JJ
25722011-05-25 Jakub Jelinek <jakub@redhat.com>
2573
2574 * c-common.c (def_fn_type): Remove extra va_end.
2575
828fb3ba
JM
25762011-05-23 Jason Merrill <jason@redhat.com>
2577
2578 PR c++/48106
2579 * c-common.c (c_common_get_narrower): New.
2580 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2581
dde05067
NF
25822011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2583
2584 * c-common.h (check_function_arguments): Tweak prototype of
2585 check_function_arguments.
2586 * c-common.c (check_function_arguments): Likewise. Adjust
2587 calls to check_function_nonnull, check_function_format, and
2588 check_function_sentinel.
2589 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2590 separate attributes and typelist arguments. Use
2591 FOREACH_FUNCTION_ARGS to iterate over argument types.
2592
3c0d13bf
PC
25932011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2594
2595 * c-common.c (c_common_reswords): Reorder.
2596 * c-common.h (rid): Likewise.
2597
8242dd04
NF
25982011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2599
2600 * c-common.c (def_fn_type): Don't call build_function_type, call
2601 build_function_type_array or build_varargs_function_type_array
2602 instead.
2603 (c_common_nodes_and_builtins): Likewise.
2604
3d528853
NF
26052011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2606
2607 * c-common.c (c_add_case_label): Omit the loc argument to
2608 build_case_label.
2609 * c-common.h (build_case_label): Remove.
2610 * c-semantics.c (build_case_label): Remove.
2611
a04a722b
JM
26122011-05-05 Joseph Myers <joseph@codesourcery.com>
2613
2614 * c-objc.h (objc_start_method_definition): Update prototype.
2615 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2616
e19a18d4
NF
26172011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2618
2619 * c-common.c (check_main_parameter_types): Reindent. Don't use
2620 TYPE_ARG_TYPES directly.
2621 (handle_nonnull_attribute): Likewise.
2622 (sync_resolve_params): Likewise.
2623 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2624 to check_format_string.
2625 (handle_format_attribute): Likewise.
2626 (check_format_string): Take a function type to examine instead of
2627 a type list. Use a function_arg_iterator to step through argument
2628 types.
2629
c62c040f
RG
26302011-05-04 Richard Guenther <rguenther@suse.de>
2631
2632 * c-common.c (fix_string_type): Use size_int for index type bounds.
2633 (start_fname_decls): Do not pass NULL to build_int_cst.
2634 (c_init_attributes): Likewise.
2635 * c-lex.c (c_lex_with_flags): Likewise.
2636
c12ff9d8
JM
26372011-04-27 Jason Merrill <jason@redhat.com>
2638
2639 * c-common.c (make_tree_vector_from_list): New.
2640 * c-common.h: Declare it.
2641
304dfbe3
RG
26422011-04-26 Richard Guenther <rguenther@suse.de>
2643
2644 PR preprocessor/48248
2645 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2646 for output size with -P.
2647
3c0d13bf
PC
26482011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2649
2650 * c-common.c (struct c_common_resword): Add __underlying_type.
2651 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2652
04695783
JM
26532011-04-20 Jim Meyering <meyering@redhat.com>
2654
2655 * c-format.c (init_dollar_format_checking): Remove useless
2656 if-before-free.
2657
0dc33c3c
NP
26582011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2659
2660 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2661 (objc_detect_field_duplicates): New.
0dc33c3c 2662 * stub-objc.c: Likewise.
3c0d13bf 2663
c59633d9
NP
26642011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2665
2666 * stub-objc.c (objc_declare_protocols): Renamed to
2667 objc_declare_protocol.
2668 * c-objc.h: Likewise.
3c0d13bf 2669
32dabdaf
NP
26702011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2671
2672 * stub-objc.c (objc_declare_class): Updated argument name.
2673
81f653d6
NF
26742011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2675
2676 * c-common.h (c_common_init_ts): Declare.
2677 * c-common.c (c_common_init_ts): Define.
2678
eb345401
NP
26792011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2680
2681 * c-objc.h (objc_build_message_expr): Updated prototype.
2682 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2683
a358e188
MJ
26842011-04-12 Martin Jambor <mjambor@suse.cz>
2685
2686 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2687 of cgraph_node.
2688
e6313a78
RG
26892011-04-11 Richard Guenther <rguenther@suse.de>
2690
2691 * c-common.c (complete_array_type): Build a range type of
2692 proper type.
2693
dcf0c47e
NF
26942011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2695
2696 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2697 (handle_type_generic_attribute): Likewise.
2698
1ee44b26
JM
26992011-04-07 Jason Merrill <jason@redhat.com>
2700
2701 PR c++/48450
2702 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2703 conversion from C++0x scoped enum.
2704
acce4e77
JM
27052011-04-06 Joseph Myers <joseph@codesourcery.com>
2706
2707 * c-target-def.h: New file.
2708 * c-target.def: New file.
2709 * c-target.h: New file.
2710 * c-common.c (targetcm): Don't define here.
2711 * c-common.h (default_handle_c_option): Declare.
2712 * c-format.c: Include c-target.h instead of target.h.
2713 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2714 include tm.h.
2715 (default_handle_c_option): Move from targhooks.c.
2716
e2eefb55
JJ
27172011-03-29 Jakub Jelinek <jakub@redhat.com>
2718
2719 PR preprocessor/48248
2720 * c-ppoutput.c (print): Add src_file field.
2721 (init_pp_output): Initialize it.
2722 (maybe_print_line): Don't optimize by adding up to 8 newlines
2723 if map->to_file and print.src_file are different file.
2724 (print_line): Update print.src_file.
2725
ba78087b
KT
27262011-03-25 Kai Tietz <ktietz@redhat.com>
2727
2728 * c-ada-spec.c (compare_comment): Use filename_cmp
2729 instead of strcmp for filename.
2730
0edf1bb2
JL
27312011-03-25 Jeff Law <law@redhat.com>
2732
2733 * c-family/c-common.c (def_fn_type): Add missing va_end.
2734
c7dc8804
JM
27352011-03-25 Jason Merrill <jason@redhat.com>
2736
2737 * c.opt: Add -std=c++03.
2738
d1d879b1
EB
27392011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2740
2741 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2742
62d784f7
KT
27432011-03-17 Kai Tietz
2744
2745 PR target/12171
5050afdf
KT
2746 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2747 Display allowed attributes for function pointer types.
2748 (pp_c_attributes_display): New function to display
2749 attributes having affects_type_identity flag set to true.
2750 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2751
62d784f7
KT
2752 * c-common.c (c_common_attribute_table):
2753 Add new element.
2754 (c_common_format_attribute_table): Likewise.
2755
82d37118
JM
27562011-03-18 Jason Merrill <jason@redhat.com>
2757
49a000c3
JM
2758 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2759 * c-common.h: Don't declare it here.
2760 * c-common.c: Or define it here.
2761 * c-opts.c (c_common_handle_option): Or set it here.
2762
82d37118
JM
2763 PR c++/35315
2764 * c-common.c (handle_transparent_union_attribute): Don't
2765 make a duplicate type in C++.
2766
17bc631c
JM
27672011-03-15 Jason Merrill <jason@redhat.com>
2768
2769 * c-common.c (max_constexpr_depth): New.
2770 * c-common.h: Declare it.
2771 * c-opts.c (c_common_handle_option): Set it.
2772 * c.opt (fconstexpr-depth): New option.
2773
1b9b91a6
JM
27742011-03-11 Jason Merrill <jason@redhat.com>
2775
f231b5ff
JM
2776 * c-common.c (attribute_takes_identifier_p): Add missing const.
2777
1b9b91a6
JM
2778 PR c++/46803
2779 * c-common.c (attribute_takes_identifier_p): Assume that an
2780 unknown attribute takes an identifier.
2781
a19e4d44
NF
27822011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2783
2784 PR c/47786
2785 * c-common.c (c_type_hash): Call list_length instead of iterating
2786 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2787
982d62f6
JJ
27882011-02-19 Jakub Jelinek <jakub@redhat.com>
2789
2790 PR c/47809
2791 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2792
0a256240
NP
27932011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2794
2795 * c.opt (fobjc-abi-version=) New.
2796 (fobjc-nilcheck): New.
2797
ba9e6dd5
NF
27982011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2799
2800 PR c++/46890
2801 * c-common.h (keyword_is_decl_specifier): Declare.
2802 * c-common.c (keyword_is_decl_specifier): Define.
2803 (keyword_is_function_specifier): New function.
2804
7273813a
JJ
28052011-01-26 Jakub Jelinek <jakub@redhat.com>
2806
2807 PR c/47473
2808 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2809 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2810 REAL_TYPE.
2811
908ef79b
AC
28122011-01-26 Arnaud Charlet <charlet@adacore.com>
2813
2814 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2815
237e9384
JJ
28162011-01-26 Jakub Jelinek <jakub@redhat.com>
2817
2818 PR pch/47430
2819 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2820 after init_c_lex if pch_file is set.
2821
47ea1edf
DK
28222011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2823
d4dba752 2824 PR c++/43601
47ea1edf
DK
2825 * c.opt (-fkeep-inline-dllexport): New switch.
2826
2aa9c6ae
RG
28272011-01-12 Richard Guenther <rguenther@suse.de>
2828
2829 PR middle-end/32511
2830 * c-common.c (handle_weak_attribute): Warn instead of error
2831 on declaring an inline function weak.
2832
7bd11157
TT
28332011-01-05 Tom Tromey <tromey@redhat.com>
2834
2835 * c-common.h (lvalue_error): Update.
2836 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2837 not error.
2838
0e66e494 28392010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2840
b4f588c4
NP
2841 PR objc/47075
2842 * c-objc.h (objc_finish_message_expr): Added argument to
2843 prototype.
2844
f4da8dce
NF
28452010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2846
2847 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2848 Use prototype_p.
2849
46270f14
NP
28502010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2851
2852 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2853 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2854
4816c593
NF
28552010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2856
2857 * c-common.h (readonly_error): Declare.
2858 * c-common.c (readonly_error): Define.
2859
7a6daeb0
NF
28602010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2861
2862 * c-common.h (invalid_indirection_error): Declare.
2863 * c-common.c (invalid_indirection_error): Define.
2864
892f6119
RG
28652010-12-03 Richard Guenther <rguenther@suse.de>
2866
2867 PR c/46745
2868 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2869 (pp_c_unary_expression): Likewise.
2870 (pp_c_expression): Likewise.
2871
6c39e757
NP
28722010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2873
2874 * c-common.h (objc_finish_function): New.
2875 (objc_non_volatilized_type): Removed.
2876 (objc_type_quals_match): Removed.
2877 * stub-objc.c (objc_finish_function): New.
2878 (objc_non_volatilized_type): Removed.
2879 (objc_type_quals_match): Removed.
9faeb493 2880
7c475d11
JM
28812010-11-30 Joseph Myers <joseph@codesourcery.com>
2882
2883 * c-common.h (parse_optimize_options): Declare.
2884 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2885 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2886
71f3e391
JM
28872010-11-29 Joseph Myers <joseph@codesourcery.com>
2888
2889 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2890 GET_ENVIRONMENT.
2891 * c-pch.c (O_BINARY): Don't define here.
2892 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2893
d5fabb58
JM
28942010-11-25 Joseph Myers <joseph@codesourcery.com>
2895
2896 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2897 targetm.except_unwind_info.
2898
299404a1
JM
28992010-11-23 Joseph Myers <joseph@codesourcery.com>
2900
2901 * c-opts.c (c_common_handle_option): Pass location to
2902 set_struct_debug_option.
2903
c98cd5bf
JM
29042010-11-23 Joseph Myers <joseph@codesourcery.com>
2905
2906 * c-common.c (visibility_options): Move from ../opts.c.
2907 * c-common.h (struct visibility_flags, visibility_options):
2908 Declare here.
2909 * c-opts.c (finish_options): Rename to c_finish_options.
2910 (c_common_init): Update call to finish_options.
2911
a9546771
NP
29122010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2913
2914 PR objc/34033
2915 * c-lex.c (lex_string): Check that each string in an Objective-C
2916 string concat sequence starts with either one or zero '@', and
2917 that there are no spurious '@' signs at the end.
2918
24a57808
JM
29192010-11-20 Joseph Myers <joseph@codesourcery.com>
2920
2921 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2922 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2923 HANDLE_PRAGMA_VISIBILITY.
2924 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2925 HANDLE_PRAGMA_VISIBILITY): Don't define.
2926 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2927
a9aa2c3a
NF
29282010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2929
2930 PR c++/16189
2931 PR c++/36888
2932 PR c++/45331
2933 * c-common.h (keyword_begins_type_specifier): Declare.
2934 (keyword_is_storage_class_specifier): Declare.
2935 (keyword_is_type_qualifier): Declare.
2936 * c-common.c (keyword_begins_type_specifier): New function.
2937 (keyword_is_storage_class_specifier): New function.
2938 (keyword_is_type_qualifier): Declare.
2939
5386338c
JM
29402010-11-19 Joseph Myers <joseph@codesourcery.com>
2941
2942 PR c/46547
2943 * c-common.c (in_late_binary_op): Define.
2944 (c_common_truthvalue_conversion): Check in_late_binary_op before
2945 calling c_save_expr.
2946 * c-common.h (in_late_binary_op): Declare.
2947
69ccdddb
JM
29482010-11-19 Joseph Myers <joseph@codesourcery.com>
2949
2950 * c-opts.c (c_common_handle_option): Update calls to
2951 set_struct_debug_option.
2952
6b192a09
NP
29532010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2954
2955 * c-common.h (objc_declare_protocols): Added additional argument.
2956 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2957
fb52b50a
NF
29582010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2959
2960 PR c/33193
2961 * c-common.h (build_real_imag_expr): Declare.
2962 * c-semantics.c (build_real_imag_expr): Define.
2963
b37421c6
JM
29642010-11-17 Joseph Myers <joseph@codesourcery.com>
2965
2966 * c-opts.c (c_common_parse_file): Take no arguments.
2967 * c-common.h (c_common_parse_file): Update prototype.
2968
07078664
JJ
29692010-11-16 Jakub Jelinek <jakub@redhat.com>
2970
2971 PR c++/46401
2972 * c-common.c (warning_candidate_p): Don't track non-const calls
2973 or STRING_CSTs.
2974
c6a13190
ILT
29752010-11-15 Ian Lance Taylor <iant@google.com>
2976
2977 * c-lex.c (init_c_lex): Set macro debug callbacks if
2978 flag_dump_go_spec is set.
2979
925e8657
NP
29802010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2981
2982 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2983 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2984
bb0a9581
NF
29852010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2986
2987 PR preprocessor/45038
2988 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2989 dialects.
2990
c5fa0890
JM
29912010-11-12 Joseph Myers <joseph@codesourcery.com>
2992
2993 * c-common.h (c_family_lang_mask): Declare.
2994 * c-opts.c (c_family_lang_mask): Make extern.
2995 * c-pragma.c (handle_pragma_diagnostic): Use
2996 control_warning_option.
2997
a4d8c676
JM
29982010-11-12 Joseph Myers <joseph@codesourcery.com>
2999
3000 * c-common.c (parse_optimize_options): Update call to
3001 decode_options.
3002 * c-common.h (c_common_handle_option): Update prototype.
3003 * c-opts.c (c_common_handle_option): Take location_t parameter and
3004 pass it to other functions.
3005
f954bd2c
JM
30062010-11-11 Joseph Myers <joseph@codesourcery.com>
3007
3008 * c-opts.c (warning_as_error_callback): Remove.
3009 (c_common_initialize_diagnostics): Don't call
3010 register_warning_as_error_callback.
3011 (c_common_handle_option): Handle -Werror=normalized= here.
3012
d8a07487
JM
30132010-11-10 Joseph Myers <joseph@codesourcery.com>
3014
3015 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3016 in diagnostic.
3017 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3018 letter.
3019 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3020 Remove trailing '.' from diagnostics.
3021 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3022
d5478783
JM
30232010-11-10 Joseph Myers <joseph@codesourcery.com>
3024
3025 * c-common.c (parse_optimize_options): Pass global_dc to
3026 decode_options.
3027 * c-opts.c (c_common_handle_option): Pass &global_options to
3028 set_Wstrict_aliasing.
3029 * c.opt (v): Don't mark Common or document here.
3030
91ebb981
IS
30312010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3032
3033 PR target/44981
3034 * c-format.c (format_type): New type gcc_objc_string_format_type.
3035 (valid_stringptr_type_p): New.
3036 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3037 (check_format_string): Pass expected type, use
91ebb981
IS
3038 valid_stringptr_type_p (), check that the format string types are
3039 consistent with the format specification.
3040 (decode_format_attr): Warn if NSString is used outside objective-c.
3041 (format_types_orig): Add NSString.
3042 (format_name): New.
3043 (format_flags): New.
3044 (check_format_arg): Handle format strings requiring an external parser.
3045 first_target_format_type: New variable.
3046 (handle_format_attribute): Set up first_target_format_type, pass the
3047 expected format arg string type to check_format_string().
3048 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3049 * stub-objc.c (objc_string_ref_type_p): New.
3050 (objc_check_format_arg): New.
3051
bede2adc
NP
30522010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3053
9faeb493 3054 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3055 * c-common.h (objc_build_class_component_ref): New.
3056 * stub-objc.c (objc_build_class_component_ref): New.
3057
9a179d01
NP
30582010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3059
3060 * c.opt (Wproperty-assign-default): New option.
3061
22d8d616
NP
30622010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3063
3064 Implemented -fobjc-std=objc1 flag.
3065 * c.opt (fobjc-std=objc1): New option.
3066
2debdb4f
NP
30672010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3068
3069 Implemented format and noreturn attributes for Objective-C methods.
3070 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3071 attribute for Objective-C methods.
3072
ec52b111
JM
30732010-10-31 Jason Merrill <jason@redhat.com>
3074
3075 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3076 EXPR_LOC_OR_HERE.
3077
46a88c12
NP
30782010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3079
3080 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3081 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3082 (objc_add_property_declaration): Removed arguments for copies and
3083 ivar.
3084 (objc_build_getter_call): Renamed to
3085 objc_maybe_build_component_ref.
3086 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3087 (objc_is_property_ref): New.
3088 * c-common.c (c_common_reswords): Removed copies and ivar.
3089 * stub-objc.c (objc_add_property_declaration): Removed arguments
3090 for copies and ivar.
3091 (objc_build_getter_call): Renamed to
3092 objc_maybe_build_component_ref.
3093 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3094 (objc_is_property_ref): New.
9faeb493 3095
1e4bf85b
AC
30962010-10-29 Arnaud Charlet <charlet@adacore.com>
3097 Matthew Gingell <gingell@adacore.com>
3098
3099 * c-ada-spec.c (separate_class_package): New function.
3100 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3101 name of their enclosing package.
3102 (print_ada_declaration): Use separate_class_package.
3103
81f0bab2
JM
31042010-10-27 Jason Merrill <jason@redhat.com>
3105
2b08f2c5
JM
3106 * c-common.c (c_common_reswords): Add __is_literal_type.
3107 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3108
81f0bab2
JM
3109 * c-common.c (check_case_value): Remove special C++ code.
3110
200290f2
NP
31112010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3112
3113 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3114 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3115 and RID_LAST_PATTR.
3116 (objc_add_property_declaration): Added additional arguments.
3117 (objc_property_attribute_kind): Removed.
3118 (objc_set_property_attr): Removed.
3119 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3120 copy and nonatomic.
3121 * stub-objc.c (objc_add_property_declaration): Added additional
3122 arguments.
3123 (objc_set_property_attr): Removed.
9faeb493 3124
f614132b
NP
31252010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3126
3127 * c-common.h (objc_add_property_variable): Renamed to
3128 objc_add_property_declaration. Added location argument.
3129 * stub-objc.c (objc_add_property_variable): Same change.
3130
b8a18805
NP
31312010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3132
3133 * c-common.h (objc_maybe_printable_name): New.
3134 * stub-objc.c (objc_maybe_printable_name): New.
3135
30cd1c5d
AS
31362010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3137 Andrew Pinski <pinskia@gmail.com>
3138
3139 * c-common.h (c_common_mark_addressable_vec): Declare.
3140 * c-common.c (c_common_mark_addressable_vec): New function.
3141
249a82c4
NP
31422010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3143
3144 * c-common.h (objc_set_method_type): Removed.
3145 (objc_add_method_declaration): Added boolean argument.
3146 (objc_start_method_definition): Same change.
3147 (objc_build_method_signature): Same change.
3148 * stub-objc.c (objc_set_method_type): Removed.
3149 (objc_add_method_declaration): Added boolean argument.
3150 (objc_start_method_definition): Same change.
3151 (objc_build_method_signature): Same change.
3152
977e30bc
NP
31532010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3154
3155 * c-common.h (finish_file): Removed.
3156 (objc_write_global_declarations): New.
3157 * c-opts.c (c_common_parse_file): Do not call finish_file.
3158 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3159
da57d1b9
NP
31602010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3161
3162 Implemented parsing @synthesize and @dynamic for
3163 Objective-C/Objective-C++.
3164 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3165 (objc_add_synthesize_declaration): New.
3166 (objc_add_dynamic_declaration): New.
3167 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3168 * stub-objc.c (objc_add_synthesize_declaration): New.
3169 (objc_add_dynamic_declaration): New.
9faeb493 3170
0069111f
MM
31712010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3172
3173 PR target/46041
3174 * c-cppbuiltin.c (mode_has_fma): Move function here from
3175 builtins.c. Don't use the fma optab, instead just use the
3176 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3177 using -save-temps.
3178
e426b47b
NP
31792010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3180
3181 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3182
e426b47b
NP
3183 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3184
9faeb493 3185 Radar 4330422
e426b47b
NP
3186 * c-common.h (objc_non_volatilized_type): New declaration
3187 * stub-objc.c (objc_non_volatilized_type): New stub.
3188
90fbfdc3
NP
31892010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3190
e426b47b 3191 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3192
3193 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3194
9faeb493 3195 Radar 4133425
90fbfdc3 3196 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3197 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3198
c37d8c30
IS
31992010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3200
3201 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3202 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3203 (objc_ivar_visibility_kind): New enum.
3204 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3205 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3206 visibility enum.
3207
1b1562a5
MM
32082010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3209
3210 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3211 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3212 has the appropriate fma builtins.
3213 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3214
668ea4b1
IS
32152010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3216
1b1562a5 3217 merge from FSF apple 'trunk' branch.
668ea4b1 3218 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3219
668ea4b1
IS
3220 Radars 4436866, 4505126, 4506903, 4517826
3221 * c-common.c (c_common_resword): Define @property and its attributes.
3222 * c-common.h: Define property attribute enum entries.
3223 (OBJC_IS_PATTR_KEYWORD): New.
3224 (objc_property_attribute_kind): New enum.
3225 Declare objc_set_property_attr (), objc_add_property_variable (),
3226 objc_build_getter_call () and objc_build_setter_call ().
3227 * stub-objc.c (objc_set_property_attr): New stub.
3228 (objc_add_property_variable): Likewise.
3229 (objc_build_getter_call): Likewise.
3230 (objc_build_setter_call) Likewise.
1b1562a5 3231
a1178b30
IS
32322010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3233
1b1562a5 3234 merge from FSF apple 'trunk' branch.
a1178b30
IS
3235 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3236
3237 Radar 3803157 (method attributes)
3238 * c-common.c (handle_deprecated_attribute): Recognize
3239 objc methods as valid declarations.
3240 * c-common.h: Declare objc_method_decl ().
1b1562a5 3241 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3242
a75bfaa6
JM
32432010-10-08 Joseph Myers <joseph@codesourcery.com>
3244
3245 * c-common.c (parse_optimize_options): Call
3246 decode_cmdline_options_to_array_default_mask before
3247 decode_options. Update arguments to decode_options.
3248 * c-common.h (c_common_init_options_struct): Declare.
3249 * c-opts.c (c_common_init_options_struct): New. Split out from
3250 c_common_init_options.
3251
f05b9d93
NP
32522010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3253
3254 Implemented fast enumeration for Objective-C.
3255 * c-common.h (objc_finish_foreach_loop): New.
3256 * stub-objc.c (objc_finish_foreach_loop): New.
3257
1ebe4b4f
JM
32582010-10-05 Joseph Myers <joseph@codesourcery.com>
3259
3260 * c-common.h (struct diagnostic_context): Don't declare here.
3261 (c_common_initialize_diagnostics): Declare using
3262 diagnostic_context typedef.
3263 * c-opts.c (c_common_handle_option): Pass global_dc to
3264 handle_generated_option.
3265
d4d24ba4
JM
32662010-10-04 Joseph Myers <joseph@codesourcery.com>
3267
3268 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3269 handle_generated_option.
3270
478a1c5b
ILT
32712010-10-03 Ian Lance Taylor <iant@google.com>
3272
3273 * c.opt (-fplan9-extensions): New option.
3274
82a1c2fe
FXC
32752010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3276
3277 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3278 Remove.
3279 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3280 of duplicating code.
3281
92902b1b
IS
32822010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3283
3284 * c-common.c: Add two new entries for @optional
3285 and @required keywords.
3286
3287 merge from FSF 'apple/trunk' branch.
3288 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3289
3290 Radar 4386773
3291 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3292 objective-c keywords.
3293 (objc_set_method_opt): New declaration.
3294 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3295
46625112
JM
32962010-09-30 Joseph Myers <joseph@codesourcery.com>
3297
3298 * c-common.c (handle_optimize_attribute): Pass &global_options to
3299 cl_optimization_save and cl_optimization_restore.
3300 * c-opts.c (c_common_handle_option): Pass &global_options to
3301 handle_generated_option.
3302 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3303 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3304 &global_options to cl_optimization_restore.
3305
49b91f05
NP
33062010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3307
3308 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3309 Objective-C/Objective-C++ keywords.
3310
13ed556f 33112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3312
9faeb493
UB
3313 Merge from 'apple/trunk' branch on FSF servers.
3314
a6341d57
NP
3315 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3316
3317 Radar 4281748
3318 * c-common.h (objc_check_global_decl): New declaration.
3319 * stub-objc.c (objc_check_global_decl): New stub.
3320
f0036cca
JM
33212010-09-29 Joseph Myers <joseph@codesourcery.com>
3322
3323 * c.opt: Don't use VarExists.
3324
e3339d0f
JM
33252010-09-29 Joseph Myers <joseph@codesourcery.com>
3326
3327 * c-common.c (c_cpp_error): Update names of diagnostic_context
3328 members.
3329 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3330 cl_optimization members.
3331 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3332 sanitize_cpp_opts, finish_options): Update names of cpp_options
3333 members.
3334
1973201f
NP
33352010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3336
3337 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3338 (objc_is_reserved_word): Removed.
3339 * c-common.c: Updated comments.
3340 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3341 objc_is_reserved_word.
3342 * stub-objc.c (objc_is_reserved_word): Removed.
3343
f7e71da5
IS
33442010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3345
9faeb493 3346 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3347 include attributes.
3348 (objc_start_method_definition): Likewise.
3349 (objc_build_keyword_decl): Likewise.
3350 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3351 (objc_start_method_definition): Likewise.
3352 (objc_build_keyword_decl): Likewise.
3353
c165dca7
IS
33542010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3355
3356 * c-common.h (objc_start_class_interface): Adjust prototype.
3357 (objc_start_category_interface): Likewise.
3358 (objc_start_protocol): Likewise.
3359 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3360 (objc_start_class_interface): Likewise.
3361 (objc_start_category_interface): Likewise.
3362
7458026b
ILT
33632010-09-27 Ian Lance Taylor <iant@google.com>
3364
3365 * c-common.c (c_common_attribute_table): Add no_split_stack.
3366 (handle_no_split_stack_attribute): New static function.
3367
b581b85b
NP
33682010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3369
9faeb493 3370 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3371
3372 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3373
9faeb493 3374 Radar 4229905
b581b85b
NP
3375 * c-common.h (objc_have_common_type): New declaration.
3376 * stub-objc.c (objc_have_common_type): New stub.
3377
3378 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3379
3380 Radar 4154928
3381 * c-common.h (objc_common_type): New prototype.
9faeb493 3382 * stub-objc.c (objc_common_type): New stub.
b581b85b 3383
46a4da10
JH
33842010-09-24 Jan Hubicka <jh@suse.cz>
3385
3386 * c-common.c (handle_leaf_attribute): New function.
3387 (struct attribute_spec c_common_att): Add leaf.
3388
e200444e
JM
33892010-09-22 Joseph Myers <joseph@codesourcery.com>
3390
3391 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3392 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3393 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3394 -include-barrier, -include-directory, -include-directory=,
3395 -include-directory-after, -include-directory-after=,
3396 -include-prefix, -include-prefix=, -include-with-prefix,
3397 -include-with-prefix=, -include-with-prefix-after,
3398 -include-with-prefix-after=, -include-with-prefix-before,
3399 -include-with-prefix-before=, -no-integrated-cpp,
3400 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3401 -output=, -pedantic, -pedantic-errors, -preprocess,
3402 -print-missing-file-dependencies, -trace-includes, -traditional,
3403 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3404 -user-dependencies, -verbose, -write-dependencies,
3405 -write-user-dependencies, no-integrated-cpp, traditional): New.
3406
29a80ea6
NP
34072010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3408
3409 PR objc/23710
ac1fc2fc
NP
3410 * c-common.h (objc_start_method_definition): Return bool instead
3411 of void.
3412 * stub-objc.c (objc_start_method_definition): Return bool instead
3413 of void.
3414
34152010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3416
3417 PR objc/25965
3418 * c-common.h (objc_get_interface_ivars): New declaration.
3419 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3420
de621752
ILT
34212010-09-15 Ian Lance Taylor <iant@google.com>
3422
3423 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3424 messages. Remove period at end of warning message.
de621752 3425
ba885ec5
NS
34262010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3427
3428 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3429 (handle_alias_attribute): ... here.
3430 (handle_ifunc_attribute): New.
3431
c5ee1358
MM
34322010-09-06 Mark Mitchell <mark@codesourcery.com>
3433
3434 * c-common.h (do_warn_double_promotion): Declare.
3435 * c-common.c (do_warn_double_promotion): Define.
3436
0a0b3574
MM
34372010-09-05 Mark Mitchell <mark@codesourcery.com>
3438
3439 * c.opt (Wdouble-promotion): New.
3440
d1779886
JM
34412010-09-02 Joseph Myers <joseph@codesourcery.com>
3442
3443 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3444 fvtable-thunks, fxref): Mark no longer supported in help text.
3445
2d2bd949
JM
34462010-09-02 Joseph Myers <joseph@codesourcery.com>
3447
3448 * c.opt (Wimport, fall-virtual, falt-external-templates,
3449 fdefault-inline, fenum-int-equiv, fexternal-templates,
3450 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3451 fname-mangling-version-, fnew-abi, fnonnull-objects,
3452 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3453 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3454 applicable.
3455 (fhandle-exceptions): Mark with Alias and Warn.
3456 * c-opts.c (c_common_handle_option): Don't handle options marked
3457 as ignored.
3458
5de8299c
JM
34592010-09-02 Joseph Myers <joseph@codesourcery.com>
3460
3461 * c.opt (Wcomments, Werror-implicit-function-declaration,
3462 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3463 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3464 aliases.
3465 * c-common.c (option_codes): Use OPT_Wcomment instead of
3466 OPT_Wcomments.
3467 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3468 Don't handle options marked as aliases.
3469
0ceb0201
RG
34702010-08-25 Richard Guenther <rguenther@suse.de>
3471
3472 * c-common.c (c_common_get_alias_set): Remove special
3473 handling for pointers.
3474
ac47786e
NF
34752010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3476
3477 * c-common.c: Use FOR_EACH_VEC_ELT.
3478 * c-gimplify.c: Likewise.
3479 * c-pragma.c: Likewise.
3480
c878765b
JM
34812010-08-16 Joseph Myers <joseph@codesourcery.com>
3482
3483 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3484 RejectDriver.
3485 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3486 RejectDriver.
3487 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3488 instead of OPT_MDX and OPT_MMDX.
3489
603349bf
JM
34902010-08-16 Joseph Myers <joseph@codesourcery.com>
3491
3492 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3493
644fa7ac
JM
34942010-08-12 Joseph Myers <joseph@codesourcery.com>
3495
3496 * c.opt (MD, MMD): Change to MDX and MMDX.
3497 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3498
481e1176
JM
34992010-08-11 Joseph Myers <joseph@codesourcery.com>
3500
3501 * c-opts.c (c_common_handle_option): Call handle_generated_option
3502 instead of handle_option.
3503
ac8dc9f7
NF
35042010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3505
3506 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3507 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3508
4f8c876d
NF
35092010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3510
3511 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3512 (pending_redefine_extname): Change type to a VEC.
3513 (add_to_renaming_pragma_list): Update for new type of
3514 pending_redefine_extname.
ac8dc9f7 3515 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3516
3b0c690e
AC
35172010-08-04 Arnaud Charlet <charlet@adacore.com>
3518
3519 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3520 visited.
3521 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3522 decide whether a type has already been declared/seen.
3523 Do not go to the original type.
3524 (dump_nested_types): New parameter forward.
3525 Generate forward declaration if needed and mark type as visited.
3526 (print_ada_declaration): Call dump_nested_types if not already done.
3527 Mark types as visited.
3528
1890bccc
JM
35292010-08-03 Joseph Myers <joseph@codesourcery.com>
3530
3531 * c.opt (-print-pch-checksum): Remove option.
3532 * c-opts.c (c_common_handle_option): Don't handle
3533 OPT_print_pch_checksum.
3534
5f20c657
JM
35352010-07-27 Joseph Myers <joseph@codesourcery.com>
3536
3537 * c-common.h (c_common_handle_option): Update prototype and return
3538 value type.
3539 * c-opts.c (c_common_handle_option): Update prototype and return
3540 value type. Update calls to handle_option and
3541 enable_warning_as_error.
3542
f551f80c
JJ
35432010-07-27 Jakub Jelinek <jakub@redhat.com>
3544
3545 PR c/45079
3546 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3547
61ff2bdc
JM
35482010-07-27 Joseph Myers <joseph@codesourcery.com>
3549
3550 * c-common.h (c_common_missing_argument): Remove.
3551 * c-opts.c (c_common_missing_argument): Remove.
3552 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3553 idirafter, imacros, include, isysroot, isystem, iquote): Add
3554 MissingArgError.
3555 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3556
7a9bf9a4
JM
35572010-07-27 Joseph Myers <joseph@codesourcery.com>
3558
3559 * c-common.h (c_common_option_lang_mask,
3560 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3561 New.
3562 (c_common_init_options): Update prototype.
3563 * c-opts.c (c_common_option_lang_mask): New.
3564 (c_common_initialize_diagnostics): Split out of
3565 c_common_init_options.
3566 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3567 New.
3568 (c_common_init_options): Update prototype. Use decoded options in
3569 search for -lang-asm.
3570
910ad8de
NF
35712010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3572
3573 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3574 * c-format.c: Likewise.
3575
718f9c0f
MLI
35762010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3577
3578 * c-common.h: Include diagnostic-core.h. Error if already
3579 included.
3580 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3581
4d451982
MLI
35822010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3583
3584 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3585 Do not include expr.h
3586 (vector_mode_valid_p): Move here.
3587
119fe915
SB
35882010-06-21 DJ Delorie <dj@redhat.com>
3589
3590 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3591 allow these pragmas anywhere.
3592
35932010-06-14 Jakub Jelinek <jakub@redhat.com>
3594
3595 PR bootstrap/44509
3596 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3597 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3598 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3599 ggc_strdup instead of xstrdup.
3600
36012010-06-10 Jakub Jelinek <jakub@redhat.com>
3602
3603 * c-cppbuiltin.c: Include cpp-id-data.h.
3604 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3605 (lazy_hex_fp_value): New function.
3606 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3607
6662d794
MLI
36082010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3609
3610 * c-gimplify.c: Do not include tree-flow.h
3611
38f8b050
JR
36122010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3613
3614 PR other/44034
3615 * c-common.c: Rename targetm member:
3616 targetm.enum_va_list -> targetm.enum_va_list_p
3617
9589f23e
AS
36182010-06-28 Anatoly Sokolov <aesok@post.ru>
3619
3620 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3621
3b06d379
SB
36222010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3623
3624 * c-cppbuiltin.c: Do not include except.h.
3625
d166d4c3
AK
36262010-06-24 Andi Kleen <ak@linux.intel.com>
3627
9faeb493
UB
3628 * c-common.c (warn_for_omitted_condop): New.
3629 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3630
70cb8be6
JM
36312010-06-21 Joseph Myers <joseph@codesourcery.com>
3632
3633 * c.opt (lang-objc): Remove.
3634 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3635
a4c97feb
JR
36362010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3637
3638 * c-opts.c: Include "tm_p.h".
3639
6e2f1956
JM
36402010-06-20 Joseph Myers <joseph@codesourcery.com>
3641
3642 * c-common.c (parse_optimize_options): Update call to
3643 decode_options.
3644
bc87224e
NF
36452010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3646
3647 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3648 new type of types_used_by_cur_var_decl.
3649
b49cf425
JR
36502010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3651
3652 PR bootstrap/44512
3653 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3654 for C++ standard compliance.
3655
59f9c2ed
JM
36562010-06-16 Jason Merrill <jason@redhat.com>
3657
3658 * c.opt: Add -Wnoexcept.
3659
33766b66
RG
36602010-06-16 Richard Guenther <rguenther@suse.de>
3661
3662 PR c/44555
3663 * c-common.c (c_common_truthvalue_conversion): Remove
3664 premature and wrong optimization concering ADDR_EXPRs.
3665
eff7e30c
AC
36662010-06-15 Arnaud Charlet <charlet@adacore.com>
3667
3668 * c-ada-spec.c (dump_sloc): Remove column info.
3669 (is_simple_enum): New function.
3670 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3671 enum types when relevant.
3672
6312e84d
MLI
36732010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3674
9faeb493 3675 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3676 location.
3677
1cb42611
JM
36782010-06-10 Joseph Myers <joseph@codesourcery.com>
3679
3680 * c-opts.c (c_common_handle_option): Don't handle
3681 OPT_fshow_column.
3682
a9429e29
LB
36832010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3684
3685 * c-pragma.c (push_alignment): Use typed GC allocation.
3686 (handle_pragma_push_options): Likewise.
3687
3688 * c-common.c (parse_optimize_options): Likewise.
3689
3690 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3691 option.
3692
5498f011
JM
36932010-06-07 Joseph Myers <joseph@codesourcery.com>
3694
3695 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3696 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3697 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3698 flag_signed_bitfields, warn_strict_null_sentinel,
3699 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3700 flag_gen_declaration, flag_no_gnu_keywords,
3701 flag_implement_inlines, flag_implicit_templates,
3702 flag_implicit_inline_templates, flag_optional_diags,
3703 flag_elide_constructors, flag_default_inline, flag_rtti,
3704 flag_conserve_space, flag_access_control, flag_check_new,
3705 flag_new_for_scope, flag_weak, flag_working_directory,
3706 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3707 flag_enforce_eh_specs, flag_threadsafe_statics,
3708 flag_pretty_templates): Remove.
3709 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3710 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3711 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3712 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3713 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3714 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3715 flag_no_gnu_keywords, flag_implement_inlines,
3716 flag_implicit_templates, flag_implicit_inline_templates,
3717 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3718 flag_rtti, flag_conserve_space, flag_access_control,
3719 flag_check_new, flag_new_for_scope, flag_weak,
3720 flag_working_directory, flag_use_cxa_atexit,
3721 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3722 flag_threadsafe_statics, flag_pretty_templates,
3723 warn_strict_null_sentinel): Remove.
3724 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3725 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3726 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3727 fimplicit-inline-templates, fimplicit-templates,
3728 flax-vector-conversions, fms-extensions, fnil-receivers,
3729 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3730 frtti, fshort-double, fshort-enums, fshort-wchar,
3731 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3732 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3733 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3734 gen-decls, undef): Use Var.
3735 (fdefault-inline, foptional-diags): Document as doing nothing.
3736 * c-opts.c (c_common_handle_option): Remove cases for options now
3737 using Var. Mark ignored options as such.
3738
39dabefd
SB
37392010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3740
9faeb493 3741 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3742 * c-common.def: Likewise.
3743 * c-common.h: Likewise.
3744 * c-cppbuiltin.c: Likewise.
3745 * c-dump.c: Likewise.
3746 * c-format.c: Likewise.
3747 * c-format.h : Likewise.
3748 * c-gimplify.c: Likewise.
3749 * c-lex.c: Likewise.
3750 * c-omp.c: Likewise.
3751 * c.opt: Likewise.
3752 * c-opts.c: Likewise.
3753 * c-pch.c: Likewise.
3754 * c-ppoutput.c: Likewise.
3755 * c-pragma.c: Likewise.
3756 * c-pragma.h: Likewise.
3757 * c-pretty-print.c: Likewise.
3758 * c-pretty-print.h: Likewise.
3759 * c-semantics.c: Likewise.
3760 * stub-objc.c: Likewise.
3761
3762 * c-common.c: Include gt-c-family-c-common.h.
3763 * c-pragma.c: Include gt-c-family-c-pragma.h.
3764\f
23a5b65a 3765Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3766
3767Copying and distribution of this file, with or without modification,
3768are permitted in any medium without royalty provided the copyright
3769notice and this notice are preserved.
This page took 1.445754 seconds and 5 git commands to generate.