]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR c++/41090 (Using static label reference in c++ class constructor produces wrong...
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
1f26ac87
JM
12013-12-23 Stuart Hastings <stuart@apple.com>
2 Bill Maddox <maddox@google.com>
3 Jason Merrill <jason@redhat.com>
4
5 * c.opt: Add -fdeclone-ctor-dtor.
6 * c-opts.c (c_common_post_options): Default to on iff -Os.
7
41958c28
BI
82013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
9
10 * c-common.c (c_common_attribute_table): Added "cilk simd function"
11 attribute.
12 * c-pragma.h (enum pragma_cilk_clause): Remove.
13 (enum pragma_omp_clause): Added the following fields:
14 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
15 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
16 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
17 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
18 PRAGMA_CILK_CLAUSE_UNIFORM.
19
20
12893402
BI
212013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
22
23 * cilk.c (cilk_outline): Made this function non-static.
24 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
25 (create_cilk_wrapper): Added a new parameter: a function pointer.
26 (c_install_body_w_frame_cleanup): Remove
27 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
28 * c-common.h (cilk_outline): New prototype.
29 (gimplify_cilk_spawn): Removed two parameters.
30 (cilk_install_body_with_frame_cleanup): New prototype.
31 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
32 CILK_SPAWN_STMT case.
33
085b42ed
BS
342013-12-11 Bernd Schmidt <bernds@codesourcery.com>
35
2ce064c3
BS
36 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
37
085b42ed
BS
38 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
39 (int_array_type_node): Remove.
40 * c-common.c (c_common_nodes_and_builtins): Don't build it.
41
9e36c9ed
MP
422013-12-05 Marek Polacek <polacek@redhat.com>
43
44 PR c/52023
45 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
46 [ADJUST_FIELD_ALIGN].
47
296674db
JM
482013-12-04 Joseph Myers <joseph@codesourcery.com>
49
50 PR c/52023
51 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
52 and check field alignment if set.
53 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
54 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
55
31e071ae
MP
562013-12-04 Jakub Jelinek <jakub@redhat.com>
57 Marek Polacek <polacek@redhat.com>
58
59 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
60 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
61
d7947e19
L
622013-11-29 H.J. Lu <hongjiu.lu@intel.com>
63
64 PR c/59309
65 * cilk.c (gimplify_cilk_spawn): Properly handle function without
66 arguments.
67
fad7652e
JJ
682013-11-29 Jakub Jelinek <jakub@redhat.com>
69
70 PR c/59280
71 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
72 goto invalid. If it is error_mark_node, don't issue further
73 diagnostics.
74
8b5e1202
SO
752013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
76
77 * c.opt (Wopenmp-simd): New.
78
0a508bb6
JJ
792013-11-22 Jakub Jelinek <jakub@redhat.com>
80
81 * c-ubsan.h (ubsan_instrument_return): New prototype.
82 * c-ubsan.c (ubsan_instrument_return): New function.
83
2fb9a547
AM
842013-11-22 Andrew MacLeod <amacleod@redhat.com>
85
86 * c-common.c: Add required include files from gimple.h.
87 * c-gimplify.c: Likewise
88 * cilk.c: Likewise
89
8400e75e
DM
902013-11-22 David Malcolm <dmalcolm@redhat.com>
91
92 * c-common.c (unsafe_conversion_p): Remove use of
93 EXPR_LOC_OR_HERE macro.
94 (conversion_warning): Likewise.
95 (warnings_for_convert_and_check): Likewise.
96 (warn_for_collisions_1): Likewise.
97 (shorten_compare): Likewise, and remove use of in_system_header
98 macro, using the location from the former.
99 * c-lex.c (dump_one_header): Remove use of input_filename macro.
100 (cb_def_pragma): Remove use of in_system_header macro.
101 (lex_string): Likewise.
102 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
103
eb1ce453
KZ
1042013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
105 Mike Stump <mikestump@comcast.net>
106 Richard Sandiford <rdsandiford@googlemail.com>
107
108 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
109 instead of TREE_INT_CST_LOW, in cases where there is a protecting
110 tree_fits_shwi_p or tree_fits_uhwi_p.
111 (dump_generic_ada_node): Likewise.
112 * c-format.c (check_format_arg): Likewise.
113 * c-pretty-print.c (pp_c_integer_constant): Likewise.
114
6b3b8c27
KZ
1152013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
116
117 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
118
49b0aa18
JC
1192013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
120
121 PR c/53001
122 * c-common.c (unsafe_conversion_p): Make this function
123 return an enumeration with more detail.
124 (conversion_warning): Use the new return type of
125 unsafe_conversion_p to separately warn either about conversions
126 that lower floating point number precision or about the other
127 kinds of conversions.
128 * c-common.h (enum conversion_safety): New enumeration.
129 (unsafe_conversion_p): switching return type to
130 conversion_safety enumeration.
131 * c.opt: Adding new warning -Wfloat-conversion and
132 enabling it with -Wconversion.
133
b826515a
BS
1342013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
135
136 * c-opts.c: Include plugin.h.
137 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
138
b9a55b13
MP
1392013-11-19 Marek Polacek <polacek@redhat.com>
140
141 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
142 call.
143 (ubsan_instrument_shift): Likewise.
144 (ubsan_instrument_vla): Likewise.
145
7d362f6c
RS
1462013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
147
148 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
149 cast to unsigned type.
150
386b1f1f
RS
1512013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
152
153 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
154 tree_low_cst.
155 (complete_array_type): Update comment to refer to tree_to_[su]hwi
156 rather than tree_low_cst.
157
ae7e9ddd
RS
1582013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
159
160 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
161 tree_to_uhwi throughout.
162
9439e9a1
RS
1632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
164
165 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
166 tree_low_cst (..., 0) with tree_to_shwi throughout.
167
cc269bb6
RS
1682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
169
170 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
171 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
172
9541ffee
RS
1732013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
174
175 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
176 host_integerp (..., 0) with tree_fits_shwi_p throughout.
177
c02065fc
AH
1782013-11-15 Aldy Hernandez <aldyh@redhat.com>
179
180 * c-cilkplus.c: New file.
181 * c-common.c (readonly_error): Add location argument.
182 * c-common.h (readonly_error): Same.
183 (c_finish_cilk_clauses): Protoize.
184 (c_check_cilk_loop): Same.
185 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
186 Do not fail on error_mark_node.
187 Abstract increment canonicalization to here...
188 (c_omp_for_incr_canonicalize_ptr): New.
189 c-pragma.c (init_pragma): Register "simd" pragma.
190 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
191 (enum pragma_cilk_clause): New.
192
9cc65f15
RS
1932013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
194
195 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
196 wchar_type and host_integerp checks.
197
18f429e2
AM
1982013-11-14 Andrew MacLeod <amacleod@redhat.com>
199
200 * c-common.c: Likewise.
201 * c-gimplify.c: Likewise.
202 * cilk.c: Likewise.
203
d8a2d370
DN
2042013-11-14 Diego Novillo <dnovillo@google.com>
205
206 * c-common.c: Include fold-const.h.
207 Include stor-layout.h.
208 Include calls.h.
209 Include stringpool.h.
210 Include attribs.h.
211 Include varasm.h.
212 Include trans-mem.h.
213 * c-cppbuiltin.c: Include stor-layout.h.
214 Include stringpool.h.
215 * c-format.c: Include stringpool.h.
216 * c-lex.c: Include stringpool.h.
217 Include stor-layout.h.
218 * c-pragma.c: Include stringpool.h.
219 Include attribs.h.
220 Include varasm.h.
221 Include gcc-symtab.h.
222 * c-pretty-print.c: Include stor-layout.h.
223 Include attribs.h.
224 * cilk.c: Include stringpool.h.
225 Include calls.h.
226
38b7bc7f
JM
2272013-11-13 Joseph Myers <joseph@codesourcery.com>
228
229 * c-common.h (enum rid): Add RID_AUTO_TYPE.
230 * c-common.c (c_common_reswords): Add __auto_type.
231 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
232
45b0be94
AM
2332013-11-12 Andrew MacLeod <amacleod@redhat.com>
234
18f429e2
AM
235 * c-common.c: Include gimplify.h.
236 * c-gimplify.c: Likewise.
237 * cilk.c: Likewise.
238 * c-omp.c: Include gimple-expr.h instead of gimple.h.
239 * c-ubsan.c: Don't include gimple.h.
45b0be94 240
582d9b50
JM
2412013-11-12 Joseph Myers <joseph@codesourcery.com>
242
243 * c-common.c (c_common_reswords): Add _Thread_local.
244
6b28e197
JM
2452013-11-09 Joseph Myers <joseph@codesourcery.com>
246
247 * c-common.c (atomic_size_supported_p): New function.
248 (resolve_overloaded_atomic_exchange)
249 (resolve_overloaded_atomic_compare_exchange)
250 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
251 Use it instead of comparing size with a local list of sizes.
252
267bac10
JM
2532013-11-07 Andrew MacLeod <amacleod@redhat.com>
254 Joseph Myers <joseph@codesourcery.com>
255
256 * c-common.h (enum rid): Add RID_ATOMIC.
257 * c-common.c (c_common_reswords): Add _Atomic.
258 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
259 (keyword_is_type_qualifier): Accept RID_ATOMIC.
260 * c-format.c (check_format_types): Check for extra _Atomic
261 qualifiers in format argument.
262 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
263 (pp_c_type_qualifier_list): Mention _Atomic in comment.
264
5157b91e
TB
2652013-11-06 Tobias Burnus <burnus@net-b.de>
266
267 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
268
6dbe0958
JM
2692013-11-06 Joseph Myers <joseph@codesourcery.com>
270
271 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
272 standards modes.
273 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
274 to mean lack of IEEE 754 support.
275
e8ff5196
TB
2762013-11-05 Tobias Burnus <burnus@net-b.de>
277
278 * c.opt (-Wdate-time): New option
279 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
280
254a0760
JM
2812013-11-05 Joseph Myers <joseph@codesourcery.com>
282
283 * c-cppbuiltin.c (cpp_iec_559_value): Test
284 flag_excess_precision_cmdline not flag_excess_precision.
285
6d7f7e0a
TB
2862013-11-05 Tobias Burnus <burnus@net-b.de>
287
288 * c.opt (fopenmp-simd): New option.
289 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
290 (omp_pragmas): ... this new struct.
291 (c_pp_lookup_pragma): Also walk omp_pragmas.
292 (init_pragma): Init pragmas for -fopenmp-simd.
293
55a7f02f
MP
2942013-11-04 Marek Polacek <polacek@redhat.com>
295
296 PR c++/58979
297 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
298
9193fb05
JM
2992013-11-04 Joseph Myers <joseph@codesourcery.com>
300
301 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
302 New functions.
303 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
304
94159ecf
EB
3052013-11-04 Eric Botcazou <ebotcazou@adacore.com>
306
307 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
308 (dump_ada_specs): Adjust prototype of second callback.
309 * c-ada-spec.c (cpp_check): New global variable.
310 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
311 (print_generic_ada_decl): Likewise.
312 (has_static_fields): Change return type to bool and add guard.
313 (has_nontrivial_methods): New predicate.
314 (is_tagged_type): Change return type to bool.
315 (separate_class_package): Call has_nontrivial_methods.
316 (pp_ada_tree_identifier): Minor tweaks.
317 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
318 (dump_ada_array_domains): Likewise.
319 (dump_ada_array_type): Likewise.
320 (dump_template_types): Remove cpp_check parameter and do not pass it to
321 dump_generic_ada_node.
322 (dump_ada_template): Likewise.
323 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
324 recursively.
325 (print_ada_methods): Change return type to integer. Remove cpp_check
326 parameter and do not pass it down.
327 (dump_nested_types): Remove cpp_check parameter and do not pass it to
328 dump_generic_ada_node.
329 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
330 accessing methods.
331 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
332 down. Use has_nontrivial_methods to recognize C++ classes. Use return
333 value of print_ada_methods.
334 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
335 Set cpp_check to it before invoking dump_ada_nodes.
336 (dump_ada_specs): Likewise.
337
b906f4ca
MP
3382013-11-03 Marek Polacek <polacek@redhat.com>
339
340 * c-ubsan.c: Don't include hash-table.h.
341 (ubsan_instrument_vla): New function.
342 * c-ubsan.h: Declare it.
343
5e20cdc9
DM
3442013-10-31 David Malcolm <dmalcolm@redhat.com>
345
346 Automated part of renaming of symtab_node_base to symtab_node.
347
348 Patch autogenerated by rename_symtab.py from
349 https://github.com/davidmalcolm/gcc-refactoring-scripts
350 revision 58bb219cc090b2f4516a9297d868c245495ee622
351
352 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
353 symtab_node_base to symtab_node.
354
7057e645
ESR
3552013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
356
357 Implement C++14 digit separators.
358 * c-lex.c (interpret_float): Remove digit separators from scratch string
359 before building real literal.
360
193ea7bc
JJ
3612013-10-30 Jakub Jelinek <jakub@redhat.com>
362
363 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
364
939b37da
BI
3652013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
366
367 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
368 fields.
369 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
370 enabled.
371 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
372 (insert_cilk_frame): New prototype.
373 (cilk_init_builtins): Likewise.
374 (gimplify_cilk_spawn): Likewise.
375 (c_cilk_install_body_w_frame_cleanup): Likewise.
376 (cilk_detect_spawn_and_unwrap): Likewise.
377 (cilk_set_spawn_marker): Likewise.
378 (build_cilk_sync): Likewise.
379 (build_cilk_spawn): Likewise.
380 * cilk.c: New file.
381
67348ccc
DM
3822013-10-29 David Malcolm <dmalcolm@redhat.com>
383
384 Patch autogenerated by refactor_symtab.py from
385 https://github.com/davidmalcolm/gcc-refactoring-scripts
386 revision 58bb219cc090b2f4516a9297d868c245495ee622
387
388 * c-gimplify.c (c_genericize): Update for conversion of symtab types
389 to a true class hierarchy.
390 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
391
d570872d
RS
3922013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
393
394 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
395
98906124
JL
3962013-10-26 Jeff Law <law@redhat.com>
397
398 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
399 * c-family/c.opt: Ignore and warn for mudflap options.
400
d73749df 4012013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
402
403 PR other/33426
404 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
405 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
406
3f04b1bb
JM
4072013-10-23 Jason Merrill <jason@redhat.com>
408
409 * c-format.c (gcc_cxxdiag_char_table): Add %X.
410
acf0174b
JJ
4112013-10-11 Jakub Jelinek <jakub@redhat.com>
412
acd15a28
JJ
413 * c-common.h (omp_clause_mask::operator !=): New method.
414 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
415 instead of if (mask & something) tests everywhere.
416
acf0174b
JJ
417 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
418 201307 instead of 201107.
419 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
420 (c_common_attribute_table): Add "omp declare target" and
421 "omp declare simd" attributes.
422 (handle_omp_declare_target_attribute,
423 handle_omp_declare_simd_attribute): New functions.
424 * c-omp.c: Include c-pragma.h.
425 (c_finish_omp_taskgroup): New function.
426 (c_finish_omp_atomic): Add swapped argument, if true,
427 build the operation first with rhs, lhs arguments and use NOP_EXPR
428 build_modify_expr.
429 (c_finish_omp_for): Add code argument, pass it down to make_code.
430 (c_omp_split_clauses): New function.
431 (c_split_parallel_clauses): Removed.
432 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
433 c_omp_declare_simd_clauses_to_decls): New functions.
434 * c-common.h (omp_clause_mask): New type.
435 (OMP_CLAUSE_MASK_1): Define.
436 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
437 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
438 omp_clause_mask::operator |, omp_clause_mask::operator &,
439 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
440 omp_clause_mask::operator ==): New methods.
441 (enum c_omp_clause_split): New.
442 (c_finish_omp_taskgroup): New prototype.
443 (c_finish_omp_atomic): Add swapped argument.
444 (c_finish_omp_for): Add code argument.
445 (c_omp_split_clauses): New prototype.
446 (c_split_parallel_clauses): Removed.
447 (c_omp_declare_simd_clauses_to_numbers,
448 c_omp_declare_simd_clauses_to_decls): New prototypes.
449 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
450 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
451 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
452 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
453 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
454 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
455 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
456 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
457 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
458 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
459 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
460 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
461 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
462 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
463 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
464 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
465 PRAGMA_OMP_CLAUSE_UNIFORM.
466
826cacfe
MG
4672013-10-09 Marc Glisse <marc.glisse@inria.fr>
468
469 PR tree-optimization/20318
470 * c-common.c (handle_returns_nonnull_attribute): New function.
471 (c_common_attribute_table): Add returns_nonnull.
472
2284b034
MG
4732013-10-03 Marc Glisse <marc.glisse@inria.fr>
474
475 PR c++/19476
476 * c.opt (fcheck-new): Move to common.opt.
477
b56e9788
MP
4782013-09-25 Marek Polacek <polacek@redhat.com>
479 Jakub Jelinek <jakub@redhat.com>
480
481 PR sanitizer/58413
482 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
483 an expression if we can prove it is correct.
484 (ubsan_instrument_division): Likewise. Remove unnecessary
485 check.
486
ce6923c5
MP
4872013-09-18 Marek Polacek <polacek@redhat.com>
488
489 PR sanitizer/58411
490 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
491 Declare it.
492 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
493
fb5610fb
IS
4942013-09-14 Iain Sandoe <iain@codesourcery.com>
495
496 PR target/48094
497 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
498 fobjc-gc, freplace-objc-classes): Accept for LTO.
499
88b0e79e
JC
5002013-09-13 Jacek Caban <jacek@codeweavers.com>
501
502 * c-target.def: New hook
503
c9b0866a
PC
5042013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
505
506 PR c++/43452
507 * c.opt (Wdelete-incomplete): Add.
508
0af94e6f
JR
5092013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
510
511 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
512 (vector_types_compatible_elements_p): New function.
513 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
514 declaration.
515 (vector_types_compatible_elements_p): Declare.
516
7c26172c
GDR
5172013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
518
519 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
520 a virtual member function.
521 (pp_simple_type_specifier): Remove.
522 (pp_c_type_specifier): Likewise.
523 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
524 Rename from pp_c_type_specifier. Adjust.
525 (c_pretty_printer::c_pretty_printer): Do not assign to
526 simple_type_specifier.
527
20059c8b
GDR
5282013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
529
530 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
531 member function.
532 (c_pretty_printer::storage_class_specifier): Likewise.
533 (c_pretty_printer::initializer): Likewise.
534 (pp_declaration): Remove.
535 (pp_declaration_specifiers): Likewise.
536 (pp_abstract_declarator): Likewise.
537 (pp_declarator): Likewise.
538 (pp_type_id): Likewise.
539 (pp_statement): Likewise.
540 (pp_constant): Likewise.
541 (pp_id_expression): Likewise.
542 (pp_primary_expression): Likewise.
543 (pp_unary_expression): Likewise.
544 (pp_multiplicative_expression): Likewise.
545 (pp_conditional_expression): Likewise.
546 (pp_assignment_expression): Likewise.
547 (pp_expression): Likewise.
548 (pp_c_type_id): Likewise.
549 (pp_c_storage_class_specifier): Likewise.
550 * c-pretty-print.c (pp_c_type_cast): Tidy.
551 (pp_c_pointer): Likewise.
552 (pp_c_type_specifier): Likewise.
553 (pp_c_parameter_type_list): Likewise.
554 (pp_c_function_definition): Likewise.
555 (pp_c_init_declarator): Likewise.
556 (pp_c_initializer_list): Likewise.
557 (pp_c_constructor_elts): Likewise.
558 (c_pretty_printer::direct_abstract_declarator): Likewise.
559 (c_pretty_printer::declaration_specifiers): Likewise.
560 (c_pretty_printer::primary_expression): Likewise.
561 (c_pretty_printer::postfix_expression): Likewise.
562 (c_pretty_printer::type_id): Rename from pp_c_type_id.
563 (c_pretty_printer::storage_class_specifier): Rename from
564 pp_c_storage_class_specifier.
565 (c_pretty_printer::initializer): Rename from pp_c_initializer.
566 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
567 storage_class_specifier, initializer, offset_list, flags.
568
de5a5fa1
MP
5692013-08-30 Marek Polacek <polacek@redhat.com>
570
571 * c-ubsan.c: New file.
572 * c-ubsan.h: New file.
573
8f0e4d72
GDR
5742013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
575
576 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
577 member function.
578 (c_pretty_printer::declaration_specifiers): Likewise.
579 (c_pretty_printer::declarator): Likewise.
580 (c_pretty_printer::abstract_declarator): Likewise.
581 (c_pretty_printer::direct_abstract_declarator): Likewise.
582 (c_pretty_printer::direct_declarator): Likewise.
583 (c_pretty_printer::function_specifier): Likewise.
584 (pp_declaration): Adjust.
585 (pp_declaration_specifiers): Likewise.
586 (pp_abstract_declarator): Likewise.
587 (pp_direct_declarator): Likewise.
588 (pp_function_specifier): Likewise.
589 (pp_direct_abstract_declarator): Remove as unused.
590 (pp_c_declaration): Remove.
591 (pp_c_declaration_specifiers): Likewise.
592 (pp_c_declarator): Likewise.
593 (pp_c_direct_declarator): Likewise.
594 (pp_c_function_specifier): Likewise.
595 (pp_c_direct_abstract_declarator): Likewise.
596 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
597 from pp_c_abstract_declarator. Adjust.
598 (c_pretty_printer::direct_abstract_declarator): Rename from
599 pp_c_direct_abstract_declarator. Adjust.
600 (c_pretty_printer::function_specifier): Rename from
601 pp_c_function_specifier. Adjust.
602 (c_pretty_printer::declaration_specifiers): Rename from
603 pp_c_declaration_specifiers. Adjust.
604 (c_pretty_printer::direct_declarator): Rename from
605 pp_c_direct_declarator. Adjust.
606 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
607 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
608 (c_pretty_printer::c_pretty_printer): Do not assign to
609 declaration, declaration_specifiers, declarator,
610 direct_declarator, direct_abstract_declarator, function_specifier.
611
00d34d3a
GDR
6122013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
613
614 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
615 virtual member function.
616 (c_pretty_printer::multiplicative_expression): Likewise.
617 (c_pretty_printer::conditional_expression): Likewise.
618 (c_pretty_printer::assignment_expression): Likewise.
619 (c_pretty_printer::expression): Likewise.
620 (pp_unary_expression): Adjust.
621 (pp_multiplicative_expression): Likewise.
622 (pp_assignment_expression): Likewise.
623 (pp_conditional_expression): Likewise.
624 (pp_expression): Likewise.
625 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
626 from pp_c_unary_expression. Adjust.
627 (c_pretty_printer::multiplicative_expression): Rename from
628 pp_c_multiplicative_expression. Adjust.
629 (c_pretty_printer::conditional_expression): Rename from
630 pp_c_conditional_expression. Adjust.
631 (c_pretty_printer::assignment_expression): Rename from
632 pp_c_assignment_expression. Adjust.
633 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
634 (c_pretty_printer::c_pretty_printer): Do not assign to
635 unary_expression, multiplicative_expression,
636 conditional_expression, expression.
637
fb22178f
GDR
6382013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
639
640 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
641 virtual member function.
642 (pp_postfix_expression): Adjust.
643 (pp_c_postfix_expression): Remove.
644 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
645 from pp_c_postfix_expression. Adjust.
646 (c_pretty_printer::c_pretty_printer): Do not assign to
647 postfix_expression.
648
7ecc2600
GDR
6492013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
650
651 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
652 virtua member function.
653 (pp_primary_expression): Adjust.
654 (pp_c_primary_expression): Remove.
655 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
656 from pp_c_primary_expression. Adjust.
657 (pp_c_initializer_list): Use pp_primary_expression.
658 (c_pretty_printer::c_pretty_printer): Do not assign to
659 primary_expression.
660
0691175f
GDR
6612013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
662
663 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
664 * c-pretty-print.c (M_): Remove.
665 (c_pretty_printer::translate_string): Define.
666 (pp_c_type_specifier): Use it.
667 (pp_c_primary_expression): Likewise.
668 (pp_c_expression): Likewise.
669
66dfe4c4
GDR
6702013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
671
672 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
673 virtual function.
674 (pp_c_id_expression): Remove.
675 (pp_id_expression): Adjust.
676 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
677 pp_c_id_expression. Adjust.
678 (pp_c_postfix_expression): Use pp_id_expression.
679 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
680
ca43e9d5
GDR
6812013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
682
683 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
684 member function.
685 (pp_constant): Adjust.
686 (pp_c_constant): Remove.
687 * c-pretty-print.c (c_pretty_printer::constant): Rename from
688 pp_c_constant. Adjust.
689 (pp_c_constant)
690 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
691 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
692
da6ca2b5
GDR
6932013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
694
695 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
696 (c_pretty_printer::c_pretty_printer): Declare.
697 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
698 c_pretty_printer_init. Adjust.
699 (print_c_tree): Do not call c_pretty_printer_init.
700 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
701
65a372f4
AC
7022013-08-09 Arnaud Charlet <charlet@adacore.com>
703
704 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
705
fd9b0f32
PC
7062013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
707
708 PR c++/58080
709 * c-common.c (pointer_int_sum): Add bool parameter.
710 * c-common.h (pointer_int_sum): Adjust declaration.
711
e0aec1e9
GDR
7122013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
713
714 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
715 c_pretty_printer variable.
716
b066401f
GDR
7172013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
718
719 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
720 (pp_base): Remove.
721 (pp_c_base): Likewise. Adjust users.
722 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
723 (pp_c_whitespace): Do not call pp_base.
724 (pp_c_left_paren): Likewise.
725 (pp_c_right_paren): Likewise.
726 (pp_c_left_brace): Likewise.
727 (pp_c_right_brace): Likewise.
728 (pp_c_left_bracket): Likewise.
729 (pp_c_right_bracket): Likewise.
730 (pp_c_dot): Likewise.
731 (pp_c_ampersand): Likewise.
732 (pp_c_star): Likewise.
733 (pp_c_arrow): Likewise.
734 (pp_c_semicolon): Likewise.
735 (pp_c_complement): Likewise.
736 (pp_c_exclamation): Likewise.
737 (pp_c_direct_declarator): Likewise.
738 (pp_c_ws_string): Likewise.
739 (pp_c_identifier): Likewise.
740 (pp_c_statement): Likewise.
741 (print_c_tree): Likewise.
742
65e5a578
ESR
7432013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
744
745 PR c++/58072
746 * c-common.c (c_parse_error): Catch user-defined literal tokens and
747 provide useful error strings.
748
137a1a27
GDR
7492013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
750
751 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
752 printer functions instead of pp_string or operators and punctuators.
753 (dump_generic_ada_node): Likewise.
754 * c-pretty-print.c (pp_c_type_specifier): Likewise.
755 (pp_c_relational_expression): Likewise.
756 (pp_c_logical_or_expression): Likewise.
757
07838b13
GDR
7582013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
759
760 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
761 functions instead of pp_character.
762 (pp_ada_tree_identifier): Likewise.
763 (dump_ada_double_name): Likewise.
764 (dump_ada_function_declaration): Likewise.
765 (dump_ada_array_domains): Likewise.
766 (dump_template_types): Likewise.
767 (dump_generic_ada_node): Likewise.
768 (print_ada_declaration): Likewise.
769 (print_ada_struct_decl): Likewise.
770 * c-pretty-print.c (pp_c_integer_constant): Likewise.
771
433cc7b0
TT
7722013-07-23 Tom Tromey <tromey@redhat.com>
773
774 * c-common.h (enum rid) <RID_GENERIC>: New constant.
775 * c-common.c (c_common_reswords): Add _Generic.
776
688010ba
OB
7772013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
778
779 * c-common.c: Fix typos.
780 * c-common.h: Likewise.
781
2a99e5e6
LL
7822013-07-13 Lubos Lunak <l.lunak@suse.cz>
783
784 PR c++/55203
785 * c-common.c (c_common_attribute_table): Add warn_unused.
786 (handle_warn_unused_attribute): New.
787
c26302d5
JJ
7882013-07-10 Jakub Jelinek <jakub@redhat.com>
789
790 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
791 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
792
dfeadaa0
PC
7932013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
794
795 PR c++/57869
796 * c.opt: Add Wconditionally-supported.
797
6a2fa4b2
GS
7982013-07-08 Graham Stott <graham.stott@btinternet.com>
799
800 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
801 unused variables l_length and l_node.
802
ecdbd01a 8032013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
804
805 PR c/57821
806 * c-common.c (complete_array_type): Delay folding first index
807 like other indices. When folding, check for index overflow.
808
bedc293e
MG
8092013-06-27 Marc Glisse <marc.glisse@inria.fr>
810
811 PR c++/57509
812 * c-common.h (c_build_vec_perm_expr): New complain argument.
813 * c-common.c (c_build_vec_perm_expr): Likewise.
814 Use save_expr also in C++.
815
604b2bfc
GDR
8162013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
817
818 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
819 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
820 * c-opts.c (c_common_post_options): Likewise.
821
dfeadaa0 8222013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
823
824 * array-notation-common.c (length_mismatch_in_expr): Changed the
825 parameter type's from a dynamic array to a vec_tree. Also removed
826 the size parameters.
827 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
828 the change above.
829
2ce86d2e
BI
8302013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
831
832 * c-common.h (struct cilkplus_an_parts): New structure.
833 (struct cilkplus_an_loop_parts): Likewise.
834 (cilkplus_extract_an_triplets): New prototype.
835 (fix_sec_implicit_args): Likewise.
836 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
837 (fix_sec_implicit_args): Likewise.
604b2bfc 838
07a6825b
BI
8392013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
840
841 * array-notation-common.c (find_inv_trees): Removed an unwanted
842 typecasting.
843 * c-common.h (struct inv_list::additional_tcodes): Changed type from
844 enum rid to enum tree_code.
845
08346abd
JH
8462013-06-11 Jan Hubicka <jh@suse.cz>
847
848 * c-common.c (handle_alias_ifunc_attribute): Do not set
849 DECL_EXTERNAL for weakref variables.
850 * c-pragma.c (handle_pragma_weak): Make sure aliases
851 are not declared as external.
852
d60f1706
BI
8532013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
854
855 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
856 function from c/c-array-notation.c.
857 (is_cilkplus_reduce_builtin): Likewise.
858 (find_rank): Likewise.
859 (extract_array_notation_exprs): Likewise.
860 (replace_array_notations): Likewise.
861 (find_inv_trees): Likewise.
862 (replace_inv_trees): Likewise.
863 (contains_array_notation_expr): Likewise.
864 (find_correct_array_notation_type): Likewise.
865 * c-common.h (struct inv_list): Moved this struct from the file
866 c/c-array-notation.c and added a new field called additional tcodes.
867 (length_mismatch_in_expr_p): New prototype.
868 (is_cilkplus_reduce_builtin): Likewise.
869 (find_rank): Likewise.
870 (extract_array_notation_exprs): Likewise.
871 (replace_array_notation): Likewise.
872 (find_inv_trees): Likewise.
873 (replace_inv_trees): Likewise.
874 (find_correct_array_notation_type): Likewise.
dfeadaa0 875
36536d79
BI
8762013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
877
878 * c-common.c (c_define_builtins): When cilkplus is enabled, the
879 function array_notation_init_builtins is called.
880 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
881 * c-common.def (ARRAY_NOTATION_REF): New tree.
882 * c-common.h (build_array_notation_expr): New function declaration.
883 (build_array_notation_ref): Likewise.
884 (extract_sec_implicit_index_arg): New extern declaration.
885 (is_sec_implicit_index_fn): Likewise.
886 (ARRAY_NOTATION_CHECK): New define.
887 (ARRAY_NOTATION_ARRAY): Likewise.
888 (ARRAY_NOTATION_START): Likewise.
889 (ARRAY_NOTATION_LENGTH): Likewise.
890 (ARRAY_NOTATION_STRIDE): Likewise.
891 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
892 ARRAY_NOTATION_REF.
893 (pp_c_expression): Likewise.
894 * c.opt (flag_enable_cilkplus): New flag.
895 * array-notation-common.c: New file.
896
f7716d57
JJ
8972013-05-14 Jakub Jelinek <jakub@redhat.com>
898
899 PR c++/57274
900 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
901
a5e0cd1d
MG
9022013-05-10 Marc Glisse <marc.glisse@inria.fr>
903
904 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
905 vectors.
906
f6bc1c4a
HS
9072013-05-07 Han Shen <shenhan@google.com>
908
909 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
910
3f12f6e9
SKS
9112013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
912
913 * c-common.c (check_user_alignment): Emit error for negative values.
914
61949153
PC
9152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
916
917 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
918
e93e18e9
PC
9192013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
920
921 * c-cppbuiltin.c (c_cpp_builtins): Do not define
922 __GXX_EXPERIMENTAL_CXX1Y__.
923
44d90fe1
PC
9242013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
925 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
926
927 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
928 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
929 to simply use OPT_Wpointer_arith.
930 (c_sizeof_or_alignof_type): Likewise.
931
13f39b2e
PC
9322013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
933
934 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
935
4b84d650
JJ
9362013-04-12 Jakub Jelinek <jakub@redhat.com>
937
938 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
939 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
940 specifiers.
941
fb037b5d
SB
9422013-04-07 Steven Bosscher <steven@gcc.gnu.org>
943
944 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
945
4e856798
PC
9462013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
947
948 * c-common.c (pointer_int_sum): Remove dead code.
949
4b1baac8
RS
9502013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
951
952 PR middle-end/56524
953 * c-common.c (handle_optimize_attribute): Don't call
954 save_optabs_if_changed.
955
0b50e654
JJ
9562013-03-05 Jakub Jelinek <jakub@redhat.com>
957
958 PR middle-end/56461
959 * c-pch.c (pch_init): Free target_validity at the end.
960
48c41403
JJ
9612013-03-04 Jakub Jelinek <jakub@redhat.com>
962
963 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
964
e664c61c
KS
9652013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
966 Jakub Jelinek <jakub@redhat.com>
967
968 PR sanitizer/56454
969 * c-common.c (handle_no_sanitize_address_attribute): New function.
970 (c_common_attribute_table): Add no_sanitize_address attribute.
971 (handle_no_address_safety_analysis_attribute): Add
972 no_sanitize_address attribute, not no_address_safety_analysis
973 attribute.
974
a475fd3d 9752013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
976
977 PR target/52555
978 * c-common.c (handle_optimize_attribute): Call
979 save_optabs_if_changed.
980
f6007d99
JJ
9812013-02-18 Jakub Jelinek <jakub@redhat.com>
982 Steven Bosscher <steven@gcc.gnu.org>
983
984 PR pch/54117
985 * c-opts.c (c_common_post_options): If debug info is enabled
986 and non-dwarf*, refuse to load PCH files and when writing PCH
987 file warn.
988
cf35e2b1
JJ
9892013-02-05 Jakub Jelinek <jakub@redhat.com>
990
991 PR middle-end/56167
992 * c-common.c (handle_error_attribute): Fix condition.
993
32887460
JJ
9942013-01-30 Jakub Jelinek <jakub@redhat.com>
995
996 PR c++/55742
997 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
998
5af057d8
JM
9992013-01-18 Jason Merrill <jason@redhat.com>
1000
1001 PR target/54908
1002 * c.opt (-fextern-tls-init): New.
1003 * c-opts.c (c_common_post_options): Handle it.
1004
cc83c823
JJ
10052013-01-09 Jakub Jelinek <jakub@redhat.com>
1006
1007 PR c/48418
1008 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1009 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1010 and is either negative or bigger or equal to type precision
1011 of the first operand.
1012
a859517f
MP
10132012-12-03 Marek Polacek <polacek@redhat.com>
1014
1015 PR c/55570
1016 * c-common.c (check_user_alignment): Swap order of tests,
1017 check TREE_CODE first.
1018
2d7aa578
ESR
10192012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1020
1021 PR c++/52654
1022 * c-common.h (overflow_type): New enum.
1023 (build_userdef_literal): Add overflow_type argument.
1024 (tree_userdef_literal): Add overflow_type.
1025 (USERDEF_LITERAL_OVERFLOW): New access macro.
1026 * c-common.c (build_userdef_literal): Add overflow_type
1027 argument.
1028 * c-lex.c (c_lex_with_flags): Add overflow_type to
1029 build_userdef_literal calls.
1030 (interpret_integer, interpret_float): Add overflow_type argument.
1031
cc3c4f62
RB
10322012-11-28 Richard Biener <rguenther@suse.de>
1033
1034 PR c/35634
1035 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1036 here and use a type with proper overflow behavior for types that would
1037 need to be promoted for the arithmetic.
1038
77bc5132
JJ
10392012-11-23 Jakub Jelinek <jakub@redhat.com>
1040
1041 PR sanitizer/55435
1042 * c-common.c (handle_no_address_safety_analysis_attribute): New
1043 function.
1044 (c_common_attribute_table): Add no_address_safety_analysis.
1045
5dc99c46
SB
10462012-11-16 Simon Baldwin <simonb@google.com>
1047
1048 * c.opt: Add f[no-]canonical-system-headers.
1049 * c-opts.c (c_common_handle_option): Handle
1050 OPT_fcanonical_system_headers.
1051
a4a0016d
ESR
10522012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1053
1054 PR c++/54413
1055 * c-opts.c (c_common_handle_option): Set new flags.
1056 * c.opt: Describe new flags.
1057
7dbb85a7
JM
10582012-11-09 Jason Merrill <jason@redhat.com>
1059
1060 * c.opt (Wabi-tag): New.
1061
ad7bac31
AK
10622012-11-09 Andi Kleen <ak@linux.intel.com>
1063
1064 PR 55139
1065 * c-common.c (get_atomic_generic_size): Mask with
1066 MEMMODEL_MASK
1067
7332899a
MLI
10682012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1069
1070 PR c/53063
1071 * c.opt (Wformat): Make it Alias Wformat=1.
1072 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1073 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1074 LangEnabledBy.
1075 (Wformat=): RejectNegative. Use LangEnabledBy.
1076 (Wnonnull): Use LangEnabledBy.
1077 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1078 * c-format.c (set_Wformat): Delete.
1079 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1080 (maybe_read_dollar_number): Likewise.
1081 (avoid_dollar_number): Likewise.
1082 (finish_dollar_format_checking): Likewise.
1083 (check_format_info): Likewise.
1084 (check_format_info_main): Likewise.
1085 (check_format_types): Likewise.
1086 (format_type_warning): Likewise.
1087 * c-common.c (int): Likewise.
1088 (check_function_sentinel): Likewise.
1089 * c-common.h (warn_format,set_Wformat): Do not declare here.
1090
34a180a6
MLI
10912012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1092
1093 PR c/53063
1094 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1095 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1096 Use LangEnabledBy.
1097 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1098 common.opt.
1099 (Wvariadic-macros): Init(1).
1100 * c-opts.c (c_common_handle_option): Do not handle them
1101 explicitly.
1102 (c_common_post_options): Likewise.
1103 (sanitize_cpp_opts): warn_unused_macros is now
1104 cpp_warn_unused_macros.
1105 (push_command_line_include): Likewise.
1106 * c-common.c (warn_unknown_pragmas): Do not define.
1107 * c-common.h (warn_unknown_pragmas): Do not declare.
1108
3f46d6a5
MLI
11092012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1110
1111 PR c/51294
1112 * c-common.c (conversion_warning): Handle conditional expressions.
1113
880661a4
JW
11142012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1115
1116 PR c++/54930
1117 * c.opt (Wreturn_local_addr): Define new option.
1118
4514a96b
JM
11192012-10-25 Jason Merrill <jason@redhat.com>
1120
f14edc1a
JM
1121 * c.opt (Wvirtual-move-assign): New.
1122
4514a96b
JM
1123 * c.opt (Winherited-variadic-ctor): New.
1124
93100c6b
MG
11252012-10-25 Marc Glisse <marc.glisse@inria.fr>
1126
1127 PR c++/54427
1128 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1129
1efcb8c6
JM
11302012-10-23 Joseph Myers <joseph@codesourcery.com>
1131
1132 * c-common.h (pch_cpp_save_state): Declare.
1133 * c-target.def (c_preinclude): New hook.
1134 * c-opts.c (done_preinclude): New.
1135 (push_command_line_include): Handle default preincluded header.
1136 (cb_file_change): Call pch_cpp_save_state when calling
1137 push_command_line_include.
1138 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1139 (pch_cpp_save_state): New.
1140 (pch_init): Call pch_cpp_save_state conditionally, instead of
1141 calling cpp_save_state.
1142
4a0ae68e
MLI
11432012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1144
1145 PR c/53063
1146 PR c/40989
1147 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1148 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1149 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1150 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1151 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1152 * c-opts.c (c_common_handle_option): Remove explicit handling from
1153 here.
1154 (c_common_post_options): Likewise.
1155
67e4210b
EB
11562012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1157
1158 * c-ada-spec.c (LOCATION_COL): Delete.
1159 (compare_location): New function.
1160 (compare_node): Use it.
1161 (compare_comment): Likewise.
1162
65d4f2cd
MLI
11632012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1164
1165 PR c/53063
1166 PR c/40989
1167 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1168 * c-opts.c (c_common_handle_option): Do not set them here. Add
1169 comment.
1170 (c_common_post_options): Likewise.
1171
909881cb
EB
11722012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1173
1174 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1175 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1176 Remove POINTER_TYPE handling, add large unsigned handling and use
1177 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1178
3a785c97
JJ
11792012-10-12 Jakub Jelinek <jakub@redhat.com>
1180
1181 PR c/54381
1182 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1183 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1184 locs and array of 3 trees instead of just single loc and single
1185 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1186 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1187 For *cmp* builtins that take two sources strings report warnings
1188 about first and second source, not about destination and source.
1189
5e54f81d
MG
11902012-10-12 Marc Glisse <marc.glisse@inria.fr>
1191
1192 PR c++/53055
1193 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1194
f5b02f1e
EB
11952012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1196
1197 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1198 declaring something coming from another file.
1199
b46dbc6c
AC
12002012-10-10 Arnaud Charlet <charlet@adacore.com>
1201
f5b02f1e 1202 PR ada/54845
b46dbc6c
AC
1203 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1204
5d9de0d0
PC
12052012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1206
1207 PR c++/54194
1208 * c-common.c (warn_about_parentheses): Add location_t parameter;
1209 use EXPR_LOC_OR_LOC.
1210 * c-common.h: Update declaration.
1211
a212e43f
MG
12122012-10-09 Marc Glisse <marc.glisse@inria.fr>
1213
1214 PR c++/54427
1215 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1216 more operations. Make error messages optional.
1217 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1218 (scalar_to_vector): Declare.
1219
b1db7f91
JM
12202012-10-08 Jason Merrill <jason@redhat.com>
1221
1222 * c-common.c (c_common_reswords): Add thread_local.
1223
e28d52cf
DS
12242012-10-08 Dodji Seketeli <dodji@redhat.com>
1225
1226 PR c++/53528 C++11 attribute support
1227 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1228 new functions.
1229 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1230 static function.
1231 (handle_aligned_attribute): In choose strictest alignment
1232 among many. Use new check_cxx_fundamental_alignment_constraints.
1233 (handle_transparent_union_attribute): In c++11 attribute syntax,
1234 don't look through typedefs.
1235
3b78de56
AC
12362012-10-04 Arnaud Charlet <charlet@adacore.com>
1237
1238 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1239 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1240 out of dumpfile.h.
1241
6040bb5f
DC
12422012-09-25 Dehao Chen <dehao@google.com>
1243
1244 PR middle-end/54645
3b78de56 1245 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1246 map when read in the pch.
1247
0b07a57e
AC
12482012-09-18 Arnaud Charlet <charlet@adacore.com>
1249
1250 * c-ada-spec.c: Style fixes.
1251
da5182be
TQ
12522012-09-18 Thomas Quinot <quinot@adacore.com>
1253
1254 * c.opt (-fada-spec-parent): Define new command line switch.
1255 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1256 is specified, generate binding spec as a child of the specified unit.
1257
0ccb505d
PC
12582012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1259 Manuel López-Ibáñez <manu@gcc.gnu.org>
1260
1261 PR c++/53210
1262 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1263
c583af79
AC
12642012-08-23 Arnaud Charlet <charlet@adacore.com>
1265
1266 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1267 for pointers, and add missing Convention C pragma.
1268 (print_ada_struct_decl): Add missing aliased keyword.
1269 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1270
1a4049e7
JJ
12712012-08-17 Jakub Jelinek <jakub@redhat.com>
1272
1273 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1274 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1275 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1276 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1277 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1278
70b5e7dc
RG
12792012-08-10 Richard Guenther <rguenther@suse.de>
1280
1281 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1282
f8923f7e
SB
12832012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1284
1285 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1286 instead of separate pp_newline and pp_flush.
1287 (print_c_tree): Likewise.
1288
e45abe1f
RH
12892012-07-26 Richard Henderson <rth@redhat.com>
1290
1291 * c-common.c (handle_hot_attribute): Allow labels.
1292 (handle_cold_attribute): Likewise.
1293
332f1d24
JJ
12942012-07-20 Jakub Jelinek <jakub@redhat.com>
1295
1296 PR c++/28656
1297 * c-common.c (check_function_nonnull): Handle multiple nonnull
1298 attributes properly.
1299
7ee2468b
SB
13002012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1301
1302 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1303 * c-ada-spec.c: Likewise.
1304 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1305
ee7b28eb
SB
13062012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1307
1308 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1309 Remove code conditional on it.
1310
6bdf3519
SB
13112012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1312
1313 * c-gimplify.c: Do not include basic-block.h.
1314 * c-common.c: Do not include linfuncs.h.
1315
532aafad
SB
13162012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1317
1318 * c-common.h: Include tree.h.
1319
8d0d1915
JM
13202012-07-02 Jason Merrill <jason@redhat.com>
1321
1322 PR c++/53524
1323 * c-common.c (get_priority): Call default_conversion.
1324
fbc873ad
UB
13252012-07-01 Uros Bizjak <ubizjak@gmail.com>
1326
1327 * c-pch.c (c_common_write_pch): Remove unused variables.
1328
d4a10d0a
SB
13292012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1330
1331 * cppspec.c: Moved from gcc/ to here.
1332
6f3a2e23
KT
13332012-06-27 Kai Tietz <ktietz@redhat.com>
1334
1335 PR preprocessor/37215
1336 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1337
8ca92d04
SB
13382012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1339
1340 * c-common.h (c_common_print_pch_checksum): Remove.
1341 * c-pch.c: Do not include output.h.
1342 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1343 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1344 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1345 (struct c_pch_header): Remove.
1346 (get_ident): Update gpch version.
1347 (pch_init): Do not print executable_checksum to asm_out_file.
1348 Do not fail if there is no asm_out_file to read back from. Set
1349 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1350 (c_common_write_pch): Verify that nothing was written to asm_out_file
1351 since pch_init was called. Do not write a c_pch_header, and do not
1352 copy from asm_out_file to the PCH.
1353 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1354 the content of asm_out_file from the PCH.
1355 (c_common_print_pch_checksum): Remove.
1356 * c-opts.c (c_common_init): Print out executable_checksum directly.
1357
70f42967
SB
13582012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1359
1360 * c-target.def (objc_declare_unresolved_class_reference,
1361 objc_declare_class_definition): Add new hooks.
1362
a8781821
SB
13632012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1364
1365 * c-lex.c: Do not include output.h.
1366 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1367 Remove uses of ASM_OUTPUT_IDENT.
1368
9e1a8dd1
RR
13692012-06-15 Marc Glisse <marc.glisse@inria.fr>
1370
1371 PR c++/51033
1372 * c-common.h (c_build_vec_perm_expr): Move decl here.
1373 * c-common.c (c_build_vec_perm_expr): Move definition
1374 here.
1375
6f07a821
SB
13762012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1377
1378 * c.opt (fconserve-space): Turn into a no-op.
1379
9faeb493 13802012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1381
1382 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1383 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1384 both the start and end of the function.
1385
a4b7d13c
SB
13862012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1387
1388 * c-common.c: Do not include output.h.
1389 * c-pragma.c: Likewise.
1390
c265f413
SA
13912012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1392
1393 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1394 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1395 (lang_decl_name): Handle namespace decls.
1396
be7a421e
SB
13972012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1398
1399 * c-ada-spec.c: Do not include output.h.
1400 * c-semantics.c: Likewise.
1401
65de6659
JM
14022012-05-29 Joseph Myers <joseph@codesourcery.com>
1403
1404 * c-common.c: Fix typo.
1405
ca5f4331
MM
14062012-05-29 Michael Matz <matz@suse.de>
1407
1408 * c-common.h (c_expand_decl): Remove prototype.
1409
4f7f7aca
MLI
14102012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1411
1412 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1413 * c-opts.c (c_common_handle_option): Remove code handling
1414 warn_missing_braces.
1415
4a792f9b
PC
14162012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1417
1418 PR c++/25137
1419 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1420 -Wmissing_braces.
1421
650dc14a
DS
14222012-05-22 Dodji Seketeli <dodji@redhat.com>
1423
1424 PR c++/53322
1425 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1426
9b095bf1
MLI
14272012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1428
1429 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1430 * c-opts.c (c_common_handle_option): Do not handle explicitly
1431 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1432
0b2c4be5
DS
14332012-05-16 Dodji Seketeli <dodji@redhat.com>
1434
1435 PR preprocessor/7263
1436 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1437 to cpp_classify_number. For diagnostics, use the precise location
1438 instead of the global input_location.
1439
a1bde5af
PC
14402012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1441
d02924ef 1442 PR c++/11856
a1bde5af
PC
1443 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1444
d1ede5f4
BS
14452012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1446
a1bde5af 1447 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1448
f2bc201f
MLI
14492012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1450
1451 PR 53063
1452 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1453 Wreorder): Use LangEnabledBy.
1454 * c-opts.c (c_common_handle_option): Do not enable them
1455 explicitly. Call lang-specific generated functions.
1456 (c_common_post_options): Do not set them here.
1457
95744782
MLI
14582012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1459
1460 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1461 Wmissing-field-initializers,Wmissing-parameter-type,
1462 Wold-style-declaration,Woverride-init): Use EnabledBy.
1463 * c-opts.c (c_common_post_options): Do not set here explicitly.
1464
7d5a5747
MLI
14652012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1466
1467 PR 53063
1468 * c-opts.c (c_common_handle_option): Use handle_generated_option
1469 to enable sub-options.
1470
5a3c9cf2
PC
14712012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1472
1473 PR c++/53158
1474 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1475
3ac8781c
RG
14762012-05-10 Richard Guenther <rguenther@suse.de>
1477
1478 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1479 adjust commentary about TYPE_IS_SIZETYPE types.
1480
1e537948
MLI
14812012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1482
1483 PR c++/53261
1484 * c-common.c (warn_logical_operator): Check that argument of
1485 integer_zerop is not NULL.
1486
f2c4a785
MLI
14872012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1488
1489 PR c/43772
1490 * c-common.c (warn_logical_operator): Do not warn if either side
1491 is already true or false.
1492
50f305ca
MLI
14932012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1494
1495 PR c/51712
1496 * c-common.c (expr_original_type): New.
1497 (shorten_compare): Do not warn for enumeration types.
1498
0c3641b0
MLI
14992012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1500
1501 * c.opt (fpermissive): Add Var(flag_permissive).
1502
7edaa4d2
MG
15032012-04-30 Marc Glisse <marc.glisse@inria.fr>
1504
1505 PR c++/51033
1506 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1507 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1508
b9c8da34
DS
15092012-04-30 Dodji Seketeli <dodji@redhat.com>
1510
1511 Add -Wvarargs option
1512 * c.opt (Wvarargs): Define new option.
1513
e6c69da0
MLI
15142012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1515
1516 * c-common.c (check_function_arguments): Replace
1517 Wmissing-format-attribute with Wsuggest-attribute=format.
1518
90137d8f
MLI
15192012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1520
1521 * c.opt (Wsuggest-attribute=format): New. Alias of
1522 Wmissing-format-attribute.
1523 * c-format.c (decode_format_type): Replace
1524 Wmissing-format-attribute with Wsuggest-attribute=format.
1525 (check_function_format): Likewise.
1526
9faeb493 15272012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1528
1529 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1530 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1531 * c.opt: Add Wliteral-suffix.
1532
c1771a20
MLI
15332012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1534
1535 PR c/44774
1536 * c.opt (Wpedantic): New.
1537 (pedantic): Alias Wpedantic.
1538 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1539 (c_common_post_options): Likewise.
1540 (sanitize_cpp_opts): Likewise.
1541 * c-lex.c (interpret_float): Likewise.
1542 * c-format.c (check_format_types): Likewise.
1543 * c-common.c (pointer_int_sum): Likewise.
1544 (c_sizeof_or_alignof_type): Likewise.
1545 (c_add_case_label): Likewise.
1546 (c_do_switch_warnings): Likewise.
1547 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1548
04b391c1
JM
15492012-04-15 Jason Merrill <jason@redhat.com>
1550
1551 PR c++/52818
1552 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1553 (C_STD_NAME): Distinguish between C++98 and C++11.
1554
ac868f29
EB
15552012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1556
1557 PR target/52624
1558 * c-common.h (uint16_type_node): Rename into...
1559 (c_uint16_type_node): ...this.
1560 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1561 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1562
fd4116f4
MLI
15632012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1564
1565 * c-common.c (warn_if_unused_value): Move definition to here.
1566 * c-common.h (warn_if_unused_value): Move declaration to here.
1567
573ac65e
WB
15682012-03-23 William Bader <williambader@hotmail.com>
1569
1570 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1571
552b8185
JM
15722012-03-20 Jason Merrill <jason@redhat.com>
1573
1574 * c-common.h (enum cxx_dialect): Add cxx1y.
1575 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1576 test.
1577 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1578 * c-opts.c (c_common_post_options): Likewise.
1579 (set_std_cxx1y): New.
1580 (c_common_handle_option): Call it.
1581 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1582
04398fa8
PC
15832012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1584
1585 PR c++/14710
1586 * c.opt ([Wuseless-cast]): Add.
1587
d2a12ae7
RG
15882012-03-16 Richard Guenther <rguenther@suse.de>
1589
1590 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1591
a12bf402
MLI
15922012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1593
1594 PR c++/44783
1595 * c.opt (ftemplate-backtrace-limit) Add.
1596
5c30094f
RO
15972012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1598
1599 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1600 handling.
1601 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1602 (init_pragma): Don't register extern_prefix.
1603
21fa2faf
RG
16042012-03-12 Richard Guenther <rguenther@suse.de>
1605
1606 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1607 (builtin_type_for_size): Likewise.
1608
e3793c6f
JJ
16092012-02-13 Jakub Jelinek <jakub@redhat.com>
1610
1611 PR c++/52215
1612 * c-common.c (sync_resolve_params): Don't decide whether to convert
1613 or not based on TYPE_SIZE comparison, convert whenever arg_type
1614 is unsigned INTEGER_TYPE.
1615
93286335
PC
16162012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1617
1618 PR c/52118
1619 * c.opt ([Wunused-local-typedefs]): Fix description.
1620
7a421706
MS
16212012-01-24 Mike Stump <mikestump@comcast.net>
1622
1623 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1624 exactly.
1625
ba9b1f11
RG
16262012-01-18 Richard Guenther <rguenther@suse.de>
1627
1628 * c-opts.c (c_common_post_options): Reset LTO flags if
1629 we are about to generate a PCH.
1630
465406be
PC
16312012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1632
1633 PR c++/51777
1634 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1635 use pp_unsigned_wide_integer.
1636
aee15221
RG
16372012-01-10 Richard Guenther <rguenther@suse.de>
1638
1639 PR middle-end/51806
1640 * c-opts.c (c_common_handle_option): Move -Werror handling
1641 to language independent code.
1642
5720c0dc
RG
16432012-01-05 Richard Guenther <rguenther@suse.de>
1644
1645 PR middle-end/51764
1646 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1647 from common.opt.
1648
73ac190a
PC
16492011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1650
1651 PR c++/51316
1652 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1653 of array types with an unknown bound.
1654
48b0b196
JM
16552011-12-20 Joseph Myers <joseph@codesourcery.com>
1656
1657 * c-common.c (flag_isoc99): Update comment to refer to C11.
1658 (flag_isoc1x): Change to flag_isoc11.
1659 * c-common.h (flag_isoc99): Update comment to refer to C11.
1660 (flag_isoc1x): Change to flag_isoc11.
1661 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1662 C11.
1663 * c-opts.c (set_std_c1x): Change to set_std_c11.
1664 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1665 Call set_std_c11.
1666 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1667 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1668 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1669 standard.
1670 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1671 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1672 (std=gnu1x): Make alias of std=gnu11.
1673
d58d6eb5
JM
16742011-12-19 Jason Merrill <jason@redhat.com>
1675
1676 PR c++/51228
1677 * c-common.c (handle_transparent_union_attribute): Check the first
1678 field if the type is complete.
1679
b3908fcc
JW
16802011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1681
1682 PR libstdc++/51365
1683 * c-common.c (RID_IS_FINAL): Add.
1684 * c-common.h (RID_IS_FINAL): Add.
1685
fea3ca91
IS
16862011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1687
1688 * c.opt (fgnu-runtime): Provide full description.
1689 (fnext-runtime): Likewise.
1690 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1691
62bad7cd
AM
16922011-11-28 Andrew MacLeod <amacleod@redhat.com>
1693
1694 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1695 predefines in one place. Add LOCK_FREE predefines.
1696 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1697 new func.
1698
c466c4ff
AM
16992011-11-24 Andrew MacLeod <amacleod@redhat.com>
1700
1701 PR c/51256
9faeb493 1702 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1703 conditions
9faeb493
UB
1704 (resolve_overloaded_atomic_exchange,
1705 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1706 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1707 error_mark_node for error conditions.
9faeb493 1708
a5952633
RG
17092011-11-08 Richard Guenther <rguenther@suse.de>
1710
1711 PR middle-end/51010
1712 c-family/
1713
0a35513e
AH
17142011-11-07 Richard Henderson <rth@redhat.com>
1715 Aldy Hernandez <aldyh@redhat.com>
1716 Torvald Riegel <triegel@redhat.com>
1717
1718 Merged from transactional-memory.
1719
1720 * c-common.c (handle_tm_wrap_attribute,
1721 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1722 (struct c_common_reswords): Added __transaction* keywords.
1723 (struct c_common_attribute_table): Added transaction* and tm_regparm
1724 attributes.
1725 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1726 masks.
1727 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1728 find_tm_attribute): Declare.
1729
6d87092d
JM
17302011-11-07 Jason Merrill <jason@redhat.com>
1731
1732 PR c++/35688
1733 * c-common.c, c-common.h: Revert yesterday's changes.
1734
8e7860a1
JM
17352011-11-06 Jason Merrill <jason@redhat.com>
1736
1737 PR c++/35688
1738 * c-common.c (decl_has_visibility_attr): Split out from...
1739 (c_determine_visibility): ...here.
1740 * c-common.h: Declare it.
1741
d19fa6b5
JM
17422011-11-06 Joseph Myers <joseph@codesourcery.com>
1743
1744 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1745 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1746 type.
1747 (check_user_alignment): New. Split out of
1748 handle_aligned_attribute. Disallow integer constants with
1749 noninteger types. Conditionally allow zero.
1750 (handle_aligned_attribute): Use check_user_alignment.
1751 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1752
86951993
AM
17532011-11-06 Andrew MacLeod <amacleod@redhat.com>
1754 Richard Henderson <rth@redhat.com>
1755
1756 Merged from cxx-mem-model.
1757
1758 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1759 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1760 parameters that are the same type size.
1761 (get_atomic_generic_size): New. Find size of generic
1762 atomic function parameters and do typechecking.
1763 (add_atomic_size_parameter): New. Insert size into parameter list.
1764 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1765 either __atomic_exchange_n or external library call.
9faeb493 1766 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1767 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1768 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1769 __atomic_load_n or an external library call.
1770 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1771 __atomic_store_n or an external library call.
1772 (resolve_overloaded_builtin): Handle new __atomic builtins.
1773
cf9e9959
EB
17742011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1775
1776 PR c++/50608
1777 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1778 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1779 <INDIRECT_REF>: Return the argument.
1780 <ARRAY_REF>: Remove special code for negative offset.
1781 Call fold_build_pointer_plus instead of size_binop.
1782 (fold_offsetof): Remove STOP_REF argument and adjust.
1783 * c-common.h (fold_offsetof_1): Declare.
1784 (fold_offsetof): Remove STOP_REF argument.
1785
25339f10
JM
17862011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1787
1788 PR c++/50810
1789 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1790 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1791 Wnarrowing for C++0x and C++98.
1792 * c.opt ([Wnarrowing]): Update.
1793
89401152
PC
17942011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1795
1796 PR c++/44277
1797 * c.opt: Add Wzero-as-null-pointer-constant.
1798
97e3ad20
JM
17992011-10-31 Jason Merrill <jason@redhat.com>
1800
15694fdd
JM
1801 * c.opt (-fdeduce-init-list): Off by default.
1802
97e3ad20
JM
1803 PR c++/50920
1804 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1805 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1806 and -Wc++11-compat.
1807 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1808
fb9120e3
RAV
18092011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1810
1811 PR c++/30066
1812 * c.opt (fvisibility-inlines-hidden): Description change.
1813
3ce4f9e4
ESR
18142011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1815
1816 Implement C++11 user-defined literals.
1817 * c-common.c (build_userdef_literal): New.
1818 * c-common.def: New tree code.
1819 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1820 * c-lex.c (interpret_float): Add suffix parm.
1821 (c_lex_with_flags): Build literal tokens.
1822
5f53c243
PC
18232011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1824
1825 PR c++/50841
1826 Revert:
1827 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1828
1829 PR c++/50810
1830 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1831 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1832 Wnarrowing for C++0x and C++98.
1833 * c.opt ([Wnarrowing]): Update.
1834
263734e1
PC
18352011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1836
1837 PR c++/50810
1838 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1839 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1840 Wnarrowing for C++0x and C++98.
1841 * c.opt ([Wnarrowing]): Update.
1842
d2e312d7
PC
18432011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1844
1845 PR c++/45385
1846 * c-common.c (conversion_warning): Remove code looking for
1847 artificial operands.
1848
d17687f6
DS
18492011-10-18 Dodji Seketeli <dodji@redhat.com>
1850
1851 PR bootstrap/50760
1852 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1853 !NO_IMPLICIT_EXTERN_C.
d17687f6 1854
fc8396e9
PC
18552011-10-17 Michael Spertus <mike_spertus@symantec.com>
1856
1857 * c-common.c (c_common_reswords): Add __bases,
1858 __direct_bases.
1859 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1860
18612011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1862
1863 PR c++/50757
1864 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1865
847e697a
TT
18662011-10-15 Tom Tromey <tromey@redhat.com>
1867 Dodji Seketeli <dodji@redhat.com>
1868
1869 * c.opt (fdebug-cpp): New option.
1870 * c-opts.c (c_common_handle_option): Handle the option.
1871 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1872 output stream in parameter. Factorized from ...
1873 (maybe_print_line): ... this. Dump location debug information when
1874 -fdebug-cpp is in effect.
1875 (print_line_1): New static function. Takes an output stream in
1876 parameter. Factorized from ...
1877 (print_line): ... here. Dump location information when -fdebug-cpp
1878 is in effect.
1879 (scan_translation_unit): Dump location information when
1880 -fdebug-cpp is in effect.
1881
92582b75
TT
18822011-10-15 Tom Tromey <tromey@redhat.com>
1883 Dodji Seketeli <dodji@redhat.com>
1884
1885 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1886 without argument.
1887 * c-opts.c (c_common_handle_option)<case
1888 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1889 cases. Handle -ftrack-macro-expansion with and without argument.
1890
46427374
TT
18912011-10-15 Tom Tromey <tromey@redhat.com>
1892 Dodji Seketeli <dodji@redhat.com>
1893
1894 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1895 (print_line, cb_define, do_line_change): Adjust to avoid touching
1896 the internals of struct line_map. Use the public API instead.
1897 * c-pch.c (c_common_read_pch): Likewise.
1898 * c-lex.c (fe_file_change): Likewise.
1899
fc8396e9
PC
19002011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1901
1902 PR c++/17212
1903 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1904
19052011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1906
1907 PR c++/33067
1908 * c-pretty-print.c (pp_c_floating_constant): Output
1909 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1910
e79983f4
MM
19112011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1912
1913 * c-common.c (def_builtin_1): Delete old interface with two
1914 parallel arrays to hold standard builtin declarations, and replace
1915 it with a function based interface that can support creating
1916 builtins on the fly in the future. Change all uses, and poison
1917 the old names. Make sure 0 is not a legitimate builtin index.
1918 * c-omp.c (c_finish_omp_barrier): Ditto.
1919 (c_finish_omp_taskwait): Ditto.
1920 (c_finish_omp_flush): Ditto.
1921
6637388f
TG
19222011-10-11 Tristan Gingold <gingold@adacore.com>
1923
1924 * c.opt: (fallow-parameterless-variadic-functions): New.
1925
3797cb21
DS
19262011-09-08 Dodji Seketeli <dodji@redhat.com>
1927
1928 PR c++/33255 - Support -Wunused-local-typedefs warning
1929 * c-common.h (struct c_language_function::local_typedefs): New
1930 field.
9faeb493
UB
1931 (record_locally_defined_typedef, maybe_record_typedef_use)
1932 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1933 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1934 (maybe_record_typedef_use)
1935 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1936 * c.opt: Declare new -Wunused-local-typedefs flag.
1937
693ddb1b
EB
19382011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1939
1940 PR middle-end/50266
1941 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1942 computations.
1943
830c740f
RG
19442011-09-05 Richard Guenther <rguenther@suse.de>
1945
1946 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1947 of integer_minus_one_node for empty array upper bounds.
1948
892a371f
DS
19492011-08-28 Dodji Seketeli <dodji@redhat.com>
1950
1951 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1952 it's the first time it's being called on this main TU.
1953
0e3fdb48
RB
19542011-08-24 Richard Guenther <rguenther@suse.de>
1955
1956 PR c/49396
1957 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1958
19592011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1960
1961 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1962 defined in cpp_init_builtins and c_cpp_builtins.
1963
d4a83c10
JM
19642011-08-19 Joseph Myers <joseph@codesourcery.com>
1965
1966 * c-common.c (c_common_reswords): Add __builtin_complex.
1967 * c-common.h (RID_BUILTIN_COMPLEX): New.
1968
bbceee64
JM
19692011-08-18 Joseph Myers <joseph@codesourcery.com>
1970
1971 * c-common.c (c_common_reswords): Add _Noreturn.
1972 (keyword_is_function_specifier): Handle RID_NORETURN.
1973 * c-common.h (RID_NORETURN): New.
1974
0e3a99ae
AS
19752011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1976
1977 * c-common.c (unsafe_conversion_p): New function. Check if it is
1978 unsafe to convert an expression to the type.
1979 (conversion_warning): Adjust, use unsafe_conversion_p.
1980 * c-common.h (unsafe_conversion_p): New function declaration.
1981
20906c66
JJ
19822011-08-02 Jakub Jelinek <jakub@redhat.com>
1983
1984 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1985 (c_finish_omp_taskyield): New prototype.
1986 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1987 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1988 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1989 or RHS1 have side-effects, evaluate those too in the right spot,
1990 if it is a decl and LHS is also a decl, error out if they
1991 aren't the same.
1992 (c_finish_omp_taskyield): New function.
1993 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1994 * c-pragma.c (omp_pragmas): Add taskyield.
1995 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1996 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1997 PRAGMA_OMP_CLAUSE_MERGEABLE.
1998
770e5a2e
DS
19992011-07-25 Dodji Seketeli <dodji@redhat.com>
2000
2001 * c-common.h (set_underlying_type): Remove parm name from
2002 declaration.
2003
1baae426
RG
20042011-07-25 Romain Geissler <romain.geissler@gmail.com>
2005
2006 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2007
fcb21722
JM
20082011-07-22 Jason Merrill <jason@redhat.com>
2009
76f86d00
JM
2010 PR c++/49793
2011 * c.opt (Wnarrowing): New.
2012
3a636414
JM
2013 PR c++/30112
2014 * c-common.h: Declare c_linkage_bindings.
2015 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2016
fcb21722
JM
2017 PR c++/49813
2018 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2019 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2020 as flag_isoc99 for 'restrict'.
2021 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2022
02614448
ILT
20232011-07-21 Ian Lance Taylor <iant@google.com>
2024
2025 PR middle-end/49705
2026 * c-common.c (c_disable_warnings): New static function.
2027 (c_enable_warnings): New static function.
2028 (c_fully_fold_internal): Change local unused_p to bool. Call
2029 c_disable_warnings and c_enable_warnings rather than change
2030 c_inhibit_evaluation_warnings.
2031
34429675
JM
20322011-07-20 Jason Merrill <jason@redhat.com>
2033
2034 PR c++/6709 (DR 743)
2035 PR c++/42603 (DR 950)
2036 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2037 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2038 (CPP_DECLTYPE): New.
2039 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2040
5d49b6a7
RG
20412011-07-19 Richard Guenther <rguenther@suse.de>
2042
2043 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2044 * c-omp.c (c_finish_omp_for): Likewise.
2045
e84a58ff
EB
20462011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2047
2048 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2049 body on the next line.
2050
329af3c7
JM
20512011-07-08 Jason Merrill <jason@redhat.com>
2052
4063e61b
JM
2053 PR c++/45437
2054 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2055
329af3c7
JM
2056 PR c++/49673
2057 * c-common.c (c_apply_type_quals_to_decl): Don't check
2058 TYPE_NEEDS_CONSTRUCTING.
2059
1a072294
RG
20602011-07-06 Richard Guenther <rguenther@suse.de>
2061
2062 * c-common.c (c_common_nodes_and_builtins):
2063 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2064
fce5dddd
RG
20652011-07-05 Richard Guenther <rguenther@suse.de>
2066
2067 * c-common.c (c_common_nodes_and_builtins): Build all common
2068 tree nodes first.
2069
45d439ac
JJ
20702011-06-27 Jakub Jelinek <jakub@redhat.com>
2071
56300785
JJ
2072 * c-common.h (c_tree_chain_next): New static inline function.
2073
45d439ac
JJ
2074 * c-common.c (check_builtin_function_arguments): Handle
2075 BUILT_IN_ASSUME_ALIGNED.
2076
e0a8ecf2
AM
20772011-06-21 Andrew MacLeod <amacleod@redhat.com>
2078
2079 * c-common.c: Add sync_ or SYNC__ to builtin names.
2080 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2081
20822011-06-20 Pierre Vittet <piervit@pvittet.com>
2083
2084 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2085 handler.
2086 (gen_pragma_handler): New union.
2087 (internal_pragma_handler): New type.
2088 (c_register_pragma_with_data)
2089 (c_register_pragma_with_expansion_and_data): New functions.
2090
2091 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2092 (c_register_pragma, c_register_pragma_with_expansion)
2093 (c_invoke_pragma_handler): Changed to work with
2094 internal_pragma_handler.
2095 (c_register_pragma_with_data)
2096 (c_register_pragma_with_expansion_and_data): New functions.
2097
677f3fa8
JM
20982011-06-14 Joseph Myers <joseph@codesourcery.com>
2099
2100 * c-common.c: Include common/common-target.h.
2101 (handle_section_attribute): Use
2102 targetm_common.have_named_sections.
2103 * c-cppbuiltin.c: Include common/common-target.h.
2104 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2105
d7fc8c14
RG
21062011-06-10 Richard Guenther <rguenther@suse.de>
2107
2108 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2109 to print a IDENTIFIER_NODE.
2110
10e48e39
RO
21112011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2112 Joseph Myers <joseph@codesourcery.com>
2113
2114 * c.opt (fbuilding-libgcc): New option.
2115 * c-cppbuiltin.c (c_cpp_builtins): Define
2116 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2117
6976ae51
JM
21182011-06-07 Jason Merrill <jason@redhat.com>
2119
3ff60975
JM
2120 * c-common.c (max_tinst_depth): Lower default to 900.
2121
6976ae51
JM
2122 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2123
009db074
RG
21242011-06-07 Richard Guenther <rguenther@suse.de>
2125
2126 * c-common.c (c_common_nodes_and_builtins): Do not set
2127 size_type_node or call set_sizetype.
2128
b4592b92
DS
21292011-06-07 Dodji Seketeli <dodji@redhat.com>
2130
2131 PR debug/49130
2132 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2133 type when using pointer comparison to compare types.
b4592b92 2134
014ab419
JW
21352011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2136
2137 * c.opt: Add -Wdelete-non-virtual-dtor.
2138 * c-opts.c (c_common_handle_option): Include it in -Wall.
2139
4f60111f
NF
21402011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2141
2142 PR bootstrap/49190
2143
2144 Revert:
2145 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2146
2147 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2148 not tree_common.
2149
4cc4f2f4
JJ
21502011-05-27 Jakub Jelinek <jakub@redhat.com>
2151
2152 PR c++/49165
2153 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2154 C++ don't call c_common_truthvalue_conversion on void type arms.
2155
38e01f9e
NF
21562011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2157
2158 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2159 (stmt_list_stack): Define.
2160 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2161 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2162
92e948a8
NF
21632011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2164
2165 * c-common.c (warning_candidate_p): Check for BLOCKs.
2166
a2fc3e63
NF
21672011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2168
2169 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2170 not tree_common.
2171
0957c029
JJ
21722011-05-25 Jakub Jelinek <jakub@redhat.com>
2173
2174 * c-common.c (def_fn_type): Remove extra va_end.
2175
828fb3ba
JM
21762011-05-23 Jason Merrill <jason@redhat.com>
2177
2178 PR c++/48106
2179 * c-common.c (c_common_get_narrower): New.
2180 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2181
dde05067
NF
21822011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2183
2184 * c-common.h (check_function_arguments): Tweak prototype of
2185 check_function_arguments.
2186 * c-common.c (check_function_arguments): Likewise. Adjust
2187 calls to check_function_nonnull, check_function_format, and
2188 check_function_sentinel.
2189 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2190 separate attributes and typelist arguments. Use
2191 FOREACH_FUNCTION_ARGS to iterate over argument types.
2192
3c0d13bf
PC
21932011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2194
2195 * c-common.c (c_common_reswords): Reorder.
2196 * c-common.h (rid): Likewise.
2197
8242dd04
NF
21982011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2199
2200 * c-common.c (def_fn_type): Don't call build_function_type, call
2201 build_function_type_array or build_varargs_function_type_array
2202 instead.
2203 (c_common_nodes_and_builtins): Likewise.
2204
3d528853
NF
22052011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2206
2207 * c-common.c (c_add_case_label): Omit the loc argument to
2208 build_case_label.
2209 * c-common.h (build_case_label): Remove.
2210 * c-semantics.c (build_case_label): Remove.
2211
a04a722b
JM
22122011-05-05 Joseph Myers <joseph@codesourcery.com>
2213
2214 * c-objc.h (objc_start_method_definition): Update prototype.
2215 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2216
e19a18d4
NF
22172011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2218
2219 * c-common.c (check_main_parameter_types): Reindent. Don't use
2220 TYPE_ARG_TYPES directly.
2221 (handle_nonnull_attribute): Likewise.
2222 (sync_resolve_params): Likewise.
2223 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2224 to check_format_string.
2225 (handle_format_attribute): Likewise.
2226 (check_format_string): Take a function type to examine instead of
2227 a type list. Use a function_arg_iterator to step through argument
2228 types.
2229
c62c040f
RG
22302011-05-04 Richard Guenther <rguenther@suse.de>
2231
2232 * c-common.c (fix_string_type): Use size_int for index type bounds.
2233 (start_fname_decls): Do not pass NULL to build_int_cst.
2234 (c_init_attributes): Likewise.
2235 * c-lex.c (c_lex_with_flags): Likewise.
2236
c12ff9d8
JM
22372011-04-27 Jason Merrill <jason@redhat.com>
2238
2239 * c-common.c (make_tree_vector_from_list): New.
2240 * c-common.h: Declare it.
2241
304dfbe3
RG
22422011-04-26 Richard Guenther <rguenther@suse.de>
2243
2244 PR preprocessor/48248
2245 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2246 for output size with -P.
2247
3c0d13bf
PC
22482011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2249
2250 * c-common.c (struct c_common_resword): Add __underlying_type.
2251 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2252
04695783
JM
22532011-04-20 Jim Meyering <meyering@redhat.com>
2254
2255 * c-format.c (init_dollar_format_checking): Remove useless
2256 if-before-free.
2257
0dc33c3c
NP
22582011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2259
2260 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2261 (objc_detect_field_duplicates): New.
0dc33c3c 2262 * stub-objc.c: Likewise.
3c0d13bf 2263
c59633d9
NP
22642011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2265
2266 * stub-objc.c (objc_declare_protocols): Renamed to
2267 objc_declare_protocol.
2268 * c-objc.h: Likewise.
3c0d13bf 2269
32dabdaf
NP
22702011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2271
2272 * stub-objc.c (objc_declare_class): Updated argument name.
2273
81f653d6
NF
22742011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2275
2276 * c-common.h (c_common_init_ts): Declare.
2277 * c-common.c (c_common_init_ts): Define.
2278
eb345401
NP
22792011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2280
2281 * c-objc.h (objc_build_message_expr): Updated prototype.
2282 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2283
a358e188
MJ
22842011-04-12 Martin Jambor <mjambor@suse.cz>
2285
2286 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2287 of cgraph_node.
2288
e6313a78
RG
22892011-04-11 Richard Guenther <rguenther@suse.de>
2290
2291 * c-common.c (complete_array_type): Build a range type of
2292 proper type.
2293
dcf0c47e
NF
22942011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2295
2296 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2297 (handle_type_generic_attribute): Likewise.
2298
1ee44b26
JM
22992011-04-07 Jason Merrill <jason@redhat.com>
2300
2301 PR c++/48450
2302 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2303 conversion from C++0x scoped enum.
2304
acce4e77
JM
23052011-04-06 Joseph Myers <joseph@codesourcery.com>
2306
2307 * c-target-def.h: New file.
2308 * c-target.def: New file.
2309 * c-target.h: New file.
2310 * c-common.c (targetcm): Don't define here.
2311 * c-common.h (default_handle_c_option): Declare.
2312 * c-format.c: Include c-target.h instead of target.h.
2313 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2314 include tm.h.
2315 (default_handle_c_option): Move from targhooks.c.
2316
e2eefb55
JJ
23172011-03-29 Jakub Jelinek <jakub@redhat.com>
2318
2319 PR preprocessor/48248
2320 * c-ppoutput.c (print): Add src_file field.
2321 (init_pp_output): Initialize it.
2322 (maybe_print_line): Don't optimize by adding up to 8 newlines
2323 if map->to_file and print.src_file are different file.
2324 (print_line): Update print.src_file.
2325
ba78087b
KT
23262011-03-25 Kai Tietz <ktietz@redhat.com>
2327
2328 * c-ada-spec.c (compare_comment): Use filename_cmp
2329 instead of strcmp for filename.
2330
0edf1bb2
JL
23312011-03-25 Jeff Law <law@redhat.com>
2332
2333 * c-family/c-common.c (def_fn_type): Add missing va_end.
2334
c7dc8804
JM
23352011-03-25 Jason Merrill <jason@redhat.com>
2336
2337 * c.opt: Add -std=c++03.
2338
d1d879b1
EB
23392011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2340
2341 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2342
62d784f7
KT
23432011-03-17 Kai Tietz
2344
2345 PR target/12171
5050afdf
KT
2346 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2347 Display allowed attributes for function pointer types.
2348 (pp_c_attributes_display): New function to display
2349 attributes having affects_type_identity flag set to true.
2350 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2351
62d784f7
KT
2352 * c-common.c (c_common_attribute_table):
2353 Add new element.
2354 (c_common_format_attribute_table): Likewise.
2355
82d37118
JM
23562011-03-18 Jason Merrill <jason@redhat.com>
2357
49a000c3
JM
2358 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2359 * c-common.h: Don't declare it here.
2360 * c-common.c: Or define it here.
2361 * c-opts.c (c_common_handle_option): Or set it here.
2362
82d37118
JM
2363 PR c++/35315
2364 * c-common.c (handle_transparent_union_attribute): Don't
2365 make a duplicate type in C++.
2366
17bc631c
JM
23672011-03-15 Jason Merrill <jason@redhat.com>
2368
2369 * c-common.c (max_constexpr_depth): New.
2370 * c-common.h: Declare it.
2371 * c-opts.c (c_common_handle_option): Set it.
2372 * c.opt (fconstexpr-depth): New option.
2373
1b9b91a6
JM
23742011-03-11 Jason Merrill <jason@redhat.com>
2375
f231b5ff
JM
2376 * c-common.c (attribute_takes_identifier_p): Add missing const.
2377
1b9b91a6
JM
2378 PR c++/46803
2379 * c-common.c (attribute_takes_identifier_p): Assume that an
2380 unknown attribute takes an identifier.
2381
a19e4d44
NF
23822011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2383
2384 PR c/47786
2385 * c-common.c (c_type_hash): Call list_length instead of iterating
2386 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2387
982d62f6
JJ
23882011-02-19 Jakub Jelinek <jakub@redhat.com>
2389
2390 PR c/47809
2391 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2392
0a256240
NP
23932011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2394
2395 * c.opt (fobjc-abi-version=) New.
2396 (fobjc-nilcheck): New.
2397
ba9e6dd5
NF
23982011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2399
2400 PR c++/46890
2401 * c-common.h (keyword_is_decl_specifier): Declare.
2402 * c-common.c (keyword_is_decl_specifier): Define.
2403 (keyword_is_function_specifier): New function.
2404
7273813a
JJ
24052011-01-26 Jakub Jelinek <jakub@redhat.com>
2406
2407 PR c/47473
2408 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2409 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2410 REAL_TYPE.
2411
908ef79b
AC
24122011-01-26 Arnaud Charlet <charlet@adacore.com>
2413
2414 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2415
237e9384
JJ
24162011-01-26 Jakub Jelinek <jakub@redhat.com>
2417
2418 PR pch/47430
2419 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2420 after init_c_lex if pch_file is set.
2421
47ea1edf
DK
24222011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2423
d4dba752 2424 PR c++/43601
47ea1edf
DK
2425 * c.opt (-fkeep-inline-dllexport): New switch.
2426
2aa9c6ae
RG
24272011-01-12 Richard Guenther <rguenther@suse.de>
2428
2429 PR middle-end/32511
2430 * c-common.c (handle_weak_attribute): Warn instead of error
2431 on declaring an inline function weak.
2432
7bd11157
TT
24332011-01-05 Tom Tromey <tromey@redhat.com>
2434
2435 * c-common.h (lvalue_error): Update.
2436 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2437 not error.
2438
0e66e494 24392010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2440
b4f588c4
NP
2441 PR objc/47075
2442 * c-objc.h (objc_finish_message_expr): Added argument to
2443 prototype.
2444
f4da8dce
NF
24452010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2446
2447 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2448 Use prototype_p.
2449
46270f14
NP
24502010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2451
2452 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2453 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2454
4816c593
NF
24552010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2456
2457 * c-common.h (readonly_error): Declare.
2458 * c-common.c (readonly_error): Define.
2459
7a6daeb0
NF
24602010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2461
2462 * c-common.h (invalid_indirection_error): Declare.
2463 * c-common.c (invalid_indirection_error): Define.
2464
892f6119
RG
24652010-12-03 Richard Guenther <rguenther@suse.de>
2466
2467 PR c/46745
2468 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2469 (pp_c_unary_expression): Likewise.
2470 (pp_c_expression): Likewise.
2471
6c39e757
NP
24722010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2473
2474 * c-common.h (objc_finish_function): New.
2475 (objc_non_volatilized_type): Removed.
2476 (objc_type_quals_match): Removed.
2477 * stub-objc.c (objc_finish_function): New.
2478 (objc_non_volatilized_type): Removed.
2479 (objc_type_quals_match): Removed.
9faeb493 2480
7c475d11
JM
24812010-11-30 Joseph Myers <joseph@codesourcery.com>
2482
2483 * c-common.h (parse_optimize_options): Declare.
2484 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2485 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2486
71f3e391
JM
24872010-11-29 Joseph Myers <joseph@codesourcery.com>
2488
2489 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2490 GET_ENVIRONMENT.
2491 * c-pch.c (O_BINARY): Don't define here.
2492 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2493
d5fabb58
JM
24942010-11-25 Joseph Myers <joseph@codesourcery.com>
2495
2496 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2497 targetm.except_unwind_info.
2498
299404a1
JM
24992010-11-23 Joseph Myers <joseph@codesourcery.com>
2500
2501 * c-opts.c (c_common_handle_option): Pass location to
2502 set_struct_debug_option.
2503
c98cd5bf
JM
25042010-11-23 Joseph Myers <joseph@codesourcery.com>
2505
2506 * c-common.c (visibility_options): Move from ../opts.c.
2507 * c-common.h (struct visibility_flags, visibility_options):
2508 Declare here.
2509 * c-opts.c (finish_options): Rename to c_finish_options.
2510 (c_common_init): Update call to finish_options.
2511
a9546771
NP
25122010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2513
2514 PR objc/34033
2515 * c-lex.c (lex_string): Check that each string in an Objective-C
2516 string concat sequence starts with either one or zero '@', and
2517 that there are no spurious '@' signs at the end.
2518
24a57808
JM
25192010-11-20 Joseph Myers <joseph@codesourcery.com>
2520
2521 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2522 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2523 HANDLE_PRAGMA_VISIBILITY.
2524 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2525 HANDLE_PRAGMA_VISIBILITY): Don't define.
2526 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2527
a9aa2c3a
NF
25282010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2529
2530 PR c++/16189
2531 PR c++/36888
2532 PR c++/45331
2533 * c-common.h (keyword_begins_type_specifier): Declare.
2534 (keyword_is_storage_class_specifier): Declare.
2535 (keyword_is_type_qualifier): Declare.
2536 * c-common.c (keyword_begins_type_specifier): New function.
2537 (keyword_is_storage_class_specifier): New function.
2538 (keyword_is_type_qualifier): Declare.
2539
5386338c
JM
25402010-11-19 Joseph Myers <joseph@codesourcery.com>
2541
2542 PR c/46547
2543 * c-common.c (in_late_binary_op): Define.
2544 (c_common_truthvalue_conversion): Check in_late_binary_op before
2545 calling c_save_expr.
2546 * c-common.h (in_late_binary_op): Declare.
2547
69ccdddb
JM
25482010-11-19 Joseph Myers <joseph@codesourcery.com>
2549
2550 * c-opts.c (c_common_handle_option): Update calls to
2551 set_struct_debug_option.
2552
6b192a09
NP
25532010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2554
2555 * c-common.h (objc_declare_protocols): Added additional argument.
2556 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2557
fb52b50a
NF
25582010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2559
2560 PR c/33193
2561 * c-common.h (build_real_imag_expr): Declare.
2562 * c-semantics.c (build_real_imag_expr): Define.
2563
b37421c6
JM
25642010-11-17 Joseph Myers <joseph@codesourcery.com>
2565
2566 * c-opts.c (c_common_parse_file): Take no arguments.
2567 * c-common.h (c_common_parse_file): Update prototype.
2568
07078664
JJ
25692010-11-16 Jakub Jelinek <jakub@redhat.com>
2570
2571 PR c++/46401
2572 * c-common.c (warning_candidate_p): Don't track non-const calls
2573 or STRING_CSTs.
2574
c6a13190
ILT
25752010-11-15 Ian Lance Taylor <iant@google.com>
2576
2577 * c-lex.c (init_c_lex): Set macro debug callbacks if
2578 flag_dump_go_spec is set.
2579
925e8657
NP
25802010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2581
2582 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2583 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2584
bb0a9581
NF
25852010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2586
2587 PR preprocessor/45038
2588 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2589 dialects.
2590
c5fa0890
JM
25912010-11-12 Joseph Myers <joseph@codesourcery.com>
2592
2593 * c-common.h (c_family_lang_mask): Declare.
2594 * c-opts.c (c_family_lang_mask): Make extern.
2595 * c-pragma.c (handle_pragma_diagnostic): Use
2596 control_warning_option.
2597
a4d8c676
JM
25982010-11-12 Joseph Myers <joseph@codesourcery.com>
2599
2600 * c-common.c (parse_optimize_options): Update call to
2601 decode_options.
2602 * c-common.h (c_common_handle_option): Update prototype.
2603 * c-opts.c (c_common_handle_option): Take location_t parameter and
2604 pass it to other functions.
2605
f954bd2c
JM
26062010-11-11 Joseph Myers <joseph@codesourcery.com>
2607
2608 * c-opts.c (warning_as_error_callback): Remove.
2609 (c_common_initialize_diagnostics): Don't call
2610 register_warning_as_error_callback.
2611 (c_common_handle_option): Handle -Werror=normalized= here.
2612
d8a07487
JM
26132010-11-10 Joseph Myers <joseph@codesourcery.com>
2614
2615 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2616 in diagnostic.
2617 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2618 letter.
2619 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2620 Remove trailing '.' from diagnostics.
2621 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2622
d5478783
JM
26232010-11-10 Joseph Myers <joseph@codesourcery.com>
2624
2625 * c-common.c (parse_optimize_options): Pass global_dc to
2626 decode_options.
2627 * c-opts.c (c_common_handle_option): Pass &global_options to
2628 set_Wstrict_aliasing.
2629 * c.opt (v): Don't mark Common or document here.
2630
91ebb981
IS
26312010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2632
2633 PR target/44981
2634 * c-format.c (format_type): New type gcc_objc_string_format_type.
2635 (valid_stringptr_type_p): New.
2636 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2637 (check_format_string): Pass expected type, use
91ebb981
IS
2638 valid_stringptr_type_p (), check that the format string types are
2639 consistent with the format specification.
2640 (decode_format_attr): Warn if NSString is used outside objective-c.
2641 (format_types_orig): Add NSString.
2642 (format_name): New.
2643 (format_flags): New.
2644 (check_format_arg): Handle format strings requiring an external parser.
2645 first_target_format_type: New variable.
2646 (handle_format_attribute): Set up first_target_format_type, pass the
2647 expected format arg string type to check_format_string().
2648 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2649 * stub-objc.c (objc_string_ref_type_p): New.
2650 (objc_check_format_arg): New.
2651
bede2adc
NP
26522010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2653
9faeb493 2654 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2655 * c-common.h (objc_build_class_component_ref): New.
2656 * stub-objc.c (objc_build_class_component_ref): New.
2657
9a179d01
NP
26582010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2659
2660 * c.opt (Wproperty-assign-default): New option.
2661
22d8d616
NP
26622010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2663
2664 Implemented -fobjc-std=objc1 flag.
2665 * c.opt (fobjc-std=objc1): New option.
2666
2debdb4f
NP
26672010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2668
2669 Implemented format and noreturn attributes for Objective-C methods.
2670 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2671 attribute for Objective-C methods.
2672
ec52b111
JM
26732010-10-31 Jason Merrill <jason@redhat.com>
2674
2675 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2676 EXPR_LOC_OR_HERE.
2677
46a88c12
NP
26782010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2679
2680 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2681 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2682 (objc_add_property_declaration): Removed arguments for copies and
2683 ivar.
2684 (objc_build_getter_call): Renamed to
2685 objc_maybe_build_component_ref.
2686 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2687 (objc_is_property_ref): New.
2688 * c-common.c (c_common_reswords): Removed copies and ivar.
2689 * stub-objc.c (objc_add_property_declaration): Removed arguments
2690 for copies and ivar.
2691 (objc_build_getter_call): Renamed to
2692 objc_maybe_build_component_ref.
2693 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2694 (objc_is_property_ref): New.
9faeb493 2695
1e4bf85b
AC
26962010-10-29 Arnaud Charlet <charlet@adacore.com>
2697 Matthew Gingell <gingell@adacore.com>
2698
2699 * c-ada-spec.c (separate_class_package): New function.
2700 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2701 name of their enclosing package.
2702 (print_ada_declaration): Use separate_class_package.
2703
81f0bab2
JM
27042010-10-27 Jason Merrill <jason@redhat.com>
2705
2b08f2c5
JM
2706 * c-common.c (c_common_reswords): Add __is_literal_type.
2707 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2708
81f0bab2
JM
2709 * c-common.c (check_case_value): Remove special C++ code.
2710
200290f2
NP
27112010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2712
2713 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2714 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2715 and RID_LAST_PATTR.
2716 (objc_add_property_declaration): Added additional arguments.
2717 (objc_property_attribute_kind): Removed.
2718 (objc_set_property_attr): Removed.
2719 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2720 copy and nonatomic.
2721 * stub-objc.c (objc_add_property_declaration): Added additional
2722 arguments.
2723 (objc_set_property_attr): Removed.
9faeb493 2724
f614132b
NP
27252010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2726
2727 * c-common.h (objc_add_property_variable): Renamed to
2728 objc_add_property_declaration. Added location argument.
2729 * stub-objc.c (objc_add_property_variable): Same change.
2730
b8a18805
NP
27312010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2732
2733 * c-common.h (objc_maybe_printable_name): New.
2734 * stub-objc.c (objc_maybe_printable_name): New.
2735
30cd1c5d
AS
27362010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2737 Andrew Pinski <pinskia@gmail.com>
2738
2739 * c-common.h (c_common_mark_addressable_vec): Declare.
2740 * c-common.c (c_common_mark_addressable_vec): New function.
2741
249a82c4
NP
27422010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2743
2744 * c-common.h (objc_set_method_type): Removed.
2745 (objc_add_method_declaration): Added boolean argument.
2746 (objc_start_method_definition): Same change.
2747 (objc_build_method_signature): Same change.
2748 * stub-objc.c (objc_set_method_type): Removed.
2749 (objc_add_method_declaration): Added boolean argument.
2750 (objc_start_method_definition): Same change.
2751 (objc_build_method_signature): Same change.
2752
977e30bc
NP
27532010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2754
2755 * c-common.h (finish_file): Removed.
2756 (objc_write_global_declarations): New.
2757 * c-opts.c (c_common_parse_file): Do not call finish_file.
2758 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2759
da57d1b9
NP
27602010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2761
2762 Implemented parsing @synthesize and @dynamic for
2763 Objective-C/Objective-C++.
2764 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2765 (objc_add_synthesize_declaration): New.
2766 (objc_add_dynamic_declaration): New.
2767 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2768 * stub-objc.c (objc_add_synthesize_declaration): New.
2769 (objc_add_dynamic_declaration): New.
9faeb493 2770
0069111f
MM
27712010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2772
2773 PR target/46041
2774 * c-cppbuiltin.c (mode_has_fma): Move function here from
2775 builtins.c. Don't use the fma optab, instead just use the
2776 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2777 using -save-temps.
2778
e426b47b
NP
27792010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2780
2781 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2782
e426b47b
NP
2783 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2784
9faeb493 2785 Radar 4330422
e426b47b
NP
2786 * c-common.h (objc_non_volatilized_type): New declaration
2787 * stub-objc.c (objc_non_volatilized_type): New stub.
2788
90fbfdc3
NP
27892010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2790
e426b47b 2791 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2792
2793 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2794
9faeb493 2795 Radar 4133425
90fbfdc3 2796 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2797 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2798
c37d8c30
IS
27992010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2800
2801 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2802 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2803 (objc_ivar_visibility_kind): New enum.
2804 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2805 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2806 visibility enum.
2807
1b1562a5
MM
28082010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2809
2810 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2811 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2812 has the appropriate fma builtins.
2813 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2814
668ea4b1
IS
28152010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2816
1b1562a5 2817 merge from FSF apple 'trunk' branch.
668ea4b1 2818 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2819
668ea4b1
IS
2820 Radars 4436866, 4505126, 4506903, 4517826
2821 * c-common.c (c_common_resword): Define @property and its attributes.
2822 * c-common.h: Define property attribute enum entries.
2823 (OBJC_IS_PATTR_KEYWORD): New.
2824 (objc_property_attribute_kind): New enum.
2825 Declare objc_set_property_attr (), objc_add_property_variable (),
2826 objc_build_getter_call () and objc_build_setter_call ().
2827 * stub-objc.c (objc_set_property_attr): New stub.
2828 (objc_add_property_variable): Likewise.
2829 (objc_build_getter_call): Likewise.
2830 (objc_build_setter_call) Likewise.
1b1562a5 2831
a1178b30
IS
28322010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2833
1b1562a5 2834 merge from FSF apple 'trunk' branch.
a1178b30
IS
2835 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2836
2837 Radar 3803157 (method attributes)
2838 * c-common.c (handle_deprecated_attribute): Recognize
2839 objc methods as valid declarations.
2840 * c-common.h: Declare objc_method_decl ().
1b1562a5 2841 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2842
a75bfaa6
JM
28432010-10-08 Joseph Myers <joseph@codesourcery.com>
2844
2845 * c-common.c (parse_optimize_options): Call
2846 decode_cmdline_options_to_array_default_mask before
2847 decode_options. Update arguments to decode_options.
2848 * c-common.h (c_common_init_options_struct): Declare.
2849 * c-opts.c (c_common_init_options_struct): New. Split out from
2850 c_common_init_options.
2851
f05b9d93
NP
28522010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2853
2854 Implemented fast enumeration for Objective-C.
2855 * c-common.h (objc_finish_foreach_loop): New.
2856 * stub-objc.c (objc_finish_foreach_loop): New.
2857
1ebe4b4f
JM
28582010-10-05 Joseph Myers <joseph@codesourcery.com>
2859
2860 * c-common.h (struct diagnostic_context): Don't declare here.
2861 (c_common_initialize_diagnostics): Declare using
2862 diagnostic_context typedef.
2863 * c-opts.c (c_common_handle_option): Pass global_dc to
2864 handle_generated_option.
2865
d4d24ba4
JM
28662010-10-04 Joseph Myers <joseph@codesourcery.com>
2867
2868 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2869 handle_generated_option.
2870
478a1c5b
ILT
28712010-10-03 Ian Lance Taylor <iant@google.com>
2872
2873 * c.opt (-fplan9-extensions): New option.
2874
82a1c2fe
FXC
28752010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2876
2877 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2878 Remove.
2879 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2880 of duplicating code.
2881
92902b1b
IS
28822010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2883
2884 * c-common.c: Add two new entries for @optional
2885 and @required keywords.
2886
2887 merge from FSF 'apple/trunk' branch.
2888 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2889
2890 Radar 4386773
2891 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2892 objective-c keywords.
2893 (objc_set_method_opt): New declaration.
2894 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2895
46625112
JM
28962010-09-30 Joseph Myers <joseph@codesourcery.com>
2897
2898 * c-common.c (handle_optimize_attribute): Pass &global_options to
2899 cl_optimization_save and cl_optimization_restore.
2900 * c-opts.c (c_common_handle_option): Pass &global_options to
2901 handle_generated_option.
2902 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2903 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2904 &global_options to cl_optimization_restore.
2905
49b91f05
NP
29062010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2907
2908 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2909 Objective-C/Objective-C++ keywords.
2910
13ed556f 29112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2912
9faeb493
UB
2913 Merge from 'apple/trunk' branch on FSF servers.
2914
a6341d57
NP
2915 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2916
2917 Radar 4281748
2918 * c-common.h (objc_check_global_decl): New declaration.
2919 * stub-objc.c (objc_check_global_decl): New stub.
2920
f0036cca
JM
29212010-09-29 Joseph Myers <joseph@codesourcery.com>
2922
2923 * c.opt: Don't use VarExists.
2924
e3339d0f
JM
29252010-09-29 Joseph Myers <joseph@codesourcery.com>
2926
2927 * c-common.c (c_cpp_error): Update names of diagnostic_context
2928 members.
2929 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2930 cl_optimization members.
2931 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2932 sanitize_cpp_opts, finish_options): Update names of cpp_options
2933 members.
2934
1973201f
NP
29352010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2936
2937 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2938 (objc_is_reserved_word): Removed.
2939 * c-common.c: Updated comments.
2940 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2941 objc_is_reserved_word.
2942 * stub-objc.c (objc_is_reserved_word): Removed.
2943
f7e71da5
IS
29442010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2945
9faeb493 2946 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2947 include attributes.
2948 (objc_start_method_definition): Likewise.
2949 (objc_build_keyword_decl): Likewise.
2950 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2951 (objc_start_method_definition): Likewise.
2952 (objc_build_keyword_decl): Likewise.
2953
c165dca7
IS
29542010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2955
2956 * c-common.h (objc_start_class_interface): Adjust prototype.
2957 (objc_start_category_interface): Likewise.
2958 (objc_start_protocol): Likewise.
2959 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2960 (objc_start_class_interface): Likewise.
2961 (objc_start_category_interface): Likewise.
2962
7458026b
ILT
29632010-09-27 Ian Lance Taylor <iant@google.com>
2964
2965 * c-common.c (c_common_attribute_table): Add no_split_stack.
2966 (handle_no_split_stack_attribute): New static function.
2967
b581b85b
NP
29682010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2969
9faeb493 2970 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2971
2972 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2973
9faeb493 2974 Radar 4229905
b581b85b
NP
2975 * c-common.h (objc_have_common_type): New declaration.
2976 * stub-objc.c (objc_have_common_type): New stub.
2977
2978 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2979
2980 Radar 4154928
2981 * c-common.h (objc_common_type): New prototype.
9faeb493 2982 * stub-objc.c (objc_common_type): New stub.
b581b85b 2983
46a4da10
JH
29842010-09-24 Jan Hubicka <jh@suse.cz>
2985
2986 * c-common.c (handle_leaf_attribute): New function.
2987 (struct attribute_spec c_common_att): Add leaf.
2988
e200444e
JM
29892010-09-22 Joseph Myers <joseph@codesourcery.com>
2990
2991 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2992 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2993 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2994 -include-barrier, -include-directory, -include-directory=,
2995 -include-directory-after, -include-directory-after=,
2996 -include-prefix, -include-prefix=, -include-with-prefix,
2997 -include-with-prefix=, -include-with-prefix-after,
2998 -include-with-prefix-after=, -include-with-prefix-before,
2999 -include-with-prefix-before=, -no-integrated-cpp,
3000 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3001 -output=, -pedantic, -pedantic-errors, -preprocess,
3002 -print-missing-file-dependencies, -trace-includes, -traditional,
3003 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3004 -user-dependencies, -verbose, -write-dependencies,
3005 -write-user-dependencies, no-integrated-cpp, traditional): New.
3006
29a80ea6
NP
30072010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3008
3009 PR objc/23710
ac1fc2fc
NP
3010 * c-common.h (objc_start_method_definition): Return bool instead
3011 of void.
3012 * stub-objc.c (objc_start_method_definition): Return bool instead
3013 of void.
3014
30152010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3016
3017 PR objc/25965
3018 * c-common.h (objc_get_interface_ivars): New declaration.
3019 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3020
de621752
ILT
30212010-09-15 Ian Lance Taylor <iant@google.com>
3022
3023 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3024 messages. Remove period at end of warning message.
de621752 3025
ba885ec5
NS
30262010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3027
3028 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3029 (handle_alias_attribute): ... here.
3030 (handle_ifunc_attribute): New.
3031
c5ee1358
MM
30322010-09-06 Mark Mitchell <mark@codesourcery.com>
3033
3034 * c-common.h (do_warn_double_promotion): Declare.
3035 * c-common.c (do_warn_double_promotion): Define.
3036
0a0b3574
MM
30372010-09-05 Mark Mitchell <mark@codesourcery.com>
3038
3039 * c.opt (Wdouble-promotion): New.
3040
d1779886
JM
30412010-09-02 Joseph Myers <joseph@codesourcery.com>
3042
3043 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3044 fvtable-thunks, fxref): Mark no longer supported in help text.
3045
2d2bd949
JM
30462010-09-02 Joseph Myers <joseph@codesourcery.com>
3047
3048 * c.opt (Wimport, fall-virtual, falt-external-templates,
3049 fdefault-inline, fenum-int-equiv, fexternal-templates,
3050 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3051 fname-mangling-version-, fnew-abi, fnonnull-objects,
3052 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3053 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3054 applicable.
3055 (fhandle-exceptions): Mark with Alias and Warn.
3056 * c-opts.c (c_common_handle_option): Don't handle options marked
3057 as ignored.
3058
5de8299c
JM
30592010-09-02 Joseph Myers <joseph@codesourcery.com>
3060
3061 * c.opt (Wcomments, Werror-implicit-function-declaration,
3062 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3063 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3064 aliases.
3065 * c-common.c (option_codes): Use OPT_Wcomment instead of
3066 OPT_Wcomments.
3067 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3068 Don't handle options marked as aliases.
3069
0ceb0201
RG
30702010-08-25 Richard Guenther <rguenther@suse.de>
3071
3072 * c-common.c (c_common_get_alias_set): Remove special
3073 handling for pointers.
3074
ac47786e
NF
30752010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3076
3077 * c-common.c: Use FOR_EACH_VEC_ELT.
3078 * c-gimplify.c: Likewise.
3079 * c-pragma.c: Likewise.
3080
c878765b
JM
30812010-08-16 Joseph Myers <joseph@codesourcery.com>
3082
3083 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3084 RejectDriver.
3085 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3086 RejectDriver.
3087 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3088 instead of OPT_MDX and OPT_MMDX.
3089
603349bf
JM
30902010-08-16 Joseph Myers <joseph@codesourcery.com>
3091
3092 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3093
644fa7ac
JM
30942010-08-12 Joseph Myers <joseph@codesourcery.com>
3095
3096 * c.opt (MD, MMD): Change to MDX and MMDX.
3097 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3098
481e1176
JM
30992010-08-11 Joseph Myers <joseph@codesourcery.com>
3100
3101 * c-opts.c (c_common_handle_option): Call handle_generated_option
3102 instead of handle_option.
3103
ac8dc9f7
NF
31042010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3105
3106 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3107 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3108
4f8c876d
NF
31092010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3110
3111 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3112 (pending_redefine_extname): Change type to a VEC.
3113 (add_to_renaming_pragma_list): Update for new type of
3114 pending_redefine_extname.
ac8dc9f7 3115 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3116
3b0c690e
AC
31172010-08-04 Arnaud Charlet <charlet@adacore.com>
3118
3119 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3120 visited.
3121 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3122 decide whether a type has already been declared/seen.
3123 Do not go to the original type.
3124 (dump_nested_types): New parameter forward.
3125 Generate forward declaration if needed and mark type as visited.
3126 (print_ada_declaration): Call dump_nested_types if not already done.
3127 Mark types as visited.
3128
1890bccc
JM
31292010-08-03 Joseph Myers <joseph@codesourcery.com>
3130
3131 * c.opt (-print-pch-checksum): Remove option.
3132 * c-opts.c (c_common_handle_option): Don't handle
3133 OPT_print_pch_checksum.
3134
5f20c657
JM
31352010-07-27 Joseph Myers <joseph@codesourcery.com>
3136
3137 * c-common.h (c_common_handle_option): Update prototype and return
3138 value type.
3139 * c-opts.c (c_common_handle_option): Update prototype and return
3140 value type. Update calls to handle_option and
3141 enable_warning_as_error.
3142
f551f80c
JJ
31432010-07-27 Jakub Jelinek <jakub@redhat.com>
3144
3145 PR c/45079
3146 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3147
61ff2bdc
JM
31482010-07-27 Joseph Myers <joseph@codesourcery.com>
3149
3150 * c-common.h (c_common_missing_argument): Remove.
3151 * c-opts.c (c_common_missing_argument): Remove.
3152 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3153 idirafter, imacros, include, isysroot, isystem, iquote): Add
3154 MissingArgError.
3155 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3156
7a9bf9a4
JM
31572010-07-27 Joseph Myers <joseph@codesourcery.com>
3158
3159 * c-common.h (c_common_option_lang_mask,
3160 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3161 New.
3162 (c_common_init_options): Update prototype.
3163 * c-opts.c (c_common_option_lang_mask): New.
3164 (c_common_initialize_diagnostics): Split out of
3165 c_common_init_options.
3166 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3167 New.
3168 (c_common_init_options): Update prototype. Use decoded options in
3169 search for -lang-asm.
3170
910ad8de
NF
31712010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3172
3173 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3174 * c-format.c: Likewise.
3175
718f9c0f
MLI
31762010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3177
3178 * c-common.h: Include diagnostic-core.h. Error if already
3179 included.
3180 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3181
4d451982
MLI
31822010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3183
3184 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3185 Do not include expr.h
3186 (vector_mode_valid_p): Move here.
3187
119fe915
SB
31882010-06-21 DJ Delorie <dj@redhat.com>
3189
3190 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3191 allow these pragmas anywhere.
3192
31932010-06-14 Jakub Jelinek <jakub@redhat.com>
3194
3195 PR bootstrap/44509
3196 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3197 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3198 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3199 ggc_strdup instead of xstrdup.
3200
32012010-06-10 Jakub Jelinek <jakub@redhat.com>
3202
3203 * c-cppbuiltin.c: Include cpp-id-data.h.
3204 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3205 (lazy_hex_fp_value): New function.
3206 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3207
6662d794
MLI
32082010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3209
3210 * c-gimplify.c: Do not include tree-flow.h
3211
38f8b050
JR
32122010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3213
3214 PR other/44034
3215 * c-common.c: Rename targetm member:
3216 targetm.enum_va_list -> targetm.enum_va_list_p
3217
9589f23e
AS
32182010-06-28 Anatoly Sokolov <aesok@post.ru>
3219
3220 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3221
3b06d379
SB
32222010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3223
3224 * c-cppbuiltin.c: Do not include except.h.
3225
d166d4c3
AK
32262010-06-24 Andi Kleen <ak@linux.intel.com>
3227
9faeb493
UB
3228 * c-common.c (warn_for_omitted_condop): New.
3229 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3230
70cb8be6
JM
32312010-06-21 Joseph Myers <joseph@codesourcery.com>
3232
3233 * c.opt (lang-objc): Remove.
3234 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3235
a4c97feb
JR
32362010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3237
3238 * c-opts.c: Include "tm_p.h".
3239
6e2f1956
JM
32402010-06-20 Joseph Myers <joseph@codesourcery.com>
3241
3242 * c-common.c (parse_optimize_options): Update call to
3243 decode_options.
3244
bc87224e
NF
32452010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3246
3247 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3248 new type of types_used_by_cur_var_decl.
3249
b49cf425
JR
32502010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3251
3252 PR bootstrap/44512
3253 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3254 for C++ standard compliance.
3255
59f9c2ed
JM
32562010-06-16 Jason Merrill <jason@redhat.com>
3257
3258 * c.opt: Add -Wnoexcept.
3259
33766b66
RG
32602010-06-16 Richard Guenther <rguenther@suse.de>
3261
3262 PR c/44555
3263 * c-common.c (c_common_truthvalue_conversion): Remove
3264 premature and wrong optimization concering ADDR_EXPRs.
3265
eff7e30c
AC
32662010-06-15 Arnaud Charlet <charlet@adacore.com>
3267
3268 * c-ada-spec.c (dump_sloc): Remove column info.
3269 (is_simple_enum): New function.
3270 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3271 enum types when relevant.
3272
6312e84d
MLI
32732010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3274
9faeb493 3275 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3276 location.
3277
1cb42611
JM
32782010-06-10 Joseph Myers <joseph@codesourcery.com>
3279
3280 * c-opts.c (c_common_handle_option): Don't handle
3281 OPT_fshow_column.
3282
a9429e29
LB
32832010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3284
3285 * c-pragma.c (push_alignment): Use typed GC allocation.
3286 (handle_pragma_push_options): Likewise.
3287
3288 * c-common.c (parse_optimize_options): Likewise.
3289
3290 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3291 option.
3292
5498f011
JM
32932010-06-07 Joseph Myers <joseph@codesourcery.com>
3294
3295 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3296 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3297 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3298 flag_signed_bitfields, warn_strict_null_sentinel,
3299 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3300 flag_gen_declaration, flag_no_gnu_keywords,
3301 flag_implement_inlines, flag_implicit_templates,
3302 flag_implicit_inline_templates, flag_optional_diags,
3303 flag_elide_constructors, flag_default_inline, flag_rtti,
3304 flag_conserve_space, flag_access_control, flag_check_new,
3305 flag_new_for_scope, flag_weak, flag_working_directory,
3306 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3307 flag_enforce_eh_specs, flag_threadsafe_statics,
3308 flag_pretty_templates): Remove.
3309 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3310 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3311 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3312 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3313 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3314 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3315 flag_no_gnu_keywords, flag_implement_inlines,
3316 flag_implicit_templates, flag_implicit_inline_templates,
3317 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3318 flag_rtti, flag_conserve_space, flag_access_control,
3319 flag_check_new, flag_new_for_scope, flag_weak,
3320 flag_working_directory, flag_use_cxa_atexit,
3321 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3322 flag_threadsafe_statics, flag_pretty_templates,
3323 warn_strict_null_sentinel): Remove.
3324 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3325 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3326 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3327 fimplicit-inline-templates, fimplicit-templates,
3328 flax-vector-conversions, fms-extensions, fnil-receivers,
3329 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3330 frtti, fshort-double, fshort-enums, fshort-wchar,
3331 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3332 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3333 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3334 gen-decls, undef): Use Var.
3335 (fdefault-inline, foptional-diags): Document as doing nothing.
3336 * c-opts.c (c_common_handle_option): Remove cases for options now
3337 using Var. Mark ignored options as such.
3338
39dabefd
SB
33392010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3340
9faeb493 3341 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3342 * c-common.def: Likewise.
3343 * c-common.h: Likewise.
3344 * c-cppbuiltin.c: Likewise.
3345 * c-dump.c: Likewise.
3346 * c-format.c: Likewise.
3347 * c-format.h : Likewise.
3348 * c-gimplify.c: Likewise.
3349 * c-lex.c: Likewise.
3350 * c-omp.c: Likewise.
3351 * c.opt: Likewise.
3352 * c-opts.c: Likewise.
3353 * c-pch.c: Likewise.
3354 * c-ppoutput.c: Likewise.
3355 * c-pragma.c: Likewise.
3356 * c-pragma.h: Likewise.
3357 * c-pretty-print.c: Likewise.
3358 * c-pretty-print.h: Likewise.
3359 * c-semantics.c: Likewise.
3360 * stub-objc.c: Likewise.
3361
3362 * c-common.c: Include gt-c-family-c-common.h.
3363 * c-pragma.c: Include gt-c-family-c-pragma.h.
3364\f
d1e082c2 3365Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
3366
3367Copying and distribution of this file, with or without modification,
3368are permitted in any medium without royalty provided the copyright
3369notice and this notice are preserved.