]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR c/59871 (No unused value warning for comma expression)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
621955cb
EB
12014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2
3 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
4 * c-ada-spec.c (dump_ads): Likewise.
5 (cpp_check): Likewise.
6 (dump_ada_specs): Likewise.
7
82014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
9
10 PR c++/49718
11 * c-common.c (handle_no_instrument_function_attribute): Allow
12 no_instrument_function attribute in class member
13 definition/declaration.
14
241f845a
JJ
152014-01-15 Jakub Jelinek <jakub@redhat.com>
16
17 PR c/58943
18 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
19 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
20 being COMPOUND_EXPR.
21 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
22 operand a SAVE_EXPR and second MODIFY_EXPR.
23
e83b8e2e
JJ
242014-01-09 Jakub Jelinek <jakub@redhat.com>
25
26 PR target/58115
27 * c-pch.c (c_common_write_pch): Call
28 prepare_target_option_nodes_for_pch.
29
23a5b65a
RS
302014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31
32 Update copyright years
33
f9030485
RS
342014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35
36 * array-notation-common.c, c-cilkplus.c: Use the standard form for
37 the copyright notice.
38
f2aa696b
EB
392013-12-28 Eric Botcazou <ebotcazou@adacore.com>
40
41 * c-ada-spec.c (print_constructor): New function.
42 (print_destructor): Retrieve the origin of the destructor.
43 (print_ada_declaration): Revamp handling of constructors/destructors.
44
1f26ac87
JM
452013-12-23 Stuart Hastings <stuart@apple.com>
46 Bill Maddox <maddox@google.com>
47 Jason Merrill <jason@redhat.com>
48
49 * c.opt: Add -fdeclone-ctor-dtor.
50 * c-opts.c (c_common_post_options): Default to on iff -Os.
51
41958c28
BI
522013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
53
54 * c-common.c (c_common_attribute_table): Added "cilk simd function"
55 attribute.
56 * c-pragma.h (enum pragma_cilk_clause): Remove.
57 (enum pragma_omp_clause): Added the following fields:
58 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
59 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
60 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
61 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
62 PRAGMA_CILK_CLAUSE_UNIFORM.
63
64
12893402
BI
652013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
66
67 * cilk.c (cilk_outline): Made this function non-static.
68 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
69 (create_cilk_wrapper): Added a new parameter: a function pointer.
70 (c_install_body_w_frame_cleanup): Remove
71 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
72 * c-common.h (cilk_outline): New prototype.
73 (gimplify_cilk_spawn): Removed two parameters.
74 (cilk_install_body_with_frame_cleanup): New prototype.
75 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
76 CILK_SPAWN_STMT case.
77
085b42ed
BS
782013-12-11 Bernd Schmidt <bernds@codesourcery.com>
79
2ce064c3
BS
80 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
81
085b42ed
BS
82 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
83 (int_array_type_node): Remove.
84 * c-common.c (c_common_nodes_and_builtins): Don't build it.
85
9e36c9ed
MP
862013-12-05 Marek Polacek <polacek@redhat.com>
87
88 PR c/52023
89 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
90 [ADJUST_FIELD_ALIGN].
91
296674db
JM
922013-12-04 Joseph Myers <joseph@codesourcery.com>
93
94 PR c/52023
95 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
96 and check field alignment if set.
97 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
98 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
99
31e071ae
MP
1002013-12-04 Jakub Jelinek <jakub@redhat.com>
101 Marek Polacek <polacek@redhat.com>
102
103 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
104 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
105
d7947e19
L
1062013-11-29 H.J. Lu <hongjiu.lu@intel.com>
107
108 PR c/59309
109 * cilk.c (gimplify_cilk_spawn): Properly handle function without
110 arguments.
111
fad7652e
JJ
1122013-11-29 Jakub Jelinek <jakub@redhat.com>
113
114 PR c/59280
115 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
116 goto invalid. If it is error_mark_node, don't issue further
117 diagnostics.
118
8b5e1202
SO
1192013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
120
121 * c.opt (Wopenmp-simd): New.
122
0a508bb6
JJ
1232013-11-22 Jakub Jelinek <jakub@redhat.com>
124
125 * c-ubsan.h (ubsan_instrument_return): New prototype.
126 * c-ubsan.c (ubsan_instrument_return): New function.
127
2fb9a547
AM
1282013-11-22 Andrew MacLeod <amacleod@redhat.com>
129
130 * c-common.c: Add required include files from gimple.h.
131 * c-gimplify.c: Likewise
132 * cilk.c: Likewise
133
8400e75e
DM
1342013-11-22 David Malcolm <dmalcolm@redhat.com>
135
136 * c-common.c (unsafe_conversion_p): Remove use of
137 EXPR_LOC_OR_HERE macro.
138 (conversion_warning): Likewise.
139 (warnings_for_convert_and_check): Likewise.
140 (warn_for_collisions_1): Likewise.
141 (shorten_compare): Likewise, and remove use of in_system_header
142 macro, using the location from the former.
143 * c-lex.c (dump_one_header): Remove use of input_filename macro.
144 (cb_def_pragma): Remove use of in_system_header macro.
145 (lex_string): Likewise.
146 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
147
eb1ce453
KZ
1482013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
149 Mike Stump <mikestump@comcast.net>
150 Richard Sandiford <rdsandiford@googlemail.com>
151
152 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
153 instead of TREE_INT_CST_LOW, in cases where there is a protecting
154 tree_fits_shwi_p or tree_fits_uhwi_p.
155 (dump_generic_ada_node): Likewise.
156 * c-format.c (check_format_arg): Likewise.
157 * c-pretty-print.c (pp_c_integer_constant): Likewise.
158
6b3b8c27
KZ
1592013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
160
161 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
162
49b0aa18
JC
1632013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
164
165 PR c/53001
166 * c-common.c (unsafe_conversion_p): Make this function
167 return an enumeration with more detail.
168 (conversion_warning): Use the new return type of
169 unsafe_conversion_p to separately warn either about conversions
170 that lower floating point number precision or about the other
171 kinds of conversions.
172 * c-common.h (enum conversion_safety): New enumeration.
173 (unsafe_conversion_p): switching return type to
174 conversion_safety enumeration.
175 * c.opt: Adding new warning -Wfloat-conversion and
176 enabling it with -Wconversion.
177
b826515a
BS
1782013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
179
180 * c-opts.c: Include plugin.h.
181 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
182
b9a55b13
MP
1832013-11-19 Marek Polacek <polacek@redhat.com>
184
185 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
186 call.
187 (ubsan_instrument_shift): Likewise.
188 (ubsan_instrument_vla): Likewise.
189
7d362f6c
RS
1902013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
191
192 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
193 cast to unsigned type.
194
386b1f1f
RS
1952013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
196
197 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
198 tree_low_cst.
199 (complete_array_type): Update comment to refer to tree_to_[su]hwi
200 rather than tree_low_cst.
201
ae7e9ddd
RS
2022013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
203
204 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
205 tree_to_uhwi throughout.
206
9439e9a1
RS
2072013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
208
209 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
210 tree_low_cst (..., 0) with tree_to_shwi throughout.
211
cc269bb6
RS
2122013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
213
214 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
215 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
216
9541ffee
RS
2172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
218
219 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
220 host_integerp (..., 0) with tree_fits_shwi_p throughout.
221
c02065fc
AH
2222013-11-15 Aldy Hernandez <aldyh@redhat.com>
223
224 * c-cilkplus.c: New file.
225 * c-common.c (readonly_error): Add location argument.
226 * c-common.h (readonly_error): Same.
227 (c_finish_cilk_clauses): Protoize.
228 (c_check_cilk_loop): Same.
229 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
230 Do not fail on error_mark_node.
231 Abstract increment canonicalization to here...
232 (c_omp_for_incr_canonicalize_ptr): New.
233 c-pragma.c (init_pragma): Register "simd" pragma.
234 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
235 (enum pragma_cilk_clause): New.
236
9cc65f15
RS
2372013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
238
239 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
240 wchar_type and host_integerp checks.
241
18f429e2
AM
2422013-11-14 Andrew MacLeod <amacleod@redhat.com>
243
244 * c-common.c: Likewise.
245 * c-gimplify.c: Likewise.
246 * cilk.c: Likewise.
247
d8a2d370
DN
2482013-11-14 Diego Novillo <dnovillo@google.com>
249
250 * c-common.c: Include fold-const.h.
251 Include stor-layout.h.
252 Include calls.h.
253 Include stringpool.h.
254 Include attribs.h.
255 Include varasm.h.
256 Include trans-mem.h.
257 * c-cppbuiltin.c: Include stor-layout.h.
258 Include stringpool.h.
259 * c-format.c: Include stringpool.h.
260 * c-lex.c: Include stringpool.h.
261 Include stor-layout.h.
262 * c-pragma.c: Include stringpool.h.
263 Include attribs.h.
264 Include varasm.h.
265 Include gcc-symtab.h.
266 * c-pretty-print.c: Include stor-layout.h.
267 Include attribs.h.
268 * cilk.c: Include stringpool.h.
269 Include calls.h.
270
38b7bc7f
JM
2712013-11-13 Joseph Myers <joseph@codesourcery.com>
272
273 * c-common.h (enum rid): Add RID_AUTO_TYPE.
274 * c-common.c (c_common_reswords): Add __auto_type.
275 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
276
45b0be94
AM
2772013-11-12 Andrew MacLeod <amacleod@redhat.com>
278
18f429e2
AM
279 * c-common.c: Include gimplify.h.
280 * c-gimplify.c: Likewise.
281 * cilk.c: Likewise.
282 * c-omp.c: Include gimple-expr.h instead of gimple.h.
283 * c-ubsan.c: Don't include gimple.h.
45b0be94 284
582d9b50
JM
2852013-11-12 Joseph Myers <joseph@codesourcery.com>
286
287 * c-common.c (c_common_reswords): Add _Thread_local.
288
6b28e197
JM
2892013-11-09 Joseph Myers <joseph@codesourcery.com>
290
291 * c-common.c (atomic_size_supported_p): New function.
292 (resolve_overloaded_atomic_exchange)
293 (resolve_overloaded_atomic_compare_exchange)
294 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
295 Use it instead of comparing size with a local list of sizes.
296
267bac10
JM
2972013-11-07 Andrew MacLeod <amacleod@redhat.com>
298 Joseph Myers <joseph@codesourcery.com>
299
300 * c-common.h (enum rid): Add RID_ATOMIC.
301 * c-common.c (c_common_reswords): Add _Atomic.
302 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
303 (keyword_is_type_qualifier): Accept RID_ATOMIC.
304 * c-format.c (check_format_types): Check for extra _Atomic
305 qualifiers in format argument.
306 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
307 (pp_c_type_qualifier_list): Mention _Atomic in comment.
308
5157b91e
TB
3092013-11-06 Tobias Burnus <burnus@net-b.de>
310
311 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
312
6dbe0958
JM
3132013-11-06 Joseph Myers <joseph@codesourcery.com>
314
315 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
316 standards modes.
317 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
318 to mean lack of IEEE 754 support.
319
e8ff5196
TB
3202013-11-05 Tobias Burnus <burnus@net-b.de>
321
322 * c.opt (-Wdate-time): New option
323 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
324
254a0760
JM
3252013-11-05 Joseph Myers <joseph@codesourcery.com>
326
327 * c-cppbuiltin.c (cpp_iec_559_value): Test
328 flag_excess_precision_cmdline not flag_excess_precision.
329
6d7f7e0a
TB
3302013-11-05 Tobias Burnus <burnus@net-b.de>
331
332 * c.opt (fopenmp-simd): New option.
333 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
334 (omp_pragmas): ... this new struct.
335 (c_pp_lookup_pragma): Also walk omp_pragmas.
336 (init_pragma): Init pragmas for -fopenmp-simd.
337
55a7f02f
MP
3382013-11-04 Marek Polacek <polacek@redhat.com>
339
340 PR c++/58979
341 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
342
9193fb05
JM
3432013-11-04 Joseph Myers <joseph@codesourcery.com>
344
345 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
346 New functions.
347 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
348
94159ecf
EB
3492013-11-04 Eric Botcazou <ebotcazou@adacore.com>
350
351 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
352 (dump_ada_specs): Adjust prototype of second callback.
353 * c-ada-spec.c (cpp_check): New global variable.
354 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
355 (print_generic_ada_decl): Likewise.
356 (has_static_fields): Change return type to bool and add guard.
357 (has_nontrivial_methods): New predicate.
358 (is_tagged_type): Change return type to bool.
359 (separate_class_package): Call has_nontrivial_methods.
360 (pp_ada_tree_identifier): Minor tweaks.
361 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
362 (dump_ada_array_domains): Likewise.
363 (dump_ada_array_type): Likewise.
364 (dump_template_types): Remove cpp_check parameter and do not pass it to
365 dump_generic_ada_node.
366 (dump_ada_template): Likewise.
367 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
368 recursively.
369 (print_ada_methods): Change return type to integer. Remove cpp_check
370 parameter and do not pass it down.
371 (dump_nested_types): Remove cpp_check parameter and do not pass it to
372 dump_generic_ada_node.
373 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
374 accessing methods.
375 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
376 down. Use has_nontrivial_methods to recognize C++ classes. Use return
377 value of print_ada_methods.
378 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
379 Set cpp_check to it before invoking dump_ada_nodes.
380 (dump_ada_specs): Likewise.
381
b906f4ca
MP
3822013-11-03 Marek Polacek <polacek@redhat.com>
383
384 * c-ubsan.c: Don't include hash-table.h.
385 (ubsan_instrument_vla): New function.
386 * c-ubsan.h: Declare it.
387
5e20cdc9
DM
3882013-10-31 David Malcolm <dmalcolm@redhat.com>
389
390 Automated part of renaming of symtab_node_base to symtab_node.
391
392 Patch autogenerated by rename_symtab.py from
393 https://github.com/davidmalcolm/gcc-refactoring-scripts
394 revision 58bb219cc090b2f4516a9297d868c245495ee622
395
396 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
397 symtab_node_base to symtab_node.
398
7057e645
ESR
3992013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
400
401 Implement C++14 digit separators.
402 * c-lex.c (interpret_float): Remove digit separators from scratch string
403 before building real literal.
404
193ea7bc
JJ
4052013-10-30 Jakub Jelinek <jakub@redhat.com>
406
407 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
408
939b37da
BI
4092013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
410
411 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
412 fields.
413 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
414 enabled.
415 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
416 (insert_cilk_frame): New prototype.
417 (cilk_init_builtins): Likewise.
418 (gimplify_cilk_spawn): Likewise.
419 (c_cilk_install_body_w_frame_cleanup): Likewise.
420 (cilk_detect_spawn_and_unwrap): Likewise.
421 (cilk_set_spawn_marker): Likewise.
422 (build_cilk_sync): Likewise.
423 (build_cilk_spawn): Likewise.
424 * cilk.c: New file.
425
67348ccc
DM
4262013-10-29 David Malcolm <dmalcolm@redhat.com>
427
428 Patch autogenerated by refactor_symtab.py from
429 https://github.com/davidmalcolm/gcc-refactoring-scripts
430 revision 58bb219cc090b2f4516a9297d868c245495ee622
431
432 * c-gimplify.c (c_genericize): Update for conversion of symtab types
433 to a true class hierarchy.
434 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
435
d570872d
RS
4362013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
437
438 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
439
98906124
JL
4402013-10-26 Jeff Law <law@redhat.com>
441
442 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
443 * c-family/c.opt: Ignore and warn for mudflap options.
444
d73749df 4452013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
446
447 PR other/33426
448 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
449 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
450
3f04b1bb
JM
4512013-10-23 Jason Merrill <jason@redhat.com>
452
453 * c-format.c (gcc_cxxdiag_char_table): Add %X.
454
acf0174b
JJ
4552013-10-11 Jakub Jelinek <jakub@redhat.com>
456
acd15a28
JJ
457 * c-common.h (omp_clause_mask::operator !=): New method.
458 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
459 instead of if (mask & something) tests everywhere.
460
acf0174b
JJ
461 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
462 201307 instead of 201107.
463 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
464 (c_common_attribute_table): Add "omp declare target" and
465 "omp declare simd" attributes.
466 (handle_omp_declare_target_attribute,
467 handle_omp_declare_simd_attribute): New functions.
468 * c-omp.c: Include c-pragma.h.
469 (c_finish_omp_taskgroup): New function.
470 (c_finish_omp_atomic): Add swapped argument, if true,
471 build the operation first with rhs, lhs arguments and use NOP_EXPR
472 build_modify_expr.
473 (c_finish_omp_for): Add code argument, pass it down to make_code.
474 (c_omp_split_clauses): New function.
475 (c_split_parallel_clauses): Removed.
476 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
477 c_omp_declare_simd_clauses_to_decls): New functions.
478 * c-common.h (omp_clause_mask): New type.
479 (OMP_CLAUSE_MASK_1): Define.
480 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
481 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
482 omp_clause_mask::operator |, omp_clause_mask::operator &,
483 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
484 omp_clause_mask::operator ==): New methods.
485 (enum c_omp_clause_split): New.
486 (c_finish_omp_taskgroup): New prototype.
487 (c_finish_omp_atomic): Add swapped argument.
488 (c_finish_omp_for): Add code argument.
489 (c_omp_split_clauses): New prototype.
490 (c_split_parallel_clauses): Removed.
491 (c_omp_declare_simd_clauses_to_numbers,
492 c_omp_declare_simd_clauses_to_decls): New prototypes.
493 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
494 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
495 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
496 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
497 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
498 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
499 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
500 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
501 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
502 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
503 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
504 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
505 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
506 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
507 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
508 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
509 PRAGMA_OMP_CLAUSE_UNIFORM.
510
826cacfe
MG
5112013-10-09 Marc Glisse <marc.glisse@inria.fr>
512
513 PR tree-optimization/20318
514 * c-common.c (handle_returns_nonnull_attribute): New function.
515 (c_common_attribute_table): Add returns_nonnull.
516
2284b034
MG
5172013-10-03 Marc Glisse <marc.glisse@inria.fr>
518
519 PR c++/19476
520 * c.opt (fcheck-new): Move to common.opt.
521
b56e9788
MP
5222013-09-25 Marek Polacek <polacek@redhat.com>
523 Jakub Jelinek <jakub@redhat.com>
524
525 PR sanitizer/58413
526 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
527 an expression if we can prove it is correct.
528 (ubsan_instrument_division): Likewise. Remove unnecessary
529 check.
530
ce6923c5
MP
5312013-09-18 Marek Polacek <polacek@redhat.com>
532
533 PR sanitizer/58411
534 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
535 Declare it.
536 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
537
fb5610fb
IS
5382013-09-14 Iain Sandoe <iain@codesourcery.com>
539
540 PR target/48094
541 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
542 fobjc-gc, freplace-objc-classes): Accept for LTO.
543
88b0e79e
JC
5442013-09-13 Jacek Caban <jacek@codeweavers.com>
545
546 * c-target.def: New hook
547
c9b0866a
PC
5482013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
549
550 PR c++/43452
551 * c.opt (Wdelete-incomplete): Add.
552
0af94e6f
JR
5532013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
554
555 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
556 (vector_types_compatible_elements_p): New function.
557 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
558 declaration.
559 (vector_types_compatible_elements_p): Declare.
560
7c26172c
GDR
5612013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
562
563 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
564 a virtual member function.
565 (pp_simple_type_specifier): Remove.
566 (pp_c_type_specifier): Likewise.
567 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
568 Rename from pp_c_type_specifier. Adjust.
569 (c_pretty_printer::c_pretty_printer): Do not assign to
570 simple_type_specifier.
571
20059c8b
GDR
5722013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
573
574 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
575 member function.
576 (c_pretty_printer::storage_class_specifier): Likewise.
577 (c_pretty_printer::initializer): Likewise.
578 (pp_declaration): Remove.
579 (pp_declaration_specifiers): Likewise.
580 (pp_abstract_declarator): Likewise.
581 (pp_declarator): Likewise.
582 (pp_type_id): Likewise.
583 (pp_statement): Likewise.
584 (pp_constant): Likewise.
585 (pp_id_expression): Likewise.
586 (pp_primary_expression): Likewise.
587 (pp_unary_expression): Likewise.
588 (pp_multiplicative_expression): Likewise.
589 (pp_conditional_expression): Likewise.
590 (pp_assignment_expression): Likewise.
591 (pp_expression): Likewise.
592 (pp_c_type_id): Likewise.
593 (pp_c_storage_class_specifier): Likewise.
594 * c-pretty-print.c (pp_c_type_cast): Tidy.
595 (pp_c_pointer): Likewise.
596 (pp_c_type_specifier): Likewise.
597 (pp_c_parameter_type_list): Likewise.
598 (pp_c_function_definition): Likewise.
599 (pp_c_init_declarator): Likewise.
600 (pp_c_initializer_list): Likewise.
601 (pp_c_constructor_elts): Likewise.
602 (c_pretty_printer::direct_abstract_declarator): Likewise.
603 (c_pretty_printer::declaration_specifiers): Likewise.
604 (c_pretty_printer::primary_expression): Likewise.
605 (c_pretty_printer::postfix_expression): Likewise.
606 (c_pretty_printer::type_id): Rename from pp_c_type_id.
607 (c_pretty_printer::storage_class_specifier): Rename from
608 pp_c_storage_class_specifier.
609 (c_pretty_printer::initializer): Rename from pp_c_initializer.
610 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
611 storage_class_specifier, initializer, offset_list, flags.
612
de5a5fa1
MP
6132013-08-30 Marek Polacek <polacek@redhat.com>
614
615 * c-ubsan.c: New file.
616 * c-ubsan.h: New file.
617
8f0e4d72
GDR
6182013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
619
620 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
621 member function.
622 (c_pretty_printer::declaration_specifiers): Likewise.
623 (c_pretty_printer::declarator): Likewise.
624 (c_pretty_printer::abstract_declarator): Likewise.
625 (c_pretty_printer::direct_abstract_declarator): Likewise.
626 (c_pretty_printer::direct_declarator): Likewise.
627 (c_pretty_printer::function_specifier): Likewise.
628 (pp_declaration): Adjust.
629 (pp_declaration_specifiers): Likewise.
630 (pp_abstract_declarator): Likewise.
631 (pp_direct_declarator): Likewise.
632 (pp_function_specifier): Likewise.
633 (pp_direct_abstract_declarator): Remove as unused.
634 (pp_c_declaration): Remove.
635 (pp_c_declaration_specifiers): Likewise.
636 (pp_c_declarator): Likewise.
637 (pp_c_direct_declarator): Likewise.
638 (pp_c_function_specifier): Likewise.
639 (pp_c_direct_abstract_declarator): Likewise.
640 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
641 from pp_c_abstract_declarator. Adjust.
642 (c_pretty_printer::direct_abstract_declarator): Rename from
643 pp_c_direct_abstract_declarator. Adjust.
644 (c_pretty_printer::function_specifier): Rename from
645 pp_c_function_specifier. Adjust.
646 (c_pretty_printer::declaration_specifiers): Rename from
647 pp_c_declaration_specifiers. Adjust.
648 (c_pretty_printer::direct_declarator): Rename from
649 pp_c_direct_declarator. Adjust.
650 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
651 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
652 (c_pretty_printer::c_pretty_printer): Do not assign to
653 declaration, declaration_specifiers, declarator,
654 direct_declarator, direct_abstract_declarator, function_specifier.
655
00d34d3a
GDR
6562013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
657
658 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
659 virtual member function.
660 (c_pretty_printer::multiplicative_expression): Likewise.
661 (c_pretty_printer::conditional_expression): Likewise.
662 (c_pretty_printer::assignment_expression): Likewise.
663 (c_pretty_printer::expression): Likewise.
664 (pp_unary_expression): Adjust.
665 (pp_multiplicative_expression): Likewise.
666 (pp_assignment_expression): Likewise.
667 (pp_conditional_expression): Likewise.
668 (pp_expression): Likewise.
669 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
670 from pp_c_unary_expression. Adjust.
671 (c_pretty_printer::multiplicative_expression): Rename from
672 pp_c_multiplicative_expression. Adjust.
673 (c_pretty_printer::conditional_expression): Rename from
674 pp_c_conditional_expression. Adjust.
675 (c_pretty_printer::assignment_expression): Rename from
676 pp_c_assignment_expression. Adjust.
677 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
678 (c_pretty_printer::c_pretty_printer): Do not assign to
679 unary_expression, multiplicative_expression,
680 conditional_expression, expression.
681
fb22178f
GDR
6822013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
683
684 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
685 virtual member function.
686 (pp_postfix_expression): Adjust.
687 (pp_c_postfix_expression): Remove.
688 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
689 from pp_c_postfix_expression. Adjust.
690 (c_pretty_printer::c_pretty_printer): Do not assign to
691 postfix_expression.
692
7ecc2600
GDR
6932013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
694
695 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
696 virtua member function.
697 (pp_primary_expression): Adjust.
698 (pp_c_primary_expression): Remove.
699 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
700 from pp_c_primary_expression. Adjust.
701 (pp_c_initializer_list): Use pp_primary_expression.
702 (c_pretty_printer::c_pretty_printer): Do not assign to
703 primary_expression.
704
0691175f
GDR
7052013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
706
707 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
708 * c-pretty-print.c (M_): Remove.
709 (c_pretty_printer::translate_string): Define.
710 (pp_c_type_specifier): Use it.
711 (pp_c_primary_expression): Likewise.
712 (pp_c_expression): Likewise.
713
66dfe4c4
GDR
7142013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
715
716 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
717 virtual function.
718 (pp_c_id_expression): Remove.
719 (pp_id_expression): Adjust.
720 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
721 pp_c_id_expression. Adjust.
722 (pp_c_postfix_expression): Use pp_id_expression.
723 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
724
ca43e9d5
GDR
7252013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
726
727 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
728 member function.
729 (pp_constant): Adjust.
730 (pp_c_constant): Remove.
731 * c-pretty-print.c (c_pretty_printer::constant): Rename from
732 pp_c_constant. Adjust.
733 (pp_c_constant)
734 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
735 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
736
da6ca2b5
GDR
7372013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
738
739 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
740 (c_pretty_printer::c_pretty_printer): Declare.
741 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
742 c_pretty_printer_init. Adjust.
743 (print_c_tree): Do not call c_pretty_printer_init.
744 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
745
65a372f4
AC
7462013-08-09 Arnaud Charlet <charlet@adacore.com>
747
748 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
749
fd9b0f32
PC
7502013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
751
752 PR c++/58080
753 * c-common.c (pointer_int_sum): Add bool parameter.
754 * c-common.h (pointer_int_sum): Adjust declaration.
755
e0aec1e9
GDR
7562013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
757
758 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
759 c_pretty_printer variable.
760
b066401f
GDR
7612013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
762
763 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
764 (pp_base): Remove.
765 (pp_c_base): Likewise. Adjust users.
766 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
767 (pp_c_whitespace): Do not call pp_base.
768 (pp_c_left_paren): Likewise.
769 (pp_c_right_paren): Likewise.
770 (pp_c_left_brace): Likewise.
771 (pp_c_right_brace): Likewise.
772 (pp_c_left_bracket): Likewise.
773 (pp_c_right_bracket): Likewise.
774 (pp_c_dot): Likewise.
775 (pp_c_ampersand): Likewise.
776 (pp_c_star): Likewise.
777 (pp_c_arrow): Likewise.
778 (pp_c_semicolon): Likewise.
779 (pp_c_complement): Likewise.
780 (pp_c_exclamation): Likewise.
781 (pp_c_direct_declarator): Likewise.
782 (pp_c_ws_string): Likewise.
783 (pp_c_identifier): Likewise.
784 (pp_c_statement): Likewise.
785 (print_c_tree): Likewise.
786
65e5a578
ESR
7872013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
788
789 PR c++/58072
790 * c-common.c (c_parse_error): Catch user-defined literal tokens and
791 provide useful error strings.
792
137a1a27
GDR
7932013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
794
795 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
796 printer functions instead of pp_string or operators and punctuators.
797 (dump_generic_ada_node): Likewise.
798 * c-pretty-print.c (pp_c_type_specifier): Likewise.
799 (pp_c_relational_expression): Likewise.
800 (pp_c_logical_or_expression): Likewise.
801
07838b13
GDR
8022013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
803
804 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
805 functions instead of pp_character.
806 (pp_ada_tree_identifier): Likewise.
807 (dump_ada_double_name): Likewise.
808 (dump_ada_function_declaration): Likewise.
809 (dump_ada_array_domains): Likewise.
810 (dump_template_types): Likewise.
811 (dump_generic_ada_node): Likewise.
812 (print_ada_declaration): Likewise.
813 (print_ada_struct_decl): Likewise.
814 * c-pretty-print.c (pp_c_integer_constant): Likewise.
815
433cc7b0
TT
8162013-07-23 Tom Tromey <tromey@redhat.com>
817
818 * c-common.h (enum rid) <RID_GENERIC>: New constant.
819 * c-common.c (c_common_reswords): Add _Generic.
820
688010ba
OB
8212013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
822
823 * c-common.c: Fix typos.
824 * c-common.h: Likewise.
825
2a99e5e6
LL
8262013-07-13 Lubos Lunak <l.lunak@suse.cz>
827
828 PR c++/55203
829 * c-common.c (c_common_attribute_table): Add warn_unused.
830 (handle_warn_unused_attribute): New.
831
c26302d5
JJ
8322013-07-10 Jakub Jelinek <jakub@redhat.com>
833
834 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
835 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
836
dfeadaa0
PC
8372013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
838
839 PR c++/57869
840 * c.opt: Add Wconditionally-supported.
841
6a2fa4b2
GS
8422013-07-08 Graham Stott <graham.stott@btinternet.com>
843
844 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
845 unused variables l_length and l_node.
846
ecdbd01a 8472013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
848
849 PR c/57821
850 * c-common.c (complete_array_type): Delay folding first index
851 like other indices. When folding, check for index overflow.
852
bedc293e
MG
8532013-06-27 Marc Glisse <marc.glisse@inria.fr>
854
855 PR c++/57509
856 * c-common.h (c_build_vec_perm_expr): New complain argument.
857 * c-common.c (c_build_vec_perm_expr): Likewise.
858 Use save_expr also in C++.
859
604b2bfc
GDR
8602013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
861
862 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
863 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
864 * c-opts.c (c_common_post_options): Likewise.
865
dfeadaa0 8662013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
867
868 * array-notation-common.c (length_mismatch_in_expr): Changed the
869 parameter type's from a dynamic array to a vec_tree. Also removed
870 the size parameters.
871 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
872 the change above.
873
2ce86d2e
BI
8742013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
875
876 * c-common.h (struct cilkplus_an_parts): New structure.
877 (struct cilkplus_an_loop_parts): Likewise.
878 (cilkplus_extract_an_triplets): New prototype.
879 (fix_sec_implicit_args): Likewise.
880 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
881 (fix_sec_implicit_args): Likewise.
604b2bfc 882
07a6825b
BI
8832013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
884
885 * array-notation-common.c (find_inv_trees): Removed an unwanted
886 typecasting.
887 * c-common.h (struct inv_list::additional_tcodes): Changed type from
888 enum rid to enum tree_code.
889
08346abd
JH
8902013-06-11 Jan Hubicka <jh@suse.cz>
891
892 * c-common.c (handle_alias_ifunc_attribute): Do not set
893 DECL_EXTERNAL for weakref variables.
894 * c-pragma.c (handle_pragma_weak): Make sure aliases
895 are not declared as external.
896
d60f1706
BI
8972013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
898
899 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
900 function from c/c-array-notation.c.
901 (is_cilkplus_reduce_builtin): Likewise.
902 (find_rank): Likewise.
903 (extract_array_notation_exprs): Likewise.
904 (replace_array_notations): Likewise.
905 (find_inv_trees): Likewise.
906 (replace_inv_trees): Likewise.
907 (contains_array_notation_expr): Likewise.
908 (find_correct_array_notation_type): Likewise.
909 * c-common.h (struct inv_list): Moved this struct from the file
910 c/c-array-notation.c and added a new field called additional tcodes.
911 (length_mismatch_in_expr_p): New prototype.
912 (is_cilkplus_reduce_builtin): Likewise.
913 (find_rank): Likewise.
914 (extract_array_notation_exprs): Likewise.
915 (replace_array_notation): Likewise.
916 (find_inv_trees): Likewise.
917 (replace_inv_trees): Likewise.
918 (find_correct_array_notation_type): Likewise.
dfeadaa0 919
36536d79
BI
9202013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
921
922 * c-common.c (c_define_builtins): When cilkplus is enabled, the
923 function array_notation_init_builtins is called.
924 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
925 * c-common.def (ARRAY_NOTATION_REF): New tree.
926 * c-common.h (build_array_notation_expr): New function declaration.
927 (build_array_notation_ref): Likewise.
928 (extract_sec_implicit_index_arg): New extern declaration.
929 (is_sec_implicit_index_fn): Likewise.
930 (ARRAY_NOTATION_CHECK): New define.
931 (ARRAY_NOTATION_ARRAY): Likewise.
932 (ARRAY_NOTATION_START): Likewise.
933 (ARRAY_NOTATION_LENGTH): Likewise.
934 (ARRAY_NOTATION_STRIDE): Likewise.
935 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
936 ARRAY_NOTATION_REF.
937 (pp_c_expression): Likewise.
938 * c.opt (flag_enable_cilkplus): New flag.
939 * array-notation-common.c: New file.
940
f7716d57
JJ
9412013-05-14 Jakub Jelinek <jakub@redhat.com>
942
943 PR c++/57274
944 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
945
a5e0cd1d
MG
9462013-05-10 Marc Glisse <marc.glisse@inria.fr>
947
948 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
949 vectors.
950
f6bc1c4a
HS
9512013-05-07 Han Shen <shenhan@google.com>
952
953 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
954
3f12f6e9
SKS
9552013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
956
957 * c-common.c (check_user_alignment): Emit error for negative values.
958
61949153
PC
9592013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
960
961 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
962
e93e18e9
PC
9632013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
964
965 * c-cppbuiltin.c (c_cpp_builtins): Do not define
966 __GXX_EXPERIMENTAL_CXX1Y__.
967
44d90fe1
PC
9682013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
969 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
970
971 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
972 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
973 to simply use OPT_Wpointer_arith.
974 (c_sizeof_or_alignof_type): Likewise.
975
13f39b2e
PC
9762013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
977
978 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
979
4b84d650
JJ
9802013-04-12 Jakub Jelinek <jakub@redhat.com>
981
982 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
983 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
984 specifiers.
985
fb037b5d
SB
9862013-04-07 Steven Bosscher <steven@gcc.gnu.org>
987
988 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
989
4e856798
PC
9902013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
991
992 * c-common.c (pointer_int_sum): Remove dead code.
993
4b1baac8
RS
9942013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
995
996 PR middle-end/56524
997 * c-common.c (handle_optimize_attribute): Don't call
998 save_optabs_if_changed.
999
0b50e654
JJ
10002013-03-05 Jakub Jelinek <jakub@redhat.com>
1001
1002 PR middle-end/56461
1003 * c-pch.c (pch_init): Free target_validity at the end.
1004
48c41403
JJ
10052013-03-04 Jakub Jelinek <jakub@redhat.com>
1006
1007 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1008
e664c61c
KS
10092013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1010 Jakub Jelinek <jakub@redhat.com>
1011
1012 PR sanitizer/56454
1013 * c-common.c (handle_no_sanitize_address_attribute): New function.
1014 (c_common_attribute_table): Add no_sanitize_address attribute.
1015 (handle_no_address_safety_analysis_attribute): Add
1016 no_sanitize_address attribute, not no_address_safety_analysis
1017 attribute.
1018
a475fd3d 10192013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1020
1021 PR target/52555
1022 * c-common.c (handle_optimize_attribute): Call
1023 save_optabs_if_changed.
1024
f6007d99
JJ
10252013-02-18 Jakub Jelinek <jakub@redhat.com>
1026 Steven Bosscher <steven@gcc.gnu.org>
1027
1028 PR pch/54117
1029 * c-opts.c (c_common_post_options): If debug info is enabled
1030 and non-dwarf*, refuse to load PCH files and when writing PCH
1031 file warn.
1032
cf35e2b1
JJ
10332013-02-05 Jakub Jelinek <jakub@redhat.com>
1034
1035 PR middle-end/56167
1036 * c-common.c (handle_error_attribute): Fix condition.
1037
32887460
JJ
10382013-01-30 Jakub Jelinek <jakub@redhat.com>
1039
1040 PR c++/55742
1041 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1042
5af057d8
JM
10432013-01-18 Jason Merrill <jason@redhat.com>
1044
1045 PR target/54908
1046 * c.opt (-fextern-tls-init): New.
1047 * c-opts.c (c_common_post_options): Handle it.
1048
cc83c823
JJ
10492013-01-09 Jakub Jelinek <jakub@redhat.com>
1050
1051 PR c/48418
1052 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1053 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1054 and is either negative or bigger or equal to type precision
1055 of the first operand.
1056
a859517f
MP
10572012-12-03 Marek Polacek <polacek@redhat.com>
1058
1059 PR c/55570
1060 * c-common.c (check_user_alignment): Swap order of tests,
1061 check TREE_CODE first.
1062
2d7aa578
ESR
10632012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1064
1065 PR c++/52654
1066 * c-common.h (overflow_type): New enum.
1067 (build_userdef_literal): Add overflow_type argument.
1068 (tree_userdef_literal): Add overflow_type.
1069 (USERDEF_LITERAL_OVERFLOW): New access macro.
1070 * c-common.c (build_userdef_literal): Add overflow_type
1071 argument.
1072 * c-lex.c (c_lex_with_flags): Add overflow_type to
1073 build_userdef_literal calls.
1074 (interpret_integer, interpret_float): Add overflow_type argument.
1075
cc3c4f62
RB
10762012-11-28 Richard Biener <rguenther@suse.de>
1077
1078 PR c/35634
1079 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1080 here and use a type with proper overflow behavior for types that would
1081 need to be promoted for the arithmetic.
1082
77bc5132
JJ
10832012-11-23 Jakub Jelinek <jakub@redhat.com>
1084
1085 PR sanitizer/55435
1086 * c-common.c (handle_no_address_safety_analysis_attribute): New
1087 function.
1088 (c_common_attribute_table): Add no_address_safety_analysis.
1089
5dc99c46
SB
10902012-11-16 Simon Baldwin <simonb@google.com>
1091
1092 * c.opt: Add f[no-]canonical-system-headers.
1093 * c-opts.c (c_common_handle_option): Handle
1094 OPT_fcanonical_system_headers.
1095
a4a0016d
ESR
10962012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1097
1098 PR c++/54413
1099 * c-opts.c (c_common_handle_option): Set new flags.
1100 * c.opt: Describe new flags.
1101
7dbb85a7
JM
11022012-11-09 Jason Merrill <jason@redhat.com>
1103
1104 * c.opt (Wabi-tag): New.
1105
ad7bac31
AK
11062012-11-09 Andi Kleen <ak@linux.intel.com>
1107
1108 PR 55139
1109 * c-common.c (get_atomic_generic_size): Mask with
1110 MEMMODEL_MASK
1111
7332899a
MLI
11122012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1113
1114 PR c/53063
1115 * c.opt (Wformat): Make it Alias Wformat=1.
1116 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1117 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1118 LangEnabledBy.
1119 (Wformat=): RejectNegative. Use LangEnabledBy.
1120 (Wnonnull): Use LangEnabledBy.
1121 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1122 * c-format.c (set_Wformat): Delete.
1123 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1124 (maybe_read_dollar_number): Likewise.
1125 (avoid_dollar_number): Likewise.
1126 (finish_dollar_format_checking): Likewise.
1127 (check_format_info): Likewise.
1128 (check_format_info_main): Likewise.
1129 (check_format_types): Likewise.
1130 (format_type_warning): Likewise.
1131 * c-common.c (int): Likewise.
1132 (check_function_sentinel): Likewise.
1133 * c-common.h (warn_format,set_Wformat): Do not declare here.
1134
34a180a6
MLI
11352012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1136
1137 PR c/53063
1138 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1139 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1140 Use LangEnabledBy.
1141 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1142 common.opt.
1143 (Wvariadic-macros): Init(1).
1144 * c-opts.c (c_common_handle_option): Do not handle them
1145 explicitly.
1146 (c_common_post_options): Likewise.
1147 (sanitize_cpp_opts): warn_unused_macros is now
1148 cpp_warn_unused_macros.
1149 (push_command_line_include): Likewise.
1150 * c-common.c (warn_unknown_pragmas): Do not define.
1151 * c-common.h (warn_unknown_pragmas): Do not declare.
1152
3f46d6a5
MLI
11532012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1154
1155 PR c/51294
1156 * c-common.c (conversion_warning): Handle conditional expressions.
1157
880661a4
JW
11582012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1159
1160 PR c++/54930
1161 * c.opt (Wreturn_local_addr): Define new option.
1162
4514a96b
JM
11632012-10-25 Jason Merrill <jason@redhat.com>
1164
f14edc1a
JM
1165 * c.opt (Wvirtual-move-assign): New.
1166
4514a96b
JM
1167 * c.opt (Winherited-variadic-ctor): New.
1168
93100c6b
MG
11692012-10-25 Marc Glisse <marc.glisse@inria.fr>
1170
1171 PR c++/54427
1172 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1173
1efcb8c6
JM
11742012-10-23 Joseph Myers <joseph@codesourcery.com>
1175
1176 * c-common.h (pch_cpp_save_state): Declare.
1177 * c-target.def (c_preinclude): New hook.
1178 * c-opts.c (done_preinclude): New.
1179 (push_command_line_include): Handle default preincluded header.
1180 (cb_file_change): Call pch_cpp_save_state when calling
1181 push_command_line_include.
1182 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1183 (pch_cpp_save_state): New.
1184 (pch_init): Call pch_cpp_save_state conditionally, instead of
1185 calling cpp_save_state.
1186
4a0ae68e
MLI
11872012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1188
1189 PR c/53063
1190 PR c/40989
1191 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1192 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1193 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1194 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1195 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1196 * c-opts.c (c_common_handle_option): Remove explicit handling from
1197 here.
1198 (c_common_post_options): Likewise.
1199
67e4210b
EB
12002012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1201
1202 * c-ada-spec.c (LOCATION_COL): Delete.
1203 (compare_location): New function.
1204 (compare_node): Use it.
1205 (compare_comment): Likewise.
1206
65d4f2cd
MLI
12072012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1208
1209 PR c/53063
1210 PR c/40989
1211 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1212 * c-opts.c (c_common_handle_option): Do not set them here. Add
1213 comment.
1214 (c_common_post_options): Likewise.
1215
909881cb
EB
12162012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1217
1218 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1219 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1220 Remove POINTER_TYPE handling, add large unsigned handling and use
1221 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1222
3a785c97
JJ
12232012-10-12 Jakub Jelinek <jakub@redhat.com>
1224
1225 PR c/54381
1226 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1227 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1228 locs and array of 3 trees instead of just single loc and single
1229 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1230 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1231 For *cmp* builtins that take two sources strings report warnings
1232 about first and second source, not about destination and source.
1233
5e54f81d
MG
12342012-10-12 Marc Glisse <marc.glisse@inria.fr>
1235
1236 PR c++/53055
1237 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1238
f5b02f1e
EB
12392012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1240
1241 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1242 declaring something coming from another file.
1243
b46dbc6c
AC
12442012-10-10 Arnaud Charlet <charlet@adacore.com>
1245
f5b02f1e 1246 PR ada/54845
b46dbc6c
AC
1247 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1248
5d9de0d0
PC
12492012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1250
1251 PR c++/54194
1252 * c-common.c (warn_about_parentheses): Add location_t parameter;
1253 use EXPR_LOC_OR_LOC.
1254 * c-common.h: Update declaration.
1255
a212e43f
MG
12562012-10-09 Marc Glisse <marc.glisse@inria.fr>
1257
1258 PR c++/54427
1259 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1260 more operations. Make error messages optional.
1261 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1262 (scalar_to_vector): Declare.
1263
b1db7f91
JM
12642012-10-08 Jason Merrill <jason@redhat.com>
1265
1266 * c-common.c (c_common_reswords): Add thread_local.
1267
e28d52cf
DS
12682012-10-08 Dodji Seketeli <dodji@redhat.com>
1269
1270 PR c++/53528 C++11 attribute support
1271 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1272 new functions.
1273 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1274 static function.
1275 (handle_aligned_attribute): In choose strictest alignment
1276 among many. Use new check_cxx_fundamental_alignment_constraints.
1277 (handle_transparent_union_attribute): In c++11 attribute syntax,
1278 don't look through typedefs.
1279
3b78de56
AC
12802012-10-04 Arnaud Charlet <charlet@adacore.com>
1281
1282 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1283 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1284 out of dumpfile.h.
1285
6040bb5f
DC
12862012-09-25 Dehao Chen <dehao@google.com>
1287
1288 PR middle-end/54645
3b78de56 1289 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1290 map when read in the pch.
1291
0b07a57e
AC
12922012-09-18 Arnaud Charlet <charlet@adacore.com>
1293
1294 * c-ada-spec.c: Style fixes.
1295
da5182be
TQ
12962012-09-18 Thomas Quinot <quinot@adacore.com>
1297
1298 * c.opt (-fada-spec-parent): Define new command line switch.
1299 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1300 is specified, generate binding spec as a child of the specified unit.
1301
0ccb505d
PC
13022012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1303 Manuel López-Ibáñez <manu@gcc.gnu.org>
1304
1305 PR c++/53210
1306 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1307
c583af79
AC
13082012-08-23 Arnaud Charlet <charlet@adacore.com>
1309
1310 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1311 for pointers, and add missing Convention C pragma.
1312 (print_ada_struct_decl): Add missing aliased keyword.
1313 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1314
1a4049e7
JJ
13152012-08-17 Jakub Jelinek <jakub@redhat.com>
1316
1317 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1318 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1319 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1320 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1321 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1322
70b5e7dc
RG
13232012-08-10 Richard Guenther <rguenther@suse.de>
1324
1325 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1326
f8923f7e
SB
13272012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1328
1329 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1330 instead of separate pp_newline and pp_flush.
1331 (print_c_tree): Likewise.
1332
e45abe1f
RH
13332012-07-26 Richard Henderson <rth@redhat.com>
1334
1335 * c-common.c (handle_hot_attribute): Allow labels.
1336 (handle_cold_attribute): Likewise.
1337
332f1d24
JJ
13382012-07-20 Jakub Jelinek <jakub@redhat.com>
1339
1340 PR c++/28656
1341 * c-common.c (check_function_nonnull): Handle multiple nonnull
1342 attributes properly.
1343
7ee2468b
SB
13442012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1345
1346 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1347 * c-ada-spec.c: Likewise.
1348 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1349
ee7b28eb
SB
13502012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1351
1352 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1353 Remove code conditional on it.
1354
6bdf3519
SB
13552012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1356
1357 * c-gimplify.c: Do not include basic-block.h.
1358 * c-common.c: Do not include linfuncs.h.
1359
532aafad
SB
13602012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1361
1362 * c-common.h: Include tree.h.
1363
8d0d1915
JM
13642012-07-02 Jason Merrill <jason@redhat.com>
1365
1366 PR c++/53524
1367 * c-common.c (get_priority): Call default_conversion.
1368
fbc873ad
UB
13692012-07-01 Uros Bizjak <ubizjak@gmail.com>
1370
1371 * c-pch.c (c_common_write_pch): Remove unused variables.
1372
d4a10d0a
SB
13732012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1374
1375 * cppspec.c: Moved from gcc/ to here.
1376
6f3a2e23
KT
13772012-06-27 Kai Tietz <ktietz@redhat.com>
1378
1379 PR preprocessor/37215
1380 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1381
8ca92d04
SB
13822012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1383
1384 * c-common.h (c_common_print_pch_checksum): Remove.
1385 * c-pch.c: Do not include output.h.
1386 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1387 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1388 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1389 (struct c_pch_header): Remove.
1390 (get_ident): Update gpch version.
1391 (pch_init): Do not print executable_checksum to asm_out_file.
1392 Do not fail if there is no asm_out_file to read back from. Set
1393 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1394 (c_common_write_pch): Verify that nothing was written to asm_out_file
1395 since pch_init was called. Do not write a c_pch_header, and do not
1396 copy from asm_out_file to the PCH.
1397 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1398 the content of asm_out_file from the PCH.
1399 (c_common_print_pch_checksum): Remove.
1400 * c-opts.c (c_common_init): Print out executable_checksum directly.
1401
70f42967
SB
14022012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1403
1404 * c-target.def (objc_declare_unresolved_class_reference,
1405 objc_declare_class_definition): Add new hooks.
1406
a8781821
SB
14072012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1408
1409 * c-lex.c: Do not include output.h.
1410 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1411 Remove uses of ASM_OUTPUT_IDENT.
1412
9e1a8dd1
RR
14132012-06-15 Marc Glisse <marc.glisse@inria.fr>
1414
1415 PR c++/51033
1416 * c-common.h (c_build_vec_perm_expr): Move decl here.
1417 * c-common.c (c_build_vec_perm_expr): Move definition
1418 here.
1419
6f07a821
SB
14202012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1421
1422 * c.opt (fconserve-space): Turn into a no-op.
1423
9faeb493 14242012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1425
1426 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1427 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1428 both the start and end of the function.
1429
a4b7d13c
SB
14302012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1431
1432 * c-common.c: Do not include output.h.
1433 * c-pragma.c: Likewise.
1434
c265f413
SA
14352012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1436
1437 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1438 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1439 (lang_decl_name): Handle namespace decls.
1440
be7a421e
SB
14412012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1442
1443 * c-ada-spec.c: Do not include output.h.
1444 * c-semantics.c: Likewise.
1445
65de6659
JM
14462012-05-29 Joseph Myers <joseph@codesourcery.com>
1447
1448 * c-common.c: Fix typo.
1449
ca5f4331
MM
14502012-05-29 Michael Matz <matz@suse.de>
1451
1452 * c-common.h (c_expand_decl): Remove prototype.
1453
4f7f7aca
MLI
14542012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1455
1456 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1457 * c-opts.c (c_common_handle_option): Remove code handling
1458 warn_missing_braces.
1459
4a792f9b
PC
14602012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1461
1462 PR c++/25137
1463 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1464 -Wmissing_braces.
1465
650dc14a
DS
14662012-05-22 Dodji Seketeli <dodji@redhat.com>
1467
1468 PR c++/53322
1469 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1470
9b095bf1
MLI
14712012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1472
1473 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1474 * c-opts.c (c_common_handle_option): Do not handle explicitly
1475 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1476
0b2c4be5
DS
14772012-05-16 Dodji Seketeli <dodji@redhat.com>
1478
1479 PR preprocessor/7263
1480 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1481 to cpp_classify_number. For diagnostics, use the precise location
1482 instead of the global input_location.
1483
a1bde5af
PC
14842012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1485
d02924ef 1486 PR c++/11856
a1bde5af
PC
1487 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1488
d1ede5f4
BS
14892012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1490
a1bde5af 1491 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1492
f2bc201f
MLI
14932012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1494
1495 PR 53063
1496 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1497 Wreorder): Use LangEnabledBy.
1498 * c-opts.c (c_common_handle_option): Do not enable them
1499 explicitly. Call lang-specific generated functions.
1500 (c_common_post_options): Do not set them here.
1501
95744782
MLI
15022012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1503
1504 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1505 Wmissing-field-initializers,Wmissing-parameter-type,
1506 Wold-style-declaration,Woverride-init): Use EnabledBy.
1507 * c-opts.c (c_common_post_options): Do not set here explicitly.
1508
7d5a5747
MLI
15092012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1510
1511 PR 53063
1512 * c-opts.c (c_common_handle_option): Use handle_generated_option
1513 to enable sub-options.
1514
5a3c9cf2
PC
15152012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1516
1517 PR c++/53158
1518 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1519
3ac8781c
RG
15202012-05-10 Richard Guenther <rguenther@suse.de>
1521
1522 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1523 adjust commentary about TYPE_IS_SIZETYPE types.
1524
1e537948
MLI
15252012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1526
1527 PR c++/53261
1528 * c-common.c (warn_logical_operator): Check that argument of
1529 integer_zerop is not NULL.
1530
f2c4a785
MLI
15312012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1532
1533 PR c/43772
1534 * c-common.c (warn_logical_operator): Do not warn if either side
1535 is already true or false.
1536
50f305ca
MLI
15372012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1538
1539 PR c/51712
1540 * c-common.c (expr_original_type): New.
1541 (shorten_compare): Do not warn for enumeration types.
1542
0c3641b0
MLI
15432012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1544
1545 * c.opt (fpermissive): Add Var(flag_permissive).
1546
7edaa4d2
MG
15472012-04-30 Marc Glisse <marc.glisse@inria.fr>
1548
1549 PR c++/51033
1550 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1551 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1552
b9c8da34
DS
15532012-04-30 Dodji Seketeli <dodji@redhat.com>
1554
1555 Add -Wvarargs option
1556 * c.opt (Wvarargs): Define new option.
1557
e6c69da0
MLI
15582012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1559
1560 * c-common.c (check_function_arguments): Replace
1561 Wmissing-format-attribute with Wsuggest-attribute=format.
1562
90137d8f
MLI
15632012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1564
1565 * c.opt (Wsuggest-attribute=format): New. Alias of
1566 Wmissing-format-attribute.
1567 * c-format.c (decode_format_type): Replace
1568 Wmissing-format-attribute with Wsuggest-attribute=format.
1569 (check_function_format): Likewise.
1570
9faeb493 15712012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1572
1573 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1574 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1575 * c.opt: Add Wliteral-suffix.
1576
c1771a20
MLI
15772012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1578
1579 PR c/44774
1580 * c.opt (Wpedantic): New.
1581 (pedantic): Alias Wpedantic.
1582 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1583 (c_common_post_options): Likewise.
1584 (sanitize_cpp_opts): Likewise.
1585 * c-lex.c (interpret_float): Likewise.
1586 * c-format.c (check_format_types): Likewise.
1587 * c-common.c (pointer_int_sum): Likewise.
1588 (c_sizeof_or_alignof_type): Likewise.
1589 (c_add_case_label): Likewise.
1590 (c_do_switch_warnings): Likewise.
1591 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1592
04b391c1
JM
15932012-04-15 Jason Merrill <jason@redhat.com>
1594
1595 PR c++/52818
1596 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1597 (C_STD_NAME): Distinguish between C++98 and C++11.
1598
ac868f29
EB
15992012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1600
1601 PR target/52624
1602 * c-common.h (uint16_type_node): Rename into...
1603 (c_uint16_type_node): ...this.
1604 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1605 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1606
fd4116f4
MLI
16072012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1608
1609 * c-common.c (warn_if_unused_value): Move definition to here.
1610 * c-common.h (warn_if_unused_value): Move declaration to here.
1611
573ac65e
WB
16122012-03-23 William Bader <williambader@hotmail.com>
1613
1614 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1615
552b8185
JM
16162012-03-20 Jason Merrill <jason@redhat.com>
1617
1618 * c-common.h (enum cxx_dialect): Add cxx1y.
1619 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1620 test.
1621 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1622 * c-opts.c (c_common_post_options): Likewise.
1623 (set_std_cxx1y): New.
1624 (c_common_handle_option): Call it.
1625 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1626
04398fa8
PC
16272012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1628
1629 PR c++/14710
1630 * c.opt ([Wuseless-cast]): Add.
1631
d2a12ae7
RG
16322012-03-16 Richard Guenther <rguenther@suse.de>
1633
1634 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1635
a12bf402
MLI
16362012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1637
1638 PR c++/44783
1639 * c.opt (ftemplate-backtrace-limit) Add.
1640
5c30094f
RO
16412012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1642
1643 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1644 handling.
1645 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1646 (init_pragma): Don't register extern_prefix.
1647
21fa2faf
RG
16482012-03-12 Richard Guenther <rguenther@suse.de>
1649
1650 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1651 (builtin_type_for_size): Likewise.
1652
e3793c6f
JJ
16532012-02-13 Jakub Jelinek <jakub@redhat.com>
1654
1655 PR c++/52215
1656 * c-common.c (sync_resolve_params): Don't decide whether to convert
1657 or not based on TYPE_SIZE comparison, convert whenever arg_type
1658 is unsigned INTEGER_TYPE.
1659
93286335
PC
16602012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1661
1662 PR c/52118
1663 * c.opt ([Wunused-local-typedefs]): Fix description.
1664
7a421706
MS
16652012-01-24 Mike Stump <mikestump@comcast.net>
1666
1667 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1668 exactly.
1669
ba9b1f11
RG
16702012-01-18 Richard Guenther <rguenther@suse.de>
1671
1672 * c-opts.c (c_common_post_options): Reset LTO flags if
1673 we are about to generate a PCH.
1674
465406be
PC
16752012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1676
1677 PR c++/51777
1678 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1679 use pp_unsigned_wide_integer.
1680
aee15221
RG
16812012-01-10 Richard Guenther <rguenther@suse.de>
1682
1683 PR middle-end/51806
1684 * c-opts.c (c_common_handle_option): Move -Werror handling
1685 to language independent code.
1686
5720c0dc
RG
16872012-01-05 Richard Guenther <rguenther@suse.de>
1688
1689 PR middle-end/51764
1690 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1691 from common.opt.
1692
73ac190a
PC
16932011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1694
1695 PR c++/51316
1696 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1697 of array types with an unknown bound.
1698
48b0b196
JM
16992011-12-20 Joseph Myers <joseph@codesourcery.com>
1700
1701 * c-common.c (flag_isoc99): Update comment to refer to C11.
1702 (flag_isoc1x): Change to flag_isoc11.
1703 * c-common.h (flag_isoc99): Update comment to refer to C11.
1704 (flag_isoc1x): Change to flag_isoc11.
1705 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1706 C11.
1707 * c-opts.c (set_std_c1x): Change to set_std_c11.
1708 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1709 Call set_std_c11.
1710 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1711 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1712 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1713 standard.
1714 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1715 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1716 (std=gnu1x): Make alias of std=gnu11.
1717
d58d6eb5
JM
17182011-12-19 Jason Merrill <jason@redhat.com>
1719
1720 PR c++/51228
1721 * c-common.c (handle_transparent_union_attribute): Check the first
1722 field if the type is complete.
1723
b3908fcc
JW
17242011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1725
1726 PR libstdc++/51365
1727 * c-common.c (RID_IS_FINAL): Add.
1728 * c-common.h (RID_IS_FINAL): Add.
1729
fea3ca91
IS
17302011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1731
1732 * c.opt (fgnu-runtime): Provide full description.
1733 (fnext-runtime): Likewise.
1734 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1735
62bad7cd
AM
17362011-11-28 Andrew MacLeod <amacleod@redhat.com>
1737
1738 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1739 predefines in one place. Add LOCK_FREE predefines.
1740 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1741 new func.
1742
c466c4ff
AM
17432011-11-24 Andrew MacLeod <amacleod@redhat.com>
1744
1745 PR c/51256
9faeb493 1746 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1747 conditions
9faeb493
UB
1748 (resolve_overloaded_atomic_exchange,
1749 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1750 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1751 error_mark_node for error conditions.
9faeb493 1752
a5952633
RG
17532011-11-08 Richard Guenther <rguenther@suse.de>
1754
1755 PR middle-end/51010
1756 c-family/
1757
0a35513e
AH
17582011-11-07 Richard Henderson <rth@redhat.com>
1759 Aldy Hernandez <aldyh@redhat.com>
1760 Torvald Riegel <triegel@redhat.com>
1761
1762 Merged from transactional-memory.
1763
1764 * c-common.c (handle_tm_wrap_attribute,
1765 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1766 (struct c_common_reswords): Added __transaction* keywords.
1767 (struct c_common_attribute_table): Added transaction* and tm_regparm
1768 attributes.
1769 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1770 masks.
1771 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1772 find_tm_attribute): Declare.
1773
6d87092d
JM
17742011-11-07 Jason Merrill <jason@redhat.com>
1775
1776 PR c++/35688
1777 * c-common.c, c-common.h: Revert yesterday's changes.
1778
8e7860a1
JM
17792011-11-06 Jason Merrill <jason@redhat.com>
1780
1781 PR c++/35688
1782 * c-common.c (decl_has_visibility_attr): Split out from...
1783 (c_determine_visibility): ...here.
1784 * c-common.h: Declare it.
1785
d19fa6b5
JM
17862011-11-06 Joseph Myers <joseph@codesourcery.com>
1787
1788 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1789 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1790 type.
1791 (check_user_alignment): New. Split out of
1792 handle_aligned_attribute. Disallow integer constants with
1793 noninteger types. Conditionally allow zero.
1794 (handle_aligned_attribute): Use check_user_alignment.
1795 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1796
86951993
AM
17972011-11-06 Andrew MacLeod <amacleod@redhat.com>
1798 Richard Henderson <rth@redhat.com>
1799
1800 Merged from cxx-mem-model.
1801
1802 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1803 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1804 parameters that are the same type size.
1805 (get_atomic_generic_size): New. Find size of generic
1806 atomic function parameters and do typechecking.
1807 (add_atomic_size_parameter): New. Insert size into parameter list.
1808 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1809 either __atomic_exchange_n or external library call.
9faeb493 1810 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1811 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1812 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1813 __atomic_load_n or an external library call.
1814 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1815 __atomic_store_n or an external library call.
1816 (resolve_overloaded_builtin): Handle new __atomic builtins.
1817
cf9e9959
EB
18182011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1819
1820 PR c++/50608
1821 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1822 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1823 <INDIRECT_REF>: Return the argument.
1824 <ARRAY_REF>: Remove special code for negative offset.
1825 Call fold_build_pointer_plus instead of size_binop.
1826 (fold_offsetof): Remove STOP_REF argument and adjust.
1827 * c-common.h (fold_offsetof_1): Declare.
1828 (fold_offsetof): Remove STOP_REF argument.
1829
25339f10
JM
18302011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1831
1832 PR c++/50810
1833 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1834 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1835 Wnarrowing for C++0x and C++98.
1836 * c.opt ([Wnarrowing]): Update.
1837
89401152
PC
18382011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1839
1840 PR c++/44277
1841 * c.opt: Add Wzero-as-null-pointer-constant.
1842
97e3ad20
JM
18432011-10-31 Jason Merrill <jason@redhat.com>
1844
15694fdd
JM
1845 * c.opt (-fdeduce-init-list): Off by default.
1846
97e3ad20
JM
1847 PR c++/50920
1848 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1849 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1850 and -Wc++11-compat.
1851 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1852
fb9120e3
RAV
18532011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1854
1855 PR c++/30066
1856 * c.opt (fvisibility-inlines-hidden): Description change.
1857
3ce4f9e4
ESR
18582011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1859
1860 Implement C++11 user-defined literals.
1861 * c-common.c (build_userdef_literal): New.
1862 * c-common.def: New tree code.
1863 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1864 * c-lex.c (interpret_float): Add suffix parm.
1865 (c_lex_with_flags): Build literal tokens.
1866
5f53c243
PC
18672011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1868
1869 PR c++/50841
1870 Revert:
1871 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1872
1873 PR c++/50810
1874 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1875 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1876 Wnarrowing for C++0x and C++98.
1877 * c.opt ([Wnarrowing]): Update.
1878
263734e1
PC
18792011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1880
1881 PR c++/50810
1882 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1883 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1884 Wnarrowing for C++0x and C++98.
1885 * c.opt ([Wnarrowing]): Update.
1886
d2e312d7
PC
18872011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1888
1889 PR c++/45385
1890 * c-common.c (conversion_warning): Remove code looking for
1891 artificial operands.
1892
d17687f6
DS
18932011-10-18 Dodji Seketeli <dodji@redhat.com>
1894
1895 PR bootstrap/50760
1896 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1897 !NO_IMPLICIT_EXTERN_C.
d17687f6 1898
fc8396e9
PC
18992011-10-17 Michael Spertus <mike_spertus@symantec.com>
1900
1901 * c-common.c (c_common_reswords): Add __bases,
1902 __direct_bases.
1903 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1904
19052011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1906
1907 PR c++/50757
1908 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1909
847e697a
TT
19102011-10-15 Tom Tromey <tromey@redhat.com>
1911 Dodji Seketeli <dodji@redhat.com>
1912
1913 * c.opt (fdebug-cpp): New option.
1914 * c-opts.c (c_common_handle_option): Handle the option.
1915 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1916 output stream in parameter. Factorized from ...
1917 (maybe_print_line): ... this. Dump location debug information when
1918 -fdebug-cpp is in effect.
1919 (print_line_1): New static function. Takes an output stream in
1920 parameter. Factorized from ...
1921 (print_line): ... here. Dump location information when -fdebug-cpp
1922 is in effect.
1923 (scan_translation_unit): Dump location information when
1924 -fdebug-cpp is in effect.
1925
92582b75
TT
19262011-10-15 Tom Tromey <tromey@redhat.com>
1927 Dodji Seketeli <dodji@redhat.com>
1928
1929 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1930 without argument.
1931 * c-opts.c (c_common_handle_option)<case
1932 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1933 cases. Handle -ftrack-macro-expansion with and without argument.
1934
46427374
TT
19352011-10-15 Tom Tromey <tromey@redhat.com>
1936 Dodji Seketeli <dodji@redhat.com>
1937
1938 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1939 (print_line, cb_define, do_line_change): Adjust to avoid touching
1940 the internals of struct line_map. Use the public API instead.
1941 * c-pch.c (c_common_read_pch): Likewise.
1942 * c-lex.c (fe_file_change): Likewise.
1943
fc8396e9
PC
19442011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1945
1946 PR c++/17212
1947 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1948
19492011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1950
1951 PR c++/33067
1952 * c-pretty-print.c (pp_c_floating_constant): Output
1953 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1954
e79983f4
MM
19552011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1956
1957 * c-common.c (def_builtin_1): Delete old interface with two
1958 parallel arrays to hold standard builtin declarations, and replace
1959 it with a function based interface that can support creating
1960 builtins on the fly in the future. Change all uses, and poison
1961 the old names. Make sure 0 is not a legitimate builtin index.
1962 * c-omp.c (c_finish_omp_barrier): Ditto.
1963 (c_finish_omp_taskwait): Ditto.
1964 (c_finish_omp_flush): Ditto.
1965
6637388f
TG
19662011-10-11 Tristan Gingold <gingold@adacore.com>
1967
1968 * c.opt: (fallow-parameterless-variadic-functions): New.
1969
3797cb21
DS
19702011-09-08 Dodji Seketeli <dodji@redhat.com>
1971
1972 PR c++/33255 - Support -Wunused-local-typedefs warning
1973 * c-common.h (struct c_language_function::local_typedefs): New
1974 field.
9faeb493
UB
1975 (record_locally_defined_typedef, maybe_record_typedef_use)
1976 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1977 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1978 (maybe_record_typedef_use)
1979 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1980 * c.opt: Declare new -Wunused-local-typedefs flag.
1981
693ddb1b
EB
19822011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1983
1984 PR middle-end/50266
1985 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1986 computations.
1987
830c740f
RG
19882011-09-05 Richard Guenther <rguenther@suse.de>
1989
1990 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1991 of integer_minus_one_node for empty array upper bounds.
1992
892a371f
DS
19932011-08-28 Dodji Seketeli <dodji@redhat.com>
1994
1995 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1996 it's the first time it's being called on this main TU.
1997
0e3fdb48
RB
19982011-08-24 Richard Guenther <rguenther@suse.de>
1999
2000 PR c/49396
2001 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2002
20032011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2004
2005 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2006 defined in cpp_init_builtins and c_cpp_builtins.
2007
d4a83c10
JM
20082011-08-19 Joseph Myers <joseph@codesourcery.com>
2009
2010 * c-common.c (c_common_reswords): Add __builtin_complex.
2011 * c-common.h (RID_BUILTIN_COMPLEX): New.
2012
bbceee64
JM
20132011-08-18 Joseph Myers <joseph@codesourcery.com>
2014
2015 * c-common.c (c_common_reswords): Add _Noreturn.
2016 (keyword_is_function_specifier): Handle RID_NORETURN.
2017 * c-common.h (RID_NORETURN): New.
2018
0e3a99ae
AS
20192011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2020
2021 * c-common.c (unsafe_conversion_p): New function. Check if it is
2022 unsafe to convert an expression to the type.
2023 (conversion_warning): Adjust, use unsafe_conversion_p.
2024 * c-common.h (unsafe_conversion_p): New function declaration.
2025
20906c66
JJ
20262011-08-02 Jakub Jelinek <jakub@redhat.com>
2027
2028 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2029 (c_finish_omp_taskyield): New prototype.
2030 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2031 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2032 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2033 or RHS1 have side-effects, evaluate those too in the right spot,
2034 if it is a decl and LHS is also a decl, error out if they
2035 aren't the same.
2036 (c_finish_omp_taskyield): New function.
2037 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2038 * c-pragma.c (omp_pragmas): Add taskyield.
2039 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2040 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2041 PRAGMA_OMP_CLAUSE_MERGEABLE.
2042
770e5a2e
DS
20432011-07-25 Dodji Seketeli <dodji@redhat.com>
2044
2045 * c-common.h (set_underlying_type): Remove parm name from
2046 declaration.
2047
1baae426
RG
20482011-07-25 Romain Geissler <romain.geissler@gmail.com>
2049
2050 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2051
fcb21722
JM
20522011-07-22 Jason Merrill <jason@redhat.com>
2053
76f86d00
JM
2054 PR c++/49793
2055 * c.opt (Wnarrowing): New.
2056
3a636414
JM
2057 PR c++/30112
2058 * c-common.h: Declare c_linkage_bindings.
2059 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2060
fcb21722
JM
2061 PR c++/49813
2062 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2063 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2064 as flag_isoc99 for 'restrict'.
2065 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2066
02614448
ILT
20672011-07-21 Ian Lance Taylor <iant@google.com>
2068
2069 PR middle-end/49705
2070 * c-common.c (c_disable_warnings): New static function.
2071 (c_enable_warnings): New static function.
2072 (c_fully_fold_internal): Change local unused_p to bool. Call
2073 c_disable_warnings and c_enable_warnings rather than change
2074 c_inhibit_evaluation_warnings.
2075
34429675
JM
20762011-07-20 Jason Merrill <jason@redhat.com>
2077
2078 PR c++/6709 (DR 743)
2079 PR c++/42603 (DR 950)
2080 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2081 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2082 (CPP_DECLTYPE): New.
2083 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2084
5d49b6a7
RG
20852011-07-19 Richard Guenther <rguenther@suse.de>
2086
2087 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2088 * c-omp.c (c_finish_omp_for): Likewise.
2089
e84a58ff
EB
20902011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2091
2092 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2093 body on the next line.
2094
329af3c7
JM
20952011-07-08 Jason Merrill <jason@redhat.com>
2096
4063e61b
JM
2097 PR c++/45437
2098 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2099
329af3c7
JM
2100 PR c++/49673
2101 * c-common.c (c_apply_type_quals_to_decl): Don't check
2102 TYPE_NEEDS_CONSTRUCTING.
2103
1a072294
RG
21042011-07-06 Richard Guenther <rguenther@suse.de>
2105
2106 * c-common.c (c_common_nodes_and_builtins):
2107 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2108
fce5dddd
RG
21092011-07-05 Richard Guenther <rguenther@suse.de>
2110
2111 * c-common.c (c_common_nodes_and_builtins): Build all common
2112 tree nodes first.
2113
45d439ac
JJ
21142011-06-27 Jakub Jelinek <jakub@redhat.com>
2115
56300785
JJ
2116 * c-common.h (c_tree_chain_next): New static inline function.
2117
45d439ac
JJ
2118 * c-common.c (check_builtin_function_arguments): Handle
2119 BUILT_IN_ASSUME_ALIGNED.
2120
e0a8ecf2
AM
21212011-06-21 Andrew MacLeod <amacleod@redhat.com>
2122
2123 * c-common.c: Add sync_ or SYNC__ to builtin names.
2124 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2125
21262011-06-20 Pierre Vittet <piervit@pvittet.com>
2127
2128 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2129 handler.
2130 (gen_pragma_handler): New union.
2131 (internal_pragma_handler): New type.
2132 (c_register_pragma_with_data)
2133 (c_register_pragma_with_expansion_and_data): New functions.
2134
2135 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2136 (c_register_pragma, c_register_pragma_with_expansion)
2137 (c_invoke_pragma_handler): Changed to work with
2138 internal_pragma_handler.
2139 (c_register_pragma_with_data)
2140 (c_register_pragma_with_expansion_and_data): New functions.
2141
677f3fa8
JM
21422011-06-14 Joseph Myers <joseph@codesourcery.com>
2143
2144 * c-common.c: Include common/common-target.h.
2145 (handle_section_attribute): Use
2146 targetm_common.have_named_sections.
2147 * c-cppbuiltin.c: Include common/common-target.h.
2148 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2149
d7fc8c14
RG
21502011-06-10 Richard Guenther <rguenther@suse.de>
2151
2152 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2153 to print a IDENTIFIER_NODE.
2154
10e48e39
RO
21552011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2156 Joseph Myers <joseph@codesourcery.com>
2157
2158 * c.opt (fbuilding-libgcc): New option.
2159 * c-cppbuiltin.c (c_cpp_builtins): Define
2160 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2161
6976ae51
JM
21622011-06-07 Jason Merrill <jason@redhat.com>
2163
3ff60975
JM
2164 * c-common.c (max_tinst_depth): Lower default to 900.
2165
6976ae51
JM
2166 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2167
009db074
RG
21682011-06-07 Richard Guenther <rguenther@suse.de>
2169
2170 * c-common.c (c_common_nodes_and_builtins): Do not set
2171 size_type_node or call set_sizetype.
2172
b4592b92
DS
21732011-06-07 Dodji Seketeli <dodji@redhat.com>
2174
2175 PR debug/49130
2176 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2177 type when using pointer comparison to compare types.
b4592b92 2178
014ab419
JW
21792011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2180
2181 * c.opt: Add -Wdelete-non-virtual-dtor.
2182 * c-opts.c (c_common_handle_option): Include it in -Wall.
2183
4f60111f
NF
21842011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2185
2186 PR bootstrap/49190
2187
2188 Revert:
2189 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2190
2191 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2192 not tree_common.
2193
4cc4f2f4
JJ
21942011-05-27 Jakub Jelinek <jakub@redhat.com>
2195
2196 PR c++/49165
2197 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2198 C++ don't call c_common_truthvalue_conversion on void type arms.
2199
38e01f9e
NF
22002011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2201
2202 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2203 (stmt_list_stack): Define.
2204 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2205 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2206
92e948a8
NF
22072011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2208
2209 * c-common.c (warning_candidate_p): Check for BLOCKs.
2210
a2fc3e63
NF
22112011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2212
2213 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2214 not tree_common.
2215
0957c029
JJ
22162011-05-25 Jakub Jelinek <jakub@redhat.com>
2217
2218 * c-common.c (def_fn_type): Remove extra va_end.
2219
828fb3ba
JM
22202011-05-23 Jason Merrill <jason@redhat.com>
2221
2222 PR c++/48106
2223 * c-common.c (c_common_get_narrower): New.
2224 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2225
dde05067
NF
22262011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2227
2228 * c-common.h (check_function_arguments): Tweak prototype of
2229 check_function_arguments.
2230 * c-common.c (check_function_arguments): Likewise. Adjust
2231 calls to check_function_nonnull, check_function_format, and
2232 check_function_sentinel.
2233 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2234 separate attributes and typelist arguments. Use
2235 FOREACH_FUNCTION_ARGS to iterate over argument types.
2236
3c0d13bf
PC
22372011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2238
2239 * c-common.c (c_common_reswords): Reorder.
2240 * c-common.h (rid): Likewise.
2241
8242dd04
NF
22422011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2243
2244 * c-common.c (def_fn_type): Don't call build_function_type, call
2245 build_function_type_array or build_varargs_function_type_array
2246 instead.
2247 (c_common_nodes_and_builtins): Likewise.
2248
3d528853
NF
22492011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2250
2251 * c-common.c (c_add_case_label): Omit the loc argument to
2252 build_case_label.
2253 * c-common.h (build_case_label): Remove.
2254 * c-semantics.c (build_case_label): Remove.
2255
a04a722b
JM
22562011-05-05 Joseph Myers <joseph@codesourcery.com>
2257
2258 * c-objc.h (objc_start_method_definition): Update prototype.
2259 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2260
e19a18d4
NF
22612011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2262
2263 * c-common.c (check_main_parameter_types): Reindent. Don't use
2264 TYPE_ARG_TYPES directly.
2265 (handle_nonnull_attribute): Likewise.
2266 (sync_resolve_params): Likewise.
2267 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2268 to check_format_string.
2269 (handle_format_attribute): Likewise.
2270 (check_format_string): Take a function type to examine instead of
2271 a type list. Use a function_arg_iterator to step through argument
2272 types.
2273
c62c040f
RG
22742011-05-04 Richard Guenther <rguenther@suse.de>
2275
2276 * c-common.c (fix_string_type): Use size_int for index type bounds.
2277 (start_fname_decls): Do not pass NULL to build_int_cst.
2278 (c_init_attributes): Likewise.
2279 * c-lex.c (c_lex_with_flags): Likewise.
2280
c12ff9d8
JM
22812011-04-27 Jason Merrill <jason@redhat.com>
2282
2283 * c-common.c (make_tree_vector_from_list): New.
2284 * c-common.h: Declare it.
2285
304dfbe3
RG
22862011-04-26 Richard Guenther <rguenther@suse.de>
2287
2288 PR preprocessor/48248
2289 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2290 for output size with -P.
2291
3c0d13bf
PC
22922011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2293
2294 * c-common.c (struct c_common_resword): Add __underlying_type.
2295 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2296
04695783
JM
22972011-04-20 Jim Meyering <meyering@redhat.com>
2298
2299 * c-format.c (init_dollar_format_checking): Remove useless
2300 if-before-free.
2301
0dc33c3c
NP
23022011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2303
2304 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2305 (objc_detect_field_duplicates): New.
0dc33c3c 2306 * stub-objc.c: Likewise.
3c0d13bf 2307
c59633d9
NP
23082011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2309
2310 * stub-objc.c (objc_declare_protocols): Renamed to
2311 objc_declare_protocol.
2312 * c-objc.h: Likewise.
3c0d13bf 2313
32dabdaf
NP
23142011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2315
2316 * stub-objc.c (objc_declare_class): Updated argument name.
2317
81f653d6
NF
23182011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2319
2320 * c-common.h (c_common_init_ts): Declare.
2321 * c-common.c (c_common_init_ts): Define.
2322
eb345401
NP
23232011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2324
2325 * c-objc.h (objc_build_message_expr): Updated prototype.
2326 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2327
a358e188
MJ
23282011-04-12 Martin Jambor <mjambor@suse.cz>
2329
2330 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2331 of cgraph_node.
2332
e6313a78
RG
23332011-04-11 Richard Guenther <rguenther@suse.de>
2334
2335 * c-common.c (complete_array_type): Build a range type of
2336 proper type.
2337
dcf0c47e
NF
23382011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2339
2340 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2341 (handle_type_generic_attribute): Likewise.
2342
1ee44b26
JM
23432011-04-07 Jason Merrill <jason@redhat.com>
2344
2345 PR c++/48450
2346 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2347 conversion from C++0x scoped enum.
2348
acce4e77
JM
23492011-04-06 Joseph Myers <joseph@codesourcery.com>
2350
2351 * c-target-def.h: New file.
2352 * c-target.def: New file.
2353 * c-target.h: New file.
2354 * c-common.c (targetcm): Don't define here.
2355 * c-common.h (default_handle_c_option): Declare.
2356 * c-format.c: Include c-target.h instead of target.h.
2357 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2358 include tm.h.
2359 (default_handle_c_option): Move from targhooks.c.
2360
e2eefb55
JJ
23612011-03-29 Jakub Jelinek <jakub@redhat.com>
2362
2363 PR preprocessor/48248
2364 * c-ppoutput.c (print): Add src_file field.
2365 (init_pp_output): Initialize it.
2366 (maybe_print_line): Don't optimize by adding up to 8 newlines
2367 if map->to_file and print.src_file are different file.
2368 (print_line): Update print.src_file.
2369
ba78087b
KT
23702011-03-25 Kai Tietz <ktietz@redhat.com>
2371
2372 * c-ada-spec.c (compare_comment): Use filename_cmp
2373 instead of strcmp for filename.
2374
0edf1bb2
JL
23752011-03-25 Jeff Law <law@redhat.com>
2376
2377 * c-family/c-common.c (def_fn_type): Add missing va_end.
2378
c7dc8804
JM
23792011-03-25 Jason Merrill <jason@redhat.com>
2380
2381 * c.opt: Add -std=c++03.
2382
d1d879b1
EB
23832011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2384
2385 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2386
62d784f7
KT
23872011-03-17 Kai Tietz
2388
2389 PR target/12171
5050afdf
KT
2390 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2391 Display allowed attributes for function pointer types.
2392 (pp_c_attributes_display): New function to display
2393 attributes having affects_type_identity flag set to true.
2394 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2395
62d784f7
KT
2396 * c-common.c (c_common_attribute_table):
2397 Add new element.
2398 (c_common_format_attribute_table): Likewise.
2399
82d37118
JM
24002011-03-18 Jason Merrill <jason@redhat.com>
2401
49a000c3
JM
2402 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2403 * c-common.h: Don't declare it here.
2404 * c-common.c: Or define it here.
2405 * c-opts.c (c_common_handle_option): Or set it here.
2406
82d37118
JM
2407 PR c++/35315
2408 * c-common.c (handle_transparent_union_attribute): Don't
2409 make a duplicate type in C++.
2410
17bc631c
JM
24112011-03-15 Jason Merrill <jason@redhat.com>
2412
2413 * c-common.c (max_constexpr_depth): New.
2414 * c-common.h: Declare it.
2415 * c-opts.c (c_common_handle_option): Set it.
2416 * c.opt (fconstexpr-depth): New option.
2417
1b9b91a6
JM
24182011-03-11 Jason Merrill <jason@redhat.com>
2419
f231b5ff
JM
2420 * c-common.c (attribute_takes_identifier_p): Add missing const.
2421
1b9b91a6
JM
2422 PR c++/46803
2423 * c-common.c (attribute_takes_identifier_p): Assume that an
2424 unknown attribute takes an identifier.
2425
a19e4d44
NF
24262011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2427
2428 PR c/47786
2429 * c-common.c (c_type_hash): Call list_length instead of iterating
2430 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2431
982d62f6
JJ
24322011-02-19 Jakub Jelinek <jakub@redhat.com>
2433
2434 PR c/47809
2435 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2436
0a256240
NP
24372011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2438
2439 * c.opt (fobjc-abi-version=) New.
2440 (fobjc-nilcheck): New.
2441
ba9e6dd5
NF
24422011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2443
2444 PR c++/46890
2445 * c-common.h (keyword_is_decl_specifier): Declare.
2446 * c-common.c (keyword_is_decl_specifier): Define.
2447 (keyword_is_function_specifier): New function.
2448
7273813a
JJ
24492011-01-26 Jakub Jelinek <jakub@redhat.com>
2450
2451 PR c/47473
2452 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2453 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2454 REAL_TYPE.
2455
908ef79b
AC
24562011-01-26 Arnaud Charlet <charlet@adacore.com>
2457
2458 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2459
237e9384
JJ
24602011-01-26 Jakub Jelinek <jakub@redhat.com>
2461
2462 PR pch/47430
2463 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2464 after init_c_lex if pch_file is set.
2465
47ea1edf
DK
24662011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2467
d4dba752 2468 PR c++/43601
47ea1edf
DK
2469 * c.opt (-fkeep-inline-dllexport): New switch.
2470
2aa9c6ae
RG
24712011-01-12 Richard Guenther <rguenther@suse.de>
2472
2473 PR middle-end/32511
2474 * c-common.c (handle_weak_attribute): Warn instead of error
2475 on declaring an inline function weak.
2476
7bd11157
TT
24772011-01-05 Tom Tromey <tromey@redhat.com>
2478
2479 * c-common.h (lvalue_error): Update.
2480 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2481 not error.
2482
0e66e494 24832010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2484
b4f588c4
NP
2485 PR objc/47075
2486 * c-objc.h (objc_finish_message_expr): Added argument to
2487 prototype.
2488
f4da8dce
NF
24892010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2490
2491 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2492 Use prototype_p.
2493
46270f14
NP
24942010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2495
2496 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2497 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2498
4816c593
NF
24992010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2500
2501 * c-common.h (readonly_error): Declare.
2502 * c-common.c (readonly_error): Define.
2503
7a6daeb0
NF
25042010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2505
2506 * c-common.h (invalid_indirection_error): Declare.
2507 * c-common.c (invalid_indirection_error): Define.
2508
892f6119
RG
25092010-12-03 Richard Guenther <rguenther@suse.de>
2510
2511 PR c/46745
2512 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2513 (pp_c_unary_expression): Likewise.
2514 (pp_c_expression): Likewise.
2515
6c39e757
NP
25162010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2517
2518 * c-common.h (objc_finish_function): New.
2519 (objc_non_volatilized_type): Removed.
2520 (objc_type_quals_match): Removed.
2521 * stub-objc.c (objc_finish_function): New.
2522 (objc_non_volatilized_type): Removed.
2523 (objc_type_quals_match): Removed.
9faeb493 2524
7c475d11
JM
25252010-11-30 Joseph Myers <joseph@codesourcery.com>
2526
2527 * c-common.h (parse_optimize_options): Declare.
2528 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2529 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2530
71f3e391
JM
25312010-11-29 Joseph Myers <joseph@codesourcery.com>
2532
2533 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2534 GET_ENVIRONMENT.
2535 * c-pch.c (O_BINARY): Don't define here.
2536 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2537
d5fabb58
JM
25382010-11-25 Joseph Myers <joseph@codesourcery.com>
2539
2540 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2541 targetm.except_unwind_info.
2542
299404a1
JM
25432010-11-23 Joseph Myers <joseph@codesourcery.com>
2544
2545 * c-opts.c (c_common_handle_option): Pass location to
2546 set_struct_debug_option.
2547
c98cd5bf
JM
25482010-11-23 Joseph Myers <joseph@codesourcery.com>
2549
2550 * c-common.c (visibility_options): Move from ../opts.c.
2551 * c-common.h (struct visibility_flags, visibility_options):
2552 Declare here.
2553 * c-opts.c (finish_options): Rename to c_finish_options.
2554 (c_common_init): Update call to finish_options.
2555
a9546771
NP
25562010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2557
2558 PR objc/34033
2559 * c-lex.c (lex_string): Check that each string in an Objective-C
2560 string concat sequence starts with either one or zero '@', and
2561 that there are no spurious '@' signs at the end.
2562
24a57808
JM
25632010-11-20 Joseph Myers <joseph@codesourcery.com>
2564
2565 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2566 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2567 HANDLE_PRAGMA_VISIBILITY.
2568 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2569 HANDLE_PRAGMA_VISIBILITY): Don't define.
2570 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2571
a9aa2c3a
NF
25722010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2573
2574 PR c++/16189
2575 PR c++/36888
2576 PR c++/45331
2577 * c-common.h (keyword_begins_type_specifier): Declare.
2578 (keyword_is_storage_class_specifier): Declare.
2579 (keyword_is_type_qualifier): Declare.
2580 * c-common.c (keyword_begins_type_specifier): New function.
2581 (keyword_is_storage_class_specifier): New function.
2582 (keyword_is_type_qualifier): Declare.
2583
5386338c
JM
25842010-11-19 Joseph Myers <joseph@codesourcery.com>
2585
2586 PR c/46547
2587 * c-common.c (in_late_binary_op): Define.
2588 (c_common_truthvalue_conversion): Check in_late_binary_op before
2589 calling c_save_expr.
2590 * c-common.h (in_late_binary_op): Declare.
2591
69ccdddb
JM
25922010-11-19 Joseph Myers <joseph@codesourcery.com>
2593
2594 * c-opts.c (c_common_handle_option): Update calls to
2595 set_struct_debug_option.
2596
6b192a09
NP
25972010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2598
2599 * c-common.h (objc_declare_protocols): Added additional argument.
2600 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2601
fb52b50a
NF
26022010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2603
2604 PR c/33193
2605 * c-common.h (build_real_imag_expr): Declare.
2606 * c-semantics.c (build_real_imag_expr): Define.
2607
b37421c6
JM
26082010-11-17 Joseph Myers <joseph@codesourcery.com>
2609
2610 * c-opts.c (c_common_parse_file): Take no arguments.
2611 * c-common.h (c_common_parse_file): Update prototype.
2612
07078664
JJ
26132010-11-16 Jakub Jelinek <jakub@redhat.com>
2614
2615 PR c++/46401
2616 * c-common.c (warning_candidate_p): Don't track non-const calls
2617 or STRING_CSTs.
2618
c6a13190
ILT
26192010-11-15 Ian Lance Taylor <iant@google.com>
2620
2621 * c-lex.c (init_c_lex): Set macro debug callbacks if
2622 flag_dump_go_spec is set.
2623
925e8657
NP
26242010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2625
2626 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2627 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2628
bb0a9581
NF
26292010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2630
2631 PR preprocessor/45038
2632 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2633 dialects.
2634
c5fa0890
JM
26352010-11-12 Joseph Myers <joseph@codesourcery.com>
2636
2637 * c-common.h (c_family_lang_mask): Declare.
2638 * c-opts.c (c_family_lang_mask): Make extern.
2639 * c-pragma.c (handle_pragma_diagnostic): Use
2640 control_warning_option.
2641
a4d8c676
JM
26422010-11-12 Joseph Myers <joseph@codesourcery.com>
2643
2644 * c-common.c (parse_optimize_options): Update call to
2645 decode_options.
2646 * c-common.h (c_common_handle_option): Update prototype.
2647 * c-opts.c (c_common_handle_option): Take location_t parameter and
2648 pass it to other functions.
2649
f954bd2c
JM
26502010-11-11 Joseph Myers <joseph@codesourcery.com>
2651
2652 * c-opts.c (warning_as_error_callback): Remove.
2653 (c_common_initialize_diagnostics): Don't call
2654 register_warning_as_error_callback.
2655 (c_common_handle_option): Handle -Werror=normalized= here.
2656
d8a07487
JM
26572010-11-10 Joseph Myers <joseph@codesourcery.com>
2658
2659 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2660 in diagnostic.
2661 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2662 letter.
2663 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2664 Remove trailing '.' from diagnostics.
2665 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2666
d5478783
JM
26672010-11-10 Joseph Myers <joseph@codesourcery.com>
2668
2669 * c-common.c (parse_optimize_options): Pass global_dc to
2670 decode_options.
2671 * c-opts.c (c_common_handle_option): Pass &global_options to
2672 set_Wstrict_aliasing.
2673 * c.opt (v): Don't mark Common or document here.
2674
91ebb981
IS
26752010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2676
2677 PR target/44981
2678 * c-format.c (format_type): New type gcc_objc_string_format_type.
2679 (valid_stringptr_type_p): New.
2680 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2681 (check_format_string): Pass expected type, use
91ebb981
IS
2682 valid_stringptr_type_p (), check that the format string types are
2683 consistent with the format specification.
2684 (decode_format_attr): Warn if NSString is used outside objective-c.
2685 (format_types_orig): Add NSString.
2686 (format_name): New.
2687 (format_flags): New.
2688 (check_format_arg): Handle format strings requiring an external parser.
2689 first_target_format_type: New variable.
2690 (handle_format_attribute): Set up first_target_format_type, pass the
2691 expected format arg string type to check_format_string().
2692 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2693 * stub-objc.c (objc_string_ref_type_p): New.
2694 (objc_check_format_arg): New.
2695
bede2adc
NP
26962010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2697
9faeb493 2698 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2699 * c-common.h (objc_build_class_component_ref): New.
2700 * stub-objc.c (objc_build_class_component_ref): New.
2701
9a179d01
NP
27022010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2703
2704 * c.opt (Wproperty-assign-default): New option.
2705
22d8d616
NP
27062010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2707
2708 Implemented -fobjc-std=objc1 flag.
2709 * c.opt (fobjc-std=objc1): New option.
2710
2debdb4f
NP
27112010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2712
2713 Implemented format and noreturn attributes for Objective-C methods.
2714 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2715 attribute for Objective-C methods.
2716
ec52b111
JM
27172010-10-31 Jason Merrill <jason@redhat.com>
2718
2719 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2720 EXPR_LOC_OR_HERE.
2721
46a88c12
NP
27222010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2723
2724 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2725 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2726 (objc_add_property_declaration): Removed arguments for copies and
2727 ivar.
2728 (objc_build_getter_call): Renamed to
2729 objc_maybe_build_component_ref.
2730 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2731 (objc_is_property_ref): New.
2732 * c-common.c (c_common_reswords): Removed copies and ivar.
2733 * stub-objc.c (objc_add_property_declaration): Removed arguments
2734 for copies and ivar.
2735 (objc_build_getter_call): Renamed to
2736 objc_maybe_build_component_ref.
2737 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2738 (objc_is_property_ref): New.
9faeb493 2739
1e4bf85b
AC
27402010-10-29 Arnaud Charlet <charlet@adacore.com>
2741 Matthew Gingell <gingell@adacore.com>
2742
2743 * c-ada-spec.c (separate_class_package): New function.
2744 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2745 name of their enclosing package.
2746 (print_ada_declaration): Use separate_class_package.
2747
81f0bab2
JM
27482010-10-27 Jason Merrill <jason@redhat.com>
2749
2b08f2c5
JM
2750 * c-common.c (c_common_reswords): Add __is_literal_type.
2751 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2752
81f0bab2
JM
2753 * c-common.c (check_case_value): Remove special C++ code.
2754
200290f2
NP
27552010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2756
2757 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2758 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2759 and RID_LAST_PATTR.
2760 (objc_add_property_declaration): Added additional arguments.
2761 (objc_property_attribute_kind): Removed.
2762 (objc_set_property_attr): Removed.
2763 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2764 copy and nonatomic.
2765 * stub-objc.c (objc_add_property_declaration): Added additional
2766 arguments.
2767 (objc_set_property_attr): Removed.
9faeb493 2768
f614132b
NP
27692010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2770
2771 * c-common.h (objc_add_property_variable): Renamed to
2772 objc_add_property_declaration. Added location argument.
2773 * stub-objc.c (objc_add_property_variable): Same change.
2774
b8a18805
NP
27752010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2776
2777 * c-common.h (objc_maybe_printable_name): New.
2778 * stub-objc.c (objc_maybe_printable_name): New.
2779
30cd1c5d
AS
27802010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2781 Andrew Pinski <pinskia@gmail.com>
2782
2783 * c-common.h (c_common_mark_addressable_vec): Declare.
2784 * c-common.c (c_common_mark_addressable_vec): New function.
2785
249a82c4
NP
27862010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2787
2788 * c-common.h (objc_set_method_type): Removed.
2789 (objc_add_method_declaration): Added boolean argument.
2790 (objc_start_method_definition): Same change.
2791 (objc_build_method_signature): Same change.
2792 * stub-objc.c (objc_set_method_type): Removed.
2793 (objc_add_method_declaration): Added boolean argument.
2794 (objc_start_method_definition): Same change.
2795 (objc_build_method_signature): Same change.
2796
977e30bc
NP
27972010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2798
2799 * c-common.h (finish_file): Removed.
2800 (objc_write_global_declarations): New.
2801 * c-opts.c (c_common_parse_file): Do not call finish_file.
2802 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2803
da57d1b9
NP
28042010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2805
2806 Implemented parsing @synthesize and @dynamic for
2807 Objective-C/Objective-C++.
2808 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2809 (objc_add_synthesize_declaration): New.
2810 (objc_add_dynamic_declaration): New.
2811 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2812 * stub-objc.c (objc_add_synthesize_declaration): New.
2813 (objc_add_dynamic_declaration): New.
9faeb493 2814
0069111f
MM
28152010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2816
2817 PR target/46041
2818 * c-cppbuiltin.c (mode_has_fma): Move function here from
2819 builtins.c. Don't use the fma optab, instead just use the
2820 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2821 using -save-temps.
2822
e426b47b
NP
28232010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2824
2825 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2826
e426b47b
NP
2827 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2828
9faeb493 2829 Radar 4330422
e426b47b
NP
2830 * c-common.h (objc_non_volatilized_type): New declaration
2831 * stub-objc.c (objc_non_volatilized_type): New stub.
2832
90fbfdc3
NP
28332010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2834
e426b47b 2835 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2836
2837 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2838
9faeb493 2839 Radar 4133425
90fbfdc3 2840 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2841 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2842
c37d8c30
IS
28432010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2844
2845 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2846 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2847 (objc_ivar_visibility_kind): New enum.
2848 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2849 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2850 visibility enum.
2851
1b1562a5
MM
28522010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2853
2854 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2855 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2856 has the appropriate fma builtins.
2857 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2858
668ea4b1
IS
28592010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2860
1b1562a5 2861 merge from FSF apple 'trunk' branch.
668ea4b1 2862 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2863
668ea4b1
IS
2864 Radars 4436866, 4505126, 4506903, 4517826
2865 * c-common.c (c_common_resword): Define @property and its attributes.
2866 * c-common.h: Define property attribute enum entries.
2867 (OBJC_IS_PATTR_KEYWORD): New.
2868 (objc_property_attribute_kind): New enum.
2869 Declare objc_set_property_attr (), objc_add_property_variable (),
2870 objc_build_getter_call () and objc_build_setter_call ().
2871 * stub-objc.c (objc_set_property_attr): New stub.
2872 (objc_add_property_variable): Likewise.
2873 (objc_build_getter_call): Likewise.
2874 (objc_build_setter_call) Likewise.
1b1562a5 2875
a1178b30
IS
28762010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2877
1b1562a5 2878 merge from FSF apple 'trunk' branch.
a1178b30
IS
2879 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2880
2881 Radar 3803157 (method attributes)
2882 * c-common.c (handle_deprecated_attribute): Recognize
2883 objc methods as valid declarations.
2884 * c-common.h: Declare objc_method_decl ().
1b1562a5 2885 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2886
a75bfaa6
JM
28872010-10-08 Joseph Myers <joseph@codesourcery.com>
2888
2889 * c-common.c (parse_optimize_options): Call
2890 decode_cmdline_options_to_array_default_mask before
2891 decode_options. Update arguments to decode_options.
2892 * c-common.h (c_common_init_options_struct): Declare.
2893 * c-opts.c (c_common_init_options_struct): New. Split out from
2894 c_common_init_options.
2895
f05b9d93
NP
28962010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2897
2898 Implemented fast enumeration for Objective-C.
2899 * c-common.h (objc_finish_foreach_loop): New.
2900 * stub-objc.c (objc_finish_foreach_loop): New.
2901
1ebe4b4f
JM
29022010-10-05 Joseph Myers <joseph@codesourcery.com>
2903
2904 * c-common.h (struct diagnostic_context): Don't declare here.
2905 (c_common_initialize_diagnostics): Declare using
2906 diagnostic_context typedef.
2907 * c-opts.c (c_common_handle_option): Pass global_dc to
2908 handle_generated_option.
2909
d4d24ba4
JM
29102010-10-04 Joseph Myers <joseph@codesourcery.com>
2911
2912 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2913 handle_generated_option.
2914
478a1c5b
ILT
29152010-10-03 Ian Lance Taylor <iant@google.com>
2916
2917 * c.opt (-fplan9-extensions): New option.
2918
82a1c2fe
FXC
29192010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2920
2921 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2922 Remove.
2923 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2924 of duplicating code.
2925
92902b1b
IS
29262010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2927
2928 * c-common.c: Add two new entries for @optional
2929 and @required keywords.
2930
2931 merge from FSF 'apple/trunk' branch.
2932 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2933
2934 Radar 4386773
2935 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2936 objective-c keywords.
2937 (objc_set_method_opt): New declaration.
2938 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2939
46625112
JM
29402010-09-30 Joseph Myers <joseph@codesourcery.com>
2941
2942 * c-common.c (handle_optimize_attribute): Pass &global_options to
2943 cl_optimization_save and cl_optimization_restore.
2944 * c-opts.c (c_common_handle_option): Pass &global_options to
2945 handle_generated_option.
2946 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2947 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2948 &global_options to cl_optimization_restore.
2949
49b91f05
NP
29502010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2951
2952 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2953 Objective-C/Objective-C++ keywords.
2954
13ed556f 29552010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2956
9faeb493
UB
2957 Merge from 'apple/trunk' branch on FSF servers.
2958
a6341d57
NP
2959 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2960
2961 Radar 4281748
2962 * c-common.h (objc_check_global_decl): New declaration.
2963 * stub-objc.c (objc_check_global_decl): New stub.
2964
f0036cca
JM
29652010-09-29 Joseph Myers <joseph@codesourcery.com>
2966
2967 * c.opt: Don't use VarExists.
2968
e3339d0f
JM
29692010-09-29 Joseph Myers <joseph@codesourcery.com>
2970
2971 * c-common.c (c_cpp_error): Update names of diagnostic_context
2972 members.
2973 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2974 cl_optimization members.
2975 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2976 sanitize_cpp_opts, finish_options): Update names of cpp_options
2977 members.
2978
1973201f
NP
29792010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2980
2981 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2982 (objc_is_reserved_word): Removed.
2983 * c-common.c: Updated comments.
2984 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2985 objc_is_reserved_word.
2986 * stub-objc.c (objc_is_reserved_word): Removed.
2987
f7e71da5
IS
29882010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2989
9faeb493 2990 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2991 include attributes.
2992 (objc_start_method_definition): Likewise.
2993 (objc_build_keyword_decl): Likewise.
2994 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2995 (objc_start_method_definition): Likewise.
2996 (objc_build_keyword_decl): Likewise.
2997
c165dca7
IS
29982010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2999
3000 * c-common.h (objc_start_class_interface): Adjust prototype.
3001 (objc_start_category_interface): Likewise.
3002 (objc_start_protocol): Likewise.
3003 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3004 (objc_start_class_interface): Likewise.
3005 (objc_start_category_interface): Likewise.
3006
7458026b
ILT
30072010-09-27 Ian Lance Taylor <iant@google.com>
3008
3009 * c-common.c (c_common_attribute_table): Add no_split_stack.
3010 (handle_no_split_stack_attribute): New static function.
3011
b581b85b
NP
30122010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3013
9faeb493 3014 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3015
3016 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3017
9faeb493 3018 Radar 4229905
b581b85b
NP
3019 * c-common.h (objc_have_common_type): New declaration.
3020 * stub-objc.c (objc_have_common_type): New stub.
3021
3022 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3023
3024 Radar 4154928
3025 * c-common.h (objc_common_type): New prototype.
9faeb493 3026 * stub-objc.c (objc_common_type): New stub.
b581b85b 3027
46a4da10
JH
30282010-09-24 Jan Hubicka <jh@suse.cz>
3029
3030 * c-common.c (handle_leaf_attribute): New function.
3031 (struct attribute_spec c_common_att): Add leaf.
3032
e200444e
JM
30332010-09-22 Joseph Myers <joseph@codesourcery.com>
3034
3035 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3036 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3037 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3038 -include-barrier, -include-directory, -include-directory=,
3039 -include-directory-after, -include-directory-after=,
3040 -include-prefix, -include-prefix=, -include-with-prefix,
3041 -include-with-prefix=, -include-with-prefix-after,
3042 -include-with-prefix-after=, -include-with-prefix-before,
3043 -include-with-prefix-before=, -no-integrated-cpp,
3044 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3045 -output=, -pedantic, -pedantic-errors, -preprocess,
3046 -print-missing-file-dependencies, -trace-includes, -traditional,
3047 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3048 -user-dependencies, -verbose, -write-dependencies,
3049 -write-user-dependencies, no-integrated-cpp, traditional): New.
3050
29a80ea6
NP
30512010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3052
3053 PR objc/23710
ac1fc2fc
NP
3054 * c-common.h (objc_start_method_definition): Return bool instead
3055 of void.
3056 * stub-objc.c (objc_start_method_definition): Return bool instead
3057 of void.
3058
30592010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3060
3061 PR objc/25965
3062 * c-common.h (objc_get_interface_ivars): New declaration.
3063 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3064
de621752
ILT
30652010-09-15 Ian Lance Taylor <iant@google.com>
3066
3067 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3068 messages. Remove period at end of warning message.
de621752 3069
ba885ec5
NS
30702010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3071
3072 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3073 (handle_alias_attribute): ... here.
3074 (handle_ifunc_attribute): New.
3075
c5ee1358
MM
30762010-09-06 Mark Mitchell <mark@codesourcery.com>
3077
3078 * c-common.h (do_warn_double_promotion): Declare.
3079 * c-common.c (do_warn_double_promotion): Define.
3080
0a0b3574
MM
30812010-09-05 Mark Mitchell <mark@codesourcery.com>
3082
3083 * c.opt (Wdouble-promotion): New.
3084
d1779886
JM
30852010-09-02 Joseph Myers <joseph@codesourcery.com>
3086
3087 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3088 fvtable-thunks, fxref): Mark no longer supported in help text.
3089
2d2bd949
JM
30902010-09-02 Joseph Myers <joseph@codesourcery.com>
3091
3092 * c.opt (Wimport, fall-virtual, falt-external-templates,
3093 fdefault-inline, fenum-int-equiv, fexternal-templates,
3094 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3095 fname-mangling-version-, fnew-abi, fnonnull-objects,
3096 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3097 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3098 applicable.
3099 (fhandle-exceptions): Mark with Alias and Warn.
3100 * c-opts.c (c_common_handle_option): Don't handle options marked
3101 as ignored.
3102
5de8299c
JM
31032010-09-02 Joseph Myers <joseph@codesourcery.com>
3104
3105 * c.opt (Wcomments, Werror-implicit-function-declaration,
3106 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3107 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3108 aliases.
3109 * c-common.c (option_codes): Use OPT_Wcomment instead of
3110 OPT_Wcomments.
3111 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3112 Don't handle options marked as aliases.
3113
0ceb0201
RG
31142010-08-25 Richard Guenther <rguenther@suse.de>
3115
3116 * c-common.c (c_common_get_alias_set): Remove special
3117 handling for pointers.
3118
ac47786e
NF
31192010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3120
3121 * c-common.c: Use FOR_EACH_VEC_ELT.
3122 * c-gimplify.c: Likewise.
3123 * c-pragma.c: Likewise.
3124
c878765b
JM
31252010-08-16 Joseph Myers <joseph@codesourcery.com>
3126
3127 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3128 RejectDriver.
3129 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3130 RejectDriver.
3131 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3132 instead of OPT_MDX and OPT_MMDX.
3133
603349bf
JM
31342010-08-16 Joseph Myers <joseph@codesourcery.com>
3135
3136 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3137
644fa7ac
JM
31382010-08-12 Joseph Myers <joseph@codesourcery.com>
3139
3140 * c.opt (MD, MMD): Change to MDX and MMDX.
3141 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3142
481e1176
JM
31432010-08-11 Joseph Myers <joseph@codesourcery.com>
3144
3145 * c-opts.c (c_common_handle_option): Call handle_generated_option
3146 instead of handle_option.
3147
ac8dc9f7
NF
31482010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3149
3150 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3151 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3152
4f8c876d
NF
31532010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3154
3155 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3156 (pending_redefine_extname): Change type to a VEC.
3157 (add_to_renaming_pragma_list): Update for new type of
3158 pending_redefine_extname.
ac8dc9f7 3159 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3160
3b0c690e
AC
31612010-08-04 Arnaud Charlet <charlet@adacore.com>
3162
3163 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3164 visited.
3165 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3166 decide whether a type has already been declared/seen.
3167 Do not go to the original type.
3168 (dump_nested_types): New parameter forward.
3169 Generate forward declaration if needed and mark type as visited.
3170 (print_ada_declaration): Call dump_nested_types if not already done.
3171 Mark types as visited.
3172
1890bccc
JM
31732010-08-03 Joseph Myers <joseph@codesourcery.com>
3174
3175 * c.opt (-print-pch-checksum): Remove option.
3176 * c-opts.c (c_common_handle_option): Don't handle
3177 OPT_print_pch_checksum.
3178
5f20c657
JM
31792010-07-27 Joseph Myers <joseph@codesourcery.com>
3180
3181 * c-common.h (c_common_handle_option): Update prototype and return
3182 value type.
3183 * c-opts.c (c_common_handle_option): Update prototype and return
3184 value type. Update calls to handle_option and
3185 enable_warning_as_error.
3186
f551f80c
JJ
31872010-07-27 Jakub Jelinek <jakub@redhat.com>
3188
3189 PR c/45079
3190 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3191
61ff2bdc
JM
31922010-07-27 Joseph Myers <joseph@codesourcery.com>
3193
3194 * c-common.h (c_common_missing_argument): Remove.
3195 * c-opts.c (c_common_missing_argument): Remove.
3196 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3197 idirafter, imacros, include, isysroot, isystem, iquote): Add
3198 MissingArgError.
3199 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3200
7a9bf9a4
JM
32012010-07-27 Joseph Myers <joseph@codesourcery.com>
3202
3203 * c-common.h (c_common_option_lang_mask,
3204 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3205 New.
3206 (c_common_init_options): Update prototype.
3207 * c-opts.c (c_common_option_lang_mask): New.
3208 (c_common_initialize_diagnostics): Split out of
3209 c_common_init_options.
3210 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3211 New.
3212 (c_common_init_options): Update prototype. Use decoded options in
3213 search for -lang-asm.
3214
910ad8de
NF
32152010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3216
3217 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3218 * c-format.c: Likewise.
3219
718f9c0f
MLI
32202010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3221
3222 * c-common.h: Include diagnostic-core.h. Error if already
3223 included.
3224 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3225
4d451982
MLI
32262010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3227
3228 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3229 Do not include expr.h
3230 (vector_mode_valid_p): Move here.
3231
119fe915
SB
32322010-06-21 DJ Delorie <dj@redhat.com>
3233
3234 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3235 allow these pragmas anywhere.
3236
32372010-06-14 Jakub Jelinek <jakub@redhat.com>
3238
3239 PR bootstrap/44509
3240 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3241 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3242 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3243 ggc_strdup instead of xstrdup.
3244
32452010-06-10 Jakub Jelinek <jakub@redhat.com>
3246
3247 * c-cppbuiltin.c: Include cpp-id-data.h.
3248 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3249 (lazy_hex_fp_value): New function.
3250 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3251
6662d794
MLI
32522010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3253
3254 * c-gimplify.c: Do not include tree-flow.h
3255
38f8b050
JR
32562010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3257
3258 PR other/44034
3259 * c-common.c: Rename targetm member:
3260 targetm.enum_va_list -> targetm.enum_va_list_p
3261
9589f23e
AS
32622010-06-28 Anatoly Sokolov <aesok@post.ru>
3263
3264 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3265
3b06d379
SB
32662010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3267
3268 * c-cppbuiltin.c: Do not include except.h.
3269
d166d4c3
AK
32702010-06-24 Andi Kleen <ak@linux.intel.com>
3271
9faeb493
UB
3272 * c-common.c (warn_for_omitted_condop): New.
3273 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3274
70cb8be6
JM
32752010-06-21 Joseph Myers <joseph@codesourcery.com>
3276
3277 * c.opt (lang-objc): Remove.
3278 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3279
a4c97feb
JR
32802010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3281
3282 * c-opts.c: Include "tm_p.h".
3283
6e2f1956
JM
32842010-06-20 Joseph Myers <joseph@codesourcery.com>
3285
3286 * c-common.c (parse_optimize_options): Update call to
3287 decode_options.
3288
bc87224e
NF
32892010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3290
3291 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3292 new type of types_used_by_cur_var_decl.
3293
b49cf425
JR
32942010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3295
3296 PR bootstrap/44512
3297 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3298 for C++ standard compliance.
3299
59f9c2ed
JM
33002010-06-16 Jason Merrill <jason@redhat.com>
3301
3302 * c.opt: Add -Wnoexcept.
3303
33766b66
RG
33042010-06-16 Richard Guenther <rguenther@suse.de>
3305
3306 PR c/44555
3307 * c-common.c (c_common_truthvalue_conversion): Remove
3308 premature and wrong optimization concering ADDR_EXPRs.
3309
eff7e30c
AC
33102010-06-15 Arnaud Charlet <charlet@adacore.com>
3311
3312 * c-ada-spec.c (dump_sloc): Remove column info.
3313 (is_simple_enum): New function.
3314 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3315 enum types when relevant.
3316
6312e84d
MLI
33172010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3318
9faeb493 3319 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3320 location.
3321
1cb42611
JM
33222010-06-10 Joseph Myers <joseph@codesourcery.com>
3323
3324 * c-opts.c (c_common_handle_option): Don't handle
3325 OPT_fshow_column.
3326
a9429e29
LB
33272010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3328
3329 * c-pragma.c (push_alignment): Use typed GC allocation.
3330 (handle_pragma_push_options): Likewise.
3331
3332 * c-common.c (parse_optimize_options): Likewise.
3333
3334 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3335 option.
3336
5498f011
JM
33372010-06-07 Joseph Myers <joseph@codesourcery.com>
3338
3339 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3340 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3341 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3342 flag_signed_bitfields, warn_strict_null_sentinel,
3343 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3344 flag_gen_declaration, flag_no_gnu_keywords,
3345 flag_implement_inlines, flag_implicit_templates,
3346 flag_implicit_inline_templates, flag_optional_diags,
3347 flag_elide_constructors, flag_default_inline, flag_rtti,
3348 flag_conserve_space, flag_access_control, flag_check_new,
3349 flag_new_for_scope, flag_weak, flag_working_directory,
3350 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3351 flag_enforce_eh_specs, flag_threadsafe_statics,
3352 flag_pretty_templates): Remove.
3353 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3354 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3355 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3356 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3357 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3358 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3359 flag_no_gnu_keywords, flag_implement_inlines,
3360 flag_implicit_templates, flag_implicit_inline_templates,
3361 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3362 flag_rtti, flag_conserve_space, flag_access_control,
3363 flag_check_new, flag_new_for_scope, flag_weak,
3364 flag_working_directory, flag_use_cxa_atexit,
3365 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3366 flag_threadsafe_statics, flag_pretty_templates,
3367 warn_strict_null_sentinel): Remove.
3368 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3369 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3370 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3371 fimplicit-inline-templates, fimplicit-templates,
3372 flax-vector-conversions, fms-extensions, fnil-receivers,
3373 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3374 frtti, fshort-double, fshort-enums, fshort-wchar,
3375 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3376 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3377 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3378 gen-decls, undef): Use Var.
3379 (fdefault-inline, foptional-diags): Document as doing nothing.
3380 * c-opts.c (c_common_handle_option): Remove cases for options now
3381 using Var. Mark ignored options as such.
3382
39dabefd
SB
33832010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3384
9faeb493 3385 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3386 * c-common.def: Likewise.
3387 * c-common.h: Likewise.
3388 * c-cppbuiltin.c: Likewise.
3389 * c-dump.c: Likewise.
3390 * c-format.c: Likewise.
3391 * c-format.h : Likewise.
3392 * c-gimplify.c: Likewise.
3393 * c-lex.c: Likewise.
3394 * c-omp.c: Likewise.
3395 * c.opt: Likewise.
3396 * c-opts.c: Likewise.
3397 * c-pch.c: Likewise.
3398 * c-ppoutput.c: Likewise.
3399 * c-pragma.c: Likewise.
3400 * c-pragma.h: Likewise.
3401 * c-pretty-print.c: Likewise.
3402 * c-pretty-print.h: Likewise.
3403 * c-semantics.c: Likewise.
3404 * stub-objc.c: Likewise.
3405
3406 * c-common.c: Include gt-c-family-c-common.h.
3407 * c-pragma.c: Include gt-c-family-c-pragma.h.
3408\f
23a5b65a 3409Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3410
3411Copying and distribution of this file, with or without modification,
3412are permitted in any medium without royalty provided the copyright
3413notice and this notice are preserved.