]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
PR preprocessor/63831
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
33058239 12014-12-19 Jakub Jelinek <jakub@redhat.com>
2
3 PR preprocessor/63831
4 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
5 and __has_cpp_attribute here.
6 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
7 c_common_has_attribute.
8 * c-common.h (c_common_has_attribute): New prototype.
9 * c-lex.c (init_c_lex): Set cb->has_attribute to
10 c_common_has_attribute instead of cb_has_attribute.
11 (get_token_no_padding): New function.
12 (cb_has_attribute): Renamed to ...
13 (c_common_has_attribute): ... this. No longer static. Use
14 get_token_no_padding, require ()s, don't build TREE_LIST
15 unnecessarily, fix up formatting, adjust diagnostics, call
16 init_attributes.
17
d1856d2c 182014-12-15 Jason Merrill <jason@redhat.com>
19
20 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
21 (-Wsized-deallocation): New.
22 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
23 to on in C++14 and up.
24
4972ed5d 252014-12-11 Jason Merrill <jason@redhat.com>
26
7d7fa964 27 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
28
4972ed5d 29 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
30 we aren't complaining about VLAs.
31
5ebccf71 322014-12-06 Marek Polacek <polacek@redhat.com>
33
34 PR tree-optimization/64183
35 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
36 shift-expression if it is integer_type_node. Use types_compatible_p.
37
f9e245b2 382014-11-29 Jakub Jelinek <jakub@redhat.com>
39
40 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
41 last argument from create_tmp_var_raw and create_tmp_var calls.
42 * cilk.c (gimplify_cilk_spawn): Likewise.
43 * c-omp.c (c_finish_omp_atomic): Likewise.
44
d2f60593 452014-11-28 Marek Polacek <polacek@redhat.com>
46
47 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
48 instead of unsigned_type_node.
49
fce2dbd1 502014-11-28 Marek Polacek <polacek@redhat.com>
51
52 PR c/63862
53 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
54 to op1_utype.
55 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
56 expression to unsigned_type_node.
57
3a4a2292 582014-11-20 Mark Wielaard <mjw@redhat.com>
59
60 PR debug/38757
61 * c-opts.c (set_std_c89): Set lang_hooks.name.
62 (set_std_c99): Likewise.
63 (set_std_c11): Likewise.
64 (set_std_cxx98): Likewise.
65 (set_std_cxx11): Likewise.
66 (set_std_cxx14): Likewise.
67 (set_std_cxx1z): Likewise.
68
c61ef207 692014-11-21 Jakub Jelinek <jakub@redhat.com>
70
71 PR target/63764
72 * c-common.h (convert_vector_to_pointer_for_subscript): Change
73 return type to bool.
c9ed79de 74 * c-common.c: Include gimple-expr.h.
c61ef207 75 (convert_vector_to_pointer_for_subscript): Change return type to
76 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
77 and copy it into a TARGET_EXPR and use that instead of *vecp
78 directly.
79
1a91d914 802014-11-19 David Malcolm <dmalcolm@redhat.com>
81
82 Merger of git branch "gimple-classes-v2-option-3".
83 * ChangeLog.gimple-classes: New.
84 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
85 from being just a vec<gimple> to a vec<gbind *>.
86
f8fc8b8e 872014-11-18 Jakub Jelinek <jakub@redhat.com>
88
89 PR sanitizer/63813
90 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
91 argument to ptype, set type to TREE_TYPE (ptype). Don't call
92 get_pointer_alignment for non-pointers. Use ptype, or if it is
93 reference type, corresponding pointer type, as type of kind
94 argument.
95 (ubsan_maybe_instrument_reference,
96 ubsan_maybe_instrument_member_call): Adjust callers.
97
8315e35e 982014-11-15 Marek Polacek <polacek@redhat.com>
99
100 PR middle-end/63884
101 * array-notation-common.c (is_sec_implicit_index_fn): Return false
102 for NULL fndecl.
103 (extract_array_notation_exprs): Return for NULL node.
104
86b9f14b 1052014-11-12 Joseph Myers <joseph@codesourcery.com>
106
107 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
108 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
109
0c93c8a9 1102014-11-12 Jakub Jelinek <jakub@redhat.com>
111
112 PR c/59708
113 * c-common.c (check_builtin_function_arguments): Handle
114 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
115
fdd735a7 1162014-11-10 Andi Kleen <ak@linux.intel.com>
117
118 PR c/60804
119 * c-common.h (check_no_cilk): Declare.
120 * cilk.c (get_error_location): New function.
121 (check_no_cilk): Dito.
122
5cb678b4 1232014-11-10 Andi Kleen <ak@linux.intel.com>
124
125 * cilk.c (recognize_spawn): Use expression location
126 for error message.
127
0feb4de1 1282014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
129
130 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
131
3aa2fa44 1322014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
133
134 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
135 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
136 (__cpp_range_based_for, __cpp_initializer_lists,
137 __cpp_delegating_constructors, __cpp_nsdmi,
138 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
139 for C++11; (__cpp_attribute_deprecated): Remove in favor of
140 __has_cpp_attribute.
141 * c-lex.c (cb_has_attribute): New callback CPP function;
142 (init_c_lex): Set has_attribute callback.
143
7fd22aae 1442014-11-04 Richard Biener <rguenther@suse.de>
145
146 * c-common.c (shorten_compare): Do not shorten mixed
147 DFP and non-DFP compares.
148
4af203ac 1492014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
150
151 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
152 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
153 Commentary and rearrangement of tests.
154 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
155 Commentary and rearrangement of tests.
156 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
157 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
158
3754d046 1592014-10-29 Richard Sandiford <richard.sandiford@arm.com>
160
161 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
162 enum from machine_mode.
163
1140c305 1642014-10-28 Andrew MacLeod <amacleod@redhat.com>
165
166 * c-family/c-common.c: Adjust include files.
167 * c-family/c-gimplify.c: Ditto.
168 * c-family/cilk.c: Ditto.
169 * c-family/c-pragma.c: Ditto.
170 * c-family/c-ubsan.c: Ditto.
171
94ea8568 1722014-10-27 Andrew MacLeod <amacleod@redhat.com>
173
174 * c-gimplify.c: Adjust include files.
175
32ecf960 1762014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
177
178 PR c++/53061
179 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
180 c_common_initialize_diagnostics.
181 * c-common.h: Likewise.
182
85fecbe2 1832014-10-24 Marek Polacek <polacek@redhat.com>
184
185 PR c/56980
186 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
187 print "struct"/"union"/"enum" for typedefed names.
188
e7ec033a 1892014-10-23 Marek Polacek <polacek@redhat.com>
190
191 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
192 in unsigned type.
193
c2598081 1942014-10-22 Jakub Jelinek <jakub@redhat.com>
195 Yury Gribov <y.gribov@samsung.com>
196
197 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
198 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
199 instead of flag_sanitize_recover as bool flag.
200
acebb7e2 2012014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
202
203 * cilk.c: Revert previous change.
204
6115016c 2052014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
206
207 PR c/63307
208 * cilk.c: Include vec.h.
209 (struct cilk_decls): New structure.
210 (wrapper_parm_cb): Split this function to...
211 (fill_decls_vec): ...this...
212 (create_parm_list): ...and this.
213 (compare_decls): New function.
214 (for_local_cb): Remove.
215 (wrapper_local_cb): Ditto.
216 (build_wrapper_type): For now first traverse and fill vector of
217 declarations then sort it and then deal with sorted vector.
218 (cilk_outline): Ditto.
219 (declare_one_free_variable): Ditto.
220
e610d2b2 2212014-10-17 Marek Polacek <polacek@redhat.com>
222
223 * c-opts.c (c_common_post_options): Set warn_implicit_int.
224 * c.opt (Wimplicit-int): Initialize to -1.
225
a3020f2f 2262014-10-16 Andrew MacLeod <amacleod@redhat.com>
227
228 * c-pragma.c: Adjust include files.
229 * c-semantics.c: Likewise.
230
926ddd2c 2312014-10-16 DJ Delorie <dj@redhat.com>
232
233 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
234 multiples of bytes.
235
b0542e7c 2362014-10-14 Jason Merrill <jason@redhat.com>
237
238 PR c++/63455
239 * c-common.h (CPP_PREPARSED_EXPR): New.
240 (N_CP_TTYPES): Adjust.
241
b2601928 2422014-10-15 Marek Polacek <polacek@redhat.com>
243
244 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
245
9f75f026 2462014-10-14 DJ Delorie <dj@redhat.com>
247
248 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
249 types, not just __int128.
250 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
251 types, not just __int128.
252 (cpp_atomic_builtins): Round pointer sizes up.
253 (type_suffix): Use type precision, not specific types.
254 * c-common.c (c_common_reswords): Remove __int128 special case.
255 (c_common_type_for_size): Check for all __intN types, not just
256 __int128.
257 (c_common_type_for_mode): Likewise.
258 (c_common_signed_or_unsigned_type): Likewise.
259 (c_build_bitfield_integer_type): Likewise.
260 (c_common_nodes_and_builtins): Likewise.
261 (keyword_begins_type_specifier): Likewise.
262 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
263 __intN variants.
264
2ef51f0e 2652014-10-12 Trevor Saunders <tsaunders@mozilla.com>
266
267 * c-common.c: Use hash_table instead of hashtab.
268
5b8257e3 2692014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
270
271 * c-family/c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
272 C++11 section.
273
5e84569c 2742014-10-03 Marc Glisse <marc.glisse@inria.fr>
275
276 PR c++/54427
277 PR c++/57198
278 PR c++/58845
279 * c-common.c (warn_logical_operator): Punt for vectors.
280
f6751ff2 2812014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
282
283 Implement SD-6: SG10 Feature Test Recommendations
284 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
285 macros and the __has_header macro.
286
c33e051d 2872014-09-30 Jason Merrill <jason@redhat.com>
288
f76a9aa8 289 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
290 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
291 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
292
717e52f9 293 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
294 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
295
c33e051d 296 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
297 * c-common.c (c_common_reswords): Remove __is_convertible_to.
298
5213d6c9 2992014-09-24 Marek Polacek <polacek@redhat.com>
300
301 PR c/61405
302 PR c/53874
303 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
304
6b722052 3052014-09-23 Andi Kleen <ak@linux.intel.com>
306
307 * c-common.c (handle_no_reorder_attribute): New function.
308 (c_common_attribute_table): Add no_reorder attribute.
309
0cb69d12 3102014-09-22 Joseph Myers <joseph@codesourcery.com>
311
312 * c-cppbuiltin.c (c_cpp_builtins): Define
313 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
314 modes.
315
168dfbf0 3162014-09-18 Joseph Myers <joseph@codesourcery.com>
317
318 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
319 for supported floating-point modes.
320
b83705f4 3212014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
322
323 * c.opt (Wpsabi): Use LangEnabledBy.
324 * c-opts.c (c_common_handle_option): Do not handle here.
325
d5957f0d 3262014-09-12 Joseph Myers <joseph@codesourcery.com>
327
328 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
329 macros for floating-point modes.
330
bae6edff 3312014-09-11 Marc Glisse <marc.glisse@inria.fr>
332
333 PR target/58757
334 * c-cppbuiltin.c (builtin_define_float_constants): Correct
335 __*_DENORM_MIN__ without denormals.
336
73a69d02 3372014-09-10 Jakub Jelinek <jakub@redhat.com>
338
339 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
340 ubsan_instrument_vla, ubsan_instrument_return): Adjust
341 ubsan_create_data callers.
342 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
343 index is constant or BIT_AND_EXPR with constant mask and is
344 small enough for the bound.
345 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
346 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
347
7ff8db31 3482014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
349
350 * c.opt: Add CppReason to various flags.
351 (Wdate-time): Re-sort.
352 * c-common.c: Include c-common.h earlier.
353 (struct reason_option_codes_t): Delete.
354 (c_option_controlling_cpp_error): Prefix global type and struct
355 with cpp_.
356
bcc1f37e 3572014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
358
359 * c.opt (Wnormalized): New.
360 (Wnormalized=): Use Enum and Reject Negative.
361 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
362
b660d3c6 3632014-09-08 Joseph Myers <joseph@codesourcery.com>
364
365 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
366 digits of floating-point modes if -fbuilding-libgcc.
367
325b8c3c 3682014-09-05 Joseph Myers <joseph@codesourcery.com>
369
370 * c-cppbuiltin.c (c_cpp_builtins): Also define
371 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
372 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
373 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
374 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
375 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
376 __LIBGCC_STACK_GROWS_DOWNWARD__,
377 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
378 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
379 __LIBGCC_DWARF_FRAME_REGISTERS__,
380 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
381 __LIBGCC_STACK_POINTER_REGNUM__ and
382 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
383 (builtin_define_with_value): Handle backslash-escaping in string
384 macro values.
385
1e074e77 3862014-09-05 Richard Biener <rguenther@suse.de>
387
388 PR middle-end/63148
389 * c-format.c (check_format_arg): Properly handle
390 effectively signed POINTER_PLUS_EXPR offset.
391
04afd878 3922014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
393
394 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
395 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
396 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
397 and Init.
398 * c-opts.c (c_common_handle_option): Do not handle here.
399 (sanitize_cpp_opts): Likewise.
400 * c-common.c (struct reason_option_codes_t): Handle
401 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
402
a3f448f0 4032014-09-03 Marek Polacek <polacek@redhat.com>
404
405 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
406
40750995 4072014-09-02 Jakub Jelinek <jakub@redhat.com>
408 Balaji V. Iyer <balaji.v.iyer@intel.com>
409 Igor Zamyatin <igor.zamyatin@intel.com>
410
411 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
412 * c-common.c (c_common_reswords): Added _Cilk_for.
413 * c-common.h (enum rid): Added RID_CILK_FOR.
414 (cilk_for_number_of_iterations): Add declaration.
415 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
416 CILK_FOR.
417 * c-pragma.c (init_pragma): Register "grainsize" pragma.
418 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
419
f0fbe519 4202014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
421
422 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
423 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
424 Wundef): Use CPP, Var and Init.
425 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
426
a7d2e480 4272014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
428
429 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
430 * c-opts.c (c_common_handle_option): Do not handle here.
431
c35e53f1 4322014-08-25 Jason Merrill <jason@redhat.com>
433
434 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
435 -std=c++14 and -std=gnu++14, rather than the reverse.
436 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
437 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
438 * c-common.h (cxx_dialect): Remove cxx1y.
439
4e454776 4402014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
441
442 * c-common.h (enum cxx_dialect): Add cxx14.
443 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
444 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
445 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
446
af1a80f2 4472014-08-22 Jason Merrill <jason@redhat.com>
448
449 * c.opt (std=gnu++17): Fix alias.
450
dc6229e8 4512014-08-22 Marek Polacek <polacek@redhat.com>
452
453 PR c++/62199
454 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
455 check for vector types. Drop LHS argument.
456 * c-common.h (warn_logical_not_parentheses): Adjust.
457
ba7f7c88 4582014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
459
460 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
461 (Wmultichar): Likewise.
462 (Wdate-time): Use C-family languages instead of Common. Use CPP
463 and Var.
464 * c-opts.c (c_common_handle_option): Do not handle the above
465 options here.
466 (sanitize_cpp_opts): Likewise.
467
399d4f80 4682014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
469
470 PR fortran/44054
471 * c-opts.c: Include tree-diagnostics.h.
472 (c_diagnostic_finalizer): New.
473 (c_common_initialize_diagnostics): Use it.
474
1babed5f 4752014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
476
477 PR preprocessor/51303
478 * c-common.c (struct reason_option_codes_t option_codes):
479 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
480
3636964b 4812014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
482
483 PR c/60975
484 PR c/53063
485 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
486 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
487 (c_common_post_options): Call init_global_opts_from_cpp.
488 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
489
78bf4156 4902014-08-19 Marek Polacek <polacek@redhat.com>
491
492 PR c++/62153
493 * c-common.c (maybe_warn_bool_compare): New function.
494 * c-common.h (maybe_warn_bool_compare): Declare.
495 * c.opt (Wbool-compare): New option.
496
508ea33a 4972014-08-19 Marek Polacek <polacek@redhat.com>
498
499 * c.opt (Wc99-c11-compat): New option.
500
806fe15e 5012014-08-19 Marek Polacek <polacek@redhat.com>
502
503 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
504 to warn_c90_c99_compat.
505 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
506 to -1.
507
6c867de1 5082014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
509 Steven Bosscher <steven@gcc.gnu.org>
510
511 PR c/52952
512 * c-format.c: Add extra_arg_loc and format_string_loc to struct
513 format_check_results.
514 (check_function_format): Use true and add comment for boolean
515 argument.
516 (finish_dollar_format_checking): Use explicit location when warning.
517 (check_format_info): Likewise.
518 (check_format_arg): Set extra_arg_loc and format_string_loc.
519 (check_format_info_main): Use explicit location when warning.
520 (check_format_types): Pass explicit location.
521 (format_type_warning): Likewise.
522
dc8078a3 5232014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
524
525 PR fortran/44054
526 * c-format.c: Handle Fortran flags.
527
d271ec7e 5282014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
529
530 PR other/61962
531 * array-notation-common.c (find_rank): Added handling for other
532 types of references.
533
890c2e2f 5342014-08-10 Marek Polacek <polacek@redhat.com>
535
536 PR c/51849
537 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
538 * c.opt (Wc90-c99-compat): Add option.
539
7149db5f 5402014-08-07 Trevor Saunders <tsaunders@mozilla.com>
541
542 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
543
2d2f6a15 5442014-08-03 Marek Polacek <polacek@redhat.com>
545
546 * c-common.c (check_case_value): Add location_t parameter. Use it.
547 (c_add_case_label): Pass loc to check_case_value.
548
06ecf488 5492014-08-02 Trevor Saunders <tsaunders@mozilla.com>
550
551 * cilk.c: Use hash_map instead of pointer_map.
552
431205b7 5532014-08-02 Trevor Saunders <tsaunders@mozilla.com>
554
555 * c-gimplify.c: Use hash_set instead of pointer_set.
556
3394c80c 5572014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
558
559 PR middle-end/61455
560 * array-notation-common.c (extract_array_notation_exprs): Handling
561 of DECL_EXPR added.
562
392dee1e 5632014-08-01 Jakub Jelinek <jakub@redhat.com>
564
565 * c-common.h (min_align_of_type): Removed prototype.
566 * c-common.c (min_align_of_type): Removed.
567 * c-ubsan.h (ubsan_maybe_instrument_reference,
568 ubsan_maybe_instrument_member_call): New prototypes.
569 * c-ubsan.c: Include stor-layout.h and builtins.h.
570 (ubsan_maybe_instrument_reference_or_call,
571 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
572 functions.
573
f22a2cb7 5742014-07-31 Marc Glisse <marc.glisse@inria.fr>
575
576 PR c++/60517
577 * c.opt (-Wreturn-local-addr): Move to common.opt.
578
87b0198f 5792014-07-30 Jason Merrill <jason@redhat.com>
580
581 PR c++/61659
582 PR c++/61687
583 Revert:
584 * c.opt (-fuse-all-virtuals): New.
585
74691f46 5862014-07-30 Tom Tromey <tromey@redhat.com>
587
588 PR c/59855
589 * c.opt (Wdesignated-init): New option.
590 * c-common.c (c_common_attribute_table): Add "designated_init".
591 (handle_designated_init): New function.
592
9140d56f 5932014-07-24 Marek Polacek <polacek@redhat.com>
594
595 PR c/57653
596 * c-opts.c (c_finish_options): If -imacros is in effect, return.
597
a09c5cc2 5982014-07-16 Dodji Seketeli <dodji@redhat.com>
599
600 PR preprocessor/60723 - missing system-ness marks for macro tokens
601 * c-ppoutput.c (struct print::prev_was_system_token): New data
602 member.
603 (init_pp_output): Initialize it.
604 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
605 (do_line_change): Return a flag saying if a line marker was
606 emitted or not.
607 (scan_translation_unit): Detect if the system-ness of the token we
608 are about to emit is different from the one of the previously
609 emitted token. If so, emit a line marker. Avoid emitting useless
610 adjacent line markers. Avoid emitting line markers for tokens
611 originating from the expansion of built-in macros.
612 (scan_translation_unit_directives_only): Adjust.
613
2b25b62f 6142014-07-15 Marek Polacek <polacek@redhat.com>
615
616 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
617 TYPE_MAX_VALUE is NULL.
618
305d96bc 6192014-07-14 Jakub Jelinek <jakub@redhat.com>
620
621 PR middle-end/61294
622 * c.opt (Wmemset-transposed-args): New warning.
623
8ea4660d 6242014-07-10 Jason Merrill <jason@redhat.com>
625
626 PR c++/61659
627 PR c++/61687
628 * c.opt (-fuse-all-virtuals): New.
629
cd480f3d 6302014-07-09 Richard Biener <rguenther@suse.de>
631
632 PR c-family/61741
633 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
634 using unsigned arithmetic if overflow does not wrap instead of
635 if overflow is undefined.
636
87d59e72 6372014-07-06 Marek Polacek <polacek@redhat.com>
638
639 PR c/6940
640 * c.opt (Wsizeof-array-argument): New option.
641
d69521d8 6422014-07-03 Jakub Jelinek <jakub@redhat.com>
643
644 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
645 comments->count <= 1, as comments->entries might be NULL.
646
1207866e 6472014-07-01 Marek Polacek <polacek@redhat.com>
648
649 * c.opt (Wint-conversion): New option.
650
7a6bbb76 6512014-07-01 Marek Polacek <polacek@redhat.com>
652
653 PR c/58286
654 * c.opt (Wincompatible-pointer-types): New option.
655
9d4eeb52 6562014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
657
658 PR c++/51400
659 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
660 Do not discard TYPE_QUALS of type.
661
4b53bc0f 6622014-06-26 Jason Merrill <jason@redhat.com>
663
664 * c-common.h (enum cxx_dialect): Add cxx1z.
665 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
666 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
667
a8a8d4ea 6682014-06-26 Teresa Johnson <tejohnson@google.com>
669
670 * c-common.h (get_dump_info): Declare.
671 * c-gimplify.c (c_genericize): Use saved dump files.
672 * c-opts.c (c_common_parse_file): Begin and end dumps
673 once around parsing invocation.
674 (get_dump_info): New function.
675
1f6be080 6762014-06-23 Marek Polacek <polacek@redhat.com>
677 Andrew MacLeod <amacleod@redhat.com>
678
679 PR c/61553
680 * c-common.c (get_atomic_generic_size): Don't segfault if the
681 type doesn't have a size.
682
5ef6b660 6832014-06-20 Marek Polacek <polacek@redhat.com>
684
685 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
686 (ubsan_walk_array_refs_r): New function.
687 (c_genericize): Instrument array bounds.
688 * c-ubsan.c: Include "internal-fn.h".
689 (ubsan_instrument_division): Mark instrumented arrays as having
690 side effects. Adjust ubsan_type_descriptor call.
691 (ubsan_instrument_shift): Likewise.
692 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
693 (ubsan_instrument_bounds): New function.
694 (ubsan_array_ref_instrumented_p): New function.
695 (ubsan_maybe_instrument_array_ref): New function.
696 * c-ubsan.h (ubsan_instrument_bounds): Declare.
697 (ubsan_array_ref_instrumented_p): Declare.
698 (ubsan_maybe_instrument_array_ref): Declare.
699
7002014-06-20 Hale Wang <hale.wang@arm.com>
3ccd1e6e 701
702 PR lto/61123
703 * c.opt (fshort-enums): Add to LTO.
704 * c.opt (fshort-wchar): Likewise.
705
78438f31 7062014-06-16 Marek Polacek <polacek@redhat.com>
707
708 PR c/60439
709 * c.opt (Wswitch-bool): Add Var.
710
5fddcf34 7112014-06-12 Jakub Jelinek <jakub@redhat.com>
712
713 PR middle-end/61486
714 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
715 #pragma omp target teams or
716 #pragma omp {,target }teams distribute simd.
717
74b777e5 7182014-06-12 Jason Merrill <jason@redhat.com>
719
720 * c.opt (Wabi=, fabi-compat-version): New.
721 * c-opts.c (c_common_handle_option): Handle -Wabi=.
722 (c_common_post_options): Handle flag_abi_compat_version default.
723 Disallow -fabi-compat-version=1.
724 * c-common.h (abi_version_crosses): New.
725
738a6bda 7262014-06-11 Jan Hubicka <hubicka@ucw.cz>
727
728 * c-family/c-common.c (handle_section_attribute): Update handling for
729 section names that are no longer trees.
730
cf5f881f 7312014-06-10 Jakub Jelinek <jakub@redhat.com>
732
733 PR fortran/60928
734 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
735 (omp_pragmas): ... back here.
736
32dc1512 7372014-06-05 Marek Polacek <polacek@redhat.com>
738
739 PR c/49706
740 * c-common.c (warn_logical_not_parentheses): New function.
741 * c-common.h (warn_logical_not_parentheses): Declare.
742 * c.opt (Wlogical-not-parentheses): New option.
743
f61a9bc2 7442014-06-04 Marek Polacek <polacek@redhat.com>
745
746 PR c/30020
747 * c-common.c (check_case_bounds): Add location parameter.
748 Use it.
749 (c_add_case_label): Pass loc to check_case_bounds.
750
c69ec07d 7512014-06-03 Marek Polacek <polacek@redhat.com>
752
753 PR c/60439
754 * c.opt (Wswitch-bool): New option.
755
3c77ca67 7562014-05-22 Thomas Schwinge <thomas@codesourcery.com>
757
68a2c870 758 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
759 Remove prototypes.
760 (record_types_used_by_current_var_decl): Move prototype to where
761 it belongs.
762
3c77ca67 763 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
764 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
765 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
766
3ab4693e 7672014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
768
769 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
770 * c-common.c (c_common_nodes_and_builtins): Don't initialize
771 void_zero_node.
772 * c-pretty-print.c (pp_c_void_constant): New function.
773 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
774 (c_pretty_printer::expression): Handle VOID_CST.
775 * cilk.c (extract_free_variables): Likewise.
776 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
777 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
778
25a27413 7792014-05-17 Trevor Saunders <tsaunders@mozilla.com>
780
781 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
782 * c-pragma.c (push_alignment): Adjust.
783 (handle_pragma_push_options): Likewise.
784
3e5a8b00 7852014-05-09 Marek Polacek <polacek@redhat.com>
786
787 PR c/50459
788 * c-common.c (check_user_alignment): Return -1 if alignment is error
789 node.
790 (handle_aligned_attribute): Don't call default_conversion on
791 FUNCTION_DECLs.
792 (handle_vector_size_attribute): Likewise.
793 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
794 (handle_sentinel_attribute): Call default_conversion and allow even
795 integral types as an argument.
796
c2c4ae8d 7972014-05-08 Marek Polacek <polacek@redhat.com>
798
799 PR c/61053
800 * c-common.c (min_align_of_type): New function factored out from...
801 (c_sizeof_or_alignof_type): ...here.
802 * c-common.h (min_align_of_type): Declare.
803
2026249a 8042014-05-08 Marek Polacek <polacek@redhat.com>
805
806 PR c/61077
807 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
808 parameter type of main.
809
33c8dcfe 8102014-05-07 DJ Delorie <dj@redhat.com>
811
812 * c-cppbuiltin.c (print_bits_of_hex): New.
813 (builtin_define_type_minmax): Print values using hex so as not to
814 require a pre-computed list of string values.
815
960d5a55 8162014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
817 Mike Stump <mikestump@comcast.net>
818 Richard Sandiford <rdsandiford@googlemail.com>
819
820 * c-ada-spec.c: Include wide-int.h.
821 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
822 (dump_generic_ada_node): Use wide-int interfaces.
823 * c-common.c: Include wide-int-print.h.
824 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
825 (pointer_int_sum): Use wide-int interfaces.
826 (c_common_nodes_and_builtins): Use make_int_cst.
827 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
828 (handle_alloc_size_attribute): Use wide-int interfaces.
829 (get_nonnull_operand): Likewise.
830 * c-format.c (get_constant): Use tree_fits_uhwi_p.
831 * c-lex.c: Include wide-int.h.
832 (narrowest_unsigned_type): Take a widest_int rather than two
833 HOST_WIDE_INTs.
834 (narrowest_signed_type): Likewise.
835 (interpret_integer): Update accordingly. Use wide-int interfaces.
836 (lex_charconst): Use wide-int interfaces.
837 * c-pretty-print.c: Include wide-int.h.
838 (pp_c_integer_constant): Use wide-int interfaces.
839 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
840 INT_CST_LT_UNSIGNED.
841
bbb88b31 8422014-05-06 Richard Biener <rguenther@suse.de>
843
844 * c-opts.c (c_common_post_options): For -freestanding,
845 -fno-hosted and -fno-builtin disable pattern recognition
846 if not enabled explicitely.
847
022d4718 8482014-05-02 Marek Polacek <polacek@redhat.com>
849
850 * c.opt (Wsizeof-pointer-memaccess): Describe option.
851
e4ab2ef3 8522014-05-01 Marek Polacek <polacek@redhat.com>
853
854 PR c/43245
855 * c.opt (Wdiscarded-qualifiers): Add.
856
52cc0072 8572014-04-30 Marek Polacek <polacek@redhat.com>
858
859 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
860 INT_MIN / -1 sanitization only for integer types.
861
4a026b48 8622014-04-25 Marek Polacek <polacek@redhat.com>
863
864 PR c/18079
865 * c-common.c (handle_noinline_attribute): Warn if the attribute
866 conflicts with always_inline attribute.
867 (handle_always_inline_attribute): Warn if the attribute conflicts
868 with noinline attribute.
869
90e645fa 8702014-04-25 Marek Polacek <polacek@redhat.com>
871
872 PR c/60156
873 * c-common.c (check_main_parameter_types): Warn about variadic main.
874
db103ea4 8752014-04-24 Mike Stump <mikestump@comcast.net>
876
877 * c.opt (Wshadow-ivar): Default to on.
878
06511efd 8792014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
880
881 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
882
cdf34fca 8832014-04-23 Marek Polacek <polacek@redhat.com>
884
885 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
886
7311d7c1 8872014-04-22 Jakub Jelinek <jakub@redhat.com>
888
889 PR sanitizer/60275
890 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
891 if flag_sanitize_undefined_trap_on_error.
892 (ubsan_instrument_division, ubsan_instrument_shift,
893 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
894 if !flag_sanitize_recover.
895
c1917557 8962014-04-22 Marc Glisse <marc.glisse@inria.fr>
897
898 PR libstdc++/43622
899 * c-common.c (registered_builtin_types): Make non-static.
900 * c-common.h (registered_builtin_types): Declare.
901
b2ca6510 9022014-04-14 Richard Biener <rguenther@suse.de>
903 Marc Glisse <marc.glisse@inria.fr>
904
905 PR c/60819
906 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
907 apply may-alias the scalar pointer type when applicable.
908
855372a3 9092014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
910
911 PR middle-end/60467
912 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
913 as possible argument for Cilk_spawn.
914
4012a986 9152014-04-11 Tobias Burnus <burnus@net-b.de>
916
917 PR c/60194
918 * c.opt (Wformat-signedness): Add
919 * c-format.c(check_format_types): Use it.
920
0d284870 9212014-04-11 Jason Merrill <jason@redhat.com>
922
923 PR c++/57926
924 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
925 default_conversion for an array argument.
926
a34c1231 9272014-04-08 Marek Polacek <polacek@redhat.com>
928
929 PR sanitizer/60745
930 * c-ubsan.c: Include asan.h.
931 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
932
a35a8e18 9332014-04-03 Nathan Sidwell <nathan@codesourcery.com>
934
935 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
936
b23e42b6 9372014-04-02 Marek Polacek <polacek@redhat.com>
938
939 * c-common.h (c_expand_expr): Remove declaration.
940
5a672e62 9412014-03-28 Jakub Jelinek <jakub@redhat.com>
942
943 PR c++/60689
944 * c-common.c (add_atomic_size_parameter): When creating new
945 params vector, push the size argument first.
946
d4d068c0 9472014-03-26 Jakub Jelinek <jakub@redhat.com>
948
949 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
950 ubsan_instrument_vla, ubsan_instrument_return): Adjust
951 ubsan_create_data callers.
952
446bdf5f 9532014-03-22 Jakub Jelinek <jakub@redhat.com>
954
955 PR debug/60603
956 * c-opts.c (c_finish_options): Restore cb_file_change call to
957 <built-in>.
958
8895f0a3 9592014-03-13 Jakub Jelinek <jakub@redhat.com>
960
961 PR middle-end/36282
962 * c-pragma.c (apply_pragma_weak): Only look at
963 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
964 DECL_ASSEMBLER_NAME_SET_P (decl).
965 (maybe_apply_pending_pragma_weaks): Exit early if
966 vec_safe_is_empty (pending_weaks) rather than only when
967 !pending_weaks.
968 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
969 set assembler name back to NULL afterwards.
970
7a5da2cd 9712014-03-11 Jason Merrill <jason@redhat.com>
972
973 * c.opt: Add -std=gnu++14.
974
95093889 9752014-03-11 Ian Bolton <ian.bolton@arm.com>
976
977 * c-opts.c (c_common_post_options): Don't override
978 -ffp-contract=fast if unsafe-math-optimizations is on.
979
c9a24b37 9802014-03-08 Paulo Matos <paulo@matos-sorge.com>
981
982 * c.opt: Enable LTO FE for fshort-double.
983
3f6dba6e 9842014-03-07 Jason Merrill <jason@redhat.com>
985
986 * c.opt: Add -std=c++14.
987
3bfdc94f 9882014-03-06 Marek Polacek <polacek@redhat.com>
989
990 PR c/60197
991 * cilk.c (contains_cilk_spawn_stmt): New function.
992 (contains_cilk_spawn_stmt_walker): Likewise.
993 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
994 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
995
8b3a6a4c 9962014-03-03 Jakub Jelinek <jakub@redhat.com>
997
998 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
999 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1000 even when flag_preprocess_only.
1001
734ec290 10022014-02-26 Jason Merrill <jason@redhat.com>
1003
1004 PR c++/59231
1005 PR c++/11586
1006 * c-common.c (shorten_compare): Don't check
1007 c_inhibit_evaluation_warnings.
1008
81aec8b8 10092014-02-19 Jakub Jelinek <jakub@redhat.com>
1010
d1081017 1011 PR c/37743
1012 * c-common.c (c_common_nodes_and_builtins): When initializing
1013 c_uint{16,32,64}_type_node, also set corresponding
1014 uint{16,32,64}_type_node to the same value.
1015
81aec8b8 1016 PR c++/60267
1017 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1018 for PRAGMA_IVDEP if flag_preprocess_only.
1019
312243bb 10202014-02-12 Jakub Jelinek <jakub@redhat.com>
1021
1022 PR c/60101
1023 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1024 if false, add ADD itself, rather than vice versa.
1025 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1026 copy. For SAVE_EXPR, only call merge_tlist once.
1027
237e78b1 10282014-02-08 Jakub Jelinek <jakub@redhat.com>
1029
1030 PR middle-end/60092
1031 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1032 and tree_to_uhwi.
1033 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1034 functions.
1035 (c_common_attribute_table): Add alloc_align and assume_aligned
1036 attributes.
1037
76fdceeb 10382014-02-06 Marek Polacek <polacek@redhat.com>
1039
1040 PR c/60087
1041 * c-common.c (warn_for_sign_compare): Call warning_at with location
1042 instead of warning.
1043
4a4dea42 10442014-02-05 Marek Polacek <polacek@redhat.com>
1045
1046 PR c/53123
1047 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1048 statement.
1049
ec704957 10502014-02-04 Marek Polacek <polacek@redhat.com>
1051
1052 PR c/60036
1053 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1054 SAVE_EXPR.
1055
caf62483 10562014-02-03 Marc Glisse <marc.glisse@inria.fr>
1057
1058 PR c++/53017
1059 PR c++/59211
1060 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1061 handle_vector_size_attribute, handle_nonnull_attribute): Call
1062 default_conversion on the attribute argument.
1063 (handle_nonnull_attribute): Increment the argument number.
1064
ec761d5a 10652014-01-31 Marek Polacek <polacek@redhat.com>
1066
1067 PR c/59963
1068 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1069 build_function_call_vec.
1070 (resolve_overloaded_builtin): Likewise.
1071 * c-common.h (build_function_call_vec): Adjust declaration.
1072
22a75734 10732014-01-30 Marek Polacek <polacek@redhat.com>
1074
1075 PR c/59940
1076 * c-common.h (unsafe_conversion_p): Adjust declaration.
1077 (warnings_for_convert_and_check): Likewise.
1078 (convert_and_check): Likewise.
1079 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1080 expansion_point_location_if_in_system_header on it.
1081 (warnings_for_convert_and_check): Add location parameter. Call
1082 expansion_point_location_if_in_system_header on it. Use it.
1083 (convert_and_check): Add location parameter. Use it.
1084 (conversion_warning): Likewise.
1085 (c_add_case_label): Adjust convert_and_check calls.
1086 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1087
a89e6c15 10882014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1089
1090 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1091 flag_cilkplus.
1092 * c-pragma.c (init_pragma): Likewise.
1093 * c.opt: Likewise.
1094
2623625f 10952014-01-23 Marek Polacek <polacek@redhat.com>
1096
1097 PR c/59846
1098 * c-common.c (shorten_compare): Add location_t parameter.
1099 * c-common.h (shorten_binary_op): Adjust declaration.
1100
46da3601 11012014-01-23 Marek Polacek <polacek@redhat.com>
1102
1103 PR c/58346
1104 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1105 * c-common.h: Declare it.
1106
c9743c6a 11072014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1108
1109 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1110 * c-ada-spec.c (dump_ads): Likewise.
1111 (cpp_check): Likewise.
1112 (dump_ada_specs): Likewise.
1113
11142014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
36e33c6a 1115
1116 PR c++/49718
1117 * c-common.c (handle_no_instrument_function_attribute): Allow
1118 no_instrument_function attribute in class member
1119 definition/declaration.
1120
1248c663 11212014-01-15 Jakub Jelinek <jakub@redhat.com>
1122
1123 PR c/58943
1124 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1125 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1126 being COMPOUND_EXPR.
1127 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1128 operand a SAVE_EXPR and second MODIFY_EXPR.
1129
6e5c480b 11302014-01-09 Jakub Jelinek <jakub@redhat.com>
1131
1132 PR target/58115
1133 * c-pch.c (c_common_write_pch): Call
1134 prepare_target_option_nodes_for_pch.
1135
3aea1f79 11362014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1137
1138 Update copyright years
1139
e4f22041 11402014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1141
1142 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1143 the copyright notice.
1144
7fb0fe24 11452013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1146
1147 * c-ada-spec.c (print_constructor): New function.
1148 (print_destructor): Retrieve the origin of the destructor.
1149 (print_ada_declaration): Revamp handling of constructors/destructors.
1150
468088ac 11512013-12-23 Stuart Hastings <stuart@apple.com>
1152 Bill Maddox <maddox@google.com>
1153 Jason Merrill <jason@redhat.com>
1154
1155 * c.opt: Add -fdeclone-ctor-dtor.
1156 * c-opts.c (c_common_post_options): Default to on iff -Os.
1157
74acc703 11582013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1159
1160 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1161 attribute.
1162 * c-pragma.h (enum pragma_cilk_clause): Remove.
1163 (enum pragma_omp_clause): Added the following fields:
1164 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1165 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1166 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1167 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1168 PRAGMA_CILK_CLAUSE_UNIFORM.
1169
1170
433e804e 11712013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1172
1173 * cilk.c (cilk_outline): Made this function non-static.
1174 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1175 (create_cilk_wrapper): Added a new parameter: a function pointer.
1176 (c_install_body_w_frame_cleanup): Remove
1177 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1178 * c-common.h (cilk_outline): New prototype.
1179 (gimplify_cilk_spawn): Removed two parameters.
1180 (cilk_install_body_with_frame_cleanup): New prototype.
1181 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1182 CILK_SPAWN_STMT case.
1183
5bcc7e60 11842013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1185
e66325ea 1186 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1187
5bcc7e60 1188 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1189 (int_array_type_node): Remove.
1190 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1191
0b26ec77 11922013-12-05 Marek Polacek <polacek@redhat.com>
1193
1194 PR c/52023
1195 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1196 [ADJUST_FIELD_ALIGN].
1197
a179a7dc 11982013-12-04 Joseph Myers <joseph@codesourcery.com>
1199
1200 PR c/52023
1201 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1202 and check field alignment if set.
1203 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1204 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1205
137559b2 12062013-12-04 Jakub Jelinek <jakub@redhat.com>
1207 Marek Polacek <polacek@redhat.com>
1208
1209 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1210 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1211
648fd348 12122013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1213
1214 PR c/59309
1215 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1216 arguments.
1217
253e1cae 12182013-11-29 Jakub Jelinek <jakub@redhat.com>
1219
1220 PR c/59280
1221 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1222 goto invalid. If it is error_mark_node, don't issue further
1223 diagnostics.
1224
3e398f5b 12252013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1226
1227 * c.opt (Wopenmp-simd): New.
1228
020bc656 12292013-11-22 Jakub Jelinek <jakub@redhat.com>
1230
1231 * c-ubsan.h (ubsan_instrument_return): New prototype.
1232 * c-ubsan.c (ubsan_instrument_return): New function.
1233
bc61cadb 12342013-11-22 Andrew MacLeod <amacleod@redhat.com>
1235
1236 * c-common.c: Add required include files from gimple.h.
1237 * c-gimplify.c: Likewise
1238 * cilk.c: Likewise
1239
3df42822 12402013-11-22 David Malcolm <dmalcolm@redhat.com>
1241
1242 * c-common.c (unsafe_conversion_p): Remove use of
1243 EXPR_LOC_OR_HERE macro.
1244 (conversion_warning): Likewise.
1245 (warnings_for_convert_and_check): Likewise.
1246 (warn_for_collisions_1): Likewise.
1247 (shorten_compare): Likewise, and remove use of in_system_header
1248 macro, using the location from the former.
1249 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1250 (cb_def_pragma): Remove use of in_system_header macro.
1251 (lex_string): Likewise.
1252 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1253
8c53c46c 12542013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1255 Mike Stump <mikestump@comcast.net>
1256 Richard Sandiford <rdsandiford@googlemail.com>
1257
1258 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1259 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1260 tree_fits_shwi_p or tree_fits_uhwi_p.
1261 (dump_generic_ada_node): Likewise.
1262 * c-format.c (check_format_arg): Likewise.
1263 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1264
5200ef07 12652013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1266
1267 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1268
ca9d7d74 12692013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1270
1271 PR c/53001
1272 * c-common.c (unsafe_conversion_p): Make this function
1273 return an enumeration with more detail.
1274 (conversion_warning): Use the new return type of
1275 unsafe_conversion_p to separately warn either about conversions
1276 that lower floating point number precision or about the other
1277 kinds of conversions.
1278 * c-common.h (enum conversion_safety): New enumeration.
1279 (unsafe_conversion_p): switching return type to
1280 conversion_safety enumeration.
1281 * c.opt: Adding new warning -Wfloat-conversion and
1282 enabling it with -Wconversion.
1283
0391a567 12842013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1285
1286 * c-opts.c: Include plugin.h.
1287 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1288
19b928d9 12892013-11-19 Marek Polacek <polacek@redhat.com>
1290
1291 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1292 call.
1293 (ubsan_instrument_shift): Likewise.
1294 (ubsan_instrument_vla): Likewise.
1295
aa59f000 12962013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1297
1298 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1299 cast to unsigned type.
1300
08f817b3 13012013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1302
1303 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1304 tree_low_cst.
1305 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1306 rather than tree_low_cst.
1307
6a0712d4 13082013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1309
1310 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1311 tree_to_uhwi throughout.
1312
fcb97e84 13132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1314
1315 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1316 tree_low_cst (..., 0) with tree_to_shwi throughout.
1317
cd4547bf 13182013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1319
1320 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1321 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1322
35ec552a 13232013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1324
1325 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1326 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1327
f2697631 13282013-11-15 Aldy Hernandez <aldyh@redhat.com>
1329
1330 * c-cilkplus.c: New file.
1331 * c-common.c (readonly_error): Add location argument.
1332 * c-common.h (readonly_error): Same.
1333 (c_finish_cilk_clauses): Protoize.
1334 (c_check_cilk_loop): Same.
1335 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1336 Do not fail on error_mark_node.
1337 Abstract increment canonicalization to here...
1338 (c_omp_for_incr_canonicalize_ptr): New.
1339 c-pragma.c (init_pragma): Register "simd" pragma.
1340 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1341 (enum pragma_cilk_clause): New.
1342
0aa8c34e 13432013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1344
1345 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1346 wchar_type and host_integerp checks.
1347
e795d6e1 13482013-11-14 Andrew MacLeod <amacleod@redhat.com>
1349
1350 * c-common.c: Likewise.
1351 * c-gimplify.c: Likewise.
1352 * cilk.c: Likewise.
1353
9ed99284 13542013-11-14 Diego Novillo <dnovillo@google.com>
1355
1356 * c-common.c: Include fold-const.h.
1357 Include stor-layout.h.
1358 Include calls.h.
1359 Include stringpool.h.
1360 Include attribs.h.
1361 Include varasm.h.
1362 Include trans-mem.h.
1363 * c-cppbuiltin.c: Include stor-layout.h.
1364 Include stringpool.h.
1365 * c-format.c: Include stringpool.h.
1366 * c-lex.c: Include stringpool.h.
1367 Include stor-layout.h.
1368 * c-pragma.c: Include stringpool.h.
1369 Include attribs.h.
1370 Include varasm.h.
1371 Include gcc-symtab.h.
1372 * c-pretty-print.c: Include stor-layout.h.
1373 Include attribs.h.
1374 * cilk.c: Include stringpool.h.
1375 Include calls.h.
1376
4fba5eb9 13772013-11-13 Joseph Myers <joseph@codesourcery.com>
1378
1379 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1380 * c-common.c (c_common_reswords): Add __auto_type.
1381 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1382
a8783bee 13832013-11-12 Andrew MacLeod <amacleod@redhat.com>
1384
e795d6e1 1385 * c-common.c: Include gimplify.h.
1386 * c-gimplify.c: Likewise.
1387 * cilk.c: Likewise.
1388 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1389 * c-ubsan.c: Don't include gimple.h.
a8783bee 1390
d184e0c0 13912013-11-12 Joseph Myers <joseph@codesourcery.com>
1392
1393 * c-common.c (c_common_reswords): Add _Thread_local.
1394
a056826c 13952013-11-09 Joseph Myers <joseph@codesourcery.com>
1396
1397 * c-common.c (atomic_size_supported_p): New function.
1398 (resolve_overloaded_atomic_exchange)
1399 (resolve_overloaded_atomic_compare_exchange)
1400 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1401 Use it instead of comparing size with a local list of sizes.
1402
b560fabd 14032013-11-07 Andrew MacLeod <amacleod@redhat.com>
1404 Joseph Myers <joseph@codesourcery.com>
1405
1406 * c-common.h (enum rid): Add RID_ATOMIC.
1407 * c-common.c (c_common_reswords): Add _Atomic.
1408 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1409 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1410 * c-format.c (check_format_types): Check for extra _Atomic
1411 qualifiers in format argument.
1412 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1413 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1414
5b1a0622 14152013-11-06 Tobias Burnus <burnus@net-b.de>
1416
1417 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1418
4f8f4cb8 14192013-11-06 Joseph Myers <joseph@codesourcery.com>
1420
1421 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1422 standards modes.
1423 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1424 to mean lack of IEEE 754 support.
1425
9148bda3 14262013-11-05 Tobias Burnus <burnus@net-b.de>
1427
1428 * c.opt (-Wdate-time): New option
1429 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1430
08c5f4d5 14312013-11-05 Joseph Myers <joseph@codesourcery.com>
1432
1433 * c-cppbuiltin.c (cpp_iec_559_value): Test
1434 flag_excess_precision_cmdline not flag_excess_precision.
1435
c630ef93 14362013-11-05 Tobias Burnus <burnus@net-b.de>
1437
1438 * c.opt (fopenmp-simd): New option.
1439 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1440 (omp_pragmas): ... this new struct.
1441 (c_pp_lookup_pragma): Also walk omp_pragmas.
1442 (init_pragma): Init pragmas for -fopenmp-simd.
1443
7354a89b 14442013-11-04 Marek Polacek <polacek@redhat.com>
1445
1446 PR c++/58979
1447 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1448
4c866b9b 14492013-11-04 Joseph Myers <joseph@codesourcery.com>
1450
1451 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1452 New functions.
1453 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1454
e2a6a333 14552013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1456
1457 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1458 (dump_ada_specs): Adjust prototype of second callback.
1459 * c-ada-spec.c (cpp_check): New global variable.
1460 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1461 (print_generic_ada_decl): Likewise.
1462 (has_static_fields): Change return type to bool and add guard.
1463 (has_nontrivial_methods): New predicate.
1464 (is_tagged_type): Change return type to bool.
1465 (separate_class_package): Call has_nontrivial_methods.
1466 (pp_ada_tree_identifier): Minor tweaks.
1467 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1468 (dump_ada_array_domains): Likewise.
1469 (dump_ada_array_type): Likewise.
1470 (dump_template_types): Remove cpp_check parameter and do not pass it to
1471 dump_generic_ada_node.
1472 (dump_ada_template): Likewise.
1473 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1474 recursively.
1475 (print_ada_methods): Change return type to integer. Remove cpp_check
1476 parameter and do not pass it down.
1477 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1478 dump_generic_ada_node.
1479 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1480 accessing methods.
1481 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1482 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1483 value of print_ada_methods.
1484 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1485 Set cpp_check to it before invoking dump_ada_nodes.
1486 (dump_ada_specs): Likewise.
1487
2c4c3477 14882013-11-03 Marek Polacek <polacek@redhat.com>
1489
1490 * c-ubsan.c: Don't include hash-table.h.
1491 (ubsan_instrument_vla): New function.
1492 * c-ubsan.h: Declare it.
1493
452659af 14942013-10-31 David Malcolm <dmalcolm@redhat.com>
1495
1496 Automated part of renaming of symtab_node_base to symtab_node.
1497
1498 Patch autogenerated by rename_symtab.py from
1499 https://github.com/davidmalcolm/gcc-refactoring-scripts
1500 revision 58bb219cc090b2f4516a9297d868c245495ee622
1501
1502 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1503 symtab_node_base to symtab_node.
1504
4d6f7dd4 15052013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1506
1507 Implement C++14 digit separators.
1508 * c-lex.c (interpret_float): Remove digit separators from scratch string
1509 before building real literal.
1510
06cfe805 15112013-10-30 Jakub Jelinek <jakub@redhat.com>
1512
1513 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1514
d037099f 15152013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1516
1517 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1518 fields.
1519 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1520 enabled.
1521 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1522 (insert_cilk_frame): New prototype.
1523 (cilk_init_builtins): Likewise.
1524 (gimplify_cilk_spawn): Likewise.
1525 (c_cilk_install_body_w_frame_cleanup): Likewise.
1526 (cilk_detect_spawn_and_unwrap): Likewise.
1527 (cilk_set_spawn_marker): Likewise.
1528 (build_cilk_sync): Likewise.
1529 (build_cilk_spawn): Likewise.
1530 * cilk.c: New file.
1531
02774f2d 15322013-10-29 David Malcolm <dmalcolm@redhat.com>
1533
1534 Patch autogenerated by refactor_symtab.py from
1535 https://github.com/davidmalcolm/gcc-refactoring-scripts
1536 revision 58bb219cc090b2f4516a9297d868c245495ee622
1537
1538 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1539 to a true class hierarchy.
1540 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1541
31fe10fd 15422013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1543
1544 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1545
b1c06ff9 15462013-10-26 Jeff Law <law@redhat.com>
1547
1548 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1549 * c-family/c.opt: Ignore and warn for mudflap options.
1550
48a972c8 15512013-10-24 Tobias Burnus <burnus@net-b.de>
4644b593 1552
1553 PR other/33426
1554 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1555 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1556
546a04b1 15572013-10-23 Jason Merrill <jason@redhat.com>
1558
1559 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1560
bc7bff74 15612013-10-11 Jakub Jelinek <jakub@redhat.com>
1562
d62c713e 1563 * c-common.h (omp_clause_mask::operator !=): New method.
1564 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1565 instead of if (mask & something) tests everywhere.
1566
bc7bff74 1567 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1568 201307 instead of 201107.
1569 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1570 (c_common_attribute_table): Add "omp declare target" and
1571 "omp declare simd" attributes.
1572 (handle_omp_declare_target_attribute,
1573 handle_omp_declare_simd_attribute): New functions.
1574 * c-omp.c: Include c-pragma.h.
1575 (c_finish_omp_taskgroup): New function.
1576 (c_finish_omp_atomic): Add swapped argument, if true,
1577 build the operation first with rhs, lhs arguments and use NOP_EXPR
1578 build_modify_expr.
1579 (c_finish_omp_for): Add code argument, pass it down to make_code.
1580 (c_omp_split_clauses): New function.
1581 (c_split_parallel_clauses): Removed.
1582 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1583 c_omp_declare_simd_clauses_to_decls): New functions.
1584 * c-common.h (omp_clause_mask): New type.
1585 (OMP_CLAUSE_MASK_1): Define.
1586 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1587 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1588 omp_clause_mask::operator |, omp_clause_mask::operator &,
1589 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1590 omp_clause_mask::operator ==): New methods.
1591 (enum c_omp_clause_split): New.
1592 (c_finish_omp_taskgroup): New prototype.
1593 (c_finish_omp_atomic): Add swapped argument.
1594 (c_finish_omp_for): Add code argument.
1595 (c_omp_split_clauses): New prototype.
1596 (c_split_parallel_clauses): Removed.
1597 (c_omp_declare_simd_clauses_to_numbers,
1598 c_omp_declare_simd_clauses_to_decls): New prototypes.
1599 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1600 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1601 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1602 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1603 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1604 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1605 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1606 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1607 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1608 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1609 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1610 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1611 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1612 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1613 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1614 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1615 PRAGMA_OMP_CLAUSE_UNIFORM.
1616
d7dcba40 16172013-10-09 Marc Glisse <marc.glisse@inria.fr>
1618
1619 PR tree-optimization/20318
1620 * c-common.c (handle_returns_nonnull_attribute): New function.
1621 (c_common_attribute_table): Add returns_nonnull.
1622
0b7282f1 16232013-10-03 Marc Glisse <marc.glisse@inria.fr>
1624
1625 PR c++/19476
1626 * c.opt (fcheck-new): Move to common.opt.
1627
51f553af 16282013-09-25 Marek Polacek <polacek@redhat.com>
1629 Jakub Jelinek <jakub@redhat.com>
1630
1631 PR sanitizer/58413
1632 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1633 an expression if we can prove it is correct.
1634 (ubsan_instrument_division): Likewise. Remove unnecessary
1635 check.
1636
05f893e1 16372013-09-18 Marek Polacek <polacek@redhat.com>
1638
1639 PR sanitizer/58411
1640 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1641 Declare it.
1642 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1643
236ce1d1 16442013-09-14 Iain Sandoe <iain@codesourcery.com>
1645
1646 PR target/48094
1647 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1648 fobjc-gc, freplace-objc-classes): Accept for LTO.
1649
f9f68d35 16502013-09-13 Jacek Caban <jacek@codeweavers.com>
1651
1652 * c-target.def: New hook
1653
ba2f764e 16542013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1655
1656 PR c++/43452
1657 * c.opt (Wdelete-incomplete): Add.
1658
73437615 16592013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1660
1661 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1662 (vector_types_compatible_elements_p): New function.
1663 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1664 declaration.
1665 (vector_types_compatible_elements_p): Declare.
1666
95af4c75 16672013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1668
1669 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1670 a virtual member function.
1671 (pp_simple_type_specifier): Remove.
1672 (pp_c_type_specifier): Likewise.
1673 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1674 Rename from pp_c_type_specifier. Adjust.
1675 (c_pretty_printer::c_pretty_printer): Do not assign to
1676 simple_type_specifier.
1677
eaab24b9 16782013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1679
1680 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1681 member function.
1682 (c_pretty_printer::storage_class_specifier): Likewise.
1683 (c_pretty_printer::initializer): Likewise.
1684 (pp_declaration): Remove.
1685 (pp_declaration_specifiers): Likewise.
1686 (pp_abstract_declarator): Likewise.
1687 (pp_declarator): Likewise.
1688 (pp_type_id): Likewise.
1689 (pp_statement): Likewise.
1690 (pp_constant): Likewise.
1691 (pp_id_expression): Likewise.
1692 (pp_primary_expression): Likewise.
1693 (pp_unary_expression): Likewise.
1694 (pp_multiplicative_expression): Likewise.
1695 (pp_conditional_expression): Likewise.
1696 (pp_assignment_expression): Likewise.
1697 (pp_expression): Likewise.
1698 (pp_c_type_id): Likewise.
1699 (pp_c_storage_class_specifier): Likewise.
1700 * c-pretty-print.c (pp_c_type_cast): Tidy.
1701 (pp_c_pointer): Likewise.
1702 (pp_c_type_specifier): Likewise.
1703 (pp_c_parameter_type_list): Likewise.
1704 (pp_c_function_definition): Likewise.
1705 (pp_c_init_declarator): Likewise.
1706 (pp_c_initializer_list): Likewise.
1707 (pp_c_constructor_elts): Likewise.
1708 (c_pretty_printer::direct_abstract_declarator): Likewise.
1709 (c_pretty_printer::declaration_specifiers): Likewise.
1710 (c_pretty_printer::primary_expression): Likewise.
1711 (c_pretty_printer::postfix_expression): Likewise.
1712 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1713 (c_pretty_printer::storage_class_specifier): Rename from
1714 pp_c_storage_class_specifier.
1715 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1716 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1717 storage_class_specifier, initializer, offset_list, flags.
1718
9e46467d 17192013-08-30 Marek Polacek <polacek@redhat.com>
1720
1721 * c-ubsan.c: New file.
1722 * c-ubsan.h: New file.
1723
36a8d9b9 17242013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1725
1726 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1727 member function.
1728 (c_pretty_printer::declaration_specifiers): Likewise.
1729 (c_pretty_printer::declarator): Likewise.
1730 (c_pretty_printer::abstract_declarator): Likewise.
1731 (c_pretty_printer::direct_abstract_declarator): Likewise.
1732 (c_pretty_printer::direct_declarator): Likewise.
1733 (c_pretty_printer::function_specifier): Likewise.
1734 (pp_declaration): Adjust.
1735 (pp_declaration_specifiers): Likewise.
1736 (pp_abstract_declarator): Likewise.
1737 (pp_direct_declarator): Likewise.
1738 (pp_function_specifier): Likewise.
1739 (pp_direct_abstract_declarator): Remove as unused.
1740 (pp_c_declaration): Remove.
1741 (pp_c_declaration_specifiers): Likewise.
1742 (pp_c_declarator): Likewise.
1743 (pp_c_direct_declarator): Likewise.
1744 (pp_c_function_specifier): Likewise.
1745 (pp_c_direct_abstract_declarator): Likewise.
1746 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1747 from pp_c_abstract_declarator. Adjust.
1748 (c_pretty_printer::direct_abstract_declarator): Rename from
1749 pp_c_direct_abstract_declarator. Adjust.
1750 (c_pretty_printer::function_specifier): Rename from
1751 pp_c_function_specifier. Adjust.
1752 (c_pretty_printer::declaration_specifiers): Rename from
1753 pp_c_declaration_specifiers. Adjust.
1754 (c_pretty_printer::direct_declarator): Rename from
1755 pp_c_direct_declarator. Adjust.
1756 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1757 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1758 (c_pretty_printer::c_pretty_printer): Do not assign to
1759 declaration, declaration_specifiers, declarator,
1760 direct_declarator, direct_abstract_declarator, function_specifier.
1761
30635c2e 17622013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1763
1764 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1765 virtual member function.
1766 (c_pretty_printer::multiplicative_expression): Likewise.
1767 (c_pretty_printer::conditional_expression): Likewise.
1768 (c_pretty_printer::assignment_expression): Likewise.
1769 (c_pretty_printer::expression): Likewise.
1770 (pp_unary_expression): Adjust.
1771 (pp_multiplicative_expression): Likewise.
1772 (pp_assignment_expression): Likewise.
1773 (pp_conditional_expression): Likewise.
1774 (pp_expression): Likewise.
1775 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1776 from pp_c_unary_expression. Adjust.
1777 (c_pretty_printer::multiplicative_expression): Rename from
1778 pp_c_multiplicative_expression. Adjust.
1779 (c_pretty_printer::conditional_expression): Rename from
1780 pp_c_conditional_expression. Adjust.
1781 (c_pretty_printer::assignment_expression): Rename from
1782 pp_c_assignment_expression. Adjust.
1783 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1784 (c_pretty_printer::c_pretty_printer): Do not assign to
1785 unary_expression, multiplicative_expression,
1786 conditional_expression, expression.
1787
027d08ed 17882013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1789
1790 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1791 virtual member function.
1792 (pp_postfix_expression): Adjust.
1793 (pp_c_postfix_expression): Remove.
1794 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1795 from pp_c_postfix_expression. Adjust.
1796 (c_pretty_printer::c_pretty_printer): Do not assign to
1797 postfix_expression.
1798
f873303a 17992013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1800
1801 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1802 virtua member function.
1803 (pp_primary_expression): Adjust.
1804 (pp_c_primary_expression): Remove.
1805 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1806 from pp_c_primary_expression. Adjust.
1807 (pp_c_initializer_list): Use pp_primary_expression.
1808 (c_pretty_printer::c_pretty_printer): Do not assign to
1809 primary_expression.
1810
08e3e481 18112013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1812
1813 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1814 * c-pretty-print.c (M_): Remove.
1815 (c_pretty_printer::translate_string): Define.
1816 (pp_c_type_specifier): Use it.
1817 (pp_c_primary_expression): Likewise.
1818 (pp_c_expression): Likewise.
1819
1fc4a87f 18202013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1821
1822 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1823 virtual function.
1824 (pp_c_id_expression): Remove.
1825 (pp_id_expression): Adjust.
1826 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1827 pp_c_id_expression. Adjust.
1828 (pp_c_postfix_expression): Use pp_id_expression.
1829 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1830
a6cb161b 18312013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1832
1833 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1834 member function.
1835 (pp_constant): Adjust.
1836 (pp_c_constant): Remove.
1837 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1838 pp_c_constant. Adjust.
1839 (pp_c_constant)
1840 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1841 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1842
eed6bc21 18432013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1844
1845 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1846 (c_pretty_printer::c_pretty_printer): Declare.
1847 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1848 c_pretty_printer_init. Adjust.
1849 (print_c_tree): Do not call c_pretty_printer_init.
1850 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1851
df558d2e 18522013-08-09 Arnaud Charlet <charlet@adacore.com>
1853
1854 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1855
42f9a786 18562013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1857
1858 PR c++/58080
1859 * c-common.c (pointer_int_sum): Add bool parameter.
1860 * c-common.h (pointer_int_sum): Adjust declaration.
1861
f874ddad 18622013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1863
1864 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1865 c_pretty_printer variable.
1866
a94db6b0 18672013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1868
1869 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1870 (pp_base): Remove.
1871 (pp_c_base): Likewise. Adjust users.
1872 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1873 (pp_c_whitespace): Do not call pp_base.
1874 (pp_c_left_paren): Likewise.
1875 (pp_c_right_paren): Likewise.
1876 (pp_c_left_brace): Likewise.
1877 (pp_c_right_brace): Likewise.
1878 (pp_c_left_bracket): Likewise.
1879 (pp_c_right_bracket): Likewise.
1880 (pp_c_dot): Likewise.
1881 (pp_c_ampersand): Likewise.
1882 (pp_c_star): Likewise.
1883 (pp_c_arrow): Likewise.
1884 (pp_c_semicolon): Likewise.
1885 (pp_c_complement): Likewise.
1886 (pp_c_exclamation): Likewise.
1887 (pp_c_direct_declarator): Likewise.
1888 (pp_c_ws_string): Likewise.
1889 (pp_c_identifier): Likewise.
1890 (pp_c_statement): Likewise.
1891 (print_c_tree): Likewise.
1892
1898176c 18932013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1894
1895 PR c++/58072
1896 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1897 provide useful error strings.
1898
70d60d1d 18992013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1900
1901 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1902 printer functions instead of pp_string or operators and punctuators.
1903 (dump_generic_ada_node): Likewise.
1904 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1905 (pp_c_relational_expression): Likewise.
1906 (pp_c_logical_or_expression): Likewise.
1907
dda4f0ec 19082013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1909
1910 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1911 functions instead of pp_character.
1912 (pp_ada_tree_identifier): Likewise.
1913 (dump_ada_double_name): Likewise.
1914 (dump_ada_function_declaration): Likewise.
1915 (dump_ada_array_domains): Likewise.
1916 (dump_template_types): Likewise.
1917 (dump_generic_ada_node): Likewise.
1918 (print_ada_declaration): Likewise.
1919 (print_ada_struct_decl): Likewise.
1920 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1921
7aa04c8d 19222013-07-23 Tom Tromey <tromey@redhat.com>
1923
1924 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1925 * c-common.c (c_common_reswords): Add _Generic.
1926
a04e8d62 19272013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1928
1929 * c-common.c: Fix typos.
1930 * c-common.h: Likewise.
1931
a96c3cc1 19322013-07-13 Lubos Lunak <l.lunak@suse.cz>
1933
1934 PR c++/55203
1935 * c-common.c (c_common_attribute_table): Add warn_unused.
1936 (handle_warn_unused_attribute): New.
1937
da31536d 19382013-07-10 Jakub Jelinek <jakub@redhat.com>
1939
1940 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1941 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1942
839f2f70 19432013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1944
1945 PR c++/57869
1946 * c.opt: Add Wconditionally-supported.
1947
73f353d0 19482013-07-08 Graham Stott <graham.stott@btinternet.com>
1949
1950 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1951 unused variables l_length and l_node.
1952
21ebaa24 19532013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
f5298614 1954
1955 PR c/57821
1956 * c-common.c (complete_array_type): Delay folding first index
1957 like other indices. When folding, check for index overflow.
1958
68ea4406 19592013-06-27 Marc Glisse <marc.glisse@inria.fr>
1960
1961 PR c++/57509
1962 * c-common.h (c_build_vec_perm_expr): New complain argument.
1963 * c-common.c (c_build_vec_perm_expr): Likewise.
1964 Use save_expr also in C++.
1965
60777f69 19662013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1967
1968 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1969 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1970 * c-opts.c (c_common_post_options): Likewise.
1971
839f2f70 19722013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
50acebe0 1973
1974 * array-notation-common.c (length_mismatch_in_expr): Changed the
1975 parameter type's from a dynamic array to a vec_tree. Also removed
1976 the size parameters.
1977 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1978 the change above.
1979
e9331eab 19802013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1981
1982 * c-common.h (struct cilkplus_an_parts): New structure.
1983 (struct cilkplus_an_loop_parts): Likewise.
1984 (cilkplus_extract_an_triplets): New prototype.
1985 (fix_sec_implicit_args): Likewise.
1986 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1987 (fix_sec_implicit_args): Likewise.
60777f69 1988
a9c99fc4 19892013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1990
1991 * array-notation-common.c (find_inv_trees): Removed an unwanted
1992 typecasting.
1993 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1994 enum rid to enum tree_code.
1995
f2526cce 19962013-06-11 Jan Hubicka <jh@suse.cz>
1997
1998 * c-common.c (handle_alias_ifunc_attribute): Do not set
1999 DECL_EXTERNAL for weakref variables.
2000 * c-pragma.c (handle_pragma_weak): Make sure aliases
2001 are not declared as external.
2002
09970d67 20032013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2004
2005 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2006 function from c/c-array-notation.c.
2007 (is_cilkplus_reduce_builtin): Likewise.
2008 (find_rank): Likewise.
2009 (extract_array_notation_exprs): Likewise.
2010 (replace_array_notations): Likewise.
2011 (find_inv_trees): Likewise.
2012 (replace_inv_trees): Likewise.
2013 (contains_array_notation_expr): Likewise.
2014 (find_correct_array_notation_type): Likewise.
2015 * c-common.h (struct inv_list): Moved this struct from the file
2016 c/c-array-notation.c and added a new field called additional tcodes.
2017 (length_mismatch_in_expr_p): New prototype.
2018 (is_cilkplus_reduce_builtin): Likewise.
2019 (find_rank): Likewise.
2020 (extract_array_notation_exprs): Likewise.
2021 (replace_array_notation): Likewise.
2022 (find_inv_trees): Likewise.
2023 (replace_inv_trees): Likewise.
2024 (find_correct_array_notation_type): Likewise.
839f2f70 2025
3c6d4197 20262013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2027
2028 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2029 function array_notation_init_builtins is called.
2030 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2031 * c-common.def (ARRAY_NOTATION_REF): New tree.
2032 * c-common.h (build_array_notation_expr): New function declaration.
2033 (build_array_notation_ref): Likewise.
2034 (extract_sec_implicit_index_arg): New extern declaration.
2035 (is_sec_implicit_index_fn): Likewise.
2036 (ARRAY_NOTATION_CHECK): New define.
2037 (ARRAY_NOTATION_ARRAY): Likewise.
2038 (ARRAY_NOTATION_START): Likewise.
2039 (ARRAY_NOTATION_LENGTH): Likewise.
2040 (ARRAY_NOTATION_STRIDE): Likewise.
2041 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2042 ARRAY_NOTATION_REF.
2043 (pp_c_expression): Likewise.
2044 * c.opt (flag_enable_cilkplus): New flag.
2045 * array-notation-common.c: New file.
2046
8e71dad2 20472013-05-14 Jakub Jelinek <jakub@redhat.com>
2048
2049 PR c++/57274
2050 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2051
432dd330 20522013-05-10 Marc Glisse <marc.glisse@inria.fr>
2053
2054 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2055 vectors.
2056
b156ec37 20572013-05-07 Han Shen <shenhan@google.com>
2058
2059 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2060
1a087624 20612013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2062
2063 * c-common.c (check_user_alignment): Emit error for negative values.
2064
1638c736 20652013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2066
2067 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2068
949dbf93 20692013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2070
2071 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2072 __GXX_EXPERIMENTAL_CXX1Y__.
2073
9205a6cc 20742013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2075 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2076
2077 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2078 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2079 to simply use OPT_Wpointer_arith.
2080 (c_sizeof_or_alignof_type): Likewise.
2081
05d0bce1 20822013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2083
2084 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2085
41609f8b 20862013-04-12 Jakub Jelinek <jakub@redhat.com>
2087
2088 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2089 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2090 specifiers.
2091
c671dc4f 20922013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2093
2094 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2095
ba125576 20962013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2097
2098 * c-common.c (pointer_int_sum): Remove dead code.
2099
9d3fa937 21002013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2101
2102 PR middle-end/56524
2103 * c-common.c (handle_optimize_attribute): Don't call
2104 save_optabs_if_changed.
2105
5ceebb21 21062013-03-05 Jakub Jelinek <jakub@redhat.com>
2107
2108 PR middle-end/56461
2109 * c-pch.c (pch_init): Free target_validity at the end.
2110
18eeed2b 21112013-03-04 Jakub Jelinek <jakub@redhat.com>
2112
2113 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2114
a9196da9 21152013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2116 Jakub Jelinek <jakub@redhat.com>
2117
2118 PR sanitizer/56454
2119 * c-common.c (handle_no_sanitize_address_attribute): New function.
2120 (c_common_attribute_table): Add no_sanitize_address attribute.
2121 (handle_no_address_safety_analysis_attribute): Add
2122 no_sanitize_address attribute, not no_address_safety_analysis
2123 attribute.
2124
15c27dda 21252013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 2126
2127 PR target/52555
2128 * c-common.c (handle_optimize_attribute): Call
2129 save_optabs_if_changed.
2130
19426fe1 21312013-02-18 Jakub Jelinek <jakub@redhat.com>
2132 Steven Bosscher <steven@gcc.gnu.org>
2133
2134 PR pch/54117
2135 * c-opts.c (c_common_post_options): If debug info is enabled
2136 and non-dwarf*, refuse to load PCH files and when writing PCH
2137 file warn.
2138
df936998 21392013-02-05 Jakub Jelinek <jakub@redhat.com>
2140
2141 PR middle-end/56167
2142 * c-common.c (handle_error_attribute): Fix condition.
2143
ae0c3984 21442013-01-30 Jakub Jelinek <jakub@redhat.com>
2145
2146 PR c++/55742
2147 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2148
1c4973d7 21492013-01-18 Jason Merrill <jason@redhat.com>
2150
2151 PR target/54908
2152 * c.opt (-fextern-tls-init): New.
2153 * c-opts.c (c_common_post_options): Handle it.
2154
7c834436 21552013-01-09 Jakub Jelinek <jakub@redhat.com>
2156
2157 PR c/48418
2158 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2159 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2160 and is either negative or bigger or equal to type precision
2161 of the first operand.
2162
5abaa10a 21632012-12-03 Marek Polacek <polacek@redhat.com>
2164
2165 PR c/55570
2166 * c-common.c (check_user_alignment): Swap order of tests,
2167 check TREE_CODE first.
2168
324ca377 21692012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2170
2171 PR c++/52654
2172 * c-common.h (overflow_type): New enum.
2173 (build_userdef_literal): Add overflow_type argument.
2174 (tree_userdef_literal): Add overflow_type.
2175 (USERDEF_LITERAL_OVERFLOW): New access macro.
2176 * c-common.c (build_userdef_literal): Add overflow_type
2177 argument.
2178 * c-lex.c (c_lex_with_flags): Add overflow_type to
2179 build_userdef_literal calls.
2180 (interpret_integer, interpret_float): Add overflow_type argument.
2181
b4c4a429 21822012-11-28 Richard Biener <rguenther@suse.de>
2183
2184 PR c/35634
2185 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2186 here and use a type with proper overflow behavior for types that would
2187 need to be promoted for the arithmetic.
2188
d413ffdd 21892012-11-23 Jakub Jelinek <jakub@redhat.com>
2190
2191 PR sanitizer/55435
2192 * c-common.c (handle_no_address_safety_analysis_attribute): New
2193 function.
2194 (c_common_attribute_table): Add no_address_safety_analysis.
2195
52bc861d 21962012-11-16 Simon Baldwin <simonb@google.com>
2197
2198 * c.opt: Add f[no-]canonical-system-headers.
2199 * c-opts.c (c_common_handle_option): Handle
2200 OPT_fcanonical_system_headers.
2201
2dd00636 22022012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2203
2204 PR c++/54413
2205 * c-opts.c (c_common_handle_option): Set new flags.
2206 * c.opt: Describe new flags.
2207
d4701f6c 22082012-11-09 Jason Merrill <jason@redhat.com>
2209
2210 * c.opt (Wabi-tag): New.
2211
72d65da9 22122012-11-09 Andi Kleen <ak@linux.intel.com>
2213
2214 PR 55139
2215 * c-common.c (get_atomic_generic_size): Mask with
2216 MEMMODEL_MASK
2217
77a357e3 22182012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2219
2220 PR c/53063
2221 * c.opt (Wformat): Make it Alias Wformat=1.
2222 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2223 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2224 LangEnabledBy.
2225 (Wformat=): RejectNegative. Use LangEnabledBy.
2226 (Wnonnull): Use LangEnabledBy.
2227 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2228 * c-format.c (set_Wformat): Delete.
2229 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2230 (maybe_read_dollar_number): Likewise.
2231 (avoid_dollar_number): Likewise.
2232 (finish_dollar_format_checking): Likewise.
2233 (check_format_info): Likewise.
2234 (check_format_info_main): Likewise.
2235 (check_format_types): Likewise.
2236 (format_type_warning): Likewise.
2237 * c-common.c (int): Likewise.
2238 (check_function_sentinel): Likewise.
2239 * c-common.h (warn_format,set_Wformat): Do not declare here.
2240
45efa6b9 22412012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2242
2243 PR c/53063
2244 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2245 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2246 Use LangEnabledBy.
2247 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2248 common.opt.
2249 (Wvariadic-macros): Init(1).
2250 * c-opts.c (c_common_handle_option): Do not handle them
2251 explicitly.
2252 (c_common_post_options): Likewise.
2253 (sanitize_cpp_opts): warn_unused_macros is now
2254 cpp_warn_unused_macros.
2255 (push_command_line_include): Likewise.
2256 * c-common.c (warn_unknown_pragmas): Do not define.
2257 * c-common.h (warn_unknown_pragmas): Do not declare.
2258
0e4e775a 22592012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2260
2261 PR c/51294
2262 * c-common.c (conversion_warning): Handle conditional expressions.
2263
8b447d3f 22642012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2265
2266 PR c++/54930
2267 * c.opt (Wreturn_local_addr): Define new option.
2268
f4a61754 22692012-10-25 Jason Merrill <jason@redhat.com>
2270
ecb10e6a 2271 * c.opt (Wvirtual-move-assign): New.
2272
f4a61754 2273 * c.opt (Winherited-variadic-ctor): New.
2274
7b463b19 22752012-10-25 Marc Glisse <marc.glisse@inria.fr>
2276
2277 PR c++/54427
2278 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2279
6adc88f8 22802012-10-23 Joseph Myers <joseph@codesourcery.com>
2281
2282 * c-common.h (pch_cpp_save_state): Declare.
2283 * c-target.def (c_preinclude): New hook.
2284 * c-opts.c (done_preinclude): New.
2285 (push_command_line_include): Handle default preincluded header.
2286 (cb_file_change): Call pch_cpp_save_state when calling
2287 push_command_line_include.
2288 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2289 (pch_cpp_save_state): New.
2290 (pch_init): Call pch_cpp_save_state conditionally, instead of
2291 calling cpp_save_state.
2292
fa816b0b 22932012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2294
2295 PR c/53063
2296 PR c/40989
2297 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2298 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2299 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2300 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2301 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2302 * c-opts.c (c_common_handle_option): Remove explicit handling from
2303 here.
2304 (c_common_post_options): Likewise.
2305
d214ccee 23062012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2307
2308 * c-ada-spec.c (LOCATION_COL): Delete.
2309 (compare_location): New function.
2310 (compare_node): Use it.
2311 (compare_comment): Likewise.
2312
77b27208 23132012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2314
2315 PR c/53063
2316 PR c/40989
2317 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2318 * c-opts.c (c_common_handle_option): Do not set them here. Add
2319 comment.
2320 (c_common_post_options): Likewise.
2321
cc02ca4d 23222012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2323
2324 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2325 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2326 Remove POINTER_TYPE handling, add large unsigned handling and use
2327 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2328
57f872a2 23292012-10-12 Jakub Jelinek <jakub@redhat.com>
2330
2331 PR c/54381
2332 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2333 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2334 locs and array of 3 trees instead of just single loc and single
2335 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2336 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2337 For *cmp* builtins that take two sources strings report warnings
2338 about first and second source, not about destination and source.
2339
7354ad2e 23402012-10-12 Marc Glisse <marc.glisse@inria.fr>
2341
2342 PR c++/53055
2343 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2344
1ac7f120 23452012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2346
2347 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2348 declaring something coming from another file.
2349
1e0cc9e3 23502012-10-10 Arnaud Charlet <charlet@adacore.com>
2351
1ac7f120 2352 PR ada/54845
1e0cc9e3 2353 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2354
b0e7825e 23552012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2356
2357 PR c++/54194
2358 * c-common.c (warn_about_parentheses): Add location_t parameter;
2359 use EXPR_LOC_OR_LOC.
2360 * c-common.h: Update declaration.
2361
41ed701a 23622012-10-09 Marc Glisse <marc.glisse@inria.fr>
2363
2364 PR c++/54427
2365 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2366 more operations. Make error messages optional.
2367 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2368 (scalar_to_vector): Declare.
2369
3740094c 23702012-10-08 Jason Merrill <jason@redhat.com>
2371
2372 * c-common.c (c_common_reswords): Add thread_local.
2373
ffcdbf9c 23742012-10-08 Dodji Seketeli <dodji@redhat.com>
2375
2376 PR c++/53528 C++11 attribute support
2377 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2378 new functions.
2379 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2380 static function.
2381 (handle_aligned_attribute): In choose strictest alignment
2382 among many. Use new check_cxx_fundamental_alignment_constraints.
2383 (handle_transparent_union_attribute): In c++11 attribute syntax,
2384 don't look through typedefs.
2385
ef34afc1 23862012-10-04 Arnaud Charlet <charlet@adacore.com>
2387
2388 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2389 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2390 out of dumpfile.h.
2391
f1ff4562 23922012-09-25 Dehao Chen <dehao@google.com>
2393
2394 PR middle-end/54645
ef34afc1 2395 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 2396 map when read in the pch.
2397
735538a1 23982012-09-18 Arnaud Charlet <charlet@adacore.com>
2399
2400 * c-ada-spec.c: Style fixes.
2401
9120cdc8 24022012-09-18 Thomas Quinot <quinot@adacore.com>
2403
2404 * c.opt (-fada-spec-parent): Define new command line switch.
2405 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2406 is specified, generate binding spec as a child of the specified unit.
2407
8eba82c2 24082012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2409 Manuel López-Ibáñez <manu@gcc.gnu.org>
2410
2411 PR c++/53210
2412 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2413
38682990 24142012-08-23 Arnaud Charlet <charlet@adacore.com>
2415
2416 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2417 for pointers, and add missing Convention C pragma.
2418 (print_ada_struct_decl): Add missing aliased keyword.
2419 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2420
f003f5dc 24212012-08-17 Jakub Jelinek <jakub@redhat.com>
2422
2423 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2424 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2425 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2426 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2427 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2428
ec11736b 24292012-08-10 Richard Guenther <rguenther@suse.de>
2430
2431 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2432
5f7f600e 24332012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2434
2435 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2436 instead of separate pp_newline and pp_flush.
2437 (print_c_tree): Likewise.
2438
758a38ab 24392012-07-26 Richard Henderson <rth@redhat.com>
2440
2441 * c-common.c (handle_hot_attribute): Allow labels.
2442 (handle_cold_attribute): Likewise.
2443
9ca77b08 24442012-07-20 Jakub Jelinek <jakub@redhat.com>
2445
2446 PR c++/28656
2447 * c-common.c (check_function_nonnull): Handle multiple nonnull
2448 attributes properly.
2449
b9ed1410 24502012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2451
2452 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2453 * c-ada-spec.c: Likewise.
2454 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2455
c2a65b90 24562012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2457
2458 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2459 Remove code conditional on it.
2460
88c5a1d1 24612012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2462
2463 * c-gimplify.c: Do not include basic-block.h.
2464 * c-common.c: Do not include linfuncs.h.
2465
4a020a8c 24662012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2467
2468 * c-common.h: Include tree.h.
2469
c28ddc97 24702012-07-02 Jason Merrill <jason@redhat.com>
2471
2472 PR c++/53524
2473 * c-common.c (get_priority): Call default_conversion.
2474
405ed67f 24752012-07-01 Uros Bizjak <ubizjak@gmail.com>
2476
2477 * c-pch.c (c_common_write_pch): Remove unused variables.
2478
e53d55e7 24792012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2480
2481 * cppspec.c: Moved from gcc/ to here.
2482
3d9c25ec 24832012-06-27 Kai Tietz <ktietz@redhat.com>
2484
2485 PR preprocessor/37215
2486 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2487
3169c57a 24882012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2489
2490 * c-common.h (c_common_print_pch_checksum): Remove.
2491 * c-pch.c: Do not include output.h.
2492 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2493 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2494 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2495 (struct c_pch_header): Remove.
2496 (get_ident): Update gpch version.
2497 (pch_init): Do not print executable_checksum to asm_out_file.
2498 Do not fail if there is no asm_out_file to read back from. Set
2499 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2500 (c_common_write_pch): Verify that nothing was written to asm_out_file
2501 since pch_init was called. Do not write a c_pch_header, and do not
2502 copy from asm_out_file to the PCH.
2503 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2504 the content of asm_out_file from the PCH.
2505 (c_common_print_pch_checksum): Remove.
2506 * c-opts.c (c_common_init): Print out executable_checksum directly.
2507
ff6624bc 25082012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2509
2510 * c-target.def (objc_declare_unresolved_class_reference,
2511 objc_declare_class_definition): Add new hooks.
2512
367b1459 25132012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2514
2515 * c-lex.c: Do not include output.h.
2516 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2517 Remove uses of ASM_OUTPUT_IDENT.
2518
bf0cb017 25192012-06-15 Marc Glisse <marc.glisse@inria.fr>
2520
2521 PR c++/51033
2522 * c-common.h (c_build_vec_perm_expr): Move decl here.
2523 * c-common.c (c_build_vec_perm_expr): Move definition
2524 here.
2525
b37a3600 25262012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2527
2528 * c.opt (fconserve-space): Turn into a no-op.
2529
19931eea 25302012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 2531
2532 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2533 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2534 both the start and end of the function.
2535
dff12c10 25362012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2537
2538 * c-common.c: Do not include output.h.
2539 * c-pragma.c: Likewise.
2540
5f9e7dd5 25412012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2542
2543 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2544 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2545 (lang_decl_name): Handle namespace decls.
2546
b5369b7d 25472012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2548
2549 * c-ada-spec.c: Do not include output.h.
2550 * c-semantics.c: Likewise.
2551
8032877c 25522012-05-29 Joseph Myers <joseph@codesourcery.com>
2553
2554 * c-common.c: Fix typo.
2555
7843e4bc 25562012-05-29 Michael Matz <matz@suse.de>
2557
2558 * c-common.h (c_expand_decl): Remove prototype.
2559
8cf857d4 25602012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2561
2562 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2563 * c-opts.c (c_common_handle_option): Remove code handling
2564 warn_missing_braces.
2565
8b64dc3c 25662012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2567
2568 PR c++/25137
2569 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2570 -Wmissing_braces.
2571
43cbde16 25722012-05-22 Dodji Seketeli <dodji@redhat.com>
2573
2574 PR c++/53322
2575 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2576
db490cb6 25772012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2578
2579 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2580 * c-opts.c (c_common_handle_option): Do not handle explicitly
2581 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2582
a60f3e81 25832012-05-16 Dodji Seketeli <dodji@redhat.com>
2584
2585 PR preprocessor/7263
2586 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2587 to cpp_classify_number. For diagnostics, use the precise location
2588 instead of the global input_location.
2589
82e6ef7c 25902012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2591
cd4797ff 2592 PR c++/11856
82e6ef7c 2593 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2594
258a168d 25952012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2596
82e6ef7c 2597 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 2598
d3b7ee7c 25992012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2600
2601 PR 53063
2602 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2603 Wreorder): Use LangEnabledBy.
2604 * c-opts.c (c_common_handle_option): Do not enable them
2605 explicitly. Call lang-specific generated functions.
2606 (c_common_post_options): Do not set them here.
2607
70059cea 26082012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2609
2610 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2611 Wmissing-field-initializers,Wmissing-parameter-type,
2612 Wold-style-declaration,Woverride-init): Use EnabledBy.
2613 * c-opts.c (c_common_post_options): Do not set here explicitly.
2614
fbb6fbd8 26152012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2616
2617 PR 53063
2618 * c-opts.c (c_common_handle_option): Use handle_generated_option
2619 to enable sub-options.
2620
61f69bc9 26212012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2622
2623 PR c++/53158
2624 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2625
5a1fe2db 26262012-05-10 Richard Guenther <rguenther@suse.de>
2627
2628 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2629 adjust commentary about TYPE_IS_SIZETYPE types.
2630
d42e7c5a 26312012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2632
2633 PR c++/53261
2634 * c-common.c (warn_logical_operator): Check that argument of
2635 integer_zerop is not NULL.
2636
686369e8 26372012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2638
2639 PR c/43772
2640 * c-common.c (warn_logical_operator): Do not warn if either side
2641 is already true or false.
2642
03fe1dc2 26432012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2644
2645 PR c/51712
2646 * c-common.c (expr_original_type): New.
2647 (shorten_compare): Do not warn for enumeration types.
2648
bba5a206 26492012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2650
2651 * c.opt (fpermissive): Add Var(flag_permissive).
2652
7059d45d 26532012-04-30 Marc Glisse <marc.glisse@inria.fr>
2654
2655 PR c++/51033
2656 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2657 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2658
7edb1062 26592012-04-30 Dodji Seketeli <dodji@redhat.com>
2660
2661 Add -Wvarargs option
2662 * c.opt (Wvarargs): Define new option.
2663
068bea1e 26642012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2665
2666 * c-common.c (check_function_arguments): Replace
2667 Wmissing-format-attribute with Wsuggest-attribute=format.
2668
b86527d8 26692012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2670
2671 * c.opt (Wsuggest-attribute=format): New. Alias of
2672 Wmissing-format-attribute.
2673 * c-format.c (decode_format_type): Replace
2674 Wmissing-format-attribute with Wsuggest-attribute=format.
2675 (check_function_format): Likewise.
2676
19931eea 26772012-04-27 Ollie Wild <aaw@google.com>
76d340ac 2678
2679 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2680 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2681 * c.opt: Add Wliteral-suffix.
2682
29438999 26832012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2684
2685 PR c/44774
2686 * c.opt (Wpedantic): New.
2687 (pedantic): Alias Wpedantic.
2688 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2689 (c_common_post_options): Likewise.
2690 (sanitize_cpp_opts): Likewise.
2691 * c-lex.c (interpret_float): Likewise.
2692 * c-format.c (check_format_types): Likewise.
2693 * c-common.c (pointer_int_sum): Likewise.
2694 (c_sizeof_or_alignof_type): Likewise.
2695 (c_add_case_label): Likewise.
2696 (c_do_switch_warnings): Likewise.
2697 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2698
4f9d6b8b 26992012-04-15 Jason Merrill <jason@redhat.com>
2700
2701 PR c++/52818
2702 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2703 (C_STD_NAME): Distinguish between C++98 and C++11.
2704
74bdbe96 27052012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2706
2707 PR target/52624
2708 * c-common.h (uint16_type_node): Rename into...
2709 (c_uint16_type_node): ...this.
2710 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2711 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2712
3d177e8c 27132012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2714
2715 * c-common.c (warn_if_unused_value): Move definition to here.
2716 * c-common.h (warn_if_unused_value): Move declaration to here.
2717
6a9a958f 27182012-03-23 William Bader <williambader@hotmail.com>
2719
2720 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2721
543efdbe 27222012-03-20 Jason Merrill <jason@redhat.com>
2723
2724 * c-common.h (enum cxx_dialect): Add cxx1y.
2725 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2726 test.
2727 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2728 * c-opts.c (c_common_post_options): Likewise.
2729 (set_std_cxx1y): New.
2730 (c_common_handle_option): Call it.
2731 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2732
62206d34 27332012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2734
2735 PR c++/14710
2736 * c.opt ([Wuseless-cast]): Add.
2737
fadf62f4 27382012-03-16 Richard Guenther <rguenther@suse.de>
2739
2740 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2741
249faa35 27422012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2743
2744 PR c++/44783
2745 * c.opt (ftemplate-backtrace-limit) Add.
2746
126b6848 27472012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2748
2749 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2750 handling.
2751 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2752 (init_pragma): Don't register extern_prefix.
2753
a51edb4c 27542012-03-12 Richard Guenther <rguenther@suse.de>
2755
2756 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2757 (builtin_type_for_size): Likewise.
2758
0f6a7cb7 27592012-02-13 Jakub Jelinek <jakub@redhat.com>
2760
2761 PR c++/52215
2762 * c-common.c (sync_resolve_params): Don't decide whether to convert
2763 or not based on TYPE_SIZE comparison, convert whenever arg_type
2764 is unsigned INTEGER_TYPE.
2765
0779e32c 27662012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2767
2768 PR c/52118
2769 * c.opt ([Wunused-local-typedefs]): Fix description.
2770
baec58e1 27712012-01-24 Mike Stump <mikestump@comcast.net>
2772
2773 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2774 exactly.
2775
c779d8cc 27762012-01-18 Richard Guenther <rguenther@suse.de>
2777
2778 * c-opts.c (c_common_post_options): Reset LTO flags if
2779 we are about to generate a PCH.
2780
ee917d24 27812012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2782
2783 PR c++/51777
2784 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2785 use pp_unsigned_wide_integer.
2786
90e2341f 27872012-01-10 Richard Guenther <rguenther@suse.de>
2788
2789 PR middle-end/51806
2790 * c-opts.c (c_common_handle_option): Move -Werror handling
2791 to language independent code.
2792
9ea022ce 27932012-01-05 Richard Guenther <rguenther@suse.de>
2794
2795 PR middle-end/51764
2796 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2797 from common.opt.
2798
3df19e1b 27992011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2800
2801 PR c++/51316
2802 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2803 of array types with an unknown bound.
2804
32074525 28052011-12-20 Joseph Myers <joseph@codesourcery.com>
2806
2807 * c-common.c (flag_isoc99): Update comment to refer to C11.
2808 (flag_isoc1x): Change to flag_isoc11.
2809 * c-common.h (flag_isoc99): Update comment to refer to C11.
2810 (flag_isoc1x): Change to flag_isoc11.
2811 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2812 C11.
2813 * c-opts.c (set_std_c1x): Change to set_std_c11.
2814 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2815 Call set_std_c11.
2816 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2817 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2818 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2819 standard.
2820 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2821 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2822 (std=gnu1x): Make alias of std=gnu11.
2823
fca86134 28242011-12-19 Jason Merrill <jason@redhat.com>
2825
2826 PR c++/51228
2827 * c-common.c (handle_transparent_union_attribute): Check the first
2828 field if the type is complete.
2829
aa4313eb 28302011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2831
2832 PR libstdc++/51365
2833 * c-common.c (RID_IS_FINAL): Add.
2834 * c-common.h (RID_IS_FINAL): Add.
2835
3f3d5ad4 28362011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2837
2838 * c.opt (fgnu-runtime): Provide full description.
2839 (fnext-runtime): Likewise.
2840 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2841
c4606d19 28422011-11-28 Andrew MacLeod <amacleod@redhat.com>
2843
2844 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2845 predefines in one place. Add LOCK_FREE predefines.
2846 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2847 new func.
2848
1d581089 28492011-11-24 Andrew MacLeod <amacleod@redhat.com>
2850
2851 PR c/51256
19931eea 2852 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 2853 conditions
19931eea 2854 (resolve_overloaded_atomic_exchange,
2855 resolve_overloaded_atomic_compare_exchange,
1d581089 2856 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2857 error_mark_node for error conditions.
19931eea 2858
6aa221fa 28592011-11-08 Richard Guenther <rguenther@suse.de>
2860
2861 PR middle-end/51010
2862 c-family/
2863
4c0315d0 28642011-11-07 Richard Henderson <rth@redhat.com>
2865 Aldy Hernandez <aldyh@redhat.com>
2866 Torvald Riegel <triegel@redhat.com>
2867
2868 Merged from transactional-memory.
2869
2870 * c-common.c (handle_tm_wrap_attribute,
2871 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2872 (struct c_common_reswords): Added __transaction* keywords.
2873 (struct c_common_attribute_table): Added transaction* and tm_regparm
2874 attributes.
2875 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2876 masks.
2877 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2878 find_tm_attribute): Declare.
2879
920f5a70 28802011-11-07 Jason Merrill <jason@redhat.com>
2881
2882 PR c++/35688
2883 * c-common.c, c-common.h: Revert yesterday's changes.
2884
b4f861b4 28852011-11-06 Jason Merrill <jason@redhat.com>
2886
2887 PR c++/35688
2888 * c-common.c (decl_has_visibility_attr): Split out from...
2889 (c_determine_visibility): ...here.
2890 * c-common.h: Declare it.
2891
83e25171 28922011-11-06 Joseph Myers <joseph@codesourcery.com>
2893
2894 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2895 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2896 type.
2897 (check_user_alignment): New. Split out of
2898 handle_aligned_attribute. Disallow integer constants with
2899 noninteger types. Conditionally allow zero.
2900 (handle_aligned_attribute): Use check_user_alignment.
2901 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2902
1cd6e20d 29032011-11-06 Andrew MacLeod <amacleod@redhat.com>
2904 Richard Henderson <rth@redhat.com>
2905
2906 Merged from cxx-mem-model.
2907
2908 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 2909 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 2910 parameters that are the same type size.
2911 (get_atomic_generic_size): New. Find size of generic
2912 atomic function parameters and do typechecking.
2913 (add_atomic_size_parameter): New. Insert size into parameter list.
2914 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2915 either __atomic_exchange_n or external library call.
19931eea 2916 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 2917 __atomic_compare_exchange to either _n variant or external library call.
19931eea 2918 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 2919 __atomic_load_n or an external library call.
2920 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2921 __atomic_store_n or an external library call.
2922 (resolve_overloaded_builtin): Handle new __atomic builtins.
2923
7549df0d 29242011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2925
2926 PR c++/50608
2927 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2928 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2929 <INDIRECT_REF>: Return the argument.
2930 <ARRAY_REF>: Remove special code for negative offset.
2931 Call fold_build_pointer_plus instead of size_binop.
2932 (fold_offsetof): Remove STOP_REF argument and adjust.
2933 * c-common.h (fold_offsetof_1): Declare.
2934 (fold_offsetof): Remove STOP_REF argument.
2935
7e783eb3 29362011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2937
2938 PR c++/50810
2939 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2940 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2941 Wnarrowing for C++0x and C++98.
2942 * c.opt ([Wnarrowing]): Update.
2943
8fe701f5 29442011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2945
2946 PR c++/44277
2947 * c.opt: Add Wzero-as-null-pointer-constant.
2948
0d84dc2d 29492011-10-31 Jason Merrill <jason@redhat.com>
2950
67031f52 2951 * c.opt (-fdeduce-init-list): Off by default.
2952
0d84dc2d 2953 PR c++/50920
2954 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2955 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2956 and -Wc++11-compat.
2957 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2958
66f24c41 29592011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2960
2961 PR c++/30066
2962 * c.opt (fvisibility-inlines-hidden): Description change.
2963
244db24d 29642011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2965
2966 Implement C++11 user-defined literals.
2967 * c-common.c (build_userdef_literal): New.
2968 * c-common.def: New tree code.
2969 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2970 * c-lex.c (interpret_float): Add suffix parm.
2971 (c_lex_with_flags): Build literal tokens.
2972
235be70f 29732011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2974
2975 PR c++/50841
2976 Revert:
2977 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2978
2979 PR c++/50810
2980 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2981 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2982 Wnarrowing for C++0x and C++98.
2983 * c.opt ([Wnarrowing]): Update.
2984
4fe0fb1c 29852011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2986
2987 PR c++/50810
2988 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2989 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2990 Wnarrowing for C++0x and C++98.
2991 * c.opt ([Wnarrowing]): Update.
2992
5f7504f9 29932011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2994
2995 PR c++/45385
2996 * c-common.c (conversion_warning): Remove code looking for
2997 artificial operands.
2998
2a688977 29992011-10-18 Dodji Seketeli <dodji@redhat.com>
3000
3001 PR bootstrap/50760
3002 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 3003 !NO_IMPLICIT_EXTERN_C.
2a688977 3004
326e3391 30052011-10-17 Michael Spertus <mike_spertus@symantec.com>
3006
3007 * c-common.c (c_common_reswords): Add __bases,
3008 __direct_bases.
3009 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3010
30112011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3012
3013 PR c++/50757
3014 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3015
62db153a 30162011-10-15 Tom Tromey <tromey@redhat.com>
3017 Dodji Seketeli <dodji@redhat.com>
3018
3019 * c.opt (fdebug-cpp): New option.
3020 * c-opts.c (c_common_handle_option): Handle the option.
3021 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3022 output stream in parameter. Factorized from ...
3023 (maybe_print_line): ... this. Dump location debug information when
3024 -fdebug-cpp is in effect.
3025 (print_line_1): New static function. Takes an output stream in
3026 parameter. Factorized from ...
3027 (print_line): ... here. Dump location information when -fdebug-cpp
3028 is in effect.
3029 (scan_translation_unit): Dump location information when
3030 -fdebug-cpp is in effect.
3031
ce70f433 30322011-10-15 Tom Tromey <tromey@redhat.com>
3033 Dodji Seketeli <dodji@redhat.com>
3034
3035 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3036 without argument.
3037 * c-opts.c (c_common_handle_option)<case
3038 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3039 cases. Handle -ftrack-macro-expansion with and without argument.
3040
97bfb9ef 30412011-10-15 Tom Tromey <tromey@redhat.com>
3042 Dodji Seketeli <dodji@redhat.com>
3043
3044 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3045 (print_line, cb_define, do_line_change): Adjust to avoid touching
3046 the internals of struct line_map. Use the public API instead.
3047 * c-pch.c (c_common_read_pch): Likewise.
3048 * c-lex.c (fe_file_change): Likewise.
3049
326e3391 30502011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3051
3052 PR c++/17212
3053 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3054
30552011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3056
3057 PR c++/33067
3058 * c-pretty-print.c (pp_c_floating_constant): Output
3059 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3060
b9a16870 30612011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3062
3063 * c-common.c (def_builtin_1): Delete old interface with two
3064 parallel arrays to hold standard builtin declarations, and replace
3065 it with a function based interface that can support creating
3066 builtins on the fly in the future. Change all uses, and poison
3067 the old names. Make sure 0 is not a legitimate builtin index.
3068 * c-omp.c (c_finish_omp_barrier): Ditto.
3069 (c_finish_omp_taskwait): Ditto.
3070 (c_finish_omp_flush): Ditto.
3071
c7964868 30722011-10-11 Tristan Gingold <gingold@adacore.com>
3073
3074 * c.opt: (fallow-parameterless-variadic-functions): New.
3075
a4e3ffad 30762011-09-08 Dodji Seketeli <dodji@redhat.com>
3077
3078 PR c++/33255 - Support -Wunused-local-typedefs warning
3079 * c-common.h (struct c_language_function::local_typedefs): New
3080 field.
19931eea 3081 (record_locally_defined_typedef, maybe_record_typedef_use)
3082 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 3083 * c-common.c (record_locally_defined_typedef)
19931eea 3084 (maybe_record_typedef_use)
3085 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 3086 * c.opt: Declare new -Wunused-local-typedefs flag.
3087
737a23cc 30882011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3089
3090 PR middle-end/50266
3091 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3092 computations.
3093
7542c3b4 30942011-09-05 Richard Guenther <rguenther@suse.de>
3095
3096 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3097 of integer_minus_one_node for empty array upper bounds.
3098
1dc92c59 30992011-08-28 Dodji Seketeli <dodji@redhat.com>
3100
3101 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3102 it's the first time it's being called on this main TU.
3103
2bdf2b6e 31042011-08-24 Richard Guenther <rguenther@suse.de>
3105
3106 PR c/49396
3107 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3108
31092011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 3110
3111 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3112 defined in cpp_init_builtins and c_cpp_builtins.
3113
bff4ad11 31142011-08-19 Joseph Myers <joseph@codesourcery.com>
3115
3116 * c-common.c (c_common_reswords): Add __builtin_complex.
3117 * c-common.h (RID_BUILTIN_COMPLEX): New.
3118
985c6e3a 31192011-08-18 Joseph Myers <joseph@codesourcery.com>
3120
3121 * c-common.c (c_common_reswords): Add _Noreturn.
3122 (keyword_is_function_specifier): Handle RID_NORETURN.
3123 * c-common.h (RID_NORETURN): New.
3124
7dfa155b 31252011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3126
3127 * c-common.c (unsafe_conversion_p): New function. Check if it is
3128 unsafe to convert an expression to the type.
3129 (conversion_warning): Adjust, use unsafe_conversion_p.
3130 * c-common.h (unsafe_conversion_p): New function declaration.
3131
2169f33b 31322011-08-02 Jakub Jelinek <jakub@redhat.com>
3133
3134 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3135 (c_finish_omp_taskyield): New prototype.
3136 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3137 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3138 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3139 or RHS1 have side-effects, evaluate those too in the right spot,
3140 if it is a decl and LHS is also a decl, error out if they
3141 aren't the same.
3142 (c_finish_omp_taskyield): New function.
3143 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3144 * c-pragma.c (omp_pragmas): Add taskyield.
3145 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3146 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3147 PRAGMA_OMP_CLAUSE_MERGEABLE.
3148
ab77850e 31492011-07-25 Dodji Seketeli <dodji@redhat.com>
3150
3151 * c-common.h (set_underlying_type): Remove parm name from
3152 declaration.
3153
6ee97920 31542011-07-25 Romain Geissler <romain.geissler@gmail.com>
3155
3156 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 3157
dc251364 31582011-07-22 Jason Merrill <jason@redhat.com>
3159
1a2a35f0 3160 PR c++/49793
3161 * c.opt (Wnarrowing): New.
3162
27282252 3163 PR c++/30112
3164 * c-common.h: Declare c_linkage_bindings.
3165 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3166
dc251364 3167 PR c++/49813
3168 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3169 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3170 as flag_isoc99 for 'restrict'.
3171 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3172
fc501191 31732011-07-21 Ian Lance Taylor <iant@google.com>
3174
3175 PR middle-end/49705
3176 * c-common.c (c_disable_warnings): New static function.
3177 (c_enable_warnings): New static function.
3178 (c_fully_fold_internal): Change local unused_p to bool. Call
3179 c_disable_warnings and c_enable_warnings rather than change
3180 c_inhibit_evaluation_warnings.
3181
07b8f133 31822011-07-20 Jason Merrill <jason@redhat.com>
3183
3184 PR c++/6709 (DR 743)
3185 PR c++/42603 (DR 950)
3186 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3187 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3188 (CPP_DECLTYPE): New.
3189 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3190
2cc66f2a 31912011-07-19 Richard Guenther <rguenther@suse.de>
3192
3193 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3194 * c-omp.c (c_finish_omp_for): Likewise.
3195
3c802a1e 31962011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3197
3198 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3199 body on the next line.
3200
98a33d9f 32012011-07-08 Jason Merrill <jason@redhat.com>
3202
3115bda0 3203 PR c++/45437
3204 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3205
98a33d9f 3206 PR c++/49673
3207 * c-common.c (c_apply_type_quals_to_decl): Don't check
3208 TYPE_NEEDS_CONSTRUCTING.
3209
c38a75b7 32102011-07-06 Richard Guenther <rguenther@suse.de>
3211
3212 * c-common.c (c_common_nodes_and_builtins):
3213 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3214
e593356b 32152011-07-05 Richard Guenther <rguenther@suse.de>
3216
3217 * c-common.c (c_common_nodes_and_builtins): Build all common
3218 tree nodes first.
3219
fca0886c 32202011-06-27 Jakub Jelinek <jakub@redhat.com>
3221
a68f7a8d 3222 * c-common.h (c_tree_chain_next): New static inline function.
3223
fca0886c 3224 * c-common.c (check_builtin_function_arguments): Handle
3225 BUILT_IN_ASSUME_ALIGNED.
3226
2797f13a 32272011-06-21 Andrew MacLeod <amacleod@redhat.com>
3228
3229 * c-common.c: Add sync_ or SYNC__ to builtin names.
3230 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 3231
32322011-06-20 Pierre Vittet <piervit@pvittet.com>
3233
3234 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3235 handler.
3236 (gen_pragma_handler): New union.
3237 (internal_pragma_handler): New type.
3238 (c_register_pragma_with_data)
3239 (c_register_pragma_with_expansion_and_data): New functions.
3240
3241 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3242 (c_register_pragma, c_register_pragma_with_expansion)
3243 (c_invoke_pragma_handler): Changed to work with
3244 internal_pragma_handler.
3245 (c_register_pragma_with_data)
3246 (c_register_pragma_with_expansion_and_data): New functions.
3247
218e3e4e 32482011-06-14 Joseph Myers <joseph@codesourcery.com>
3249
3250 * c-common.c: Include common/common-target.h.
3251 (handle_section_attribute): Use
3252 targetm_common.have_named_sections.
3253 * c-cppbuiltin.c: Include common/common-target.h.
3254 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3255
41e53ed2 32562011-06-10 Richard Guenther <rguenther@suse.de>
3257
3258 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3259 to print a IDENTIFIER_NODE.
3260
a6f06169 32612011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3262 Joseph Myers <joseph@codesourcery.com>
3263
3264 * c.opt (fbuilding-libgcc): New option.
3265 * c-cppbuiltin.c (c_cpp_builtins): Define
3266 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3267
1ea9269b 32682011-06-07 Jason Merrill <jason@redhat.com>
3269
8ce59854 3270 * c-common.c (max_tinst_depth): Lower default to 900.
3271
1ea9269b 3272 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3273
1af0124d 32742011-06-07 Richard Guenther <rguenther@suse.de>
3275
3276 * c-common.c (c_common_nodes_and_builtins): Do not set
3277 size_type_node or call set_sizetype.
3278
0e9a4c01 32792011-06-07 Dodji Seketeli <dodji@redhat.com>
3280
3281 PR debug/49130
3282 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 3283 type when using pointer comparison to compare types.
0e9a4c01 3284
90b40725 32852011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3286
3287 * c.opt: Add -Wdelete-non-virtual-dtor.
3288 * c-opts.c (c_common_handle_option): Include it in -Wall.
3289
fc9c9e87 32902011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3291
3292 PR bootstrap/49190
3293
3294 Revert:
3295 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3296
3297 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3298 not tree_common.
3299
d0389adc 33002011-05-27 Jakub Jelinek <jakub@redhat.com>
3301
3302 PR c++/49165
3303 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3304 C++ don't call c_common_truthvalue_conversion on void type arms.
3305
cacfdc02 33062011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3307
3308 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3309 (stmt_list_stack): Define.
3310 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3311 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3312
027fc6ef 33132011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3314
3315 * c-common.c (warning_candidate_p): Check for BLOCKs.
3316
f21317a1 33172011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3318
3319 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3320 not tree_common.
3321
789e953d 33222011-05-25 Jakub Jelinek <jakub@redhat.com>
3323
3324 * c-common.c (def_fn_type): Remove extra va_end.
3325
7f506bca 33262011-05-23 Jason Merrill <jason@redhat.com>
3327
3328 PR c++/48106
3329 * c-common.c (c_common_get_narrower): New.
3330 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3331
774e9d58 33322011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3333
3334 * c-common.h (check_function_arguments): Tweak prototype of
3335 check_function_arguments.
3336 * c-common.c (check_function_arguments): Likewise. Adjust
3337 calls to check_function_nonnull, check_function_format, and
3338 check_function_sentinel.
3339 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3340 separate attributes and typelist arguments. Use
3341 FOREACH_FUNCTION_ARGS to iterate over argument types.
3342
23407dc9 33432011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3344
3345 * c-common.c (c_common_reswords): Reorder.
3346 * c-common.h (rid): Likewise.
3347
3a939d12 33482011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3349
3350 * c-common.c (def_fn_type): Don't call build_function_type, call
3351 build_function_type_array or build_varargs_function_type_array
3352 instead.
3353 (c_common_nodes_and_builtins): Likewise.
3354
b6e3dd65 33552011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3356
3357 * c-common.c (c_add_case_label): Omit the loc argument to
3358 build_case_label.
3359 * c-common.h (build_case_label): Remove.
3360 * c-semantics.c (build_case_label): Remove.
3361
4232a958 33622011-05-05 Joseph Myers <joseph@codesourcery.com>
3363
3364 * c-objc.h (objc_start_method_definition): Update prototype.
3365 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3366
d0af78c5 33672011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3368
3369 * c-common.c (check_main_parameter_types): Reindent. Don't use
3370 TYPE_ARG_TYPES directly.
3371 (handle_nonnull_attribute): Likewise.
3372 (sync_resolve_params): Likewise.
3373 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3374 to check_format_string.
3375 (handle_format_attribute): Likewise.
3376 (check_format_string): Take a function type to examine instead of
3377 a type list. Use a function_arg_iterator to step through argument
3378 types.
3379
ceb7b692 33802011-05-04 Richard Guenther <rguenther@suse.de>
3381
3382 * c-common.c (fix_string_type): Use size_int for index type bounds.
3383 (start_fname_decls): Do not pass NULL to build_int_cst.
3384 (c_init_attributes): Likewise.
3385 * c-lex.c (c_lex_with_flags): Likewise.
3386
c66c81be 33872011-04-27 Jason Merrill <jason@redhat.com>
3388
3389 * c-common.c (make_tree_vector_from_list): New.
3390 * c-common.h: Declare it.
3391
16930c72 33922011-04-26 Richard Guenther <rguenther@suse.de>
3393
3394 PR preprocessor/48248
3395 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3396 for output size with -P.
3397
23407dc9 33982011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3399
3400 * c-common.c (struct c_common_resword): Add __underlying_type.
3401 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3402
dd045aee 34032011-04-20 Jim Meyering <meyering@redhat.com>
3404
3405 * c-format.c (init_dollar_format_checking): Remove useless
3406 if-before-free.
3407
394dd737 34082011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3409
3410 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 3411 (objc_detect_field_duplicates): New.
394dd737 3412 * stub-objc.c: Likewise.
23407dc9 3413
a758bf7d 34142011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3415
3416 * stub-objc.c (objc_declare_protocols): Renamed to
3417 objc_declare_protocol.
3418 * c-objc.h: Likewise.
23407dc9 3419
29d7200d 34202011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3421
3422 * stub-objc.c (objc_declare_class): Updated argument name.
3423
9b88d08d 34242011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3425
3426 * c-common.h (c_common_init_ts): Declare.
3427 * c-common.c (c_common_init_ts): Define.
3428
4185cf58 34292011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3430
3431 * c-objc.h (objc_build_message_expr): Updated prototype.
3432 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 3433
5a90471f 34342011-04-12 Martin Jambor <mjambor@suse.cz>
3435
3436 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3437 of cgraph_node.
3438
783bb57e 34392011-04-11 Richard Guenther <rguenther@suse.de>
3440
3441 * c-common.c (complete_array_type): Build a range type of
3442 proper type.
3443
c33080b9 34442011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3445
3446 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3447 (handle_type_generic_attribute): Likewise.
3448
f8913d47 34492011-04-07 Jason Merrill <jason@redhat.com>
3450
3451 PR c++/48450
3452 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3453 conversion from C++0x scoped enum.
3454
c94b1d0e 34552011-04-06 Joseph Myers <joseph@codesourcery.com>
3456
3457 * c-target-def.h: New file.
3458 * c-target.def: New file.
3459 * c-target.h: New file.
3460 * c-common.c (targetcm): Don't define here.
3461 * c-common.h (default_handle_c_option): Declare.
3462 * c-format.c: Include c-target.h instead of target.h.
3463 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3464 include tm.h.
3465 (default_handle_c_option): Move from targhooks.c.
3466
acb10f41 34672011-03-29 Jakub Jelinek <jakub@redhat.com>
3468
3469 PR preprocessor/48248
3470 * c-ppoutput.c (print): Add src_file field.
3471 (init_pp_output): Initialize it.
3472 (maybe_print_line): Don't optimize by adding up to 8 newlines
3473 if map->to_file and print.src_file are different file.
3474 (print_line): Update print.src_file.
3475
82715bcd 34762011-03-25 Kai Tietz <ktietz@redhat.com>
3477
3478 * c-ada-spec.c (compare_comment): Use filename_cmp
3479 instead of strcmp for filename.
3480
451c8e2f 34812011-03-25 Jeff Law <law@redhat.com>
3482
3483 * c-family/c-common.c (def_fn_type): Add missing va_end.
3484
3c47771c 34852011-03-25 Jason Merrill <jason@redhat.com>
3486
3487 * c.opt: Add -std=c++03.
3488
97e6200f 34892011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3490
3491 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3492
ac86af5d 34932011-03-17 Kai Tietz
3494
3495 PR target/12171
ee212425 3496 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3497 Display allowed attributes for function pointer types.
3498 (pp_c_attributes_display): New function to display
3499 attributes having affects_type_identity flag set to true.
3500 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3501
ac86af5d 3502 * c-common.c (c_common_attribute_table):
3503 Add new element.
3504 (c_common_format_attribute_table): Likewise.
3505
914d1151 35062011-03-18 Jason Merrill <jason@redhat.com>
3507
69788bdf 3508 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3509 * c-common.h: Don't declare it here.
3510 * c-common.c: Or define it here.
3511 * c-opts.c (c_common_handle_option): Or set it here.
3512
914d1151 3513 PR c++/35315
3514 * c-common.c (handle_transparent_union_attribute): Don't
3515 make a duplicate type in C++.
3516
54cf6eed 35172011-03-15 Jason Merrill <jason@redhat.com>
3518
3519 * c-common.c (max_constexpr_depth): New.
3520 * c-common.h: Declare it.
3521 * c-opts.c (c_common_handle_option): Set it.
3522 * c.opt (fconstexpr-depth): New option.
3523
02cb1060 35242011-03-11 Jason Merrill <jason@redhat.com>
3525
9bf1c74e 3526 * c-common.c (attribute_takes_identifier_p): Add missing const.
3527
02cb1060 3528 PR c++/46803
3529 * c-common.c (attribute_takes_identifier_p): Assume that an
3530 unknown attribute takes an identifier.
3531
ecf2703d 35322011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3533
3534 PR c/47786
3535 * c-common.c (c_type_hash): Call list_length instead of iterating
3536 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3537
2b19dfe4 35382011-02-19 Jakub Jelinek <jakub@redhat.com>
3539
3540 PR c/47809
3541 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3542
29cf2335 35432011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3544
3545 * c.opt (fobjc-abi-version=) New.
3546 (fobjc-nilcheck): New.
3547
fad3f658 35482011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3549
3550 PR c++/46890
3551 * c-common.h (keyword_is_decl_specifier): Declare.
3552 * c-common.c (keyword_is_decl_specifier): Define.
3553 (keyword_is_function_specifier): New function.
3554
a12319b3 35552011-01-26 Jakub Jelinek <jakub@redhat.com>
3556
3557 PR c/47473
3558 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3559 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3560 REAL_TYPE.
3561
5c128dc8 35622011-01-26 Arnaud Charlet <charlet@adacore.com>
3563
3564 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3565
8d67b0c7 35662011-01-26 Jakub Jelinek <jakub@redhat.com>
3567
3568 PR pch/47430
3569 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3570 after init_c_lex if pch_file is set.
3571
0675168d 35722011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3573
e8911163 3574 PR c++/43601
0675168d 3575 * c.opt (-fkeep-inline-dllexport): New switch.
3576
0725e25c 35772011-01-12 Richard Guenther <rguenther@suse.de>
3578
3579 PR middle-end/32511
3580 * c-common.c (handle_weak_attribute): Warn instead of error
3581 on declaring an inline function weak.
3582
fdd84b77 35832011-01-05 Tom Tromey <tromey@redhat.com>
3584
3585 * c-common.h (lvalue_error): Update.
3586 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3587 not error.
3588
e6e73d14 35892010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 3590
d67e8485 3591 PR objc/47075
3592 * c-objc.h (objc_finish_message_expr): Added argument to
3593 prototype.
3594
a36cf284 35952010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3596
3597 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3598 Use prototype_p.
3599
33b3681f 36002010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3601
3602 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 3603 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 3604
a1f90215 36052010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3606
3607 * c-common.h (readonly_error): Declare.
3608 * c-common.c (readonly_error): Define.
3609
b1bbc8e5 36102010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3611
3612 * c-common.h (invalid_indirection_error): Declare.
3613 * c-common.c (invalid_indirection_error): Define.
3614
b0d55af9 36152010-12-03 Richard Guenther <rguenther@suse.de>
3616
3617 PR c/46745
3618 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3619 (pp_c_unary_expression): Likewise.
3620 (pp_c_expression): Likewise.
3621
d7489d8d 36222010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3623
3624 * c-common.h (objc_finish_function): New.
3625 (objc_non_volatilized_type): Removed.
3626 (objc_type_quals_match): Removed.
3627 * stub-objc.c (objc_finish_function): New.
3628 (objc_non_volatilized_type): Removed.
3629 (objc_type_quals_match): Removed.
19931eea 3630
92468061 36312010-11-30 Joseph Myers <joseph@codesourcery.com>
3632
3633 * c-common.h (parse_optimize_options): Declare.
3634 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3635 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3636
967958e4 36372010-11-29 Joseph Myers <joseph@codesourcery.com>
3638
3639 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3640 GET_ENVIRONMENT.
3641 * c-pch.c (O_BINARY): Don't define here.
3642 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3643
b213bf24 36442010-11-25 Joseph Myers <joseph@codesourcery.com>
3645
3646 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3647 targetm.except_unwind_info.
3648
9faf44d6 36492010-11-23 Joseph Myers <joseph@codesourcery.com>
3650
3651 * c-opts.c (c_common_handle_option): Pass location to
3652 set_struct_debug_option.
3653
79396169 36542010-11-23 Joseph Myers <joseph@codesourcery.com>
3655
3656 * c-common.c (visibility_options): Move from ../opts.c.
3657 * c-common.h (struct visibility_flags, visibility_options):
3658 Declare here.
3659 * c-opts.c (finish_options): Rename to c_finish_options.
3660 (c_common_init): Update call to finish_options.
3661
b4aa4123 36622010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3663
3664 PR objc/34033
3665 * c-lex.c (lex_string): Check that each string in an Objective-C
3666 string concat sequence starts with either one or zero '@', and
3667 that there are no spurious '@' signs at the end.
3668
3e0e49f2 36692010-11-20 Joseph Myers <joseph@codesourcery.com>
3670
3671 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3672 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3673 HANDLE_PRAGMA_VISIBILITY.
3674 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3675 HANDLE_PRAGMA_VISIBILITY): Don't define.
3676 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3677
a9ffdd35 36782010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3679
3680 PR c++/16189
3681 PR c++/36888
3682 PR c++/45331
3683 * c-common.h (keyword_begins_type_specifier): Declare.
3684 (keyword_is_storage_class_specifier): Declare.
3685 (keyword_is_type_qualifier): Declare.
3686 * c-common.c (keyword_begins_type_specifier): New function.
3687 (keyword_is_storage_class_specifier): New function.
3688 (keyword_is_type_qualifier): Declare.
3689
93be21c0 36902010-11-19 Joseph Myers <joseph@codesourcery.com>
3691
3692 PR c/46547
3693 * c-common.c (in_late_binary_op): Define.
3694 (c_common_truthvalue_conversion): Check in_late_binary_op before
3695 calling c_save_expr.
3696 * c-common.h (in_late_binary_op): Declare.
3697
d7175aef 36982010-11-19 Joseph Myers <joseph@codesourcery.com>
3699
3700 * c-opts.c (c_common_handle_option): Update calls to
3701 set_struct_debug_option.
3702
c213e196 37032010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3704
3705 * c-common.h (objc_declare_protocols): Added additional argument.
3706 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 3707
0b5fc5d6 37082010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3709
3710 PR c/33193
3711 * c-common.h (build_real_imag_expr): Declare.
3712 * c-semantics.c (build_real_imag_expr): Define.
3713
b8ba44e7 37142010-11-17 Joseph Myers <joseph@codesourcery.com>
3715
3716 * c-opts.c (c_common_parse_file): Take no arguments.
3717 * c-common.h (c_common_parse_file): Update prototype.
3718
6ef8d12f 37192010-11-16 Jakub Jelinek <jakub@redhat.com>
3720
3721 PR c++/46401
3722 * c-common.c (warning_candidate_p): Don't track non-const calls
3723 or STRING_CSTs.
3724
929d2a90 37252010-11-15 Ian Lance Taylor <iant@google.com>
3726
3727 * c-lex.c (init_c_lex): Set macro debug callbacks if
3728 flag_dump_go_spec is set.
3729
e4a7640a 37302010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3731
3732 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3733 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3734
597d2d81 37352010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3736
3737 PR preprocessor/45038
3738 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3739 dialects.
3740
c123f04d 37412010-11-12 Joseph Myers <joseph@codesourcery.com>
3742
3743 * c-common.h (c_family_lang_mask): Declare.
3744 * c-opts.c (c_family_lang_mask): Make extern.
3745 * c-pragma.c (handle_pragma_diagnostic): Use
3746 control_warning_option.
3747
3c6c0e40 37482010-11-12 Joseph Myers <joseph@codesourcery.com>
3749
3750 * c-common.c (parse_optimize_options): Update call to
3751 decode_options.
3752 * c-common.h (c_common_handle_option): Update prototype.
3753 * c-opts.c (c_common_handle_option): Take location_t parameter and
3754 pass it to other functions.
3755
19ec5c9e 37562010-11-11 Joseph Myers <joseph@codesourcery.com>
3757
3758 * c-opts.c (warning_as_error_callback): Remove.
3759 (c_common_initialize_diagnostics): Don't call
3760 register_warning_as_error_callback.
3761 (c_common_handle_option): Handle -Werror=normalized= here.
3762
bf776685 37632010-11-10 Joseph Myers <joseph@codesourcery.com>
3764
3765 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3766 in diagnostic.
3767 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3768 letter.
3769 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3770 Remove trailing '.' from diagnostics.
3771 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3772
6bd9d862 37732010-11-10 Joseph Myers <joseph@codesourcery.com>
3774
3775 * c-common.c (parse_optimize_options): Pass global_dc to
3776 decode_options.
3777 * c-opts.c (c_common_handle_option): Pass &global_options to
3778 set_Wstrict_aliasing.
3779 * c.opt (v): Don't mark Common or document here.
3780
1f6616ee 37812010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3782
3783 PR target/44981
3784 * c-format.c (format_type): New type gcc_objc_string_format_type.
3785 (valid_stringptr_type_p): New.
3786 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 3787 (check_format_string): Pass expected type, use
1f6616ee 3788 valid_stringptr_type_p (), check that the format string types are
3789 consistent with the format specification.
3790 (decode_format_attr): Warn if NSString is used outside objective-c.
3791 (format_types_orig): Add NSString.
3792 (format_name): New.
3793 (format_flags): New.
3794 (check_format_arg): Handle format strings requiring an external parser.
3795 first_target_format_type: New variable.
3796 (handle_format_attribute): Set up first_target_format_type, pass the
3797 expected format arg string type to check_format_string().
3798 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3799 * stub-objc.c (objc_string_ref_type_p): New.
3800 (objc_check_format_arg): New.
3801
b0d0931f 38022010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3803
19931eea 3804 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 3805 * c-common.h (objc_build_class_component_ref): New.
3806 * stub-objc.c (objc_build_class_component_ref): New.
3807
f26877d5 38082010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3809
3810 * c.opt (Wproperty-assign-default): New option.
3811
1ef143b6 38122010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3813
3814 Implemented -fobjc-std=objc1 flag.
3815 * c.opt (fobjc-std=objc1): New option.
3816
8c582e4f 38172010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3818
3819 Implemented format and noreturn attributes for Objective-C methods.
3820 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3821 attribute for Objective-C methods.
3822
8637f1db 38232010-10-31 Jason Merrill <jason@redhat.com>
3824
3825 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3826 EXPR_LOC_OR_HERE.
3827
9d9f5bb3 38282010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3829
3830 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3831 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3832 (objc_add_property_declaration): Removed arguments for copies and
3833 ivar.
3834 (objc_build_getter_call): Renamed to
3835 objc_maybe_build_component_ref.
3836 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3837 (objc_is_property_ref): New.
3838 * c-common.c (c_common_reswords): Removed copies and ivar.
3839 * stub-objc.c (objc_add_property_declaration): Removed arguments
3840 for copies and ivar.
3841 (objc_build_getter_call): Renamed to
3842 objc_maybe_build_component_ref.
3843 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3844 (objc_is_property_ref): New.
19931eea 3845
56f907a0 38462010-10-29 Arnaud Charlet <charlet@adacore.com>
3847 Matthew Gingell <gingell@adacore.com>
3848
3849 * c-ada-spec.c (separate_class_package): New function.
3850 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3851 name of their enclosing package.
3852 (print_ada_declaration): Use separate_class_package.
3853
b5fa273e 38542010-10-27 Jason Merrill <jason@redhat.com>
3855
5290e253 3856 * c-common.c (c_common_reswords): Add __is_literal_type.
3857 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3858
b5fa273e 3859 * c-common.c (check_case_value): Remove special C++ code.
3860
7590f0e5 38612010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3862
3863 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3864 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3865 and RID_LAST_PATTR.
3866 (objc_add_property_declaration): Added additional arguments.
3867 (objc_property_attribute_kind): Removed.
3868 (objc_set_property_attr): Removed.
3869 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3870 copy and nonatomic.
3871 * stub-objc.c (objc_add_property_declaration): Added additional
3872 arguments.
3873 (objc_set_property_attr): Removed.
19931eea 3874
1d894bcf 38752010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3876
3877 * c-common.h (objc_add_property_variable): Renamed to
3878 objc_add_property_declaration. Added location argument.
3879 * stub-objc.c (objc_add_property_variable): Same change.
3880
e23bf1fb 38812010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3882
3883 * c-common.h (objc_maybe_printable_name): New.
3884 * stub-objc.c (objc_maybe_printable_name): New.
3885
93426222 38862010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3887 Andrew Pinski <pinskia@gmail.com>
3888
3889 * c-common.h (c_common_mark_addressable_vec): Declare.
3890 * c-common.c (c_common_mark_addressable_vec): New function.
3891
45b2b110 38922010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3893
3894 * c-common.h (objc_set_method_type): Removed.
3895 (objc_add_method_declaration): Added boolean argument.
3896 (objc_start_method_definition): Same change.
3897 (objc_build_method_signature): Same change.
3898 * stub-objc.c (objc_set_method_type): Removed.
3899 (objc_add_method_declaration): Added boolean argument.
3900 (objc_start_method_definition): Same change.
3901 (objc_build_method_signature): Same change.
3902
64cd9619 39032010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3904
3905 * c-common.h (finish_file): Removed.
3906 (objc_write_global_declarations): New.
3907 * c-opts.c (c_common_parse_file): Do not call finish_file.
3908 * stub-objc.c (objc_write_global_declarations): New.
19931eea 3909
e1f293c0 39102010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3911
3912 Implemented parsing @synthesize and @dynamic for
3913 Objective-C/Objective-C++.
3914 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3915 (objc_add_synthesize_declaration): New.
3916 (objc_add_dynamic_declaration): New.
3917 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3918 * stub-objc.c (objc_add_synthesize_declaration): New.
3919 (objc_add_dynamic_declaration): New.
19931eea 3920
ef97a312 39212010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3922
3923 PR target/46041
3924 * c-cppbuiltin.c (mode_has_fma): Move function here from
3925 builtins.c. Don't use the fma optab, instead just use the
3926 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3927 using -save-temps.
3928
69b07042 39292010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3930
3931 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 3932
69b07042 3933 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3934
19931eea 3935 Radar 4330422
69b07042 3936 * c-common.h (objc_non_volatilized_type): New declaration
3937 * stub-objc.c (objc_non_volatilized_type): New stub.
3938
f15f2e56 39392010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3940
69b07042 3941 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 3942
3943 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3944
19931eea 3945 Radar 4133425
f15f2e56 3946 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 3947 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 3948
4a8875ed 39492010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3950
3951 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3952 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3953 (objc_ivar_visibility_kind): New enum.
3954 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 3955 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 3956 visibility enum.
3957
7e0713b1 39582010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3959
3960 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3961 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3962 has the appropriate fma builtins.
3963 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3964
86c110ac 39652010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3966
7e0713b1 3967 merge from FSF apple 'trunk' branch.
86c110ac 3968 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 3969
86c110ac 3970 Radars 4436866, 4505126, 4506903, 4517826
3971 * c-common.c (c_common_resword): Define @property and its attributes.
3972 * c-common.h: Define property attribute enum entries.
3973 (OBJC_IS_PATTR_KEYWORD): New.
3974 (objc_property_attribute_kind): New enum.
3975 Declare objc_set_property_attr (), objc_add_property_variable (),
3976 objc_build_getter_call () and objc_build_setter_call ().
3977 * stub-objc.c (objc_set_property_attr): New stub.
3978 (objc_add_property_variable): Likewise.
3979 (objc_build_getter_call): Likewise.
3980 (objc_build_setter_call) Likewise.
7e0713b1 3981
40c8d1dd 39822010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3983
7e0713b1 3984 merge from FSF apple 'trunk' branch.
40c8d1dd 3985 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3986
3987 Radar 3803157 (method attributes)
3988 * c-common.c (handle_deprecated_attribute): Recognize
3989 objc methods as valid declarations.
3990 * c-common.h: Declare objc_method_decl ().
7e0713b1 3991 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 3992
f3f006ad 39932010-10-08 Joseph Myers <joseph@codesourcery.com>
3994
3995 * c-common.c (parse_optimize_options): Call
3996 decode_cmdline_options_to_array_default_mask before
3997 decode_options. Update arguments to decode_options.
3998 * c-common.h (c_common_init_options_struct): Declare.
3999 * c-opts.c (c_common_init_options_struct): New. Split out from
4000 c_common_init_options.
4001
0a65c3bb 40022010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4003
4004 Implemented fast enumeration for Objective-C.
4005 * c-common.h (objc_finish_foreach_loop): New.
4006 * stub-objc.c (objc_finish_foreach_loop): New.
4007
24ca3b4e 40082010-10-05 Joseph Myers <joseph@codesourcery.com>
4009
4010 * c-common.h (struct diagnostic_context): Don't declare here.
4011 (c_common_initialize_diagnostics): Declare using
4012 diagnostic_context typedef.
4013 * c-opts.c (c_common_handle_option): Pass global_dc to
4014 handle_generated_option.
4015
f83b64ca 40162010-10-04 Joseph Myers <joseph@codesourcery.com>
4017
4018 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4019 handle_generated_option.
4020
2fdec027 40212010-10-03 Ian Lance Taylor <iant@google.com>
4022
4023 * c.opt (-fplan9-extensions): New option.
4024
41acdfa4 40252010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4026
4027 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4028 Remove.
4029 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4030 of duplicating code.
4031
069761fb 40322010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4033
4034 * c-common.c: Add two new entries for @optional
4035 and @required keywords.
4036
4037 merge from FSF 'apple/trunk' branch.
4038 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4039
4040 Radar 4386773
4041 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4042 objective-c keywords.
4043 (objc_set_method_opt): New declaration.
4044 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 4045
2c5d2e39 40462010-09-30 Joseph Myers <joseph@codesourcery.com>
4047
4048 * c-common.c (handle_optimize_attribute): Pass &global_options to
4049 cl_optimization_save and cl_optimization_restore.
4050 * c-opts.c (c_common_handle_option): Pass &global_options to
4051 handle_generated_option.
4052 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4053 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4054 &global_options to cl_optimization_restore.
4055
e5c75ac3 40562010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4057
4058 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4059 Objective-C/Objective-C++ keywords.
4060
3511333e 40612010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 4062
19931eea 4063 Merge from 'apple/trunk' branch on FSF servers.
4064
e147d6aa 4065 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4066
4067 Radar 4281748
4068 * c-common.h (objc_check_global_decl): New declaration.
4069 * stub-objc.c (objc_check_global_decl): New stub.
4070
5461e683 40712010-09-29 Joseph Myers <joseph@codesourcery.com>
4072
4073 * c.opt: Don't use VarExists.
4074
5ae82d58 40752010-09-29 Joseph Myers <joseph@codesourcery.com>
4076
4077 * c-common.c (c_cpp_error): Update names of diagnostic_context
4078 members.
4079 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4080 cl_optimization members.
4081 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4082 sanitize_cpp_opts, finish_options): Update names of cpp_options
4083 members.
4084
b27e241e 40852010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4086
4087 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4088 (objc_is_reserved_word): Removed.
4089 * c-common.c: Updated comments.
4090 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4091 objc_is_reserved_word.
4092 * stub-objc.c (objc_is_reserved_word): Removed.
4093
03fc2271 40942010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4095
19931eea 4096 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 4097 include attributes.
4098 (objc_start_method_definition): Likewise.
4099 (objc_build_keyword_decl): Likewise.
4100 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4101 (objc_start_method_definition): Likewise.
4102 (objc_build_keyword_decl): Likewise.
4103
a336eb4b 41042010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4105
4106 * c-common.h (objc_start_class_interface): Adjust prototype.
4107 (objc_start_category_interface): Likewise.
4108 (objc_start_protocol): Likewise.
4109 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4110 (objc_start_class_interface): Likewise.
4111 (objc_start_category_interface): Likewise.
4112
48b14f50 41132010-09-27 Ian Lance Taylor <iant@google.com>
4114
4115 * c-common.c (c_common_attribute_table): Add no_split_stack.
4116 (handle_no_split_stack_attribute): New static function.
4117
4abfc532 41182010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4119
19931eea 4120 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 4121
4122 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4123
19931eea 4124 Radar 4229905
4abfc532 4125 * c-common.h (objc_have_common_type): New declaration.
4126 * stub-objc.c (objc_have_common_type): New stub.
4127
4128 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4129
4130 Radar 4154928
4131 * c-common.h (objc_common_type): New prototype.
19931eea 4132 * stub-objc.c (objc_common_type): New stub.
4abfc532 4133
7bd95dfd 41342010-09-24 Jan Hubicka <jh@suse.cz>
4135
4136 * c-common.c (handle_leaf_attribute): New function.
4137 (struct attribute_spec c_common_att): Add leaf.
4138
5789e05b 41392010-09-22 Joseph Myers <joseph@codesourcery.com>
4140
4141 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4142 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4143 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4144 -include-barrier, -include-directory, -include-directory=,
4145 -include-directory-after, -include-directory-after=,
4146 -include-prefix, -include-prefix=, -include-with-prefix,
4147 -include-with-prefix=, -include-with-prefix-after,
4148 -include-with-prefix-after=, -include-with-prefix-before,
4149 -include-with-prefix-before=, -no-integrated-cpp,
4150 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4151 -output=, -pedantic, -pedantic-errors, -preprocess,
4152 -print-missing-file-dependencies, -trace-includes, -traditional,
4153 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4154 -user-dependencies, -verbose, -write-dependencies,
4155 -write-user-dependencies, no-integrated-cpp, traditional): New.
4156
e6fb54ba 41572010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4158
4159 PR objc/23710
9b60f3b0 4160 * c-common.h (objc_start_method_definition): Return bool instead
4161 of void.
4162 * stub-objc.c (objc_start_method_definition): Return bool instead
4163 of void.
4164
41652010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4166
4167 PR objc/25965
4168 * c-common.h (objc_get_interface_ivars): New declaration.
4169 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 4170
e44b0a1f 41712010-09-15 Ian Lance Taylor <iant@google.com>
4172
4173 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 4174 messages. Remove period at end of warning message.
e44b0a1f 4175
85c0a25c 41762010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4177
4178 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4179 (handle_alias_attribute): ... here.
4180 (handle_ifunc_attribute): New.
4181
5ba33bf4 41822010-09-06 Mark Mitchell <mark@codesourcery.com>
4183
4184 * c-common.h (do_warn_double_promotion): Declare.
4185 * c-common.c (do_warn_double_promotion): Define.
4186
c920faa3 41872010-09-05 Mark Mitchell <mark@codesourcery.com>
4188
4189 * c.opt (Wdouble-promotion): New.
4190
9604e070 41912010-09-02 Joseph Myers <joseph@codesourcery.com>
4192
4193 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4194 fvtable-thunks, fxref): Mark no longer supported in help text.
4195
3b0273a1 41962010-09-02 Joseph Myers <joseph@codesourcery.com>
4197
4198 * c.opt (Wimport, fall-virtual, falt-external-templates,
4199 fdefault-inline, fenum-int-equiv, fexternal-templates,
4200 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4201 fname-mangling-version-, fnew-abi, fnonnull-objects,
4202 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4203 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4204 applicable.
4205 (fhandle-exceptions): Mark with Alias and Warn.
4206 * c-opts.c (c_common_handle_option): Don't handle options marked
4207 as ignored.
4208
67089c6b 42092010-09-02 Joseph Myers <joseph@codesourcery.com>
4210
4211 * c.opt (Wcomments, Werror-implicit-function-declaration,
4212 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4213 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4214 aliases.
4215 * c-common.c (option_codes): Use OPT_Wcomment instead of
4216 OPT_Wcomments.
4217 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4218 Don't handle options marked as aliases.
4219
2af087f2 42202010-08-25 Richard Guenther <rguenther@suse.de>
4221
4222 * c-common.c (c_common_get_alias_set): Remove special
4223 handling for pointers.
4224
48148244 42252010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4226
4227 * c-common.c: Use FOR_EACH_VEC_ELT.
4228 * c-gimplify.c: Likewise.
4229 * c-pragma.c: Likewise.
4230
89c69892 42312010-08-16 Joseph Myers <joseph@codesourcery.com>
4232
4233 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4234 RejectDriver.
4235 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4236 RejectDriver.
4237 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4238 instead of OPT_MDX and OPT_MMDX.
4239
e28aa114 42402010-08-16 Joseph Myers <joseph@codesourcery.com>
4241
4242 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4243
99b66d21 42442010-08-12 Joseph Myers <joseph@codesourcery.com>
4245
4246 * c.opt (MD, MMD): Change to MDX and MMDX.
4247 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4248
666f4bf0 42492010-08-11 Joseph Myers <joseph@codesourcery.com>
4250
4251 * c-opts.c (c_common_handle_option): Call handle_generated_option
4252 instead of handle_option.
4253
5ec815f6 42542010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4255
4256 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4257 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4258
d13143cf 42592010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4260
4261 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4262 (pending_redefine_extname): Change type to a VEC.
4263 (add_to_renaming_pragma_list): Update for new type of
4264 pending_redefine_extname.
5ec815f6 4265 (maybe_apply_renaming_pragma): Likewise.
d13143cf 4266
2008c983 42672010-08-04 Arnaud Charlet <charlet@adacore.com>
4268
4269 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4270 visited.
4271 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4272 decide whether a type has already been declared/seen.
4273 Do not go to the original type.
4274 (dump_nested_types): New parameter forward.
4275 Generate forward declaration if needed and mark type as visited.
4276 (print_ada_declaration): Call dump_nested_types if not already done.
4277 Mark types as visited.
4278
9b091a73 42792010-08-03 Joseph Myers <joseph@codesourcery.com>
4280
4281 * c.opt (-print-pch-checksum): Remove option.
4282 * c-opts.c (c_common_handle_option): Don't handle
4283 OPT_print_pch_checksum.
4284
b78351e5 42852010-07-27 Joseph Myers <joseph@codesourcery.com>
4286
4287 * c-common.h (c_common_handle_option): Update prototype and return
4288 value type.
4289 * c-opts.c (c_common_handle_option): Update prototype and return
4290 value type. Update calls to handle_option and
4291 enable_warning_as_error.
4292
34416a90 42932010-07-27 Jakub Jelinek <jakub@redhat.com>
4294
4295 PR c/45079
4296 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4297
fecf9011 42982010-07-27 Joseph Myers <joseph@codesourcery.com>
4299
4300 * c-common.h (c_common_missing_argument): Remove.
4301 * c-opts.c (c_common_missing_argument): Remove.
4302 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4303 idirafter, imacros, include, isysroot, isystem, iquote): Add
4304 MissingArgError.
4305 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4306
e88d34f6 43072010-07-27 Joseph Myers <joseph@codesourcery.com>
4308
4309 * c-common.h (c_common_option_lang_mask,
4310 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4311 New.
4312 (c_common_init_options): Update prototype.
4313 * c-opts.c (c_common_option_lang_mask): New.
4314 (c_common_initialize_diagnostics): Split out of
4315 c_common_init_options.
4316 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4317 New.
4318 (c_common_init_options): Update prototype. Use decoded options in
4319 search for -lang-asm.
4320
1767a056 43212010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4322
4323 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4324 * c-format.c: Likewise.
4325
0b205f4c 43262010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4327
4328 * c-common.h: Include diagnostic-core.h. Error if already
4329 included.
4330 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4331
1c58e3f1 43322010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4333
4334 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4335 Do not include expr.h
4336 (vector_mode_valid_p): Move here.
4337
33cc157c 43382010-06-21 DJ Delorie <dj@redhat.com>
4339
4340 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4341 allow these pragmas anywhere.
4342
43432010-06-14 Jakub Jelinek <jakub@redhat.com>
4344
4345 PR bootstrap/44509
4346 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4347 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4348 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4349 ggc_strdup instead of xstrdup.
4350
43512010-06-10 Jakub Jelinek <jakub@redhat.com>
4352
4353 * c-cppbuiltin.c: Include cpp-id-data.h.
4354 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4355 (lazy_hex_fp_value): New function.
4356 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4357
9b40bfbf 43582010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4359
4360 * c-gimplify.c: Do not include tree-flow.h
4361
202d6e5f 43622010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4363
4364 PR other/44034
4365 * c-common.c: Rename targetm member:
4366 targetm.enum_va_list -> targetm.enum_va_list_p
4367
d3237426 43682010-06-28 Anatoly Sokolov <aesok@post.ru>
4369
4370 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4371
596981c8 43722010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4373
4374 * c-cppbuiltin.c: Do not include except.h.
4375
b9bdfa0b 43762010-06-24 Andi Kleen <ak@linux.intel.com>
4377
19931eea 4378 * c-common.c (warn_for_omitted_condop): New.
4379 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 4380
55ad092d 43812010-06-21 Joseph Myers <joseph@codesourcery.com>
4382
4383 * c.opt (lang-objc): Remove.
4384 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4385
9e7c2572 43862010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4387
4388 * c-opts.c: Include "tm_p.h".
4389
615ef0bb 43902010-06-20 Joseph Myers <joseph@codesourcery.com>
4391
4392 * c-common.c (parse_optimize_options): Update call to
4393 decode_options.
4394
aef48c9a 43952010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4396
4397 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4398 new type of types_used_by_cur_var_decl.
4399
d74003b4 44002010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4401
4402 PR bootstrap/44512
4403 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4404 for C++ standard compliance.
4405
1194d077 44062010-06-16 Jason Merrill <jason@redhat.com>
4407
4408 * c.opt: Add -Wnoexcept.
4409
d473d901 44102010-06-16 Richard Guenther <rguenther@suse.de>
4411
4412 PR c/44555
4413 * c-common.c (c_common_truthvalue_conversion): Remove
4414 premature and wrong optimization concering ADDR_EXPRs.
4415
b62dbfd3 44162010-06-15 Arnaud Charlet <charlet@adacore.com>
4417
4418 * c-ada-spec.c (dump_sloc): Remove column info.
4419 (is_simple_enum): New function.
4420 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4421 enum types when relevant.
4422
200dd99c 44232010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4424
19931eea 4425 * c-common.c (conversion_warning): Warn at expression
200dd99c 4426 location.
4427
abf6a617 44282010-06-10 Joseph Myers <joseph@codesourcery.com>
4429
4430 * c-opts.c (c_common_handle_option): Don't handle
4431 OPT_fshow_column.
4432
ba72912a 44332010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4434
4435 * c-pragma.c (push_alignment): Use typed GC allocation.
4436 (handle_pragma_push_options): Likewise.
4437
4438 * c-common.c (parse_optimize_options): Likewise.
4439
4440 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4441 option.
4442
4aafe913 44432010-06-07 Joseph Myers <joseph@codesourcery.com>
4444
4445 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4446 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4447 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4448 flag_signed_bitfields, warn_strict_null_sentinel,
4449 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4450 flag_gen_declaration, flag_no_gnu_keywords,
4451 flag_implement_inlines, flag_implicit_templates,
4452 flag_implicit_inline_templates, flag_optional_diags,
4453 flag_elide_constructors, flag_default_inline, flag_rtti,
4454 flag_conserve_space, flag_access_control, flag_check_new,
4455 flag_new_for_scope, flag_weak, flag_working_directory,
4456 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4457 flag_enforce_eh_specs, flag_threadsafe_statics,
4458 flag_pretty_templates): Remove.
4459 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4460 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4461 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4462 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4463 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4464 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4465 flag_no_gnu_keywords, flag_implement_inlines,
4466 flag_implicit_templates, flag_implicit_inline_templates,
4467 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4468 flag_rtti, flag_conserve_space, flag_access_control,
4469 flag_check_new, flag_new_for_scope, flag_weak,
4470 flag_working_directory, flag_use_cxa_atexit,
4471 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4472 flag_threadsafe_statics, flag_pretty_templates,
4473 warn_strict_null_sentinel): Remove.
4474 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4475 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4476 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4477 fimplicit-inline-templates, fimplicit-templates,
4478 flax-vector-conversions, fms-extensions, fnil-receivers,
4479 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4480 frtti, fshort-double, fshort-enums, fshort-wchar,
4481 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4482 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4483 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4484 gen-decls, undef): Use Var.
4485 (fdefault-inline, foptional-diags): Document as doing nothing.
4486 * c-opts.c (c_common_handle_option): Remove cases for options now
4487 using Var. Mark ignored options as such.
4488
7bedc3a0 44892010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4490
19931eea 4491 * c-common.c: Moved to here from parent directory.
7bedc3a0 4492 * c-common.def: Likewise.
4493 * c-common.h: Likewise.
4494 * c-cppbuiltin.c: Likewise.
4495 * c-dump.c: Likewise.
4496 * c-format.c: Likewise.
4497 * c-format.h : Likewise.
4498 * c-gimplify.c: Likewise.
4499 * c-lex.c: Likewise.
4500 * c-omp.c: Likewise.
4501 * c.opt: Likewise.
4502 * c-opts.c: Likewise.
4503 * c-pch.c: Likewise.
4504 * c-ppoutput.c: Likewise.
4505 * c-pragma.c: Likewise.
4506 * c-pragma.h: Likewise.
4507 * c-pretty-print.c: Likewise.
4508 * c-pretty-print.h: Likewise.
4509 * c-semantics.c: Likewise.
4510 * stub-objc.c: Likewise.
4511
4512 * c-common.c: Include gt-c-family-c-common.h.
4513 * c-pragma.c: Include gt-c-family-c-pragma.h.
4514\f
3aea1f79 4515Copyright (C) 2010-2014 Free Software Foundation, Inc.
7bedc3a0 4516
4517Copying and distribution of this file, with or without modification,
4518are permitted in any medium without royalty provided the copyright
4519notice and this notice are preserved.