]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR target/59880 (ix86_avoid_lea_for_addr is buggy)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
67bf2939
LA
12014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2
3 PR c++/49718
4 * c-common.c (handle_no_instrument_function_attribute): Allow
5 no_instrument_function attribute in class member
6 definition/declaration.
7
241f845a
JJ
82014-01-15 Jakub Jelinek <jakub@redhat.com>
9
10 PR c/58943
11 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
12 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
13 being COMPOUND_EXPR.
14 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
15 operand a SAVE_EXPR and second MODIFY_EXPR.
16
e83b8e2e
JJ
172014-01-09 Jakub Jelinek <jakub@redhat.com>
18
19 PR target/58115
20 * c-pch.c (c_common_write_pch): Call
21 prepare_target_option_nodes_for_pch.
22
23a5b65a
RS
232014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24
25 Update copyright years
26
f9030485
RS
272014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28
29 * array-notation-common.c, c-cilkplus.c: Use the standard form for
30 the copyright notice.
31
f2aa696b
EB
322013-12-28 Eric Botcazou <ebotcazou@adacore.com>
33
34 * c-ada-spec.c (print_constructor): New function.
35 (print_destructor): Retrieve the origin of the destructor.
36 (print_ada_declaration): Revamp handling of constructors/destructors.
37
1f26ac87
JM
382013-12-23 Stuart Hastings <stuart@apple.com>
39 Bill Maddox <maddox@google.com>
40 Jason Merrill <jason@redhat.com>
41
42 * c.opt: Add -fdeclone-ctor-dtor.
43 * c-opts.c (c_common_post_options): Default to on iff -Os.
44
41958c28
BI
452013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
46
47 * c-common.c (c_common_attribute_table): Added "cilk simd function"
48 attribute.
49 * c-pragma.h (enum pragma_cilk_clause): Remove.
50 (enum pragma_omp_clause): Added the following fields:
51 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
52 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
53 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
54 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
55 PRAGMA_CILK_CLAUSE_UNIFORM.
56
57
12893402
BI
582013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
59
60 * cilk.c (cilk_outline): Made this function non-static.
61 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
62 (create_cilk_wrapper): Added a new parameter: a function pointer.
63 (c_install_body_w_frame_cleanup): Remove
64 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
65 * c-common.h (cilk_outline): New prototype.
66 (gimplify_cilk_spawn): Removed two parameters.
67 (cilk_install_body_with_frame_cleanup): New prototype.
68 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
69 CILK_SPAWN_STMT case.
70
085b42ed
BS
712013-12-11 Bernd Schmidt <bernds@codesourcery.com>
72
2ce064c3
BS
73 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
74
085b42ed
BS
75 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
76 (int_array_type_node): Remove.
77 * c-common.c (c_common_nodes_and_builtins): Don't build it.
78
9e36c9ed
MP
792013-12-05 Marek Polacek <polacek@redhat.com>
80
81 PR c/52023
82 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
83 [ADJUST_FIELD_ALIGN].
84
296674db
JM
852013-12-04 Joseph Myers <joseph@codesourcery.com>
86
87 PR c/52023
88 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
89 and check field alignment if set.
90 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
91 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
92
31e071ae
MP
932013-12-04 Jakub Jelinek <jakub@redhat.com>
94 Marek Polacek <polacek@redhat.com>
95
96 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
97 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
98
d7947e19
L
992013-11-29 H.J. Lu <hongjiu.lu@intel.com>
100
101 PR c/59309
102 * cilk.c (gimplify_cilk_spawn): Properly handle function without
103 arguments.
104
fad7652e
JJ
1052013-11-29 Jakub Jelinek <jakub@redhat.com>
106
107 PR c/59280
108 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
109 goto invalid. If it is error_mark_node, don't issue further
110 diagnostics.
111
8b5e1202
SO
1122013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
113
114 * c.opt (Wopenmp-simd): New.
115
0a508bb6
JJ
1162013-11-22 Jakub Jelinek <jakub@redhat.com>
117
118 * c-ubsan.h (ubsan_instrument_return): New prototype.
119 * c-ubsan.c (ubsan_instrument_return): New function.
120
2fb9a547
AM
1212013-11-22 Andrew MacLeod <amacleod@redhat.com>
122
123 * c-common.c: Add required include files from gimple.h.
124 * c-gimplify.c: Likewise
125 * cilk.c: Likewise
126
8400e75e
DM
1272013-11-22 David Malcolm <dmalcolm@redhat.com>
128
129 * c-common.c (unsafe_conversion_p): Remove use of
130 EXPR_LOC_OR_HERE macro.
131 (conversion_warning): Likewise.
132 (warnings_for_convert_and_check): Likewise.
133 (warn_for_collisions_1): Likewise.
134 (shorten_compare): Likewise, and remove use of in_system_header
135 macro, using the location from the former.
136 * c-lex.c (dump_one_header): Remove use of input_filename macro.
137 (cb_def_pragma): Remove use of in_system_header macro.
138 (lex_string): Likewise.
139 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
140
eb1ce453
KZ
1412013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
142 Mike Stump <mikestump@comcast.net>
143 Richard Sandiford <rdsandiford@googlemail.com>
144
145 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
146 instead of TREE_INT_CST_LOW, in cases where there is a protecting
147 tree_fits_shwi_p or tree_fits_uhwi_p.
148 (dump_generic_ada_node): Likewise.
149 * c-format.c (check_format_arg): Likewise.
150 * c-pretty-print.c (pp_c_integer_constant): Likewise.
151
6b3b8c27
KZ
1522013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
153
154 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
155
49b0aa18
JC
1562013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
157
158 PR c/53001
159 * c-common.c (unsafe_conversion_p): Make this function
160 return an enumeration with more detail.
161 (conversion_warning): Use the new return type of
162 unsafe_conversion_p to separately warn either about conversions
163 that lower floating point number precision or about the other
164 kinds of conversions.
165 * c-common.h (enum conversion_safety): New enumeration.
166 (unsafe_conversion_p): switching return type to
167 conversion_safety enumeration.
168 * c.opt: Adding new warning -Wfloat-conversion and
169 enabling it with -Wconversion.
170
b826515a
BS
1712013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
172
173 * c-opts.c: Include plugin.h.
174 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
175
b9a55b13
MP
1762013-11-19 Marek Polacek <polacek@redhat.com>
177
178 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
179 call.
180 (ubsan_instrument_shift): Likewise.
181 (ubsan_instrument_vla): Likewise.
182
7d362f6c
RS
1832013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
184
185 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
186 cast to unsigned type.
187
386b1f1f
RS
1882013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
189
190 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
191 tree_low_cst.
192 (complete_array_type): Update comment to refer to tree_to_[su]hwi
193 rather than tree_low_cst.
194
ae7e9ddd
RS
1952013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
196
197 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
198 tree_to_uhwi throughout.
199
9439e9a1
RS
2002013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
201
202 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
203 tree_low_cst (..., 0) with tree_to_shwi throughout.
204
cc269bb6
RS
2052013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
206
207 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
208 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
209
9541ffee
RS
2102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
211
212 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
213 host_integerp (..., 0) with tree_fits_shwi_p throughout.
214
c02065fc
AH
2152013-11-15 Aldy Hernandez <aldyh@redhat.com>
216
217 * c-cilkplus.c: New file.
218 * c-common.c (readonly_error): Add location argument.
219 * c-common.h (readonly_error): Same.
220 (c_finish_cilk_clauses): Protoize.
221 (c_check_cilk_loop): Same.
222 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
223 Do not fail on error_mark_node.
224 Abstract increment canonicalization to here...
225 (c_omp_for_incr_canonicalize_ptr): New.
226 c-pragma.c (init_pragma): Register "simd" pragma.
227 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
228 (enum pragma_cilk_clause): New.
229
9cc65f15
RS
2302013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
231
232 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
233 wchar_type and host_integerp checks.
234
18f429e2
AM
2352013-11-14 Andrew MacLeod <amacleod@redhat.com>
236
237 * c-common.c: Likewise.
238 * c-gimplify.c: Likewise.
239 * cilk.c: Likewise.
240
d8a2d370
DN
2412013-11-14 Diego Novillo <dnovillo@google.com>
242
243 * c-common.c: Include fold-const.h.
244 Include stor-layout.h.
245 Include calls.h.
246 Include stringpool.h.
247 Include attribs.h.
248 Include varasm.h.
249 Include trans-mem.h.
250 * c-cppbuiltin.c: Include stor-layout.h.
251 Include stringpool.h.
252 * c-format.c: Include stringpool.h.
253 * c-lex.c: Include stringpool.h.
254 Include stor-layout.h.
255 * c-pragma.c: Include stringpool.h.
256 Include attribs.h.
257 Include varasm.h.
258 Include gcc-symtab.h.
259 * c-pretty-print.c: Include stor-layout.h.
260 Include attribs.h.
261 * cilk.c: Include stringpool.h.
262 Include calls.h.
263
38b7bc7f
JM
2642013-11-13 Joseph Myers <joseph@codesourcery.com>
265
266 * c-common.h (enum rid): Add RID_AUTO_TYPE.
267 * c-common.c (c_common_reswords): Add __auto_type.
268 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
269
45b0be94
AM
2702013-11-12 Andrew MacLeod <amacleod@redhat.com>
271
18f429e2
AM
272 * c-common.c: Include gimplify.h.
273 * c-gimplify.c: Likewise.
274 * cilk.c: Likewise.
275 * c-omp.c: Include gimple-expr.h instead of gimple.h.
276 * c-ubsan.c: Don't include gimple.h.
45b0be94 277
582d9b50
JM
2782013-11-12 Joseph Myers <joseph@codesourcery.com>
279
280 * c-common.c (c_common_reswords): Add _Thread_local.
281
6b28e197
JM
2822013-11-09 Joseph Myers <joseph@codesourcery.com>
283
284 * c-common.c (atomic_size_supported_p): New function.
285 (resolve_overloaded_atomic_exchange)
286 (resolve_overloaded_atomic_compare_exchange)
287 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
288 Use it instead of comparing size with a local list of sizes.
289
267bac10
JM
2902013-11-07 Andrew MacLeod <amacleod@redhat.com>
291 Joseph Myers <joseph@codesourcery.com>
292
293 * c-common.h (enum rid): Add RID_ATOMIC.
294 * c-common.c (c_common_reswords): Add _Atomic.
295 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
296 (keyword_is_type_qualifier): Accept RID_ATOMIC.
297 * c-format.c (check_format_types): Check for extra _Atomic
298 qualifiers in format argument.
299 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
300 (pp_c_type_qualifier_list): Mention _Atomic in comment.
301
5157b91e
TB
3022013-11-06 Tobias Burnus <burnus@net-b.de>
303
304 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
305
6dbe0958
JM
3062013-11-06 Joseph Myers <joseph@codesourcery.com>
307
308 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
309 standards modes.
310 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
311 to mean lack of IEEE 754 support.
312
e8ff5196
TB
3132013-11-05 Tobias Burnus <burnus@net-b.de>
314
315 * c.opt (-Wdate-time): New option
316 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
317
254a0760
JM
3182013-11-05 Joseph Myers <joseph@codesourcery.com>
319
320 * c-cppbuiltin.c (cpp_iec_559_value): Test
321 flag_excess_precision_cmdline not flag_excess_precision.
322
6d7f7e0a
TB
3232013-11-05 Tobias Burnus <burnus@net-b.de>
324
325 * c.opt (fopenmp-simd): New option.
326 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
327 (omp_pragmas): ... this new struct.
328 (c_pp_lookup_pragma): Also walk omp_pragmas.
329 (init_pragma): Init pragmas for -fopenmp-simd.
330
55a7f02f
MP
3312013-11-04 Marek Polacek <polacek@redhat.com>
332
333 PR c++/58979
334 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
335
9193fb05
JM
3362013-11-04 Joseph Myers <joseph@codesourcery.com>
337
338 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
339 New functions.
340 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
341
94159ecf
EB
3422013-11-04 Eric Botcazou <ebotcazou@adacore.com>
343
344 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
345 (dump_ada_specs): Adjust prototype of second callback.
346 * c-ada-spec.c (cpp_check): New global variable.
347 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
348 (print_generic_ada_decl): Likewise.
349 (has_static_fields): Change return type to bool and add guard.
350 (has_nontrivial_methods): New predicate.
351 (is_tagged_type): Change return type to bool.
352 (separate_class_package): Call has_nontrivial_methods.
353 (pp_ada_tree_identifier): Minor tweaks.
354 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
355 (dump_ada_array_domains): Likewise.
356 (dump_ada_array_type): Likewise.
357 (dump_template_types): Remove cpp_check parameter and do not pass it to
358 dump_generic_ada_node.
359 (dump_ada_template): Likewise.
360 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
361 recursively.
362 (print_ada_methods): Change return type to integer. Remove cpp_check
363 parameter and do not pass it down.
364 (dump_nested_types): Remove cpp_check parameter and do not pass it to
365 dump_generic_ada_node.
366 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
367 accessing methods.
368 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
369 down. Use has_nontrivial_methods to recognize C++ classes. Use return
370 value of print_ada_methods.
371 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
372 Set cpp_check to it before invoking dump_ada_nodes.
373 (dump_ada_specs): Likewise.
374
b906f4ca
MP
3752013-11-03 Marek Polacek <polacek@redhat.com>
376
377 * c-ubsan.c: Don't include hash-table.h.
378 (ubsan_instrument_vla): New function.
379 * c-ubsan.h: Declare it.
380
5e20cdc9
DM
3812013-10-31 David Malcolm <dmalcolm@redhat.com>
382
383 Automated part of renaming of symtab_node_base to symtab_node.
384
385 Patch autogenerated by rename_symtab.py from
386 https://github.com/davidmalcolm/gcc-refactoring-scripts
387 revision 58bb219cc090b2f4516a9297d868c245495ee622
388
389 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
390 symtab_node_base to symtab_node.
391
7057e645
ESR
3922013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
393
394 Implement C++14 digit separators.
395 * c-lex.c (interpret_float): Remove digit separators from scratch string
396 before building real literal.
397
193ea7bc
JJ
3982013-10-30 Jakub Jelinek <jakub@redhat.com>
399
400 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
401
939b37da
BI
4022013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
403
404 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
405 fields.
406 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
407 enabled.
408 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
409 (insert_cilk_frame): New prototype.
410 (cilk_init_builtins): Likewise.
411 (gimplify_cilk_spawn): Likewise.
412 (c_cilk_install_body_w_frame_cleanup): Likewise.
413 (cilk_detect_spawn_and_unwrap): Likewise.
414 (cilk_set_spawn_marker): Likewise.
415 (build_cilk_sync): Likewise.
416 (build_cilk_spawn): Likewise.
417 * cilk.c: New file.
418
67348ccc
DM
4192013-10-29 David Malcolm <dmalcolm@redhat.com>
420
421 Patch autogenerated by refactor_symtab.py from
422 https://github.com/davidmalcolm/gcc-refactoring-scripts
423 revision 58bb219cc090b2f4516a9297d868c245495ee622
424
425 * c-gimplify.c (c_genericize): Update for conversion of symtab types
426 to a true class hierarchy.
427 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
428
d570872d
RS
4292013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
430
431 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
432
98906124
JL
4332013-10-26 Jeff Law <law@redhat.com>
434
435 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
436 * c-family/c.opt: Ignore and warn for mudflap options.
437
d73749df 4382013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
439
440 PR other/33426
441 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
442 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
443
3f04b1bb
JM
4442013-10-23 Jason Merrill <jason@redhat.com>
445
446 * c-format.c (gcc_cxxdiag_char_table): Add %X.
447
acf0174b
JJ
4482013-10-11 Jakub Jelinek <jakub@redhat.com>
449
acd15a28
JJ
450 * c-common.h (omp_clause_mask::operator !=): New method.
451 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
452 instead of if (mask & something) tests everywhere.
453
acf0174b
JJ
454 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
455 201307 instead of 201107.
456 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
457 (c_common_attribute_table): Add "omp declare target" and
458 "omp declare simd" attributes.
459 (handle_omp_declare_target_attribute,
460 handle_omp_declare_simd_attribute): New functions.
461 * c-omp.c: Include c-pragma.h.
462 (c_finish_omp_taskgroup): New function.
463 (c_finish_omp_atomic): Add swapped argument, if true,
464 build the operation first with rhs, lhs arguments and use NOP_EXPR
465 build_modify_expr.
466 (c_finish_omp_for): Add code argument, pass it down to make_code.
467 (c_omp_split_clauses): New function.
468 (c_split_parallel_clauses): Removed.
469 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
470 c_omp_declare_simd_clauses_to_decls): New functions.
471 * c-common.h (omp_clause_mask): New type.
472 (OMP_CLAUSE_MASK_1): Define.
473 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
474 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
475 omp_clause_mask::operator |, omp_clause_mask::operator &,
476 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
477 omp_clause_mask::operator ==): New methods.
478 (enum c_omp_clause_split): New.
479 (c_finish_omp_taskgroup): New prototype.
480 (c_finish_omp_atomic): Add swapped argument.
481 (c_finish_omp_for): Add code argument.
482 (c_omp_split_clauses): New prototype.
483 (c_split_parallel_clauses): Removed.
484 (c_omp_declare_simd_clauses_to_numbers,
485 c_omp_declare_simd_clauses_to_decls): New prototypes.
486 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
487 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
488 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
489 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
490 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
491 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
492 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
493 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
494 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
495 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
496 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
497 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
498 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
499 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
500 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
501 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
502 PRAGMA_OMP_CLAUSE_UNIFORM.
503
826cacfe
MG
5042013-10-09 Marc Glisse <marc.glisse@inria.fr>
505
506 PR tree-optimization/20318
507 * c-common.c (handle_returns_nonnull_attribute): New function.
508 (c_common_attribute_table): Add returns_nonnull.
509
2284b034
MG
5102013-10-03 Marc Glisse <marc.glisse@inria.fr>
511
512 PR c++/19476
513 * c.opt (fcheck-new): Move to common.opt.
514
b56e9788
MP
5152013-09-25 Marek Polacek <polacek@redhat.com>
516 Jakub Jelinek <jakub@redhat.com>
517
518 PR sanitizer/58413
519 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
520 an expression if we can prove it is correct.
521 (ubsan_instrument_division): Likewise. Remove unnecessary
522 check.
523
ce6923c5
MP
5242013-09-18 Marek Polacek <polacek@redhat.com>
525
526 PR sanitizer/58411
527 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
528 Declare it.
529 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
530
fb5610fb
IS
5312013-09-14 Iain Sandoe <iain@codesourcery.com>
532
533 PR target/48094
534 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
535 fobjc-gc, freplace-objc-classes): Accept for LTO.
536
88b0e79e
JC
5372013-09-13 Jacek Caban <jacek@codeweavers.com>
538
539 * c-target.def: New hook
540
c9b0866a
PC
5412013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
542
543 PR c++/43452
544 * c.opt (Wdelete-incomplete): Add.
545
0af94e6f
JR
5462013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
547
548 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
549 (vector_types_compatible_elements_p): New function.
550 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
551 declaration.
552 (vector_types_compatible_elements_p): Declare.
553
7c26172c
GDR
5542013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
555
556 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
557 a virtual member function.
558 (pp_simple_type_specifier): Remove.
559 (pp_c_type_specifier): Likewise.
560 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
561 Rename from pp_c_type_specifier. Adjust.
562 (c_pretty_printer::c_pretty_printer): Do not assign to
563 simple_type_specifier.
564
20059c8b
GDR
5652013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
566
567 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
568 member function.
569 (c_pretty_printer::storage_class_specifier): Likewise.
570 (c_pretty_printer::initializer): Likewise.
571 (pp_declaration): Remove.
572 (pp_declaration_specifiers): Likewise.
573 (pp_abstract_declarator): Likewise.
574 (pp_declarator): Likewise.
575 (pp_type_id): Likewise.
576 (pp_statement): Likewise.
577 (pp_constant): Likewise.
578 (pp_id_expression): Likewise.
579 (pp_primary_expression): Likewise.
580 (pp_unary_expression): Likewise.
581 (pp_multiplicative_expression): Likewise.
582 (pp_conditional_expression): Likewise.
583 (pp_assignment_expression): Likewise.
584 (pp_expression): Likewise.
585 (pp_c_type_id): Likewise.
586 (pp_c_storage_class_specifier): Likewise.
587 * c-pretty-print.c (pp_c_type_cast): Tidy.
588 (pp_c_pointer): Likewise.
589 (pp_c_type_specifier): Likewise.
590 (pp_c_parameter_type_list): Likewise.
591 (pp_c_function_definition): Likewise.
592 (pp_c_init_declarator): Likewise.
593 (pp_c_initializer_list): Likewise.
594 (pp_c_constructor_elts): Likewise.
595 (c_pretty_printer::direct_abstract_declarator): Likewise.
596 (c_pretty_printer::declaration_specifiers): Likewise.
597 (c_pretty_printer::primary_expression): Likewise.
598 (c_pretty_printer::postfix_expression): Likewise.
599 (c_pretty_printer::type_id): Rename from pp_c_type_id.
600 (c_pretty_printer::storage_class_specifier): Rename from
601 pp_c_storage_class_specifier.
602 (c_pretty_printer::initializer): Rename from pp_c_initializer.
603 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
604 storage_class_specifier, initializer, offset_list, flags.
605
de5a5fa1
MP
6062013-08-30 Marek Polacek <polacek@redhat.com>
607
608 * c-ubsan.c: New file.
609 * c-ubsan.h: New file.
610
8f0e4d72
GDR
6112013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
612
613 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
614 member function.
615 (c_pretty_printer::declaration_specifiers): Likewise.
616 (c_pretty_printer::declarator): Likewise.
617 (c_pretty_printer::abstract_declarator): Likewise.
618 (c_pretty_printer::direct_abstract_declarator): Likewise.
619 (c_pretty_printer::direct_declarator): Likewise.
620 (c_pretty_printer::function_specifier): Likewise.
621 (pp_declaration): Adjust.
622 (pp_declaration_specifiers): Likewise.
623 (pp_abstract_declarator): Likewise.
624 (pp_direct_declarator): Likewise.
625 (pp_function_specifier): Likewise.
626 (pp_direct_abstract_declarator): Remove as unused.
627 (pp_c_declaration): Remove.
628 (pp_c_declaration_specifiers): Likewise.
629 (pp_c_declarator): Likewise.
630 (pp_c_direct_declarator): Likewise.
631 (pp_c_function_specifier): Likewise.
632 (pp_c_direct_abstract_declarator): Likewise.
633 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
634 from pp_c_abstract_declarator. Adjust.
635 (c_pretty_printer::direct_abstract_declarator): Rename from
636 pp_c_direct_abstract_declarator. Adjust.
637 (c_pretty_printer::function_specifier): Rename from
638 pp_c_function_specifier. Adjust.
639 (c_pretty_printer::declaration_specifiers): Rename from
640 pp_c_declaration_specifiers. Adjust.
641 (c_pretty_printer::direct_declarator): Rename from
642 pp_c_direct_declarator. Adjust.
643 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
644 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
645 (c_pretty_printer::c_pretty_printer): Do not assign to
646 declaration, declaration_specifiers, declarator,
647 direct_declarator, direct_abstract_declarator, function_specifier.
648
00d34d3a
GDR
6492013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
650
651 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
652 virtual member function.
653 (c_pretty_printer::multiplicative_expression): Likewise.
654 (c_pretty_printer::conditional_expression): Likewise.
655 (c_pretty_printer::assignment_expression): Likewise.
656 (c_pretty_printer::expression): Likewise.
657 (pp_unary_expression): Adjust.
658 (pp_multiplicative_expression): Likewise.
659 (pp_assignment_expression): Likewise.
660 (pp_conditional_expression): Likewise.
661 (pp_expression): Likewise.
662 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
663 from pp_c_unary_expression. Adjust.
664 (c_pretty_printer::multiplicative_expression): Rename from
665 pp_c_multiplicative_expression. Adjust.
666 (c_pretty_printer::conditional_expression): Rename from
667 pp_c_conditional_expression. Adjust.
668 (c_pretty_printer::assignment_expression): Rename from
669 pp_c_assignment_expression. Adjust.
670 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
671 (c_pretty_printer::c_pretty_printer): Do not assign to
672 unary_expression, multiplicative_expression,
673 conditional_expression, expression.
674
fb22178f
GDR
6752013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
676
677 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
678 virtual member function.
679 (pp_postfix_expression): Adjust.
680 (pp_c_postfix_expression): Remove.
681 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
682 from pp_c_postfix_expression. Adjust.
683 (c_pretty_printer::c_pretty_printer): Do not assign to
684 postfix_expression.
685
7ecc2600
GDR
6862013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
687
688 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
689 virtua member function.
690 (pp_primary_expression): Adjust.
691 (pp_c_primary_expression): Remove.
692 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
693 from pp_c_primary_expression. Adjust.
694 (pp_c_initializer_list): Use pp_primary_expression.
695 (c_pretty_printer::c_pretty_printer): Do not assign to
696 primary_expression.
697
0691175f
GDR
6982013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
699
700 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
701 * c-pretty-print.c (M_): Remove.
702 (c_pretty_printer::translate_string): Define.
703 (pp_c_type_specifier): Use it.
704 (pp_c_primary_expression): Likewise.
705 (pp_c_expression): Likewise.
706
66dfe4c4
GDR
7072013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
708
709 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
710 virtual function.
711 (pp_c_id_expression): Remove.
712 (pp_id_expression): Adjust.
713 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
714 pp_c_id_expression. Adjust.
715 (pp_c_postfix_expression): Use pp_id_expression.
716 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
717
ca43e9d5
GDR
7182013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
719
720 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
721 member function.
722 (pp_constant): Adjust.
723 (pp_c_constant): Remove.
724 * c-pretty-print.c (c_pretty_printer::constant): Rename from
725 pp_c_constant. Adjust.
726 (pp_c_constant)
727 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
728 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
729
da6ca2b5
GDR
7302013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
731
732 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
733 (c_pretty_printer::c_pretty_printer): Declare.
734 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
735 c_pretty_printer_init. Adjust.
736 (print_c_tree): Do not call c_pretty_printer_init.
737 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
738
65a372f4
AC
7392013-08-09 Arnaud Charlet <charlet@adacore.com>
740
741 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
742
fd9b0f32
PC
7432013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
744
745 PR c++/58080
746 * c-common.c (pointer_int_sum): Add bool parameter.
747 * c-common.h (pointer_int_sum): Adjust declaration.
748
e0aec1e9
GDR
7492013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
750
751 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
752 c_pretty_printer variable.
753
b066401f
GDR
7542013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
755
756 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
757 (pp_base): Remove.
758 (pp_c_base): Likewise. Adjust users.
759 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
760 (pp_c_whitespace): Do not call pp_base.
761 (pp_c_left_paren): Likewise.
762 (pp_c_right_paren): Likewise.
763 (pp_c_left_brace): Likewise.
764 (pp_c_right_brace): Likewise.
765 (pp_c_left_bracket): Likewise.
766 (pp_c_right_bracket): Likewise.
767 (pp_c_dot): Likewise.
768 (pp_c_ampersand): Likewise.
769 (pp_c_star): Likewise.
770 (pp_c_arrow): Likewise.
771 (pp_c_semicolon): Likewise.
772 (pp_c_complement): Likewise.
773 (pp_c_exclamation): Likewise.
774 (pp_c_direct_declarator): Likewise.
775 (pp_c_ws_string): Likewise.
776 (pp_c_identifier): Likewise.
777 (pp_c_statement): Likewise.
778 (print_c_tree): Likewise.
779
65e5a578
ESR
7802013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
781
782 PR c++/58072
783 * c-common.c (c_parse_error): Catch user-defined literal tokens and
784 provide useful error strings.
785
137a1a27
GDR
7862013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
787
788 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
789 printer functions instead of pp_string or operators and punctuators.
790 (dump_generic_ada_node): Likewise.
791 * c-pretty-print.c (pp_c_type_specifier): Likewise.
792 (pp_c_relational_expression): Likewise.
793 (pp_c_logical_or_expression): Likewise.
794
07838b13
GDR
7952013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
796
797 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
798 functions instead of pp_character.
799 (pp_ada_tree_identifier): Likewise.
800 (dump_ada_double_name): Likewise.
801 (dump_ada_function_declaration): Likewise.
802 (dump_ada_array_domains): Likewise.
803 (dump_template_types): Likewise.
804 (dump_generic_ada_node): Likewise.
805 (print_ada_declaration): Likewise.
806 (print_ada_struct_decl): Likewise.
807 * c-pretty-print.c (pp_c_integer_constant): Likewise.
808
433cc7b0
TT
8092013-07-23 Tom Tromey <tromey@redhat.com>
810
811 * c-common.h (enum rid) <RID_GENERIC>: New constant.
812 * c-common.c (c_common_reswords): Add _Generic.
813
688010ba
OB
8142013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
815
816 * c-common.c: Fix typos.
817 * c-common.h: Likewise.
818
2a99e5e6
LL
8192013-07-13 Lubos Lunak <l.lunak@suse.cz>
820
821 PR c++/55203
822 * c-common.c (c_common_attribute_table): Add warn_unused.
823 (handle_warn_unused_attribute): New.
824
c26302d5
JJ
8252013-07-10 Jakub Jelinek <jakub@redhat.com>
826
827 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
828 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
829
dfeadaa0
PC
8302013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
831
832 PR c++/57869
833 * c.opt: Add Wconditionally-supported.
834
6a2fa4b2
GS
8352013-07-08 Graham Stott <graham.stott@btinternet.com>
836
837 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
838 unused variables l_length and l_node.
839
ecdbd01a 8402013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
841
842 PR c/57821
843 * c-common.c (complete_array_type): Delay folding first index
844 like other indices. When folding, check for index overflow.
845
bedc293e
MG
8462013-06-27 Marc Glisse <marc.glisse@inria.fr>
847
848 PR c++/57509
849 * c-common.h (c_build_vec_perm_expr): New complain argument.
850 * c-common.c (c_build_vec_perm_expr): Likewise.
851 Use save_expr also in C++.
852
604b2bfc
GDR
8532013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
854
855 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
856 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
857 * c-opts.c (c_common_post_options): Likewise.
858
dfeadaa0 8592013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
860
861 * array-notation-common.c (length_mismatch_in_expr): Changed the
862 parameter type's from a dynamic array to a vec_tree. Also removed
863 the size parameters.
864 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
865 the change above.
866
2ce86d2e
BI
8672013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
868
869 * c-common.h (struct cilkplus_an_parts): New structure.
870 (struct cilkplus_an_loop_parts): Likewise.
871 (cilkplus_extract_an_triplets): New prototype.
872 (fix_sec_implicit_args): Likewise.
873 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
874 (fix_sec_implicit_args): Likewise.
604b2bfc 875
07a6825b
BI
8762013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
877
878 * array-notation-common.c (find_inv_trees): Removed an unwanted
879 typecasting.
880 * c-common.h (struct inv_list::additional_tcodes): Changed type from
881 enum rid to enum tree_code.
882
08346abd
JH
8832013-06-11 Jan Hubicka <jh@suse.cz>
884
885 * c-common.c (handle_alias_ifunc_attribute): Do not set
886 DECL_EXTERNAL for weakref variables.
887 * c-pragma.c (handle_pragma_weak): Make sure aliases
888 are not declared as external.
889
d60f1706
BI
8902013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
891
892 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
893 function from c/c-array-notation.c.
894 (is_cilkplus_reduce_builtin): Likewise.
895 (find_rank): Likewise.
896 (extract_array_notation_exprs): Likewise.
897 (replace_array_notations): Likewise.
898 (find_inv_trees): Likewise.
899 (replace_inv_trees): Likewise.
900 (contains_array_notation_expr): Likewise.
901 (find_correct_array_notation_type): Likewise.
902 * c-common.h (struct inv_list): Moved this struct from the file
903 c/c-array-notation.c and added a new field called additional tcodes.
904 (length_mismatch_in_expr_p): New prototype.
905 (is_cilkplus_reduce_builtin): Likewise.
906 (find_rank): Likewise.
907 (extract_array_notation_exprs): Likewise.
908 (replace_array_notation): Likewise.
909 (find_inv_trees): Likewise.
910 (replace_inv_trees): Likewise.
911 (find_correct_array_notation_type): Likewise.
dfeadaa0 912
36536d79
BI
9132013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
914
915 * c-common.c (c_define_builtins): When cilkplus is enabled, the
916 function array_notation_init_builtins is called.
917 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
918 * c-common.def (ARRAY_NOTATION_REF): New tree.
919 * c-common.h (build_array_notation_expr): New function declaration.
920 (build_array_notation_ref): Likewise.
921 (extract_sec_implicit_index_arg): New extern declaration.
922 (is_sec_implicit_index_fn): Likewise.
923 (ARRAY_NOTATION_CHECK): New define.
924 (ARRAY_NOTATION_ARRAY): Likewise.
925 (ARRAY_NOTATION_START): Likewise.
926 (ARRAY_NOTATION_LENGTH): Likewise.
927 (ARRAY_NOTATION_STRIDE): Likewise.
928 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
929 ARRAY_NOTATION_REF.
930 (pp_c_expression): Likewise.
931 * c.opt (flag_enable_cilkplus): New flag.
932 * array-notation-common.c: New file.
933
f7716d57
JJ
9342013-05-14 Jakub Jelinek <jakub@redhat.com>
935
936 PR c++/57274
937 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
938
a5e0cd1d
MG
9392013-05-10 Marc Glisse <marc.glisse@inria.fr>
940
941 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
942 vectors.
943
f6bc1c4a
HS
9442013-05-07 Han Shen <shenhan@google.com>
945
946 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
947
3f12f6e9
SKS
9482013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
949
950 * c-common.c (check_user_alignment): Emit error for negative values.
951
61949153
PC
9522013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
953
954 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
955
e93e18e9
PC
9562013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
957
958 * c-cppbuiltin.c (c_cpp_builtins): Do not define
959 __GXX_EXPERIMENTAL_CXX1Y__.
960
44d90fe1
PC
9612013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
962 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
963
964 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
965 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
966 to simply use OPT_Wpointer_arith.
967 (c_sizeof_or_alignof_type): Likewise.
968
13f39b2e
PC
9692013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
970
971 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
972
4b84d650
JJ
9732013-04-12 Jakub Jelinek <jakub@redhat.com>
974
975 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
976 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
977 specifiers.
978
fb037b5d
SB
9792013-04-07 Steven Bosscher <steven@gcc.gnu.org>
980
981 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
982
4e856798
PC
9832013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
984
985 * c-common.c (pointer_int_sum): Remove dead code.
986
4b1baac8
RS
9872013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
988
989 PR middle-end/56524
990 * c-common.c (handle_optimize_attribute): Don't call
991 save_optabs_if_changed.
992
0b50e654
JJ
9932013-03-05 Jakub Jelinek <jakub@redhat.com>
994
995 PR middle-end/56461
996 * c-pch.c (pch_init): Free target_validity at the end.
997
48c41403
JJ
9982013-03-04 Jakub Jelinek <jakub@redhat.com>
999
1000 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1001
e664c61c
KS
10022013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1003 Jakub Jelinek <jakub@redhat.com>
1004
1005 PR sanitizer/56454
1006 * c-common.c (handle_no_sanitize_address_attribute): New function.
1007 (c_common_attribute_table): Add no_sanitize_address attribute.
1008 (handle_no_address_safety_analysis_attribute): Add
1009 no_sanitize_address attribute, not no_address_safety_analysis
1010 attribute.
1011
a475fd3d 10122013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1013
1014 PR target/52555
1015 * c-common.c (handle_optimize_attribute): Call
1016 save_optabs_if_changed.
1017
f6007d99
JJ
10182013-02-18 Jakub Jelinek <jakub@redhat.com>
1019 Steven Bosscher <steven@gcc.gnu.org>
1020
1021 PR pch/54117
1022 * c-opts.c (c_common_post_options): If debug info is enabled
1023 and non-dwarf*, refuse to load PCH files and when writing PCH
1024 file warn.
1025
cf35e2b1
JJ
10262013-02-05 Jakub Jelinek <jakub@redhat.com>
1027
1028 PR middle-end/56167
1029 * c-common.c (handle_error_attribute): Fix condition.
1030
32887460
JJ
10312013-01-30 Jakub Jelinek <jakub@redhat.com>
1032
1033 PR c++/55742
1034 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1035
5af057d8
JM
10362013-01-18 Jason Merrill <jason@redhat.com>
1037
1038 PR target/54908
1039 * c.opt (-fextern-tls-init): New.
1040 * c-opts.c (c_common_post_options): Handle it.
1041
cc83c823
JJ
10422013-01-09 Jakub Jelinek <jakub@redhat.com>
1043
1044 PR c/48418
1045 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1046 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1047 and is either negative or bigger or equal to type precision
1048 of the first operand.
1049
a859517f
MP
10502012-12-03 Marek Polacek <polacek@redhat.com>
1051
1052 PR c/55570
1053 * c-common.c (check_user_alignment): Swap order of tests,
1054 check TREE_CODE first.
1055
2d7aa578
ESR
10562012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1057
1058 PR c++/52654
1059 * c-common.h (overflow_type): New enum.
1060 (build_userdef_literal): Add overflow_type argument.
1061 (tree_userdef_literal): Add overflow_type.
1062 (USERDEF_LITERAL_OVERFLOW): New access macro.
1063 * c-common.c (build_userdef_literal): Add overflow_type
1064 argument.
1065 * c-lex.c (c_lex_with_flags): Add overflow_type to
1066 build_userdef_literal calls.
1067 (interpret_integer, interpret_float): Add overflow_type argument.
1068
cc3c4f62
RB
10692012-11-28 Richard Biener <rguenther@suse.de>
1070
1071 PR c/35634
1072 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1073 here and use a type with proper overflow behavior for types that would
1074 need to be promoted for the arithmetic.
1075
77bc5132
JJ
10762012-11-23 Jakub Jelinek <jakub@redhat.com>
1077
1078 PR sanitizer/55435
1079 * c-common.c (handle_no_address_safety_analysis_attribute): New
1080 function.
1081 (c_common_attribute_table): Add no_address_safety_analysis.
1082
5dc99c46
SB
10832012-11-16 Simon Baldwin <simonb@google.com>
1084
1085 * c.opt: Add f[no-]canonical-system-headers.
1086 * c-opts.c (c_common_handle_option): Handle
1087 OPT_fcanonical_system_headers.
1088
a4a0016d
ESR
10892012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1090
1091 PR c++/54413
1092 * c-opts.c (c_common_handle_option): Set new flags.
1093 * c.opt: Describe new flags.
1094
7dbb85a7
JM
10952012-11-09 Jason Merrill <jason@redhat.com>
1096
1097 * c.opt (Wabi-tag): New.
1098
ad7bac31
AK
10992012-11-09 Andi Kleen <ak@linux.intel.com>
1100
1101 PR 55139
1102 * c-common.c (get_atomic_generic_size): Mask with
1103 MEMMODEL_MASK
1104
7332899a
MLI
11052012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1106
1107 PR c/53063
1108 * c.opt (Wformat): Make it Alias Wformat=1.
1109 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1110 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1111 LangEnabledBy.
1112 (Wformat=): RejectNegative. Use LangEnabledBy.
1113 (Wnonnull): Use LangEnabledBy.
1114 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1115 * c-format.c (set_Wformat): Delete.
1116 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1117 (maybe_read_dollar_number): Likewise.
1118 (avoid_dollar_number): Likewise.
1119 (finish_dollar_format_checking): Likewise.
1120 (check_format_info): Likewise.
1121 (check_format_info_main): Likewise.
1122 (check_format_types): Likewise.
1123 (format_type_warning): Likewise.
1124 * c-common.c (int): Likewise.
1125 (check_function_sentinel): Likewise.
1126 * c-common.h (warn_format,set_Wformat): Do not declare here.
1127
34a180a6
MLI
11282012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1129
1130 PR c/53063
1131 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1132 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1133 Use LangEnabledBy.
1134 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1135 common.opt.
1136 (Wvariadic-macros): Init(1).
1137 * c-opts.c (c_common_handle_option): Do not handle them
1138 explicitly.
1139 (c_common_post_options): Likewise.
1140 (sanitize_cpp_opts): warn_unused_macros is now
1141 cpp_warn_unused_macros.
1142 (push_command_line_include): Likewise.
1143 * c-common.c (warn_unknown_pragmas): Do not define.
1144 * c-common.h (warn_unknown_pragmas): Do not declare.
1145
3f46d6a5
MLI
11462012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1147
1148 PR c/51294
1149 * c-common.c (conversion_warning): Handle conditional expressions.
1150
880661a4
JW
11512012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1152
1153 PR c++/54930
1154 * c.opt (Wreturn_local_addr): Define new option.
1155
4514a96b
JM
11562012-10-25 Jason Merrill <jason@redhat.com>
1157
f14edc1a
JM
1158 * c.opt (Wvirtual-move-assign): New.
1159
4514a96b
JM
1160 * c.opt (Winherited-variadic-ctor): New.
1161
93100c6b
MG
11622012-10-25 Marc Glisse <marc.glisse@inria.fr>
1163
1164 PR c++/54427
1165 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1166
1efcb8c6
JM
11672012-10-23 Joseph Myers <joseph@codesourcery.com>
1168
1169 * c-common.h (pch_cpp_save_state): Declare.
1170 * c-target.def (c_preinclude): New hook.
1171 * c-opts.c (done_preinclude): New.
1172 (push_command_line_include): Handle default preincluded header.
1173 (cb_file_change): Call pch_cpp_save_state when calling
1174 push_command_line_include.
1175 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1176 (pch_cpp_save_state): New.
1177 (pch_init): Call pch_cpp_save_state conditionally, instead of
1178 calling cpp_save_state.
1179
4a0ae68e
MLI
11802012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1181
1182 PR c/53063
1183 PR c/40989
1184 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1185 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1186 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1187 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1188 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1189 * c-opts.c (c_common_handle_option): Remove explicit handling from
1190 here.
1191 (c_common_post_options): Likewise.
1192
67e4210b
EB
11932012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1194
1195 * c-ada-spec.c (LOCATION_COL): Delete.
1196 (compare_location): New function.
1197 (compare_node): Use it.
1198 (compare_comment): Likewise.
1199
65d4f2cd
MLI
12002012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1201
1202 PR c/53063
1203 PR c/40989
1204 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1205 * c-opts.c (c_common_handle_option): Do not set them here. Add
1206 comment.
1207 (c_common_post_options): Likewise.
1208
909881cb
EB
12092012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1210
1211 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1212 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1213 Remove POINTER_TYPE handling, add large unsigned handling and use
1214 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1215
3a785c97
JJ
12162012-10-12 Jakub Jelinek <jakub@redhat.com>
1217
1218 PR c/54381
1219 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1220 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1221 locs and array of 3 trees instead of just single loc and single
1222 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1223 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1224 For *cmp* builtins that take two sources strings report warnings
1225 about first and second source, not about destination and source.
1226
5e54f81d
MG
12272012-10-12 Marc Glisse <marc.glisse@inria.fr>
1228
1229 PR c++/53055
1230 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1231
f5b02f1e
EB
12322012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1233
1234 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1235 declaring something coming from another file.
1236
b46dbc6c
AC
12372012-10-10 Arnaud Charlet <charlet@adacore.com>
1238
f5b02f1e 1239 PR ada/54845
b46dbc6c
AC
1240 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1241
5d9de0d0
PC
12422012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1243
1244 PR c++/54194
1245 * c-common.c (warn_about_parentheses): Add location_t parameter;
1246 use EXPR_LOC_OR_LOC.
1247 * c-common.h: Update declaration.
1248
a212e43f
MG
12492012-10-09 Marc Glisse <marc.glisse@inria.fr>
1250
1251 PR c++/54427
1252 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1253 more operations. Make error messages optional.
1254 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1255 (scalar_to_vector): Declare.
1256
b1db7f91
JM
12572012-10-08 Jason Merrill <jason@redhat.com>
1258
1259 * c-common.c (c_common_reswords): Add thread_local.
1260
e28d52cf
DS
12612012-10-08 Dodji Seketeli <dodji@redhat.com>
1262
1263 PR c++/53528 C++11 attribute support
1264 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1265 new functions.
1266 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1267 static function.
1268 (handle_aligned_attribute): In choose strictest alignment
1269 among many. Use new check_cxx_fundamental_alignment_constraints.
1270 (handle_transparent_union_attribute): In c++11 attribute syntax,
1271 don't look through typedefs.
1272
3b78de56
AC
12732012-10-04 Arnaud Charlet <charlet@adacore.com>
1274
1275 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1276 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1277 out of dumpfile.h.
1278
6040bb5f
DC
12792012-09-25 Dehao Chen <dehao@google.com>
1280
1281 PR middle-end/54645
3b78de56 1282 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1283 map when read in the pch.
1284
0b07a57e
AC
12852012-09-18 Arnaud Charlet <charlet@adacore.com>
1286
1287 * c-ada-spec.c: Style fixes.
1288
da5182be
TQ
12892012-09-18 Thomas Quinot <quinot@adacore.com>
1290
1291 * c.opt (-fada-spec-parent): Define new command line switch.
1292 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1293 is specified, generate binding spec as a child of the specified unit.
1294
0ccb505d
PC
12952012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1296 Manuel López-Ibáñez <manu@gcc.gnu.org>
1297
1298 PR c++/53210
1299 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1300
c583af79
AC
13012012-08-23 Arnaud Charlet <charlet@adacore.com>
1302
1303 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1304 for pointers, and add missing Convention C pragma.
1305 (print_ada_struct_decl): Add missing aliased keyword.
1306 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1307
1a4049e7
JJ
13082012-08-17 Jakub Jelinek <jakub@redhat.com>
1309
1310 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1311 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1312 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1313 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1314 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1315
70b5e7dc
RG
13162012-08-10 Richard Guenther <rguenther@suse.de>
1317
1318 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1319
f8923f7e
SB
13202012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1321
1322 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1323 instead of separate pp_newline and pp_flush.
1324 (print_c_tree): Likewise.
1325
e45abe1f
RH
13262012-07-26 Richard Henderson <rth@redhat.com>
1327
1328 * c-common.c (handle_hot_attribute): Allow labels.
1329 (handle_cold_attribute): Likewise.
1330
332f1d24
JJ
13312012-07-20 Jakub Jelinek <jakub@redhat.com>
1332
1333 PR c++/28656
1334 * c-common.c (check_function_nonnull): Handle multiple nonnull
1335 attributes properly.
1336
7ee2468b
SB
13372012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1338
1339 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1340 * c-ada-spec.c: Likewise.
1341 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1342
ee7b28eb
SB
13432012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1344
1345 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1346 Remove code conditional on it.
1347
6bdf3519
SB
13482012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1349
1350 * c-gimplify.c: Do not include basic-block.h.
1351 * c-common.c: Do not include linfuncs.h.
1352
532aafad
SB
13532012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1354
1355 * c-common.h: Include tree.h.
1356
8d0d1915
JM
13572012-07-02 Jason Merrill <jason@redhat.com>
1358
1359 PR c++/53524
1360 * c-common.c (get_priority): Call default_conversion.
1361
fbc873ad
UB
13622012-07-01 Uros Bizjak <ubizjak@gmail.com>
1363
1364 * c-pch.c (c_common_write_pch): Remove unused variables.
1365
d4a10d0a
SB
13662012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1367
1368 * cppspec.c: Moved from gcc/ to here.
1369
6f3a2e23
KT
13702012-06-27 Kai Tietz <ktietz@redhat.com>
1371
1372 PR preprocessor/37215
1373 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1374
8ca92d04
SB
13752012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1376
1377 * c-common.h (c_common_print_pch_checksum): Remove.
1378 * c-pch.c: Do not include output.h.
1379 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1380 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1381 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1382 (struct c_pch_header): Remove.
1383 (get_ident): Update gpch version.
1384 (pch_init): Do not print executable_checksum to asm_out_file.
1385 Do not fail if there is no asm_out_file to read back from. Set
1386 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1387 (c_common_write_pch): Verify that nothing was written to asm_out_file
1388 since pch_init was called. Do not write a c_pch_header, and do not
1389 copy from asm_out_file to the PCH.
1390 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1391 the content of asm_out_file from the PCH.
1392 (c_common_print_pch_checksum): Remove.
1393 * c-opts.c (c_common_init): Print out executable_checksum directly.
1394
70f42967
SB
13952012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1396
1397 * c-target.def (objc_declare_unresolved_class_reference,
1398 objc_declare_class_definition): Add new hooks.
1399
a8781821
SB
14002012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1401
1402 * c-lex.c: Do not include output.h.
1403 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1404 Remove uses of ASM_OUTPUT_IDENT.
1405
9e1a8dd1
RR
14062012-06-15 Marc Glisse <marc.glisse@inria.fr>
1407
1408 PR c++/51033
1409 * c-common.h (c_build_vec_perm_expr): Move decl here.
1410 * c-common.c (c_build_vec_perm_expr): Move definition
1411 here.
1412
6f07a821
SB
14132012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1414
1415 * c.opt (fconserve-space): Turn into a no-op.
1416
9faeb493 14172012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1418
1419 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1420 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1421 both the start and end of the function.
1422
a4b7d13c
SB
14232012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1424
1425 * c-common.c: Do not include output.h.
1426 * c-pragma.c: Likewise.
1427
c265f413
SA
14282012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1429
1430 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1431 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1432 (lang_decl_name): Handle namespace decls.
1433
be7a421e
SB
14342012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1435
1436 * c-ada-spec.c: Do not include output.h.
1437 * c-semantics.c: Likewise.
1438
65de6659
JM
14392012-05-29 Joseph Myers <joseph@codesourcery.com>
1440
1441 * c-common.c: Fix typo.
1442
ca5f4331
MM
14432012-05-29 Michael Matz <matz@suse.de>
1444
1445 * c-common.h (c_expand_decl): Remove prototype.
1446
4f7f7aca
MLI
14472012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1448
1449 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1450 * c-opts.c (c_common_handle_option): Remove code handling
1451 warn_missing_braces.
1452
4a792f9b
PC
14532012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1454
1455 PR c++/25137
1456 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1457 -Wmissing_braces.
1458
650dc14a
DS
14592012-05-22 Dodji Seketeli <dodji@redhat.com>
1460
1461 PR c++/53322
1462 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1463
9b095bf1
MLI
14642012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1465
1466 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1467 * c-opts.c (c_common_handle_option): Do not handle explicitly
1468 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1469
0b2c4be5
DS
14702012-05-16 Dodji Seketeli <dodji@redhat.com>
1471
1472 PR preprocessor/7263
1473 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1474 to cpp_classify_number. For diagnostics, use the precise location
1475 instead of the global input_location.
1476
a1bde5af
PC
14772012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1478
d02924ef 1479 PR c++/11856
a1bde5af
PC
1480 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1481
d1ede5f4
BS
14822012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1483
a1bde5af 1484 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1485
f2bc201f
MLI
14862012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1487
1488 PR 53063
1489 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1490 Wreorder): Use LangEnabledBy.
1491 * c-opts.c (c_common_handle_option): Do not enable them
1492 explicitly. Call lang-specific generated functions.
1493 (c_common_post_options): Do not set them here.
1494
95744782
MLI
14952012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1496
1497 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1498 Wmissing-field-initializers,Wmissing-parameter-type,
1499 Wold-style-declaration,Woverride-init): Use EnabledBy.
1500 * c-opts.c (c_common_post_options): Do not set here explicitly.
1501
7d5a5747
MLI
15022012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1503
1504 PR 53063
1505 * c-opts.c (c_common_handle_option): Use handle_generated_option
1506 to enable sub-options.
1507
5a3c9cf2
PC
15082012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1509
1510 PR c++/53158
1511 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1512
3ac8781c
RG
15132012-05-10 Richard Guenther <rguenther@suse.de>
1514
1515 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1516 adjust commentary about TYPE_IS_SIZETYPE types.
1517
1e537948
MLI
15182012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1519
1520 PR c++/53261
1521 * c-common.c (warn_logical_operator): Check that argument of
1522 integer_zerop is not NULL.
1523
f2c4a785
MLI
15242012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1525
1526 PR c/43772
1527 * c-common.c (warn_logical_operator): Do not warn if either side
1528 is already true or false.
1529
50f305ca
MLI
15302012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1531
1532 PR c/51712
1533 * c-common.c (expr_original_type): New.
1534 (shorten_compare): Do not warn for enumeration types.
1535
0c3641b0
MLI
15362012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1537
1538 * c.opt (fpermissive): Add Var(flag_permissive).
1539
7edaa4d2
MG
15402012-04-30 Marc Glisse <marc.glisse@inria.fr>
1541
1542 PR c++/51033
1543 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1544 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1545
b9c8da34
DS
15462012-04-30 Dodji Seketeli <dodji@redhat.com>
1547
1548 Add -Wvarargs option
1549 * c.opt (Wvarargs): Define new option.
1550
e6c69da0
MLI
15512012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1552
1553 * c-common.c (check_function_arguments): Replace
1554 Wmissing-format-attribute with Wsuggest-attribute=format.
1555
90137d8f
MLI
15562012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1557
1558 * c.opt (Wsuggest-attribute=format): New. Alias of
1559 Wmissing-format-attribute.
1560 * c-format.c (decode_format_type): Replace
1561 Wmissing-format-attribute with Wsuggest-attribute=format.
1562 (check_function_format): Likewise.
1563
9faeb493 15642012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1565
1566 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1567 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1568 * c.opt: Add Wliteral-suffix.
1569
c1771a20
MLI
15702012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1571
1572 PR c/44774
1573 * c.opt (Wpedantic): New.
1574 (pedantic): Alias Wpedantic.
1575 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1576 (c_common_post_options): Likewise.
1577 (sanitize_cpp_opts): Likewise.
1578 * c-lex.c (interpret_float): Likewise.
1579 * c-format.c (check_format_types): Likewise.
1580 * c-common.c (pointer_int_sum): Likewise.
1581 (c_sizeof_or_alignof_type): Likewise.
1582 (c_add_case_label): Likewise.
1583 (c_do_switch_warnings): Likewise.
1584 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1585
04b391c1
JM
15862012-04-15 Jason Merrill <jason@redhat.com>
1587
1588 PR c++/52818
1589 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1590 (C_STD_NAME): Distinguish between C++98 and C++11.
1591
ac868f29
EB
15922012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1593
1594 PR target/52624
1595 * c-common.h (uint16_type_node): Rename into...
1596 (c_uint16_type_node): ...this.
1597 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1598 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1599
fd4116f4
MLI
16002012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1601
1602 * c-common.c (warn_if_unused_value): Move definition to here.
1603 * c-common.h (warn_if_unused_value): Move declaration to here.
1604
573ac65e
WB
16052012-03-23 William Bader <williambader@hotmail.com>
1606
1607 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1608
552b8185
JM
16092012-03-20 Jason Merrill <jason@redhat.com>
1610
1611 * c-common.h (enum cxx_dialect): Add cxx1y.
1612 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1613 test.
1614 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1615 * c-opts.c (c_common_post_options): Likewise.
1616 (set_std_cxx1y): New.
1617 (c_common_handle_option): Call it.
1618 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1619
04398fa8
PC
16202012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1621
1622 PR c++/14710
1623 * c.opt ([Wuseless-cast]): Add.
1624
d2a12ae7
RG
16252012-03-16 Richard Guenther <rguenther@suse.de>
1626
1627 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1628
a12bf402
MLI
16292012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1630
1631 PR c++/44783
1632 * c.opt (ftemplate-backtrace-limit) Add.
1633
5c30094f
RO
16342012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1635
1636 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1637 handling.
1638 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1639 (init_pragma): Don't register extern_prefix.
1640
21fa2faf
RG
16412012-03-12 Richard Guenther <rguenther@suse.de>
1642
1643 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1644 (builtin_type_for_size): Likewise.
1645
e3793c6f
JJ
16462012-02-13 Jakub Jelinek <jakub@redhat.com>
1647
1648 PR c++/52215
1649 * c-common.c (sync_resolve_params): Don't decide whether to convert
1650 or not based on TYPE_SIZE comparison, convert whenever arg_type
1651 is unsigned INTEGER_TYPE.
1652
93286335
PC
16532012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1654
1655 PR c/52118
1656 * c.opt ([Wunused-local-typedefs]): Fix description.
1657
7a421706
MS
16582012-01-24 Mike Stump <mikestump@comcast.net>
1659
1660 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1661 exactly.
1662
ba9b1f11
RG
16632012-01-18 Richard Guenther <rguenther@suse.de>
1664
1665 * c-opts.c (c_common_post_options): Reset LTO flags if
1666 we are about to generate a PCH.
1667
465406be
PC
16682012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1669
1670 PR c++/51777
1671 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1672 use pp_unsigned_wide_integer.
1673
aee15221
RG
16742012-01-10 Richard Guenther <rguenther@suse.de>
1675
1676 PR middle-end/51806
1677 * c-opts.c (c_common_handle_option): Move -Werror handling
1678 to language independent code.
1679
5720c0dc
RG
16802012-01-05 Richard Guenther <rguenther@suse.de>
1681
1682 PR middle-end/51764
1683 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1684 from common.opt.
1685
73ac190a
PC
16862011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1687
1688 PR c++/51316
1689 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1690 of array types with an unknown bound.
1691
48b0b196
JM
16922011-12-20 Joseph Myers <joseph@codesourcery.com>
1693
1694 * c-common.c (flag_isoc99): Update comment to refer to C11.
1695 (flag_isoc1x): Change to flag_isoc11.
1696 * c-common.h (flag_isoc99): Update comment to refer to C11.
1697 (flag_isoc1x): Change to flag_isoc11.
1698 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1699 C11.
1700 * c-opts.c (set_std_c1x): Change to set_std_c11.
1701 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1702 Call set_std_c11.
1703 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1704 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1705 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1706 standard.
1707 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1708 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1709 (std=gnu1x): Make alias of std=gnu11.
1710
d58d6eb5
JM
17112011-12-19 Jason Merrill <jason@redhat.com>
1712
1713 PR c++/51228
1714 * c-common.c (handle_transparent_union_attribute): Check the first
1715 field if the type is complete.
1716
b3908fcc
JW
17172011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1718
1719 PR libstdc++/51365
1720 * c-common.c (RID_IS_FINAL): Add.
1721 * c-common.h (RID_IS_FINAL): Add.
1722
fea3ca91
IS
17232011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1724
1725 * c.opt (fgnu-runtime): Provide full description.
1726 (fnext-runtime): Likewise.
1727 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1728
62bad7cd
AM
17292011-11-28 Andrew MacLeod <amacleod@redhat.com>
1730
1731 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1732 predefines in one place. Add LOCK_FREE predefines.
1733 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1734 new func.
1735
c466c4ff
AM
17362011-11-24 Andrew MacLeod <amacleod@redhat.com>
1737
1738 PR c/51256
9faeb493 1739 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1740 conditions
9faeb493
UB
1741 (resolve_overloaded_atomic_exchange,
1742 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1743 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1744 error_mark_node for error conditions.
9faeb493 1745
a5952633
RG
17462011-11-08 Richard Guenther <rguenther@suse.de>
1747
1748 PR middle-end/51010
1749 c-family/
1750
0a35513e
AH
17512011-11-07 Richard Henderson <rth@redhat.com>
1752 Aldy Hernandez <aldyh@redhat.com>
1753 Torvald Riegel <triegel@redhat.com>
1754
1755 Merged from transactional-memory.
1756
1757 * c-common.c (handle_tm_wrap_attribute,
1758 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1759 (struct c_common_reswords): Added __transaction* keywords.
1760 (struct c_common_attribute_table): Added transaction* and tm_regparm
1761 attributes.
1762 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1763 masks.
1764 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1765 find_tm_attribute): Declare.
1766
6d87092d
JM
17672011-11-07 Jason Merrill <jason@redhat.com>
1768
1769 PR c++/35688
1770 * c-common.c, c-common.h: Revert yesterday's changes.
1771
8e7860a1
JM
17722011-11-06 Jason Merrill <jason@redhat.com>
1773
1774 PR c++/35688
1775 * c-common.c (decl_has_visibility_attr): Split out from...
1776 (c_determine_visibility): ...here.
1777 * c-common.h: Declare it.
1778
d19fa6b5
JM
17792011-11-06 Joseph Myers <joseph@codesourcery.com>
1780
1781 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1782 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1783 type.
1784 (check_user_alignment): New. Split out of
1785 handle_aligned_attribute. Disallow integer constants with
1786 noninteger types. Conditionally allow zero.
1787 (handle_aligned_attribute): Use check_user_alignment.
1788 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1789
86951993
AM
17902011-11-06 Andrew MacLeod <amacleod@redhat.com>
1791 Richard Henderson <rth@redhat.com>
1792
1793 Merged from cxx-mem-model.
1794
1795 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1796 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1797 parameters that are the same type size.
1798 (get_atomic_generic_size): New. Find size of generic
1799 atomic function parameters and do typechecking.
1800 (add_atomic_size_parameter): New. Insert size into parameter list.
1801 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1802 either __atomic_exchange_n or external library call.
9faeb493 1803 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1804 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1805 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1806 __atomic_load_n or an external library call.
1807 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1808 __atomic_store_n or an external library call.
1809 (resolve_overloaded_builtin): Handle new __atomic builtins.
1810
cf9e9959
EB
18112011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1812
1813 PR c++/50608
1814 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1815 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1816 <INDIRECT_REF>: Return the argument.
1817 <ARRAY_REF>: Remove special code for negative offset.
1818 Call fold_build_pointer_plus instead of size_binop.
1819 (fold_offsetof): Remove STOP_REF argument and adjust.
1820 * c-common.h (fold_offsetof_1): Declare.
1821 (fold_offsetof): Remove STOP_REF argument.
1822
25339f10
JM
18232011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1824
1825 PR c++/50810
1826 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1827 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1828 Wnarrowing for C++0x and C++98.
1829 * c.opt ([Wnarrowing]): Update.
1830
89401152
PC
18312011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1832
1833 PR c++/44277
1834 * c.opt: Add Wzero-as-null-pointer-constant.
1835
97e3ad20
JM
18362011-10-31 Jason Merrill <jason@redhat.com>
1837
15694fdd
JM
1838 * c.opt (-fdeduce-init-list): Off by default.
1839
97e3ad20
JM
1840 PR c++/50920
1841 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1842 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1843 and -Wc++11-compat.
1844 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1845
fb9120e3
RAV
18462011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1847
1848 PR c++/30066
1849 * c.opt (fvisibility-inlines-hidden): Description change.
1850
3ce4f9e4
ESR
18512011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1852
1853 Implement C++11 user-defined literals.
1854 * c-common.c (build_userdef_literal): New.
1855 * c-common.def: New tree code.
1856 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1857 * c-lex.c (interpret_float): Add suffix parm.
1858 (c_lex_with_flags): Build literal tokens.
1859
5f53c243
PC
18602011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1861
1862 PR c++/50841
1863 Revert:
1864 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1865
1866 PR c++/50810
1867 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1868 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1869 Wnarrowing for C++0x and C++98.
1870 * c.opt ([Wnarrowing]): Update.
1871
263734e1
PC
18722011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1873
1874 PR c++/50810
1875 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1876 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1877 Wnarrowing for C++0x and C++98.
1878 * c.opt ([Wnarrowing]): Update.
1879
d2e312d7
PC
18802011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1881
1882 PR c++/45385
1883 * c-common.c (conversion_warning): Remove code looking for
1884 artificial operands.
1885
d17687f6
DS
18862011-10-18 Dodji Seketeli <dodji@redhat.com>
1887
1888 PR bootstrap/50760
1889 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1890 !NO_IMPLICIT_EXTERN_C.
d17687f6 1891
fc8396e9
PC
18922011-10-17 Michael Spertus <mike_spertus@symantec.com>
1893
1894 * c-common.c (c_common_reswords): Add __bases,
1895 __direct_bases.
1896 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1897
18982011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1899
1900 PR c++/50757
1901 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1902
847e697a
TT
19032011-10-15 Tom Tromey <tromey@redhat.com>
1904 Dodji Seketeli <dodji@redhat.com>
1905
1906 * c.opt (fdebug-cpp): New option.
1907 * c-opts.c (c_common_handle_option): Handle the option.
1908 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1909 output stream in parameter. Factorized from ...
1910 (maybe_print_line): ... this. Dump location debug information when
1911 -fdebug-cpp is in effect.
1912 (print_line_1): New static function. Takes an output stream in
1913 parameter. Factorized from ...
1914 (print_line): ... here. Dump location information when -fdebug-cpp
1915 is in effect.
1916 (scan_translation_unit): Dump location information when
1917 -fdebug-cpp is in effect.
1918
92582b75
TT
19192011-10-15 Tom Tromey <tromey@redhat.com>
1920 Dodji Seketeli <dodji@redhat.com>
1921
1922 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1923 without argument.
1924 * c-opts.c (c_common_handle_option)<case
1925 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1926 cases. Handle -ftrack-macro-expansion with and without argument.
1927
46427374
TT
19282011-10-15 Tom Tromey <tromey@redhat.com>
1929 Dodji Seketeli <dodji@redhat.com>
1930
1931 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1932 (print_line, cb_define, do_line_change): Adjust to avoid touching
1933 the internals of struct line_map. Use the public API instead.
1934 * c-pch.c (c_common_read_pch): Likewise.
1935 * c-lex.c (fe_file_change): Likewise.
1936
fc8396e9
PC
19372011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1938
1939 PR c++/17212
1940 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1941
19422011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1943
1944 PR c++/33067
1945 * c-pretty-print.c (pp_c_floating_constant): Output
1946 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1947
e79983f4
MM
19482011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1949
1950 * c-common.c (def_builtin_1): Delete old interface with two
1951 parallel arrays to hold standard builtin declarations, and replace
1952 it with a function based interface that can support creating
1953 builtins on the fly in the future. Change all uses, and poison
1954 the old names. Make sure 0 is not a legitimate builtin index.
1955 * c-omp.c (c_finish_omp_barrier): Ditto.
1956 (c_finish_omp_taskwait): Ditto.
1957 (c_finish_omp_flush): Ditto.
1958
6637388f
TG
19592011-10-11 Tristan Gingold <gingold@adacore.com>
1960
1961 * c.opt: (fallow-parameterless-variadic-functions): New.
1962
3797cb21
DS
19632011-09-08 Dodji Seketeli <dodji@redhat.com>
1964
1965 PR c++/33255 - Support -Wunused-local-typedefs warning
1966 * c-common.h (struct c_language_function::local_typedefs): New
1967 field.
9faeb493
UB
1968 (record_locally_defined_typedef, maybe_record_typedef_use)
1969 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1970 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1971 (maybe_record_typedef_use)
1972 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1973 * c.opt: Declare new -Wunused-local-typedefs flag.
1974
693ddb1b
EB
19752011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1976
1977 PR middle-end/50266
1978 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1979 computations.
1980
830c740f
RG
19812011-09-05 Richard Guenther <rguenther@suse.de>
1982
1983 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1984 of integer_minus_one_node for empty array upper bounds.
1985
892a371f
DS
19862011-08-28 Dodji Seketeli <dodji@redhat.com>
1987
1988 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1989 it's the first time it's being called on this main TU.
1990
0e3fdb48
RB
19912011-08-24 Richard Guenther <rguenther@suse.de>
1992
1993 PR c/49396
1994 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1995
19962011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1997
1998 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1999 defined in cpp_init_builtins and c_cpp_builtins.
2000
d4a83c10
JM
20012011-08-19 Joseph Myers <joseph@codesourcery.com>
2002
2003 * c-common.c (c_common_reswords): Add __builtin_complex.
2004 * c-common.h (RID_BUILTIN_COMPLEX): New.
2005
bbceee64
JM
20062011-08-18 Joseph Myers <joseph@codesourcery.com>
2007
2008 * c-common.c (c_common_reswords): Add _Noreturn.
2009 (keyword_is_function_specifier): Handle RID_NORETURN.
2010 * c-common.h (RID_NORETURN): New.
2011
0e3a99ae
AS
20122011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2013
2014 * c-common.c (unsafe_conversion_p): New function. Check if it is
2015 unsafe to convert an expression to the type.
2016 (conversion_warning): Adjust, use unsafe_conversion_p.
2017 * c-common.h (unsafe_conversion_p): New function declaration.
2018
20906c66
JJ
20192011-08-02 Jakub Jelinek <jakub@redhat.com>
2020
2021 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2022 (c_finish_omp_taskyield): New prototype.
2023 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2024 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2025 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2026 or RHS1 have side-effects, evaluate those too in the right spot,
2027 if it is a decl and LHS is also a decl, error out if they
2028 aren't the same.
2029 (c_finish_omp_taskyield): New function.
2030 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2031 * c-pragma.c (omp_pragmas): Add taskyield.
2032 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2033 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2034 PRAGMA_OMP_CLAUSE_MERGEABLE.
2035
770e5a2e
DS
20362011-07-25 Dodji Seketeli <dodji@redhat.com>
2037
2038 * c-common.h (set_underlying_type): Remove parm name from
2039 declaration.
2040
1baae426
RG
20412011-07-25 Romain Geissler <romain.geissler@gmail.com>
2042
2043 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2044
fcb21722
JM
20452011-07-22 Jason Merrill <jason@redhat.com>
2046
76f86d00
JM
2047 PR c++/49793
2048 * c.opt (Wnarrowing): New.
2049
3a636414
JM
2050 PR c++/30112
2051 * c-common.h: Declare c_linkage_bindings.
2052 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2053
fcb21722
JM
2054 PR c++/49813
2055 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2056 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2057 as flag_isoc99 for 'restrict'.
2058 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2059
02614448
ILT
20602011-07-21 Ian Lance Taylor <iant@google.com>
2061
2062 PR middle-end/49705
2063 * c-common.c (c_disable_warnings): New static function.
2064 (c_enable_warnings): New static function.
2065 (c_fully_fold_internal): Change local unused_p to bool. Call
2066 c_disable_warnings and c_enable_warnings rather than change
2067 c_inhibit_evaluation_warnings.
2068
34429675
JM
20692011-07-20 Jason Merrill <jason@redhat.com>
2070
2071 PR c++/6709 (DR 743)
2072 PR c++/42603 (DR 950)
2073 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2074 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2075 (CPP_DECLTYPE): New.
2076 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2077
5d49b6a7
RG
20782011-07-19 Richard Guenther <rguenther@suse.de>
2079
2080 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2081 * c-omp.c (c_finish_omp_for): Likewise.
2082
e84a58ff
EB
20832011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2084
2085 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2086 body on the next line.
2087
329af3c7
JM
20882011-07-08 Jason Merrill <jason@redhat.com>
2089
4063e61b
JM
2090 PR c++/45437
2091 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2092
329af3c7
JM
2093 PR c++/49673
2094 * c-common.c (c_apply_type_quals_to_decl): Don't check
2095 TYPE_NEEDS_CONSTRUCTING.
2096
1a072294
RG
20972011-07-06 Richard Guenther <rguenther@suse.de>
2098
2099 * c-common.c (c_common_nodes_and_builtins):
2100 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2101
fce5dddd
RG
21022011-07-05 Richard Guenther <rguenther@suse.de>
2103
2104 * c-common.c (c_common_nodes_and_builtins): Build all common
2105 tree nodes first.
2106
45d439ac
JJ
21072011-06-27 Jakub Jelinek <jakub@redhat.com>
2108
56300785
JJ
2109 * c-common.h (c_tree_chain_next): New static inline function.
2110
45d439ac
JJ
2111 * c-common.c (check_builtin_function_arguments): Handle
2112 BUILT_IN_ASSUME_ALIGNED.
2113
e0a8ecf2
AM
21142011-06-21 Andrew MacLeod <amacleod@redhat.com>
2115
2116 * c-common.c: Add sync_ or SYNC__ to builtin names.
2117 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2118
21192011-06-20 Pierre Vittet <piervit@pvittet.com>
2120
2121 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2122 handler.
2123 (gen_pragma_handler): New union.
2124 (internal_pragma_handler): New type.
2125 (c_register_pragma_with_data)
2126 (c_register_pragma_with_expansion_and_data): New functions.
2127
2128 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2129 (c_register_pragma, c_register_pragma_with_expansion)
2130 (c_invoke_pragma_handler): Changed to work with
2131 internal_pragma_handler.
2132 (c_register_pragma_with_data)
2133 (c_register_pragma_with_expansion_and_data): New functions.
2134
677f3fa8
JM
21352011-06-14 Joseph Myers <joseph@codesourcery.com>
2136
2137 * c-common.c: Include common/common-target.h.
2138 (handle_section_attribute): Use
2139 targetm_common.have_named_sections.
2140 * c-cppbuiltin.c: Include common/common-target.h.
2141 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2142
d7fc8c14
RG
21432011-06-10 Richard Guenther <rguenther@suse.de>
2144
2145 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2146 to print a IDENTIFIER_NODE.
2147
10e48e39
RO
21482011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2149 Joseph Myers <joseph@codesourcery.com>
2150
2151 * c.opt (fbuilding-libgcc): New option.
2152 * c-cppbuiltin.c (c_cpp_builtins): Define
2153 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2154
6976ae51
JM
21552011-06-07 Jason Merrill <jason@redhat.com>
2156
3ff60975
JM
2157 * c-common.c (max_tinst_depth): Lower default to 900.
2158
6976ae51
JM
2159 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2160
009db074
RG
21612011-06-07 Richard Guenther <rguenther@suse.de>
2162
2163 * c-common.c (c_common_nodes_and_builtins): Do not set
2164 size_type_node or call set_sizetype.
2165
b4592b92
DS
21662011-06-07 Dodji Seketeli <dodji@redhat.com>
2167
2168 PR debug/49130
2169 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2170 type when using pointer comparison to compare types.
b4592b92 2171
014ab419
JW
21722011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2173
2174 * c.opt: Add -Wdelete-non-virtual-dtor.
2175 * c-opts.c (c_common_handle_option): Include it in -Wall.
2176
4f60111f
NF
21772011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2178
2179 PR bootstrap/49190
2180
2181 Revert:
2182 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2183
2184 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2185 not tree_common.
2186
4cc4f2f4
JJ
21872011-05-27 Jakub Jelinek <jakub@redhat.com>
2188
2189 PR c++/49165
2190 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2191 C++ don't call c_common_truthvalue_conversion on void type arms.
2192
38e01f9e
NF
21932011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2194
2195 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2196 (stmt_list_stack): Define.
2197 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2198 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2199
92e948a8
NF
22002011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2201
2202 * c-common.c (warning_candidate_p): Check for BLOCKs.
2203
a2fc3e63
NF
22042011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2205
2206 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2207 not tree_common.
2208
0957c029
JJ
22092011-05-25 Jakub Jelinek <jakub@redhat.com>
2210
2211 * c-common.c (def_fn_type): Remove extra va_end.
2212
828fb3ba
JM
22132011-05-23 Jason Merrill <jason@redhat.com>
2214
2215 PR c++/48106
2216 * c-common.c (c_common_get_narrower): New.
2217 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2218
dde05067
NF
22192011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2220
2221 * c-common.h (check_function_arguments): Tweak prototype of
2222 check_function_arguments.
2223 * c-common.c (check_function_arguments): Likewise. Adjust
2224 calls to check_function_nonnull, check_function_format, and
2225 check_function_sentinel.
2226 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2227 separate attributes and typelist arguments. Use
2228 FOREACH_FUNCTION_ARGS to iterate over argument types.
2229
3c0d13bf
PC
22302011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2231
2232 * c-common.c (c_common_reswords): Reorder.
2233 * c-common.h (rid): Likewise.
2234
8242dd04
NF
22352011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2236
2237 * c-common.c (def_fn_type): Don't call build_function_type, call
2238 build_function_type_array or build_varargs_function_type_array
2239 instead.
2240 (c_common_nodes_and_builtins): Likewise.
2241
3d528853
NF
22422011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2243
2244 * c-common.c (c_add_case_label): Omit the loc argument to
2245 build_case_label.
2246 * c-common.h (build_case_label): Remove.
2247 * c-semantics.c (build_case_label): Remove.
2248
a04a722b
JM
22492011-05-05 Joseph Myers <joseph@codesourcery.com>
2250
2251 * c-objc.h (objc_start_method_definition): Update prototype.
2252 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2253
e19a18d4
NF
22542011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2255
2256 * c-common.c (check_main_parameter_types): Reindent. Don't use
2257 TYPE_ARG_TYPES directly.
2258 (handle_nonnull_attribute): Likewise.
2259 (sync_resolve_params): Likewise.
2260 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2261 to check_format_string.
2262 (handle_format_attribute): Likewise.
2263 (check_format_string): Take a function type to examine instead of
2264 a type list. Use a function_arg_iterator to step through argument
2265 types.
2266
c62c040f
RG
22672011-05-04 Richard Guenther <rguenther@suse.de>
2268
2269 * c-common.c (fix_string_type): Use size_int for index type bounds.
2270 (start_fname_decls): Do not pass NULL to build_int_cst.
2271 (c_init_attributes): Likewise.
2272 * c-lex.c (c_lex_with_flags): Likewise.
2273
c12ff9d8
JM
22742011-04-27 Jason Merrill <jason@redhat.com>
2275
2276 * c-common.c (make_tree_vector_from_list): New.
2277 * c-common.h: Declare it.
2278
304dfbe3
RG
22792011-04-26 Richard Guenther <rguenther@suse.de>
2280
2281 PR preprocessor/48248
2282 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2283 for output size with -P.
2284
3c0d13bf
PC
22852011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2286
2287 * c-common.c (struct c_common_resword): Add __underlying_type.
2288 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2289
04695783
JM
22902011-04-20 Jim Meyering <meyering@redhat.com>
2291
2292 * c-format.c (init_dollar_format_checking): Remove useless
2293 if-before-free.
2294
0dc33c3c
NP
22952011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2296
2297 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2298 (objc_detect_field_duplicates): New.
0dc33c3c 2299 * stub-objc.c: Likewise.
3c0d13bf 2300
c59633d9
NP
23012011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2302
2303 * stub-objc.c (objc_declare_protocols): Renamed to
2304 objc_declare_protocol.
2305 * c-objc.h: Likewise.
3c0d13bf 2306
32dabdaf
NP
23072011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2308
2309 * stub-objc.c (objc_declare_class): Updated argument name.
2310
81f653d6
NF
23112011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2312
2313 * c-common.h (c_common_init_ts): Declare.
2314 * c-common.c (c_common_init_ts): Define.
2315
eb345401
NP
23162011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2317
2318 * c-objc.h (objc_build_message_expr): Updated prototype.
2319 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2320
a358e188
MJ
23212011-04-12 Martin Jambor <mjambor@suse.cz>
2322
2323 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2324 of cgraph_node.
2325
e6313a78
RG
23262011-04-11 Richard Guenther <rguenther@suse.de>
2327
2328 * c-common.c (complete_array_type): Build a range type of
2329 proper type.
2330
dcf0c47e
NF
23312011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2332
2333 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2334 (handle_type_generic_attribute): Likewise.
2335
1ee44b26
JM
23362011-04-07 Jason Merrill <jason@redhat.com>
2337
2338 PR c++/48450
2339 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2340 conversion from C++0x scoped enum.
2341
acce4e77
JM
23422011-04-06 Joseph Myers <joseph@codesourcery.com>
2343
2344 * c-target-def.h: New file.
2345 * c-target.def: New file.
2346 * c-target.h: New file.
2347 * c-common.c (targetcm): Don't define here.
2348 * c-common.h (default_handle_c_option): Declare.
2349 * c-format.c: Include c-target.h instead of target.h.
2350 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2351 include tm.h.
2352 (default_handle_c_option): Move from targhooks.c.
2353
e2eefb55
JJ
23542011-03-29 Jakub Jelinek <jakub@redhat.com>
2355
2356 PR preprocessor/48248
2357 * c-ppoutput.c (print): Add src_file field.
2358 (init_pp_output): Initialize it.
2359 (maybe_print_line): Don't optimize by adding up to 8 newlines
2360 if map->to_file and print.src_file are different file.
2361 (print_line): Update print.src_file.
2362
ba78087b
KT
23632011-03-25 Kai Tietz <ktietz@redhat.com>
2364
2365 * c-ada-spec.c (compare_comment): Use filename_cmp
2366 instead of strcmp for filename.
2367
0edf1bb2
JL
23682011-03-25 Jeff Law <law@redhat.com>
2369
2370 * c-family/c-common.c (def_fn_type): Add missing va_end.
2371
c7dc8804
JM
23722011-03-25 Jason Merrill <jason@redhat.com>
2373
2374 * c.opt: Add -std=c++03.
2375
d1d879b1
EB
23762011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2377
2378 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2379
62d784f7
KT
23802011-03-17 Kai Tietz
2381
2382 PR target/12171
5050afdf
KT
2383 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2384 Display allowed attributes for function pointer types.
2385 (pp_c_attributes_display): New function to display
2386 attributes having affects_type_identity flag set to true.
2387 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2388
62d784f7
KT
2389 * c-common.c (c_common_attribute_table):
2390 Add new element.
2391 (c_common_format_attribute_table): Likewise.
2392
82d37118
JM
23932011-03-18 Jason Merrill <jason@redhat.com>
2394
49a000c3
JM
2395 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2396 * c-common.h: Don't declare it here.
2397 * c-common.c: Or define it here.
2398 * c-opts.c (c_common_handle_option): Or set it here.
2399
82d37118
JM
2400 PR c++/35315
2401 * c-common.c (handle_transparent_union_attribute): Don't
2402 make a duplicate type in C++.
2403
17bc631c
JM
24042011-03-15 Jason Merrill <jason@redhat.com>
2405
2406 * c-common.c (max_constexpr_depth): New.
2407 * c-common.h: Declare it.
2408 * c-opts.c (c_common_handle_option): Set it.
2409 * c.opt (fconstexpr-depth): New option.
2410
1b9b91a6
JM
24112011-03-11 Jason Merrill <jason@redhat.com>
2412
f231b5ff
JM
2413 * c-common.c (attribute_takes_identifier_p): Add missing const.
2414
1b9b91a6
JM
2415 PR c++/46803
2416 * c-common.c (attribute_takes_identifier_p): Assume that an
2417 unknown attribute takes an identifier.
2418
a19e4d44
NF
24192011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2420
2421 PR c/47786
2422 * c-common.c (c_type_hash): Call list_length instead of iterating
2423 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2424
982d62f6
JJ
24252011-02-19 Jakub Jelinek <jakub@redhat.com>
2426
2427 PR c/47809
2428 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2429
0a256240
NP
24302011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2431
2432 * c.opt (fobjc-abi-version=) New.
2433 (fobjc-nilcheck): New.
2434
ba9e6dd5
NF
24352011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2436
2437 PR c++/46890
2438 * c-common.h (keyword_is_decl_specifier): Declare.
2439 * c-common.c (keyword_is_decl_specifier): Define.
2440 (keyword_is_function_specifier): New function.
2441
7273813a
JJ
24422011-01-26 Jakub Jelinek <jakub@redhat.com>
2443
2444 PR c/47473
2445 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2446 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2447 REAL_TYPE.
2448
908ef79b
AC
24492011-01-26 Arnaud Charlet <charlet@adacore.com>
2450
2451 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2452
237e9384
JJ
24532011-01-26 Jakub Jelinek <jakub@redhat.com>
2454
2455 PR pch/47430
2456 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2457 after init_c_lex if pch_file is set.
2458
47ea1edf
DK
24592011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2460
d4dba752 2461 PR c++/43601
47ea1edf
DK
2462 * c.opt (-fkeep-inline-dllexport): New switch.
2463
2aa9c6ae
RG
24642011-01-12 Richard Guenther <rguenther@suse.de>
2465
2466 PR middle-end/32511
2467 * c-common.c (handle_weak_attribute): Warn instead of error
2468 on declaring an inline function weak.
2469
7bd11157
TT
24702011-01-05 Tom Tromey <tromey@redhat.com>
2471
2472 * c-common.h (lvalue_error): Update.
2473 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2474 not error.
2475
0e66e494 24762010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2477
b4f588c4
NP
2478 PR objc/47075
2479 * c-objc.h (objc_finish_message_expr): Added argument to
2480 prototype.
2481
f4da8dce
NF
24822010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2483
2484 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2485 Use prototype_p.
2486
46270f14
NP
24872010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2488
2489 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2490 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2491
4816c593
NF
24922010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2493
2494 * c-common.h (readonly_error): Declare.
2495 * c-common.c (readonly_error): Define.
2496
7a6daeb0
NF
24972010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2498
2499 * c-common.h (invalid_indirection_error): Declare.
2500 * c-common.c (invalid_indirection_error): Define.
2501
892f6119
RG
25022010-12-03 Richard Guenther <rguenther@suse.de>
2503
2504 PR c/46745
2505 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2506 (pp_c_unary_expression): Likewise.
2507 (pp_c_expression): Likewise.
2508
6c39e757
NP
25092010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2510
2511 * c-common.h (objc_finish_function): New.
2512 (objc_non_volatilized_type): Removed.
2513 (objc_type_quals_match): Removed.
2514 * stub-objc.c (objc_finish_function): New.
2515 (objc_non_volatilized_type): Removed.
2516 (objc_type_quals_match): Removed.
9faeb493 2517
7c475d11
JM
25182010-11-30 Joseph Myers <joseph@codesourcery.com>
2519
2520 * c-common.h (parse_optimize_options): Declare.
2521 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2522 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2523
71f3e391
JM
25242010-11-29 Joseph Myers <joseph@codesourcery.com>
2525
2526 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2527 GET_ENVIRONMENT.
2528 * c-pch.c (O_BINARY): Don't define here.
2529 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2530
d5fabb58
JM
25312010-11-25 Joseph Myers <joseph@codesourcery.com>
2532
2533 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2534 targetm.except_unwind_info.
2535
299404a1
JM
25362010-11-23 Joseph Myers <joseph@codesourcery.com>
2537
2538 * c-opts.c (c_common_handle_option): Pass location to
2539 set_struct_debug_option.
2540
c98cd5bf
JM
25412010-11-23 Joseph Myers <joseph@codesourcery.com>
2542
2543 * c-common.c (visibility_options): Move from ../opts.c.
2544 * c-common.h (struct visibility_flags, visibility_options):
2545 Declare here.
2546 * c-opts.c (finish_options): Rename to c_finish_options.
2547 (c_common_init): Update call to finish_options.
2548
a9546771
NP
25492010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2550
2551 PR objc/34033
2552 * c-lex.c (lex_string): Check that each string in an Objective-C
2553 string concat sequence starts with either one or zero '@', and
2554 that there are no spurious '@' signs at the end.
2555
24a57808
JM
25562010-11-20 Joseph Myers <joseph@codesourcery.com>
2557
2558 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2559 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2560 HANDLE_PRAGMA_VISIBILITY.
2561 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2562 HANDLE_PRAGMA_VISIBILITY): Don't define.
2563 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2564
a9aa2c3a
NF
25652010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2566
2567 PR c++/16189
2568 PR c++/36888
2569 PR c++/45331
2570 * c-common.h (keyword_begins_type_specifier): Declare.
2571 (keyword_is_storage_class_specifier): Declare.
2572 (keyword_is_type_qualifier): Declare.
2573 * c-common.c (keyword_begins_type_specifier): New function.
2574 (keyword_is_storage_class_specifier): New function.
2575 (keyword_is_type_qualifier): Declare.
2576
5386338c
JM
25772010-11-19 Joseph Myers <joseph@codesourcery.com>
2578
2579 PR c/46547
2580 * c-common.c (in_late_binary_op): Define.
2581 (c_common_truthvalue_conversion): Check in_late_binary_op before
2582 calling c_save_expr.
2583 * c-common.h (in_late_binary_op): Declare.
2584
69ccdddb
JM
25852010-11-19 Joseph Myers <joseph@codesourcery.com>
2586
2587 * c-opts.c (c_common_handle_option): Update calls to
2588 set_struct_debug_option.
2589
6b192a09
NP
25902010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2591
2592 * c-common.h (objc_declare_protocols): Added additional argument.
2593 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2594
fb52b50a
NF
25952010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2596
2597 PR c/33193
2598 * c-common.h (build_real_imag_expr): Declare.
2599 * c-semantics.c (build_real_imag_expr): Define.
2600
b37421c6
JM
26012010-11-17 Joseph Myers <joseph@codesourcery.com>
2602
2603 * c-opts.c (c_common_parse_file): Take no arguments.
2604 * c-common.h (c_common_parse_file): Update prototype.
2605
07078664
JJ
26062010-11-16 Jakub Jelinek <jakub@redhat.com>
2607
2608 PR c++/46401
2609 * c-common.c (warning_candidate_p): Don't track non-const calls
2610 or STRING_CSTs.
2611
c6a13190
ILT
26122010-11-15 Ian Lance Taylor <iant@google.com>
2613
2614 * c-lex.c (init_c_lex): Set macro debug callbacks if
2615 flag_dump_go_spec is set.
2616
925e8657
NP
26172010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2618
2619 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2620 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2621
bb0a9581
NF
26222010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2623
2624 PR preprocessor/45038
2625 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2626 dialects.
2627
c5fa0890
JM
26282010-11-12 Joseph Myers <joseph@codesourcery.com>
2629
2630 * c-common.h (c_family_lang_mask): Declare.
2631 * c-opts.c (c_family_lang_mask): Make extern.
2632 * c-pragma.c (handle_pragma_diagnostic): Use
2633 control_warning_option.
2634
a4d8c676
JM
26352010-11-12 Joseph Myers <joseph@codesourcery.com>
2636
2637 * c-common.c (parse_optimize_options): Update call to
2638 decode_options.
2639 * c-common.h (c_common_handle_option): Update prototype.
2640 * c-opts.c (c_common_handle_option): Take location_t parameter and
2641 pass it to other functions.
2642
f954bd2c
JM
26432010-11-11 Joseph Myers <joseph@codesourcery.com>
2644
2645 * c-opts.c (warning_as_error_callback): Remove.
2646 (c_common_initialize_diagnostics): Don't call
2647 register_warning_as_error_callback.
2648 (c_common_handle_option): Handle -Werror=normalized= here.
2649
d8a07487
JM
26502010-11-10 Joseph Myers <joseph@codesourcery.com>
2651
2652 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2653 in diagnostic.
2654 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2655 letter.
2656 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2657 Remove trailing '.' from diagnostics.
2658 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2659
d5478783
JM
26602010-11-10 Joseph Myers <joseph@codesourcery.com>
2661
2662 * c-common.c (parse_optimize_options): Pass global_dc to
2663 decode_options.
2664 * c-opts.c (c_common_handle_option): Pass &global_options to
2665 set_Wstrict_aliasing.
2666 * c.opt (v): Don't mark Common or document here.
2667
91ebb981
IS
26682010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2669
2670 PR target/44981
2671 * c-format.c (format_type): New type gcc_objc_string_format_type.
2672 (valid_stringptr_type_p): New.
2673 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2674 (check_format_string): Pass expected type, use
91ebb981
IS
2675 valid_stringptr_type_p (), check that the format string types are
2676 consistent with the format specification.
2677 (decode_format_attr): Warn if NSString is used outside objective-c.
2678 (format_types_orig): Add NSString.
2679 (format_name): New.
2680 (format_flags): New.
2681 (check_format_arg): Handle format strings requiring an external parser.
2682 first_target_format_type: New variable.
2683 (handle_format_attribute): Set up first_target_format_type, pass the
2684 expected format arg string type to check_format_string().
2685 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2686 * stub-objc.c (objc_string_ref_type_p): New.
2687 (objc_check_format_arg): New.
2688
bede2adc
NP
26892010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2690
9faeb493 2691 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2692 * c-common.h (objc_build_class_component_ref): New.
2693 * stub-objc.c (objc_build_class_component_ref): New.
2694
9a179d01
NP
26952010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2696
2697 * c.opt (Wproperty-assign-default): New option.
2698
22d8d616
NP
26992010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2700
2701 Implemented -fobjc-std=objc1 flag.
2702 * c.opt (fobjc-std=objc1): New option.
2703
2debdb4f
NP
27042010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2705
2706 Implemented format and noreturn attributes for Objective-C methods.
2707 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2708 attribute for Objective-C methods.
2709
ec52b111
JM
27102010-10-31 Jason Merrill <jason@redhat.com>
2711
2712 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2713 EXPR_LOC_OR_HERE.
2714
46a88c12
NP
27152010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2716
2717 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2718 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2719 (objc_add_property_declaration): Removed arguments for copies and
2720 ivar.
2721 (objc_build_getter_call): Renamed to
2722 objc_maybe_build_component_ref.
2723 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2724 (objc_is_property_ref): New.
2725 * c-common.c (c_common_reswords): Removed copies and ivar.
2726 * stub-objc.c (objc_add_property_declaration): Removed arguments
2727 for copies and 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.
9faeb493 2732
1e4bf85b
AC
27332010-10-29 Arnaud Charlet <charlet@adacore.com>
2734 Matthew Gingell <gingell@adacore.com>
2735
2736 * c-ada-spec.c (separate_class_package): New function.
2737 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2738 name of their enclosing package.
2739 (print_ada_declaration): Use separate_class_package.
2740
81f0bab2
JM
27412010-10-27 Jason Merrill <jason@redhat.com>
2742
2b08f2c5
JM
2743 * c-common.c (c_common_reswords): Add __is_literal_type.
2744 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2745
81f0bab2
JM
2746 * c-common.c (check_case_value): Remove special C++ code.
2747
200290f2
NP
27482010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2749
2750 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2751 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2752 and RID_LAST_PATTR.
2753 (objc_add_property_declaration): Added additional arguments.
2754 (objc_property_attribute_kind): Removed.
2755 (objc_set_property_attr): Removed.
2756 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2757 copy and nonatomic.
2758 * stub-objc.c (objc_add_property_declaration): Added additional
2759 arguments.
2760 (objc_set_property_attr): Removed.
9faeb493 2761
f614132b
NP
27622010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2763
2764 * c-common.h (objc_add_property_variable): Renamed to
2765 objc_add_property_declaration. Added location argument.
2766 * stub-objc.c (objc_add_property_variable): Same change.
2767
b8a18805
NP
27682010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2769
2770 * c-common.h (objc_maybe_printable_name): New.
2771 * stub-objc.c (objc_maybe_printable_name): New.
2772
30cd1c5d
AS
27732010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2774 Andrew Pinski <pinskia@gmail.com>
2775
2776 * c-common.h (c_common_mark_addressable_vec): Declare.
2777 * c-common.c (c_common_mark_addressable_vec): New function.
2778
249a82c4
NP
27792010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2780
2781 * c-common.h (objc_set_method_type): Removed.
2782 (objc_add_method_declaration): Added boolean argument.
2783 (objc_start_method_definition): Same change.
2784 (objc_build_method_signature): Same change.
2785 * stub-objc.c (objc_set_method_type): Removed.
2786 (objc_add_method_declaration): Added boolean argument.
2787 (objc_start_method_definition): Same change.
2788 (objc_build_method_signature): Same change.
2789
977e30bc
NP
27902010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2791
2792 * c-common.h (finish_file): Removed.
2793 (objc_write_global_declarations): New.
2794 * c-opts.c (c_common_parse_file): Do not call finish_file.
2795 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2796
da57d1b9
NP
27972010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2798
2799 Implemented parsing @synthesize and @dynamic for
2800 Objective-C/Objective-C++.
2801 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2802 (objc_add_synthesize_declaration): New.
2803 (objc_add_dynamic_declaration): New.
2804 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2805 * stub-objc.c (objc_add_synthesize_declaration): New.
2806 (objc_add_dynamic_declaration): New.
9faeb493 2807
0069111f
MM
28082010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2809
2810 PR target/46041
2811 * c-cppbuiltin.c (mode_has_fma): Move function here from
2812 builtins.c. Don't use the fma optab, instead just use the
2813 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2814 using -save-temps.
2815
e426b47b
NP
28162010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2817
2818 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2819
e426b47b
NP
2820 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2821
9faeb493 2822 Radar 4330422
e426b47b
NP
2823 * c-common.h (objc_non_volatilized_type): New declaration
2824 * stub-objc.c (objc_non_volatilized_type): New stub.
2825
90fbfdc3
NP
28262010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2827
e426b47b 2828 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2829
2830 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2831
9faeb493 2832 Radar 4133425
90fbfdc3 2833 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2834 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2835
c37d8c30
IS
28362010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2837
2838 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2839 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2840 (objc_ivar_visibility_kind): New enum.
2841 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2842 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2843 visibility enum.
2844
1b1562a5
MM
28452010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2846
2847 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2848 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2849 has the appropriate fma builtins.
2850 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2851
668ea4b1
IS
28522010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2853
1b1562a5 2854 merge from FSF apple 'trunk' branch.
668ea4b1 2855 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2856
668ea4b1
IS
2857 Radars 4436866, 4505126, 4506903, 4517826
2858 * c-common.c (c_common_resword): Define @property and its attributes.
2859 * c-common.h: Define property attribute enum entries.
2860 (OBJC_IS_PATTR_KEYWORD): New.
2861 (objc_property_attribute_kind): New enum.
2862 Declare objc_set_property_attr (), objc_add_property_variable (),
2863 objc_build_getter_call () and objc_build_setter_call ().
2864 * stub-objc.c (objc_set_property_attr): New stub.
2865 (objc_add_property_variable): Likewise.
2866 (objc_build_getter_call): Likewise.
2867 (objc_build_setter_call) Likewise.
1b1562a5 2868
a1178b30
IS
28692010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2870
1b1562a5 2871 merge from FSF apple 'trunk' branch.
a1178b30
IS
2872 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2873
2874 Radar 3803157 (method attributes)
2875 * c-common.c (handle_deprecated_attribute): Recognize
2876 objc methods as valid declarations.
2877 * c-common.h: Declare objc_method_decl ().
1b1562a5 2878 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2879
a75bfaa6
JM
28802010-10-08 Joseph Myers <joseph@codesourcery.com>
2881
2882 * c-common.c (parse_optimize_options): Call
2883 decode_cmdline_options_to_array_default_mask before
2884 decode_options. Update arguments to decode_options.
2885 * c-common.h (c_common_init_options_struct): Declare.
2886 * c-opts.c (c_common_init_options_struct): New. Split out from
2887 c_common_init_options.
2888
f05b9d93
NP
28892010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2890
2891 Implemented fast enumeration for Objective-C.
2892 * c-common.h (objc_finish_foreach_loop): New.
2893 * stub-objc.c (objc_finish_foreach_loop): New.
2894
1ebe4b4f
JM
28952010-10-05 Joseph Myers <joseph@codesourcery.com>
2896
2897 * c-common.h (struct diagnostic_context): Don't declare here.
2898 (c_common_initialize_diagnostics): Declare using
2899 diagnostic_context typedef.
2900 * c-opts.c (c_common_handle_option): Pass global_dc to
2901 handle_generated_option.
2902
d4d24ba4
JM
29032010-10-04 Joseph Myers <joseph@codesourcery.com>
2904
2905 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2906 handle_generated_option.
2907
478a1c5b
ILT
29082010-10-03 Ian Lance Taylor <iant@google.com>
2909
2910 * c.opt (-fplan9-extensions): New option.
2911
82a1c2fe
FXC
29122010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2913
2914 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2915 Remove.
2916 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2917 of duplicating code.
2918
92902b1b
IS
29192010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2920
2921 * c-common.c: Add two new entries for @optional
2922 and @required keywords.
2923
2924 merge from FSF 'apple/trunk' branch.
2925 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2926
2927 Radar 4386773
2928 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2929 objective-c keywords.
2930 (objc_set_method_opt): New declaration.
2931 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2932
46625112
JM
29332010-09-30 Joseph Myers <joseph@codesourcery.com>
2934
2935 * c-common.c (handle_optimize_attribute): Pass &global_options to
2936 cl_optimization_save and cl_optimization_restore.
2937 * c-opts.c (c_common_handle_option): Pass &global_options to
2938 handle_generated_option.
2939 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2940 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2941 &global_options to cl_optimization_restore.
2942
49b91f05
NP
29432010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2944
2945 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2946 Objective-C/Objective-C++ keywords.
2947
13ed556f 29482010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2949
9faeb493
UB
2950 Merge from 'apple/trunk' branch on FSF servers.
2951
a6341d57
NP
2952 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2953
2954 Radar 4281748
2955 * c-common.h (objc_check_global_decl): New declaration.
2956 * stub-objc.c (objc_check_global_decl): New stub.
2957
f0036cca
JM
29582010-09-29 Joseph Myers <joseph@codesourcery.com>
2959
2960 * c.opt: Don't use VarExists.
2961
e3339d0f
JM
29622010-09-29 Joseph Myers <joseph@codesourcery.com>
2963
2964 * c-common.c (c_cpp_error): Update names of diagnostic_context
2965 members.
2966 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2967 cl_optimization members.
2968 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2969 sanitize_cpp_opts, finish_options): Update names of cpp_options
2970 members.
2971
1973201f
NP
29722010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2973
2974 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2975 (objc_is_reserved_word): Removed.
2976 * c-common.c: Updated comments.
2977 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2978 objc_is_reserved_word.
2979 * stub-objc.c (objc_is_reserved_word): Removed.
2980
f7e71da5
IS
29812010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2982
9faeb493 2983 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2984 include attributes.
2985 (objc_start_method_definition): Likewise.
2986 (objc_build_keyword_decl): Likewise.
2987 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2988 (objc_start_method_definition): Likewise.
2989 (objc_build_keyword_decl): Likewise.
2990
c165dca7
IS
29912010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2992
2993 * c-common.h (objc_start_class_interface): Adjust prototype.
2994 (objc_start_category_interface): Likewise.
2995 (objc_start_protocol): Likewise.
2996 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2997 (objc_start_class_interface): Likewise.
2998 (objc_start_category_interface): Likewise.
2999
7458026b
ILT
30002010-09-27 Ian Lance Taylor <iant@google.com>
3001
3002 * c-common.c (c_common_attribute_table): Add no_split_stack.
3003 (handle_no_split_stack_attribute): New static function.
3004
b581b85b
NP
30052010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3006
9faeb493 3007 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3008
3009 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3010
9faeb493 3011 Radar 4229905
b581b85b
NP
3012 * c-common.h (objc_have_common_type): New declaration.
3013 * stub-objc.c (objc_have_common_type): New stub.
3014
3015 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3016
3017 Radar 4154928
3018 * c-common.h (objc_common_type): New prototype.
9faeb493 3019 * stub-objc.c (objc_common_type): New stub.
b581b85b 3020
46a4da10
JH
30212010-09-24 Jan Hubicka <jh@suse.cz>
3022
3023 * c-common.c (handle_leaf_attribute): New function.
3024 (struct attribute_spec c_common_att): Add leaf.
3025
e200444e
JM
30262010-09-22 Joseph Myers <joseph@codesourcery.com>
3027
3028 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3029 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3030 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3031 -include-barrier, -include-directory, -include-directory=,
3032 -include-directory-after, -include-directory-after=,
3033 -include-prefix, -include-prefix=, -include-with-prefix,
3034 -include-with-prefix=, -include-with-prefix-after,
3035 -include-with-prefix-after=, -include-with-prefix-before,
3036 -include-with-prefix-before=, -no-integrated-cpp,
3037 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3038 -output=, -pedantic, -pedantic-errors, -preprocess,
3039 -print-missing-file-dependencies, -trace-includes, -traditional,
3040 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3041 -user-dependencies, -verbose, -write-dependencies,
3042 -write-user-dependencies, no-integrated-cpp, traditional): New.
3043
29a80ea6
NP
30442010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3045
3046 PR objc/23710
ac1fc2fc
NP
3047 * c-common.h (objc_start_method_definition): Return bool instead
3048 of void.
3049 * stub-objc.c (objc_start_method_definition): Return bool instead
3050 of void.
3051
30522010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3053
3054 PR objc/25965
3055 * c-common.h (objc_get_interface_ivars): New declaration.
3056 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3057
de621752
ILT
30582010-09-15 Ian Lance Taylor <iant@google.com>
3059
3060 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3061 messages. Remove period at end of warning message.
de621752 3062
ba885ec5
NS
30632010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3064
3065 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3066 (handle_alias_attribute): ... here.
3067 (handle_ifunc_attribute): New.
3068
c5ee1358
MM
30692010-09-06 Mark Mitchell <mark@codesourcery.com>
3070
3071 * c-common.h (do_warn_double_promotion): Declare.
3072 * c-common.c (do_warn_double_promotion): Define.
3073
0a0b3574
MM
30742010-09-05 Mark Mitchell <mark@codesourcery.com>
3075
3076 * c.opt (Wdouble-promotion): New.
3077
d1779886
JM
30782010-09-02 Joseph Myers <joseph@codesourcery.com>
3079
3080 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3081 fvtable-thunks, fxref): Mark no longer supported in help text.
3082
2d2bd949
JM
30832010-09-02 Joseph Myers <joseph@codesourcery.com>
3084
3085 * c.opt (Wimport, fall-virtual, falt-external-templates,
3086 fdefault-inline, fenum-int-equiv, fexternal-templates,
3087 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3088 fname-mangling-version-, fnew-abi, fnonnull-objects,
3089 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3090 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3091 applicable.
3092 (fhandle-exceptions): Mark with Alias and Warn.
3093 * c-opts.c (c_common_handle_option): Don't handle options marked
3094 as ignored.
3095
5de8299c
JM
30962010-09-02 Joseph Myers <joseph@codesourcery.com>
3097
3098 * c.opt (Wcomments, Werror-implicit-function-declaration,
3099 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3100 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3101 aliases.
3102 * c-common.c (option_codes): Use OPT_Wcomment instead of
3103 OPT_Wcomments.
3104 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3105 Don't handle options marked as aliases.
3106
0ceb0201
RG
31072010-08-25 Richard Guenther <rguenther@suse.de>
3108
3109 * c-common.c (c_common_get_alias_set): Remove special
3110 handling for pointers.
3111
ac47786e
NF
31122010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3113
3114 * c-common.c: Use FOR_EACH_VEC_ELT.
3115 * c-gimplify.c: Likewise.
3116 * c-pragma.c: Likewise.
3117
c878765b
JM
31182010-08-16 Joseph Myers <joseph@codesourcery.com>
3119
3120 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3121 RejectDriver.
3122 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3123 RejectDriver.
3124 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3125 instead of OPT_MDX and OPT_MMDX.
3126
603349bf
JM
31272010-08-16 Joseph Myers <joseph@codesourcery.com>
3128
3129 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3130
644fa7ac
JM
31312010-08-12 Joseph Myers <joseph@codesourcery.com>
3132
3133 * c.opt (MD, MMD): Change to MDX and MMDX.
3134 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3135
481e1176
JM
31362010-08-11 Joseph Myers <joseph@codesourcery.com>
3137
3138 * c-opts.c (c_common_handle_option): Call handle_generated_option
3139 instead of handle_option.
3140
ac8dc9f7
NF
31412010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3142
3143 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3144 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3145
4f8c876d
NF
31462010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3147
3148 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3149 (pending_redefine_extname): Change type to a VEC.
3150 (add_to_renaming_pragma_list): Update for new type of
3151 pending_redefine_extname.
ac8dc9f7 3152 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3153
3b0c690e
AC
31542010-08-04 Arnaud Charlet <charlet@adacore.com>
3155
3156 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3157 visited.
3158 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3159 decide whether a type has already been declared/seen.
3160 Do not go to the original type.
3161 (dump_nested_types): New parameter forward.
3162 Generate forward declaration if needed and mark type as visited.
3163 (print_ada_declaration): Call dump_nested_types if not already done.
3164 Mark types as visited.
3165
1890bccc
JM
31662010-08-03 Joseph Myers <joseph@codesourcery.com>
3167
3168 * c.opt (-print-pch-checksum): Remove option.
3169 * c-opts.c (c_common_handle_option): Don't handle
3170 OPT_print_pch_checksum.
3171
5f20c657
JM
31722010-07-27 Joseph Myers <joseph@codesourcery.com>
3173
3174 * c-common.h (c_common_handle_option): Update prototype and return
3175 value type.
3176 * c-opts.c (c_common_handle_option): Update prototype and return
3177 value type. Update calls to handle_option and
3178 enable_warning_as_error.
3179
f551f80c
JJ
31802010-07-27 Jakub Jelinek <jakub@redhat.com>
3181
3182 PR c/45079
3183 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3184
61ff2bdc
JM
31852010-07-27 Joseph Myers <joseph@codesourcery.com>
3186
3187 * c-common.h (c_common_missing_argument): Remove.
3188 * c-opts.c (c_common_missing_argument): Remove.
3189 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3190 idirafter, imacros, include, isysroot, isystem, iquote): Add
3191 MissingArgError.
3192 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3193
7a9bf9a4
JM
31942010-07-27 Joseph Myers <joseph@codesourcery.com>
3195
3196 * c-common.h (c_common_option_lang_mask,
3197 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3198 New.
3199 (c_common_init_options): Update prototype.
3200 * c-opts.c (c_common_option_lang_mask): New.
3201 (c_common_initialize_diagnostics): Split out of
3202 c_common_init_options.
3203 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3204 New.
3205 (c_common_init_options): Update prototype. Use decoded options in
3206 search for -lang-asm.
3207
910ad8de
NF
32082010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3209
3210 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3211 * c-format.c: Likewise.
3212
718f9c0f
MLI
32132010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3214
3215 * c-common.h: Include diagnostic-core.h. Error if already
3216 included.
3217 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3218
4d451982
MLI
32192010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3220
3221 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3222 Do not include expr.h
3223 (vector_mode_valid_p): Move here.
3224
119fe915
SB
32252010-06-21 DJ Delorie <dj@redhat.com>
3226
3227 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3228 allow these pragmas anywhere.
3229
32302010-06-14 Jakub Jelinek <jakub@redhat.com>
3231
3232 PR bootstrap/44509
3233 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3234 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3235 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3236 ggc_strdup instead of xstrdup.
3237
32382010-06-10 Jakub Jelinek <jakub@redhat.com>
3239
3240 * c-cppbuiltin.c: Include cpp-id-data.h.
3241 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3242 (lazy_hex_fp_value): New function.
3243 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3244
6662d794
MLI
32452010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3246
3247 * c-gimplify.c: Do not include tree-flow.h
3248
38f8b050
JR
32492010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3250
3251 PR other/44034
3252 * c-common.c: Rename targetm member:
3253 targetm.enum_va_list -> targetm.enum_va_list_p
3254
9589f23e
AS
32552010-06-28 Anatoly Sokolov <aesok@post.ru>
3256
3257 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3258
3b06d379
SB
32592010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3260
3261 * c-cppbuiltin.c: Do not include except.h.
3262
d166d4c3
AK
32632010-06-24 Andi Kleen <ak@linux.intel.com>
3264
9faeb493
UB
3265 * c-common.c (warn_for_omitted_condop): New.
3266 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3267
70cb8be6
JM
32682010-06-21 Joseph Myers <joseph@codesourcery.com>
3269
3270 * c.opt (lang-objc): Remove.
3271 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3272
a4c97feb
JR
32732010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3274
3275 * c-opts.c: Include "tm_p.h".
3276
6e2f1956
JM
32772010-06-20 Joseph Myers <joseph@codesourcery.com>
3278
3279 * c-common.c (parse_optimize_options): Update call to
3280 decode_options.
3281
bc87224e
NF
32822010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3283
3284 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3285 new type of types_used_by_cur_var_decl.
3286
b49cf425
JR
32872010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3288
3289 PR bootstrap/44512
3290 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3291 for C++ standard compliance.
3292
59f9c2ed
JM
32932010-06-16 Jason Merrill <jason@redhat.com>
3294
3295 * c.opt: Add -Wnoexcept.
3296
33766b66
RG
32972010-06-16 Richard Guenther <rguenther@suse.de>
3298
3299 PR c/44555
3300 * c-common.c (c_common_truthvalue_conversion): Remove
3301 premature and wrong optimization concering ADDR_EXPRs.
3302
eff7e30c
AC
33032010-06-15 Arnaud Charlet <charlet@adacore.com>
3304
3305 * c-ada-spec.c (dump_sloc): Remove column info.
3306 (is_simple_enum): New function.
3307 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3308 enum types when relevant.
3309
6312e84d
MLI
33102010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3311
9faeb493 3312 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3313 location.
3314
1cb42611
JM
33152010-06-10 Joseph Myers <joseph@codesourcery.com>
3316
3317 * c-opts.c (c_common_handle_option): Don't handle
3318 OPT_fshow_column.
3319
a9429e29
LB
33202010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3321
3322 * c-pragma.c (push_alignment): Use typed GC allocation.
3323 (handle_pragma_push_options): Likewise.
3324
3325 * c-common.c (parse_optimize_options): Likewise.
3326
3327 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3328 option.
3329
5498f011
JM
33302010-06-07 Joseph Myers <joseph@codesourcery.com>
3331
3332 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3333 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3334 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3335 flag_signed_bitfields, warn_strict_null_sentinel,
3336 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3337 flag_gen_declaration, flag_no_gnu_keywords,
3338 flag_implement_inlines, flag_implicit_templates,
3339 flag_implicit_inline_templates, flag_optional_diags,
3340 flag_elide_constructors, flag_default_inline, flag_rtti,
3341 flag_conserve_space, flag_access_control, flag_check_new,
3342 flag_new_for_scope, flag_weak, flag_working_directory,
3343 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3344 flag_enforce_eh_specs, flag_threadsafe_statics,
3345 flag_pretty_templates): Remove.
3346 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3347 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3348 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3349 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3350 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3351 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3352 flag_no_gnu_keywords, flag_implement_inlines,
3353 flag_implicit_templates, flag_implicit_inline_templates,
3354 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3355 flag_rtti, flag_conserve_space, flag_access_control,
3356 flag_check_new, flag_new_for_scope, flag_weak,
3357 flag_working_directory, flag_use_cxa_atexit,
3358 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3359 flag_threadsafe_statics, flag_pretty_templates,
3360 warn_strict_null_sentinel): Remove.
3361 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3362 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3363 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3364 fimplicit-inline-templates, fimplicit-templates,
3365 flax-vector-conversions, fms-extensions, fnil-receivers,
3366 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3367 frtti, fshort-double, fshort-enums, fshort-wchar,
3368 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3369 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3370 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3371 gen-decls, undef): Use Var.
3372 (fdefault-inline, foptional-diags): Document as doing nothing.
3373 * c-opts.c (c_common_handle_option): Remove cases for options now
3374 using Var. Mark ignored options as such.
3375
39dabefd
SB
33762010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3377
9faeb493 3378 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3379 * c-common.def: Likewise.
3380 * c-common.h: Likewise.
3381 * c-cppbuiltin.c: Likewise.
3382 * c-dump.c: Likewise.
3383 * c-format.c: Likewise.
3384 * c-format.h : Likewise.
3385 * c-gimplify.c: Likewise.
3386 * c-lex.c: Likewise.
3387 * c-omp.c: Likewise.
3388 * c.opt: Likewise.
3389 * c-opts.c: Likewise.
3390 * c-pch.c: Likewise.
3391 * c-ppoutput.c: Likewise.
3392 * c-pragma.c: Likewise.
3393 * c-pragma.h: Likewise.
3394 * c-pretty-print.c: Likewise.
3395 * c-pretty-print.h: Likewise.
3396 * c-semantics.c: Likewise.
3397 * stub-objc.c: Likewise.
3398
3399 * c-common.c: Include gt-c-family-c-common.h.
3400 * c-pragma.c: Include gt-c-family-c-pragma.h.
3401\f
23a5b65a 3402Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
3403
3404Copying and distribution of this file, with or without modification,
3405are permitted in any medium without royalty provided the copyright
3406notice and this notice are preserved.