]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Cosmetic fixes for DEF_FUNCTION_TYPE_* macros.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
f6a7cffc
TS
12014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2
3 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
4 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
6
632f2871
RS
72014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
8
9 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
10 * c-common.c (c_common_nodes_and_builtins): Don't initialize
11 void_zero_node.
12 * c-pretty-print.c (pp_c_void_constant): New function.
13 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
14 (c_pretty_printer::expression): Handle VOID_CST.
15 * cilk.c (extract_free_variables): Likewise.
16 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
17 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
18
766090c2
TS
192014-05-17 Trevor Saunders <tsaunders@mozilla.com>
20
21 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
22 * c-pragma.c (push_alignment): Adjust.
23 (handle_pragma_push_options): Likewise.
24
661a0813
MP
252014-05-09 Marek Polacek <polacek@redhat.com>
26
27 PR c/50459
28 * c-common.c (check_user_alignment): Return -1 if alignment is error
29 node.
30 (handle_aligned_attribute): Don't call default_conversion on
31 FUNCTION_DECLs.
32 (handle_vector_size_attribute): Likewise.
33 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
34 (handle_sentinel_attribute): Call default_conversion and allow even
35 integral types as an argument.
36
2793eeab
MP
372014-05-08 Marek Polacek <polacek@redhat.com>
38
39 PR c/61053
40 * c-common.c (min_align_of_type): New function factored out from...
41 (c_sizeof_or_alignof_type): ...here.
42 * c-common.h (min_align_of_type): Declare.
43
f827930a
MP
442014-05-08 Marek Polacek <polacek@redhat.com>
45
46 PR c/61077
47 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
48 parameter type of main.
49
ca49b74e
DD
502014-05-07 DJ Delorie <dj@redhat.com>
51
52 * c-cppbuiltin.c (print_bits_of_hex): New.
53 (builtin_define_type_minmax): Print values using hex so as not to
54 require a pre-computed list of string values.
55
1d60af08
KZ
562014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
57 Mike Stump <mikestump@comcast.net>
58 Richard Sandiford <rdsandiford@googlemail.com>
59
60 * c-ada-spec.c: Include wide-int.h.
61 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
62 (dump_generic_ada_node): Use wide-int interfaces.
63 * c-common.c: Include wide-int-print.h.
64 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
65 (pointer_int_sum): Use wide-int interfaces.
66 (c_common_nodes_and_builtins): Use make_int_cst.
67 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
68 (handle_alloc_size_attribute): Use wide-int interfaces.
69 (get_nonnull_operand): Likewise.
70 * c-format.c (get_constant): Use tree_fits_uhwi_p.
71 * c-lex.c: Include wide-int.h.
72 (narrowest_unsigned_type): Take a widest_int rather than two
73 HOST_WIDE_INTs.
74 (narrowest_signed_type): Likewise.
75 (interpret_integer): Update accordingly. Use wide-int interfaces.
76 (lex_charconst): Use wide-int interfaces.
77 * c-pretty-print.c: Include wide-int.h.
78 (pp_c_integer_constant): Use wide-int interfaces.
79 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
80 INT_CST_LT_UNSIGNED.
81
b15458be
RB
822014-05-06 Richard Biener <rguenther@suse.de>
83
84 * c-opts.c (c_common_post_options): For -freestanding,
85 -fno-hosted and -fno-builtin disable pattern recognition
86 if not enabled explicitely.
87
6577374e
MP
882014-05-02 Marek Polacek <polacek@redhat.com>
89
90 * c.opt (Wsizeof-pointer-memaccess): Describe option.
91
d00887e8
MP
922014-05-01 Marek Polacek <polacek@redhat.com>
93
94 PR c/43245
95 * c.opt (Wdiscarded-qualifiers): Add.
96
f8ed5150
MP
972014-04-30 Marek Polacek <polacek@redhat.com>
98
99 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
100 INT_MIN / -1 sanitization only for integer types.
101
45484dcf
MP
1022014-04-25 Marek Polacek <polacek@redhat.com>
103
104 PR c/18079
105 * c-common.c (handle_noinline_attribute): Warn if the attribute
106 conflicts with always_inline attribute.
107 (handle_always_inline_attribute): Warn if the attribute conflicts
108 with noinline attribute.
109
38e514c0
MP
1102014-04-25 Marek Polacek <polacek@redhat.com>
111
112 PR c/60156
113 * c-common.c (check_main_parameter_types): Warn about variadic main.
114
44875f92
MS
1152014-04-24 Mike Stump <mikestump@comcast.net>
116
117 * c.opt (Wshadow-ivar): Default to on.
118
dcaaa5a0
DP
1192014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
120
121 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
122
c07d7c02
MP
1232014-04-23 Marek Polacek <polacek@redhat.com>
124
125 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
126
1c33c9b7
JJ
1272014-04-22 Jakub Jelinek <jakub@redhat.com>
128
129 PR sanitizer/60275
130 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
131 if flag_sanitize_undefined_trap_on_error.
132 (ubsan_instrument_division, ubsan_instrument_shift,
133 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
134 if !flag_sanitize_recover.
135
793c625f
MG
1362014-04-22 Marc Glisse <marc.glisse@inria.fr>
137
138 PR libstdc++/43622
139 * c-common.c (registered_builtin_types): Make non-static.
140 * c-common.h (registered_builtin_types): Declare.
141
b0f1bf36
RB
1422014-04-14 Richard Biener <rguenther@suse.de>
143 Marc Glisse <marc.glisse@inria.fr>
144
145 PR c/60819
146 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
147 apply may-alias the scalar pointer type when applicable.
148
3b07fa4a
IZ
1492014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
150
151 PR middle-end/60467
152 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
153 as possible argument for Cilk_spawn.
154
cbbd2b1c
TB
1552014-04-11 Tobias Burnus <burnus@net-b.de>
156
157 PR c/60194
158 * c.opt (Wformat-signedness): Add
159 * c-format.c(check_format_types): Use it.
160
6415bd5d
JM
1612014-04-11 Jason Merrill <jason@redhat.com>
162
163 PR c++/57926
164 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
165 default_conversion for an array argument.
166
6525783a
MP
1672014-04-08 Marek Polacek <polacek@redhat.com>
168
169 PR sanitizer/60745
170 * c-ubsan.c: Include asan.h.
171 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
172
880a467b
NS
1732014-04-03 Nathan Sidwell <nathan@codesourcery.com>
174
175 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
176
7b59ff2d
MP
1772014-04-02 Marek Polacek <polacek@redhat.com>
178
179 * c-common.h (c_expand_expr): Remove declaration.
180
8edbfaa6
JJ
1812014-03-28 Jakub Jelinek <jakub@redhat.com>
182
183 PR c++/60689
184 * c-common.c (add_atomic_size_parameter): When creating new
185 params vector, push the size argument first.
186
07d72e1d
JJ
1872014-03-26 Jakub Jelinek <jakub@redhat.com>
188
189 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
190 ubsan_instrument_vla, ubsan_instrument_return): Adjust
191 ubsan_create_data callers.
192
b35e0fa0
JJ
1932014-03-22 Jakub Jelinek <jakub@redhat.com>
194
195 PR debug/60603
196 * c-opts.c (c_finish_options): Restore cb_file_change call to
197 <built-in>.
198
39a1ebb3
JJ
1992014-03-13 Jakub Jelinek <jakub@redhat.com>
200
201 PR middle-end/36282
202 * c-pragma.c (apply_pragma_weak): Only look at
203 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
204 DECL_ASSEMBLER_NAME_SET_P (decl).
205 (maybe_apply_pending_pragma_weaks): Exit early if
206 vec_safe_is_empty (pending_weaks) rather than only when
207 !pending_weaks.
208 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
209 set assembler name back to NULL afterwards.
210
a07f6ed2
JM
2112014-03-11 Jason Merrill <jason@redhat.com>
212
213 * c.opt: Add -std=gnu++14.
214
75b107f5
IB
2152014-03-11 Ian Bolton <ian.bolton@arm.com>
216
217 * c-opts.c (c_common_post_options): Don't override
218 -ffp-contract=fast if unsafe-math-optimizations is on.
219
f42c637e
PM
2202014-03-08 Paulo Matos <paulo@matos-sorge.com>
221
222 * c.opt: Enable LTO FE for fshort-double.
223
70e24808
JM
2242014-03-07 Jason Merrill <jason@redhat.com>
225
226 * c.opt: Add -std=c++14.
227
3af9c5e9
MP
2282014-03-06 Marek Polacek <polacek@redhat.com>
229
230 PR c/60197
231 * cilk.c (contains_cilk_spawn_stmt): New function.
232 (contains_cilk_spawn_stmt_walker): Likewise.
233 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
234 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
235
b3bdf019
JJ
2362014-03-03 Jakub Jelinek <jakub@redhat.com>
237
238 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
239 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
240 even when flag_preprocess_only.
241
ca7e759d
JM
2422014-02-26 Jason Merrill <jason@redhat.com>
243
244 PR c++/59231
245 PR c++/11586
246 * c-common.c (shorten_compare): Don't check
247 c_inhibit_evaluation_warnings.
248
28e41874
JJ
2492014-02-19 Jakub Jelinek <jakub@redhat.com>
250
cca615af
JJ
251 PR c/37743
252 * c-common.c (c_common_nodes_and_builtins): When initializing
253 c_uint{16,32,64}_type_node, also set corresponding
254 uint{16,32,64}_type_node to the same value.
255
28e41874
JJ
256 PR c++/60267
257 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
258 for PRAGMA_IVDEP if flag_preprocess_only.
259
c2bf53a1
JJ
2602014-02-12 Jakub Jelinek <jakub@redhat.com>
261
262 PR c/60101
263 * c-common.c (merge_tlist): If copy is true, call new_tlist,
264 if false, add ADD itself, rather than vice versa.
265 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
266 copy. For SAVE_EXPR, only call merge_tlist once.
267
8fcbce72
JJ
2682014-02-08 Jakub Jelinek <jakub@redhat.com>
269
270 PR middle-end/60092
271 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
272 and tree_to_uhwi.
273 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
274 functions.
275 (c_common_attribute_table): Add alloc_align and assume_aligned
276 attributes.
277
0a756a3f
MP
2782014-02-06 Marek Polacek <polacek@redhat.com>
279
280 PR c/60087
281 * c-common.c (warn_for_sign_compare): Call warning_at with location
282 instead of warning.
283
7ec4847a
MP
2842014-02-05 Marek Polacek <polacek@redhat.com>
285
286 PR c/53123
287 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
288 statement.
289
66f20604
MP
2902014-02-04 Marek Polacek <polacek@redhat.com>
291
292 PR c/60036
293 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
294 SAVE_EXPR.
295
5d77fb19
MG
2962014-02-03 Marc Glisse <marc.glisse@inria.fr>
297
298 PR c++/53017
299 PR c++/59211
300 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
301 handle_vector_size_attribute, handle_nonnull_attribute): Call
302 default_conversion on the attribute argument.
303 (handle_nonnull_attribute): Increment the argument number.
304
81e5eca8
MP
3052014-01-31 Marek Polacek <polacek@redhat.com>
306
307 PR c/59963
308 * c-common.c (add_atomic_size_parameter): Pass vNULL to
309 build_function_call_vec.
310 (resolve_overloaded_builtin): Likewise.
311 * c-common.h (build_function_call_vec): Adjust declaration.
312
68fca595
MP
3132014-01-30 Marek Polacek <polacek@redhat.com>
314
315 PR c/59940
316 * c-common.h (unsafe_conversion_p): Adjust declaration.
317 (warnings_for_convert_and_check): Likewise.
318 (convert_and_check): Likewise.
319 * c-common.c (unsafe_conversion_p): Add location parameter. Call
320 expansion_point_location_if_in_system_header on it.
321 (warnings_for_convert_and_check): Add location parameter. Call
322 expansion_point_location_if_in_system_header on it. Use it.
323 (convert_and_check): Add location parameter. Use it.
324 (conversion_warning): Likewise.
325 (c_add_case_label): Adjust convert_and_check calls.
326 (scalar_to_vector): Adjust unsafe_conversion_p calls.
327
b72271b9
BI
3282014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
329
330 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
331 flag_cilkplus.
332 * c-pragma.c (init_pragma): Likewise.
333 * c.opt: Likewise.
334
393e8e8b
MP
3352014-01-23 Marek Polacek <polacek@redhat.com>
336
337 PR c/59846
338 * c-common.c (shorten_compare): Add location_t parameter.
339 * c-common.h (shorten_binary_op): Adjust declaration.
340
f04dda30
MP
3412014-01-23 Marek Polacek <polacek@redhat.com>
342
343 PR c/58346
344 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
345 * c-common.h: Declare it.
346
621955cb
EB
3472014-01-20 Eric Botcazou <ebotcazou@adacore.com>
348
349 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
350 * c-ada-spec.c (dump_ads): Likewise.
351 (cpp_check): Likewise.
352 (dump_ada_specs): Likewise.
353
3542014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
355
356 PR c++/49718
357 * c-common.c (handle_no_instrument_function_attribute): Allow
358 no_instrument_function attribute in class member
359 definition/declaration.
360
241f845a
JJ
3612014-01-15 Jakub Jelinek <jakub@redhat.com>
362
363 PR c/58943
364 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
365 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
366 being COMPOUND_EXPR.
367 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
368 operand a SAVE_EXPR and second MODIFY_EXPR.
369
e83b8e2e
JJ
3702014-01-09 Jakub Jelinek <jakub@redhat.com>
371
372 PR target/58115
373 * c-pch.c (c_common_write_pch): Call
374 prepare_target_option_nodes_for_pch.
375
23a5b65a
RS
3762014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
377
378 Update copyright years
379
f9030485
RS
3802014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
381
382 * array-notation-common.c, c-cilkplus.c: Use the standard form for
383 the copyright notice.
384
f2aa696b
EB
3852013-12-28 Eric Botcazou <ebotcazou@adacore.com>
386
387 * c-ada-spec.c (print_constructor): New function.
388 (print_destructor): Retrieve the origin of the destructor.
389 (print_ada_declaration): Revamp handling of constructors/destructors.
390
1f26ac87
JM
3912013-12-23 Stuart Hastings <stuart@apple.com>
392 Bill Maddox <maddox@google.com>
393 Jason Merrill <jason@redhat.com>
394
395 * c.opt: Add -fdeclone-ctor-dtor.
396 * c-opts.c (c_common_post_options): Default to on iff -Os.
397
41958c28
BI
3982013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
399
400 * c-common.c (c_common_attribute_table): Added "cilk simd function"
401 attribute.
402 * c-pragma.h (enum pragma_cilk_clause): Remove.
403 (enum pragma_omp_clause): Added the following fields:
404 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
405 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
406 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
407 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
408 PRAGMA_CILK_CLAUSE_UNIFORM.
409
410
12893402
BI
4112013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
412
413 * cilk.c (cilk_outline): Made this function non-static.
414 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
415 (create_cilk_wrapper): Added a new parameter: a function pointer.
416 (c_install_body_w_frame_cleanup): Remove
417 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
418 * c-common.h (cilk_outline): New prototype.
419 (gimplify_cilk_spawn): Removed two parameters.
420 (cilk_install_body_with_frame_cleanup): New prototype.
421 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
422 CILK_SPAWN_STMT case.
423
085b42ed
BS
4242013-12-11 Bernd Schmidt <bernds@codesourcery.com>
425
2ce064c3
BS
426 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
427
085b42ed
BS
428 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
429 (int_array_type_node): Remove.
430 * c-common.c (c_common_nodes_and_builtins): Don't build it.
431
9e36c9ed
MP
4322013-12-05 Marek Polacek <polacek@redhat.com>
433
434 PR c/52023
435 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
436 [ADJUST_FIELD_ALIGN].
437
296674db
JM
4382013-12-04 Joseph Myers <joseph@codesourcery.com>
439
440 PR c/52023
441 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
442 and check field alignment if set.
443 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
444 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
445
31e071ae
MP
4462013-12-04 Jakub Jelinek <jakub@redhat.com>
447 Marek Polacek <polacek@redhat.com>
448
449 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
450 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
451
d7947e19
L
4522013-11-29 H.J. Lu <hongjiu.lu@intel.com>
453
454 PR c/59309
455 * cilk.c (gimplify_cilk_spawn): Properly handle function without
456 arguments.
457
fad7652e
JJ
4582013-11-29 Jakub Jelinek <jakub@redhat.com>
459
460 PR c/59280
461 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
462 goto invalid. If it is error_mark_node, don't issue further
463 diagnostics.
464
8b5e1202
SO
4652013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
466
467 * c.opt (Wopenmp-simd): New.
468
0a508bb6
JJ
4692013-11-22 Jakub Jelinek <jakub@redhat.com>
470
471 * c-ubsan.h (ubsan_instrument_return): New prototype.
472 * c-ubsan.c (ubsan_instrument_return): New function.
473
2fb9a547
AM
4742013-11-22 Andrew MacLeod <amacleod@redhat.com>
475
476 * c-common.c: Add required include files from gimple.h.
477 * c-gimplify.c: Likewise
478 * cilk.c: Likewise
479
8400e75e
DM
4802013-11-22 David Malcolm <dmalcolm@redhat.com>
481
482 * c-common.c (unsafe_conversion_p): Remove use of
483 EXPR_LOC_OR_HERE macro.
484 (conversion_warning): Likewise.
485 (warnings_for_convert_and_check): Likewise.
486 (warn_for_collisions_1): Likewise.
487 (shorten_compare): Likewise, and remove use of in_system_header
488 macro, using the location from the former.
489 * c-lex.c (dump_one_header): Remove use of input_filename macro.
490 (cb_def_pragma): Remove use of in_system_header macro.
491 (lex_string): Likewise.
492 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
493
eb1ce453
KZ
4942013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
495 Mike Stump <mikestump@comcast.net>
496 Richard Sandiford <rdsandiford@googlemail.com>
497
498 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
499 instead of TREE_INT_CST_LOW, in cases where there is a protecting
500 tree_fits_shwi_p or tree_fits_uhwi_p.
501 (dump_generic_ada_node): Likewise.
502 * c-format.c (check_format_arg): Likewise.
503 * c-pretty-print.c (pp_c_integer_constant): Likewise.
504
6b3b8c27
KZ
5052013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
506
507 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
508
49b0aa18
JC
5092013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
510
511 PR c/53001
512 * c-common.c (unsafe_conversion_p): Make this function
513 return an enumeration with more detail.
514 (conversion_warning): Use the new return type of
515 unsafe_conversion_p to separately warn either about conversions
516 that lower floating point number precision or about the other
517 kinds of conversions.
518 * c-common.h (enum conversion_safety): New enumeration.
519 (unsafe_conversion_p): switching return type to
520 conversion_safety enumeration.
521 * c.opt: Adding new warning -Wfloat-conversion and
522 enabling it with -Wconversion.
523
b826515a
BS
5242013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
525
526 * c-opts.c: Include plugin.h.
527 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
528
b9a55b13
MP
5292013-11-19 Marek Polacek <polacek@redhat.com>
530
531 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
532 call.
533 (ubsan_instrument_shift): Likewise.
534 (ubsan_instrument_vla): Likewise.
535
7d362f6c
RS
5362013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
537
538 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
539 cast to unsigned type.
540
386b1f1f
RS
5412013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
542
543 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
544 tree_low_cst.
545 (complete_array_type): Update comment to refer to tree_to_[su]hwi
546 rather than tree_low_cst.
547
ae7e9ddd
RS
5482013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
549
550 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
551 tree_to_uhwi throughout.
552
9439e9a1
RS
5532013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
554
555 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
556 tree_low_cst (..., 0) with tree_to_shwi throughout.
557
cc269bb6
RS
5582013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
559
560 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
561 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
562
9541ffee
RS
5632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
564
565 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
566 host_integerp (..., 0) with tree_fits_shwi_p throughout.
567
c02065fc
AH
5682013-11-15 Aldy Hernandez <aldyh@redhat.com>
569
570 * c-cilkplus.c: New file.
571 * c-common.c (readonly_error): Add location argument.
572 * c-common.h (readonly_error): Same.
573 (c_finish_cilk_clauses): Protoize.
574 (c_check_cilk_loop): Same.
575 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
576 Do not fail on error_mark_node.
577 Abstract increment canonicalization to here...
578 (c_omp_for_incr_canonicalize_ptr): New.
579 c-pragma.c (init_pragma): Register "simd" pragma.
580 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
581 (enum pragma_cilk_clause): New.
582
9cc65f15
RS
5832013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
584
585 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
586 wchar_type and host_integerp checks.
587
18f429e2
AM
5882013-11-14 Andrew MacLeod <amacleod@redhat.com>
589
590 * c-common.c: Likewise.
591 * c-gimplify.c: Likewise.
592 * cilk.c: Likewise.
593
d8a2d370
DN
5942013-11-14 Diego Novillo <dnovillo@google.com>
595
596 * c-common.c: Include fold-const.h.
597 Include stor-layout.h.
598 Include calls.h.
599 Include stringpool.h.
600 Include attribs.h.
601 Include varasm.h.
602 Include trans-mem.h.
603 * c-cppbuiltin.c: Include stor-layout.h.
604 Include stringpool.h.
605 * c-format.c: Include stringpool.h.
606 * c-lex.c: Include stringpool.h.
607 Include stor-layout.h.
608 * c-pragma.c: Include stringpool.h.
609 Include attribs.h.
610 Include varasm.h.
611 Include gcc-symtab.h.
612 * c-pretty-print.c: Include stor-layout.h.
613 Include attribs.h.
614 * cilk.c: Include stringpool.h.
615 Include calls.h.
616
38b7bc7f
JM
6172013-11-13 Joseph Myers <joseph@codesourcery.com>
618
619 * c-common.h (enum rid): Add RID_AUTO_TYPE.
620 * c-common.c (c_common_reswords): Add __auto_type.
621 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
622
45b0be94
AM
6232013-11-12 Andrew MacLeod <amacleod@redhat.com>
624
18f429e2
AM
625 * c-common.c: Include gimplify.h.
626 * c-gimplify.c: Likewise.
627 * cilk.c: Likewise.
628 * c-omp.c: Include gimple-expr.h instead of gimple.h.
629 * c-ubsan.c: Don't include gimple.h.
45b0be94 630
582d9b50
JM
6312013-11-12 Joseph Myers <joseph@codesourcery.com>
632
633 * c-common.c (c_common_reswords): Add _Thread_local.
634
6b28e197
JM
6352013-11-09 Joseph Myers <joseph@codesourcery.com>
636
637 * c-common.c (atomic_size_supported_p): New function.
638 (resolve_overloaded_atomic_exchange)
639 (resolve_overloaded_atomic_compare_exchange)
640 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
641 Use it instead of comparing size with a local list of sizes.
642
267bac10
JM
6432013-11-07 Andrew MacLeod <amacleod@redhat.com>
644 Joseph Myers <joseph@codesourcery.com>
645
646 * c-common.h (enum rid): Add RID_ATOMIC.
647 * c-common.c (c_common_reswords): Add _Atomic.
648 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
649 (keyword_is_type_qualifier): Accept RID_ATOMIC.
650 * c-format.c (check_format_types): Check for extra _Atomic
651 qualifiers in format argument.
652 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
653 (pp_c_type_qualifier_list): Mention _Atomic in comment.
654
5157b91e
TB
6552013-11-06 Tobias Burnus <burnus@net-b.de>
656
657 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
658
6dbe0958
JM
6592013-11-06 Joseph Myers <joseph@codesourcery.com>
660
661 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
662 standards modes.
663 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
664 to mean lack of IEEE 754 support.
665
e8ff5196
TB
6662013-11-05 Tobias Burnus <burnus@net-b.de>
667
668 * c.opt (-Wdate-time): New option
669 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
670
254a0760
JM
6712013-11-05 Joseph Myers <joseph@codesourcery.com>
672
673 * c-cppbuiltin.c (cpp_iec_559_value): Test
674 flag_excess_precision_cmdline not flag_excess_precision.
675
6d7f7e0a
TB
6762013-11-05 Tobias Burnus <burnus@net-b.de>
677
678 * c.opt (fopenmp-simd): New option.
679 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
680 (omp_pragmas): ... this new struct.
681 (c_pp_lookup_pragma): Also walk omp_pragmas.
682 (init_pragma): Init pragmas for -fopenmp-simd.
683
55a7f02f
MP
6842013-11-04 Marek Polacek <polacek@redhat.com>
685
686 PR c++/58979
687 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
688
9193fb05
JM
6892013-11-04 Joseph Myers <joseph@codesourcery.com>
690
691 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
692 New functions.
693 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
694
94159ecf
EB
6952013-11-04 Eric Botcazou <ebotcazou@adacore.com>
696
697 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
698 (dump_ada_specs): Adjust prototype of second callback.
699 * c-ada-spec.c (cpp_check): New global variable.
700 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
701 (print_generic_ada_decl): Likewise.
702 (has_static_fields): Change return type to bool and add guard.
703 (has_nontrivial_methods): New predicate.
704 (is_tagged_type): Change return type to bool.
705 (separate_class_package): Call has_nontrivial_methods.
706 (pp_ada_tree_identifier): Minor tweaks.
707 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
708 (dump_ada_array_domains): Likewise.
709 (dump_ada_array_type): Likewise.
710 (dump_template_types): Remove cpp_check parameter and do not pass it to
711 dump_generic_ada_node.
712 (dump_ada_template): Likewise.
713 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
714 recursively.
715 (print_ada_methods): Change return type to integer. Remove cpp_check
716 parameter and do not pass it down.
717 (dump_nested_types): Remove cpp_check parameter and do not pass it to
718 dump_generic_ada_node.
719 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
720 accessing methods.
721 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
722 down. Use has_nontrivial_methods to recognize C++ classes. Use return
723 value of print_ada_methods.
724 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
725 Set cpp_check to it before invoking dump_ada_nodes.
726 (dump_ada_specs): Likewise.
727
b906f4ca
MP
7282013-11-03 Marek Polacek <polacek@redhat.com>
729
730 * c-ubsan.c: Don't include hash-table.h.
731 (ubsan_instrument_vla): New function.
732 * c-ubsan.h: Declare it.
733
5e20cdc9
DM
7342013-10-31 David Malcolm <dmalcolm@redhat.com>
735
736 Automated part of renaming of symtab_node_base to symtab_node.
737
738 Patch autogenerated by rename_symtab.py from
739 https://github.com/davidmalcolm/gcc-refactoring-scripts
740 revision 58bb219cc090b2f4516a9297d868c245495ee622
741
742 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
743 symtab_node_base to symtab_node.
744
7057e645
ESR
7452013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
746
747 Implement C++14 digit separators.
748 * c-lex.c (interpret_float): Remove digit separators from scratch string
749 before building real literal.
750
193ea7bc
JJ
7512013-10-30 Jakub Jelinek <jakub@redhat.com>
752
753 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
754
939b37da
BI
7552013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
756
757 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
758 fields.
759 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
760 enabled.
761 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
762 (insert_cilk_frame): New prototype.
763 (cilk_init_builtins): Likewise.
764 (gimplify_cilk_spawn): Likewise.
765 (c_cilk_install_body_w_frame_cleanup): Likewise.
766 (cilk_detect_spawn_and_unwrap): Likewise.
767 (cilk_set_spawn_marker): Likewise.
768 (build_cilk_sync): Likewise.
769 (build_cilk_spawn): Likewise.
770 * cilk.c: New file.
771
67348ccc
DM
7722013-10-29 David Malcolm <dmalcolm@redhat.com>
773
774 Patch autogenerated by refactor_symtab.py from
775 https://github.com/davidmalcolm/gcc-refactoring-scripts
776 revision 58bb219cc090b2f4516a9297d868c245495ee622
777
778 * c-gimplify.c (c_genericize): Update for conversion of symtab types
779 to a true class hierarchy.
780 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
781
d570872d
RS
7822013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
783
784 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
785
98906124
JL
7862013-10-26 Jeff Law <law@redhat.com>
787
788 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
789 * c-family/c.opt: Ignore and warn for mudflap options.
790
d73749df 7912013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
792
793 PR other/33426
794 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
795 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
796
3f04b1bb
JM
7972013-10-23 Jason Merrill <jason@redhat.com>
798
799 * c-format.c (gcc_cxxdiag_char_table): Add %X.
800
acf0174b
JJ
8012013-10-11 Jakub Jelinek <jakub@redhat.com>
802
acd15a28
JJ
803 * c-common.h (omp_clause_mask::operator !=): New method.
804 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
805 instead of if (mask & something) tests everywhere.
806
acf0174b
JJ
807 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
808 201307 instead of 201107.
809 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
810 (c_common_attribute_table): Add "omp declare target" and
811 "omp declare simd" attributes.
812 (handle_omp_declare_target_attribute,
813 handle_omp_declare_simd_attribute): New functions.
814 * c-omp.c: Include c-pragma.h.
815 (c_finish_omp_taskgroup): New function.
816 (c_finish_omp_atomic): Add swapped argument, if true,
817 build the operation first with rhs, lhs arguments and use NOP_EXPR
818 build_modify_expr.
819 (c_finish_omp_for): Add code argument, pass it down to make_code.
820 (c_omp_split_clauses): New function.
821 (c_split_parallel_clauses): Removed.
822 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
823 c_omp_declare_simd_clauses_to_decls): New functions.
824 * c-common.h (omp_clause_mask): New type.
825 (OMP_CLAUSE_MASK_1): Define.
826 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
827 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
828 omp_clause_mask::operator |, omp_clause_mask::operator &,
829 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
830 omp_clause_mask::operator ==): New methods.
831 (enum c_omp_clause_split): New.
832 (c_finish_omp_taskgroup): New prototype.
833 (c_finish_omp_atomic): Add swapped argument.
834 (c_finish_omp_for): Add code argument.
835 (c_omp_split_clauses): New prototype.
836 (c_split_parallel_clauses): Removed.
837 (c_omp_declare_simd_clauses_to_numbers,
838 c_omp_declare_simd_clauses_to_decls): New prototypes.
839 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
840 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
841 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
842 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
843 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
844 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
845 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
846 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
847 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
848 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
849 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
850 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
851 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
852 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
853 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
854 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
855 PRAGMA_OMP_CLAUSE_UNIFORM.
856
826cacfe
MG
8572013-10-09 Marc Glisse <marc.glisse@inria.fr>
858
859 PR tree-optimization/20318
860 * c-common.c (handle_returns_nonnull_attribute): New function.
861 (c_common_attribute_table): Add returns_nonnull.
862
2284b034
MG
8632013-10-03 Marc Glisse <marc.glisse@inria.fr>
864
865 PR c++/19476
866 * c.opt (fcheck-new): Move to common.opt.
867
b56e9788
MP
8682013-09-25 Marek Polacek <polacek@redhat.com>
869 Jakub Jelinek <jakub@redhat.com>
870
871 PR sanitizer/58413
872 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
873 an expression if we can prove it is correct.
874 (ubsan_instrument_division): Likewise. Remove unnecessary
875 check.
876
ce6923c5
MP
8772013-09-18 Marek Polacek <polacek@redhat.com>
878
879 PR sanitizer/58411
880 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
881 Declare it.
882 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
883
fb5610fb
IS
8842013-09-14 Iain Sandoe <iain@codesourcery.com>
885
886 PR target/48094
887 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
888 fobjc-gc, freplace-objc-classes): Accept for LTO.
889
88b0e79e
JC
8902013-09-13 Jacek Caban <jacek@codeweavers.com>
891
892 * c-target.def: New hook
893
c9b0866a
PC
8942013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
895
896 PR c++/43452
897 * c.opt (Wdelete-incomplete): Add.
898
0af94e6f
JR
8992013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
900
901 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
902 (vector_types_compatible_elements_p): New function.
903 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
904 declaration.
905 (vector_types_compatible_elements_p): Declare.
906
7c26172c
GDR
9072013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
908
909 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
910 a virtual member function.
911 (pp_simple_type_specifier): Remove.
912 (pp_c_type_specifier): Likewise.
913 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
914 Rename from pp_c_type_specifier. Adjust.
915 (c_pretty_printer::c_pretty_printer): Do not assign to
916 simple_type_specifier.
917
20059c8b
GDR
9182013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
919
920 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
921 member function.
922 (c_pretty_printer::storage_class_specifier): Likewise.
923 (c_pretty_printer::initializer): Likewise.
924 (pp_declaration): Remove.
925 (pp_declaration_specifiers): Likewise.
926 (pp_abstract_declarator): Likewise.
927 (pp_declarator): Likewise.
928 (pp_type_id): Likewise.
929 (pp_statement): Likewise.
930 (pp_constant): Likewise.
931 (pp_id_expression): Likewise.
932 (pp_primary_expression): Likewise.
933 (pp_unary_expression): Likewise.
934 (pp_multiplicative_expression): Likewise.
935 (pp_conditional_expression): Likewise.
936 (pp_assignment_expression): Likewise.
937 (pp_expression): Likewise.
938 (pp_c_type_id): Likewise.
939 (pp_c_storage_class_specifier): Likewise.
940 * c-pretty-print.c (pp_c_type_cast): Tidy.
941 (pp_c_pointer): Likewise.
942 (pp_c_type_specifier): Likewise.
943 (pp_c_parameter_type_list): Likewise.
944 (pp_c_function_definition): Likewise.
945 (pp_c_init_declarator): Likewise.
946 (pp_c_initializer_list): Likewise.
947 (pp_c_constructor_elts): Likewise.
948 (c_pretty_printer::direct_abstract_declarator): Likewise.
949 (c_pretty_printer::declaration_specifiers): Likewise.
950 (c_pretty_printer::primary_expression): Likewise.
951 (c_pretty_printer::postfix_expression): Likewise.
952 (c_pretty_printer::type_id): Rename from pp_c_type_id.
953 (c_pretty_printer::storage_class_specifier): Rename from
954 pp_c_storage_class_specifier.
955 (c_pretty_printer::initializer): Rename from pp_c_initializer.
956 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
957 storage_class_specifier, initializer, offset_list, flags.
958
de5a5fa1
MP
9592013-08-30 Marek Polacek <polacek@redhat.com>
960
961 * c-ubsan.c: New file.
962 * c-ubsan.h: New file.
963
8f0e4d72
GDR
9642013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
965
966 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
967 member function.
968 (c_pretty_printer::declaration_specifiers): Likewise.
969 (c_pretty_printer::declarator): Likewise.
970 (c_pretty_printer::abstract_declarator): Likewise.
971 (c_pretty_printer::direct_abstract_declarator): Likewise.
972 (c_pretty_printer::direct_declarator): Likewise.
973 (c_pretty_printer::function_specifier): Likewise.
974 (pp_declaration): Adjust.
975 (pp_declaration_specifiers): Likewise.
976 (pp_abstract_declarator): Likewise.
977 (pp_direct_declarator): Likewise.
978 (pp_function_specifier): Likewise.
979 (pp_direct_abstract_declarator): Remove as unused.
980 (pp_c_declaration): Remove.
981 (pp_c_declaration_specifiers): Likewise.
982 (pp_c_declarator): Likewise.
983 (pp_c_direct_declarator): Likewise.
984 (pp_c_function_specifier): Likewise.
985 (pp_c_direct_abstract_declarator): Likewise.
986 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
987 from pp_c_abstract_declarator. Adjust.
988 (c_pretty_printer::direct_abstract_declarator): Rename from
989 pp_c_direct_abstract_declarator. Adjust.
990 (c_pretty_printer::function_specifier): Rename from
991 pp_c_function_specifier. Adjust.
992 (c_pretty_printer::declaration_specifiers): Rename from
993 pp_c_declaration_specifiers. Adjust.
994 (c_pretty_printer::direct_declarator): Rename from
995 pp_c_direct_declarator. Adjust.
996 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
997 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
998 (c_pretty_printer::c_pretty_printer): Do not assign to
999 declaration, declaration_specifiers, declarator,
1000 direct_declarator, direct_abstract_declarator, function_specifier.
1001
00d34d3a
GDR
10022013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1003
1004 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1005 virtual member function.
1006 (c_pretty_printer::multiplicative_expression): Likewise.
1007 (c_pretty_printer::conditional_expression): Likewise.
1008 (c_pretty_printer::assignment_expression): Likewise.
1009 (c_pretty_printer::expression): Likewise.
1010 (pp_unary_expression): Adjust.
1011 (pp_multiplicative_expression): Likewise.
1012 (pp_assignment_expression): Likewise.
1013 (pp_conditional_expression): Likewise.
1014 (pp_expression): Likewise.
1015 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1016 from pp_c_unary_expression. Adjust.
1017 (c_pretty_printer::multiplicative_expression): Rename from
1018 pp_c_multiplicative_expression. Adjust.
1019 (c_pretty_printer::conditional_expression): Rename from
1020 pp_c_conditional_expression. Adjust.
1021 (c_pretty_printer::assignment_expression): Rename from
1022 pp_c_assignment_expression. Adjust.
1023 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1024 (c_pretty_printer::c_pretty_printer): Do not assign to
1025 unary_expression, multiplicative_expression,
1026 conditional_expression, expression.
1027
fb22178f
GDR
10282013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1029
1030 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1031 virtual member function.
1032 (pp_postfix_expression): Adjust.
1033 (pp_c_postfix_expression): Remove.
1034 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1035 from pp_c_postfix_expression. Adjust.
1036 (c_pretty_printer::c_pretty_printer): Do not assign to
1037 postfix_expression.
1038
7ecc2600
GDR
10392013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1040
1041 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1042 virtua member function.
1043 (pp_primary_expression): Adjust.
1044 (pp_c_primary_expression): Remove.
1045 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1046 from pp_c_primary_expression. Adjust.
1047 (pp_c_initializer_list): Use pp_primary_expression.
1048 (c_pretty_printer::c_pretty_printer): Do not assign to
1049 primary_expression.
1050
0691175f
GDR
10512013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1052
1053 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1054 * c-pretty-print.c (M_): Remove.
1055 (c_pretty_printer::translate_string): Define.
1056 (pp_c_type_specifier): Use it.
1057 (pp_c_primary_expression): Likewise.
1058 (pp_c_expression): Likewise.
1059
66dfe4c4
GDR
10602013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1061
1062 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1063 virtual function.
1064 (pp_c_id_expression): Remove.
1065 (pp_id_expression): Adjust.
1066 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1067 pp_c_id_expression. Adjust.
1068 (pp_c_postfix_expression): Use pp_id_expression.
1069 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1070
ca43e9d5
GDR
10712013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1072
1073 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1074 member function.
1075 (pp_constant): Adjust.
1076 (pp_c_constant): Remove.
1077 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1078 pp_c_constant. Adjust.
1079 (pp_c_constant)
1080 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1081 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1082
da6ca2b5
GDR
10832013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1084
1085 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1086 (c_pretty_printer::c_pretty_printer): Declare.
1087 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1088 c_pretty_printer_init. Adjust.
1089 (print_c_tree): Do not call c_pretty_printer_init.
1090 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1091
65a372f4
AC
10922013-08-09 Arnaud Charlet <charlet@adacore.com>
1093
1094 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1095
fd9b0f32
PC
10962013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1097
1098 PR c++/58080
1099 * c-common.c (pointer_int_sum): Add bool parameter.
1100 * c-common.h (pointer_int_sum): Adjust declaration.
1101
e0aec1e9
GDR
11022013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1103
1104 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1105 c_pretty_printer variable.
1106
b066401f
GDR
11072013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1108
1109 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1110 (pp_base): Remove.
1111 (pp_c_base): Likewise. Adjust users.
1112 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1113 (pp_c_whitespace): Do not call pp_base.
1114 (pp_c_left_paren): Likewise.
1115 (pp_c_right_paren): Likewise.
1116 (pp_c_left_brace): Likewise.
1117 (pp_c_right_brace): Likewise.
1118 (pp_c_left_bracket): Likewise.
1119 (pp_c_right_bracket): Likewise.
1120 (pp_c_dot): Likewise.
1121 (pp_c_ampersand): Likewise.
1122 (pp_c_star): Likewise.
1123 (pp_c_arrow): Likewise.
1124 (pp_c_semicolon): Likewise.
1125 (pp_c_complement): Likewise.
1126 (pp_c_exclamation): Likewise.
1127 (pp_c_direct_declarator): Likewise.
1128 (pp_c_ws_string): Likewise.
1129 (pp_c_identifier): Likewise.
1130 (pp_c_statement): Likewise.
1131 (print_c_tree): Likewise.
1132
65e5a578
ESR
11332013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1134
1135 PR c++/58072
1136 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1137 provide useful error strings.
1138
137a1a27
GDR
11392013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1140
1141 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1142 printer functions instead of pp_string or operators and punctuators.
1143 (dump_generic_ada_node): Likewise.
1144 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1145 (pp_c_relational_expression): Likewise.
1146 (pp_c_logical_or_expression): Likewise.
1147
07838b13
GDR
11482013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1149
1150 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1151 functions instead of pp_character.
1152 (pp_ada_tree_identifier): Likewise.
1153 (dump_ada_double_name): Likewise.
1154 (dump_ada_function_declaration): Likewise.
1155 (dump_ada_array_domains): Likewise.
1156 (dump_template_types): Likewise.
1157 (dump_generic_ada_node): Likewise.
1158 (print_ada_declaration): Likewise.
1159 (print_ada_struct_decl): Likewise.
1160 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1161
433cc7b0
TT
11622013-07-23 Tom Tromey <tromey@redhat.com>
1163
1164 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1165 * c-common.c (c_common_reswords): Add _Generic.
1166
688010ba
OB
11672013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1168
1169 * c-common.c: Fix typos.
1170 * c-common.h: Likewise.
1171
2a99e5e6
LL
11722013-07-13 Lubos Lunak <l.lunak@suse.cz>
1173
1174 PR c++/55203
1175 * c-common.c (c_common_attribute_table): Add warn_unused.
1176 (handle_warn_unused_attribute): New.
1177
c26302d5
JJ
11782013-07-10 Jakub Jelinek <jakub@redhat.com>
1179
1180 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1181 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1182
dfeadaa0
PC
11832013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1184
1185 PR c++/57869
1186 * c.opt: Add Wconditionally-supported.
1187
6a2fa4b2
GS
11882013-07-08 Graham Stott <graham.stott@btinternet.com>
1189
1190 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1191 unused variables l_length and l_node.
1192
ecdbd01a 11932013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1194
1195 PR c/57821
1196 * c-common.c (complete_array_type): Delay folding first index
1197 like other indices. When folding, check for index overflow.
1198
bedc293e
MG
11992013-06-27 Marc Glisse <marc.glisse@inria.fr>
1200
1201 PR c++/57509
1202 * c-common.h (c_build_vec_perm_expr): New complain argument.
1203 * c-common.c (c_build_vec_perm_expr): Likewise.
1204 Use save_expr also in C++.
1205
604b2bfc
GDR
12062013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1207
1208 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1209 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1210 * c-opts.c (c_common_post_options): Likewise.
1211
dfeadaa0 12122013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1213
1214 * array-notation-common.c (length_mismatch_in_expr): Changed the
1215 parameter type's from a dynamic array to a vec_tree. Also removed
1216 the size parameters.
1217 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1218 the change above.
1219
2ce86d2e
BI
12202013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1221
1222 * c-common.h (struct cilkplus_an_parts): New structure.
1223 (struct cilkplus_an_loop_parts): Likewise.
1224 (cilkplus_extract_an_triplets): New prototype.
1225 (fix_sec_implicit_args): Likewise.
1226 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1227 (fix_sec_implicit_args): Likewise.
604b2bfc 1228
07a6825b
BI
12292013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1230
1231 * array-notation-common.c (find_inv_trees): Removed an unwanted
1232 typecasting.
1233 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1234 enum rid to enum tree_code.
1235
08346abd
JH
12362013-06-11 Jan Hubicka <jh@suse.cz>
1237
1238 * c-common.c (handle_alias_ifunc_attribute): Do not set
1239 DECL_EXTERNAL for weakref variables.
1240 * c-pragma.c (handle_pragma_weak): Make sure aliases
1241 are not declared as external.
1242
d60f1706
BI
12432013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1244
1245 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1246 function from c/c-array-notation.c.
1247 (is_cilkplus_reduce_builtin): Likewise.
1248 (find_rank): Likewise.
1249 (extract_array_notation_exprs): Likewise.
1250 (replace_array_notations): Likewise.
1251 (find_inv_trees): Likewise.
1252 (replace_inv_trees): Likewise.
1253 (contains_array_notation_expr): Likewise.
1254 (find_correct_array_notation_type): Likewise.
1255 * c-common.h (struct inv_list): Moved this struct from the file
1256 c/c-array-notation.c and added a new field called additional tcodes.
1257 (length_mismatch_in_expr_p): New prototype.
1258 (is_cilkplus_reduce_builtin): Likewise.
1259 (find_rank): Likewise.
1260 (extract_array_notation_exprs): Likewise.
1261 (replace_array_notation): Likewise.
1262 (find_inv_trees): Likewise.
1263 (replace_inv_trees): Likewise.
1264 (find_correct_array_notation_type): Likewise.
dfeadaa0 1265
36536d79
BI
12662013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1267
1268 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1269 function array_notation_init_builtins is called.
1270 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1271 * c-common.def (ARRAY_NOTATION_REF): New tree.
1272 * c-common.h (build_array_notation_expr): New function declaration.
1273 (build_array_notation_ref): Likewise.
1274 (extract_sec_implicit_index_arg): New extern declaration.
1275 (is_sec_implicit_index_fn): Likewise.
1276 (ARRAY_NOTATION_CHECK): New define.
1277 (ARRAY_NOTATION_ARRAY): Likewise.
1278 (ARRAY_NOTATION_START): Likewise.
1279 (ARRAY_NOTATION_LENGTH): Likewise.
1280 (ARRAY_NOTATION_STRIDE): Likewise.
1281 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1282 ARRAY_NOTATION_REF.
1283 (pp_c_expression): Likewise.
1284 * c.opt (flag_enable_cilkplus): New flag.
1285 * array-notation-common.c: New file.
1286
f7716d57
JJ
12872013-05-14 Jakub Jelinek <jakub@redhat.com>
1288
1289 PR c++/57274
1290 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1291
a5e0cd1d
MG
12922013-05-10 Marc Glisse <marc.glisse@inria.fr>
1293
1294 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1295 vectors.
1296
f6bc1c4a
HS
12972013-05-07 Han Shen <shenhan@google.com>
1298
1299 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1300
3f12f6e9
SKS
13012013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1302
1303 * c-common.c (check_user_alignment): Emit error for negative values.
1304
61949153
PC
13052013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1306
1307 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1308
e93e18e9
PC
13092013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1310
1311 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1312 __GXX_EXPERIMENTAL_CXX1Y__.
1313
44d90fe1
PC
13142013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1315 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1316
1317 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1318 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1319 to simply use OPT_Wpointer_arith.
1320 (c_sizeof_or_alignof_type): Likewise.
1321
13f39b2e
PC
13222013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1323
1324 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1325
4b84d650
JJ
13262013-04-12 Jakub Jelinek <jakub@redhat.com>
1327
1328 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1329 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1330 specifiers.
1331
fb037b5d
SB
13322013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1333
1334 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1335
4e856798
PC
13362013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1337
1338 * c-common.c (pointer_int_sum): Remove dead code.
1339
4b1baac8
RS
13402013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1341
1342 PR middle-end/56524
1343 * c-common.c (handle_optimize_attribute): Don't call
1344 save_optabs_if_changed.
1345
0b50e654
JJ
13462013-03-05 Jakub Jelinek <jakub@redhat.com>
1347
1348 PR middle-end/56461
1349 * c-pch.c (pch_init): Free target_validity at the end.
1350
48c41403
JJ
13512013-03-04 Jakub Jelinek <jakub@redhat.com>
1352
1353 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1354
e664c61c
KS
13552013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1356 Jakub Jelinek <jakub@redhat.com>
1357
1358 PR sanitizer/56454
1359 * c-common.c (handle_no_sanitize_address_attribute): New function.
1360 (c_common_attribute_table): Add no_sanitize_address attribute.
1361 (handle_no_address_safety_analysis_attribute): Add
1362 no_sanitize_address attribute, not no_address_safety_analysis
1363 attribute.
1364
a475fd3d 13652013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1366
1367 PR target/52555
1368 * c-common.c (handle_optimize_attribute): Call
1369 save_optabs_if_changed.
1370
f6007d99
JJ
13712013-02-18 Jakub Jelinek <jakub@redhat.com>
1372 Steven Bosscher <steven@gcc.gnu.org>
1373
1374 PR pch/54117
1375 * c-opts.c (c_common_post_options): If debug info is enabled
1376 and non-dwarf*, refuse to load PCH files and when writing PCH
1377 file warn.
1378
cf35e2b1
JJ
13792013-02-05 Jakub Jelinek <jakub@redhat.com>
1380
1381 PR middle-end/56167
1382 * c-common.c (handle_error_attribute): Fix condition.
1383
32887460
JJ
13842013-01-30 Jakub Jelinek <jakub@redhat.com>
1385
1386 PR c++/55742
1387 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1388
5af057d8
JM
13892013-01-18 Jason Merrill <jason@redhat.com>
1390
1391 PR target/54908
1392 * c.opt (-fextern-tls-init): New.
1393 * c-opts.c (c_common_post_options): Handle it.
1394
cc83c823
JJ
13952013-01-09 Jakub Jelinek <jakub@redhat.com>
1396
1397 PR c/48418
1398 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1399 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1400 and is either negative or bigger or equal to type precision
1401 of the first operand.
1402
a859517f
MP
14032012-12-03 Marek Polacek <polacek@redhat.com>
1404
1405 PR c/55570
1406 * c-common.c (check_user_alignment): Swap order of tests,
1407 check TREE_CODE first.
1408
2d7aa578
ESR
14092012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1410
1411 PR c++/52654
1412 * c-common.h (overflow_type): New enum.
1413 (build_userdef_literal): Add overflow_type argument.
1414 (tree_userdef_literal): Add overflow_type.
1415 (USERDEF_LITERAL_OVERFLOW): New access macro.
1416 * c-common.c (build_userdef_literal): Add overflow_type
1417 argument.
1418 * c-lex.c (c_lex_with_flags): Add overflow_type to
1419 build_userdef_literal calls.
1420 (interpret_integer, interpret_float): Add overflow_type argument.
1421
cc3c4f62
RB
14222012-11-28 Richard Biener <rguenther@suse.de>
1423
1424 PR c/35634
1425 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1426 here and use a type with proper overflow behavior for types that would
1427 need to be promoted for the arithmetic.
1428
77bc5132
JJ
14292012-11-23 Jakub Jelinek <jakub@redhat.com>
1430
1431 PR sanitizer/55435
1432 * c-common.c (handle_no_address_safety_analysis_attribute): New
1433 function.
1434 (c_common_attribute_table): Add no_address_safety_analysis.
1435
5dc99c46
SB
14362012-11-16 Simon Baldwin <simonb@google.com>
1437
1438 * c.opt: Add f[no-]canonical-system-headers.
1439 * c-opts.c (c_common_handle_option): Handle
1440 OPT_fcanonical_system_headers.
1441
a4a0016d
ESR
14422012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1443
1444 PR c++/54413
1445 * c-opts.c (c_common_handle_option): Set new flags.
1446 * c.opt: Describe new flags.
1447
7dbb85a7
JM
14482012-11-09 Jason Merrill <jason@redhat.com>
1449
1450 * c.opt (Wabi-tag): New.
1451
ad7bac31
AK
14522012-11-09 Andi Kleen <ak@linux.intel.com>
1453
1454 PR 55139
1455 * c-common.c (get_atomic_generic_size): Mask with
1456 MEMMODEL_MASK
1457
7332899a
MLI
14582012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1459
1460 PR c/53063
1461 * c.opt (Wformat): Make it Alias Wformat=1.
1462 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1463 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1464 LangEnabledBy.
1465 (Wformat=): RejectNegative. Use LangEnabledBy.
1466 (Wnonnull): Use LangEnabledBy.
1467 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1468 * c-format.c (set_Wformat): Delete.
1469 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1470 (maybe_read_dollar_number): Likewise.
1471 (avoid_dollar_number): Likewise.
1472 (finish_dollar_format_checking): Likewise.
1473 (check_format_info): Likewise.
1474 (check_format_info_main): Likewise.
1475 (check_format_types): Likewise.
1476 (format_type_warning): Likewise.
1477 * c-common.c (int): Likewise.
1478 (check_function_sentinel): Likewise.
1479 * c-common.h (warn_format,set_Wformat): Do not declare here.
1480
34a180a6
MLI
14812012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1482
1483 PR c/53063
1484 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1485 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1486 Use LangEnabledBy.
1487 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1488 common.opt.
1489 (Wvariadic-macros): Init(1).
1490 * c-opts.c (c_common_handle_option): Do not handle them
1491 explicitly.
1492 (c_common_post_options): Likewise.
1493 (sanitize_cpp_opts): warn_unused_macros is now
1494 cpp_warn_unused_macros.
1495 (push_command_line_include): Likewise.
1496 * c-common.c (warn_unknown_pragmas): Do not define.
1497 * c-common.h (warn_unknown_pragmas): Do not declare.
1498
3f46d6a5
MLI
14992012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1500
1501 PR c/51294
1502 * c-common.c (conversion_warning): Handle conditional expressions.
1503
880661a4
JW
15042012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1505
1506 PR c++/54930
1507 * c.opt (Wreturn_local_addr): Define new option.
1508
4514a96b
JM
15092012-10-25 Jason Merrill <jason@redhat.com>
1510
f14edc1a
JM
1511 * c.opt (Wvirtual-move-assign): New.
1512
4514a96b
JM
1513 * c.opt (Winherited-variadic-ctor): New.
1514
93100c6b
MG
15152012-10-25 Marc Glisse <marc.glisse@inria.fr>
1516
1517 PR c++/54427
1518 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1519
1efcb8c6
JM
15202012-10-23 Joseph Myers <joseph@codesourcery.com>
1521
1522 * c-common.h (pch_cpp_save_state): Declare.
1523 * c-target.def (c_preinclude): New hook.
1524 * c-opts.c (done_preinclude): New.
1525 (push_command_line_include): Handle default preincluded header.
1526 (cb_file_change): Call pch_cpp_save_state when calling
1527 push_command_line_include.
1528 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1529 (pch_cpp_save_state): New.
1530 (pch_init): Call pch_cpp_save_state conditionally, instead of
1531 calling cpp_save_state.
1532
4a0ae68e
MLI
15332012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1534
1535 PR c/53063
1536 PR c/40989
1537 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1538 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1539 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1540 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1541 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1542 * c-opts.c (c_common_handle_option): Remove explicit handling from
1543 here.
1544 (c_common_post_options): Likewise.
1545
67e4210b
EB
15462012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1547
1548 * c-ada-spec.c (LOCATION_COL): Delete.
1549 (compare_location): New function.
1550 (compare_node): Use it.
1551 (compare_comment): Likewise.
1552
65d4f2cd
MLI
15532012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1554
1555 PR c/53063
1556 PR c/40989
1557 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1558 * c-opts.c (c_common_handle_option): Do not set them here. Add
1559 comment.
1560 (c_common_post_options): Likewise.
1561
909881cb
EB
15622012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1563
1564 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1565 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1566 Remove POINTER_TYPE handling, add large unsigned handling and use
1567 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1568
3a785c97
JJ
15692012-10-12 Jakub Jelinek <jakub@redhat.com>
1570
1571 PR c/54381
1572 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1573 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1574 locs and array of 3 trees instead of just single loc and single
1575 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1576 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1577 For *cmp* builtins that take two sources strings report warnings
1578 about first and second source, not about destination and source.
1579
5e54f81d
MG
15802012-10-12 Marc Glisse <marc.glisse@inria.fr>
1581
1582 PR c++/53055
1583 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1584
f5b02f1e
EB
15852012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1586
1587 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1588 declaring something coming from another file.
1589
b46dbc6c
AC
15902012-10-10 Arnaud Charlet <charlet@adacore.com>
1591
f5b02f1e 1592 PR ada/54845
b46dbc6c
AC
1593 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1594
5d9de0d0
PC
15952012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1596
1597 PR c++/54194
1598 * c-common.c (warn_about_parentheses): Add location_t parameter;
1599 use EXPR_LOC_OR_LOC.
1600 * c-common.h: Update declaration.
1601
a212e43f
MG
16022012-10-09 Marc Glisse <marc.glisse@inria.fr>
1603
1604 PR c++/54427
1605 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1606 more operations. Make error messages optional.
1607 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1608 (scalar_to_vector): Declare.
1609
b1db7f91
JM
16102012-10-08 Jason Merrill <jason@redhat.com>
1611
1612 * c-common.c (c_common_reswords): Add thread_local.
1613
e28d52cf
DS
16142012-10-08 Dodji Seketeli <dodji@redhat.com>
1615
1616 PR c++/53528 C++11 attribute support
1617 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1618 new functions.
1619 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1620 static function.
1621 (handle_aligned_attribute): In choose strictest alignment
1622 among many. Use new check_cxx_fundamental_alignment_constraints.
1623 (handle_transparent_union_attribute): In c++11 attribute syntax,
1624 don't look through typedefs.
1625
3b78de56
AC
16262012-10-04 Arnaud Charlet <charlet@adacore.com>
1627
1628 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1629 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1630 out of dumpfile.h.
1631
6040bb5f
DC
16322012-09-25 Dehao Chen <dehao@google.com>
1633
1634 PR middle-end/54645
3b78de56 1635 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1636 map when read in the pch.
1637
0b07a57e
AC
16382012-09-18 Arnaud Charlet <charlet@adacore.com>
1639
1640 * c-ada-spec.c: Style fixes.
1641
da5182be
TQ
16422012-09-18 Thomas Quinot <quinot@adacore.com>
1643
1644 * c.opt (-fada-spec-parent): Define new command line switch.
1645 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1646 is specified, generate binding spec as a child of the specified unit.
1647
0ccb505d
PC
16482012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1649 Manuel López-Ibáñez <manu@gcc.gnu.org>
1650
1651 PR c++/53210
1652 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1653
c583af79
AC
16542012-08-23 Arnaud Charlet <charlet@adacore.com>
1655
1656 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1657 for pointers, and add missing Convention C pragma.
1658 (print_ada_struct_decl): Add missing aliased keyword.
1659 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1660
1a4049e7
JJ
16612012-08-17 Jakub Jelinek <jakub@redhat.com>
1662
1663 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1664 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1665 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1666 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1667 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1668
70b5e7dc
RG
16692012-08-10 Richard Guenther <rguenther@suse.de>
1670
1671 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1672
f8923f7e
SB
16732012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1674
1675 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1676 instead of separate pp_newline and pp_flush.
1677 (print_c_tree): Likewise.
1678
e45abe1f
RH
16792012-07-26 Richard Henderson <rth@redhat.com>
1680
1681 * c-common.c (handle_hot_attribute): Allow labels.
1682 (handle_cold_attribute): Likewise.
1683
332f1d24
JJ
16842012-07-20 Jakub Jelinek <jakub@redhat.com>
1685
1686 PR c++/28656
1687 * c-common.c (check_function_nonnull): Handle multiple nonnull
1688 attributes properly.
1689
7ee2468b
SB
16902012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1691
1692 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1693 * c-ada-spec.c: Likewise.
1694 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1695
ee7b28eb
SB
16962012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1697
1698 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1699 Remove code conditional on it.
1700
6bdf3519
SB
17012012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1702
1703 * c-gimplify.c: Do not include basic-block.h.
1704 * c-common.c: Do not include linfuncs.h.
1705
532aafad
SB
17062012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1707
1708 * c-common.h: Include tree.h.
1709
8d0d1915
JM
17102012-07-02 Jason Merrill <jason@redhat.com>
1711
1712 PR c++/53524
1713 * c-common.c (get_priority): Call default_conversion.
1714
fbc873ad
UB
17152012-07-01 Uros Bizjak <ubizjak@gmail.com>
1716
1717 * c-pch.c (c_common_write_pch): Remove unused variables.
1718
d4a10d0a
SB
17192012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1720
1721 * cppspec.c: Moved from gcc/ to here.
1722
6f3a2e23
KT
17232012-06-27 Kai Tietz <ktietz@redhat.com>
1724
1725 PR preprocessor/37215
1726 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1727
8ca92d04
SB
17282012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1729
1730 * c-common.h (c_common_print_pch_checksum): Remove.
1731 * c-pch.c: Do not include output.h.
1732 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1733 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1734 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1735 (struct c_pch_header): Remove.
1736 (get_ident): Update gpch version.
1737 (pch_init): Do not print executable_checksum to asm_out_file.
1738 Do not fail if there is no asm_out_file to read back from. Set
1739 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1740 (c_common_write_pch): Verify that nothing was written to asm_out_file
1741 since pch_init was called. Do not write a c_pch_header, and do not
1742 copy from asm_out_file to the PCH.
1743 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1744 the content of asm_out_file from the PCH.
1745 (c_common_print_pch_checksum): Remove.
1746 * c-opts.c (c_common_init): Print out executable_checksum directly.
1747
70f42967
SB
17482012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1749
1750 * c-target.def (objc_declare_unresolved_class_reference,
1751 objc_declare_class_definition): Add new hooks.
1752
a8781821
SB
17532012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1754
1755 * c-lex.c: Do not include output.h.
1756 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1757 Remove uses of ASM_OUTPUT_IDENT.
1758
9e1a8dd1
RR
17592012-06-15 Marc Glisse <marc.glisse@inria.fr>
1760
1761 PR c++/51033
1762 * c-common.h (c_build_vec_perm_expr): Move decl here.
1763 * c-common.c (c_build_vec_perm_expr): Move definition
1764 here.
1765
6f07a821
SB
17662012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1767
1768 * c.opt (fconserve-space): Turn into a no-op.
1769
9faeb493 17702012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1771
1772 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1773 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1774 both the start and end of the function.
1775
a4b7d13c
SB
17762012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1777
1778 * c-common.c: Do not include output.h.
1779 * c-pragma.c: Likewise.
1780
c265f413
SA
17812012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1782
1783 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1784 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1785 (lang_decl_name): Handle namespace decls.
1786
be7a421e
SB
17872012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1788
1789 * c-ada-spec.c: Do not include output.h.
1790 * c-semantics.c: Likewise.
1791
65de6659
JM
17922012-05-29 Joseph Myers <joseph@codesourcery.com>
1793
1794 * c-common.c: Fix typo.
1795
ca5f4331
MM
17962012-05-29 Michael Matz <matz@suse.de>
1797
1798 * c-common.h (c_expand_decl): Remove prototype.
1799
4f7f7aca
MLI
18002012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1801
1802 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1803 * c-opts.c (c_common_handle_option): Remove code handling
1804 warn_missing_braces.
1805
4a792f9b
PC
18062012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1807
1808 PR c++/25137
1809 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1810 -Wmissing_braces.
1811
650dc14a
DS
18122012-05-22 Dodji Seketeli <dodji@redhat.com>
1813
1814 PR c++/53322
1815 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1816
9b095bf1
MLI
18172012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1818
1819 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1820 * c-opts.c (c_common_handle_option): Do not handle explicitly
1821 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1822
0b2c4be5
DS
18232012-05-16 Dodji Seketeli <dodji@redhat.com>
1824
1825 PR preprocessor/7263
1826 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1827 to cpp_classify_number. For diagnostics, use the precise location
1828 instead of the global input_location.
1829
a1bde5af
PC
18302012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1831
d02924ef 1832 PR c++/11856
a1bde5af
PC
1833 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1834
d1ede5f4
BS
18352012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1836
a1bde5af 1837 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1838
f2bc201f
MLI
18392012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1840
1841 PR 53063
1842 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1843 Wreorder): Use LangEnabledBy.
1844 * c-opts.c (c_common_handle_option): Do not enable them
1845 explicitly. Call lang-specific generated functions.
1846 (c_common_post_options): Do not set them here.
1847
95744782
MLI
18482012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1849
1850 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1851 Wmissing-field-initializers,Wmissing-parameter-type,
1852 Wold-style-declaration,Woverride-init): Use EnabledBy.
1853 * c-opts.c (c_common_post_options): Do not set here explicitly.
1854
7d5a5747
MLI
18552012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1856
1857 PR 53063
1858 * c-opts.c (c_common_handle_option): Use handle_generated_option
1859 to enable sub-options.
1860
5a3c9cf2
PC
18612012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1862
1863 PR c++/53158
1864 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1865
3ac8781c
RG
18662012-05-10 Richard Guenther <rguenther@suse.de>
1867
1868 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1869 adjust commentary about TYPE_IS_SIZETYPE types.
1870
1e537948
MLI
18712012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1872
1873 PR c++/53261
1874 * c-common.c (warn_logical_operator): Check that argument of
1875 integer_zerop is not NULL.
1876
f2c4a785
MLI
18772012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1878
1879 PR c/43772
1880 * c-common.c (warn_logical_operator): Do not warn if either side
1881 is already true or false.
1882
50f305ca
MLI
18832012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1884
1885 PR c/51712
1886 * c-common.c (expr_original_type): New.
1887 (shorten_compare): Do not warn for enumeration types.
1888
0c3641b0
MLI
18892012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1890
1891 * c.opt (fpermissive): Add Var(flag_permissive).
1892
7edaa4d2
MG
18932012-04-30 Marc Glisse <marc.glisse@inria.fr>
1894
1895 PR c++/51033
1896 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1897 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1898
b9c8da34
DS
18992012-04-30 Dodji Seketeli <dodji@redhat.com>
1900
1901 Add -Wvarargs option
1902 * c.opt (Wvarargs): Define new option.
1903
e6c69da0
MLI
19042012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1905
1906 * c-common.c (check_function_arguments): Replace
1907 Wmissing-format-attribute with Wsuggest-attribute=format.
1908
90137d8f
MLI
19092012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1910
1911 * c.opt (Wsuggest-attribute=format): New. Alias of
1912 Wmissing-format-attribute.
1913 * c-format.c (decode_format_type): Replace
1914 Wmissing-format-attribute with Wsuggest-attribute=format.
1915 (check_function_format): Likewise.
1916
9faeb493 19172012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1918
1919 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1920 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1921 * c.opt: Add Wliteral-suffix.
1922
c1771a20
MLI
19232012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1924
1925 PR c/44774
1926 * c.opt (Wpedantic): New.
1927 (pedantic): Alias Wpedantic.
1928 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1929 (c_common_post_options): Likewise.
1930 (sanitize_cpp_opts): Likewise.
1931 * c-lex.c (interpret_float): Likewise.
1932 * c-format.c (check_format_types): Likewise.
1933 * c-common.c (pointer_int_sum): Likewise.
1934 (c_sizeof_or_alignof_type): Likewise.
1935 (c_add_case_label): Likewise.
1936 (c_do_switch_warnings): Likewise.
1937 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1938
04b391c1
JM
19392012-04-15 Jason Merrill <jason@redhat.com>
1940
1941 PR c++/52818
1942 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1943 (C_STD_NAME): Distinguish between C++98 and C++11.
1944
ac868f29
EB
19452012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1946
1947 PR target/52624
1948 * c-common.h (uint16_type_node): Rename into...
1949 (c_uint16_type_node): ...this.
1950 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1951 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1952
fd4116f4
MLI
19532012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1954
1955 * c-common.c (warn_if_unused_value): Move definition to here.
1956 * c-common.h (warn_if_unused_value): Move declaration to here.
1957
573ac65e
WB
19582012-03-23 William Bader <williambader@hotmail.com>
1959
1960 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1961
552b8185
JM
19622012-03-20 Jason Merrill <jason@redhat.com>
1963
1964 * c-common.h (enum cxx_dialect): Add cxx1y.
1965 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1966 test.
1967 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1968 * c-opts.c (c_common_post_options): Likewise.
1969 (set_std_cxx1y): New.
1970 (c_common_handle_option): Call it.
1971 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1972
04398fa8
PC
19732012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1974
1975 PR c++/14710
1976 * c.opt ([Wuseless-cast]): Add.
1977
d2a12ae7
RG
19782012-03-16 Richard Guenther <rguenther@suse.de>
1979
1980 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1981
a12bf402
MLI
19822012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1983
1984 PR c++/44783
1985 * c.opt (ftemplate-backtrace-limit) Add.
1986
5c30094f
RO
19872012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1988
1989 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1990 handling.
1991 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1992 (init_pragma): Don't register extern_prefix.
1993
21fa2faf
RG
19942012-03-12 Richard Guenther <rguenther@suse.de>
1995
1996 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1997 (builtin_type_for_size): Likewise.
1998
e3793c6f
JJ
19992012-02-13 Jakub Jelinek <jakub@redhat.com>
2000
2001 PR c++/52215
2002 * c-common.c (sync_resolve_params): Don't decide whether to convert
2003 or not based on TYPE_SIZE comparison, convert whenever arg_type
2004 is unsigned INTEGER_TYPE.
2005
93286335
PC
20062012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2007
2008 PR c/52118
2009 * c.opt ([Wunused-local-typedefs]): Fix description.
2010
7a421706
MS
20112012-01-24 Mike Stump <mikestump@comcast.net>
2012
2013 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2014 exactly.
2015
ba9b1f11
RG
20162012-01-18 Richard Guenther <rguenther@suse.de>
2017
2018 * c-opts.c (c_common_post_options): Reset LTO flags if
2019 we are about to generate a PCH.
2020
465406be
PC
20212012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2022
2023 PR c++/51777
2024 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2025 use pp_unsigned_wide_integer.
2026
aee15221
RG
20272012-01-10 Richard Guenther <rguenther@suse.de>
2028
2029 PR middle-end/51806
2030 * c-opts.c (c_common_handle_option): Move -Werror handling
2031 to language independent code.
2032
5720c0dc
RG
20332012-01-05 Richard Guenther <rguenther@suse.de>
2034
2035 PR middle-end/51764
2036 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2037 from common.opt.
2038
73ac190a
PC
20392011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2040
2041 PR c++/51316
2042 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2043 of array types with an unknown bound.
2044
48b0b196
JM
20452011-12-20 Joseph Myers <joseph@codesourcery.com>
2046
2047 * c-common.c (flag_isoc99): Update comment to refer to C11.
2048 (flag_isoc1x): Change to flag_isoc11.
2049 * c-common.h (flag_isoc99): Update comment to refer to C11.
2050 (flag_isoc1x): Change to flag_isoc11.
2051 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2052 C11.
2053 * c-opts.c (set_std_c1x): Change to set_std_c11.
2054 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2055 Call set_std_c11.
2056 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2057 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2058 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2059 standard.
2060 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2061 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2062 (std=gnu1x): Make alias of std=gnu11.
2063
d58d6eb5
JM
20642011-12-19 Jason Merrill <jason@redhat.com>
2065
2066 PR c++/51228
2067 * c-common.c (handle_transparent_union_attribute): Check the first
2068 field if the type is complete.
2069
b3908fcc
JW
20702011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2071
2072 PR libstdc++/51365
2073 * c-common.c (RID_IS_FINAL): Add.
2074 * c-common.h (RID_IS_FINAL): Add.
2075
fea3ca91
IS
20762011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2077
2078 * c.opt (fgnu-runtime): Provide full description.
2079 (fnext-runtime): Likewise.
2080 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2081
62bad7cd
AM
20822011-11-28 Andrew MacLeod <amacleod@redhat.com>
2083
2084 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2085 predefines in one place. Add LOCK_FREE predefines.
2086 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2087 new func.
2088
c466c4ff
AM
20892011-11-24 Andrew MacLeod <amacleod@redhat.com>
2090
2091 PR c/51256
9faeb493 2092 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2093 conditions
9faeb493
UB
2094 (resolve_overloaded_atomic_exchange,
2095 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2096 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2097 error_mark_node for error conditions.
9faeb493 2098
a5952633
RG
20992011-11-08 Richard Guenther <rguenther@suse.de>
2100
2101 PR middle-end/51010
2102 c-family/
2103
0a35513e
AH
21042011-11-07 Richard Henderson <rth@redhat.com>
2105 Aldy Hernandez <aldyh@redhat.com>
2106 Torvald Riegel <triegel@redhat.com>
2107
2108 Merged from transactional-memory.
2109
2110 * c-common.c (handle_tm_wrap_attribute,
2111 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2112 (struct c_common_reswords): Added __transaction* keywords.
2113 (struct c_common_attribute_table): Added transaction* and tm_regparm
2114 attributes.
2115 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2116 masks.
2117 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2118 find_tm_attribute): Declare.
2119
6d87092d
JM
21202011-11-07 Jason Merrill <jason@redhat.com>
2121
2122 PR c++/35688
2123 * c-common.c, c-common.h: Revert yesterday's changes.
2124
8e7860a1
JM
21252011-11-06 Jason Merrill <jason@redhat.com>
2126
2127 PR c++/35688
2128 * c-common.c (decl_has_visibility_attr): Split out from...
2129 (c_determine_visibility): ...here.
2130 * c-common.h: Declare it.
2131
d19fa6b5
JM
21322011-11-06 Joseph Myers <joseph@codesourcery.com>
2133
2134 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2135 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2136 type.
2137 (check_user_alignment): New. Split out of
2138 handle_aligned_attribute. Disallow integer constants with
2139 noninteger types. Conditionally allow zero.
2140 (handle_aligned_attribute): Use check_user_alignment.
2141 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2142
86951993
AM
21432011-11-06 Andrew MacLeod <amacleod@redhat.com>
2144 Richard Henderson <rth@redhat.com>
2145
2146 Merged from cxx-mem-model.
2147
2148 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2149 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2150 parameters that are the same type size.
2151 (get_atomic_generic_size): New. Find size of generic
2152 atomic function parameters and do typechecking.
2153 (add_atomic_size_parameter): New. Insert size into parameter list.
2154 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2155 either __atomic_exchange_n or external library call.
9faeb493 2156 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2157 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2158 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2159 __atomic_load_n or an external library call.
2160 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2161 __atomic_store_n or an external library call.
2162 (resolve_overloaded_builtin): Handle new __atomic builtins.
2163
cf9e9959
EB
21642011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2165
2166 PR c++/50608
2167 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2168 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2169 <INDIRECT_REF>: Return the argument.
2170 <ARRAY_REF>: Remove special code for negative offset.
2171 Call fold_build_pointer_plus instead of size_binop.
2172 (fold_offsetof): Remove STOP_REF argument and adjust.
2173 * c-common.h (fold_offsetof_1): Declare.
2174 (fold_offsetof): Remove STOP_REF argument.
2175
25339f10
JM
21762011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2177
2178 PR c++/50810
2179 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2180 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2181 Wnarrowing for C++0x and C++98.
2182 * c.opt ([Wnarrowing]): Update.
2183
89401152
PC
21842011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2185
2186 PR c++/44277
2187 * c.opt: Add Wzero-as-null-pointer-constant.
2188
97e3ad20
JM
21892011-10-31 Jason Merrill <jason@redhat.com>
2190
15694fdd
JM
2191 * c.opt (-fdeduce-init-list): Off by default.
2192
97e3ad20
JM
2193 PR c++/50920
2194 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2195 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2196 and -Wc++11-compat.
2197 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2198
fb9120e3
RAV
21992011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2200
2201 PR c++/30066
2202 * c.opt (fvisibility-inlines-hidden): Description change.
2203
3ce4f9e4
ESR
22042011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2205
2206 Implement C++11 user-defined literals.
2207 * c-common.c (build_userdef_literal): New.
2208 * c-common.def: New tree code.
2209 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2210 * c-lex.c (interpret_float): Add suffix parm.
2211 (c_lex_with_flags): Build literal tokens.
2212
5f53c243
PC
22132011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2214
2215 PR c++/50841
2216 Revert:
2217 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2218
2219 PR c++/50810
2220 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2221 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2222 Wnarrowing for C++0x and C++98.
2223 * c.opt ([Wnarrowing]): Update.
2224
263734e1
PC
22252011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2226
2227 PR c++/50810
2228 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2229 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2230 Wnarrowing for C++0x and C++98.
2231 * c.opt ([Wnarrowing]): Update.
2232
d2e312d7
PC
22332011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2234
2235 PR c++/45385
2236 * c-common.c (conversion_warning): Remove code looking for
2237 artificial operands.
2238
d17687f6
DS
22392011-10-18 Dodji Seketeli <dodji@redhat.com>
2240
2241 PR bootstrap/50760
2242 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2243 !NO_IMPLICIT_EXTERN_C.
d17687f6 2244
fc8396e9
PC
22452011-10-17 Michael Spertus <mike_spertus@symantec.com>
2246
2247 * c-common.c (c_common_reswords): Add __bases,
2248 __direct_bases.
2249 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2250
22512011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2252
2253 PR c++/50757
2254 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2255
847e697a
TT
22562011-10-15 Tom Tromey <tromey@redhat.com>
2257 Dodji Seketeli <dodji@redhat.com>
2258
2259 * c.opt (fdebug-cpp): New option.
2260 * c-opts.c (c_common_handle_option): Handle the option.
2261 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2262 output stream in parameter. Factorized from ...
2263 (maybe_print_line): ... this. Dump location debug information when
2264 -fdebug-cpp is in effect.
2265 (print_line_1): New static function. Takes an output stream in
2266 parameter. Factorized from ...
2267 (print_line): ... here. Dump location information when -fdebug-cpp
2268 is in effect.
2269 (scan_translation_unit): Dump location information when
2270 -fdebug-cpp is in effect.
2271
92582b75
TT
22722011-10-15 Tom Tromey <tromey@redhat.com>
2273 Dodji Seketeli <dodji@redhat.com>
2274
2275 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2276 without argument.
2277 * c-opts.c (c_common_handle_option)<case
2278 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2279 cases. Handle -ftrack-macro-expansion with and without argument.
2280
46427374
TT
22812011-10-15 Tom Tromey <tromey@redhat.com>
2282 Dodji Seketeli <dodji@redhat.com>
2283
2284 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2285 (print_line, cb_define, do_line_change): Adjust to avoid touching
2286 the internals of struct line_map. Use the public API instead.
2287 * c-pch.c (c_common_read_pch): Likewise.
2288 * c-lex.c (fe_file_change): Likewise.
2289
fc8396e9
PC
22902011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2291
2292 PR c++/17212
2293 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2294
22952011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2296
2297 PR c++/33067
2298 * c-pretty-print.c (pp_c_floating_constant): Output
2299 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2300
e79983f4
MM
23012011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2302
2303 * c-common.c (def_builtin_1): Delete old interface with two
2304 parallel arrays to hold standard builtin declarations, and replace
2305 it with a function based interface that can support creating
2306 builtins on the fly in the future. Change all uses, and poison
2307 the old names. Make sure 0 is not a legitimate builtin index.
2308 * c-omp.c (c_finish_omp_barrier): Ditto.
2309 (c_finish_omp_taskwait): Ditto.
2310 (c_finish_omp_flush): Ditto.
2311
6637388f
TG
23122011-10-11 Tristan Gingold <gingold@adacore.com>
2313
2314 * c.opt: (fallow-parameterless-variadic-functions): New.
2315
3797cb21
DS
23162011-09-08 Dodji Seketeli <dodji@redhat.com>
2317
2318 PR c++/33255 - Support -Wunused-local-typedefs warning
2319 * c-common.h (struct c_language_function::local_typedefs): New
2320 field.
9faeb493
UB
2321 (record_locally_defined_typedef, maybe_record_typedef_use)
2322 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2323 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2324 (maybe_record_typedef_use)
2325 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2326 * c.opt: Declare new -Wunused-local-typedefs flag.
2327
693ddb1b
EB
23282011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2329
2330 PR middle-end/50266
2331 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2332 computations.
2333
830c740f
RG
23342011-09-05 Richard Guenther <rguenther@suse.de>
2335
2336 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2337 of integer_minus_one_node for empty array upper bounds.
2338
892a371f
DS
23392011-08-28 Dodji Seketeli <dodji@redhat.com>
2340
2341 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2342 it's the first time it's being called on this main TU.
2343
0e3fdb48
RB
23442011-08-24 Richard Guenther <rguenther@suse.de>
2345
2346 PR c/49396
2347 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2348
23492011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2350
2351 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2352 defined in cpp_init_builtins and c_cpp_builtins.
2353
d4a83c10
JM
23542011-08-19 Joseph Myers <joseph@codesourcery.com>
2355
2356 * c-common.c (c_common_reswords): Add __builtin_complex.
2357 * c-common.h (RID_BUILTIN_COMPLEX): New.
2358
bbceee64
JM
23592011-08-18 Joseph Myers <joseph@codesourcery.com>
2360
2361 * c-common.c (c_common_reswords): Add _Noreturn.
2362 (keyword_is_function_specifier): Handle RID_NORETURN.
2363 * c-common.h (RID_NORETURN): New.
2364
0e3a99ae
AS
23652011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2366
2367 * c-common.c (unsafe_conversion_p): New function. Check if it is
2368 unsafe to convert an expression to the type.
2369 (conversion_warning): Adjust, use unsafe_conversion_p.
2370 * c-common.h (unsafe_conversion_p): New function declaration.
2371
20906c66
JJ
23722011-08-02 Jakub Jelinek <jakub@redhat.com>
2373
2374 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2375 (c_finish_omp_taskyield): New prototype.
2376 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2377 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2378 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2379 or RHS1 have side-effects, evaluate those too in the right spot,
2380 if it is a decl and LHS is also a decl, error out if they
2381 aren't the same.
2382 (c_finish_omp_taskyield): New function.
2383 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2384 * c-pragma.c (omp_pragmas): Add taskyield.
2385 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2386 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2387 PRAGMA_OMP_CLAUSE_MERGEABLE.
2388
770e5a2e
DS
23892011-07-25 Dodji Seketeli <dodji@redhat.com>
2390
2391 * c-common.h (set_underlying_type): Remove parm name from
2392 declaration.
2393
1baae426
RG
23942011-07-25 Romain Geissler <romain.geissler@gmail.com>
2395
2396 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2397
fcb21722
JM
23982011-07-22 Jason Merrill <jason@redhat.com>
2399
76f86d00
JM
2400 PR c++/49793
2401 * c.opt (Wnarrowing): New.
2402
3a636414
JM
2403 PR c++/30112
2404 * c-common.h: Declare c_linkage_bindings.
2405 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2406
fcb21722
JM
2407 PR c++/49813
2408 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2409 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2410 as flag_isoc99 for 'restrict'.
2411 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2412
02614448
ILT
24132011-07-21 Ian Lance Taylor <iant@google.com>
2414
2415 PR middle-end/49705
2416 * c-common.c (c_disable_warnings): New static function.
2417 (c_enable_warnings): New static function.
2418 (c_fully_fold_internal): Change local unused_p to bool. Call
2419 c_disable_warnings and c_enable_warnings rather than change
2420 c_inhibit_evaluation_warnings.
2421
34429675
JM
24222011-07-20 Jason Merrill <jason@redhat.com>
2423
2424 PR c++/6709 (DR 743)
2425 PR c++/42603 (DR 950)
2426 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2427 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2428 (CPP_DECLTYPE): New.
2429 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2430
5d49b6a7
RG
24312011-07-19 Richard Guenther <rguenther@suse.de>
2432
2433 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2434 * c-omp.c (c_finish_omp_for): Likewise.
2435
e84a58ff
EB
24362011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2437
2438 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2439 body on the next line.
2440
329af3c7
JM
24412011-07-08 Jason Merrill <jason@redhat.com>
2442
4063e61b
JM
2443 PR c++/45437
2444 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2445
329af3c7
JM
2446 PR c++/49673
2447 * c-common.c (c_apply_type_quals_to_decl): Don't check
2448 TYPE_NEEDS_CONSTRUCTING.
2449
1a072294
RG
24502011-07-06 Richard Guenther <rguenther@suse.de>
2451
2452 * c-common.c (c_common_nodes_and_builtins):
2453 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2454
fce5dddd
RG
24552011-07-05 Richard Guenther <rguenther@suse.de>
2456
2457 * c-common.c (c_common_nodes_and_builtins): Build all common
2458 tree nodes first.
2459
45d439ac
JJ
24602011-06-27 Jakub Jelinek <jakub@redhat.com>
2461
56300785
JJ
2462 * c-common.h (c_tree_chain_next): New static inline function.
2463
45d439ac
JJ
2464 * c-common.c (check_builtin_function_arguments): Handle
2465 BUILT_IN_ASSUME_ALIGNED.
2466
e0a8ecf2
AM
24672011-06-21 Andrew MacLeod <amacleod@redhat.com>
2468
2469 * c-common.c: Add sync_ or SYNC__ to builtin names.
2470 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2471
24722011-06-20 Pierre Vittet <piervit@pvittet.com>
2473
2474 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2475 handler.
2476 (gen_pragma_handler): New union.
2477 (internal_pragma_handler): New type.
2478 (c_register_pragma_with_data)
2479 (c_register_pragma_with_expansion_and_data): New functions.
2480
2481 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2482 (c_register_pragma, c_register_pragma_with_expansion)
2483 (c_invoke_pragma_handler): Changed to work with
2484 internal_pragma_handler.
2485 (c_register_pragma_with_data)
2486 (c_register_pragma_with_expansion_and_data): New functions.
2487
677f3fa8
JM
24882011-06-14 Joseph Myers <joseph@codesourcery.com>
2489
2490 * c-common.c: Include common/common-target.h.
2491 (handle_section_attribute): Use
2492 targetm_common.have_named_sections.
2493 * c-cppbuiltin.c: Include common/common-target.h.
2494 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2495
d7fc8c14
RG
24962011-06-10 Richard Guenther <rguenther@suse.de>
2497
2498 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2499 to print a IDENTIFIER_NODE.
2500
10e48e39
RO
25012011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2502 Joseph Myers <joseph@codesourcery.com>
2503
2504 * c.opt (fbuilding-libgcc): New option.
2505 * c-cppbuiltin.c (c_cpp_builtins): Define
2506 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2507
6976ae51
JM
25082011-06-07 Jason Merrill <jason@redhat.com>
2509
3ff60975
JM
2510 * c-common.c (max_tinst_depth): Lower default to 900.
2511
6976ae51
JM
2512 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2513
009db074
RG
25142011-06-07 Richard Guenther <rguenther@suse.de>
2515
2516 * c-common.c (c_common_nodes_and_builtins): Do not set
2517 size_type_node or call set_sizetype.
2518
b4592b92
DS
25192011-06-07 Dodji Seketeli <dodji@redhat.com>
2520
2521 PR debug/49130
2522 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2523 type when using pointer comparison to compare types.
b4592b92 2524
014ab419
JW
25252011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2526
2527 * c.opt: Add -Wdelete-non-virtual-dtor.
2528 * c-opts.c (c_common_handle_option): Include it in -Wall.
2529
4f60111f
NF
25302011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2531
2532 PR bootstrap/49190
2533
2534 Revert:
2535 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2536
2537 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2538 not tree_common.
2539
4cc4f2f4
JJ
25402011-05-27 Jakub Jelinek <jakub@redhat.com>
2541
2542 PR c++/49165
2543 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2544 C++ don't call c_common_truthvalue_conversion on void type arms.
2545
38e01f9e
NF
25462011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2547
2548 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2549 (stmt_list_stack): Define.
2550 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2551 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2552
92e948a8
NF
25532011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2554
2555 * c-common.c (warning_candidate_p): Check for BLOCKs.
2556
a2fc3e63
NF
25572011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2558
2559 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2560 not tree_common.
2561
0957c029
JJ
25622011-05-25 Jakub Jelinek <jakub@redhat.com>
2563
2564 * c-common.c (def_fn_type): Remove extra va_end.
2565
828fb3ba
JM
25662011-05-23 Jason Merrill <jason@redhat.com>
2567
2568 PR c++/48106
2569 * c-common.c (c_common_get_narrower): New.
2570 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2571
dde05067
NF
25722011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2573
2574 * c-common.h (check_function_arguments): Tweak prototype of
2575 check_function_arguments.
2576 * c-common.c (check_function_arguments): Likewise. Adjust
2577 calls to check_function_nonnull, check_function_format, and
2578 check_function_sentinel.
2579 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2580 separate attributes and typelist arguments. Use
2581 FOREACH_FUNCTION_ARGS to iterate over argument types.
2582
3c0d13bf
PC
25832011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2584
2585 * c-common.c (c_common_reswords): Reorder.
2586 * c-common.h (rid): Likewise.
2587
8242dd04
NF
25882011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2589
2590 * c-common.c (def_fn_type): Don't call build_function_type, call
2591 build_function_type_array or build_varargs_function_type_array
2592 instead.
2593 (c_common_nodes_and_builtins): Likewise.
2594
3d528853
NF
25952011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2596
2597 * c-common.c (c_add_case_label): Omit the loc argument to
2598 build_case_label.
2599 * c-common.h (build_case_label): Remove.
2600 * c-semantics.c (build_case_label): Remove.
2601
a04a722b
JM
26022011-05-05 Joseph Myers <joseph@codesourcery.com>
2603
2604 * c-objc.h (objc_start_method_definition): Update prototype.
2605 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2606
e19a18d4
NF
26072011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2608
2609 * c-common.c (check_main_parameter_types): Reindent. Don't use
2610 TYPE_ARG_TYPES directly.
2611 (handle_nonnull_attribute): Likewise.
2612 (sync_resolve_params): Likewise.
2613 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2614 to check_format_string.
2615 (handle_format_attribute): Likewise.
2616 (check_format_string): Take a function type to examine instead of
2617 a type list. Use a function_arg_iterator to step through argument
2618 types.
2619
c62c040f
RG
26202011-05-04 Richard Guenther <rguenther@suse.de>
2621
2622 * c-common.c (fix_string_type): Use size_int for index type bounds.
2623 (start_fname_decls): Do not pass NULL to build_int_cst.
2624 (c_init_attributes): Likewise.
2625 * c-lex.c (c_lex_with_flags): Likewise.
2626
c12ff9d8
JM
26272011-04-27 Jason Merrill <jason@redhat.com>
2628
2629 * c-common.c (make_tree_vector_from_list): New.
2630 * c-common.h: Declare it.
2631
304dfbe3
RG
26322011-04-26 Richard Guenther <rguenther@suse.de>
2633
2634 PR preprocessor/48248
2635 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2636 for output size with -P.
2637
3c0d13bf
PC
26382011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2639
2640 * c-common.c (struct c_common_resword): Add __underlying_type.
2641 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2642
04695783
JM
26432011-04-20 Jim Meyering <meyering@redhat.com>
2644
2645 * c-format.c (init_dollar_format_checking): Remove useless
2646 if-before-free.
2647
0dc33c3c
NP
26482011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2649
2650 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2651 (objc_detect_field_duplicates): New.
0dc33c3c 2652 * stub-objc.c: Likewise.
3c0d13bf 2653
c59633d9
NP
26542011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2655
2656 * stub-objc.c (objc_declare_protocols): Renamed to
2657 objc_declare_protocol.
2658 * c-objc.h: Likewise.
3c0d13bf 2659
32dabdaf
NP
26602011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2661
2662 * stub-objc.c (objc_declare_class): Updated argument name.
2663
81f653d6
NF
26642011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2665
2666 * c-common.h (c_common_init_ts): Declare.
2667 * c-common.c (c_common_init_ts): Define.
2668
eb345401
NP
26692011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2670
2671 * c-objc.h (objc_build_message_expr): Updated prototype.
2672 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2673
a358e188
MJ
26742011-04-12 Martin Jambor <mjambor@suse.cz>
2675
2676 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2677 of cgraph_node.
2678
e6313a78
RG
26792011-04-11 Richard Guenther <rguenther@suse.de>
2680
2681 * c-common.c (complete_array_type): Build a range type of
2682 proper type.
2683
dcf0c47e
NF
26842011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2685
2686 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2687 (handle_type_generic_attribute): Likewise.
2688
1ee44b26
JM
26892011-04-07 Jason Merrill <jason@redhat.com>
2690
2691 PR c++/48450
2692 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2693 conversion from C++0x scoped enum.
2694
acce4e77
JM
26952011-04-06 Joseph Myers <joseph@codesourcery.com>
2696
2697 * c-target-def.h: New file.
2698 * c-target.def: New file.
2699 * c-target.h: New file.
2700 * c-common.c (targetcm): Don't define here.
2701 * c-common.h (default_handle_c_option): Declare.
2702 * c-format.c: Include c-target.h instead of target.h.
2703 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2704 include tm.h.
2705 (default_handle_c_option): Move from targhooks.c.
2706
e2eefb55
JJ
27072011-03-29 Jakub Jelinek <jakub@redhat.com>
2708
2709 PR preprocessor/48248
2710 * c-ppoutput.c (print): Add src_file field.
2711 (init_pp_output): Initialize it.
2712 (maybe_print_line): Don't optimize by adding up to 8 newlines
2713 if map->to_file and print.src_file are different file.
2714 (print_line): Update print.src_file.
2715
ba78087b
KT
27162011-03-25 Kai Tietz <ktietz@redhat.com>
2717
2718 * c-ada-spec.c (compare_comment): Use filename_cmp
2719 instead of strcmp for filename.
2720
0edf1bb2
JL
27212011-03-25 Jeff Law <law@redhat.com>
2722
2723 * c-family/c-common.c (def_fn_type): Add missing va_end.
2724
c7dc8804
JM
27252011-03-25 Jason Merrill <jason@redhat.com>
2726
2727 * c.opt: Add -std=c++03.
2728
d1d879b1
EB
27292011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2730
2731 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2732
62d784f7
KT
27332011-03-17 Kai Tietz
2734
2735 PR target/12171
5050afdf
KT
2736 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2737 Display allowed attributes for function pointer types.
2738 (pp_c_attributes_display): New function to display
2739 attributes having affects_type_identity flag set to true.
2740 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2741
62d784f7
KT
2742 * c-common.c (c_common_attribute_table):
2743 Add new element.
2744 (c_common_format_attribute_table): Likewise.
2745
82d37118
JM
27462011-03-18 Jason Merrill <jason@redhat.com>
2747
49a000c3
JM
2748 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2749 * c-common.h: Don't declare it here.
2750 * c-common.c: Or define it here.
2751 * c-opts.c (c_common_handle_option): Or set it here.
2752
82d37118
JM
2753 PR c++/35315
2754 * c-common.c (handle_transparent_union_attribute): Don't
2755 make a duplicate type in C++.
2756
17bc631c
JM
27572011-03-15 Jason Merrill <jason@redhat.com>
2758
2759 * c-common.c (max_constexpr_depth): New.
2760 * c-common.h: Declare it.
2761 * c-opts.c (c_common_handle_option): Set it.
2762 * c.opt (fconstexpr-depth): New option.
2763
1b9b91a6
JM
27642011-03-11 Jason Merrill <jason@redhat.com>
2765
f231b5ff
JM
2766 * c-common.c (attribute_takes_identifier_p): Add missing const.
2767
1b9b91a6
JM
2768 PR c++/46803
2769 * c-common.c (attribute_takes_identifier_p): Assume that an
2770 unknown attribute takes an identifier.
2771
a19e4d44
NF
27722011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2773
2774 PR c/47786
2775 * c-common.c (c_type_hash): Call list_length instead of iterating
2776 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2777
982d62f6
JJ
27782011-02-19 Jakub Jelinek <jakub@redhat.com>
2779
2780 PR c/47809
2781 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2782
0a256240
NP
27832011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2784
2785 * c.opt (fobjc-abi-version=) New.
2786 (fobjc-nilcheck): New.
2787
ba9e6dd5
NF
27882011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2789
2790 PR c++/46890
2791 * c-common.h (keyword_is_decl_specifier): Declare.
2792 * c-common.c (keyword_is_decl_specifier): Define.
2793 (keyword_is_function_specifier): New function.
2794
7273813a
JJ
27952011-01-26 Jakub Jelinek <jakub@redhat.com>
2796
2797 PR c/47473
2798 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2799 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2800 REAL_TYPE.
2801
908ef79b
AC
28022011-01-26 Arnaud Charlet <charlet@adacore.com>
2803
2804 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2805
237e9384
JJ
28062011-01-26 Jakub Jelinek <jakub@redhat.com>
2807
2808 PR pch/47430
2809 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2810 after init_c_lex if pch_file is set.
2811
47ea1edf
DK
28122011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2813
d4dba752 2814 PR c++/43601
47ea1edf
DK
2815 * c.opt (-fkeep-inline-dllexport): New switch.
2816
2aa9c6ae
RG
28172011-01-12 Richard Guenther <rguenther@suse.de>
2818
2819 PR middle-end/32511
2820 * c-common.c (handle_weak_attribute): Warn instead of error
2821 on declaring an inline function weak.
2822
7bd11157
TT
28232011-01-05 Tom Tromey <tromey@redhat.com>
2824
2825 * c-common.h (lvalue_error): Update.
2826 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2827 not error.
2828
0e66e494 28292010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2830
b4f588c4
NP
2831 PR objc/47075
2832 * c-objc.h (objc_finish_message_expr): Added argument to
2833 prototype.
2834
f4da8dce
NF
28352010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2836
2837 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2838 Use prototype_p.
2839
46270f14
NP
28402010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2841
2842 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2843 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2844
4816c593
NF
28452010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2846
2847 * c-common.h (readonly_error): Declare.
2848 * c-common.c (readonly_error): Define.
2849
7a6daeb0
NF
28502010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2851
2852 * c-common.h (invalid_indirection_error): Declare.
2853 * c-common.c (invalid_indirection_error): Define.
2854
892f6119
RG
28552010-12-03 Richard Guenther <rguenther@suse.de>
2856
2857 PR c/46745
2858 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2859 (pp_c_unary_expression): Likewise.
2860 (pp_c_expression): Likewise.
2861
6c39e757
NP
28622010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2863
2864 * c-common.h (objc_finish_function): New.
2865 (objc_non_volatilized_type): Removed.
2866 (objc_type_quals_match): Removed.
2867 * stub-objc.c (objc_finish_function): New.
2868 (objc_non_volatilized_type): Removed.
2869 (objc_type_quals_match): Removed.
9faeb493 2870
7c475d11
JM
28712010-11-30 Joseph Myers <joseph@codesourcery.com>
2872
2873 * c-common.h (parse_optimize_options): Declare.
2874 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2875 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2876
71f3e391
JM
28772010-11-29 Joseph Myers <joseph@codesourcery.com>
2878
2879 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2880 GET_ENVIRONMENT.
2881 * c-pch.c (O_BINARY): Don't define here.
2882 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2883
d5fabb58
JM
28842010-11-25 Joseph Myers <joseph@codesourcery.com>
2885
2886 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2887 targetm.except_unwind_info.
2888
299404a1
JM
28892010-11-23 Joseph Myers <joseph@codesourcery.com>
2890
2891 * c-opts.c (c_common_handle_option): Pass location to
2892 set_struct_debug_option.
2893
c98cd5bf
JM
28942010-11-23 Joseph Myers <joseph@codesourcery.com>
2895
2896 * c-common.c (visibility_options): Move from ../opts.c.
2897 * c-common.h (struct visibility_flags, visibility_options):
2898 Declare here.
2899 * c-opts.c (finish_options): Rename to c_finish_options.
2900 (c_common_init): Update call to finish_options.
2901
a9546771
NP
29022010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2903
2904 PR objc/34033
2905 * c-lex.c (lex_string): Check that each string in an Objective-C
2906 string concat sequence starts with either one or zero '@', and
2907 that there are no spurious '@' signs at the end.
2908
24a57808
JM
29092010-11-20 Joseph Myers <joseph@codesourcery.com>
2910
2911 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2912 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2913 HANDLE_PRAGMA_VISIBILITY.
2914 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2915 HANDLE_PRAGMA_VISIBILITY): Don't define.
2916 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2917
a9aa2c3a
NF
29182010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2919
2920 PR c++/16189
2921 PR c++/36888
2922 PR c++/45331
2923 * c-common.h (keyword_begins_type_specifier): Declare.
2924 (keyword_is_storage_class_specifier): Declare.
2925 (keyword_is_type_qualifier): Declare.
2926 * c-common.c (keyword_begins_type_specifier): New function.
2927 (keyword_is_storage_class_specifier): New function.
2928 (keyword_is_type_qualifier): Declare.
2929
5386338c
JM
29302010-11-19 Joseph Myers <joseph@codesourcery.com>
2931
2932 PR c/46547
2933 * c-common.c (in_late_binary_op): Define.
2934 (c_common_truthvalue_conversion): Check in_late_binary_op before
2935 calling c_save_expr.
2936 * c-common.h (in_late_binary_op): Declare.
2937
69ccdddb
JM
29382010-11-19 Joseph Myers <joseph@codesourcery.com>
2939
2940 * c-opts.c (c_common_handle_option): Update calls to
2941 set_struct_debug_option.
2942
6b192a09
NP
29432010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2944
2945 * c-common.h (objc_declare_protocols): Added additional argument.
2946 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2947
fb52b50a
NF
29482010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2949
2950 PR c/33193
2951 * c-common.h (build_real_imag_expr): Declare.
2952 * c-semantics.c (build_real_imag_expr): Define.
2953
b37421c6
JM
29542010-11-17 Joseph Myers <joseph@codesourcery.com>
2955
2956 * c-opts.c (c_common_parse_file): Take no arguments.
2957 * c-common.h (c_common_parse_file): Update prototype.
2958
07078664
JJ
29592010-11-16 Jakub Jelinek <jakub@redhat.com>
2960
2961 PR c++/46401
2962 * c-common.c (warning_candidate_p): Don't track non-const calls
2963 or STRING_CSTs.
2964
c6a13190
ILT
29652010-11-15 Ian Lance Taylor <iant@google.com>
2966
2967 * c-lex.c (init_c_lex): Set macro debug callbacks if
2968 flag_dump_go_spec is set.
2969
925e8657
NP
29702010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2971
2972 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2973 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2974
bb0a9581
NF
29752010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2976
2977 PR preprocessor/45038
2978 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2979 dialects.
2980
c5fa0890
JM
29812010-11-12 Joseph Myers <joseph@codesourcery.com>
2982
2983 * c-common.h (c_family_lang_mask): Declare.
2984 * c-opts.c (c_family_lang_mask): Make extern.
2985 * c-pragma.c (handle_pragma_diagnostic): Use
2986 control_warning_option.
2987
a4d8c676
JM
29882010-11-12 Joseph Myers <joseph@codesourcery.com>
2989
2990 * c-common.c (parse_optimize_options): Update call to
2991 decode_options.
2992 * c-common.h (c_common_handle_option): Update prototype.
2993 * c-opts.c (c_common_handle_option): Take location_t parameter and
2994 pass it to other functions.
2995
f954bd2c
JM
29962010-11-11 Joseph Myers <joseph@codesourcery.com>
2997
2998 * c-opts.c (warning_as_error_callback): Remove.
2999 (c_common_initialize_diagnostics): Don't call
3000 register_warning_as_error_callback.
3001 (c_common_handle_option): Handle -Werror=normalized= here.
3002
d8a07487
JM
30032010-11-10 Joseph Myers <joseph@codesourcery.com>
3004
3005 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3006 in diagnostic.
3007 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3008 letter.
3009 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3010 Remove trailing '.' from diagnostics.
3011 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3012
d5478783
JM
30132010-11-10 Joseph Myers <joseph@codesourcery.com>
3014
3015 * c-common.c (parse_optimize_options): Pass global_dc to
3016 decode_options.
3017 * c-opts.c (c_common_handle_option): Pass &global_options to
3018 set_Wstrict_aliasing.
3019 * c.opt (v): Don't mark Common or document here.
3020
91ebb981
IS
30212010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3022
3023 PR target/44981
3024 * c-format.c (format_type): New type gcc_objc_string_format_type.
3025 (valid_stringptr_type_p): New.
3026 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3027 (check_format_string): Pass expected type, use
91ebb981
IS
3028 valid_stringptr_type_p (), check that the format string types are
3029 consistent with the format specification.
3030 (decode_format_attr): Warn if NSString is used outside objective-c.
3031 (format_types_orig): Add NSString.
3032 (format_name): New.
3033 (format_flags): New.
3034 (check_format_arg): Handle format strings requiring an external parser.
3035 first_target_format_type: New variable.
3036 (handle_format_attribute): Set up first_target_format_type, pass the
3037 expected format arg string type to check_format_string().
3038 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3039 * stub-objc.c (objc_string_ref_type_p): New.
3040 (objc_check_format_arg): New.
3041
bede2adc
NP
30422010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3043
9faeb493 3044 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3045 * c-common.h (objc_build_class_component_ref): New.
3046 * stub-objc.c (objc_build_class_component_ref): New.
3047
9a179d01
NP
30482010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3049
3050 * c.opt (Wproperty-assign-default): New option.
3051
22d8d616
NP
30522010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3053
3054 Implemented -fobjc-std=objc1 flag.
3055 * c.opt (fobjc-std=objc1): New option.
3056
2debdb4f
NP
30572010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3058
3059 Implemented format and noreturn attributes for Objective-C methods.
3060 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3061 attribute for Objective-C methods.
3062
ec52b111
JM
30632010-10-31 Jason Merrill <jason@redhat.com>
3064
3065 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3066 EXPR_LOC_OR_HERE.
3067
46a88c12
NP
30682010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3069
3070 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3071 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3072 (objc_add_property_declaration): Removed arguments for copies and
3073 ivar.
3074 (objc_build_getter_call): Renamed to
3075 objc_maybe_build_component_ref.
3076 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3077 (objc_is_property_ref): New.
3078 * c-common.c (c_common_reswords): Removed copies and ivar.
3079 * stub-objc.c (objc_add_property_declaration): Removed arguments
3080 for copies and ivar.
3081 (objc_build_getter_call): Renamed to
3082 objc_maybe_build_component_ref.
3083 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3084 (objc_is_property_ref): New.
9faeb493 3085
1e4bf85b
AC
30862010-10-29 Arnaud Charlet <charlet@adacore.com>
3087 Matthew Gingell <gingell@adacore.com>
3088
3089 * c-ada-spec.c (separate_class_package): New function.
3090 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3091 name of their enclosing package.
3092 (print_ada_declaration): Use separate_class_package.
3093
81f0bab2
JM
30942010-10-27 Jason Merrill <jason@redhat.com>
3095
2b08f2c5
JM
3096 * c-common.c (c_common_reswords): Add __is_literal_type.
3097 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3098
81f0bab2
JM
3099 * c-common.c (check_case_value): Remove special C++ code.
3100
200290f2
NP
31012010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3102
3103 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3104 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3105 and RID_LAST_PATTR.
3106 (objc_add_property_declaration): Added additional arguments.
3107 (objc_property_attribute_kind): Removed.
3108 (objc_set_property_attr): Removed.
3109 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3110 copy and nonatomic.
3111 * stub-objc.c (objc_add_property_declaration): Added additional
3112 arguments.
3113 (objc_set_property_attr): Removed.
9faeb493 3114
f614132b
NP
31152010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3116
3117 * c-common.h (objc_add_property_variable): Renamed to
3118 objc_add_property_declaration. Added location argument.
3119 * stub-objc.c (objc_add_property_variable): Same change.
3120
b8a18805
NP
31212010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3122
3123 * c-common.h (objc_maybe_printable_name): New.
3124 * stub-objc.c (objc_maybe_printable_name): New.
3125
30cd1c5d
AS
31262010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3127 Andrew Pinski <pinskia@gmail.com>
3128
3129 * c-common.h (c_common_mark_addressable_vec): Declare.
3130 * c-common.c (c_common_mark_addressable_vec): New function.
3131
249a82c4
NP
31322010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3133
3134 * c-common.h (objc_set_method_type): Removed.
3135 (objc_add_method_declaration): Added boolean argument.
3136 (objc_start_method_definition): Same change.
3137 (objc_build_method_signature): Same change.
3138 * stub-objc.c (objc_set_method_type): Removed.
3139 (objc_add_method_declaration): Added boolean argument.
3140 (objc_start_method_definition): Same change.
3141 (objc_build_method_signature): Same change.
3142
977e30bc
NP
31432010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3144
3145 * c-common.h (finish_file): Removed.
3146 (objc_write_global_declarations): New.
3147 * c-opts.c (c_common_parse_file): Do not call finish_file.
3148 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3149
da57d1b9
NP
31502010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3151
3152 Implemented parsing @synthesize and @dynamic for
3153 Objective-C/Objective-C++.
3154 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3155 (objc_add_synthesize_declaration): New.
3156 (objc_add_dynamic_declaration): New.
3157 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3158 * stub-objc.c (objc_add_synthesize_declaration): New.
3159 (objc_add_dynamic_declaration): New.
9faeb493 3160
0069111f
MM
31612010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3162
3163 PR target/46041
3164 * c-cppbuiltin.c (mode_has_fma): Move function here from
3165 builtins.c. Don't use the fma optab, instead just use the
3166 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3167 using -save-temps.
3168
e426b47b
NP
31692010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3170
3171 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3172
e426b47b
NP
3173 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3174
9faeb493 3175 Radar 4330422
e426b47b
NP
3176 * c-common.h (objc_non_volatilized_type): New declaration
3177 * stub-objc.c (objc_non_volatilized_type): New stub.
3178
90fbfdc3
NP
31792010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3180
e426b47b 3181 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3182
3183 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3184
9faeb493 3185 Radar 4133425
90fbfdc3 3186 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3187 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3188
c37d8c30
IS
31892010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3190
3191 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3192 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3193 (objc_ivar_visibility_kind): New enum.
3194 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3195 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3196 visibility enum.
3197
1b1562a5
MM
31982010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3199
3200 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3201 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3202 has the appropriate fma builtins.
3203 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3204
668ea4b1
IS
32052010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3206
1b1562a5 3207 merge from FSF apple 'trunk' branch.
668ea4b1 3208 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3209
668ea4b1
IS
3210 Radars 4436866, 4505126, 4506903, 4517826
3211 * c-common.c (c_common_resword): Define @property and its attributes.
3212 * c-common.h: Define property attribute enum entries.
3213 (OBJC_IS_PATTR_KEYWORD): New.
3214 (objc_property_attribute_kind): New enum.
3215 Declare objc_set_property_attr (), objc_add_property_variable (),
3216 objc_build_getter_call () and objc_build_setter_call ().
3217 * stub-objc.c (objc_set_property_attr): New stub.
3218 (objc_add_property_variable): Likewise.
3219 (objc_build_getter_call): Likewise.
3220 (objc_build_setter_call) Likewise.
1b1562a5 3221
a1178b30
IS
32222010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3223
1b1562a5 3224 merge from FSF apple 'trunk' branch.
a1178b30
IS
3225 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3226
3227 Radar 3803157 (method attributes)
3228 * c-common.c (handle_deprecated_attribute): Recognize
3229 objc methods as valid declarations.
3230 * c-common.h: Declare objc_method_decl ().
1b1562a5 3231 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3232
a75bfaa6
JM
32332010-10-08 Joseph Myers <joseph@codesourcery.com>
3234
3235 * c-common.c (parse_optimize_options): Call
3236 decode_cmdline_options_to_array_default_mask before
3237 decode_options. Update arguments to decode_options.
3238 * c-common.h (c_common_init_options_struct): Declare.
3239 * c-opts.c (c_common_init_options_struct): New. Split out from
3240 c_common_init_options.
3241
f05b9d93
NP
32422010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3243
3244 Implemented fast enumeration for Objective-C.
3245 * c-common.h (objc_finish_foreach_loop): New.
3246 * stub-objc.c (objc_finish_foreach_loop): New.
3247
1ebe4b4f
JM
32482010-10-05 Joseph Myers <joseph@codesourcery.com>
3249
3250 * c-common.h (struct diagnostic_context): Don't declare here.
3251 (c_common_initialize_diagnostics): Declare using
3252 diagnostic_context typedef.
3253 * c-opts.c (c_common_handle_option): Pass global_dc to
3254 handle_generated_option.
3255
d4d24ba4
JM
32562010-10-04 Joseph Myers <joseph@codesourcery.com>
3257
3258 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3259 handle_generated_option.
3260
478a1c5b
ILT
32612010-10-03 Ian Lance Taylor <iant@google.com>
3262
3263 * c.opt (-fplan9-extensions): New option.
3264
82a1c2fe
FXC
32652010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3266
3267 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3268 Remove.
3269 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3270 of duplicating code.
3271
92902b1b
IS
32722010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3273
3274 * c-common.c: Add two new entries for @optional
3275 and @required keywords.
3276
3277 merge from FSF 'apple/trunk' branch.
3278 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3279
3280 Radar 4386773
3281 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3282 objective-c keywords.
3283 (objc_set_method_opt): New declaration.
3284 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3285
46625112
JM
32862010-09-30 Joseph Myers <joseph@codesourcery.com>
3287
3288 * c-common.c (handle_optimize_attribute): Pass &global_options to
3289 cl_optimization_save and cl_optimization_restore.
3290 * c-opts.c (c_common_handle_option): Pass &global_options to
3291 handle_generated_option.
3292 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3293 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3294 &global_options to cl_optimization_restore.
3295
49b91f05
NP
32962010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3297
3298 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3299 Objective-C/Objective-C++ keywords.
3300
13ed556f 33012010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3302
9faeb493
UB
3303 Merge from 'apple/trunk' branch on FSF servers.
3304
a6341d57
NP
3305 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3306
3307 Radar 4281748
3308 * c-common.h (objc_check_global_decl): New declaration.
3309 * stub-objc.c (objc_check_global_decl): New stub.
3310
f0036cca
JM
33112010-09-29 Joseph Myers <joseph@codesourcery.com>
3312
3313 * c.opt: Don't use VarExists.
3314
e3339d0f
JM
33152010-09-29 Joseph Myers <joseph@codesourcery.com>
3316
3317 * c-common.c (c_cpp_error): Update names of diagnostic_context
3318 members.
3319 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3320 cl_optimization members.
3321 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3322 sanitize_cpp_opts, finish_options): Update names of cpp_options
3323 members.
3324
1973201f
NP
33252010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3326
3327 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3328 (objc_is_reserved_word): Removed.
3329 * c-common.c: Updated comments.
3330 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3331 objc_is_reserved_word.
3332 * stub-objc.c (objc_is_reserved_word): Removed.
3333
f7e71da5
IS
33342010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3335
9faeb493 3336 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3337 include attributes.
3338 (objc_start_method_definition): Likewise.
3339 (objc_build_keyword_decl): Likewise.
3340 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3341 (objc_start_method_definition): Likewise.
3342 (objc_build_keyword_decl): Likewise.
3343
c165dca7
IS
33442010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3345
3346 * c-common.h (objc_start_class_interface): Adjust prototype.
3347 (objc_start_category_interface): Likewise.
3348 (objc_start_protocol): Likewise.
3349 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3350 (objc_start_class_interface): Likewise.
3351 (objc_start_category_interface): Likewise.
3352
7458026b
ILT
33532010-09-27 Ian Lance Taylor <iant@google.com>
3354
3355 * c-common.c (c_common_attribute_table): Add no_split_stack.
3356 (handle_no_split_stack_attribute): New static function.
3357
b581b85b
NP
33582010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3359
9faeb493 3360 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3361
3362 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3363
9faeb493 3364 Radar 4229905
b581b85b
NP
3365 * c-common.h (objc_have_common_type): New declaration.
3366 * stub-objc.c (objc_have_common_type): New stub.
3367
3368 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3369
3370 Radar 4154928
3371 * c-common.h (objc_common_type): New prototype.
9faeb493 3372 * stub-objc.c (objc_common_type): New stub.
b581b85b 3373
46a4da10
JH
33742010-09-24 Jan Hubicka <jh@suse.cz>
3375
3376 * c-common.c (handle_leaf_attribute): New function.
3377 (struct attribute_spec c_common_att): Add leaf.
3378
e200444e
JM
33792010-09-22 Joseph Myers <joseph@codesourcery.com>
3380
3381 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3382 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3383 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3384 -include-barrier, -include-directory, -include-directory=,
3385 -include-directory-after, -include-directory-after=,
3386 -include-prefix, -include-prefix=, -include-with-prefix,
3387 -include-with-prefix=, -include-with-prefix-after,
3388 -include-with-prefix-after=, -include-with-prefix-before,
3389 -include-with-prefix-before=, -no-integrated-cpp,
3390 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3391 -output=, -pedantic, -pedantic-errors, -preprocess,
3392 -print-missing-file-dependencies, -trace-includes, -traditional,
3393 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3394 -user-dependencies, -verbose, -write-dependencies,
3395 -write-user-dependencies, no-integrated-cpp, traditional): New.
3396
29a80ea6
NP
33972010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3398
3399 PR objc/23710
ac1fc2fc
NP
3400 * c-common.h (objc_start_method_definition): Return bool instead
3401 of void.
3402 * stub-objc.c (objc_start_method_definition): Return bool instead
3403 of void.
3404
34052010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3406
3407 PR objc/25965
3408 * c-common.h (objc_get_interface_ivars): New declaration.
3409 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3410
de621752
ILT
34112010-09-15 Ian Lance Taylor <iant@google.com>
3412
3413 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3414 messages. Remove period at end of warning message.
de621752 3415
ba885ec5
NS
34162010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3417
3418 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3419 (handle_alias_attribute): ... here.
3420 (handle_ifunc_attribute): New.
3421
c5ee1358
MM
34222010-09-06 Mark Mitchell <mark@codesourcery.com>
3423
3424 * c-common.h (do_warn_double_promotion): Declare.
3425 * c-common.c (do_warn_double_promotion): Define.
3426
0a0b3574
MM
34272010-09-05 Mark Mitchell <mark@codesourcery.com>
3428
3429 * c.opt (Wdouble-promotion): New.
3430
d1779886
JM
34312010-09-02 Joseph Myers <joseph@codesourcery.com>
3432
3433 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3434 fvtable-thunks, fxref): Mark no longer supported in help text.
3435
2d2bd949
JM
34362010-09-02 Joseph Myers <joseph@codesourcery.com>
3437
3438 * c.opt (Wimport, fall-virtual, falt-external-templates,
3439 fdefault-inline, fenum-int-equiv, fexternal-templates,
3440 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3441 fname-mangling-version-, fnew-abi, fnonnull-objects,
3442 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3443 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3444 applicable.
3445 (fhandle-exceptions): Mark with Alias and Warn.
3446 * c-opts.c (c_common_handle_option): Don't handle options marked
3447 as ignored.
3448
5de8299c
JM
34492010-09-02 Joseph Myers <joseph@codesourcery.com>
3450
3451 * c.opt (Wcomments, Werror-implicit-function-declaration,
3452 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3453 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3454 aliases.
3455 * c-common.c (option_codes): Use OPT_Wcomment instead of
3456 OPT_Wcomments.
3457 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3458 Don't handle options marked as aliases.
3459
0ceb0201
RG
34602010-08-25 Richard Guenther <rguenther@suse.de>
3461
3462 * c-common.c (c_common_get_alias_set): Remove special
3463 handling for pointers.
3464
ac47786e
NF
34652010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3466
3467 * c-common.c: Use FOR_EACH_VEC_ELT.
3468 * c-gimplify.c: Likewise.
3469 * c-pragma.c: Likewise.
3470
c878765b
JM
34712010-08-16 Joseph Myers <joseph@codesourcery.com>
3472
3473 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3474 RejectDriver.
3475 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3476 RejectDriver.
3477 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3478 instead of OPT_MDX and OPT_MMDX.
3479
603349bf
JM
34802010-08-16 Joseph Myers <joseph@codesourcery.com>
3481
3482 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3483
644fa7ac
JM
34842010-08-12 Joseph Myers <joseph@codesourcery.com>
3485
3486 * c.opt (MD, MMD): Change to MDX and MMDX.
3487 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3488
481e1176
JM
34892010-08-11 Joseph Myers <joseph@codesourcery.com>
3490
3491 * c-opts.c (c_common_handle_option): Call handle_generated_option
3492 instead of handle_option.
3493
ac8dc9f7
NF
34942010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3495
3496 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3497 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3498
4f8c876d
NF
34992010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3500
3501 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3502 (pending_redefine_extname): Change type to a VEC.
3503 (add_to_renaming_pragma_list): Update for new type of
3504 pending_redefine_extname.
ac8dc9f7 3505 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3506
3b0c690e
AC
35072010-08-04 Arnaud Charlet <charlet@adacore.com>
3508
3509 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3510 visited.
3511 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3512 decide whether a type has already been declared/seen.
3513 Do not go to the original type.
3514 (dump_nested_types): New parameter forward.
3515 Generate forward declaration if needed and mark type as visited.
3516 (print_ada_declaration): Call dump_nested_types if not already done.
3517 Mark types as visited.
3518
1890bccc
JM
35192010-08-03 Joseph Myers <joseph@codesourcery.com>
3520
3521 * c.opt (-print-pch-checksum): Remove option.
3522 * c-opts.c (c_common_handle_option): Don't handle
3523 OPT_print_pch_checksum.
3524
5f20c657
JM
35252010-07-27 Joseph Myers <joseph@codesourcery.com>
3526
3527 * c-common.h (c_common_handle_option): Update prototype and return
3528 value type.
3529 * c-opts.c (c_common_handle_option): Update prototype and return
3530 value type. Update calls to handle_option and
3531 enable_warning_as_error.
3532
f551f80c
JJ
35332010-07-27 Jakub Jelinek <jakub@redhat.com>
3534
3535 PR c/45079
3536 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3537
61ff2bdc
JM
35382010-07-27 Joseph Myers <joseph@codesourcery.com>
3539
3540 * c-common.h (c_common_missing_argument): Remove.
3541 * c-opts.c (c_common_missing_argument): Remove.
3542 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3543 idirafter, imacros, include, isysroot, isystem, iquote): Add
3544 MissingArgError.
3545 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3546
7a9bf9a4
JM
35472010-07-27 Joseph Myers <joseph@codesourcery.com>
3548
3549 * c-common.h (c_common_option_lang_mask,
3550 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3551 New.
3552 (c_common_init_options): Update prototype.
3553 * c-opts.c (c_common_option_lang_mask): New.
3554 (c_common_initialize_diagnostics): Split out of
3555 c_common_init_options.
3556 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3557 New.
3558 (c_common_init_options): Update prototype. Use decoded options in
3559 search for -lang-asm.
3560
910ad8de
NF
35612010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3562
3563 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3564 * c-format.c: Likewise.
3565
718f9c0f
MLI
35662010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3567
3568 * c-common.h: Include diagnostic-core.h. Error if already
3569 included.
3570 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3571
4d451982
MLI
35722010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3573
3574 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3575 Do not include expr.h
3576 (vector_mode_valid_p): Move here.
3577
119fe915
SB
35782010-06-21 DJ Delorie <dj@redhat.com>
3579
3580 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3581 allow these pragmas anywhere.
3582
35832010-06-14 Jakub Jelinek <jakub@redhat.com>
3584
3585 PR bootstrap/44509
3586 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3587 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3588 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3589 ggc_strdup instead of xstrdup.
3590
35912010-06-10 Jakub Jelinek <jakub@redhat.com>
3592
3593 * c-cppbuiltin.c: Include cpp-id-data.h.
3594 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3595 (lazy_hex_fp_value): New function.
3596 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3597
6662d794
MLI
35982010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3599
3600 * c-gimplify.c: Do not include tree-flow.h
3601
38f8b050
JR
36022010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3603
3604 PR other/44034
3605 * c-common.c: Rename targetm member:
3606 targetm.enum_va_list -> targetm.enum_va_list_p
3607
9589f23e
AS
36082010-06-28 Anatoly Sokolov <aesok@post.ru>
3609
3610 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3611
3b06d379
SB
36122010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3613
3614 * c-cppbuiltin.c: Do not include except.h.
3615
d166d4c3
AK
36162010-06-24 Andi Kleen <ak@linux.intel.com>
3617
9faeb493
UB
3618 * c-common.c (warn_for_omitted_condop): New.
3619 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3620
70cb8be6
JM
36212010-06-21 Joseph Myers <joseph@codesourcery.com>
3622
3623 * c.opt (lang-objc): Remove.
3624 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3625
a4c97feb
JR
36262010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3627
3628 * c-opts.c: Include "tm_p.h".
3629
6e2f1956
JM
36302010-06-20 Joseph Myers <joseph@codesourcery.com>
3631
3632 * c-common.c (parse_optimize_options): Update call to
3633 decode_options.
3634
bc87224e
NF
36352010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3636
3637 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3638 new type of types_used_by_cur_var_decl.
3639
b49cf425
JR
36402010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3641
3642 PR bootstrap/44512
3643 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3644 for C++ standard compliance.
3645
59f9c2ed
JM
36462010-06-16 Jason Merrill <jason@redhat.com>
3647
3648 * c.opt: Add -Wnoexcept.
3649
33766b66
RG
36502010-06-16 Richard Guenther <rguenther@suse.de>
3651
3652 PR c/44555
3653 * c-common.c (c_common_truthvalue_conversion): Remove
3654 premature and wrong optimization concering ADDR_EXPRs.
3655
eff7e30c
AC
36562010-06-15 Arnaud Charlet <charlet@adacore.com>
3657
3658 * c-ada-spec.c (dump_sloc): Remove column info.
3659 (is_simple_enum): New function.
3660 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3661 enum types when relevant.
3662
6312e84d
MLI
36632010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3664
9faeb493 3665 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3666 location.
3667
1cb42611
JM
36682010-06-10 Joseph Myers <joseph@codesourcery.com>
3669
3670 * c-opts.c (c_common_handle_option): Don't handle
3671 OPT_fshow_column.
3672
a9429e29
LB
36732010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3674
3675 * c-pragma.c (push_alignment): Use typed GC allocation.
3676 (handle_pragma_push_options): Likewise.
3677
3678 * c-common.c (parse_optimize_options): Likewise.
3679
3680 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3681 option.
3682
5498f011
JM
36832010-06-07 Joseph Myers <joseph@codesourcery.com>
3684
3685 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3686 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3687 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3688 flag_signed_bitfields, warn_strict_null_sentinel,
3689 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3690 flag_gen_declaration, flag_no_gnu_keywords,
3691 flag_implement_inlines, flag_implicit_templates,
3692 flag_implicit_inline_templates, flag_optional_diags,
3693 flag_elide_constructors, flag_default_inline, flag_rtti,
3694 flag_conserve_space, flag_access_control, flag_check_new,
3695 flag_new_for_scope, flag_weak, flag_working_directory,
3696 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3697 flag_enforce_eh_specs, flag_threadsafe_statics,
3698 flag_pretty_templates): Remove.
3699 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3700 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3701 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3702 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3703 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3704 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3705 flag_no_gnu_keywords, flag_implement_inlines,
3706 flag_implicit_templates, flag_implicit_inline_templates,
3707 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3708 flag_rtti, flag_conserve_space, flag_access_control,
3709 flag_check_new, flag_new_for_scope, flag_weak,
3710 flag_working_directory, flag_use_cxa_atexit,
3711 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3712 flag_threadsafe_statics, flag_pretty_templates,
3713 warn_strict_null_sentinel): Remove.
3714 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3715 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3716 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3717 fimplicit-inline-templates, fimplicit-templates,
3718 flax-vector-conversions, fms-extensions, fnil-receivers,
3719 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3720 frtti, fshort-double, fshort-enums, fshort-wchar,
3721 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3722 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3723 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3724 gen-decls, undef): Use Var.
3725 (fdefault-inline, foptional-diags): Document as doing nothing.
3726 * c-opts.c (c_common_handle_option): Remove cases for options now
3727 using Var. Mark ignored options as such.
3728
39dabefd
SB
37292010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3730
9faeb493 3731 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3732 * c-common.def: Likewise.
3733 * c-common.h: Likewise.
3734 * c-cppbuiltin.c: Likewise.
3735 * c-dump.c: Likewise.
3736 * c-format.c: Likewise.
3737 * c-format.h : Likewise.
3738 * c-gimplify.c: Likewise.
3739 * c-lex.c: Likewise.
3740 * c-omp.c: Likewise.
3741 * c.opt: Likewise.
3742 * c-opts.c: Likewise.
3743 * c-pch.c: Likewise.
3744 * c-ppoutput.c: Likewise.
3745 * c-pragma.c: Likewise.
3746 * c-pragma.h: Likewise.
3747 * c-pretty-print.c: Likewise.
3748 * c-pretty-print.h: Likewise.
3749 * c-semantics.c: Likewise.
3750 * stub-objc.c: Likewise.
3751
3752 * c-common.c: Include gt-c-family-c-common.h.
3753 * c-pragma.c: Include gt-c-family-c-pragma.h.
3754\f
23a5b65a 3755Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3756
3757Copying and distribution of this file, with or without modification,
3758are permitted in any medium without royalty provided the copyright
3759notice and this notice are preserved.
This page took 1.3881 seconds and 5 git commands to generate.