]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR c++/61539 (ICE: in unify_one_argument, at cp/pt.c:15465)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
da73100b
JM
12014-06-26 Jason Merrill <jason@redhat.com>
2
3 * c-common.h (enum cxx_dialect): Add cxx1z.
4 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
6
7b56b2f8
MP
72014-06-23 Marek Polacek <polacek@redhat.com>
8 Andrew MacLeod <amacleod@redhat.com>
9
10 PR c/61553
11 * c-common.c (get_atomic_generic_size): Don't segfault if the
12 type doesn't have a size.
13
0e37a2f3
MP
142014-06-20 Marek Polacek <polacek@redhat.com>
15
16 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
17 (ubsan_walk_array_refs_r): New function.
18 (c_genericize): Instrument array bounds.
19 * c-ubsan.c: Include "internal-fn.h".
20 (ubsan_instrument_division): Mark instrumented arrays as having
21 side effects. Adjust ubsan_type_descriptor call.
22 (ubsan_instrument_shift): Likewise.
23 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
24 (ubsan_instrument_bounds): New function.
25 (ubsan_array_ref_instrumented_p): New function.
26 (ubsan_maybe_instrument_array_ref): New function.
27 * c-ubsan.h (ubsan_instrument_bounds): Declare.
28 (ubsan_array_ref_instrumented_p): Declare.
29 (ubsan_maybe_instrument_array_ref): Declare.
30
312014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
32
33 PR lto/61123
34 * c.opt (fshort-enums): Add to LTO.
35 * c.opt (fshort-wchar): Likewise.
36
5c3d09f7
MP
372014-06-16 Marek Polacek <polacek@redhat.com>
38
39 PR c/60439
40 * c.opt (Wswitch-bool): Add Var.
41
9cf32741
JJ
422014-06-12 Jakub Jelinek <jakub@redhat.com>
43
44 PR middle-end/61486
45 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
46 #pragma omp target teams or
47 #pragma omp {,target }teams distribute simd.
48
62984918
JM
492014-06-12 Jason Merrill <jason@redhat.com>
50
51 * c.opt (Wabi=, fabi-compat-version): New.
52 * c-opts.c (c_common_handle_option): Handle -Wabi=.
53 (c_common_post_options): Handle flag_abi_compat_version default.
54 Disallow -fabi-compat-version=1.
55 * c-common.h (abi_version_crosses): New.
56
f961457f
JH
572014-06-11 Jan Hubicka <hubicka@ucw.cz>
58
59 * c-family/c-common.c (handle_section_attribute): Update handling for
60 section names that are no longer trees.
61
92d28cbb
JJ
622014-06-10 Jakub Jelinek <jakub@redhat.com>
63
64 PR fortran/60928
65 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
66 (omp_pragmas): ... back here.
67
742938c9
MP
682014-06-05 Marek Polacek <polacek@redhat.com>
69
70 PR c/49706
71 * c-common.c (warn_logical_not_parentheses): New function.
72 * c-common.h (warn_logical_not_parentheses): Declare.
73 * c.opt (Wlogical-not-parentheses): New option.
74
9d548dfb
MP
752014-06-04 Marek Polacek <polacek@redhat.com>
76
77 PR c/30020
78 * c-common.c (check_case_bounds): Add location parameter.
79 Use it.
80 (c_add_case_label): Pass loc to check_case_bounds.
81
fedfecef
MP
822014-06-03 Marek Polacek <polacek@redhat.com>
83
84 PR c/60439
85 * c.opt (Wswitch-bool): New option.
86
f6a7cffc
TS
872014-05-22 Thomas Schwinge <thomas@codesourcery.com>
88
040d18b6
TS
89 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
90 Remove prototypes.
91 (record_types_used_by_current_var_decl): Move prototype to where
92 it belongs.
93
f6a7cffc
TS
94 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
95 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
96 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
97
632f2871
RS
982014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
99
100 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
101 * c-common.c (c_common_nodes_and_builtins): Don't initialize
102 void_zero_node.
103 * c-pretty-print.c (pp_c_void_constant): New function.
104 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
105 (c_pretty_printer::expression): Handle VOID_CST.
106 * cilk.c (extract_free_variables): Likewise.
107 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
108 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
109
766090c2
TS
1102014-05-17 Trevor Saunders <tsaunders@mozilla.com>
111
112 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
113 * c-pragma.c (push_alignment): Adjust.
114 (handle_pragma_push_options): Likewise.
115
661a0813
MP
1162014-05-09 Marek Polacek <polacek@redhat.com>
117
118 PR c/50459
119 * c-common.c (check_user_alignment): Return -1 if alignment is error
120 node.
121 (handle_aligned_attribute): Don't call default_conversion on
122 FUNCTION_DECLs.
123 (handle_vector_size_attribute): Likewise.
124 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
125 (handle_sentinel_attribute): Call default_conversion and allow even
126 integral types as an argument.
127
2793eeab
MP
1282014-05-08 Marek Polacek <polacek@redhat.com>
129
130 PR c/61053
131 * c-common.c (min_align_of_type): New function factored out from...
132 (c_sizeof_or_alignof_type): ...here.
133 * c-common.h (min_align_of_type): Declare.
134
f827930a
MP
1352014-05-08 Marek Polacek <polacek@redhat.com>
136
137 PR c/61077
138 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
139 parameter type of main.
140
ca49b74e
DD
1412014-05-07 DJ Delorie <dj@redhat.com>
142
143 * c-cppbuiltin.c (print_bits_of_hex): New.
144 (builtin_define_type_minmax): Print values using hex so as not to
145 require a pre-computed list of string values.
146
1d60af08
KZ
1472014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
148 Mike Stump <mikestump@comcast.net>
149 Richard Sandiford <rdsandiford@googlemail.com>
150
151 * c-ada-spec.c: Include wide-int.h.
152 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
153 (dump_generic_ada_node): Use wide-int interfaces.
154 * c-common.c: Include wide-int-print.h.
155 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
156 (pointer_int_sum): Use wide-int interfaces.
157 (c_common_nodes_and_builtins): Use make_int_cst.
158 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
159 (handle_alloc_size_attribute): Use wide-int interfaces.
160 (get_nonnull_operand): Likewise.
161 * c-format.c (get_constant): Use tree_fits_uhwi_p.
162 * c-lex.c: Include wide-int.h.
163 (narrowest_unsigned_type): Take a widest_int rather than two
164 HOST_WIDE_INTs.
165 (narrowest_signed_type): Likewise.
166 (interpret_integer): Update accordingly. Use wide-int interfaces.
167 (lex_charconst): Use wide-int interfaces.
168 * c-pretty-print.c: Include wide-int.h.
169 (pp_c_integer_constant): Use wide-int interfaces.
170 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
171 INT_CST_LT_UNSIGNED.
172
b15458be
RB
1732014-05-06 Richard Biener <rguenther@suse.de>
174
175 * c-opts.c (c_common_post_options): For -freestanding,
176 -fno-hosted and -fno-builtin disable pattern recognition
177 if not enabled explicitely.
178
6577374e
MP
1792014-05-02 Marek Polacek <polacek@redhat.com>
180
181 * c.opt (Wsizeof-pointer-memaccess): Describe option.
182
d00887e8
MP
1832014-05-01 Marek Polacek <polacek@redhat.com>
184
185 PR c/43245
186 * c.opt (Wdiscarded-qualifiers): Add.
187
f8ed5150
MP
1882014-04-30 Marek Polacek <polacek@redhat.com>
189
190 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
191 INT_MIN / -1 sanitization only for integer types.
192
45484dcf
MP
1932014-04-25 Marek Polacek <polacek@redhat.com>
194
195 PR c/18079
196 * c-common.c (handle_noinline_attribute): Warn if the attribute
197 conflicts with always_inline attribute.
198 (handle_always_inline_attribute): Warn if the attribute conflicts
199 with noinline attribute.
200
38e514c0
MP
2012014-04-25 Marek Polacek <polacek@redhat.com>
202
203 PR c/60156
204 * c-common.c (check_main_parameter_types): Warn about variadic main.
205
44875f92
MS
2062014-04-24 Mike Stump <mikestump@comcast.net>
207
208 * c.opt (Wshadow-ivar): Default to on.
209
dcaaa5a0
DP
2102014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
211
212 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
213
c07d7c02
MP
2142014-04-23 Marek Polacek <polacek@redhat.com>
215
216 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
217
1c33c9b7
JJ
2182014-04-22 Jakub Jelinek <jakub@redhat.com>
219
220 PR sanitizer/60275
221 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
222 if flag_sanitize_undefined_trap_on_error.
223 (ubsan_instrument_division, ubsan_instrument_shift,
224 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
225 if !flag_sanitize_recover.
226
793c625f
MG
2272014-04-22 Marc Glisse <marc.glisse@inria.fr>
228
229 PR libstdc++/43622
230 * c-common.c (registered_builtin_types): Make non-static.
231 * c-common.h (registered_builtin_types): Declare.
232
b0f1bf36
RB
2332014-04-14 Richard Biener <rguenther@suse.de>
234 Marc Glisse <marc.glisse@inria.fr>
235
236 PR c/60819
237 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
238 apply may-alias the scalar pointer type when applicable.
239
3b07fa4a
IZ
2402014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
241
242 PR middle-end/60467
243 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
244 as possible argument for Cilk_spawn.
245
cbbd2b1c
TB
2462014-04-11 Tobias Burnus <burnus@net-b.de>
247
248 PR c/60194
249 * c.opt (Wformat-signedness): Add
250 * c-format.c(check_format_types): Use it.
251
6415bd5d
JM
2522014-04-11 Jason Merrill <jason@redhat.com>
253
254 PR c++/57926
255 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
256 default_conversion for an array argument.
257
6525783a
MP
2582014-04-08 Marek Polacek <polacek@redhat.com>
259
260 PR sanitizer/60745
261 * c-ubsan.c: Include asan.h.
262 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
263
880a467b
NS
2642014-04-03 Nathan Sidwell <nathan@codesourcery.com>
265
266 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
267
7b59ff2d
MP
2682014-04-02 Marek Polacek <polacek@redhat.com>
269
270 * c-common.h (c_expand_expr): Remove declaration.
271
8edbfaa6
JJ
2722014-03-28 Jakub Jelinek <jakub@redhat.com>
273
274 PR c++/60689
275 * c-common.c (add_atomic_size_parameter): When creating new
276 params vector, push the size argument first.
277
07d72e1d
JJ
2782014-03-26 Jakub Jelinek <jakub@redhat.com>
279
280 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
281 ubsan_instrument_vla, ubsan_instrument_return): Adjust
282 ubsan_create_data callers.
283
b35e0fa0
JJ
2842014-03-22 Jakub Jelinek <jakub@redhat.com>
285
286 PR debug/60603
287 * c-opts.c (c_finish_options): Restore cb_file_change call to
288 <built-in>.
289
39a1ebb3
JJ
2902014-03-13 Jakub Jelinek <jakub@redhat.com>
291
292 PR middle-end/36282
293 * c-pragma.c (apply_pragma_weak): Only look at
294 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
295 DECL_ASSEMBLER_NAME_SET_P (decl).
296 (maybe_apply_pending_pragma_weaks): Exit early if
297 vec_safe_is_empty (pending_weaks) rather than only when
298 !pending_weaks.
299 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
300 set assembler name back to NULL afterwards.
301
a07f6ed2
JM
3022014-03-11 Jason Merrill <jason@redhat.com>
303
304 * c.opt: Add -std=gnu++14.
305
75b107f5
IB
3062014-03-11 Ian Bolton <ian.bolton@arm.com>
307
308 * c-opts.c (c_common_post_options): Don't override
309 -ffp-contract=fast if unsafe-math-optimizations is on.
310
f42c637e
PM
3112014-03-08 Paulo Matos <paulo@matos-sorge.com>
312
313 * c.opt: Enable LTO FE for fshort-double.
314
70e24808
JM
3152014-03-07 Jason Merrill <jason@redhat.com>
316
317 * c.opt: Add -std=c++14.
318
3af9c5e9
MP
3192014-03-06 Marek Polacek <polacek@redhat.com>
320
321 PR c/60197
322 * cilk.c (contains_cilk_spawn_stmt): New function.
323 (contains_cilk_spawn_stmt_walker): Likewise.
324 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
325 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
326
b3bdf019
JJ
3272014-03-03 Jakub Jelinek <jakub@redhat.com>
328
329 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
330 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
331 even when flag_preprocess_only.
332
ca7e759d
JM
3332014-02-26 Jason Merrill <jason@redhat.com>
334
335 PR c++/59231
336 PR c++/11586
337 * c-common.c (shorten_compare): Don't check
338 c_inhibit_evaluation_warnings.
339
28e41874
JJ
3402014-02-19 Jakub Jelinek <jakub@redhat.com>
341
cca615af
JJ
342 PR c/37743
343 * c-common.c (c_common_nodes_and_builtins): When initializing
344 c_uint{16,32,64}_type_node, also set corresponding
345 uint{16,32,64}_type_node to the same value.
346
28e41874
JJ
347 PR c++/60267
348 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
349 for PRAGMA_IVDEP if flag_preprocess_only.
350
c2bf53a1
JJ
3512014-02-12 Jakub Jelinek <jakub@redhat.com>
352
353 PR c/60101
354 * c-common.c (merge_tlist): If copy is true, call new_tlist,
355 if false, add ADD itself, rather than vice versa.
356 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
357 copy. For SAVE_EXPR, only call merge_tlist once.
358
8fcbce72
JJ
3592014-02-08 Jakub Jelinek <jakub@redhat.com>
360
361 PR middle-end/60092
362 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
363 and tree_to_uhwi.
364 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
365 functions.
366 (c_common_attribute_table): Add alloc_align and assume_aligned
367 attributes.
368
0a756a3f
MP
3692014-02-06 Marek Polacek <polacek@redhat.com>
370
371 PR c/60087
372 * c-common.c (warn_for_sign_compare): Call warning_at with location
373 instead of warning.
374
7ec4847a
MP
3752014-02-05 Marek Polacek <polacek@redhat.com>
376
377 PR c/53123
378 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
379 statement.
380
66f20604
MP
3812014-02-04 Marek Polacek <polacek@redhat.com>
382
383 PR c/60036
384 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
385 SAVE_EXPR.
386
5d77fb19
MG
3872014-02-03 Marc Glisse <marc.glisse@inria.fr>
388
389 PR c++/53017
390 PR c++/59211
391 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
392 handle_vector_size_attribute, handle_nonnull_attribute): Call
393 default_conversion on the attribute argument.
394 (handle_nonnull_attribute): Increment the argument number.
395
81e5eca8
MP
3962014-01-31 Marek Polacek <polacek@redhat.com>
397
398 PR c/59963
399 * c-common.c (add_atomic_size_parameter): Pass vNULL to
400 build_function_call_vec.
401 (resolve_overloaded_builtin): Likewise.
402 * c-common.h (build_function_call_vec): Adjust declaration.
403
68fca595
MP
4042014-01-30 Marek Polacek <polacek@redhat.com>
405
406 PR c/59940
407 * c-common.h (unsafe_conversion_p): Adjust declaration.
408 (warnings_for_convert_and_check): Likewise.
409 (convert_and_check): Likewise.
410 * c-common.c (unsafe_conversion_p): Add location parameter. Call
411 expansion_point_location_if_in_system_header on it.
412 (warnings_for_convert_and_check): Add location parameter. Call
413 expansion_point_location_if_in_system_header on it. Use it.
414 (convert_and_check): Add location parameter. Use it.
415 (conversion_warning): Likewise.
416 (c_add_case_label): Adjust convert_and_check calls.
417 (scalar_to_vector): Adjust unsafe_conversion_p calls.
418
b72271b9
BI
4192014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
420
421 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
422 flag_cilkplus.
423 * c-pragma.c (init_pragma): Likewise.
424 * c.opt: Likewise.
425
393e8e8b
MP
4262014-01-23 Marek Polacek <polacek@redhat.com>
427
428 PR c/59846
429 * c-common.c (shorten_compare): Add location_t parameter.
430 * c-common.h (shorten_binary_op): Adjust declaration.
431
f04dda30
MP
4322014-01-23 Marek Polacek <polacek@redhat.com>
433
434 PR c/58346
435 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
436 * c-common.h: Declare it.
437
621955cb
EB
4382014-01-20 Eric Botcazou <ebotcazou@adacore.com>
439
440 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
441 * c-ada-spec.c (dump_ads): Likewise.
442 (cpp_check): Likewise.
443 (dump_ada_specs): Likewise.
444
4452014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
446
447 PR c++/49718
448 * c-common.c (handle_no_instrument_function_attribute): Allow
449 no_instrument_function attribute in class member
450 definition/declaration.
451
241f845a
JJ
4522014-01-15 Jakub Jelinek <jakub@redhat.com>
453
454 PR c/58943
455 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
456 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
457 being COMPOUND_EXPR.
458 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
459 operand a SAVE_EXPR and second MODIFY_EXPR.
460
e83b8e2e
JJ
4612014-01-09 Jakub Jelinek <jakub@redhat.com>
462
463 PR target/58115
464 * c-pch.c (c_common_write_pch): Call
465 prepare_target_option_nodes_for_pch.
466
23a5b65a
RS
4672014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
468
469 Update copyright years
470
f9030485
RS
4712014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
472
473 * array-notation-common.c, c-cilkplus.c: Use the standard form for
474 the copyright notice.
475
f2aa696b
EB
4762013-12-28 Eric Botcazou <ebotcazou@adacore.com>
477
478 * c-ada-spec.c (print_constructor): New function.
479 (print_destructor): Retrieve the origin of the destructor.
480 (print_ada_declaration): Revamp handling of constructors/destructors.
481
1f26ac87
JM
4822013-12-23 Stuart Hastings <stuart@apple.com>
483 Bill Maddox <maddox@google.com>
484 Jason Merrill <jason@redhat.com>
485
486 * c.opt: Add -fdeclone-ctor-dtor.
487 * c-opts.c (c_common_post_options): Default to on iff -Os.
488
41958c28
BI
4892013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
490
491 * c-common.c (c_common_attribute_table): Added "cilk simd function"
492 attribute.
493 * c-pragma.h (enum pragma_cilk_clause): Remove.
494 (enum pragma_omp_clause): Added the following fields:
495 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
496 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
497 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
498 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
499 PRAGMA_CILK_CLAUSE_UNIFORM.
500
501
12893402
BI
5022013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
503
504 * cilk.c (cilk_outline): Made this function non-static.
505 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
506 (create_cilk_wrapper): Added a new parameter: a function pointer.
507 (c_install_body_w_frame_cleanup): Remove
508 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
509 * c-common.h (cilk_outline): New prototype.
510 (gimplify_cilk_spawn): Removed two parameters.
511 (cilk_install_body_with_frame_cleanup): New prototype.
512 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
513 CILK_SPAWN_STMT case.
514
085b42ed
BS
5152013-12-11 Bernd Schmidt <bernds@codesourcery.com>
516
2ce064c3
BS
517 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
518
085b42ed
BS
519 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
520 (int_array_type_node): Remove.
521 * c-common.c (c_common_nodes_and_builtins): Don't build it.
522
9e36c9ed
MP
5232013-12-05 Marek Polacek <polacek@redhat.com>
524
525 PR c/52023
526 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
527 [ADJUST_FIELD_ALIGN].
528
296674db
JM
5292013-12-04 Joseph Myers <joseph@codesourcery.com>
530
531 PR c/52023
532 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
533 and check field alignment if set.
534 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
535 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
536
31e071ae
MP
5372013-12-04 Jakub Jelinek <jakub@redhat.com>
538 Marek Polacek <polacek@redhat.com>
539
540 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
541 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
542
d7947e19
L
5432013-11-29 H.J. Lu <hongjiu.lu@intel.com>
544
545 PR c/59309
546 * cilk.c (gimplify_cilk_spawn): Properly handle function without
547 arguments.
548
fad7652e
JJ
5492013-11-29 Jakub Jelinek <jakub@redhat.com>
550
551 PR c/59280
552 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
553 goto invalid. If it is error_mark_node, don't issue further
554 diagnostics.
555
8b5e1202
SO
5562013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
557
558 * c.opt (Wopenmp-simd): New.
559
0a508bb6
JJ
5602013-11-22 Jakub Jelinek <jakub@redhat.com>
561
562 * c-ubsan.h (ubsan_instrument_return): New prototype.
563 * c-ubsan.c (ubsan_instrument_return): New function.
564
2fb9a547
AM
5652013-11-22 Andrew MacLeod <amacleod@redhat.com>
566
567 * c-common.c: Add required include files from gimple.h.
568 * c-gimplify.c: Likewise
569 * cilk.c: Likewise
570
8400e75e
DM
5712013-11-22 David Malcolm <dmalcolm@redhat.com>
572
573 * c-common.c (unsafe_conversion_p): Remove use of
574 EXPR_LOC_OR_HERE macro.
575 (conversion_warning): Likewise.
576 (warnings_for_convert_and_check): Likewise.
577 (warn_for_collisions_1): Likewise.
578 (shorten_compare): Likewise, and remove use of in_system_header
579 macro, using the location from the former.
580 * c-lex.c (dump_one_header): Remove use of input_filename macro.
581 (cb_def_pragma): Remove use of in_system_header macro.
582 (lex_string): Likewise.
583 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
584
eb1ce453
KZ
5852013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
586 Mike Stump <mikestump@comcast.net>
587 Richard Sandiford <rdsandiford@googlemail.com>
588
589 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
590 instead of TREE_INT_CST_LOW, in cases where there is a protecting
591 tree_fits_shwi_p or tree_fits_uhwi_p.
592 (dump_generic_ada_node): Likewise.
593 * c-format.c (check_format_arg): Likewise.
594 * c-pretty-print.c (pp_c_integer_constant): Likewise.
595
6b3b8c27
KZ
5962013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
597
598 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
599
49b0aa18
JC
6002013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
601
602 PR c/53001
603 * c-common.c (unsafe_conversion_p): Make this function
604 return an enumeration with more detail.
605 (conversion_warning): Use the new return type of
606 unsafe_conversion_p to separately warn either about conversions
607 that lower floating point number precision or about the other
608 kinds of conversions.
609 * c-common.h (enum conversion_safety): New enumeration.
610 (unsafe_conversion_p): switching return type to
611 conversion_safety enumeration.
612 * c.opt: Adding new warning -Wfloat-conversion and
613 enabling it with -Wconversion.
614
b826515a
BS
6152013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
616
617 * c-opts.c: Include plugin.h.
618 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
619
b9a55b13
MP
6202013-11-19 Marek Polacek <polacek@redhat.com>
621
622 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
623 call.
624 (ubsan_instrument_shift): Likewise.
625 (ubsan_instrument_vla): Likewise.
626
7d362f6c
RS
6272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
628
629 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
630 cast to unsigned type.
631
386b1f1f
RS
6322013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
633
634 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
635 tree_low_cst.
636 (complete_array_type): Update comment to refer to tree_to_[su]hwi
637 rather than tree_low_cst.
638
ae7e9ddd
RS
6392013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
640
641 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
642 tree_to_uhwi throughout.
643
9439e9a1
RS
6442013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
645
646 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
647 tree_low_cst (..., 0) with tree_to_shwi throughout.
648
cc269bb6
RS
6492013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
650
651 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
652 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
653
9541ffee
RS
6542013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
655
656 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
657 host_integerp (..., 0) with tree_fits_shwi_p throughout.
658
c02065fc
AH
6592013-11-15 Aldy Hernandez <aldyh@redhat.com>
660
661 * c-cilkplus.c: New file.
662 * c-common.c (readonly_error): Add location argument.
663 * c-common.h (readonly_error): Same.
664 (c_finish_cilk_clauses): Protoize.
665 (c_check_cilk_loop): Same.
666 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
667 Do not fail on error_mark_node.
668 Abstract increment canonicalization to here...
669 (c_omp_for_incr_canonicalize_ptr): New.
670 c-pragma.c (init_pragma): Register "simd" pragma.
671 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
672 (enum pragma_cilk_clause): New.
673
9cc65f15
RS
6742013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
675
676 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
677 wchar_type and host_integerp checks.
678
18f429e2
AM
6792013-11-14 Andrew MacLeod <amacleod@redhat.com>
680
681 * c-common.c: Likewise.
682 * c-gimplify.c: Likewise.
683 * cilk.c: Likewise.
684
d8a2d370
DN
6852013-11-14 Diego Novillo <dnovillo@google.com>
686
687 * c-common.c: Include fold-const.h.
688 Include stor-layout.h.
689 Include calls.h.
690 Include stringpool.h.
691 Include attribs.h.
692 Include varasm.h.
693 Include trans-mem.h.
694 * c-cppbuiltin.c: Include stor-layout.h.
695 Include stringpool.h.
696 * c-format.c: Include stringpool.h.
697 * c-lex.c: Include stringpool.h.
698 Include stor-layout.h.
699 * c-pragma.c: Include stringpool.h.
700 Include attribs.h.
701 Include varasm.h.
702 Include gcc-symtab.h.
703 * c-pretty-print.c: Include stor-layout.h.
704 Include attribs.h.
705 * cilk.c: Include stringpool.h.
706 Include calls.h.
707
38b7bc7f
JM
7082013-11-13 Joseph Myers <joseph@codesourcery.com>
709
710 * c-common.h (enum rid): Add RID_AUTO_TYPE.
711 * c-common.c (c_common_reswords): Add __auto_type.
712 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
713
45b0be94
AM
7142013-11-12 Andrew MacLeod <amacleod@redhat.com>
715
18f429e2
AM
716 * c-common.c: Include gimplify.h.
717 * c-gimplify.c: Likewise.
718 * cilk.c: Likewise.
719 * c-omp.c: Include gimple-expr.h instead of gimple.h.
720 * c-ubsan.c: Don't include gimple.h.
45b0be94 721
582d9b50
JM
7222013-11-12 Joseph Myers <joseph@codesourcery.com>
723
724 * c-common.c (c_common_reswords): Add _Thread_local.
725
6b28e197
JM
7262013-11-09 Joseph Myers <joseph@codesourcery.com>
727
728 * c-common.c (atomic_size_supported_p): New function.
729 (resolve_overloaded_atomic_exchange)
730 (resolve_overloaded_atomic_compare_exchange)
731 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
732 Use it instead of comparing size with a local list of sizes.
733
267bac10
JM
7342013-11-07 Andrew MacLeod <amacleod@redhat.com>
735 Joseph Myers <joseph@codesourcery.com>
736
737 * c-common.h (enum rid): Add RID_ATOMIC.
738 * c-common.c (c_common_reswords): Add _Atomic.
739 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
740 (keyword_is_type_qualifier): Accept RID_ATOMIC.
741 * c-format.c (check_format_types): Check for extra _Atomic
742 qualifiers in format argument.
743 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
744 (pp_c_type_qualifier_list): Mention _Atomic in comment.
745
5157b91e
TB
7462013-11-06 Tobias Burnus <burnus@net-b.de>
747
748 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
749
6dbe0958
JM
7502013-11-06 Joseph Myers <joseph@codesourcery.com>
751
752 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
753 standards modes.
754 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
755 to mean lack of IEEE 754 support.
756
e8ff5196
TB
7572013-11-05 Tobias Burnus <burnus@net-b.de>
758
759 * c.opt (-Wdate-time): New option
760 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
761
254a0760
JM
7622013-11-05 Joseph Myers <joseph@codesourcery.com>
763
764 * c-cppbuiltin.c (cpp_iec_559_value): Test
765 flag_excess_precision_cmdline not flag_excess_precision.
766
6d7f7e0a
TB
7672013-11-05 Tobias Burnus <burnus@net-b.de>
768
769 * c.opt (fopenmp-simd): New option.
770 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
771 (omp_pragmas): ... this new struct.
772 (c_pp_lookup_pragma): Also walk omp_pragmas.
773 (init_pragma): Init pragmas for -fopenmp-simd.
774
55a7f02f
MP
7752013-11-04 Marek Polacek <polacek@redhat.com>
776
777 PR c++/58979
778 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
779
9193fb05
JM
7802013-11-04 Joseph Myers <joseph@codesourcery.com>
781
782 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
783 New functions.
784 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
785
94159ecf
EB
7862013-11-04 Eric Botcazou <ebotcazou@adacore.com>
787
788 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
789 (dump_ada_specs): Adjust prototype of second callback.
790 * c-ada-spec.c (cpp_check): New global variable.
791 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
792 (print_generic_ada_decl): Likewise.
793 (has_static_fields): Change return type to bool and add guard.
794 (has_nontrivial_methods): New predicate.
795 (is_tagged_type): Change return type to bool.
796 (separate_class_package): Call has_nontrivial_methods.
797 (pp_ada_tree_identifier): Minor tweaks.
798 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
799 (dump_ada_array_domains): Likewise.
800 (dump_ada_array_type): Likewise.
801 (dump_template_types): Remove cpp_check parameter and do not pass it to
802 dump_generic_ada_node.
803 (dump_ada_template): Likewise.
804 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
805 recursively.
806 (print_ada_methods): Change return type to integer. Remove cpp_check
807 parameter and do not pass it down.
808 (dump_nested_types): Remove cpp_check parameter and do not pass it to
809 dump_generic_ada_node.
810 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
811 accessing methods.
812 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
813 down. Use has_nontrivial_methods to recognize C++ classes. Use return
814 value of print_ada_methods.
815 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
816 Set cpp_check to it before invoking dump_ada_nodes.
817 (dump_ada_specs): Likewise.
818
b906f4ca
MP
8192013-11-03 Marek Polacek <polacek@redhat.com>
820
821 * c-ubsan.c: Don't include hash-table.h.
822 (ubsan_instrument_vla): New function.
823 * c-ubsan.h: Declare it.
824
5e20cdc9
DM
8252013-10-31 David Malcolm <dmalcolm@redhat.com>
826
827 Automated part of renaming of symtab_node_base to symtab_node.
828
829 Patch autogenerated by rename_symtab.py from
830 https://github.com/davidmalcolm/gcc-refactoring-scripts
831 revision 58bb219cc090b2f4516a9297d868c245495ee622
832
833 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
834 symtab_node_base to symtab_node.
835
7057e645
ESR
8362013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
837
838 Implement C++14 digit separators.
839 * c-lex.c (interpret_float): Remove digit separators from scratch string
840 before building real literal.
841
193ea7bc
JJ
8422013-10-30 Jakub Jelinek <jakub@redhat.com>
843
844 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
845
939b37da
BI
8462013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
847
848 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
849 fields.
850 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
851 enabled.
852 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
853 (insert_cilk_frame): New prototype.
854 (cilk_init_builtins): Likewise.
855 (gimplify_cilk_spawn): Likewise.
856 (c_cilk_install_body_w_frame_cleanup): Likewise.
857 (cilk_detect_spawn_and_unwrap): Likewise.
858 (cilk_set_spawn_marker): Likewise.
859 (build_cilk_sync): Likewise.
860 (build_cilk_spawn): Likewise.
861 * cilk.c: New file.
862
67348ccc
DM
8632013-10-29 David Malcolm <dmalcolm@redhat.com>
864
865 Patch autogenerated by refactor_symtab.py from
866 https://github.com/davidmalcolm/gcc-refactoring-scripts
867 revision 58bb219cc090b2f4516a9297d868c245495ee622
868
869 * c-gimplify.c (c_genericize): Update for conversion of symtab types
870 to a true class hierarchy.
871 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
872
d570872d
RS
8732013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
874
875 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
876
98906124
JL
8772013-10-26 Jeff Law <law@redhat.com>
878
879 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
880 * c-family/c.opt: Ignore and warn for mudflap options.
881
d73749df 8822013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
883
884 PR other/33426
885 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
886 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
887
3f04b1bb
JM
8882013-10-23 Jason Merrill <jason@redhat.com>
889
890 * c-format.c (gcc_cxxdiag_char_table): Add %X.
891
acf0174b
JJ
8922013-10-11 Jakub Jelinek <jakub@redhat.com>
893
acd15a28
JJ
894 * c-common.h (omp_clause_mask::operator !=): New method.
895 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
896 instead of if (mask & something) tests everywhere.
897
acf0174b
JJ
898 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
899 201307 instead of 201107.
900 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
901 (c_common_attribute_table): Add "omp declare target" and
902 "omp declare simd" attributes.
903 (handle_omp_declare_target_attribute,
904 handle_omp_declare_simd_attribute): New functions.
905 * c-omp.c: Include c-pragma.h.
906 (c_finish_omp_taskgroup): New function.
907 (c_finish_omp_atomic): Add swapped argument, if true,
908 build the operation first with rhs, lhs arguments and use NOP_EXPR
909 build_modify_expr.
910 (c_finish_omp_for): Add code argument, pass it down to make_code.
911 (c_omp_split_clauses): New function.
912 (c_split_parallel_clauses): Removed.
913 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
914 c_omp_declare_simd_clauses_to_decls): New functions.
915 * c-common.h (omp_clause_mask): New type.
916 (OMP_CLAUSE_MASK_1): Define.
917 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
918 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
919 omp_clause_mask::operator |, omp_clause_mask::operator &,
920 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
921 omp_clause_mask::operator ==): New methods.
922 (enum c_omp_clause_split): New.
923 (c_finish_omp_taskgroup): New prototype.
924 (c_finish_omp_atomic): Add swapped argument.
925 (c_finish_omp_for): Add code argument.
926 (c_omp_split_clauses): New prototype.
927 (c_split_parallel_clauses): Removed.
928 (c_omp_declare_simd_clauses_to_numbers,
929 c_omp_declare_simd_clauses_to_decls): New prototypes.
930 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
931 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
932 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
933 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
934 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
935 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
936 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
937 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
938 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
939 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
940 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
941 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
942 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
943 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
944 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
945 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
946 PRAGMA_OMP_CLAUSE_UNIFORM.
947
826cacfe
MG
9482013-10-09 Marc Glisse <marc.glisse@inria.fr>
949
950 PR tree-optimization/20318
951 * c-common.c (handle_returns_nonnull_attribute): New function.
952 (c_common_attribute_table): Add returns_nonnull.
953
2284b034
MG
9542013-10-03 Marc Glisse <marc.glisse@inria.fr>
955
956 PR c++/19476
957 * c.opt (fcheck-new): Move to common.opt.
958
b56e9788
MP
9592013-09-25 Marek Polacek <polacek@redhat.com>
960 Jakub Jelinek <jakub@redhat.com>
961
962 PR sanitizer/58413
963 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
964 an expression if we can prove it is correct.
965 (ubsan_instrument_division): Likewise. Remove unnecessary
966 check.
967
ce6923c5
MP
9682013-09-18 Marek Polacek <polacek@redhat.com>
969
970 PR sanitizer/58411
971 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
972 Declare it.
973 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
974
fb5610fb
IS
9752013-09-14 Iain Sandoe <iain@codesourcery.com>
976
977 PR target/48094
978 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
979 fobjc-gc, freplace-objc-classes): Accept for LTO.
980
88b0e79e
JC
9812013-09-13 Jacek Caban <jacek@codeweavers.com>
982
983 * c-target.def: New hook
984
c9b0866a
PC
9852013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
986
987 PR c++/43452
988 * c.opt (Wdelete-incomplete): Add.
989
0af94e6f
JR
9902013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
991
992 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
993 (vector_types_compatible_elements_p): New function.
994 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
995 declaration.
996 (vector_types_compatible_elements_p): Declare.
997
7c26172c
GDR
9982013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
999
1000 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1001 a virtual member function.
1002 (pp_simple_type_specifier): Remove.
1003 (pp_c_type_specifier): Likewise.
1004 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1005 Rename from pp_c_type_specifier. Adjust.
1006 (c_pretty_printer::c_pretty_printer): Do not assign to
1007 simple_type_specifier.
1008
20059c8b
GDR
10092013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1010
1011 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1012 member function.
1013 (c_pretty_printer::storage_class_specifier): Likewise.
1014 (c_pretty_printer::initializer): Likewise.
1015 (pp_declaration): Remove.
1016 (pp_declaration_specifiers): Likewise.
1017 (pp_abstract_declarator): Likewise.
1018 (pp_declarator): Likewise.
1019 (pp_type_id): Likewise.
1020 (pp_statement): Likewise.
1021 (pp_constant): Likewise.
1022 (pp_id_expression): Likewise.
1023 (pp_primary_expression): Likewise.
1024 (pp_unary_expression): Likewise.
1025 (pp_multiplicative_expression): Likewise.
1026 (pp_conditional_expression): Likewise.
1027 (pp_assignment_expression): Likewise.
1028 (pp_expression): Likewise.
1029 (pp_c_type_id): Likewise.
1030 (pp_c_storage_class_specifier): Likewise.
1031 * c-pretty-print.c (pp_c_type_cast): Tidy.
1032 (pp_c_pointer): Likewise.
1033 (pp_c_type_specifier): Likewise.
1034 (pp_c_parameter_type_list): Likewise.
1035 (pp_c_function_definition): Likewise.
1036 (pp_c_init_declarator): Likewise.
1037 (pp_c_initializer_list): Likewise.
1038 (pp_c_constructor_elts): Likewise.
1039 (c_pretty_printer::direct_abstract_declarator): Likewise.
1040 (c_pretty_printer::declaration_specifiers): Likewise.
1041 (c_pretty_printer::primary_expression): Likewise.
1042 (c_pretty_printer::postfix_expression): Likewise.
1043 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1044 (c_pretty_printer::storage_class_specifier): Rename from
1045 pp_c_storage_class_specifier.
1046 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1047 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1048 storage_class_specifier, initializer, offset_list, flags.
1049
de5a5fa1
MP
10502013-08-30 Marek Polacek <polacek@redhat.com>
1051
1052 * c-ubsan.c: New file.
1053 * c-ubsan.h: New file.
1054
8f0e4d72
GDR
10552013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1056
1057 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1058 member function.
1059 (c_pretty_printer::declaration_specifiers): Likewise.
1060 (c_pretty_printer::declarator): Likewise.
1061 (c_pretty_printer::abstract_declarator): Likewise.
1062 (c_pretty_printer::direct_abstract_declarator): Likewise.
1063 (c_pretty_printer::direct_declarator): Likewise.
1064 (c_pretty_printer::function_specifier): Likewise.
1065 (pp_declaration): Adjust.
1066 (pp_declaration_specifiers): Likewise.
1067 (pp_abstract_declarator): Likewise.
1068 (pp_direct_declarator): Likewise.
1069 (pp_function_specifier): Likewise.
1070 (pp_direct_abstract_declarator): Remove as unused.
1071 (pp_c_declaration): Remove.
1072 (pp_c_declaration_specifiers): Likewise.
1073 (pp_c_declarator): Likewise.
1074 (pp_c_direct_declarator): Likewise.
1075 (pp_c_function_specifier): Likewise.
1076 (pp_c_direct_abstract_declarator): Likewise.
1077 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1078 from pp_c_abstract_declarator. Adjust.
1079 (c_pretty_printer::direct_abstract_declarator): Rename from
1080 pp_c_direct_abstract_declarator. Adjust.
1081 (c_pretty_printer::function_specifier): Rename from
1082 pp_c_function_specifier. Adjust.
1083 (c_pretty_printer::declaration_specifiers): Rename from
1084 pp_c_declaration_specifiers. Adjust.
1085 (c_pretty_printer::direct_declarator): Rename from
1086 pp_c_direct_declarator. Adjust.
1087 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1088 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1089 (c_pretty_printer::c_pretty_printer): Do not assign to
1090 declaration, declaration_specifiers, declarator,
1091 direct_declarator, direct_abstract_declarator, function_specifier.
1092
00d34d3a
GDR
10932013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1094
1095 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1096 virtual member function.
1097 (c_pretty_printer::multiplicative_expression): Likewise.
1098 (c_pretty_printer::conditional_expression): Likewise.
1099 (c_pretty_printer::assignment_expression): Likewise.
1100 (c_pretty_printer::expression): Likewise.
1101 (pp_unary_expression): Adjust.
1102 (pp_multiplicative_expression): Likewise.
1103 (pp_assignment_expression): Likewise.
1104 (pp_conditional_expression): Likewise.
1105 (pp_expression): Likewise.
1106 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1107 from pp_c_unary_expression. Adjust.
1108 (c_pretty_printer::multiplicative_expression): Rename from
1109 pp_c_multiplicative_expression. Adjust.
1110 (c_pretty_printer::conditional_expression): Rename from
1111 pp_c_conditional_expression. Adjust.
1112 (c_pretty_printer::assignment_expression): Rename from
1113 pp_c_assignment_expression. Adjust.
1114 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1115 (c_pretty_printer::c_pretty_printer): Do not assign to
1116 unary_expression, multiplicative_expression,
1117 conditional_expression, expression.
1118
fb22178f
GDR
11192013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1120
1121 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1122 virtual member function.
1123 (pp_postfix_expression): Adjust.
1124 (pp_c_postfix_expression): Remove.
1125 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1126 from pp_c_postfix_expression. Adjust.
1127 (c_pretty_printer::c_pretty_printer): Do not assign to
1128 postfix_expression.
1129
7ecc2600
GDR
11302013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1131
1132 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1133 virtua member function.
1134 (pp_primary_expression): Adjust.
1135 (pp_c_primary_expression): Remove.
1136 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1137 from pp_c_primary_expression. Adjust.
1138 (pp_c_initializer_list): Use pp_primary_expression.
1139 (c_pretty_printer::c_pretty_printer): Do not assign to
1140 primary_expression.
1141
0691175f
GDR
11422013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1143
1144 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1145 * c-pretty-print.c (M_): Remove.
1146 (c_pretty_printer::translate_string): Define.
1147 (pp_c_type_specifier): Use it.
1148 (pp_c_primary_expression): Likewise.
1149 (pp_c_expression): Likewise.
1150
66dfe4c4
GDR
11512013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1152
1153 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1154 virtual function.
1155 (pp_c_id_expression): Remove.
1156 (pp_id_expression): Adjust.
1157 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1158 pp_c_id_expression. Adjust.
1159 (pp_c_postfix_expression): Use pp_id_expression.
1160 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1161
ca43e9d5
GDR
11622013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1163
1164 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1165 member function.
1166 (pp_constant): Adjust.
1167 (pp_c_constant): Remove.
1168 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1169 pp_c_constant. Adjust.
1170 (pp_c_constant)
1171 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1172 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1173
da6ca2b5
GDR
11742013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1175
1176 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1177 (c_pretty_printer::c_pretty_printer): Declare.
1178 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1179 c_pretty_printer_init. Adjust.
1180 (print_c_tree): Do not call c_pretty_printer_init.
1181 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1182
65a372f4
AC
11832013-08-09 Arnaud Charlet <charlet@adacore.com>
1184
1185 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1186
fd9b0f32
PC
11872013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1188
1189 PR c++/58080
1190 * c-common.c (pointer_int_sum): Add bool parameter.
1191 * c-common.h (pointer_int_sum): Adjust declaration.
1192
e0aec1e9
GDR
11932013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1194
1195 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1196 c_pretty_printer variable.
1197
b066401f
GDR
11982013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1199
1200 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1201 (pp_base): Remove.
1202 (pp_c_base): Likewise. Adjust users.
1203 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1204 (pp_c_whitespace): Do not call pp_base.
1205 (pp_c_left_paren): Likewise.
1206 (pp_c_right_paren): Likewise.
1207 (pp_c_left_brace): Likewise.
1208 (pp_c_right_brace): Likewise.
1209 (pp_c_left_bracket): Likewise.
1210 (pp_c_right_bracket): Likewise.
1211 (pp_c_dot): Likewise.
1212 (pp_c_ampersand): Likewise.
1213 (pp_c_star): Likewise.
1214 (pp_c_arrow): Likewise.
1215 (pp_c_semicolon): Likewise.
1216 (pp_c_complement): Likewise.
1217 (pp_c_exclamation): Likewise.
1218 (pp_c_direct_declarator): Likewise.
1219 (pp_c_ws_string): Likewise.
1220 (pp_c_identifier): Likewise.
1221 (pp_c_statement): Likewise.
1222 (print_c_tree): Likewise.
1223
65e5a578
ESR
12242013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1225
1226 PR c++/58072
1227 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1228 provide useful error strings.
1229
137a1a27
GDR
12302013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1231
1232 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1233 printer functions instead of pp_string or operators and punctuators.
1234 (dump_generic_ada_node): Likewise.
1235 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1236 (pp_c_relational_expression): Likewise.
1237 (pp_c_logical_or_expression): Likewise.
1238
07838b13
GDR
12392013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1240
1241 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1242 functions instead of pp_character.
1243 (pp_ada_tree_identifier): Likewise.
1244 (dump_ada_double_name): Likewise.
1245 (dump_ada_function_declaration): Likewise.
1246 (dump_ada_array_domains): Likewise.
1247 (dump_template_types): Likewise.
1248 (dump_generic_ada_node): Likewise.
1249 (print_ada_declaration): Likewise.
1250 (print_ada_struct_decl): Likewise.
1251 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1252
433cc7b0
TT
12532013-07-23 Tom Tromey <tromey@redhat.com>
1254
1255 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1256 * c-common.c (c_common_reswords): Add _Generic.
1257
688010ba
OB
12582013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1259
1260 * c-common.c: Fix typos.
1261 * c-common.h: Likewise.
1262
2a99e5e6
LL
12632013-07-13 Lubos Lunak <l.lunak@suse.cz>
1264
1265 PR c++/55203
1266 * c-common.c (c_common_attribute_table): Add warn_unused.
1267 (handle_warn_unused_attribute): New.
1268
c26302d5
JJ
12692013-07-10 Jakub Jelinek <jakub@redhat.com>
1270
1271 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1272 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1273
dfeadaa0
PC
12742013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1275
1276 PR c++/57869
1277 * c.opt: Add Wconditionally-supported.
1278
6a2fa4b2
GS
12792013-07-08 Graham Stott <graham.stott@btinternet.com>
1280
1281 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1282 unused variables l_length and l_node.
1283
ecdbd01a 12842013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1285
1286 PR c/57821
1287 * c-common.c (complete_array_type): Delay folding first index
1288 like other indices. When folding, check for index overflow.
1289
bedc293e
MG
12902013-06-27 Marc Glisse <marc.glisse@inria.fr>
1291
1292 PR c++/57509
1293 * c-common.h (c_build_vec_perm_expr): New complain argument.
1294 * c-common.c (c_build_vec_perm_expr): Likewise.
1295 Use save_expr also in C++.
1296
604b2bfc
GDR
12972013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1298
1299 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1300 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1301 * c-opts.c (c_common_post_options): Likewise.
1302
dfeadaa0 13032013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1304
1305 * array-notation-common.c (length_mismatch_in_expr): Changed the
1306 parameter type's from a dynamic array to a vec_tree. Also removed
1307 the size parameters.
1308 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1309 the change above.
1310
2ce86d2e
BI
13112013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1312
1313 * c-common.h (struct cilkplus_an_parts): New structure.
1314 (struct cilkplus_an_loop_parts): Likewise.
1315 (cilkplus_extract_an_triplets): New prototype.
1316 (fix_sec_implicit_args): Likewise.
1317 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1318 (fix_sec_implicit_args): Likewise.
604b2bfc 1319
07a6825b
BI
13202013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1321
1322 * array-notation-common.c (find_inv_trees): Removed an unwanted
1323 typecasting.
1324 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1325 enum rid to enum tree_code.
1326
08346abd
JH
13272013-06-11 Jan Hubicka <jh@suse.cz>
1328
1329 * c-common.c (handle_alias_ifunc_attribute): Do not set
1330 DECL_EXTERNAL for weakref variables.
1331 * c-pragma.c (handle_pragma_weak): Make sure aliases
1332 are not declared as external.
1333
d60f1706
BI
13342013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1335
1336 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1337 function from c/c-array-notation.c.
1338 (is_cilkplus_reduce_builtin): Likewise.
1339 (find_rank): Likewise.
1340 (extract_array_notation_exprs): Likewise.
1341 (replace_array_notations): Likewise.
1342 (find_inv_trees): Likewise.
1343 (replace_inv_trees): Likewise.
1344 (contains_array_notation_expr): Likewise.
1345 (find_correct_array_notation_type): Likewise.
1346 * c-common.h (struct inv_list): Moved this struct from the file
1347 c/c-array-notation.c and added a new field called additional tcodes.
1348 (length_mismatch_in_expr_p): New prototype.
1349 (is_cilkplus_reduce_builtin): Likewise.
1350 (find_rank): Likewise.
1351 (extract_array_notation_exprs): Likewise.
1352 (replace_array_notation): Likewise.
1353 (find_inv_trees): Likewise.
1354 (replace_inv_trees): Likewise.
1355 (find_correct_array_notation_type): Likewise.
dfeadaa0 1356
36536d79
BI
13572013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1358
1359 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1360 function array_notation_init_builtins is called.
1361 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1362 * c-common.def (ARRAY_NOTATION_REF): New tree.
1363 * c-common.h (build_array_notation_expr): New function declaration.
1364 (build_array_notation_ref): Likewise.
1365 (extract_sec_implicit_index_arg): New extern declaration.
1366 (is_sec_implicit_index_fn): Likewise.
1367 (ARRAY_NOTATION_CHECK): New define.
1368 (ARRAY_NOTATION_ARRAY): Likewise.
1369 (ARRAY_NOTATION_START): Likewise.
1370 (ARRAY_NOTATION_LENGTH): Likewise.
1371 (ARRAY_NOTATION_STRIDE): Likewise.
1372 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1373 ARRAY_NOTATION_REF.
1374 (pp_c_expression): Likewise.
1375 * c.opt (flag_enable_cilkplus): New flag.
1376 * array-notation-common.c: New file.
1377
f7716d57
JJ
13782013-05-14 Jakub Jelinek <jakub@redhat.com>
1379
1380 PR c++/57274
1381 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1382
a5e0cd1d
MG
13832013-05-10 Marc Glisse <marc.glisse@inria.fr>
1384
1385 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1386 vectors.
1387
f6bc1c4a
HS
13882013-05-07 Han Shen <shenhan@google.com>
1389
1390 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1391
3f12f6e9
SKS
13922013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1393
1394 * c-common.c (check_user_alignment): Emit error for negative values.
1395
61949153
PC
13962013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1397
1398 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1399
e93e18e9
PC
14002013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1401
1402 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1403 __GXX_EXPERIMENTAL_CXX1Y__.
1404
44d90fe1
PC
14052013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1406 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1407
1408 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1409 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1410 to simply use OPT_Wpointer_arith.
1411 (c_sizeof_or_alignof_type): Likewise.
1412
13f39b2e
PC
14132013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1414
1415 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1416
4b84d650
JJ
14172013-04-12 Jakub Jelinek <jakub@redhat.com>
1418
1419 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1420 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1421 specifiers.
1422
fb037b5d
SB
14232013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1424
1425 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1426
4e856798
PC
14272013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1428
1429 * c-common.c (pointer_int_sum): Remove dead code.
1430
4b1baac8
RS
14312013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1432
1433 PR middle-end/56524
1434 * c-common.c (handle_optimize_attribute): Don't call
1435 save_optabs_if_changed.
1436
0b50e654
JJ
14372013-03-05 Jakub Jelinek <jakub@redhat.com>
1438
1439 PR middle-end/56461
1440 * c-pch.c (pch_init): Free target_validity at the end.
1441
48c41403
JJ
14422013-03-04 Jakub Jelinek <jakub@redhat.com>
1443
1444 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1445
e664c61c
KS
14462013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1447 Jakub Jelinek <jakub@redhat.com>
1448
1449 PR sanitizer/56454
1450 * c-common.c (handle_no_sanitize_address_attribute): New function.
1451 (c_common_attribute_table): Add no_sanitize_address attribute.
1452 (handle_no_address_safety_analysis_attribute): Add
1453 no_sanitize_address attribute, not no_address_safety_analysis
1454 attribute.
1455
a475fd3d 14562013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1457
1458 PR target/52555
1459 * c-common.c (handle_optimize_attribute): Call
1460 save_optabs_if_changed.
1461
f6007d99
JJ
14622013-02-18 Jakub Jelinek <jakub@redhat.com>
1463 Steven Bosscher <steven@gcc.gnu.org>
1464
1465 PR pch/54117
1466 * c-opts.c (c_common_post_options): If debug info is enabled
1467 and non-dwarf*, refuse to load PCH files and when writing PCH
1468 file warn.
1469
cf35e2b1
JJ
14702013-02-05 Jakub Jelinek <jakub@redhat.com>
1471
1472 PR middle-end/56167
1473 * c-common.c (handle_error_attribute): Fix condition.
1474
32887460
JJ
14752013-01-30 Jakub Jelinek <jakub@redhat.com>
1476
1477 PR c++/55742
1478 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1479
5af057d8
JM
14802013-01-18 Jason Merrill <jason@redhat.com>
1481
1482 PR target/54908
1483 * c.opt (-fextern-tls-init): New.
1484 * c-opts.c (c_common_post_options): Handle it.
1485
cc83c823
JJ
14862013-01-09 Jakub Jelinek <jakub@redhat.com>
1487
1488 PR c/48418
1489 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1490 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1491 and is either negative or bigger or equal to type precision
1492 of the first operand.
1493
a859517f
MP
14942012-12-03 Marek Polacek <polacek@redhat.com>
1495
1496 PR c/55570
1497 * c-common.c (check_user_alignment): Swap order of tests,
1498 check TREE_CODE first.
1499
2d7aa578
ESR
15002012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1501
1502 PR c++/52654
1503 * c-common.h (overflow_type): New enum.
1504 (build_userdef_literal): Add overflow_type argument.
1505 (tree_userdef_literal): Add overflow_type.
1506 (USERDEF_LITERAL_OVERFLOW): New access macro.
1507 * c-common.c (build_userdef_literal): Add overflow_type
1508 argument.
1509 * c-lex.c (c_lex_with_flags): Add overflow_type to
1510 build_userdef_literal calls.
1511 (interpret_integer, interpret_float): Add overflow_type argument.
1512
cc3c4f62
RB
15132012-11-28 Richard Biener <rguenther@suse.de>
1514
1515 PR c/35634
1516 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1517 here and use a type with proper overflow behavior for types that would
1518 need to be promoted for the arithmetic.
1519
77bc5132
JJ
15202012-11-23 Jakub Jelinek <jakub@redhat.com>
1521
1522 PR sanitizer/55435
1523 * c-common.c (handle_no_address_safety_analysis_attribute): New
1524 function.
1525 (c_common_attribute_table): Add no_address_safety_analysis.
1526
5dc99c46
SB
15272012-11-16 Simon Baldwin <simonb@google.com>
1528
1529 * c.opt: Add f[no-]canonical-system-headers.
1530 * c-opts.c (c_common_handle_option): Handle
1531 OPT_fcanonical_system_headers.
1532
a4a0016d
ESR
15332012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1534
1535 PR c++/54413
1536 * c-opts.c (c_common_handle_option): Set new flags.
1537 * c.opt: Describe new flags.
1538
7dbb85a7
JM
15392012-11-09 Jason Merrill <jason@redhat.com>
1540
1541 * c.opt (Wabi-tag): New.
1542
ad7bac31
AK
15432012-11-09 Andi Kleen <ak@linux.intel.com>
1544
1545 PR 55139
1546 * c-common.c (get_atomic_generic_size): Mask with
1547 MEMMODEL_MASK
1548
7332899a
MLI
15492012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1550
1551 PR c/53063
1552 * c.opt (Wformat): Make it Alias Wformat=1.
1553 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1554 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1555 LangEnabledBy.
1556 (Wformat=): RejectNegative. Use LangEnabledBy.
1557 (Wnonnull): Use LangEnabledBy.
1558 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1559 * c-format.c (set_Wformat): Delete.
1560 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1561 (maybe_read_dollar_number): Likewise.
1562 (avoid_dollar_number): Likewise.
1563 (finish_dollar_format_checking): Likewise.
1564 (check_format_info): Likewise.
1565 (check_format_info_main): Likewise.
1566 (check_format_types): Likewise.
1567 (format_type_warning): Likewise.
1568 * c-common.c (int): Likewise.
1569 (check_function_sentinel): Likewise.
1570 * c-common.h (warn_format,set_Wformat): Do not declare here.
1571
34a180a6
MLI
15722012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1573
1574 PR c/53063
1575 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1576 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1577 Use LangEnabledBy.
1578 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1579 common.opt.
1580 (Wvariadic-macros): Init(1).
1581 * c-opts.c (c_common_handle_option): Do not handle them
1582 explicitly.
1583 (c_common_post_options): Likewise.
1584 (sanitize_cpp_opts): warn_unused_macros is now
1585 cpp_warn_unused_macros.
1586 (push_command_line_include): Likewise.
1587 * c-common.c (warn_unknown_pragmas): Do not define.
1588 * c-common.h (warn_unknown_pragmas): Do not declare.
1589
3f46d6a5
MLI
15902012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1591
1592 PR c/51294
1593 * c-common.c (conversion_warning): Handle conditional expressions.
1594
880661a4
JW
15952012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1596
1597 PR c++/54930
1598 * c.opt (Wreturn_local_addr): Define new option.
1599
4514a96b
JM
16002012-10-25 Jason Merrill <jason@redhat.com>
1601
f14edc1a
JM
1602 * c.opt (Wvirtual-move-assign): New.
1603
4514a96b
JM
1604 * c.opt (Winherited-variadic-ctor): New.
1605
93100c6b
MG
16062012-10-25 Marc Glisse <marc.glisse@inria.fr>
1607
1608 PR c++/54427
1609 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1610
1efcb8c6
JM
16112012-10-23 Joseph Myers <joseph@codesourcery.com>
1612
1613 * c-common.h (pch_cpp_save_state): Declare.
1614 * c-target.def (c_preinclude): New hook.
1615 * c-opts.c (done_preinclude): New.
1616 (push_command_line_include): Handle default preincluded header.
1617 (cb_file_change): Call pch_cpp_save_state when calling
1618 push_command_line_include.
1619 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1620 (pch_cpp_save_state): New.
1621 (pch_init): Call pch_cpp_save_state conditionally, instead of
1622 calling cpp_save_state.
1623
4a0ae68e
MLI
16242012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1625
1626 PR c/53063
1627 PR c/40989
1628 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1629 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1630 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1631 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1632 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1633 * c-opts.c (c_common_handle_option): Remove explicit handling from
1634 here.
1635 (c_common_post_options): Likewise.
1636
67e4210b
EB
16372012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1638
1639 * c-ada-spec.c (LOCATION_COL): Delete.
1640 (compare_location): New function.
1641 (compare_node): Use it.
1642 (compare_comment): Likewise.
1643
65d4f2cd
MLI
16442012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1645
1646 PR c/53063
1647 PR c/40989
1648 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1649 * c-opts.c (c_common_handle_option): Do not set them here. Add
1650 comment.
1651 (c_common_post_options): Likewise.
1652
909881cb
EB
16532012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1654
1655 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1656 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1657 Remove POINTER_TYPE handling, add large unsigned handling and use
1658 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1659
3a785c97
JJ
16602012-10-12 Jakub Jelinek <jakub@redhat.com>
1661
1662 PR c/54381
1663 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1664 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1665 locs and array of 3 trees instead of just single loc and single
1666 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1667 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1668 For *cmp* builtins that take two sources strings report warnings
1669 about first and second source, not about destination and source.
1670
5e54f81d
MG
16712012-10-12 Marc Glisse <marc.glisse@inria.fr>
1672
1673 PR c++/53055
1674 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1675
f5b02f1e
EB
16762012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1677
1678 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1679 declaring something coming from another file.
1680
b46dbc6c
AC
16812012-10-10 Arnaud Charlet <charlet@adacore.com>
1682
f5b02f1e 1683 PR ada/54845
b46dbc6c
AC
1684 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1685
5d9de0d0
PC
16862012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1687
1688 PR c++/54194
1689 * c-common.c (warn_about_parentheses): Add location_t parameter;
1690 use EXPR_LOC_OR_LOC.
1691 * c-common.h: Update declaration.
1692
a212e43f
MG
16932012-10-09 Marc Glisse <marc.glisse@inria.fr>
1694
1695 PR c++/54427
1696 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1697 more operations. Make error messages optional.
1698 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1699 (scalar_to_vector): Declare.
1700
b1db7f91
JM
17012012-10-08 Jason Merrill <jason@redhat.com>
1702
1703 * c-common.c (c_common_reswords): Add thread_local.
1704
e28d52cf
DS
17052012-10-08 Dodji Seketeli <dodji@redhat.com>
1706
1707 PR c++/53528 C++11 attribute support
1708 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1709 new functions.
1710 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1711 static function.
1712 (handle_aligned_attribute): In choose strictest alignment
1713 among many. Use new check_cxx_fundamental_alignment_constraints.
1714 (handle_transparent_union_attribute): In c++11 attribute syntax,
1715 don't look through typedefs.
1716
3b78de56
AC
17172012-10-04 Arnaud Charlet <charlet@adacore.com>
1718
1719 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1720 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1721 out of dumpfile.h.
1722
6040bb5f
DC
17232012-09-25 Dehao Chen <dehao@google.com>
1724
1725 PR middle-end/54645
3b78de56 1726 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1727 map when read in the pch.
1728
0b07a57e
AC
17292012-09-18 Arnaud Charlet <charlet@adacore.com>
1730
1731 * c-ada-spec.c: Style fixes.
1732
da5182be
TQ
17332012-09-18 Thomas Quinot <quinot@adacore.com>
1734
1735 * c.opt (-fada-spec-parent): Define new command line switch.
1736 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1737 is specified, generate binding spec as a child of the specified unit.
1738
0ccb505d
PC
17392012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1740 Manuel López-Ibáñez <manu@gcc.gnu.org>
1741
1742 PR c++/53210
1743 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1744
c583af79
AC
17452012-08-23 Arnaud Charlet <charlet@adacore.com>
1746
1747 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1748 for pointers, and add missing Convention C pragma.
1749 (print_ada_struct_decl): Add missing aliased keyword.
1750 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1751
1a4049e7
JJ
17522012-08-17 Jakub Jelinek <jakub@redhat.com>
1753
1754 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1755 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1756 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1757 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1758 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1759
70b5e7dc
RG
17602012-08-10 Richard Guenther <rguenther@suse.de>
1761
1762 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1763
f8923f7e
SB
17642012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1765
1766 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1767 instead of separate pp_newline and pp_flush.
1768 (print_c_tree): Likewise.
1769
e45abe1f
RH
17702012-07-26 Richard Henderson <rth@redhat.com>
1771
1772 * c-common.c (handle_hot_attribute): Allow labels.
1773 (handle_cold_attribute): Likewise.
1774
332f1d24
JJ
17752012-07-20 Jakub Jelinek <jakub@redhat.com>
1776
1777 PR c++/28656
1778 * c-common.c (check_function_nonnull): Handle multiple nonnull
1779 attributes properly.
1780
7ee2468b
SB
17812012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1782
1783 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1784 * c-ada-spec.c: Likewise.
1785 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1786
ee7b28eb
SB
17872012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1788
1789 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1790 Remove code conditional on it.
1791
6bdf3519
SB
17922012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1793
1794 * c-gimplify.c: Do not include basic-block.h.
1795 * c-common.c: Do not include linfuncs.h.
1796
532aafad
SB
17972012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1798
1799 * c-common.h: Include tree.h.
1800
8d0d1915
JM
18012012-07-02 Jason Merrill <jason@redhat.com>
1802
1803 PR c++/53524
1804 * c-common.c (get_priority): Call default_conversion.
1805
fbc873ad
UB
18062012-07-01 Uros Bizjak <ubizjak@gmail.com>
1807
1808 * c-pch.c (c_common_write_pch): Remove unused variables.
1809
d4a10d0a
SB
18102012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1811
1812 * cppspec.c: Moved from gcc/ to here.
1813
6f3a2e23
KT
18142012-06-27 Kai Tietz <ktietz@redhat.com>
1815
1816 PR preprocessor/37215
1817 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1818
8ca92d04
SB
18192012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1820
1821 * c-common.h (c_common_print_pch_checksum): Remove.
1822 * c-pch.c: Do not include output.h.
1823 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1824 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1825 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1826 (struct c_pch_header): Remove.
1827 (get_ident): Update gpch version.
1828 (pch_init): Do not print executable_checksum to asm_out_file.
1829 Do not fail if there is no asm_out_file to read back from. Set
1830 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1831 (c_common_write_pch): Verify that nothing was written to asm_out_file
1832 since pch_init was called. Do not write a c_pch_header, and do not
1833 copy from asm_out_file to the PCH.
1834 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1835 the content of asm_out_file from the PCH.
1836 (c_common_print_pch_checksum): Remove.
1837 * c-opts.c (c_common_init): Print out executable_checksum directly.
1838
70f42967
SB
18392012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1840
1841 * c-target.def (objc_declare_unresolved_class_reference,
1842 objc_declare_class_definition): Add new hooks.
1843
a8781821
SB
18442012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1845
1846 * c-lex.c: Do not include output.h.
1847 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1848 Remove uses of ASM_OUTPUT_IDENT.
1849
9e1a8dd1
RR
18502012-06-15 Marc Glisse <marc.glisse@inria.fr>
1851
1852 PR c++/51033
1853 * c-common.h (c_build_vec_perm_expr): Move decl here.
1854 * c-common.c (c_build_vec_perm_expr): Move definition
1855 here.
1856
6f07a821
SB
18572012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1858
1859 * c.opt (fconserve-space): Turn into a no-op.
1860
9faeb493 18612012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1862
1863 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1864 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1865 both the start and end of the function.
1866
a4b7d13c
SB
18672012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1868
1869 * c-common.c: Do not include output.h.
1870 * c-pragma.c: Likewise.
1871
c265f413
SA
18722012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1873
1874 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1875 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1876 (lang_decl_name): Handle namespace decls.
1877
be7a421e
SB
18782012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1879
1880 * c-ada-spec.c: Do not include output.h.
1881 * c-semantics.c: Likewise.
1882
65de6659
JM
18832012-05-29 Joseph Myers <joseph@codesourcery.com>
1884
1885 * c-common.c: Fix typo.
1886
ca5f4331
MM
18872012-05-29 Michael Matz <matz@suse.de>
1888
1889 * c-common.h (c_expand_decl): Remove prototype.
1890
4f7f7aca
MLI
18912012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1892
1893 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1894 * c-opts.c (c_common_handle_option): Remove code handling
1895 warn_missing_braces.
1896
4a792f9b
PC
18972012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1898
1899 PR c++/25137
1900 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1901 -Wmissing_braces.
1902
650dc14a
DS
19032012-05-22 Dodji Seketeli <dodji@redhat.com>
1904
1905 PR c++/53322
1906 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1907
9b095bf1
MLI
19082012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1909
1910 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1911 * c-opts.c (c_common_handle_option): Do not handle explicitly
1912 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1913
0b2c4be5
DS
19142012-05-16 Dodji Seketeli <dodji@redhat.com>
1915
1916 PR preprocessor/7263
1917 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1918 to cpp_classify_number. For diagnostics, use the precise location
1919 instead of the global input_location.
1920
a1bde5af
PC
19212012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1922
d02924ef 1923 PR c++/11856
a1bde5af
PC
1924 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1925
d1ede5f4
BS
19262012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1927
a1bde5af 1928 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1929
f2bc201f
MLI
19302012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1931
1932 PR 53063
1933 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1934 Wreorder): Use LangEnabledBy.
1935 * c-opts.c (c_common_handle_option): Do not enable them
1936 explicitly. Call lang-specific generated functions.
1937 (c_common_post_options): Do not set them here.
1938
95744782
MLI
19392012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1940
1941 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1942 Wmissing-field-initializers,Wmissing-parameter-type,
1943 Wold-style-declaration,Woverride-init): Use EnabledBy.
1944 * c-opts.c (c_common_post_options): Do not set here explicitly.
1945
7d5a5747
MLI
19462012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1947
1948 PR 53063
1949 * c-opts.c (c_common_handle_option): Use handle_generated_option
1950 to enable sub-options.
1951
5a3c9cf2
PC
19522012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1953
1954 PR c++/53158
1955 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1956
3ac8781c
RG
19572012-05-10 Richard Guenther <rguenther@suse.de>
1958
1959 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1960 adjust commentary about TYPE_IS_SIZETYPE types.
1961
1e537948
MLI
19622012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1963
1964 PR c++/53261
1965 * c-common.c (warn_logical_operator): Check that argument of
1966 integer_zerop is not NULL.
1967
f2c4a785
MLI
19682012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1969
1970 PR c/43772
1971 * c-common.c (warn_logical_operator): Do not warn if either side
1972 is already true or false.
1973
50f305ca
MLI
19742012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1975
1976 PR c/51712
1977 * c-common.c (expr_original_type): New.
1978 (shorten_compare): Do not warn for enumeration types.
1979
0c3641b0
MLI
19802012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1981
1982 * c.opt (fpermissive): Add Var(flag_permissive).
1983
7edaa4d2
MG
19842012-04-30 Marc Glisse <marc.glisse@inria.fr>
1985
1986 PR c++/51033
1987 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1988 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1989
b9c8da34
DS
19902012-04-30 Dodji Seketeli <dodji@redhat.com>
1991
1992 Add -Wvarargs option
1993 * c.opt (Wvarargs): Define new option.
1994
e6c69da0
MLI
19952012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1996
1997 * c-common.c (check_function_arguments): Replace
1998 Wmissing-format-attribute with Wsuggest-attribute=format.
1999
90137d8f
MLI
20002012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2001
2002 * c.opt (Wsuggest-attribute=format): New. Alias of
2003 Wmissing-format-attribute.
2004 * c-format.c (decode_format_type): Replace
2005 Wmissing-format-attribute with Wsuggest-attribute=format.
2006 (check_function_format): Likewise.
2007
9faeb493 20082012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2009
2010 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2011 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2012 * c.opt: Add Wliteral-suffix.
2013
c1771a20
MLI
20142012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2015
2016 PR c/44774
2017 * c.opt (Wpedantic): New.
2018 (pedantic): Alias Wpedantic.
2019 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2020 (c_common_post_options): Likewise.
2021 (sanitize_cpp_opts): Likewise.
2022 * c-lex.c (interpret_float): Likewise.
2023 * c-format.c (check_format_types): Likewise.
2024 * c-common.c (pointer_int_sum): Likewise.
2025 (c_sizeof_or_alignof_type): Likewise.
2026 (c_add_case_label): Likewise.
2027 (c_do_switch_warnings): Likewise.
2028 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2029
04b391c1
JM
20302012-04-15 Jason Merrill <jason@redhat.com>
2031
2032 PR c++/52818
2033 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2034 (C_STD_NAME): Distinguish between C++98 and C++11.
2035
ac868f29
EB
20362012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2037
2038 PR target/52624
2039 * c-common.h (uint16_type_node): Rename into...
2040 (c_uint16_type_node): ...this.
2041 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2042 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2043
fd4116f4
MLI
20442012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2045
2046 * c-common.c (warn_if_unused_value): Move definition to here.
2047 * c-common.h (warn_if_unused_value): Move declaration to here.
2048
573ac65e
WB
20492012-03-23 William Bader <williambader@hotmail.com>
2050
2051 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2052
552b8185
JM
20532012-03-20 Jason Merrill <jason@redhat.com>
2054
2055 * c-common.h (enum cxx_dialect): Add cxx1y.
2056 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2057 test.
2058 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2059 * c-opts.c (c_common_post_options): Likewise.
2060 (set_std_cxx1y): New.
2061 (c_common_handle_option): Call it.
2062 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2063
04398fa8
PC
20642012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2065
2066 PR c++/14710
2067 * c.opt ([Wuseless-cast]): Add.
2068
d2a12ae7
RG
20692012-03-16 Richard Guenther <rguenther@suse.de>
2070
2071 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2072
a12bf402
MLI
20732012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2074
2075 PR c++/44783
2076 * c.opt (ftemplate-backtrace-limit) Add.
2077
5c30094f
RO
20782012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2079
2080 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2081 handling.
2082 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2083 (init_pragma): Don't register extern_prefix.
2084
21fa2faf
RG
20852012-03-12 Richard Guenther <rguenther@suse.de>
2086
2087 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2088 (builtin_type_for_size): Likewise.
2089
e3793c6f
JJ
20902012-02-13 Jakub Jelinek <jakub@redhat.com>
2091
2092 PR c++/52215
2093 * c-common.c (sync_resolve_params): Don't decide whether to convert
2094 or not based on TYPE_SIZE comparison, convert whenever arg_type
2095 is unsigned INTEGER_TYPE.
2096
93286335
PC
20972012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2098
2099 PR c/52118
2100 * c.opt ([Wunused-local-typedefs]): Fix description.
2101
7a421706
MS
21022012-01-24 Mike Stump <mikestump@comcast.net>
2103
2104 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2105 exactly.
2106
ba9b1f11
RG
21072012-01-18 Richard Guenther <rguenther@suse.de>
2108
2109 * c-opts.c (c_common_post_options): Reset LTO flags if
2110 we are about to generate a PCH.
2111
465406be
PC
21122012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2113
2114 PR c++/51777
2115 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2116 use pp_unsigned_wide_integer.
2117
aee15221
RG
21182012-01-10 Richard Guenther <rguenther@suse.de>
2119
2120 PR middle-end/51806
2121 * c-opts.c (c_common_handle_option): Move -Werror handling
2122 to language independent code.
2123
5720c0dc
RG
21242012-01-05 Richard Guenther <rguenther@suse.de>
2125
2126 PR middle-end/51764
2127 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2128 from common.opt.
2129
73ac190a
PC
21302011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2131
2132 PR c++/51316
2133 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2134 of array types with an unknown bound.
2135
48b0b196
JM
21362011-12-20 Joseph Myers <joseph@codesourcery.com>
2137
2138 * c-common.c (flag_isoc99): Update comment to refer to C11.
2139 (flag_isoc1x): Change to flag_isoc11.
2140 * c-common.h (flag_isoc99): Update comment to refer to C11.
2141 (flag_isoc1x): Change to flag_isoc11.
2142 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2143 C11.
2144 * c-opts.c (set_std_c1x): Change to set_std_c11.
2145 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2146 Call set_std_c11.
2147 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2148 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2149 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2150 standard.
2151 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2152 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2153 (std=gnu1x): Make alias of std=gnu11.
2154
d58d6eb5
JM
21552011-12-19 Jason Merrill <jason@redhat.com>
2156
2157 PR c++/51228
2158 * c-common.c (handle_transparent_union_attribute): Check the first
2159 field if the type is complete.
2160
b3908fcc
JW
21612011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2162
2163 PR libstdc++/51365
2164 * c-common.c (RID_IS_FINAL): Add.
2165 * c-common.h (RID_IS_FINAL): Add.
2166
fea3ca91
IS
21672011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2168
2169 * c.opt (fgnu-runtime): Provide full description.
2170 (fnext-runtime): Likewise.
2171 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2172
62bad7cd
AM
21732011-11-28 Andrew MacLeod <amacleod@redhat.com>
2174
2175 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2176 predefines in one place. Add LOCK_FREE predefines.
2177 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2178 new func.
2179
c466c4ff
AM
21802011-11-24 Andrew MacLeod <amacleod@redhat.com>
2181
2182 PR c/51256
9faeb493 2183 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2184 conditions
9faeb493
UB
2185 (resolve_overloaded_atomic_exchange,
2186 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2187 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2188 error_mark_node for error conditions.
9faeb493 2189
a5952633
RG
21902011-11-08 Richard Guenther <rguenther@suse.de>
2191
2192 PR middle-end/51010
2193 c-family/
2194
0a35513e
AH
21952011-11-07 Richard Henderson <rth@redhat.com>
2196 Aldy Hernandez <aldyh@redhat.com>
2197 Torvald Riegel <triegel@redhat.com>
2198
2199 Merged from transactional-memory.
2200
2201 * c-common.c (handle_tm_wrap_attribute,
2202 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2203 (struct c_common_reswords): Added __transaction* keywords.
2204 (struct c_common_attribute_table): Added transaction* and tm_regparm
2205 attributes.
2206 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2207 masks.
2208 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2209 find_tm_attribute): Declare.
2210
6d87092d
JM
22112011-11-07 Jason Merrill <jason@redhat.com>
2212
2213 PR c++/35688
2214 * c-common.c, c-common.h: Revert yesterday's changes.
2215
8e7860a1
JM
22162011-11-06 Jason Merrill <jason@redhat.com>
2217
2218 PR c++/35688
2219 * c-common.c (decl_has_visibility_attr): Split out from...
2220 (c_determine_visibility): ...here.
2221 * c-common.h: Declare it.
2222
d19fa6b5
JM
22232011-11-06 Joseph Myers <joseph@codesourcery.com>
2224
2225 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2226 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2227 type.
2228 (check_user_alignment): New. Split out of
2229 handle_aligned_attribute. Disallow integer constants with
2230 noninteger types. Conditionally allow zero.
2231 (handle_aligned_attribute): Use check_user_alignment.
2232 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2233
86951993
AM
22342011-11-06 Andrew MacLeod <amacleod@redhat.com>
2235 Richard Henderson <rth@redhat.com>
2236
2237 Merged from cxx-mem-model.
2238
2239 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2240 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2241 parameters that are the same type size.
2242 (get_atomic_generic_size): New. Find size of generic
2243 atomic function parameters and do typechecking.
2244 (add_atomic_size_parameter): New. Insert size into parameter list.
2245 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2246 either __atomic_exchange_n or external library call.
9faeb493 2247 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2248 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2249 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2250 __atomic_load_n or an external library call.
2251 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2252 __atomic_store_n or an external library call.
2253 (resolve_overloaded_builtin): Handle new __atomic builtins.
2254
cf9e9959
EB
22552011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2256
2257 PR c++/50608
2258 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2259 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2260 <INDIRECT_REF>: Return the argument.
2261 <ARRAY_REF>: Remove special code for negative offset.
2262 Call fold_build_pointer_plus instead of size_binop.
2263 (fold_offsetof): Remove STOP_REF argument and adjust.
2264 * c-common.h (fold_offsetof_1): Declare.
2265 (fold_offsetof): Remove STOP_REF argument.
2266
25339f10
JM
22672011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2268
2269 PR c++/50810
2270 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2271 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2272 Wnarrowing for C++0x and C++98.
2273 * c.opt ([Wnarrowing]): Update.
2274
89401152
PC
22752011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2276
2277 PR c++/44277
2278 * c.opt: Add Wzero-as-null-pointer-constant.
2279
97e3ad20
JM
22802011-10-31 Jason Merrill <jason@redhat.com>
2281
15694fdd
JM
2282 * c.opt (-fdeduce-init-list): Off by default.
2283
97e3ad20
JM
2284 PR c++/50920
2285 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2286 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2287 and -Wc++11-compat.
2288 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2289
fb9120e3
RAV
22902011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2291
2292 PR c++/30066
2293 * c.opt (fvisibility-inlines-hidden): Description change.
2294
3ce4f9e4
ESR
22952011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2296
2297 Implement C++11 user-defined literals.
2298 * c-common.c (build_userdef_literal): New.
2299 * c-common.def: New tree code.
2300 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2301 * c-lex.c (interpret_float): Add suffix parm.
2302 (c_lex_with_flags): Build literal tokens.
2303
5f53c243
PC
23042011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2305
2306 PR c++/50841
2307 Revert:
2308 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2309
2310 PR c++/50810
2311 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2312 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2313 Wnarrowing for C++0x and C++98.
2314 * c.opt ([Wnarrowing]): Update.
2315
263734e1
PC
23162011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2317
2318 PR c++/50810
2319 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2320 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2321 Wnarrowing for C++0x and C++98.
2322 * c.opt ([Wnarrowing]): Update.
2323
d2e312d7
PC
23242011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2325
2326 PR c++/45385
2327 * c-common.c (conversion_warning): Remove code looking for
2328 artificial operands.
2329
d17687f6
DS
23302011-10-18 Dodji Seketeli <dodji@redhat.com>
2331
2332 PR bootstrap/50760
2333 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2334 !NO_IMPLICIT_EXTERN_C.
d17687f6 2335
fc8396e9
PC
23362011-10-17 Michael Spertus <mike_spertus@symantec.com>
2337
2338 * c-common.c (c_common_reswords): Add __bases,
2339 __direct_bases.
2340 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2341
23422011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2343
2344 PR c++/50757
2345 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2346
847e697a
TT
23472011-10-15 Tom Tromey <tromey@redhat.com>
2348 Dodji Seketeli <dodji@redhat.com>
2349
2350 * c.opt (fdebug-cpp): New option.
2351 * c-opts.c (c_common_handle_option): Handle the option.
2352 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2353 output stream in parameter. Factorized from ...
2354 (maybe_print_line): ... this. Dump location debug information when
2355 -fdebug-cpp is in effect.
2356 (print_line_1): New static function. Takes an output stream in
2357 parameter. Factorized from ...
2358 (print_line): ... here. Dump location information when -fdebug-cpp
2359 is in effect.
2360 (scan_translation_unit): Dump location information when
2361 -fdebug-cpp is in effect.
2362
92582b75
TT
23632011-10-15 Tom Tromey <tromey@redhat.com>
2364 Dodji Seketeli <dodji@redhat.com>
2365
2366 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2367 without argument.
2368 * c-opts.c (c_common_handle_option)<case
2369 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2370 cases. Handle -ftrack-macro-expansion with and without argument.
2371
46427374
TT
23722011-10-15 Tom Tromey <tromey@redhat.com>
2373 Dodji Seketeli <dodji@redhat.com>
2374
2375 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2376 (print_line, cb_define, do_line_change): Adjust to avoid touching
2377 the internals of struct line_map. Use the public API instead.
2378 * c-pch.c (c_common_read_pch): Likewise.
2379 * c-lex.c (fe_file_change): Likewise.
2380
fc8396e9
PC
23812011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2382
2383 PR c++/17212
2384 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2385
23862011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2387
2388 PR c++/33067
2389 * c-pretty-print.c (pp_c_floating_constant): Output
2390 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2391
e79983f4
MM
23922011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2393
2394 * c-common.c (def_builtin_1): Delete old interface with two
2395 parallel arrays to hold standard builtin declarations, and replace
2396 it with a function based interface that can support creating
2397 builtins on the fly in the future. Change all uses, and poison
2398 the old names. Make sure 0 is not a legitimate builtin index.
2399 * c-omp.c (c_finish_omp_barrier): Ditto.
2400 (c_finish_omp_taskwait): Ditto.
2401 (c_finish_omp_flush): Ditto.
2402
6637388f
TG
24032011-10-11 Tristan Gingold <gingold@adacore.com>
2404
2405 * c.opt: (fallow-parameterless-variadic-functions): New.
2406
3797cb21
DS
24072011-09-08 Dodji Seketeli <dodji@redhat.com>
2408
2409 PR c++/33255 - Support -Wunused-local-typedefs warning
2410 * c-common.h (struct c_language_function::local_typedefs): New
2411 field.
9faeb493
UB
2412 (record_locally_defined_typedef, maybe_record_typedef_use)
2413 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2414 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2415 (maybe_record_typedef_use)
2416 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2417 * c.opt: Declare new -Wunused-local-typedefs flag.
2418
693ddb1b
EB
24192011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2420
2421 PR middle-end/50266
2422 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2423 computations.
2424
830c740f
RG
24252011-09-05 Richard Guenther <rguenther@suse.de>
2426
2427 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2428 of integer_minus_one_node for empty array upper bounds.
2429
892a371f
DS
24302011-08-28 Dodji Seketeli <dodji@redhat.com>
2431
2432 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2433 it's the first time it's being called on this main TU.
2434
0e3fdb48
RB
24352011-08-24 Richard Guenther <rguenther@suse.de>
2436
2437 PR c/49396
2438 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2439
24402011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2441
2442 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2443 defined in cpp_init_builtins and c_cpp_builtins.
2444
d4a83c10
JM
24452011-08-19 Joseph Myers <joseph@codesourcery.com>
2446
2447 * c-common.c (c_common_reswords): Add __builtin_complex.
2448 * c-common.h (RID_BUILTIN_COMPLEX): New.
2449
bbceee64
JM
24502011-08-18 Joseph Myers <joseph@codesourcery.com>
2451
2452 * c-common.c (c_common_reswords): Add _Noreturn.
2453 (keyword_is_function_specifier): Handle RID_NORETURN.
2454 * c-common.h (RID_NORETURN): New.
2455
0e3a99ae
AS
24562011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2457
2458 * c-common.c (unsafe_conversion_p): New function. Check if it is
2459 unsafe to convert an expression to the type.
2460 (conversion_warning): Adjust, use unsafe_conversion_p.
2461 * c-common.h (unsafe_conversion_p): New function declaration.
2462
20906c66
JJ
24632011-08-02 Jakub Jelinek <jakub@redhat.com>
2464
2465 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2466 (c_finish_omp_taskyield): New prototype.
2467 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2468 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2469 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2470 or RHS1 have side-effects, evaluate those too in the right spot,
2471 if it is a decl and LHS is also a decl, error out if they
2472 aren't the same.
2473 (c_finish_omp_taskyield): New function.
2474 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2475 * c-pragma.c (omp_pragmas): Add taskyield.
2476 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2477 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2478 PRAGMA_OMP_CLAUSE_MERGEABLE.
2479
770e5a2e
DS
24802011-07-25 Dodji Seketeli <dodji@redhat.com>
2481
2482 * c-common.h (set_underlying_type): Remove parm name from
2483 declaration.
2484
1baae426
RG
24852011-07-25 Romain Geissler <romain.geissler@gmail.com>
2486
2487 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2488
fcb21722
JM
24892011-07-22 Jason Merrill <jason@redhat.com>
2490
76f86d00
JM
2491 PR c++/49793
2492 * c.opt (Wnarrowing): New.
2493
3a636414
JM
2494 PR c++/30112
2495 * c-common.h: Declare c_linkage_bindings.
2496 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2497
fcb21722
JM
2498 PR c++/49813
2499 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2500 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2501 as flag_isoc99 for 'restrict'.
2502 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2503
02614448
ILT
25042011-07-21 Ian Lance Taylor <iant@google.com>
2505
2506 PR middle-end/49705
2507 * c-common.c (c_disable_warnings): New static function.
2508 (c_enable_warnings): New static function.
2509 (c_fully_fold_internal): Change local unused_p to bool. Call
2510 c_disable_warnings and c_enable_warnings rather than change
2511 c_inhibit_evaluation_warnings.
2512
34429675
JM
25132011-07-20 Jason Merrill <jason@redhat.com>
2514
2515 PR c++/6709 (DR 743)
2516 PR c++/42603 (DR 950)
2517 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2518 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2519 (CPP_DECLTYPE): New.
2520 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2521
5d49b6a7
RG
25222011-07-19 Richard Guenther <rguenther@suse.de>
2523
2524 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2525 * c-omp.c (c_finish_omp_for): Likewise.
2526
e84a58ff
EB
25272011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2528
2529 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2530 body on the next line.
2531
329af3c7
JM
25322011-07-08 Jason Merrill <jason@redhat.com>
2533
4063e61b
JM
2534 PR c++/45437
2535 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2536
329af3c7
JM
2537 PR c++/49673
2538 * c-common.c (c_apply_type_quals_to_decl): Don't check
2539 TYPE_NEEDS_CONSTRUCTING.
2540
1a072294
RG
25412011-07-06 Richard Guenther <rguenther@suse.de>
2542
2543 * c-common.c (c_common_nodes_and_builtins):
2544 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2545
fce5dddd
RG
25462011-07-05 Richard Guenther <rguenther@suse.de>
2547
2548 * c-common.c (c_common_nodes_and_builtins): Build all common
2549 tree nodes first.
2550
45d439ac
JJ
25512011-06-27 Jakub Jelinek <jakub@redhat.com>
2552
56300785
JJ
2553 * c-common.h (c_tree_chain_next): New static inline function.
2554
45d439ac
JJ
2555 * c-common.c (check_builtin_function_arguments): Handle
2556 BUILT_IN_ASSUME_ALIGNED.
2557
e0a8ecf2
AM
25582011-06-21 Andrew MacLeod <amacleod@redhat.com>
2559
2560 * c-common.c: Add sync_ or SYNC__ to builtin names.
2561 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2562
25632011-06-20 Pierre Vittet <piervit@pvittet.com>
2564
2565 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2566 handler.
2567 (gen_pragma_handler): New union.
2568 (internal_pragma_handler): New type.
2569 (c_register_pragma_with_data)
2570 (c_register_pragma_with_expansion_and_data): New functions.
2571
2572 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2573 (c_register_pragma, c_register_pragma_with_expansion)
2574 (c_invoke_pragma_handler): Changed to work with
2575 internal_pragma_handler.
2576 (c_register_pragma_with_data)
2577 (c_register_pragma_with_expansion_and_data): New functions.
2578
677f3fa8
JM
25792011-06-14 Joseph Myers <joseph@codesourcery.com>
2580
2581 * c-common.c: Include common/common-target.h.
2582 (handle_section_attribute): Use
2583 targetm_common.have_named_sections.
2584 * c-cppbuiltin.c: Include common/common-target.h.
2585 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2586
d7fc8c14
RG
25872011-06-10 Richard Guenther <rguenther@suse.de>
2588
2589 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2590 to print a IDENTIFIER_NODE.
2591
10e48e39
RO
25922011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2593 Joseph Myers <joseph@codesourcery.com>
2594
2595 * c.opt (fbuilding-libgcc): New option.
2596 * c-cppbuiltin.c (c_cpp_builtins): Define
2597 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2598
6976ae51
JM
25992011-06-07 Jason Merrill <jason@redhat.com>
2600
3ff60975
JM
2601 * c-common.c (max_tinst_depth): Lower default to 900.
2602
6976ae51
JM
2603 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2604
009db074
RG
26052011-06-07 Richard Guenther <rguenther@suse.de>
2606
2607 * c-common.c (c_common_nodes_and_builtins): Do not set
2608 size_type_node or call set_sizetype.
2609
b4592b92
DS
26102011-06-07 Dodji Seketeli <dodji@redhat.com>
2611
2612 PR debug/49130
2613 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2614 type when using pointer comparison to compare types.
b4592b92 2615
014ab419
JW
26162011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2617
2618 * c.opt: Add -Wdelete-non-virtual-dtor.
2619 * c-opts.c (c_common_handle_option): Include it in -Wall.
2620
4f60111f
NF
26212011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2622
2623 PR bootstrap/49190
2624
2625 Revert:
2626 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2627
2628 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2629 not tree_common.
2630
4cc4f2f4
JJ
26312011-05-27 Jakub Jelinek <jakub@redhat.com>
2632
2633 PR c++/49165
2634 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2635 C++ don't call c_common_truthvalue_conversion on void type arms.
2636
38e01f9e
NF
26372011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2638
2639 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2640 (stmt_list_stack): Define.
2641 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2642 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2643
92e948a8
NF
26442011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2645
2646 * c-common.c (warning_candidate_p): Check for BLOCKs.
2647
a2fc3e63
NF
26482011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2649
2650 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2651 not tree_common.
2652
0957c029
JJ
26532011-05-25 Jakub Jelinek <jakub@redhat.com>
2654
2655 * c-common.c (def_fn_type): Remove extra va_end.
2656
828fb3ba
JM
26572011-05-23 Jason Merrill <jason@redhat.com>
2658
2659 PR c++/48106
2660 * c-common.c (c_common_get_narrower): New.
2661 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2662
dde05067
NF
26632011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2664
2665 * c-common.h (check_function_arguments): Tweak prototype of
2666 check_function_arguments.
2667 * c-common.c (check_function_arguments): Likewise. Adjust
2668 calls to check_function_nonnull, check_function_format, and
2669 check_function_sentinel.
2670 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2671 separate attributes and typelist arguments. Use
2672 FOREACH_FUNCTION_ARGS to iterate over argument types.
2673
3c0d13bf
PC
26742011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2675
2676 * c-common.c (c_common_reswords): Reorder.
2677 * c-common.h (rid): Likewise.
2678
8242dd04
NF
26792011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2680
2681 * c-common.c (def_fn_type): Don't call build_function_type, call
2682 build_function_type_array or build_varargs_function_type_array
2683 instead.
2684 (c_common_nodes_and_builtins): Likewise.
2685
3d528853
NF
26862011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2687
2688 * c-common.c (c_add_case_label): Omit the loc argument to
2689 build_case_label.
2690 * c-common.h (build_case_label): Remove.
2691 * c-semantics.c (build_case_label): Remove.
2692
a04a722b
JM
26932011-05-05 Joseph Myers <joseph@codesourcery.com>
2694
2695 * c-objc.h (objc_start_method_definition): Update prototype.
2696 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2697
e19a18d4
NF
26982011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2699
2700 * c-common.c (check_main_parameter_types): Reindent. Don't use
2701 TYPE_ARG_TYPES directly.
2702 (handle_nonnull_attribute): Likewise.
2703 (sync_resolve_params): Likewise.
2704 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2705 to check_format_string.
2706 (handle_format_attribute): Likewise.
2707 (check_format_string): Take a function type to examine instead of
2708 a type list. Use a function_arg_iterator to step through argument
2709 types.
2710
c62c040f
RG
27112011-05-04 Richard Guenther <rguenther@suse.de>
2712
2713 * c-common.c (fix_string_type): Use size_int for index type bounds.
2714 (start_fname_decls): Do not pass NULL to build_int_cst.
2715 (c_init_attributes): Likewise.
2716 * c-lex.c (c_lex_with_flags): Likewise.
2717
c12ff9d8
JM
27182011-04-27 Jason Merrill <jason@redhat.com>
2719
2720 * c-common.c (make_tree_vector_from_list): New.
2721 * c-common.h: Declare it.
2722
304dfbe3
RG
27232011-04-26 Richard Guenther <rguenther@suse.de>
2724
2725 PR preprocessor/48248
2726 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2727 for output size with -P.
2728
3c0d13bf
PC
27292011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2730
2731 * c-common.c (struct c_common_resword): Add __underlying_type.
2732 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2733
04695783
JM
27342011-04-20 Jim Meyering <meyering@redhat.com>
2735
2736 * c-format.c (init_dollar_format_checking): Remove useless
2737 if-before-free.
2738
0dc33c3c
NP
27392011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2740
2741 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2742 (objc_detect_field_duplicates): New.
0dc33c3c 2743 * stub-objc.c: Likewise.
3c0d13bf 2744
c59633d9
NP
27452011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2746
2747 * stub-objc.c (objc_declare_protocols): Renamed to
2748 objc_declare_protocol.
2749 * c-objc.h: Likewise.
3c0d13bf 2750
32dabdaf
NP
27512011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2752
2753 * stub-objc.c (objc_declare_class): Updated argument name.
2754
81f653d6
NF
27552011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2756
2757 * c-common.h (c_common_init_ts): Declare.
2758 * c-common.c (c_common_init_ts): Define.
2759
eb345401
NP
27602011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2761
2762 * c-objc.h (objc_build_message_expr): Updated prototype.
2763 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2764
a358e188
MJ
27652011-04-12 Martin Jambor <mjambor@suse.cz>
2766
2767 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2768 of cgraph_node.
2769
e6313a78
RG
27702011-04-11 Richard Guenther <rguenther@suse.de>
2771
2772 * c-common.c (complete_array_type): Build a range type of
2773 proper type.
2774
dcf0c47e
NF
27752011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2776
2777 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2778 (handle_type_generic_attribute): Likewise.
2779
1ee44b26
JM
27802011-04-07 Jason Merrill <jason@redhat.com>
2781
2782 PR c++/48450
2783 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2784 conversion from C++0x scoped enum.
2785
acce4e77
JM
27862011-04-06 Joseph Myers <joseph@codesourcery.com>
2787
2788 * c-target-def.h: New file.
2789 * c-target.def: New file.
2790 * c-target.h: New file.
2791 * c-common.c (targetcm): Don't define here.
2792 * c-common.h (default_handle_c_option): Declare.
2793 * c-format.c: Include c-target.h instead of target.h.
2794 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2795 include tm.h.
2796 (default_handle_c_option): Move from targhooks.c.
2797
e2eefb55
JJ
27982011-03-29 Jakub Jelinek <jakub@redhat.com>
2799
2800 PR preprocessor/48248
2801 * c-ppoutput.c (print): Add src_file field.
2802 (init_pp_output): Initialize it.
2803 (maybe_print_line): Don't optimize by adding up to 8 newlines
2804 if map->to_file and print.src_file are different file.
2805 (print_line): Update print.src_file.
2806
ba78087b
KT
28072011-03-25 Kai Tietz <ktietz@redhat.com>
2808
2809 * c-ada-spec.c (compare_comment): Use filename_cmp
2810 instead of strcmp for filename.
2811
0edf1bb2
JL
28122011-03-25 Jeff Law <law@redhat.com>
2813
2814 * c-family/c-common.c (def_fn_type): Add missing va_end.
2815
c7dc8804
JM
28162011-03-25 Jason Merrill <jason@redhat.com>
2817
2818 * c.opt: Add -std=c++03.
2819
d1d879b1
EB
28202011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2821
2822 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2823
62d784f7
KT
28242011-03-17 Kai Tietz
2825
2826 PR target/12171
5050afdf
KT
2827 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2828 Display allowed attributes for function pointer types.
2829 (pp_c_attributes_display): New function to display
2830 attributes having affects_type_identity flag set to true.
2831 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2832
62d784f7
KT
2833 * c-common.c (c_common_attribute_table):
2834 Add new element.
2835 (c_common_format_attribute_table): Likewise.
2836
82d37118
JM
28372011-03-18 Jason Merrill <jason@redhat.com>
2838
49a000c3
JM
2839 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2840 * c-common.h: Don't declare it here.
2841 * c-common.c: Or define it here.
2842 * c-opts.c (c_common_handle_option): Or set it here.
2843
82d37118
JM
2844 PR c++/35315
2845 * c-common.c (handle_transparent_union_attribute): Don't
2846 make a duplicate type in C++.
2847
17bc631c
JM
28482011-03-15 Jason Merrill <jason@redhat.com>
2849
2850 * c-common.c (max_constexpr_depth): New.
2851 * c-common.h: Declare it.
2852 * c-opts.c (c_common_handle_option): Set it.
2853 * c.opt (fconstexpr-depth): New option.
2854
1b9b91a6
JM
28552011-03-11 Jason Merrill <jason@redhat.com>
2856
f231b5ff
JM
2857 * c-common.c (attribute_takes_identifier_p): Add missing const.
2858
1b9b91a6
JM
2859 PR c++/46803
2860 * c-common.c (attribute_takes_identifier_p): Assume that an
2861 unknown attribute takes an identifier.
2862
a19e4d44
NF
28632011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2864
2865 PR c/47786
2866 * c-common.c (c_type_hash): Call list_length instead of iterating
2867 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2868
982d62f6
JJ
28692011-02-19 Jakub Jelinek <jakub@redhat.com>
2870
2871 PR c/47809
2872 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2873
0a256240
NP
28742011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2875
2876 * c.opt (fobjc-abi-version=) New.
2877 (fobjc-nilcheck): New.
2878
ba9e6dd5
NF
28792011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2880
2881 PR c++/46890
2882 * c-common.h (keyword_is_decl_specifier): Declare.
2883 * c-common.c (keyword_is_decl_specifier): Define.
2884 (keyword_is_function_specifier): New function.
2885
7273813a
JJ
28862011-01-26 Jakub Jelinek <jakub@redhat.com>
2887
2888 PR c/47473
2889 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2890 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2891 REAL_TYPE.
2892
908ef79b
AC
28932011-01-26 Arnaud Charlet <charlet@adacore.com>
2894
2895 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2896
237e9384
JJ
28972011-01-26 Jakub Jelinek <jakub@redhat.com>
2898
2899 PR pch/47430
2900 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2901 after init_c_lex if pch_file is set.
2902
47ea1edf
DK
29032011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2904
d4dba752 2905 PR c++/43601
47ea1edf
DK
2906 * c.opt (-fkeep-inline-dllexport): New switch.
2907
2aa9c6ae
RG
29082011-01-12 Richard Guenther <rguenther@suse.de>
2909
2910 PR middle-end/32511
2911 * c-common.c (handle_weak_attribute): Warn instead of error
2912 on declaring an inline function weak.
2913
7bd11157
TT
29142011-01-05 Tom Tromey <tromey@redhat.com>
2915
2916 * c-common.h (lvalue_error): Update.
2917 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2918 not error.
2919
0e66e494 29202010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2921
b4f588c4
NP
2922 PR objc/47075
2923 * c-objc.h (objc_finish_message_expr): Added argument to
2924 prototype.
2925
f4da8dce
NF
29262010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2927
2928 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2929 Use prototype_p.
2930
46270f14
NP
29312010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2932
2933 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2934 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2935
4816c593
NF
29362010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2937
2938 * c-common.h (readonly_error): Declare.
2939 * c-common.c (readonly_error): Define.
2940
7a6daeb0
NF
29412010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2942
2943 * c-common.h (invalid_indirection_error): Declare.
2944 * c-common.c (invalid_indirection_error): Define.
2945
892f6119
RG
29462010-12-03 Richard Guenther <rguenther@suse.de>
2947
2948 PR c/46745
2949 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2950 (pp_c_unary_expression): Likewise.
2951 (pp_c_expression): Likewise.
2952
6c39e757
NP
29532010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2954
2955 * c-common.h (objc_finish_function): New.
2956 (objc_non_volatilized_type): Removed.
2957 (objc_type_quals_match): Removed.
2958 * stub-objc.c (objc_finish_function): New.
2959 (objc_non_volatilized_type): Removed.
2960 (objc_type_quals_match): Removed.
9faeb493 2961
7c475d11
JM
29622010-11-30 Joseph Myers <joseph@codesourcery.com>
2963
2964 * c-common.h (parse_optimize_options): Declare.
2965 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2966 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2967
71f3e391
JM
29682010-11-29 Joseph Myers <joseph@codesourcery.com>
2969
2970 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2971 GET_ENVIRONMENT.
2972 * c-pch.c (O_BINARY): Don't define here.
2973 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2974
d5fabb58
JM
29752010-11-25 Joseph Myers <joseph@codesourcery.com>
2976
2977 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2978 targetm.except_unwind_info.
2979
299404a1
JM
29802010-11-23 Joseph Myers <joseph@codesourcery.com>
2981
2982 * c-opts.c (c_common_handle_option): Pass location to
2983 set_struct_debug_option.
2984
c98cd5bf
JM
29852010-11-23 Joseph Myers <joseph@codesourcery.com>
2986
2987 * c-common.c (visibility_options): Move from ../opts.c.
2988 * c-common.h (struct visibility_flags, visibility_options):
2989 Declare here.
2990 * c-opts.c (finish_options): Rename to c_finish_options.
2991 (c_common_init): Update call to finish_options.
2992
a9546771
NP
29932010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2994
2995 PR objc/34033
2996 * c-lex.c (lex_string): Check that each string in an Objective-C
2997 string concat sequence starts with either one or zero '@', and
2998 that there are no spurious '@' signs at the end.
2999
24a57808
JM
30002010-11-20 Joseph Myers <joseph@codesourcery.com>
3001
3002 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3003 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3004 HANDLE_PRAGMA_VISIBILITY.
3005 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3006 HANDLE_PRAGMA_VISIBILITY): Don't define.
3007 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3008
a9aa2c3a
NF
30092010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3010
3011 PR c++/16189
3012 PR c++/36888
3013 PR c++/45331
3014 * c-common.h (keyword_begins_type_specifier): Declare.
3015 (keyword_is_storage_class_specifier): Declare.
3016 (keyword_is_type_qualifier): Declare.
3017 * c-common.c (keyword_begins_type_specifier): New function.
3018 (keyword_is_storage_class_specifier): New function.
3019 (keyword_is_type_qualifier): Declare.
3020
5386338c
JM
30212010-11-19 Joseph Myers <joseph@codesourcery.com>
3022
3023 PR c/46547
3024 * c-common.c (in_late_binary_op): Define.
3025 (c_common_truthvalue_conversion): Check in_late_binary_op before
3026 calling c_save_expr.
3027 * c-common.h (in_late_binary_op): Declare.
3028
69ccdddb
JM
30292010-11-19 Joseph Myers <joseph@codesourcery.com>
3030
3031 * c-opts.c (c_common_handle_option): Update calls to
3032 set_struct_debug_option.
3033
6b192a09
NP
30342010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3035
3036 * c-common.h (objc_declare_protocols): Added additional argument.
3037 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3038
fb52b50a
NF
30392010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3040
3041 PR c/33193
3042 * c-common.h (build_real_imag_expr): Declare.
3043 * c-semantics.c (build_real_imag_expr): Define.
3044
b37421c6
JM
30452010-11-17 Joseph Myers <joseph@codesourcery.com>
3046
3047 * c-opts.c (c_common_parse_file): Take no arguments.
3048 * c-common.h (c_common_parse_file): Update prototype.
3049
07078664
JJ
30502010-11-16 Jakub Jelinek <jakub@redhat.com>
3051
3052 PR c++/46401
3053 * c-common.c (warning_candidate_p): Don't track non-const calls
3054 or STRING_CSTs.
3055
c6a13190
ILT
30562010-11-15 Ian Lance Taylor <iant@google.com>
3057
3058 * c-lex.c (init_c_lex): Set macro debug callbacks if
3059 flag_dump_go_spec is set.
3060
925e8657
NP
30612010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3062
3063 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3064 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3065
bb0a9581
NF
30662010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3067
3068 PR preprocessor/45038
3069 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3070 dialects.
3071
c5fa0890
JM
30722010-11-12 Joseph Myers <joseph@codesourcery.com>
3073
3074 * c-common.h (c_family_lang_mask): Declare.
3075 * c-opts.c (c_family_lang_mask): Make extern.
3076 * c-pragma.c (handle_pragma_diagnostic): Use
3077 control_warning_option.
3078
a4d8c676
JM
30792010-11-12 Joseph Myers <joseph@codesourcery.com>
3080
3081 * c-common.c (parse_optimize_options): Update call to
3082 decode_options.
3083 * c-common.h (c_common_handle_option): Update prototype.
3084 * c-opts.c (c_common_handle_option): Take location_t parameter and
3085 pass it to other functions.
3086
f954bd2c
JM
30872010-11-11 Joseph Myers <joseph@codesourcery.com>
3088
3089 * c-opts.c (warning_as_error_callback): Remove.
3090 (c_common_initialize_diagnostics): Don't call
3091 register_warning_as_error_callback.
3092 (c_common_handle_option): Handle -Werror=normalized= here.
3093
d8a07487
JM
30942010-11-10 Joseph Myers <joseph@codesourcery.com>
3095
3096 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3097 in diagnostic.
3098 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3099 letter.
3100 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3101 Remove trailing '.' from diagnostics.
3102 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3103
d5478783
JM
31042010-11-10 Joseph Myers <joseph@codesourcery.com>
3105
3106 * c-common.c (parse_optimize_options): Pass global_dc to
3107 decode_options.
3108 * c-opts.c (c_common_handle_option): Pass &global_options to
3109 set_Wstrict_aliasing.
3110 * c.opt (v): Don't mark Common or document here.
3111
91ebb981
IS
31122010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3113
3114 PR target/44981
3115 * c-format.c (format_type): New type gcc_objc_string_format_type.
3116 (valid_stringptr_type_p): New.
3117 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3118 (check_format_string): Pass expected type, use
91ebb981
IS
3119 valid_stringptr_type_p (), check that the format string types are
3120 consistent with the format specification.
3121 (decode_format_attr): Warn if NSString is used outside objective-c.
3122 (format_types_orig): Add NSString.
3123 (format_name): New.
3124 (format_flags): New.
3125 (check_format_arg): Handle format strings requiring an external parser.
3126 first_target_format_type: New variable.
3127 (handle_format_attribute): Set up first_target_format_type, pass the
3128 expected format arg string type to check_format_string().
3129 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3130 * stub-objc.c (objc_string_ref_type_p): New.
3131 (objc_check_format_arg): New.
3132
bede2adc
NP
31332010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3134
9faeb493 3135 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3136 * c-common.h (objc_build_class_component_ref): New.
3137 * stub-objc.c (objc_build_class_component_ref): New.
3138
9a179d01
NP
31392010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3140
3141 * c.opt (Wproperty-assign-default): New option.
3142
22d8d616
NP
31432010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3144
3145 Implemented -fobjc-std=objc1 flag.
3146 * c.opt (fobjc-std=objc1): New option.
3147
2debdb4f
NP
31482010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3149
3150 Implemented format and noreturn attributes for Objective-C methods.
3151 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3152 attribute for Objective-C methods.
3153
ec52b111
JM
31542010-10-31 Jason Merrill <jason@redhat.com>
3155
3156 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3157 EXPR_LOC_OR_HERE.
3158
46a88c12
NP
31592010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3160
3161 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3162 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3163 (objc_add_property_declaration): Removed arguments for copies and
3164 ivar.
3165 (objc_build_getter_call): Renamed to
3166 objc_maybe_build_component_ref.
3167 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3168 (objc_is_property_ref): New.
3169 * c-common.c (c_common_reswords): Removed copies and ivar.
3170 * stub-objc.c (objc_add_property_declaration): Removed arguments
3171 for copies and ivar.
3172 (objc_build_getter_call): Renamed to
3173 objc_maybe_build_component_ref.
3174 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3175 (objc_is_property_ref): New.
9faeb493 3176
1e4bf85b
AC
31772010-10-29 Arnaud Charlet <charlet@adacore.com>
3178 Matthew Gingell <gingell@adacore.com>
3179
3180 * c-ada-spec.c (separate_class_package): New function.
3181 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3182 name of their enclosing package.
3183 (print_ada_declaration): Use separate_class_package.
3184
81f0bab2
JM
31852010-10-27 Jason Merrill <jason@redhat.com>
3186
2b08f2c5
JM
3187 * c-common.c (c_common_reswords): Add __is_literal_type.
3188 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3189
81f0bab2
JM
3190 * c-common.c (check_case_value): Remove special C++ code.
3191
200290f2
NP
31922010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3193
3194 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3195 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3196 and RID_LAST_PATTR.
3197 (objc_add_property_declaration): Added additional arguments.
3198 (objc_property_attribute_kind): Removed.
3199 (objc_set_property_attr): Removed.
3200 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3201 copy and nonatomic.
3202 * stub-objc.c (objc_add_property_declaration): Added additional
3203 arguments.
3204 (objc_set_property_attr): Removed.
9faeb493 3205
f614132b
NP
32062010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3207
3208 * c-common.h (objc_add_property_variable): Renamed to
3209 objc_add_property_declaration. Added location argument.
3210 * stub-objc.c (objc_add_property_variable): Same change.
3211
b8a18805
NP
32122010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3213
3214 * c-common.h (objc_maybe_printable_name): New.
3215 * stub-objc.c (objc_maybe_printable_name): New.
3216
30cd1c5d
AS
32172010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3218 Andrew Pinski <pinskia@gmail.com>
3219
3220 * c-common.h (c_common_mark_addressable_vec): Declare.
3221 * c-common.c (c_common_mark_addressable_vec): New function.
3222
249a82c4
NP
32232010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3224
3225 * c-common.h (objc_set_method_type): Removed.
3226 (objc_add_method_declaration): Added boolean argument.
3227 (objc_start_method_definition): Same change.
3228 (objc_build_method_signature): Same change.
3229 * stub-objc.c (objc_set_method_type): Removed.
3230 (objc_add_method_declaration): Added boolean argument.
3231 (objc_start_method_definition): Same change.
3232 (objc_build_method_signature): Same change.
3233
977e30bc
NP
32342010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3235
3236 * c-common.h (finish_file): Removed.
3237 (objc_write_global_declarations): New.
3238 * c-opts.c (c_common_parse_file): Do not call finish_file.
3239 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3240
da57d1b9
NP
32412010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3242
3243 Implemented parsing @synthesize and @dynamic for
3244 Objective-C/Objective-C++.
3245 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3246 (objc_add_synthesize_declaration): New.
3247 (objc_add_dynamic_declaration): New.
3248 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3249 * stub-objc.c (objc_add_synthesize_declaration): New.
3250 (objc_add_dynamic_declaration): New.
9faeb493 3251
0069111f
MM
32522010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3253
3254 PR target/46041
3255 * c-cppbuiltin.c (mode_has_fma): Move function here from
3256 builtins.c. Don't use the fma optab, instead just use the
3257 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3258 using -save-temps.
3259
e426b47b
NP
32602010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3261
3262 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3263
e426b47b
NP
3264 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3265
9faeb493 3266 Radar 4330422
e426b47b
NP
3267 * c-common.h (objc_non_volatilized_type): New declaration
3268 * stub-objc.c (objc_non_volatilized_type): New stub.
3269
90fbfdc3
NP
32702010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3271
e426b47b 3272 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3273
3274 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3275
9faeb493 3276 Radar 4133425
90fbfdc3 3277 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3278 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3279
c37d8c30
IS
32802010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3281
3282 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3283 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3284 (objc_ivar_visibility_kind): New enum.
3285 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3286 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3287 visibility enum.
3288
1b1562a5
MM
32892010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3290
3291 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3292 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3293 has the appropriate fma builtins.
3294 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3295
668ea4b1
IS
32962010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3297
1b1562a5 3298 merge from FSF apple 'trunk' branch.
668ea4b1 3299 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3300
668ea4b1
IS
3301 Radars 4436866, 4505126, 4506903, 4517826
3302 * c-common.c (c_common_resword): Define @property and its attributes.
3303 * c-common.h: Define property attribute enum entries.
3304 (OBJC_IS_PATTR_KEYWORD): New.
3305 (objc_property_attribute_kind): New enum.
3306 Declare objc_set_property_attr (), objc_add_property_variable (),
3307 objc_build_getter_call () and objc_build_setter_call ().
3308 * stub-objc.c (objc_set_property_attr): New stub.
3309 (objc_add_property_variable): Likewise.
3310 (objc_build_getter_call): Likewise.
3311 (objc_build_setter_call) Likewise.
1b1562a5 3312
a1178b30
IS
33132010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3314
1b1562a5 3315 merge from FSF apple 'trunk' branch.
a1178b30
IS
3316 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3317
3318 Radar 3803157 (method attributes)
3319 * c-common.c (handle_deprecated_attribute): Recognize
3320 objc methods as valid declarations.
3321 * c-common.h: Declare objc_method_decl ().
1b1562a5 3322 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3323
a75bfaa6
JM
33242010-10-08 Joseph Myers <joseph@codesourcery.com>
3325
3326 * c-common.c (parse_optimize_options): Call
3327 decode_cmdline_options_to_array_default_mask before
3328 decode_options. Update arguments to decode_options.
3329 * c-common.h (c_common_init_options_struct): Declare.
3330 * c-opts.c (c_common_init_options_struct): New. Split out from
3331 c_common_init_options.
3332
f05b9d93
NP
33332010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3334
3335 Implemented fast enumeration for Objective-C.
3336 * c-common.h (objc_finish_foreach_loop): New.
3337 * stub-objc.c (objc_finish_foreach_loop): New.
3338
1ebe4b4f
JM
33392010-10-05 Joseph Myers <joseph@codesourcery.com>
3340
3341 * c-common.h (struct diagnostic_context): Don't declare here.
3342 (c_common_initialize_diagnostics): Declare using
3343 diagnostic_context typedef.
3344 * c-opts.c (c_common_handle_option): Pass global_dc to
3345 handle_generated_option.
3346
d4d24ba4
JM
33472010-10-04 Joseph Myers <joseph@codesourcery.com>
3348
3349 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3350 handle_generated_option.
3351
478a1c5b
ILT
33522010-10-03 Ian Lance Taylor <iant@google.com>
3353
3354 * c.opt (-fplan9-extensions): New option.
3355
82a1c2fe
FXC
33562010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3357
3358 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3359 Remove.
3360 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3361 of duplicating code.
3362
92902b1b
IS
33632010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3364
3365 * c-common.c: Add two new entries for @optional
3366 and @required keywords.
3367
3368 merge from FSF 'apple/trunk' branch.
3369 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3370
3371 Radar 4386773
3372 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3373 objective-c keywords.
3374 (objc_set_method_opt): New declaration.
3375 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3376
46625112
JM
33772010-09-30 Joseph Myers <joseph@codesourcery.com>
3378
3379 * c-common.c (handle_optimize_attribute): Pass &global_options to
3380 cl_optimization_save and cl_optimization_restore.
3381 * c-opts.c (c_common_handle_option): Pass &global_options to
3382 handle_generated_option.
3383 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3384 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3385 &global_options to cl_optimization_restore.
3386
49b91f05
NP
33872010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3388
3389 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3390 Objective-C/Objective-C++ keywords.
3391
13ed556f 33922010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3393
9faeb493
UB
3394 Merge from 'apple/trunk' branch on FSF servers.
3395
a6341d57
NP
3396 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3397
3398 Radar 4281748
3399 * c-common.h (objc_check_global_decl): New declaration.
3400 * stub-objc.c (objc_check_global_decl): New stub.
3401
f0036cca
JM
34022010-09-29 Joseph Myers <joseph@codesourcery.com>
3403
3404 * c.opt: Don't use VarExists.
3405
e3339d0f
JM
34062010-09-29 Joseph Myers <joseph@codesourcery.com>
3407
3408 * c-common.c (c_cpp_error): Update names of diagnostic_context
3409 members.
3410 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3411 cl_optimization members.
3412 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3413 sanitize_cpp_opts, finish_options): Update names of cpp_options
3414 members.
3415
1973201f
NP
34162010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3417
3418 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3419 (objc_is_reserved_word): Removed.
3420 * c-common.c: Updated comments.
3421 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3422 objc_is_reserved_word.
3423 * stub-objc.c (objc_is_reserved_word): Removed.
3424
f7e71da5
IS
34252010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3426
9faeb493 3427 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3428 include attributes.
3429 (objc_start_method_definition): Likewise.
3430 (objc_build_keyword_decl): Likewise.
3431 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3432 (objc_start_method_definition): Likewise.
3433 (objc_build_keyword_decl): Likewise.
3434
c165dca7
IS
34352010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3436
3437 * c-common.h (objc_start_class_interface): Adjust prototype.
3438 (objc_start_category_interface): Likewise.
3439 (objc_start_protocol): Likewise.
3440 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3441 (objc_start_class_interface): Likewise.
3442 (objc_start_category_interface): Likewise.
3443
7458026b
ILT
34442010-09-27 Ian Lance Taylor <iant@google.com>
3445
3446 * c-common.c (c_common_attribute_table): Add no_split_stack.
3447 (handle_no_split_stack_attribute): New static function.
3448
b581b85b
NP
34492010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3450
9faeb493 3451 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3452
3453 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3454
9faeb493 3455 Radar 4229905
b581b85b
NP
3456 * c-common.h (objc_have_common_type): New declaration.
3457 * stub-objc.c (objc_have_common_type): New stub.
3458
3459 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3460
3461 Radar 4154928
3462 * c-common.h (objc_common_type): New prototype.
9faeb493 3463 * stub-objc.c (objc_common_type): New stub.
b581b85b 3464
46a4da10
JH
34652010-09-24 Jan Hubicka <jh@suse.cz>
3466
3467 * c-common.c (handle_leaf_attribute): New function.
3468 (struct attribute_spec c_common_att): Add leaf.
3469
e200444e
JM
34702010-09-22 Joseph Myers <joseph@codesourcery.com>
3471
3472 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3473 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3474 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3475 -include-barrier, -include-directory, -include-directory=,
3476 -include-directory-after, -include-directory-after=,
3477 -include-prefix, -include-prefix=, -include-with-prefix,
3478 -include-with-prefix=, -include-with-prefix-after,
3479 -include-with-prefix-after=, -include-with-prefix-before,
3480 -include-with-prefix-before=, -no-integrated-cpp,
3481 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3482 -output=, -pedantic, -pedantic-errors, -preprocess,
3483 -print-missing-file-dependencies, -trace-includes, -traditional,
3484 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3485 -user-dependencies, -verbose, -write-dependencies,
3486 -write-user-dependencies, no-integrated-cpp, traditional): New.
3487
29a80ea6
NP
34882010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3489
3490 PR objc/23710
ac1fc2fc
NP
3491 * c-common.h (objc_start_method_definition): Return bool instead
3492 of void.
3493 * stub-objc.c (objc_start_method_definition): Return bool instead
3494 of void.
3495
34962010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3497
3498 PR objc/25965
3499 * c-common.h (objc_get_interface_ivars): New declaration.
3500 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3501
de621752
ILT
35022010-09-15 Ian Lance Taylor <iant@google.com>
3503
3504 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3505 messages. Remove period at end of warning message.
de621752 3506
ba885ec5
NS
35072010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3508
3509 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3510 (handle_alias_attribute): ... here.
3511 (handle_ifunc_attribute): New.
3512
c5ee1358
MM
35132010-09-06 Mark Mitchell <mark@codesourcery.com>
3514
3515 * c-common.h (do_warn_double_promotion): Declare.
3516 * c-common.c (do_warn_double_promotion): Define.
3517
0a0b3574
MM
35182010-09-05 Mark Mitchell <mark@codesourcery.com>
3519
3520 * c.opt (Wdouble-promotion): New.
3521
d1779886
JM
35222010-09-02 Joseph Myers <joseph@codesourcery.com>
3523
3524 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3525 fvtable-thunks, fxref): Mark no longer supported in help text.
3526
2d2bd949
JM
35272010-09-02 Joseph Myers <joseph@codesourcery.com>
3528
3529 * c.opt (Wimport, fall-virtual, falt-external-templates,
3530 fdefault-inline, fenum-int-equiv, fexternal-templates,
3531 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3532 fname-mangling-version-, fnew-abi, fnonnull-objects,
3533 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3534 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3535 applicable.
3536 (fhandle-exceptions): Mark with Alias and Warn.
3537 * c-opts.c (c_common_handle_option): Don't handle options marked
3538 as ignored.
3539
5de8299c
JM
35402010-09-02 Joseph Myers <joseph@codesourcery.com>
3541
3542 * c.opt (Wcomments, Werror-implicit-function-declaration,
3543 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3544 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3545 aliases.
3546 * c-common.c (option_codes): Use OPT_Wcomment instead of
3547 OPT_Wcomments.
3548 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3549 Don't handle options marked as aliases.
3550
0ceb0201
RG
35512010-08-25 Richard Guenther <rguenther@suse.de>
3552
3553 * c-common.c (c_common_get_alias_set): Remove special
3554 handling for pointers.
3555
ac47786e
NF
35562010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3557
3558 * c-common.c: Use FOR_EACH_VEC_ELT.
3559 * c-gimplify.c: Likewise.
3560 * c-pragma.c: Likewise.
3561
c878765b
JM
35622010-08-16 Joseph Myers <joseph@codesourcery.com>
3563
3564 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3565 RejectDriver.
3566 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3567 RejectDriver.
3568 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3569 instead of OPT_MDX and OPT_MMDX.
3570
603349bf
JM
35712010-08-16 Joseph Myers <joseph@codesourcery.com>
3572
3573 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3574
644fa7ac
JM
35752010-08-12 Joseph Myers <joseph@codesourcery.com>
3576
3577 * c.opt (MD, MMD): Change to MDX and MMDX.
3578 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3579
481e1176
JM
35802010-08-11 Joseph Myers <joseph@codesourcery.com>
3581
3582 * c-opts.c (c_common_handle_option): Call handle_generated_option
3583 instead of handle_option.
3584
ac8dc9f7
NF
35852010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3586
3587 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3588 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3589
4f8c876d
NF
35902010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3591
3592 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3593 (pending_redefine_extname): Change type to a VEC.
3594 (add_to_renaming_pragma_list): Update for new type of
3595 pending_redefine_extname.
ac8dc9f7 3596 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3597
3b0c690e
AC
35982010-08-04 Arnaud Charlet <charlet@adacore.com>
3599
3600 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3601 visited.
3602 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3603 decide whether a type has already been declared/seen.
3604 Do not go to the original type.
3605 (dump_nested_types): New parameter forward.
3606 Generate forward declaration if needed and mark type as visited.
3607 (print_ada_declaration): Call dump_nested_types if not already done.
3608 Mark types as visited.
3609
1890bccc
JM
36102010-08-03 Joseph Myers <joseph@codesourcery.com>
3611
3612 * c.opt (-print-pch-checksum): Remove option.
3613 * c-opts.c (c_common_handle_option): Don't handle
3614 OPT_print_pch_checksum.
3615
5f20c657
JM
36162010-07-27 Joseph Myers <joseph@codesourcery.com>
3617
3618 * c-common.h (c_common_handle_option): Update prototype and return
3619 value type.
3620 * c-opts.c (c_common_handle_option): Update prototype and return
3621 value type. Update calls to handle_option and
3622 enable_warning_as_error.
3623
f551f80c
JJ
36242010-07-27 Jakub Jelinek <jakub@redhat.com>
3625
3626 PR c/45079
3627 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3628
61ff2bdc
JM
36292010-07-27 Joseph Myers <joseph@codesourcery.com>
3630
3631 * c-common.h (c_common_missing_argument): Remove.
3632 * c-opts.c (c_common_missing_argument): Remove.
3633 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3634 idirafter, imacros, include, isysroot, isystem, iquote): Add
3635 MissingArgError.
3636 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3637
7a9bf9a4
JM
36382010-07-27 Joseph Myers <joseph@codesourcery.com>
3639
3640 * c-common.h (c_common_option_lang_mask,
3641 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3642 New.
3643 (c_common_init_options): Update prototype.
3644 * c-opts.c (c_common_option_lang_mask): New.
3645 (c_common_initialize_diagnostics): Split out of
3646 c_common_init_options.
3647 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3648 New.
3649 (c_common_init_options): Update prototype. Use decoded options in
3650 search for -lang-asm.
3651
910ad8de
NF
36522010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3653
3654 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3655 * c-format.c: Likewise.
3656
718f9c0f
MLI
36572010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3658
3659 * c-common.h: Include diagnostic-core.h. Error if already
3660 included.
3661 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3662
4d451982
MLI
36632010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3664
3665 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3666 Do not include expr.h
3667 (vector_mode_valid_p): Move here.
3668
119fe915
SB
36692010-06-21 DJ Delorie <dj@redhat.com>
3670
3671 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3672 allow these pragmas anywhere.
3673
36742010-06-14 Jakub Jelinek <jakub@redhat.com>
3675
3676 PR bootstrap/44509
3677 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3678 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3679 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3680 ggc_strdup instead of xstrdup.
3681
36822010-06-10 Jakub Jelinek <jakub@redhat.com>
3683
3684 * c-cppbuiltin.c: Include cpp-id-data.h.
3685 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3686 (lazy_hex_fp_value): New function.
3687 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3688
6662d794
MLI
36892010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3690
3691 * c-gimplify.c: Do not include tree-flow.h
3692
38f8b050
JR
36932010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3694
3695 PR other/44034
3696 * c-common.c: Rename targetm member:
3697 targetm.enum_va_list -> targetm.enum_va_list_p
3698
9589f23e
AS
36992010-06-28 Anatoly Sokolov <aesok@post.ru>
3700
3701 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3702
3b06d379
SB
37032010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3704
3705 * c-cppbuiltin.c: Do not include except.h.
3706
d166d4c3
AK
37072010-06-24 Andi Kleen <ak@linux.intel.com>
3708
9faeb493
UB
3709 * c-common.c (warn_for_omitted_condop): New.
3710 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3711
70cb8be6
JM
37122010-06-21 Joseph Myers <joseph@codesourcery.com>
3713
3714 * c.opt (lang-objc): Remove.
3715 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3716
a4c97feb
JR
37172010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3718
3719 * c-opts.c: Include "tm_p.h".
3720
6e2f1956
JM
37212010-06-20 Joseph Myers <joseph@codesourcery.com>
3722
3723 * c-common.c (parse_optimize_options): Update call to
3724 decode_options.
3725
bc87224e
NF
37262010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3727
3728 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3729 new type of types_used_by_cur_var_decl.
3730
b49cf425
JR
37312010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3732
3733 PR bootstrap/44512
3734 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3735 for C++ standard compliance.
3736
59f9c2ed
JM
37372010-06-16 Jason Merrill <jason@redhat.com>
3738
3739 * c.opt: Add -Wnoexcept.
3740
33766b66
RG
37412010-06-16 Richard Guenther <rguenther@suse.de>
3742
3743 PR c/44555
3744 * c-common.c (c_common_truthvalue_conversion): Remove
3745 premature and wrong optimization concering ADDR_EXPRs.
3746
eff7e30c
AC
37472010-06-15 Arnaud Charlet <charlet@adacore.com>
3748
3749 * c-ada-spec.c (dump_sloc): Remove column info.
3750 (is_simple_enum): New function.
3751 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3752 enum types when relevant.
3753
6312e84d
MLI
37542010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3755
9faeb493 3756 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3757 location.
3758
1cb42611
JM
37592010-06-10 Joseph Myers <joseph@codesourcery.com>
3760
3761 * c-opts.c (c_common_handle_option): Don't handle
3762 OPT_fshow_column.
3763
a9429e29
LB
37642010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3765
3766 * c-pragma.c (push_alignment): Use typed GC allocation.
3767 (handle_pragma_push_options): Likewise.
3768
3769 * c-common.c (parse_optimize_options): Likewise.
3770
3771 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3772 option.
3773
5498f011
JM
37742010-06-07 Joseph Myers <joseph@codesourcery.com>
3775
3776 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3777 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3778 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3779 flag_signed_bitfields, warn_strict_null_sentinel,
3780 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3781 flag_gen_declaration, flag_no_gnu_keywords,
3782 flag_implement_inlines, flag_implicit_templates,
3783 flag_implicit_inline_templates, flag_optional_diags,
3784 flag_elide_constructors, flag_default_inline, flag_rtti,
3785 flag_conserve_space, flag_access_control, flag_check_new,
3786 flag_new_for_scope, flag_weak, flag_working_directory,
3787 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3788 flag_enforce_eh_specs, flag_threadsafe_statics,
3789 flag_pretty_templates): Remove.
3790 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3791 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3792 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3793 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3794 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3795 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3796 flag_no_gnu_keywords, flag_implement_inlines,
3797 flag_implicit_templates, flag_implicit_inline_templates,
3798 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3799 flag_rtti, flag_conserve_space, flag_access_control,
3800 flag_check_new, flag_new_for_scope, flag_weak,
3801 flag_working_directory, flag_use_cxa_atexit,
3802 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3803 flag_threadsafe_statics, flag_pretty_templates,
3804 warn_strict_null_sentinel): Remove.
3805 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3806 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3807 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3808 fimplicit-inline-templates, fimplicit-templates,
3809 flax-vector-conversions, fms-extensions, fnil-receivers,
3810 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3811 frtti, fshort-double, fshort-enums, fshort-wchar,
3812 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3813 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3814 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3815 gen-decls, undef): Use Var.
3816 (fdefault-inline, foptional-diags): Document as doing nothing.
3817 * c-opts.c (c_common_handle_option): Remove cases for options now
3818 using Var. Mark ignored options as such.
3819
39dabefd
SB
38202010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3821
9faeb493 3822 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3823 * c-common.def: Likewise.
3824 * c-common.h: Likewise.
3825 * c-cppbuiltin.c: Likewise.
3826 * c-dump.c: Likewise.
3827 * c-format.c: Likewise.
3828 * c-format.h : Likewise.
3829 * c-gimplify.c: Likewise.
3830 * c-lex.c: Likewise.
3831 * c-omp.c: Likewise.
3832 * c.opt: Likewise.
3833 * c-opts.c: Likewise.
3834 * c-pch.c: Likewise.
3835 * c-ppoutput.c: Likewise.
3836 * c-pragma.c: Likewise.
3837 * c-pragma.h: Likewise.
3838 * c-pretty-print.c: Likewise.
3839 * c-pretty-print.h: Likewise.
3840 * c-semantics.c: Likewise.
3841 * stub-objc.c: Likewise.
3842
3843 * c-common.c: Include gt-c-family-c-common.h.
3844 * c-pragma.c: Include gt-c-family-c-pragma.h.
3845\f
23a5b65a 3846Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3847
3848Copying and distribution of this file, with or without modification,
3849are permitted in any medium without royalty provided the copyright
3850notice and this notice are preserved.