]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Remove redundant variable from tree-call-cdce.c
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
d90ec4f2
JM
12015-10-28 Jason Merrill <jason@redhat.com>
2
3 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
4
88bae6f4
TS
52015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6 James Norris <jnorris@codesourcery.com>
7 Cesar Philippidis <cesar@codesourcery.com>
8
9 PR c/64765
10 PR c/64880
11 * c-common.h (c_oacc_split_loop_clauses): Declare function.
12 * c-omp.c (c_oacc_split_loop_clauses): New function.
13
b1726d6c
MS
142015-10-21 Martin Sebor <msebor@redhat.com>
15
16 PR driver/68043
17 * c.opt: End each sentence that describes an option with a period.
18
fa60eeb9
MP
192015-10-20 Marek Polacek <polacek@redhat.com>
20
21 * array-notation-common.c (is_cilkplus_vector_p): Define.
22 * c-common.h (is_cilkplus_vector_p): Declare.
23
95979049
MP
242015-10-20 Marek Polacek <polacek@redhat.com>
25
26 * c.opt (std=gnu++11): Do not describe as experimental.
27 (std=gnu++14): Likewise.
28
2a9fb712
JM
292015-10-19 Jason Merrill <jason@redhat.com>
30
31 * c-cppbuiltin.c (c_cpp_builtins): Define
32 __cpp_nontype_template_args.
33
13b380a3
JM
342015-10-19 Jason Merrill <jason@redhat.com>
35
36 * c-cppbuiltin.c (c_cpp_builtins): Define
37 __cpp_enumerator_attributes, __cpp_fold_expressions,
38 __cpp_unicode_characters.
39
d9a6bd32
JJ
402015-10-13 Jakub Jelinek <jakub@redhat.com>
41 Aldy Hernandez <aldyh@redhat.com>
42
43 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
44 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
45 (c_define_builtins): Likewise.
46 * c-common.h (enum c_omp_clause_split): Add
47 C_OMP_CLAUSE_SPLIT_TASKLOOP.
48 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
49 (c_finish_omp_for): Add ORIG_DECLV argument.
50 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
51 201511 instead of 201307.
52 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
53 OMP_CRITICAL_CLAUSES to it.
54 (c_finish_omp_ordered): Add CLAUSES argument, set
55 OMP_ORDERED_CLAUSES to it.
56 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
57 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
58 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
59 constructs and new OpenMP 4.5 clauses. Clear
60 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
61 verification code.
62 * c-pragma.c (omp_pragmas_simd): Add taskloop.
63 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
64 (enum pragma_omp_clause): Add
65 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
66 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
67
624d31fe
RS
682015-10-05 Richard Sandiford <richard.sandiford@arm.com>
69
70 * c-lex.c (interpret_float): Use real_equal instead of
71 REAL_VALUES_EQUAL.
72
b8fd7909
JM
732015-10-04 Jason Merrill <jason@redhat.com>
74
75 Implement N4514, C++ Extensions for Transactional Memory.
76 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
77 (c_common_attribute_table): Add transaction_safe_dynamic.
78 transaction_safe now affects type identity.
79 (handle_tm_attribute): Handle transaction_safe_dynamic.
80 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
81 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
82 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
83 (D_TRANSMEM): New.
84 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
85 * c-pretty-print.c (pp_c_attributes_display): Don't print
86 transaction_safe in C++.
87
12651878
MP
882015-10-02 Marek Polacek <polacek@redhat.com>
89
90 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
91
3e3b8d63
MP
922015-10-02 Marek Polacek <polacek@redhat.com>
93
94 PR c/64249
95 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
96 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
97 * c.opt (Wduplicated-cond): New option.
98
0d1a8f75
JM
992015-10-01 Joseph Myers <joseph@codesourcery.com>
100
101 * c.opt (std=c11): Do not describe as experimental.
102 (std=gnu11): Likewise.
103 (std=iso9899:2011): Likewise.
104
3e32ee19
NS
1052015-09-28 Nathan Sidwell <nathan@codesourcery.com>
106
107 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
108 (DEF_FUNCTION_TYPE_VAR_11): Delete.
109
974348ee
MP
1102015-09-25 Marek Polacek <polacek@redhat.com>
111
112 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
113 (ubsan_instrument_shift): Likewise.
114
15dbc1a6
MP
1152015-09-25 Marek Polacek <polacek@redhat.com>
116
117 PR sanitizer/64906
118 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
119
6b95d7cc
PP
1202015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
121
122 * c-indentation.c (should_warn_for_misleading_indentation):
123 Compare next_stmt_vis_column with guard_line_first_nws instead
124 of with guard_line_vis_column.
125
c1822f9c
MLI
1262015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
127
128 PR c/49654
129 PR c/49655
130 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
131 options and options not valid for the current language.
132
d5398058
PP
1332015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
134
135 * c-indentation.c (should_warn_for_misleading_indentation):
136 Float out and consolidate the calls to get_visual_column that
137 are passed guard_exploc as an argument. Compare
138 next_stmt_vis_column with guard_line_first_nws instead of with
139 body_line_first_nws.
140
6b333269
NS
1412015-09-22 Nathan Sidwell <nathan@codesourcery.com>
142
143 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
144 Wnamespaces): New C++ warnings.
145
a75f1574
JM
1462015-09-22 Jason Merrill <jason@redhat.com>
147
148 * c-common.h (abi_compat_version_crosses): New.
149 (warn_abi_version): Declare.
150 * c-common.c: Define it.
151 * c-opts.c (c_common_post_options): Handle it.
152 flag_abi_compat_version defaults to 8.
153
bdaaa8b7
VV
1542015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
155
156 Complete the implementation of N4230, Nested namespace definition.
157 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
158 __cpp_nested_namespace_definitions.
159
eaa797e8
MLI
1602015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
161
162 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
163
c4914de6
MLI
1642015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
165
166 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
167 when warning.
168 * c-pragma.h (pragma_lex): Add optional loc argument.
169
fcb87c50
MM
1702015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
171
172 * c-format.c (check_format_arg): Adjust to use common block size in all
173 object pools.
174
31bdd08a
DM
1752015-09-15 David Malcolm <dmalcolm@redhat.com>
176
177 * c-format.c (location_from_offset): Update for change in
178 signature of location_get_source_line.
179 * c-indentation.c (get_visual_column): Likewise.
180 (line_contains_hash_if): Likewise.
181
aa9f4b4c
MP
1822015-09-14 Marek Polacek <polacek@redhat.com>
183
184 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
185 setting various warnings.
186
aa256c4a
MP
1872015-09-14 Marek Polacek <polacek@redhat.com>
188
189 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
190 a negative value.
191
0f876f22
MW
1922015-09-11 Mark Wielaard <mjw@redhat.com>
193
194 PR c/28901
195 * c.opt (Wunused-variable): Option from common.opt.
196 (Wunused-const-variable): New option.
197
273aa49e
PC
1982015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
199
200 PR c++/53184
201 * c.opt ([Wsubobject-linkage]): Add.
202
1807ffc1
MS
2032015-09-03 Martin Sebor <msebor@redhat.com>
204
205 PR c/66516
206 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
207 functions.
208 * c-common.c (reject_gcc_builtin): Define.
209
38942840
BI
2102015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
211
212 PR middle-end/60586
213 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
214 prototype.
215 * c-gimplify.c (c_gimplify_expr): Added a call to the function
216 cilk_gimplify_call_params_in_spawned_fn.
217 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
218 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
219 unwrapping.
220
c316b5e4
MP
2212015-08-25 Marek Polacek <polacek@redhat.com>
222
223 PR middle-end/67330
224 * c-common.c (handle_weak_attribute): Don't check whether the
225 visibility can be changed here.
226
584a7c46
MLI
2272015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
228
229 * c-lex.c (c_lex_with_flags): Use explicit locations.
230
a79683d5
TS
2312015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
232
233 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
234 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
235
61717a45
FXC
2362015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
237
238 PR middle-end/36757
239 * c-common.c (check_builtin_function_arguments): Add check
240 for BUILT_IN_SIGNBIT argument.
241
329524f5
PC
2422015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
243
244 PR c++/67160
245 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
246 in c++1z mode.
247
4ee55665
MP
2482015-08-17 Marek Polacek <polacek@redhat.com>
249
250 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
251 with whitespaces before qualifier names.
252
b893e375
MP
2532015-08-12 Marek Polacek <polacek@redhat.com>
254
255 PR c++/55095
256 * c-common.c (maybe_warn_shift_overflow): Properly handle
257 left-shifting 1 into the sign bit.
258
c2d89095
MLI
2592015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
260
261 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
262
971e17ff
AS
2632015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
264 Braden Obrzut <admin@maniacsvault.net>
265 Jason Merrill <jason@redhat.com>
266
267 Add C++ Concepts TS support.
268 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
269 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
270 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
271 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
272 * c-opts.c (set_std_cxx1z): Set flag_concepts.
273 * c.opt (fconcepts): New.
274
8ebca419
PP
2752015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
276
277 * c-indentation.c (should_warn_for_misleading_indentation):
278 Improve heuristics.
279
1a1e101f
PP
2802015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
281
282 * c-indentation.c (get_visual_column): Add parameter first_nws,
283 use it. Update comment documenting the function.
284 (is_first_nonwhitespace_on_line): Remove.
285 (should_warn_for_misleading_indentation): Replace usage of
286 of is_first_nonwhitespace_on_line with get_visual_column.
287
992118a1
PP
2882015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
289
290 * c-indentation.h (struct token_indent_info): Define.
291 (get_token_indent_info): Define.
292 (warn_for_misleading_information): Declare.
293 * c-common.h (warn_for_misleading_information): Remove.
294 * c-identation.c (warn_for_misleading_indentation):
295 Change declaration to take three token_indent_infos. Adjust
296 accordingly.
297 * c-identation.c (should_warn_for_misleading_indentation):
298 Likewise. Bail out early if the body is a compound statement.
299 (guard_tinfo_to_string): Define.
300
e8fa3817
JM
3012015-07-30 Jason Merrill <jason@redhat.com>
302
303 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
304 '*' for reference decay.
305
173864e8
MP
3062015-07-30 Marek Polacek <polacek@redhat.com>
307
308 * c-common.c (warn_tautological_cmp): Bail for float types.
309
f2afe6dd
MP
3102015-07-27 Marek Polacek <polacek@redhat.com>
311
312 PR bootstrap/67030
313 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
314
05b28fd6
MP
3152015-07-27 Marek Polacek <polacek@redhat.com>
316
317 PR c++/66555
318 PR c/54979
319 * c-common.c (find_array_ref_with_const_idx_r): New function.
320 (warn_tautological_cmp): New function.
321 * c-common.h (warn_tautological_cmp): Declare.
322 * c.opt (Wtautological-compare): New option.
323
5a5062b8
MP
3242015-07-23 Marek Polacek <polacek@redhat.com>
325
326 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
327 (ubsan_instrument_shift): Likewise.
328
dc891fe7
MP
3292015-07-23 Marek Polacek <polacek@redhat.com>
330
331 PR sanitizer/66908
332 * c-ubsan.c: Include gimplify.h.
333 (ubsan_instrument_division): Unshare OP0 and OP1.
334 (ubsan_instrument_shift): Likewise.
335
451b5e48
MP
3362015-07-20 Marek Polacek <polacek@redhat.com>
337 Richard Sandiford <richard.sandiford@arm.com>
338
339 PR c++/55095
340 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
341 Use EXPR_LOC_OR_LOC.
342 (maybe_warn_shift_overflow): New function.
343 * c-common.h (maybe_warn_shift_overflow): Declare.
344 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
345 * c.opt (Wshift-overflow): New option.
346
fb0b2914
ML
3472015-07-16 Martin Liska <mliska@suse.cz>
348
349 * c-format.c (static void check_format_info_main): Use
350 object_allocator instead of pool_allocator.
351 (check_format_arg): Likewise.
352 (check_format_info_main): Likewise.
353
903f5c23
AM
3542015-07-15 Andrew MacLeod <amacleod@redhat.com>
355
356 * c-opts.c: Remove multiline #include comment.
357
026c3cfd
AH
3582015-07-12 Aldy Hernandez <aldyh@redhat.com>
359
360 * c-common.c: Fix double word typos.
361
bb49ee66
EB
3622015-07-10 Eric Botcazou <ebotcazou@adacore.com>
363
364 * c-ada-spec.h (cpp_operation): Revert latest change.
365 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
366 constructors and destructors.
367
1916bcb5
AM
3682015-07-09 Andrew MacLeod <amacleod@redhat.com>
369
370 * c-common.h: Adjust includes for flags.h changes.
371 * stub-objc.c: Likewise.
026c3cfd 372
a9dcd529
EB
3732015-07-08 Eric Botcazou <ebotcazou@adacore.com>
374
375 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
376 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
377
b03b462f
JJ
3782015-07-08 Jakub Jelinek <jakub@redhat.com>
379
380 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
381 are to be removed, return NULL rather than original clauses list.
382
c7131fb2
AM
3832015-07-07 Andrew MacLeod <amacleod@redhat.com>
384
385 * array-notation-common.c: Adjust includes.
386 * c-ada-spec.c: Likewise.
387 * c-cilkplus.c: Likewise.
388 * c-common.h: Likewise.
389 * c-cppbuiltin.c: Likewise.
390 * c-dump.c: Likewise.
391 * c-format.c: Likewise.
392 * c-gimplify.c: Likewise.
393 * c-indentation.c: Likewise.
394 * c-lex.c: Likewise.
395 * c-omp.c: Likewise.
396 * c-opts.c: Likewise.
397 * c-pch.c: Likewise.
398 * c-ppoutput.c: Likewise.
399 * c-pragma.c: Likewise.
400 * c-pretty-print.c: Likewise.
401 * c-semantics.c: Likewise.
402 * c-ubsan.c: Likewise.
403 * cilk.c: Likewise.
404 * stub-objc.c: Likewise.
405
2a7fb83f
EB
4062015-07-07 Eric Botcazou <ebotcazou@adacore.com>
407
408 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
409 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
410
a03c9bf1
JM
4112015-07-01 Jason Merrill <jason@redhat.com>
412
36a85135
JM
413 * c-common.h (D_CXX11): Rename from D_CXX0X.
414 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
415 * c-common.c: Adjust.
416
e7fa68d5
JM
417 * c-opts.c (c_common_post_options): Default to C++14.
418
a03c9bf1
JM
419 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
420
fe95b036
ESR
4212015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
422
423 Implement N4197 - Adding u8 character literals
a64be36b
EB
424 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
425 CPP_CHAR.
426 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
427 CPP_UTF8CHAR_USERDEF tokens.
428 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
429 and CPP_UTF8CHAR tokens.
430 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 431
da2e71c9
MLI
4322015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
433
434 PR fortran/66605
435 * c-common.c (do_warn_unused_parameter): Move here.
436 * c-common.h (do_warn_unused_parameter): Declare.
437
b155cfd9
MP
4382015-06-29 Marek Polacek <polacek@redhat.com>
439
440 PR c/66322
441 * c-common.c (check_case_bounds): Add bool * parameter. Set
442 OUTSIDE_RANGE_P.
443 (c_add_case_label): Add bool * parameter. Pass it down to
444 check_case_bounds.
445 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
446 warning here.
447 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
448 declarations.
449
31521951
MP
4502015-06-27 Marek Polacek <polacek@redhat.com>
451
452 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
453 or VECTOR_INTEGER_TYPE_P throughout.
454 * c-gimplify.c: Likewise.
455
22d03525
MP
4562015-06-26 Marek Polacek <polacek@redhat.com>
457
458 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
459 * c-common.c (c_fully_fold_internal): Likewise.
460 (c_alignof_expr): Likewise.
461 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
462 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 463 * cilk.c (create_parm_list): Likewise.
22d03525 464
af05e6e5
MP
4652015-06-26 Marek Polacek <polacek@redhat.com>
466
467 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
468
f0889939
AM
4692015-06-25 Andrew MacLeod <amacleod@redhat.com>
470
471 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
472 * c-gimplify.c: Likewise.
473 * c-pragma.c: Likewise.
474 * c-ubsan.c: Likewise.
475 * cilk.c: Likewise.
476
ca752f39
RS
4772015-06-25 Richard Sandiford <richard.sandiford@arm.com>
478
479 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
480 ggc_hasher.
481
16a16ec7
AM
4822015-06-25 Andrew MacLeod <amacleod@redhat.com>
483
484 * cilk.c: Move calls.h after tm.h in the include chain.
485
0ae9bd27
MP
4862015-06-25 Marek Polacek <polacek@redhat.com>
487
488 * array-notation-common.c: Use VAR_P throughout.
489 * c-ada-spec.c: Likewise.
490 * c-common.c: Likewise.
491 * c-format.c: Likewise.
492 * c-gimplify.c: Likewise.
493 * c-omp.c: Likewise.
494 * c-pragma.c: Likewise.
495 * c-pretty-print.c: Likewise.
496 * cilk.c: Likewise.
497
62f9079a
MP
4982015-06-25 Marek Polacek <polacek@redhat.com>
499
500 * cilk.c (extract_free_variables): Use is_global_var.
501
0fa16060
RS
5022015-06-23 Richard Sandiford <richard.sandiford@arm.com>
503
504 * c-common.c: Don't include target-def.h.
505
a68ae2e1
MP
5062015-06-23 Marek Polacek <polacek@redhat.com>
507
508 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
509 when comparing INTEGER_CSTs.
510
c6a2f2d9
PMR
5112015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
512
513 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
514 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
515 (dump_ada_template): Skip partially specialized types.
516
6b4db501
MM
5172015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
518
519 * c-common.c (scalar_to_vector): Use std::swap instead of manually
520 swapping.
521
abb226c9
AM
5222015-06-17 Andrew MacLeod <amacleod@redhat.com>
523
524 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
525 * c-ada-spec.c: Likewise.
526 * c-cilkplus.c: Likewise.
527 * c-common.c: Likewise.
528 * c-common.h: Likewise.
529 * c-cppbuiltin.c: Likewise.
530 * c-dump.c: Likewise.
531 * c-format.c: Likewise.
532 * c-gimplify.c: Likewise.
533 * c-indentation.c: Likewise.
534 * c-lex.c: Likewise.
535 * c-omp.c: Likewise.
536 * c-opts.c: Likewise.
537 * c-pch.c: Likewise.
538 * c-ppoutput.c: Likewise.
539 * c-pragma.c: Likewise.
540 * c-pretty-print.c: Likewise.
541 * c-semantics.c: Likewise.
542 * c-ubsan.c: Likewise.
543 * cilk.c: Likewise.
544 * stub-objc.c: Likewise.
545
076fecad
PP
5462015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
547
548 PR c++/65168
549 * c-common.c (c_common_truthvalue_conversion): Warn when
550 converting an address of a reference to a truth value.
551
13fdf2e2
AM
5522015-06-08 Andrew MacLeod <amacleod@redhat.com>
553
554 * array-notation-common.c : Adjust include files.
555 * c-ada-spec.c : Likewise.
556 * c-cilkplus.c : Likewise.
557 * c-common.c : Likewise.
558 * c-common.h : Likewise.
559 * c-cppbuiltin.c : Likewise.
560 * c-dump.c : Likewise.
561 * c-format.c : Likewise.
562 * c-gimplify.c : Likewise.
563 * c-indentation.c : Likewise.
564 * c-lex.c : Likewise.
565 * c-omp.c : Likewise.
566 * c-opts.c : Likewise.
567 * c-pch.c : Likewise.
568 * c-ppoutput.c : Likewise.
569 * c-pragma.c : Likewise.
570 * c-pretty-print.c : Likewise.
571 * c-semantics.c : Likewise.
572 * c-ubsan.c : Likewise.
573 * cilk.c : Likewise.
574 * stub-objc.c : Likewise.
575
a1661b90
MP
5762015-06-08 Marek Polacek <polacek@redhat.com>
577
578 PR c/66415
579 * c-format.c (location_from_offset): Return LOC if LINE is null.
580
d7438551
AH
5812015-06-05 Aldy Hernandez <aldyh@redhat.com>
582
583 * c-common.h (c_parse_final_cleanups): New prototype.
584 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
585
ecb9f223
AM
5862015-06-04 Andrew MacLeod <amacleod@redhat.com>
587
588 * array-notation-common.c: Adjust includes for restructured coretypes.h.
589 * c-ada-spec.c: Likewise.
590 * c-cilkplus.c: Likewise.
591 * c-common.c: Likewise.
592 * c-common.h: Likewise.
593 * c-cppbuiltin.c: Likewise.
594 * c-dump.c: Likewise.
595 * c-format.c: Likewise.
596 * c-gimplify.c: Likewise.
597 * c-indentation.c: Likewise.
598 * c-lex.c: Likewise.
599 * c-omp.c: Likewise.
600 * c-opts.c: Likewise.
601 * c-pch.c: Likewise.
602 * c-ppoutput.c: Likewise.
603 * c-pragma.c: Likewise.
604 * c-pretty-print.c: Likewise.
605 * c-semantics.c: Likewise.
606 * c-ubsan.c: Likewise.
607 * cilk.c: Likewise.
608 * stub-objc.c: Likewise.
609
6ac48155
DM
6102015-06-02 David Malcolm <dmalcolm@redhat.com>
611
612 PR c/66220:
613 * c-indentation.c (should_warn_for_misleading_indentation): Use
614 expand_location rather than expand_location_to_spelling_point.
615 Don't warn if the guarding statement is more indented than the
616 next/body stmts.
617
773ce42e
DM
6182015-06-02 David Malcolm <dmalcolm@redhat.com>
619
620 * c-indentation.c (warn_for_misleading_indentation): Bail out
621 immediately if -Wmisleading-indentation isn't enabled.
622
4fef8379
ML
6232015-06-01 Martin Liska <mliska@suse.cz>
624
625 * c-format.c (check_format_arg):Use new type-based pool allocator.
626 (check_format_info_main) Likewise.
627
1edfb384
EB
6282015-05-31 Eric Botcazou <ebotcazou@adacore.com>
629
630 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
631 (has_nontrivial_methods): Likewise.
632
9677ef52
MP
6332015-05-25 Marek Polacek <polacek@redhat.com>
634
635 * c-ubsan.c (ubsan_instrument_shift): Use type0.
636
fd5c817a
MP
6372015-05-22 Marek Polacek <polacek@redhat.com>
638
639 PR c/47043
640 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
641
a2f45fe6 6422015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
643
644 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
645 STACK_GROWS_DOWNWARD.
646
a2f45fe6 6472015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
648
649 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
650 STACK_GROWS_DOWNWARD rather than if it is defined.
651
0fee2ac2 6522015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 653
0fee2ac2
MLI
654 PR c/52952
655 * c-format.c (location_column_from_byte_offset): New.
656 (location_from_offset): New.
657 (struct format_wanted_type): Add offset_loc field.
658 (check_format_info): Move handling of location for extra arguments
659 closer to the point of warning.
660 (check_format_info_main): Pass the result of location_from_offset
661 to warning_at.
662 (format_type_warning): Pass the result of location_from_offset
663 to warning_at.
664
cf4ef6f7
MP
6652015-05-20 Marek Polacek <polacek@redhat.com>
666
667 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
668
3a65ee74
MP
6692015-05-20 Marek Polacek <polacek@redhat.com>
670
671 * c-ada-spec.c (dump_sloc): Use DECL_P.
672
21b634ae
MP
6732015-05-20 Marek Polacek <polacek@redhat.com>
674
675 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
676 * c-common.c: Likewise.
677
0e50b624
DM
6782015-05-19 David Malcolm <dmalcolm@redhat.com>
679
680 * c-common.h (fe_file_change): Strengthen param from
681 const line_map * to const line_map_ordinary *.
682 (pp_file_change): Likewise.
683 * c-lex.c (fe_file_change): Likewise.
684 (cb_define): Use linemap_check_ordinary when invoking
685 SOURCE_LINE.
686 (cb_undef): Likewise.
687 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
688 invoking cb_file_change.
689 (c_finish_options): Likewise.
690 (push_command_line_include): Likewise.
691 (cb_file_change): Strengthen param "new_map" from
692 const line_map * to const line_map_ordinary *.
693 * c-ppoutput.c (cb_define): Likewise for local "map".
694 (pp_file_change): Likewise for param "map" and local "from".
695
fab27f52
MM
6962015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
697
698 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
699
2fe1d762
TV
7002015-05-18 Tom de Vries <tom@codesourcery.com>
701
702 * c-common.c (build_va_arg_1): New function.
703 (build_va_arg): Add address operator to va_list operand if necessary.
704
7a37fa90
MM
7052015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
706
707 PR c/48956
708 * c-common.c (int_safely_convertible_to_real_p): Define.
709 (unsafe_conversion_p): Check conversions involving complex types.
710 (conversion_warning): Add new warning message for conversions which
711 discard imaginary component.
712 * c-common.h: (enum conversion_safety): Add new enumerator for such
713 conversions.
714
3aa3c9fc
MP
7152015-05-14 Marek Polacek <polacek@redhat.com>
716
717 PR c/66066
718 PR c/66127
719 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
720 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
721 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
722 use it. If FOR_INT_CONST, require that all evaluated operands be
723 INTEGER_CSTs.
724
c3388e62
DM
7252015-05-12 David Malcolm <dmalcolm@redhat.com>
726
727 * c-common.h (warn_for_misleading_indentation): New prototype.
728 * c-indentation.c: New file.
729 * c.opt (Wmisleading-indentation): New option.
730
c7b38fd5
TV
7312015-05-12 Tom de Vries <tom@codesourcery.com>
732
733 PR tree-optimization/66010
734 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
735
381bf11e
JM
7362015-05-09 Jason Merrill <jason@redhat.com>
737
edff0c06
JM
738 * c-opts.c (c_common_post_options): Also clear
739 cpp_opts->cpp_warn_cxx11_compat.
740
129211bc
JM
741 * c-common.h (enum cxx_dialect): Add cxx_unset.
742 * c-common.c (cxx_dialect): Initialize to cxx_unset.
743 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
744
381bf11e
JM
745 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
746 (std=gnu++0x): Mark as Undocumented.
747 (std=gnu++1y): Add deprecated message.
748
fe191308
JM
7492015-05-08 Jason Merrill <jason@redhat.com>
750
765189ff
JM
751 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
752 * c-opts.c: Adjust.
753
fe191308
JM
754 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
755
755e528f
MP
7562015-05-08 Marek Polacek <polacek@redhat.com>
757
758 PR c/64918
759 * c.opt (Woverride-init-side-effects): New option.
760
0173bd2a
MP
7612015-05-07 Marek Polacek <polacek@redhat.com>
762
763 PR c/65179
764 * c-common.c (c_fully_fold_internal): Warn when left shifting a
765 negative value.
766 * c.opt (Wshift-negative-value): New option.
767 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
768 when -Wextra and C99/C++11 mode.
769
e0f0d3b9
MP
7702015-05-07 Marek Polacek <polacek@redhat.com>
771 Martin Uecker <uecker@eecs.berkeley.edu>
772
773 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
774 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
775
8243e2a9
JM
7762015-05-05 Jason Merrill <jason@redhat.com>
777
778 * c.opt (Wterminate): New.
779
577cd070
MP
7802015-04-30 Marek Polacek <polacek@redhat.com>
781
782 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
783 require that the non-constant be of a boolean type.
784
0373796b
JT
7852015-04-29 Josh Triplett <josh@joshtriplett.org>
786
e0f0d3b9
MP
787 * c-common.c (handle_section_attribute): Refactor to reduce
788 nesting and distinguish between error cases.
0373796b 789
716c0ba6
MP
7902015-04-29 Marek Polacek <polacek@redhat.com>
791
792 PR c/64610
793 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
794 with 0/1.
795
8848828b
JJ
7962015-04-29 Jakub Jelinek <jakub@redhat.com>
797
798 * c-common.h (omp_clause_mask): Unconditionally define as a class.
799 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
800 HOST_BITS_PER_WIDE_INT.
801
ecd0e562
TV
8022015-04-28 Tom de Vries <tom@codesourcery.com>
803
804 PR tree-optimization/65887
805 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
806
2a877204 8072015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 808 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
809
810 * c-ada-spec.c (in_function): Delete.
811 (dump_generic_ada_node): Do not change in_function and remove the
812 redundant code dealing with it.
813 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
814 (print_ada_methods): Output the static member functions in a nested
815 package after the regular methods as well as associated renamings.
816
4853031e
MP
8172015-04-24 Marek Polacek <polacek@redhat.com>
818
819 PR c/65830
820 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
821 and OPT_Wshift_count_overflow.
822
8c2b7f79
MP
823 PR c/63357
824 * c-common.c (warn_logical_operator): Warn if the operands have the
825 same expressions.
826
b8787813
MP
8272015-04-24 Marek Polacek <polacek@redhat.com>
828
829 PR c/61534
830 * c-common.c (warn_logical_operator): Bail if either operand comes
831 from a macro expansion.
832
8fba1830
BRF
8332015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
834
835 PR target/55143
836 * c-common.c (c_default_pointer_mode): Add definition.
837 * c-common.h (c_default_pointer_mode): Add declaration.
838
17958621
JJ
8392015-03-11 Jakub Jelinek <jakub@redhat.com>
840
841 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
842 on record_builtin_type argument.
843
7ccb1a11
JJ
8442015-03-10 Jakub Jelinek <jakub@redhat.com>
845
846 PR c/65120
847 * c-common.c (warn_logical_not_parentheses): Don't warn for
848 !x == 0 or !x != 0.
849
04fd785e
MP
8502015-03-07 Marek Polacek <polacek@redhat.com>
851
852 PR sanitizer/65280
853 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
854 before trying to figure out whether we have a flexible array member.
855
a4e26206
EB
8562015-03-06 Eric Botcazou <ebotcazou@adacore.com>
857 Jonathan Wakely <jwakely.gcc@gmail.com>
858
859 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
860
0d2489f4
EB
8612015-03-05 Eric Botcazou <ebotcazou@adacore.com>
862
863 PR ada/65319
864 * c-ada-spec.c (print_destructor): Remove obsolete code.
865
83ed54d7
EB
8662015-03-01 Eric Botcazou <ebotcazou@adacore.com>
867
868 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
869 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
870 DECL_TEMPLATE_RESULT emulations.
871 (dump_ada_template)): Add guard for TYPE_METHODS.
872
7631f0e2
MP
8732015-02-27 Marek Polacek <polacek@redhat.com>
874
875 PR c/65040
876 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
877
d1783ae5
KT
8782015-02-27 Kai Tietz <ktietz@redhat.com>
879
880 PR c/35330
881 * c-pragma.c (handle_pragma_weak): Do not try to create
882 weak/alias of declarations not being function, or variable
883 declarations.
884
56a9f6bc
TS
8852015-02-24 Thomas Schwinge <thomas@codesourcery.com>
886
887 PR libgomp/64625
888 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
889 Remove macros.
890 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
891
3d5cb23d
MP
8922015-02-16 Marek Polacek <polacek@redhat.com>
893
894 PR c/65066
895 * c-format.c (check_format_types): Handle null param.
896
fa008882
MP
8972015-02-13 Marek Polacek <polacek@redhat.com>
898
899 PR c/65040
900 * c-format.c (check_format_types): Don't warn about different
901 signedness if the original value is in the range of WANTED_TYPE.
902
785f21af
JM
9032015-02-12 Jason Merrill <jason@redhat.com>
904
905 PR c++/64956
906 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
907 to the current highest version.
908 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
909
4886ec8e
JJ
9102015-02-04 Jakub Jelinek <jakub@redhat.com>
911
912 PR c/64824
913 PR c/64868
914 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
915 instead of RDIV_EXPR. Use build_binary_op instead of
916 build2_loc.
917
40fecdd6
JM
9182015-01-30 Joseph Myers <joseph@codesourcery.com>
919
920 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
921 to pass input_location as first argument.
922
a0c88d06
TV
9232015-01-23 Tom de Vries <tom@codesourcery.com>
924
925 PR libgomp/64672
926 * c.opt (fopenacc): Mark as LTO option.
927
1506ae0e
TV
9282015-01-23 Tom de Vries <tom@codesourcery.com>
929
930 PR libgomp/64707
931 * c.opt (fopenmp): Mark as LTO option.
932
31be63ab
JJ
9332015-01-21 Jakub Jelinek <jakub@redhat.com>
934
935 PR c/63307
b1726d6c 936 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
937 (compare_decls): Fix up formatting.
938
9392015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
940
941 PR c/63307
942 * cilk.c: Include vec.h.
943 (struct cilk_decls): New structure.
944 (wrapper_parm_cb): Split this function to...
945 (fill_decls_vec): ...this...
946 (create_parm_list): ...and this.
947 (compare_decls): New function.
948 (for_local_cb): Remove.
949 (wrapper_local_cb): Ditto.
950 (build_wrapper_type): For now first traverse and fill vector of
951 declarations then sort it and then deal with sorted vector.
952 (cilk_outline): Ditto.
953 (declare_one_free_variable): Ditto.
954
6875457f
JM
9552015-01-21 Jason Merrill <jason@redhat.com>
956
957 PR c++/64629
958 * c-format.c (check_format_arg): Call decl_constant_value.
959
185c9e56
ML
9602015-01-19 Martin Liska <mliska@suse.cz>
961
962 * c-common.c (handle_noicf_attribute): New function.
963
41dbbb37
TS
9642015-01-15 Thomas Schwinge <thomas@codesourcery.com>
965 Bernd Schmidt <bernds@codesourcery.com>
966 James Norris <jnorris@codesourcery.com>
967 Cesar Philippidis <cesar@codesourcery.com>
968 Ilmir Usmanov <i.usmanov@samsung.com>
969 Jakub Jelinek <jakub@redhat.com>
970
971 * c.opt (fopenacc): New option.
972 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
973 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
974 New macros.
975 * c-common.h (c_finish_oacc_wait): New prototype.
976 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
977 (c_finish_oacc_wait): New function.
978 * c-pragma.c (oacc_pragmas): New variable.
979 (c_pp_lookup_pragma, init_pragma): Handle it.
980 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
981 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
982 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
983 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
984 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
985 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
986 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
987 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
988 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
989 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
990 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
991 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
992 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
993 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
994 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
995 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
996 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
997 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
998 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
999 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1000 PRAGMA_OACC_CLAUSE_WORKER.
1001
5434dc07
MD
10022015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1003
1004 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1005 for the new option fstack-protector_explicit.
1006 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1007 (handle_stack_protect_attribute): New function.
1008
de1b5c17
MU
10092015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1010
1011 * c.opt: New option -Warray-bounds=.
1012
adfac8df
JJ
10132015-01-09 Michael Collison <michael.collison@linaro.org>
1014
1015 * array-notation-common.c: Include hash-set.h, machmode.h,
1016 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1017 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1018 * c-ada-spec.c: Ditto.
1019 * c-cilkplus.c: Ditto.
1020 * c-common.c: Include input.h due to flattening of tree.h.
1021 Define macro GCC_C_COMMON_C.
1022 * c-common.h: Flatten tree.h header files into c-common.h.
1023 Remove include of tree-core.h.
1024 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1025 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1026 fold-const.h, wide-int.h, and inchash.h due to
1027 flattening of tree.h.
1028 * c-dump.c: Ditto.
1029 * c-format.c: Flatten tree.h header files into c-common.h.
1030 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1031 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1032 fold-const.h, wide-int.h, and inchash.h due to
1033 flattening of tree.h.
1034 * c-dump.c: Include hash-set.h, machmode.h,
1035 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1036 fold-const.h, wide-int.h, and inchash.h due to
1037 flattening of tree.h.
1038 * c-format.c: Include hash-set.h, machmode.h,
1039 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1040 fold-const.h, wide-int.h, inchash.h and real.h due to
1041 flattening of tree.h.
1042 * c-gimplify.c: Include hash-set.h, machmode.h,
1043 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1044 fold-const.h, wide-int.h, and inchash.h due to
1045 flattening of tree.h.
1046 * cilk.c: Ditto.
1047 * c-lex.c: Ditto.
1048 * c-omp.c: Ditto.
1049 * c-opts.c: Ditto.
1050 * c-pch.c: Ditto.
1051 * c-ppoutput.c: Ditto.
1052 * c-pragma.c: Ditto.
1053 * c-pretty-print.c: Ditto.
1054 * c-semantics.c: Ditto.
1055 * c-ubsan.c: Ditto.
1056 * stub-objc.c: Ditto.
1057
f5481fc4
JM
10582015-01-08 Jason Merrill <jason@redhat.com>
1059
1060 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1061 do_ubsan_in_current_function.
1062 (ubsan_maybe_instrument_reference_or_call): Likewise.
1063 * c-ubsan.h: Declare it.
1064
de35aa66
MS
10652015-01-08 Mike Stump <mikestump@comcast.net>
1066
1067 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1068
4a9a42ab
MP
10692015-01-07 Marek Polacek <polacek@redhat.com>
1070
1071 PR c/64440
1072 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1073 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1074
2f42e5de
TS
10752015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1076
1077 PR c++/31397
1078 * c.opt (Wsuggest-override): New option.
1079
5624e564
JJ
10802015-01-05 Jakub Jelinek <jakub@redhat.com>
1081
1082 Update copyright years.
1083
5bd012f8
MP
10842015-01-05 Marek Polacek <polacek@redhat.com>
1085
1086 PR c/64423
1087 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1088 parameter. Use it.
1089 * c-common.h (warn_array_subscript_with_type_char): Update
1090 declaration.
1091
a7fa8d18
ESR
10922014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1093
1094 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1095 Control macro with flag_sized_deallocation.
1096
768952be
MU
10972014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1098
1099 * c.opt (Wdiscarded-array-qualifiers): New option.
1100
1f8d3e84
JJ
11012014-12-19 Jakub Jelinek <jakub@redhat.com>
1102
1103 PR preprocessor/63831
1104 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1105 and __has_cpp_attribute here.
1106 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1107 c_common_has_attribute.
1108 * c-common.h (c_common_has_attribute): New prototype.
1109 * c-lex.c (init_c_lex): Set cb->has_attribute to
1110 c_common_has_attribute instead of cb_has_attribute.
1111 (get_token_no_padding): New function.
1112 (cb_has_attribute): Renamed to ...
1113 (c_common_has_attribute): ... this. No longer static. Use
1114 get_token_no_padding, require ()s, don't build TREE_LIST
1115 unnecessarily, fix up formatting, adjust diagnostics, call
1116 init_attributes.
1117
20b06add
JM
11182014-12-15 Jason Merrill <jason@redhat.com>
1119
1120 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1121 (-Wsized-deallocation): New.
1122 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1123 to on in C++14 and up.
1124
94a073b2
JM
11252014-12-11 Jason Merrill <jason@redhat.com>
1126
acaa5911
JM
1127 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1128
94a073b2
JM
1129 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1130 we aren't complaining about VLAs.
1131
7fb66c15
MP
11322014-12-06 Marek Polacek <polacek@redhat.com>
1133
1134 PR tree-optimization/64183
1135 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1136 shift-expression if it is integer_type_node. Use types_compatible_p.
1137
b731b390
JJ
11382014-11-29 Jakub Jelinek <jakub@redhat.com>
1139
1140 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1141 last argument from create_tmp_var_raw and create_tmp_var calls.
1142 * cilk.c (gimplify_cilk_spawn): Likewise.
1143 * c-omp.c (c_finish_omp_atomic): Likewise.
1144
6a4da643
MP
11452014-11-28 Marek Polacek <polacek@redhat.com>
1146
1147 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1148 instead of unsigned_type_node.
1149
541e35a6
MP
11502014-11-28 Marek Polacek <polacek@redhat.com>
1151
1152 PR c/63862
1153 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1154 to op1_utype.
1155 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1156 expression to unsigned_type_node.
1157
dcc97066
MW
11582014-11-20 Mark Wielaard <mjw@redhat.com>
1159
1160 PR debug/38757
1161 * c-opts.c (set_std_c89): Set lang_hooks.name.
1162 (set_std_c99): Likewise.
1163 (set_std_c11): Likewise.
1164 (set_std_cxx98): Likewise.
1165 (set_std_cxx11): Likewise.
1166 (set_std_cxx14): Likewise.
1167 (set_std_cxx1z): Likewise.
1168
aa7da51a
JJ
11692014-11-21 Jakub Jelinek <jakub@redhat.com>
1170
1171 PR target/63764
1172 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1173 return type to bool.
009a3480 1174 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1175 (convert_vector_to_pointer_for_subscript): Change return type to
1176 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1177 and copy it into a TARGET_EXPR and use that instead of *vecp
1178 directly.
1179
538dd0b7
DM
11802014-11-19 David Malcolm <dmalcolm@redhat.com>
1181
1182 Merger of git branch "gimple-classes-v2-option-3".
1183 * ChangeLog.gimple-classes: New.
1184 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1185 from being just a vec<gimple> to a vec<gbind *>.
1186
c39a5e99
JJ
11872014-11-18 Jakub Jelinek <jakub@redhat.com>
1188
1189 PR sanitizer/63813
1190 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1191 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1192 get_pointer_alignment for non-pointers. Use ptype, or if it is
1193 reference type, corresponding pointer type, as type of kind
1194 argument.
1195 (ubsan_maybe_instrument_reference,
1196 ubsan_maybe_instrument_member_call): Adjust callers.
1197
8537a4a9
MP
11982014-11-15 Marek Polacek <polacek@redhat.com>
1199
1200 PR middle-end/63884
1201 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1202 for NULL fndecl.
1203 (extract_array_notation_exprs): Return for NULL node.
1204
2079956a
JM
12052014-11-12 Joseph Myers <joseph@codesourcery.com>
1206
1207 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1208 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1209
1304953e
JJ
12102014-11-12 Jakub Jelinek <jakub@redhat.com>
1211
1212 PR c/59708
1213 * c-common.c (check_builtin_function_arguments): Handle
1214 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1215
e5e44252
AK
12162014-11-10 Andi Kleen <ak@linux.intel.com>
1217
1218 PR c/60804
1219 * c-common.h (check_no_cilk): Declare.
1220 * cilk.c (get_error_location): New function.
1221 (check_no_cilk): Dito.
1222
e64b984d
AK
12232014-11-10 Andi Kleen <ak@linux.intel.com>
1224
1225 * cilk.c (recognize_spawn): Use expression location
1226 for error message.
1227
13c21655
PC
12282014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1229
1230 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1231
42fd12b1
ESR
12322014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1233
1234 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1235 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1236 (__cpp_range_based_for, __cpp_initializer_lists,
1237 __cpp_delegating_constructors, __cpp_nsdmi,
1238 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1239 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1240 __has_cpp_attribute.
1241 * c-lex.c (cb_has_attribute): New callback CPP function;
1242 (init_c_lex): Set has_attribute callback.
1243
6f450181
RB
12442014-11-04 Richard Biener <rguenther@suse.de>
1245
1246 * c-common.c (shorten_compare): Do not shorten mixed
1247 DFP and non-DFP compares.
1248
26f0e1d6
ESR
12492014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1250
1251 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1252 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1253 Commentary and rearrangement of tests.
1254 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1255 Commentary and rearrangement of tests.
1256 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1257 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1258
ef4bddc2
RS
12592014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1260
1261 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1262 enum from machine_mode.
1263
c582198b
AM
12642014-10-28 Andrew MacLeod <amacleod@redhat.com>
1265
adfac8df
JJ
1266 * c-common.c: Adjust include files.
1267 * c-gimplify.c: Ditto.
1268 * cilk.c: Ditto.
1269 * c-pragma.c: Ditto.
1270 * c-ubsan.c: Ditto.
c582198b 1271
60393bbc
AM
12722014-10-27 Andrew MacLeod <amacleod@redhat.com>
1273
1274 * c-gimplify.c: Adjust include files.
1275
d723bb7c
MLI
12762014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1277
1278 PR c++/53061
1279 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1280 c_common_initialize_diagnostics.
1281 * c-common.h: Likewise.
1282
90f3520e
MP
12832014-10-24 Marek Polacek <polacek@redhat.com>
1284
1285 PR c/56980
1286 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1287 print "struct"/"union"/"enum" for typedefed names.
1288
59d7607a
MP
12892014-10-23 Marek Polacek <polacek@redhat.com>
1290
1291 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1292 in unsigned type.
1293
d95a2703
JJ
12942014-10-22 Jakub Jelinek <jakub@redhat.com>
1295 Yury Gribov <y.gribov@samsung.com>
1296
1297 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1298 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1299 instead of flag_sanitize_recover as bool flag.
1300
8e6ef852
KY
13012014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1302
1303 * cilk.c: Revert previous change.
1304
948cf550
IZ
13052014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1306
1307 PR c/63307
1308 * cilk.c: Include vec.h.
1309 (struct cilk_decls): New structure.
1310 (wrapper_parm_cb): Split this function to...
1311 (fill_decls_vec): ...this...
1312 (create_parm_list): ...and this.
1313 (compare_decls): New function.
1314 (for_local_cb): Remove.
1315 (wrapper_local_cb): Ditto.
1316 (build_wrapper_type): For now first traverse and fill vector of
1317 declarations then sort it and then deal with sorted vector.
1318 (cilk_outline): Ditto.
1319 (declare_one_free_variable): Ditto.
1320
92574c7c
MP
13212014-10-17 Marek Polacek <polacek@redhat.com>
1322
1323 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1324 * c.opt (Wimplicit-int): Initialize to -1.
1325
83685514
AM
13262014-10-16 Andrew MacLeod <amacleod@redhat.com>
1327
1328 * c-pragma.c: Adjust include files.
1329 * c-semantics.c: Likewise.
1330
5b8300ea
DD
13312014-10-16 DJ Delorie <dj@redhat.com>
1332
1333 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1334 multiples of bytes.
1335
5f83e90b
JM
13362014-10-14 Jason Merrill <jason@redhat.com>
1337
1338 PR c++/63455
1339 * c-common.h (CPP_PREPARSED_EXPR): New.
1340 (N_CP_TTYPES): Adjust.
1341
d73326ca
MP
13422014-10-15 Marek Polacek <polacek@redhat.com>
1343
1344 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1345
78a7c317
DD
13462014-10-14 DJ Delorie <dj@redhat.com>
1347
1348 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1349 types, not just __int128.
1350 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1351 types, not just __int128.
1352 (cpp_atomic_builtins): Round pointer sizes up.
1353 (type_suffix): Use type precision, not specific types.
1354 * c-common.c (c_common_reswords): Remove __int128 special case.
1355 (c_common_type_for_size): Check for all __intN types, not just
1356 __int128.
1357 (c_common_type_for_mode): Likewise.
1358 (c_common_signed_or_unsigned_type): Likewise.
1359 (c_build_bitfield_integer_type): Likewise.
1360 (c_common_nodes_and_builtins): Likewise.
1361 (keyword_begins_type_specifier): Likewise.
1362 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1363 __intN variants.
1364
2a22f99c
TS
13652014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1366
1367 * c-common.c: Use hash_table instead of hashtab.
1368
2a8ef767
ESR
13692014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1370
adfac8df 1371 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1372 C++11 section.
1373
3c9aabbd
MG
13742014-10-03 Marc Glisse <marc.glisse@inria.fr>
1375
1376 PR c++/54427
1377 PR c++/57198
1378 PR c++/58845
1379 * c-common.c (warn_logical_operator): Punt for vectors.
1380
a15f7cb8
ESR
13812014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1382
1383 Implement SD-6: SG10 Feature Test Recommendations
1384 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1385 macros and the __has_header macro.
1386
8d0cf15e
JM
13872014-09-30 Jason Merrill <jason@redhat.com>
1388
dd5d5481
JM
1389 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1390 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1391 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1392
b752325e
JM
1393 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1394 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1395
8d0cf15e
JM
1396 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1397 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1398
083e891e
MP
13992014-09-24 Marek Polacek <polacek@redhat.com>
1400
1401 PR c/61405
1402 PR c/53874
1403 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1404
7861b648
AK
14052014-09-23 Andi Kleen <ak@linux.intel.com>
1406
1407 * c-common.c (handle_no_reorder_attribute): New function.
1408 (c_common_attribute_table): Add no_reorder attribute.
1409
9a79452d
JM
14102014-09-22 Joseph Myers <joseph@codesourcery.com>
1411
1412 * c-cppbuiltin.c (c_cpp_builtins): Define
1413 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1414 modes.
1415
dd69f047
JM
14162014-09-18 Joseph Myers <joseph@codesourcery.com>
1417
1418 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1419 for supported floating-point modes.
1420
737a4826
MLI
14212014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1422
1423 * c.opt (Wpsabi): Use LangEnabledBy.
1424 * c-opts.c (c_common_handle_option): Do not handle here.
1425
8cc4b7a2
JM
14262014-09-12 Joseph Myers <joseph@codesourcery.com>
1427
1428 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1429 macros for floating-point modes.
1430
179b5a55
MG
14312014-09-11 Marc Glisse <marc.glisse@inria.fr>
1432
1433 PR target/58757
1434 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1435 __*_DENORM_MIN__ without denormals.
1436
570a11fe
JJ
14372014-09-10 Jakub Jelinek <jakub@redhat.com>
1438
1439 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1440 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1441 ubsan_create_data callers.
1442 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1443 index is constant or BIT_AND_EXPR with constant mask and is
1444 small enough for the bound.
1445 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1446 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1447
b559c810
MLI
14482014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1449
1450 * c.opt: Add CppReason to various flags.
1451 (Wdate-time): Re-sort.
1452 * c-common.c: Include c-common.h earlier.
1453 (struct reason_option_codes_t): Delete.
1454 (c_option_controlling_cpp_error): Prefix global type and struct
1455 with cpp_.
1456
1ef33fd4
MLI
14572014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1458
1459 * c.opt (Wnormalized): New.
1460 (Wnormalized=): Use Enum and Reject Negative.
1461 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1462
66bb34c0
JM
14632014-09-08 Joseph Myers <joseph@codesourcery.com>
1464
1465 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1466 digits of floating-point modes if -fbuilding-libgcc.
1467
53d68b9f
JM
14682014-09-05 Joseph Myers <joseph@codesourcery.com>
1469
1470 * c-cppbuiltin.c (c_cpp_builtins): Also define
1471 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1472 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1473 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1474 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1475 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1476 __LIBGCC_STACK_GROWS_DOWNWARD__,
1477 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1478 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1479 __LIBGCC_DWARF_FRAME_REGISTERS__,
1480 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1481 __LIBGCC_STACK_POINTER_REGNUM__ and
1482 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1483 (builtin_define_with_value): Handle backslash-escaping in string
1484 macro values.
1485
f65586dc
RB
14862014-09-05 Richard Biener <rguenther@suse.de>
1487
1488 PR middle-end/63148
1489 * c-format.c (check_format_arg): Properly handle
1490 effectively signed POINTER_PLUS_EXPR offset.
1491
2b71f4a4
MLI
14922014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1493
1494 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1495 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1496 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1497 and Init.
1498 * c-opts.c (c_common_handle_option): Do not handle here.
1499 (sanitize_cpp_opts): Likewise.
1500 * c-common.c (struct reason_option_codes_t): Handle
1501 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1502
d2e4feca
MP
15032014-09-03 Marek Polacek <polacek@redhat.com>
1504
1505 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1506
9a771876
JJ
15072014-09-02 Jakub Jelinek <jakub@redhat.com>
1508 Balaji V. Iyer <balaji.v.iyer@intel.com>
1509 Igor Zamyatin <igor.zamyatin@intel.com>
1510
1511 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1512 * c-common.c (c_common_reswords): Added _Cilk_for.
1513 * c-common.h (enum rid): Added RID_CILK_FOR.
1514 (cilk_for_number_of_iterations): Add declaration.
1515 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1516 CILK_FOR.
1517 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1518 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1519
81b5d104
MLI
15202014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1521
1522 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1523 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1524 Wundef): Use CPP, Var and Init.
1525 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1526
b753b37b
MLI
15272014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1528
1529 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1530 * c-opts.c (c_common_handle_option): Do not handle here.
1531
028aee17
JM
15322014-08-25 Jason Merrill <jason@redhat.com>
1533
1534 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1535 -std=c++14 and -std=gnu++14, rather than the reverse.
1536 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1537 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1538 * c-common.h (cxx_dialect): Remove cxx1y.
1539
e4276ba5
ESR
15402014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1541
1542 * c-common.h (enum cxx_dialect): Add cxx14.
1543 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1544 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1545 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1546
a545cacd
JM
15472014-08-22 Jason Merrill <jason@redhat.com>
1548
1549 * c.opt (std=gnu++17): Fix alias.
1550
59ea0364
MP
15512014-08-22 Marek Polacek <polacek@redhat.com>
1552
1553 PR c++/62199
1554 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1555 check for vector types. Drop LHS argument.
1556 * c-common.h (warn_logical_not_parentheses): Adjust.
1557
596e808c
MLI
15582014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1559
1560 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1561 (Wmultichar): Likewise.
1562 (Wdate-time): Use C-family languages instead of Common. Use CPP
1563 and Var.
1564 * c-opts.c (c_common_handle_option): Do not handle the above
1565 options here.
1566 (sanitize_cpp_opts): Likewise.
1567
18767f65
MLI
15682014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1569
1570 PR fortran/44054
1571 * c-opts.c: Include tree-diagnostics.h.
1572 (c_diagnostic_finalizer): New.
1573 (c_common_initialize_diagnostics): Use it.
1574
b4413594
MLI
15752014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1576
1577 PR preprocessor/51303
1578 * c-common.c (struct reason_option_codes_t option_codes):
1579 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1580
43f9a13c
MLI
15812014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1582
1583 PR c/60975
1584 PR c/53063
1585 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1586 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1587 (c_common_post_options): Call init_global_opts_from_cpp.
1588 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1589
04159acf
MP
15902014-08-19 Marek Polacek <polacek@redhat.com>
1591
1592 PR c++/62153
1593 * c-common.c (maybe_warn_bool_compare): New function.
1594 * c-common.h (maybe_warn_bool_compare): Declare.
1595 * c.opt (Wbool-compare): New option.
1596
35aff4fb
MP
15972014-08-19 Marek Polacek <polacek@redhat.com>
1598
1599 * c.opt (Wc99-c11-compat): New option.
1600
177cce46
MP
16012014-08-19 Marek Polacek <polacek@redhat.com>
1602
1603 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1604 to warn_c90_c99_compat.
1605 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1606 to -1.
1607
6ae9194f
MLI
16082014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1609 Steven Bosscher <steven@gcc.gnu.org>
1610
1611 PR c/52952
1612 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1613 format_check_results.
1614 (check_function_format): Use true and add comment for boolean
1615 argument.
1616 (finish_dollar_format_checking): Use explicit location when warning.
1617 (check_format_info): Likewise.
1618 (check_format_arg): Set extra_arg_loc and format_string_loc.
1619 (check_format_info_main): Use explicit location when warning.
1620 (check_format_types): Pass explicit location.
1621 (format_type_warning): Likewise.
1622
8e54f6d3
MLI
16232014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1624
1625 PR fortran/44054
1626 * c-format.c: Handle Fortran flags.
1627
cd4e76fc
IZ
16282014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1629
1630 PR other/61962
1631 * array-notation-common.c (find_rank): Added handling for other
1632 types of references.
1633
f3bede71
MP
16342014-08-10 Marek Polacek <polacek@redhat.com>
1635
1636 PR c/51849
1637 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1638 * c.opt (Wc90-c99-compat): Add option.
1639
9f25a338
TS
16402014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1641
1642 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1643
62e4eb35
MP
16442014-08-03 Marek Polacek <polacek@redhat.com>
1645
1646 * c-common.c (check_case_value): Add location_t parameter. Use it.
1647 (c_add_case_label): Pass loc to check_case_value.
1648
b787e7a2
TS
16492014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1650
1651 * cilk.c: Use hash_map instead of pointer_map.
1652
6e2830c3
TS
16532014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1654
1655 * c-gimplify.c: Use hash_set instead of pointer_set.
1656
a7ee52fb
IZ
16572014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1658
1659 PR middle-end/61455
1660 * array-notation-common.c (extract_array_notation_exprs): Handling
1661 of DECL_EXPR added.
1662
944fa280
JJ
16632014-08-01 Jakub Jelinek <jakub@redhat.com>
1664
1665 * c-common.h (min_align_of_type): Removed prototype.
1666 * c-common.c (min_align_of_type): Removed.
1667 * c-ubsan.h (ubsan_maybe_instrument_reference,
1668 ubsan_maybe_instrument_member_call): New prototypes.
1669 * c-ubsan.c: Include stor-layout.h and builtins.h.
1670 (ubsan_maybe_instrument_reference_or_call,
1671 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1672 functions.
1673
b4dfdc11
MG
16742014-07-31 Marc Glisse <marc.glisse@inria.fr>
1675
1676 PR c++/60517
1677 * c.opt (-Wreturn-local-addr): Move to common.opt.
1678
a41844e5
JM
16792014-07-30 Jason Merrill <jason@redhat.com>
1680
1681 PR c++/61659
1682 PR c++/61687
1683 Revert:
1684 * c.opt (-fuse-all-virtuals): New.
1685
976d5a22
TT
16862014-07-30 Tom Tromey <tromey@redhat.com>
1687
1688 PR c/59855
1689 * c.opt (Wdesignated-init): New option.
1690 * c-common.c (c_common_attribute_table): Add "designated_init".
1691 (handle_designated_init): New function.
1692
cdc94aca
MP
16932014-07-24 Marek Polacek <polacek@redhat.com>
1694
1695 PR c/57653
1696 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1697
f41373b6
DS
16982014-07-16 Dodji Seketeli <dodji@redhat.com>
1699
1700 PR preprocessor/60723 - missing system-ness marks for macro tokens
1701 * c-ppoutput.c (struct print::prev_was_system_token): New data
1702 member.
1703 (init_pp_output): Initialize it.
1704 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1705 (do_line_change): Return a flag saying if a line marker was
1706 emitted or not.
1707 (scan_translation_unit): Detect if the system-ness of the token we
1708 are about to emit is different from the one of the previously
1709 emitted token. If so, emit a line marker. Avoid emitting useless
1710 adjacent line markers. Avoid emitting line markers for tokens
1711 originating from the expansion of built-in macros.
1712 (scan_translation_unit_directives_only): Adjust.
1713
4d661eaa
MP
17142014-07-15 Marek Polacek <polacek@redhat.com>
1715
1716 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1717 TYPE_MAX_VALUE is NULL.
1718
b108f48f
JJ
17192014-07-14 Jakub Jelinek <jakub@redhat.com>
1720
1721 PR middle-end/61294
1722 * c.opt (Wmemset-transposed-args): New warning.
1723
c0221884
JM
17242014-07-10 Jason Merrill <jason@redhat.com>
1725
1726 PR c++/61659
1727 PR c++/61687
1728 * c.opt (-fuse-all-virtuals): New.
1729
63dfbb95
RB
17302014-07-09 Richard Biener <rguenther@suse.de>
1731
1732 PR c-family/61741
1733 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1734 using unsigned arithmetic if overflow does not wrap instead of
1735 if overflow is undefined.
1736
773ec47f
MP
17372014-07-06 Marek Polacek <polacek@redhat.com>
1738
1739 PR c/6940
1740 * c.opt (Wsizeof-array-argument): New option.
1741
00a7ba58
JJ
17422014-07-03 Jakub Jelinek <jakub@redhat.com>
1743
b1726d6c 1744 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
1745 comments->count <= 1, as comments->entries might be NULL.
1746
52ec0ea3
MP
17472014-07-01 Marek Polacek <polacek@redhat.com>
1748
1749 * c.opt (Wint-conversion): New option.
1750
d5c3d343
MP
17512014-07-01 Marek Polacek <polacek@redhat.com>
1752
1753 PR c/58286
1754 * c.opt (Wincompatible-pointer-types): New option.
1755
6e7ceb17
PC
17562014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1757
1758 PR c++/51400
1759 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1760 Do not discard TYPE_QUALS of type.
1761
da73100b
JM
17622014-06-26 Jason Merrill <jason@redhat.com>
1763
1764 * c-common.h (enum cxx_dialect): Add cxx1z.
1765 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1766 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1767
08eedf75
TJ
17682014-06-26 Teresa Johnson <tejohnson@google.com>
1769
1770 * c-common.h (get_dump_info): Declare.
1771 * c-gimplify.c (c_genericize): Use saved dump files.
1772 * c-opts.c (c_common_parse_file): Begin and end dumps
1773 once around parsing invocation.
1774 (get_dump_info): New function.
1775
7b56b2f8
MP
17762014-06-23 Marek Polacek <polacek@redhat.com>
1777 Andrew MacLeod <amacleod@redhat.com>
1778
1779 PR c/61553
1780 * c-common.c (get_atomic_generic_size): Don't segfault if the
1781 type doesn't have a size.
1782
0e37a2f3
MP
17832014-06-20 Marek Polacek <polacek@redhat.com>
1784
1785 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1786 (ubsan_walk_array_refs_r): New function.
1787 (c_genericize): Instrument array bounds.
1788 * c-ubsan.c: Include "internal-fn.h".
1789 (ubsan_instrument_division): Mark instrumented arrays as having
1790 side effects. Adjust ubsan_type_descriptor call.
1791 (ubsan_instrument_shift): Likewise.
1792 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1793 (ubsan_instrument_bounds): New function.
1794 (ubsan_array_ref_instrumented_p): New function.
1795 (ubsan_maybe_instrument_array_ref): New function.
1796 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1797 (ubsan_array_ref_instrumented_p): Declare.
1798 (ubsan_maybe_instrument_array_ref): Declare.
1799
18002014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1801
1802 PR lto/61123
1803 * c.opt (fshort-enums): Add to LTO.
1804 * c.opt (fshort-wchar): Likewise.
1805
5c3d09f7
MP
18062014-06-16 Marek Polacek <polacek@redhat.com>
1807
1808 PR c/60439
1809 * c.opt (Wswitch-bool): Add Var.
1810
9cf32741
JJ
18112014-06-12 Jakub Jelinek <jakub@redhat.com>
1812
1813 PR middle-end/61486
1814 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1815 #pragma omp target teams or
1816 #pragma omp {,target }teams distribute simd.
1817
62984918
JM
18182014-06-12 Jason Merrill <jason@redhat.com>
1819
1820 * c.opt (Wabi=, fabi-compat-version): New.
1821 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1822 (c_common_post_options): Handle flag_abi_compat_version default.
1823 Disallow -fabi-compat-version=1.
1824 * c-common.h (abi_version_crosses): New.
1825
f961457f
JH
18262014-06-11 Jan Hubicka <hubicka@ucw.cz>
1827
adfac8df 1828 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1829 section names that are no longer trees.
1830
92d28cbb
JJ
18312014-06-10 Jakub Jelinek <jakub@redhat.com>
1832
1833 PR fortran/60928
1834 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1835 (omp_pragmas): ... back here.
1836
742938c9
MP
18372014-06-05 Marek Polacek <polacek@redhat.com>
1838
1839 PR c/49706
1840 * c-common.c (warn_logical_not_parentheses): New function.
1841 * c-common.h (warn_logical_not_parentheses): Declare.
1842 * c.opt (Wlogical-not-parentheses): New option.
1843
9d548dfb
MP
18442014-06-04 Marek Polacek <polacek@redhat.com>
1845
1846 PR c/30020
1847 * c-common.c (check_case_bounds): Add location parameter.
1848 Use it.
1849 (c_add_case_label): Pass loc to check_case_bounds.
1850
fedfecef
MP
18512014-06-03 Marek Polacek <polacek@redhat.com>
1852
1853 PR c/60439
1854 * c.opt (Wswitch-bool): New option.
1855
f6a7cffc
TS
18562014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1857
040d18b6
TS
1858 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1859 Remove prototypes.
1860 (record_types_used_by_current_var_decl): Move prototype to where
1861 it belongs.
1862
f6a7cffc
TS
1863 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1864 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1865 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1866
632f2871
RS
18672014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1868
1869 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1870 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1871 void_zero_node.
1872 * c-pretty-print.c (pp_c_void_constant): New function.
1873 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1874 (c_pretty_printer::expression): Handle VOID_CST.
1875 * cilk.c (extract_free_variables): Likewise.
1876 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1877 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1878
766090c2
TS
18792014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1880
1881 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1882 * c-pragma.c (push_alignment): Adjust.
1883 (handle_pragma_push_options): Likewise.
1884
661a0813
MP
18852014-05-09 Marek Polacek <polacek@redhat.com>
1886
1887 PR c/50459
1888 * c-common.c (check_user_alignment): Return -1 if alignment is error
1889 node.
1890 (handle_aligned_attribute): Don't call default_conversion on
1891 FUNCTION_DECLs.
1892 (handle_vector_size_attribute): Likewise.
1893 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1894 (handle_sentinel_attribute): Call default_conversion and allow even
1895 integral types as an argument.
1896
2793eeab
MP
18972014-05-08 Marek Polacek <polacek@redhat.com>
1898
1899 PR c/61053
1900 * c-common.c (min_align_of_type): New function factored out from...
1901 (c_sizeof_or_alignof_type): ...here.
1902 * c-common.h (min_align_of_type): Declare.
1903
f827930a
MP
19042014-05-08 Marek Polacek <polacek@redhat.com>
1905
1906 PR c/61077
1907 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1908 parameter type of main.
1909
ca49b74e
DD
19102014-05-07 DJ Delorie <dj@redhat.com>
1911
1912 * c-cppbuiltin.c (print_bits_of_hex): New.
1913 (builtin_define_type_minmax): Print values using hex so as not to
1914 require a pre-computed list of string values.
1915
1d60af08
KZ
19162014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1917 Mike Stump <mikestump@comcast.net>
1918 Richard Sandiford <rdsandiford@googlemail.com>
1919
1920 * c-ada-spec.c: Include wide-int.h.
1921 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1922 (dump_generic_ada_node): Use wide-int interfaces.
1923 * c-common.c: Include wide-int-print.h.
1924 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1925 (pointer_int_sum): Use wide-int interfaces.
1926 (c_common_nodes_and_builtins): Use make_int_cst.
1927 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1928 (handle_alloc_size_attribute): Use wide-int interfaces.
1929 (get_nonnull_operand): Likewise.
1930 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1931 * c-lex.c: Include wide-int.h.
1932 (narrowest_unsigned_type): Take a widest_int rather than two
1933 HOST_WIDE_INTs.
1934 (narrowest_signed_type): Likewise.
1935 (interpret_integer): Update accordingly. Use wide-int interfaces.
1936 (lex_charconst): Use wide-int interfaces.
1937 * c-pretty-print.c: Include wide-int.h.
1938 (pp_c_integer_constant): Use wide-int interfaces.
1939 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1940 INT_CST_LT_UNSIGNED.
1941
b15458be
RB
19422014-05-06 Richard Biener <rguenther@suse.de>
1943
1944 * c-opts.c (c_common_post_options): For -freestanding,
1945 -fno-hosted and -fno-builtin disable pattern recognition
1946 if not enabled explicitely.
1947
6577374e
MP
19482014-05-02 Marek Polacek <polacek@redhat.com>
1949
1950 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1951
d00887e8
MP
19522014-05-01 Marek Polacek <polacek@redhat.com>
1953
1954 PR c/43245
1955 * c.opt (Wdiscarded-qualifiers): Add.
1956
f8ed5150
MP
19572014-04-30 Marek Polacek <polacek@redhat.com>
1958
1959 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1960 INT_MIN / -1 sanitization only for integer types.
1961
45484dcf
MP
19622014-04-25 Marek Polacek <polacek@redhat.com>
1963
1964 PR c/18079
1965 * c-common.c (handle_noinline_attribute): Warn if the attribute
1966 conflicts with always_inline attribute.
1967 (handle_always_inline_attribute): Warn if the attribute conflicts
1968 with noinline attribute.
1969
38e514c0
MP
19702014-04-25 Marek Polacek <polacek@redhat.com>
1971
1972 PR c/60156
1973 * c-common.c (check_main_parameter_types): Warn about variadic main.
1974
44875f92
MS
19752014-04-24 Mike Stump <mikestump@comcast.net>
1976
1977 * c.opt (Wshadow-ivar): Default to on.
1978
dcaaa5a0
DP
19792014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1980
1981 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1982
c07d7c02
MP
19832014-04-23 Marek Polacek <polacek@redhat.com>
1984
1985 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1986
1c33c9b7
JJ
19872014-04-22 Jakub Jelinek <jakub@redhat.com>
1988
1989 PR sanitizer/60275
1990 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1991 if flag_sanitize_undefined_trap_on_error.
1992 (ubsan_instrument_division, ubsan_instrument_shift,
1993 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1994 if !flag_sanitize_recover.
1995
793c625f
MG
19962014-04-22 Marc Glisse <marc.glisse@inria.fr>
1997
1998 PR libstdc++/43622
1999 * c-common.c (registered_builtin_types): Make non-static.
2000 * c-common.h (registered_builtin_types): Declare.
2001
b0f1bf36
RB
20022014-04-14 Richard Biener <rguenther@suse.de>
2003 Marc Glisse <marc.glisse@inria.fr>
2004
2005 PR c/60819
2006 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2007 apply may-alias the scalar pointer type when applicable.
2008
3b07fa4a
IZ
20092014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2010
2011 PR middle-end/60467
2012 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2013 as possible argument for Cilk_spawn.
2014
cbbd2b1c
TB
20152014-04-11 Tobias Burnus <burnus@net-b.de>
2016
2017 PR c/60194
2018 * c.opt (Wformat-signedness): Add
2019 * c-format.c(check_format_types): Use it.
2020
6415bd5d
JM
20212014-04-11 Jason Merrill <jason@redhat.com>
2022
2023 PR c++/57926
2024 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2025 default_conversion for an array argument.
2026
6525783a
MP
20272014-04-08 Marek Polacek <polacek@redhat.com>
2028
2029 PR sanitizer/60745
2030 * c-ubsan.c: Include asan.h.
2031 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2032
880a467b
NS
20332014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2034
2035 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2036
7b59ff2d
MP
20372014-04-02 Marek Polacek <polacek@redhat.com>
2038
2039 * c-common.h (c_expand_expr): Remove declaration.
2040
8edbfaa6
JJ
20412014-03-28 Jakub Jelinek <jakub@redhat.com>
2042
2043 PR c++/60689
2044 * c-common.c (add_atomic_size_parameter): When creating new
2045 params vector, push the size argument first.
2046
07d72e1d
JJ
20472014-03-26 Jakub Jelinek <jakub@redhat.com>
2048
2049 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2050 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2051 ubsan_create_data callers.
2052
b35e0fa0
JJ
20532014-03-22 Jakub Jelinek <jakub@redhat.com>
2054
2055 PR debug/60603
2056 * c-opts.c (c_finish_options): Restore cb_file_change call to
2057 <built-in>.
2058
39a1ebb3
JJ
20592014-03-13 Jakub Jelinek <jakub@redhat.com>
2060
2061 PR middle-end/36282
2062 * c-pragma.c (apply_pragma_weak): Only look at
2063 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2064 DECL_ASSEMBLER_NAME_SET_P (decl).
2065 (maybe_apply_pending_pragma_weaks): Exit early if
2066 vec_safe_is_empty (pending_weaks) rather than only when
2067 !pending_weaks.
2068 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2069 set assembler name back to NULL afterwards.
2070
a07f6ed2
JM
20712014-03-11 Jason Merrill <jason@redhat.com>
2072
2073 * c.opt: Add -std=gnu++14.
2074
75b107f5
IB
20752014-03-11 Ian Bolton <ian.bolton@arm.com>
2076
2077 * c-opts.c (c_common_post_options): Don't override
2078 -ffp-contract=fast if unsafe-math-optimizations is on.
2079
f42c637e
PM
20802014-03-08 Paulo Matos <paulo@matos-sorge.com>
2081
2082 * c.opt: Enable LTO FE for fshort-double.
2083
70e24808
JM
20842014-03-07 Jason Merrill <jason@redhat.com>
2085
2086 * c.opt: Add -std=c++14.
2087
3af9c5e9
MP
20882014-03-06 Marek Polacek <polacek@redhat.com>
2089
2090 PR c/60197
2091 * cilk.c (contains_cilk_spawn_stmt): New function.
2092 (contains_cilk_spawn_stmt_walker): Likewise.
2093 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2094 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2095
b3bdf019
JJ
20962014-03-03 Jakub Jelinek <jakub@redhat.com>
2097
2098 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2099 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2100 even when flag_preprocess_only.
2101
ca7e759d
JM
21022014-02-26 Jason Merrill <jason@redhat.com>
2103
2104 PR c++/59231
2105 PR c++/11586
2106 * c-common.c (shorten_compare): Don't check
2107 c_inhibit_evaluation_warnings.
2108
28e41874
JJ
21092014-02-19 Jakub Jelinek <jakub@redhat.com>
2110
cca615af
JJ
2111 PR c/37743
2112 * c-common.c (c_common_nodes_and_builtins): When initializing
2113 c_uint{16,32,64}_type_node, also set corresponding
2114 uint{16,32,64}_type_node to the same value.
2115
28e41874
JJ
2116 PR c++/60267
2117 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2118 for PRAGMA_IVDEP if flag_preprocess_only.
2119
c2bf53a1
JJ
21202014-02-12 Jakub Jelinek <jakub@redhat.com>
2121
2122 PR c/60101
2123 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2124 if false, add ADD itself, rather than vice versa.
2125 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2126 copy. For SAVE_EXPR, only call merge_tlist once.
2127
8fcbce72
JJ
21282014-02-08 Jakub Jelinek <jakub@redhat.com>
2129
2130 PR middle-end/60092
2131 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2132 and tree_to_uhwi.
2133 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2134 functions.
2135 (c_common_attribute_table): Add alloc_align and assume_aligned
2136 attributes.
2137
0a756a3f
MP
21382014-02-06 Marek Polacek <polacek@redhat.com>
2139
2140 PR c/60087
2141 * c-common.c (warn_for_sign_compare): Call warning_at with location
2142 instead of warning.
2143
7ec4847a
MP
21442014-02-05 Marek Polacek <polacek@redhat.com>
2145
2146 PR c/53123
2147 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2148 statement.
2149
66f20604
MP
21502014-02-04 Marek Polacek <polacek@redhat.com>
2151
2152 PR c/60036
2153 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2154 SAVE_EXPR.
2155
5d77fb19
MG
21562014-02-03 Marc Glisse <marc.glisse@inria.fr>
2157
2158 PR c++/53017
2159 PR c++/59211
2160 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2161 handle_vector_size_attribute, handle_nonnull_attribute): Call
2162 default_conversion on the attribute argument.
2163 (handle_nonnull_attribute): Increment the argument number.
2164
81e5eca8
MP
21652014-01-31 Marek Polacek <polacek@redhat.com>
2166
2167 PR c/59963
2168 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2169 build_function_call_vec.
2170 (resolve_overloaded_builtin): Likewise.
2171 * c-common.h (build_function_call_vec): Adjust declaration.
2172
68fca595
MP
21732014-01-30 Marek Polacek <polacek@redhat.com>
2174
2175 PR c/59940
2176 * c-common.h (unsafe_conversion_p): Adjust declaration.
2177 (warnings_for_convert_and_check): Likewise.
2178 (convert_and_check): Likewise.
2179 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2180 expansion_point_location_if_in_system_header on it.
2181 (warnings_for_convert_and_check): Add location parameter. Call
2182 expansion_point_location_if_in_system_header on it. Use it.
2183 (convert_and_check): Add location parameter. Use it.
2184 (conversion_warning): Likewise.
2185 (c_add_case_label): Adjust convert_and_check calls.
2186 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2187
b72271b9
BI
21882014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2189
2190 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2191 flag_cilkplus.
2192 * c-pragma.c (init_pragma): Likewise.
2193 * c.opt: Likewise.
2194
393e8e8b
MP
21952014-01-23 Marek Polacek <polacek@redhat.com>
2196
2197 PR c/59846
2198 * c-common.c (shorten_compare): Add location_t parameter.
2199 * c-common.h (shorten_binary_op): Adjust declaration.
2200
f04dda30
MP
22012014-01-23 Marek Polacek <polacek@redhat.com>
2202
2203 PR c/58346
2204 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2205 * c-common.h: Declare it.
2206
621955cb
EB
22072014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2208
2209 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2210 * c-ada-spec.c (dump_ads): Likewise.
2211 (cpp_check): Likewise.
2212 (dump_ada_specs): Likewise.
2213
22142014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2215
2216 PR c++/49718
2217 * c-common.c (handle_no_instrument_function_attribute): Allow
2218 no_instrument_function attribute in class member
2219 definition/declaration.
2220
241f845a
JJ
22212014-01-15 Jakub Jelinek <jakub@redhat.com>
2222
2223 PR c/58943
2224 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2225 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2226 being COMPOUND_EXPR.
2227 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2228 operand a SAVE_EXPR and second MODIFY_EXPR.
2229
e83b8e2e
JJ
22302014-01-09 Jakub Jelinek <jakub@redhat.com>
2231
2232 PR target/58115
2233 * c-pch.c (c_common_write_pch): Call
2234 prepare_target_option_nodes_for_pch.
2235
23a5b65a
RS
22362014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2237
2238 Update copyright years
2239
f9030485
RS
22402014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2241
2242 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2243 the copyright notice.
2244
f2aa696b
EB
22452013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2246
2247 * c-ada-spec.c (print_constructor): New function.
2248 (print_destructor): Retrieve the origin of the destructor.
2249 (print_ada_declaration): Revamp handling of constructors/destructors.
2250
1f26ac87
JM
22512013-12-23 Stuart Hastings <stuart@apple.com>
2252 Bill Maddox <maddox@google.com>
2253 Jason Merrill <jason@redhat.com>
2254
2255 * c.opt: Add -fdeclone-ctor-dtor.
2256 * c-opts.c (c_common_post_options): Default to on iff -Os.
2257
41958c28
BI
22582013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2259
2260 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2261 attribute.
2262 * c-pragma.h (enum pragma_cilk_clause): Remove.
2263 (enum pragma_omp_clause): Added the following fields:
2264 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2265 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2266 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2267 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2268 PRAGMA_CILK_CLAUSE_UNIFORM.
2269
b1726d6c 2270
12893402
BI
22712013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2272
2273 * cilk.c (cilk_outline): Made this function non-static.
2274 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2275 (create_cilk_wrapper): Added a new parameter: a function pointer.
2276 (c_install_body_w_frame_cleanup): Remove
2277 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2278 * c-common.h (cilk_outline): New prototype.
2279 (gimplify_cilk_spawn): Removed two parameters.
2280 (cilk_install_body_with_frame_cleanup): New prototype.
2281 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2282 CILK_SPAWN_STMT case.
2283
085b42ed
BS
22842013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2285
2ce064c3
BS
2286 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2287
085b42ed
BS
2288 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2289 (int_array_type_node): Remove.
2290 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2291
9e36c9ed
MP
22922013-12-05 Marek Polacek <polacek@redhat.com>
2293
2294 PR c/52023
2295 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2296 [ADJUST_FIELD_ALIGN].
2297
296674db
JM
22982013-12-04 Joseph Myers <joseph@codesourcery.com>
2299
2300 PR c/52023
2301 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2302 and check field alignment if set.
2303 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2304 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2305
b1726d6c 23062013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
2307 Marek Polacek <polacek@redhat.com>
2308
2309 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2310 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2311
d7947e19
L
23122013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2313
2314 PR c/59309
2315 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2316 arguments.
2317
fad7652e
JJ
23182013-11-29 Jakub Jelinek <jakub@redhat.com>
2319
2320 PR c/59280
2321 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2322 goto invalid. If it is error_mark_node, don't issue further
2323 diagnostics.
2324
8b5e1202
SO
23252013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2326
2327 * c.opt (Wopenmp-simd): New.
2328
0a508bb6
JJ
23292013-11-22 Jakub Jelinek <jakub@redhat.com>
2330
2331 * c-ubsan.h (ubsan_instrument_return): New prototype.
2332 * c-ubsan.c (ubsan_instrument_return): New function.
2333
2fb9a547
AM
23342013-11-22 Andrew MacLeod <amacleod@redhat.com>
2335
2336 * c-common.c: Add required include files from gimple.h.
2337 * c-gimplify.c: Likewise
2338 * cilk.c: Likewise
2339
8400e75e
DM
23402013-11-22 David Malcolm <dmalcolm@redhat.com>
2341
2342 * c-common.c (unsafe_conversion_p): Remove use of
2343 EXPR_LOC_OR_HERE macro.
2344 (conversion_warning): Likewise.
2345 (warnings_for_convert_and_check): Likewise.
2346 (warn_for_collisions_1): Likewise.
2347 (shorten_compare): Likewise, and remove use of in_system_header
2348 macro, using the location from the former.
2349 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2350 (cb_def_pragma): Remove use of in_system_header macro.
2351 (lex_string): Likewise.
2352 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2353
eb1ce453
KZ
23542013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2355 Mike Stump <mikestump@comcast.net>
2356 Richard Sandiford <rdsandiford@googlemail.com>
2357
2358 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2359 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2360 tree_fits_shwi_p or tree_fits_uhwi_p.
2361 (dump_generic_ada_node): Likewise.
2362 * c-format.c (check_format_arg): Likewise.
2363 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2364
6b3b8c27
KZ
23652013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2366
2367 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2368
49b0aa18
JC
23692013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2370
2371 PR c/53001
2372 * c-common.c (unsafe_conversion_p): Make this function
2373 return an enumeration with more detail.
2374 (conversion_warning): Use the new return type of
2375 unsafe_conversion_p to separately warn either about conversions
2376 that lower floating point number precision or about the other
2377 kinds of conversions.
2378 * c-common.h (enum conversion_safety): New enumeration.
2379 (unsafe_conversion_p): switching return type to
2380 conversion_safety enumeration.
2381 * c.opt: Adding new warning -Wfloat-conversion and
2382 enabling it with -Wconversion.
2383
b826515a
BS
23842013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2385
2386 * c-opts.c: Include plugin.h.
2387 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2388
b9a55b13
MP
23892013-11-19 Marek Polacek <polacek@redhat.com>
2390
2391 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2392 call.
2393 (ubsan_instrument_shift): Likewise.
2394 (ubsan_instrument_vla): Likewise.
2395
7d362f6c
RS
23962013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2397
2398 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2399 cast to unsigned type.
2400
386b1f1f
RS
24012013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2402
2403 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2404 tree_low_cst.
2405 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2406 rather than tree_low_cst.
2407
ae7e9ddd
RS
24082013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2409
2410 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2411 tree_to_uhwi throughout.
2412
9439e9a1
RS
24132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2414
2415 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2416 tree_low_cst (..., 0) with tree_to_shwi throughout.
2417
cc269bb6
RS
24182013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2419
2420 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2421 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2422
9541ffee
RS
24232013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2424
2425 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2426 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2427
c02065fc
AH
24282013-11-15 Aldy Hernandez <aldyh@redhat.com>
2429
2430 * c-cilkplus.c: New file.
2431 * c-common.c (readonly_error): Add location argument.
2432 * c-common.h (readonly_error): Same.
2433 (c_finish_cilk_clauses): Protoize.
2434 (c_check_cilk_loop): Same.
2435 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2436 Do not fail on error_mark_node.
2437 Abstract increment canonicalization to here...
2438 (c_omp_for_incr_canonicalize_ptr): New.
2439 c-pragma.c (init_pragma): Register "simd" pragma.
2440 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2441 (enum pragma_cilk_clause): New.
2442
9cc65f15
RS
24432013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2444
2445 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2446 wchar_type and host_integerp checks.
2447
18f429e2
AM
24482013-11-14 Andrew MacLeod <amacleod@redhat.com>
2449
2450 * c-common.c: Likewise.
2451 * c-gimplify.c: Likewise.
2452 * cilk.c: Likewise.
2453
d8a2d370
DN
24542013-11-14 Diego Novillo <dnovillo@google.com>
2455
2456 * c-common.c: Include fold-const.h.
2457 Include stor-layout.h.
2458 Include calls.h.
2459 Include stringpool.h.
2460 Include attribs.h.
2461 Include varasm.h.
2462 Include trans-mem.h.
2463 * c-cppbuiltin.c: Include stor-layout.h.
2464 Include stringpool.h.
2465 * c-format.c: Include stringpool.h.
2466 * c-lex.c: Include stringpool.h.
2467 Include stor-layout.h.
2468 * c-pragma.c: Include stringpool.h.
2469 Include attribs.h.
2470 Include varasm.h.
2471 Include gcc-symtab.h.
2472 * c-pretty-print.c: Include stor-layout.h.
2473 Include attribs.h.
2474 * cilk.c: Include stringpool.h.
2475 Include calls.h.
2476
38b7bc7f
JM
24772013-11-13 Joseph Myers <joseph@codesourcery.com>
2478
2479 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2480 * c-common.c (c_common_reswords): Add __auto_type.
2481 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2482
45b0be94
AM
24832013-11-12 Andrew MacLeod <amacleod@redhat.com>
2484
18f429e2
AM
2485 * c-common.c: Include gimplify.h.
2486 * c-gimplify.c: Likewise.
2487 * cilk.c: Likewise.
2488 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2489 * c-ubsan.c: Don't include gimple.h.
45b0be94 2490
582d9b50
JM
24912013-11-12 Joseph Myers <joseph@codesourcery.com>
2492
2493 * c-common.c (c_common_reswords): Add _Thread_local.
2494
6b28e197
JM
24952013-11-09 Joseph Myers <joseph@codesourcery.com>
2496
2497 * c-common.c (atomic_size_supported_p): New function.
2498 (resolve_overloaded_atomic_exchange)
2499 (resolve_overloaded_atomic_compare_exchange)
2500 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2501 Use it instead of comparing size with a local list of sizes.
2502
267bac10
JM
25032013-11-07 Andrew MacLeod <amacleod@redhat.com>
2504 Joseph Myers <joseph@codesourcery.com>
2505
2506 * c-common.h (enum rid): Add RID_ATOMIC.
2507 * c-common.c (c_common_reswords): Add _Atomic.
2508 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2509 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2510 * c-format.c (check_format_types): Check for extra _Atomic
2511 qualifiers in format argument.
2512 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2513 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2514
5157b91e
TB
25152013-11-06 Tobias Burnus <burnus@net-b.de>
2516
2517 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2518
6dbe0958
JM
25192013-11-06 Joseph Myers <joseph@codesourcery.com>
2520
2521 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2522 standards modes.
2523 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2524 to mean lack of IEEE 754 support.
2525
e8ff5196
TB
25262013-11-05 Tobias Burnus <burnus@net-b.de>
2527
2528 * c.opt (-Wdate-time): New option
2529 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2530
254a0760
JM
25312013-11-05 Joseph Myers <joseph@codesourcery.com>
2532
2533 * c-cppbuiltin.c (cpp_iec_559_value): Test
2534 flag_excess_precision_cmdline not flag_excess_precision.
2535
6d7f7e0a
TB
25362013-11-05 Tobias Burnus <burnus@net-b.de>
2537
2538 * c.opt (fopenmp-simd): New option.
2539 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2540 (omp_pragmas): ... this new struct.
2541 (c_pp_lookup_pragma): Also walk omp_pragmas.
2542 (init_pragma): Init pragmas for -fopenmp-simd.
2543
55a7f02f
MP
25442013-11-04 Marek Polacek <polacek@redhat.com>
2545
2546 PR c++/58979
2547 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2548
9193fb05
JM
25492013-11-04 Joseph Myers <joseph@codesourcery.com>
2550
2551 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2552 New functions.
2553 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2554
94159ecf
EB
25552013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2556
2557 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2558 (dump_ada_specs): Adjust prototype of second callback.
2559 * c-ada-spec.c (cpp_check): New global variable.
2560 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2561 (print_generic_ada_decl): Likewise.
2562 (has_static_fields): Change return type to bool and add guard.
2563 (has_nontrivial_methods): New predicate.
2564 (is_tagged_type): Change return type to bool.
2565 (separate_class_package): Call has_nontrivial_methods.
2566 (pp_ada_tree_identifier): Minor tweaks.
2567 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2568 (dump_ada_array_domains): Likewise.
2569 (dump_ada_array_type): Likewise.
2570 (dump_template_types): Remove cpp_check parameter and do not pass it to
2571 dump_generic_ada_node.
2572 (dump_ada_template): Likewise.
2573 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2574 recursively.
2575 (print_ada_methods): Change return type to integer. Remove cpp_check
2576 parameter and do not pass it down.
2577 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2578 dump_generic_ada_node.
2579 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2580 accessing methods.
2581 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2582 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2583 value of print_ada_methods.
2584 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2585 Set cpp_check to it before invoking dump_ada_nodes.
2586 (dump_ada_specs): Likewise.
2587
b906f4ca
MP
25882013-11-03 Marek Polacek <polacek@redhat.com>
2589
2590 * c-ubsan.c: Don't include hash-table.h.
2591 (ubsan_instrument_vla): New function.
2592 * c-ubsan.h: Declare it.
2593
5e20cdc9
DM
25942013-10-31 David Malcolm <dmalcolm@redhat.com>
2595
2596 Automated part of renaming of symtab_node_base to symtab_node.
2597
2598 Patch autogenerated by rename_symtab.py from
2599 https://github.com/davidmalcolm/gcc-refactoring-scripts
2600 revision 58bb219cc090b2f4516a9297d868c245495ee622
2601
2602 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2603 symtab_node_base to symtab_node.
2604
7057e645
ESR
26052013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2606
2607 Implement C++14 digit separators.
2608 * c-lex.c (interpret_float): Remove digit separators from scratch string
2609 before building real literal.
2610
193ea7bc
JJ
26112013-10-30 Jakub Jelinek <jakub@redhat.com>
2612
2613 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2614
939b37da
BI
26152013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2616
2617 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2618 fields.
2619 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2620 enabled.
2621 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2622 (insert_cilk_frame): New prototype.
2623 (cilk_init_builtins): Likewise.
2624 (gimplify_cilk_spawn): Likewise.
2625 (c_cilk_install_body_w_frame_cleanup): Likewise.
2626 (cilk_detect_spawn_and_unwrap): Likewise.
2627 (cilk_set_spawn_marker): Likewise.
2628 (build_cilk_sync): Likewise.
2629 (build_cilk_spawn): Likewise.
2630 * cilk.c: New file.
2631
67348ccc
DM
26322013-10-29 David Malcolm <dmalcolm@redhat.com>
2633
2634 Patch autogenerated by refactor_symtab.py from
2635 https://github.com/davidmalcolm/gcc-refactoring-scripts
2636 revision 58bb219cc090b2f4516a9297d868c245495ee622
2637
2638 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2639 to a true class hierarchy.
2640 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2641
d570872d
RS
26422013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2643
2644 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2645
98906124
JL
26462013-10-26 Jeff Law <law@redhat.com>
2647
adfac8df
JJ
2648 * c-common.c (c_define_builtins): Remove mudflap support.
2649 * c.opt: Ignore and warn for mudflap options.
98906124 2650
d73749df 26512013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2652
2653 PR other/33426
2654 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2655 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2656
3f04b1bb
JM
26572013-10-23 Jason Merrill <jason@redhat.com>
2658
2659 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2660
acf0174b
JJ
26612013-10-11 Jakub Jelinek <jakub@redhat.com>
2662
acd15a28
JJ
2663 * c-common.h (omp_clause_mask::operator !=): New method.
2664 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2665 instead of if (mask & something) tests everywhere.
2666
acf0174b
JJ
2667 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2668 201307 instead of 201107.
2669 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2670 (c_common_attribute_table): Add "omp declare target" and
2671 "omp declare simd" attributes.
2672 (handle_omp_declare_target_attribute,
2673 handle_omp_declare_simd_attribute): New functions.
2674 * c-omp.c: Include c-pragma.h.
2675 (c_finish_omp_taskgroup): New function.
2676 (c_finish_omp_atomic): Add swapped argument, if true,
2677 build the operation first with rhs, lhs arguments and use NOP_EXPR
2678 build_modify_expr.
2679 (c_finish_omp_for): Add code argument, pass it down to make_code.
2680 (c_omp_split_clauses): New function.
2681 (c_split_parallel_clauses): Removed.
2682 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2683 c_omp_declare_simd_clauses_to_decls): New functions.
2684 * c-common.h (omp_clause_mask): New type.
2685 (OMP_CLAUSE_MASK_1): Define.
2686 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2687 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2688 omp_clause_mask::operator |, omp_clause_mask::operator &,
2689 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2690 omp_clause_mask::operator ==): New methods.
2691 (enum c_omp_clause_split): New.
2692 (c_finish_omp_taskgroup): New prototype.
2693 (c_finish_omp_atomic): Add swapped argument.
2694 (c_finish_omp_for): Add code argument.
2695 (c_omp_split_clauses): New prototype.
2696 (c_split_parallel_clauses): Removed.
2697 (c_omp_declare_simd_clauses_to_numbers,
2698 c_omp_declare_simd_clauses_to_decls): New prototypes.
2699 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2700 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2701 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2702 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2703 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2704 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2705 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2706 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2707 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2708 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2709 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2710 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2711 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2712 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2713 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2714 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2715 PRAGMA_OMP_CLAUSE_UNIFORM.
2716
826cacfe
MG
27172013-10-09 Marc Glisse <marc.glisse@inria.fr>
2718
2719 PR tree-optimization/20318
2720 * c-common.c (handle_returns_nonnull_attribute): New function.
2721 (c_common_attribute_table): Add returns_nonnull.
2722
2284b034
MG
27232013-10-03 Marc Glisse <marc.glisse@inria.fr>
2724
2725 PR c++/19476
2726 * c.opt (fcheck-new): Move to common.opt.
2727
b56e9788
MP
27282013-09-25 Marek Polacek <polacek@redhat.com>
2729 Jakub Jelinek <jakub@redhat.com>
2730
2731 PR sanitizer/58413
2732 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2733 an expression if we can prove it is correct.
2734 (ubsan_instrument_division): Likewise. Remove unnecessary
2735 check.
2736
ce6923c5
MP
27372013-09-18 Marek Polacek <polacek@redhat.com>
2738
2739 PR sanitizer/58411
2740 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2741 Declare it.
2742 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2743
fb5610fb
IS
27442013-09-14 Iain Sandoe <iain@codesourcery.com>
2745
2746 PR target/48094
2747 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2748 fobjc-gc, freplace-objc-classes): Accept for LTO.
2749
88b0e79e
JC
27502013-09-13 Jacek Caban <jacek@codeweavers.com>
2751
2752 * c-target.def: New hook
2753
c9b0866a
PC
27542013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2755
2756 PR c++/43452
2757 * c.opt (Wdelete-incomplete): Add.
2758
0af94e6f
JR
27592013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2760
2761 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2762 (vector_types_compatible_elements_p): New function.
2763 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2764 declaration.
2765 (vector_types_compatible_elements_p): Declare.
2766
7c26172c
GDR
27672013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2768
2769 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2770 a virtual member function.
2771 (pp_simple_type_specifier): Remove.
2772 (pp_c_type_specifier): Likewise.
2773 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2774 Rename from pp_c_type_specifier. Adjust.
2775 (c_pretty_printer::c_pretty_printer): Do not assign to
2776 simple_type_specifier.
2777
20059c8b
GDR
27782013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2779
2780 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2781 member function.
2782 (c_pretty_printer::storage_class_specifier): Likewise.
2783 (c_pretty_printer::initializer): Likewise.
2784 (pp_declaration): Remove.
2785 (pp_declaration_specifiers): Likewise.
2786 (pp_abstract_declarator): Likewise.
2787 (pp_declarator): Likewise.
2788 (pp_type_id): Likewise.
2789 (pp_statement): Likewise.
2790 (pp_constant): Likewise.
2791 (pp_id_expression): Likewise.
2792 (pp_primary_expression): Likewise.
2793 (pp_unary_expression): Likewise.
2794 (pp_multiplicative_expression): Likewise.
2795 (pp_conditional_expression): Likewise.
2796 (pp_assignment_expression): Likewise.
2797 (pp_expression): Likewise.
2798 (pp_c_type_id): Likewise.
2799 (pp_c_storage_class_specifier): Likewise.
2800 * c-pretty-print.c (pp_c_type_cast): Tidy.
2801 (pp_c_pointer): Likewise.
2802 (pp_c_type_specifier): Likewise.
2803 (pp_c_parameter_type_list): Likewise.
2804 (pp_c_function_definition): Likewise.
2805 (pp_c_init_declarator): Likewise.
2806 (pp_c_initializer_list): Likewise.
2807 (pp_c_constructor_elts): Likewise.
2808 (c_pretty_printer::direct_abstract_declarator): Likewise.
2809 (c_pretty_printer::declaration_specifiers): Likewise.
2810 (c_pretty_printer::primary_expression): Likewise.
2811 (c_pretty_printer::postfix_expression): Likewise.
2812 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2813 (c_pretty_printer::storage_class_specifier): Rename from
2814 pp_c_storage_class_specifier.
2815 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2816 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2817 storage_class_specifier, initializer, offset_list, flags.
2818
de5a5fa1
MP
28192013-08-30 Marek Polacek <polacek@redhat.com>
2820
2821 * c-ubsan.c: New file.
2822 * c-ubsan.h: New file.
2823
8f0e4d72
GDR
28242013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2825
2826 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2827 member function.
2828 (c_pretty_printer::declaration_specifiers): Likewise.
2829 (c_pretty_printer::declarator): Likewise.
2830 (c_pretty_printer::abstract_declarator): Likewise.
2831 (c_pretty_printer::direct_abstract_declarator): Likewise.
2832 (c_pretty_printer::direct_declarator): Likewise.
2833 (c_pretty_printer::function_specifier): Likewise.
2834 (pp_declaration): Adjust.
2835 (pp_declaration_specifiers): Likewise.
2836 (pp_abstract_declarator): Likewise.
2837 (pp_direct_declarator): Likewise.
2838 (pp_function_specifier): Likewise.
2839 (pp_direct_abstract_declarator): Remove as unused.
2840 (pp_c_declaration): Remove.
2841 (pp_c_declaration_specifiers): Likewise.
2842 (pp_c_declarator): Likewise.
2843 (pp_c_direct_declarator): Likewise.
2844 (pp_c_function_specifier): Likewise.
2845 (pp_c_direct_abstract_declarator): Likewise.
2846 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2847 from pp_c_abstract_declarator. Adjust.
2848 (c_pretty_printer::direct_abstract_declarator): Rename from
2849 pp_c_direct_abstract_declarator. Adjust.
2850 (c_pretty_printer::function_specifier): Rename from
2851 pp_c_function_specifier. Adjust.
2852 (c_pretty_printer::declaration_specifiers): Rename from
2853 pp_c_declaration_specifiers. Adjust.
2854 (c_pretty_printer::direct_declarator): Rename from
2855 pp_c_direct_declarator. Adjust.
2856 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2857 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2858 (c_pretty_printer::c_pretty_printer): Do not assign to
2859 declaration, declaration_specifiers, declarator,
2860 direct_declarator, direct_abstract_declarator, function_specifier.
2861
00d34d3a
GDR
28622013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2863
2864 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2865 virtual member function.
2866 (c_pretty_printer::multiplicative_expression): Likewise.
2867 (c_pretty_printer::conditional_expression): Likewise.
2868 (c_pretty_printer::assignment_expression): Likewise.
2869 (c_pretty_printer::expression): Likewise.
2870 (pp_unary_expression): Adjust.
2871 (pp_multiplicative_expression): Likewise.
2872 (pp_assignment_expression): Likewise.
2873 (pp_conditional_expression): Likewise.
2874 (pp_expression): Likewise.
2875 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2876 from pp_c_unary_expression. Adjust.
2877 (c_pretty_printer::multiplicative_expression): Rename from
2878 pp_c_multiplicative_expression. Adjust.
2879 (c_pretty_printer::conditional_expression): Rename from
2880 pp_c_conditional_expression. Adjust.
2881 (c_pretty_printer::assignment_expression): Rename from
2882 pp_c_assignment_expression. Adjust.
2883 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2884 (c_pretty_printer::c_pretty_printer): Do not assign to
2885 unary_expression, multiplicative_expression,
2886 conditional_expression, expression.
2887
fb22178f
GDR
28882013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2889
2890 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2891 virtual member function.
2892 (pp_postfix_expression): Adjust.
2893 (pp_c_postfix_expression): Remove.
2894 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2895 from pp_c_postfix_expression. Adjust.
2896 (c_pretty_printer::c_pretty_printer): Do not assign to
2897 postfix_expression.
2898
7ecc2600
GDR
28992013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2900
2901 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2902 virtua member function.
2903 (pp_primary_expression): Adjust.
2904 (pp_c_primary_expression): Remove.
2905 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2906 from pp_c_primary_expression. Adjust.
2907 (pp_c_initializer_list): Use pp_primary_expression.
2908 (c_pretty_printer::c_pretty_printer): Do not assign to
2909 primary_expression.
2910
0691175f
GDR
29112013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2912
2913 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2914 * c-pretty-print.c (M_): Remove.
2915 (c_pretty_printer::translate_string): Define.
2916 (pp_c_type_specifier): Use it.
2917 (pp_c_primary_expression): Likewise.
2918 (pp_c_expression): Likewise.
2919
66dfe4c4
GDR
29202013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2921
2922 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2923 virtual function.
2924 (pp_c_id_expression): Remove.
2925 (pp_id_expression): Adjust.
2926 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2927 pp_c_id_expression. Adjust.
2928 (pp_c_postfix_expression): Use pp_id_expression.
2929 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2930
ca43e9d5
GDR
29312013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2932
2933 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2934 member function.
2935 (pp_constant): Adjust.
2936 (pp_c_constant): Remove.
2937 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2938 pp_c_constant. Adjust.
2939 (pp_c_constant)
2940 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2941 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2942
da6ca2b5
GDR
29432013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2944
2945 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2946 (c_pretty_printer::c_pretty_printer): Declare.
2947 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2948 c_pretty_printer_init. Adjust.
2949 (print_c_tree): Do not call c_pretty_printer_init.
2950 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2951
65a372f4
AC
29522013-08-09 Arnaud Charlet <charlet@adacore.com>
2953
2954 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2955
fd9b0f32
PC
29562013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2957
2958 PR c++/58080
2959 * c-common.c (pointer_int_sum): Add bool parameter.
2960 * c-common.h (pointer_int_sum): Adjust declaration.
2961
e0aec1e9
GDR
29622013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2963
2964 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2965 c_pretty_printer variable.
2966
b066401f
GDR
29672013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2968
2969 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2970 (pp_base): Remove.
2971 (pp_c_base): Likewise. Adjust users.
2972 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2973 (pp_c_whitespace): Do not call pp_base.
2974 (pp_c_left_paren): Likewise.
2975 (pp_c_right_paren): Likewise.
2976 (pp_c_left_brace): Likewise.
2977 (pp_c_right_brace): Likewise.
2978 (pp_c_left_bracket): Likewise.
2979 (pp_c_right_bracket): Likewise.
2980 (pp_c_dot): Likewise.
2981 (pp_c_ampersand): Likewise.
2982 (pp_c_star): Likewise.
2983 (pp_c_arrow): Likewise.
2984 (pp_c_semicolon): Likewise.
2985 (pp_c_complement): Likewise.
2986 (pp_c_exclamation): Likewise.
2987 (pp_c_direct_declarator): Likewise.
2988 (pp_c_ws_string): Likewise.
2989 (pp_c_identifier): Likewise.
2990 (pp_c_statement): Likewise.
2991 (print_c_tree): Likewise.
2992
65e5a578
ESR
29932013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2994
2995 PR c++/58072
2996 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2997 provide useful error strings.
2998
137a1a27
GDR
29992013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3000
3001 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3002 printer functions instead of pp_string or operators and punctuators.
3003 (dump_generic_ada_node): Likewise.
3004 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3005 (pp_c_relational_expression): Likewise.
3006 (pp_c_logical_or_expression): Likewise.
3007
07838b13
GDR
30082013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3009
3010 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3011 functions instead of pp_character.
3012 (pp_ada_tree_identifier): Likewise.
3013 (dump_ada_double_name): Likewise.
3014 (dump_ada_function_declaration): Likewise.
3015 (dump_ada_array_domains): Likewise.
3016 (dump_template_types): Likewise.
3017 (dump_generic_ada_node): Likewise.
3018 (print_ada_declaration): Likewise.
3019 (print_ada_struct_decl): Likewise.
3020 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3021
433cc7b0
TT
30222013-07-23 Tom Tromey <tromey@redhat.com>
3023
3024 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3025 * c-common.c (c_common_reswords): Add _Generic.
3026
688010ba
OB
30272013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3028
3029 * c-common.c: Fix typos.
3030 * c-common.h: Likewise.
3031
2a99e5e6
LL
30322013-07-13 Lubos Lunak <l.lunak@suse.cz>
3033
3034 PR c++/55203
3035 * c-common.c (c_common_attribute_table): Add warn_unused.
3036 (handle_warn_unused_attribute): New.
3037
c26302d5
JJ
30382013-07-10 Jakub Jelinek <jakub@redhat.com>
3039
3040 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3041 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3042
dfeadaa0
PC
30432013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3044
3045 PR c++/57869
3046 * c.opt: Add Wconditionally-supported.
3047
6a2fa4b2
GS
30482013-07-08 Graham Stott <graham.stott@btinternet.com>
3049
adfac8df 3050 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3051 unused variables l_length and l_node.
3052
ecdbd01a 30532013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3054
3055 PR c/57821
3056 * c-common.c (complete_array_type): Delay folding first index
3057 like other indices. When folding, check for index overflow.
3058
bedc293e
MG
30592013-06-27 Marc Glisse <marc.glisse@inria.fr>
3060
3061 PR c++/57509
3062 * c-common.h (c_build_vec_perm_expr): New complain argument.
3063 * c-common.c (c_build_vec_perm_expr): Likewise.
3064 Use save_expr also in C++.
3065
604b2bfc
GDR
30662013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3067
3068 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3069 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3070 * c-opts.c (c_common_post_options): Likewise.
3071
dfeadaa0 30722013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3073
3074 * array-notation-common.c (length_mismatch_in_expr): Changed the
3075 parameter type's from a dynamic array to a vec_tree. Also removed
3076 the size parameters.
3077 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3078 the change above.
3079
2ce86d2e
BI
30802013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3081
3082 * c-common.h (struct cilkplus_an_parts): New structure.
3083 (struct cilkplus_an_loop_parts): Likewise.
3084 (cilkplus_extract_an_triplets): New prototype.
3085 (fix_sec_implicit_args): Likewise.
3086 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3087 (fix_sec_implicit_args): Likewise.
604b2bfc 3088
07a6825b
BI
30892013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3090
3091 * array-notation-common.c (find_inv_trees): Removed an unwanted
3092 typecasting.
3093 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3094 enum rid to enum tree_code.
3095
08346abd
JH
30962013-06-11 Jan Hubicka <jh@suse.cz>
3097
3098 * c-common.c (handle_alias_ifunc_attribute): Do not set
3099 DECL_EXTERNAL for weakref variables.
3100 * c-pragma.c (handle_pragma_weak): Make sure aliases
3101 are not declared as external.
3102
d60f1706
BI
31032013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3104
3105 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3106 function from c/c-array-notation.c.
3107 (is_cilkplus_reduce_builtin): Likewise.
3108 (find_rank): Likewise.
3109 (extract_array_notation_exprs): Likewise.
3110 (replace_array_notations): Likewise.
3111 (find_inv_trees): Likewise.
3112 (replace_inv_trees): Likewise.
3113 (contains_array_notation_expr): Likewise.
3114 (find_correct_array_notation_type): Likewise.
3115 * c-common.h (struct inv_list): Moved this struct from the file
3116 c/c-array-notation.c and added a new field called additional tcodes.
3117 (length_mismatch_in_expr_p): New prototype.
3118 (is_cilkplus_reduce_builtin): Likewise.
3119 (find_rank): Likewise.
3120 (extract_array_notation_exprs): Likewise.
3121 (replace_array_notation): Likewise.
3122 (find_inv_trees): Likewise.
3123 (replace_inv_trees): Likewise.
3124 (find_correct_array_notation_type): Likewise.
dfeadaa0 3125
36536d79
BI
31262013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3127
3128 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3129 function array_notation_init_builtins is called.
3130 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3131 * c-common.def (ARRAY_NOTATION_REF): New tree.
3132 * c-common.h (build_array_notation_expr): New function declaration.
3133 (build_array_notation_ref): Likewise.
3134 (extract_sec_implicit_index_arg): New extern declaration.
3135 (is_sec_implicit_index_fn): Likewise.
3136 (ARRAY_NOTATION_CHECK): New define.
3137 (ARRAY_NOTATION_ARRAY): Likewise.
3138 (ARRAY_NOTATION_START): Likewise.
3139 (ARRAY_NOTATION_LENGTH): Likewise.
3140 (ARRAY_NOTATION_STRIDE): Likewise.
3141 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3142 ARRAY_NOTATION_REF.
3143 (pp_c_expression): Likewise.
3144 * c.opt (flag_enable_cilkplus): New flag.
3145 * array-notation-common.c: New file.
3146
f7716d57
JJ
31472013-05-14 Jakub Jelinek <jakub@redhat.com>
3148
3149 PR c++/57274
3150 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3151
a5e0cd1d
MG
31522013-05-10 Marc Glisse <marc.glisse@inria.fr>
3153
3154 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3155 vectors.
3156
f6bc1c4a
HS
31572013-05-07 Han Shen <shenhan@google.com>
3158
3159 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3160
3f12f6e9
SKS
31612013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3162
3163 * c-common.c (check_user_alignment): Emit error for negative values.
3164
61949153
PC
31652013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3166
3167 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3168
e93e18e9
PC
31692013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3170
3171 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3172 __GXX_EXPERIMENTAL_CXX1Y__.
3173
44d90fe1
PC
31742013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3175 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3176
3177 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3178 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3179 to simply use OPT_Wpointer_arith.
3180 (c_sizeof_or_alignof_type): Likewise.
3181
13f39b2e
PC
31822013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3183
3184 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3185
4b84d650
JJ
31862013-04-12 Jakub Jelinek <jakub@redhat.com>
3187
3188 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3189 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3190 specifiers.
3191
fb037b5d
SB
31922013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3193
3194 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3195
4e856798
PC
31962013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3197
3198 * c-common.c (pointer_int_sum): Remove dead code.
3199
4b1baac8
RS
32002013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3201
3202 PR middle-end/56524
3203 * c-common.c (handle_optimize_attribute): Don't call
3204 save_optabs_if_changed.
3205
0b50e654
JJ
32062013-03-05 Jakub Jelinek <jakub@redhat.com>
3207
3208 PR middle-end/56461
3209 * c-pch.c (pch_init): Free target_validity at the end.
3210
48c41403
JJ
32112013-03-04 Jakub Jelinek <jakub@redhat.com>
3212
3213 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3214
e664c61c
KS
32152013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3216 Jakub Jelinek <jakub@redhat.com>
3217
3218 PR sanitizer/56454
3219 * c-common.c (handle_no_sanitize_address_attribute): New function.
3220 (c_common_attribute_table): Add no_sanitize_address attribute.
3221 (handle_no_address_safety_analysis_attribute): Add
3222 no_sanitize_address attribute, not no_address_safety_analysis
3223 attribute.
3224
a475fd3d 32252013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3226
3227 PR target/52555
3228 * c-common.c (handle_optimize_attribute): Call
3229 save_optabs_if_changed.
3230
f6007d99
JJ
32312013-02-18 Jakub Jelinek <jakub@redhat.com>
3232 Steven Bosscher <steven@gcc.gnu.org>
3233
3234 PR pch/54117
3235 * c-opts.c (c_common_post_options): If debug info is enabled
3236 and non-dwarf*, refuse to load PCH files and when writing PCH
3237 file warn.
3238
cf35e2b1
JJ
32392013-02-05 Jakub Jelinek <jakub@redhat.com>
3240
3241 PR middle-end/56167
3242 * c-common.c (handle_error_attribute): Fix condition.
3243
32887460
JJ
32442013-01-30 Jakub Jelinek <jakub@redhat.com>
3245
3246 PR c++/55742
3247 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3248
5af057d8
JM
32492013-01-18 Jason Merrill <jason@redhat.com>
3250
3251 PR target/54908
3252 * c.opt (-fextern-tls-init): New.
3253 * c-opts.c (c_common_post_options): Handle it.
3254
cc83c823
JJ
32552013-01-09 Jakub Jelinek <jakub@redhat.com>
3256
3257 PR c/48418
3258 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3259 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3260 and is either negative or bigger or equal to type precision
3261 of the first operand.
3262
a859517f
MP
32632012-12-03 Marek Polacek <polacek@redhat.com>
3264
3265 PR c/55570
3266 * c-common.c (check_user_alignment): Swap order of tests,
3267 check TREE_CODE first.
3268
2d7aa578
ESR
32692012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3270
3271 PR c++/52654
3272 * c-common.h (overflow_type): New enum.
3273 (build_userdef_literal): Add overflow_type argument.
3274 (tree_userdef_literal): Add overflow_type.
3275 (USERDEF_LITERAL_OVERFLOW): New access macro.
3276 * c-common.c (build_userdef_literal): Add overflow_type
3277 argument.
3278 * c-lex.c (c_lex_with_flags): Add overflow_type to
3279 build_userdef_literal calls.
3280 (interpret_integer, interpret_float): Add overflow_type argument.
3281
cc3c4f62
RB
32822012-11-28 Richard Biener <rguenther@suse.de>
3283
3284 PR c/35634
3285 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3286 here and use a type with proper overflow behavior for types that would
3287 need to be promoted for the arithmetic.
3288
77bc5132
JJ
32892012-11-23 Jakub Jelinek <jakub@redhat.com>
3290
3291 PR sanitizer/55435
3292 * c-common.c (handle_no_address_safety_analysis_attribute): New
3293 function.
3294 (c_common_attribute_table): Add no_address_safety_analysis.
3295
5dc99c46
SB
32962012-11-16 Simon Baldwin <simonb@google.com>
3297
3298 * c.opt: Add f[no-]canonical-system-headers.
3299 * c-opts.c (c_common_handle_option): Handle
3300 OPT_fcanonical_system_headers.
3301
a4a0016d
ESR
33022012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3303
3304 PR c++/54413
3305 * c-opts.c (c_common_handle_option): Set new flags.
3306 * c.opt: Describe new flags.
3307
7dbb85a7
JM
33082012-11-09 Jason Merrill <jason@redhat.com>
3309
3310 * c.opt (Wabi-tag): New.
3311
ad7bac31
AK
33122012-11-09 Andi Kleen <ak@linux.intel.com>
3313
3314 PR 55139
3315 * c-common.c (get_atomic_generic_size): Mask with
3316 MEMMODEL_MASK
3317
7332899a
MLI
33182012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3319
3320 PR c/53063
3321 * c.opt (Wformat): Make it Alias Wformat=1.
3322 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3323 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3324 LangEnabledBy.
3325 (Wformat=): RejectNegative. Use LangEnabledBy.
3326 (Wnonnull): Use LangEnabledBy.
3327 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3328 * c-format.c (set_Wformat): Delete.
3329 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3330 (maybe_read_dollar_number): Likewise.
3331 (avoid_dollar_number): Likewise.
3332 (finish_dollar_format_checking): Likewise.
3333 (check_format_info): Likewise.
3334 (check_format_info_main): Likewise.
3335 (check_format_types): Likewise.
3336 (format_type_warning): Likewise.
3337 * c-common.c (int): Likewise.
3338 (check_function_sentinel): Likewise.
3339 * c-common.h (warn_format,set_Wformat): Do not declare here.
3340
34a180a6
MLI
33412012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3342
3343 PR c/53063
3344 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3345 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3346 Use LangEnabledBy.
3347 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3348 common.opt.
3349 (Wvariadic-macros): Init(1).
3350 * c-opts.c (c_common_handle_option): Do not handle them
3351 explicitly.
3352 (c_common_post_options): Likewise.
3353 (sanitize_cpp_opts): warn_unused_macros is now
3354 cpp_warn_unused_macros.
3355 (push_command_line_include): Likewise.
3356 * c-common.c (warn_unknown_pragmas): Do not define.
3357 * c-common.h (warn_unknown_pragmas): Do not declare.
3358
3f46d6a5
MLI
33592012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3360
3361 PR c/51294
3362 * c-common.c (conversion_warning): Handle conditional expressions.
3363
880661a4
JW
33642012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3365
3366 PR c++/54930
3367 * c.opt (Wreturn_local_addr): Define new option.
3368
4514a96b
JM
33692012-10-25 Jason Merrill <jason@redhat.com>
3370
f14edc1a
JM
3371 * c.opt (Wvirtual-move-assign): New.
3372
4514a96b
JM
3373 * c.opt (Winherited-variadic-ctor): New.
3374
93100c6b
MG
33752012-10-25 Marc Glisse <marc.glisse@inria.fr>
3376
3377 PR c++/54427
3378 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3379
1efcb8c6
JM
33802012-10-23 Joseph Myers <joseph@codesourcery.com>
3381
3382 * c-common.h (pch_cpp_save_state): Declare.
3383 * c-target.def (c_preinclude): New hook.
3384 * c-opts.c (done_preinclude): New.
3385 (push_command_line_include): Handle default preincluded header.
3386 (cb_file_change): Call pch_cpp_save_state when calling
3387 push_command_line_include.
3388 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3389 (pch_cpp_save_state): New.
3390 (pch_init): Call pch_cpp_save_state conditionally, instead of
3391 calling cpp_save_state.
3392
4a0ae68e
MLI
33932012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3394
3395 PR c/53063
3396 PR c/40989
3397 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3398 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3399 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3400 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3401 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3402 * c-opts.c (c_common_handle_option): Remove explicit handling from
3403 here.
3404 (c_common_post_options): Likewise.
3405
67e4210b
EB
34062012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3407
3408 * c-ada-spec.c (LOCATION_COL): Delete.
3409 (compare_location): New function.
3410 (compare_node): Use it.
3411 (compare_comment): Likewise.
3412
65d4f2cd
MLI
34132012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3414
3415 PR c/53063
3416 PR c/40989
3417 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3418 * c-opts.c (c_common_handle_option): Do not set them here. Add
3419 comment.
3420 (c_common_post_options): Likewise.
3421
909881cb
EB
34222012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3423
3424 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3425 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3426 Remove POINTER_TYPE handling, add large unsigned handling and use
3427 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3428
3a785c97
JJ
34292012-10-12 Jakub Jelinek <jakub@redhat.com>
3430
3431 PR c/54381
3432 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3433 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3434 locs and array of 3 trees instead of just single loc and single
3435 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3436 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3437 For *cmp* builtins that take two sources strings report warnings
3438 about first and second source, not about destination and source.
3439
5e54f81d
MG
34402012-10-12 Marc Glisse <marc.glisse@inria.fr>
3441
3442 PR c++/53055
3443 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3444
f5b02f1e
EB
34452012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3446
3447 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3448 declaring something coming from another file.
3449
b46dbc6c
AC
34502012-10-10 Arnaud Charlet <charlet@adacore.com>
3451
f5b02f1e 3452 PR ada/54845
b46dbc6c
AC
3453 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3454
5d9de0d0
PC
34552012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3456
3457 PR c++/54194
3458 * c-common.c (warn_about_parentheses): Add location_t parameter;
3459 use EXPR_LOC_OR_LOC.
3460 * c-common.h: Update declaration.
3461
a212e43f
MG
34622012-10-09 Marc Glisse <marc.glisse@inria.fr>
3463
3464 PR c++/54427
3465 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3466 more operations. Make error messages optional.
3467 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3468 (scalar_to_vector): Declare.
3469
b1db7f91
JM
34702012-10-08 Jason Merrill <jason@redhat.com>
3471
3472 * c-common.c (c_common_reswords): Add thread_local.
3473
e28d52cf
DS
34742012-10-08 Dodji Seketeli <dodji@redhat.com>
3475
3476 PR c++/53528 C++11 attribute support
3477 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3478 new functions.
3479 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3480 static function.
3481 (handle_aligned_attribute): In choose strictest alignment
3482 among many. Use new check_cxx_fundamental_alignment_constraints.
3483 (handle_transparent_union_attribute): In c++11 attribute syntax,
3484 don't look through typedefs.
3485
3b78de56
AC
34862012-10-04 Arnaud Charlet <charlet@adacore.com>
3487
3488 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3489 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3490 out of dumpfile.h.
3491
6040bb5f
DC
34922012-09-25 Dehao Chen <dehao@google.com>
3493
3494 PR middle-end/54645
3b78de56 3495 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3496 map when read in the pch.
3497
0b07a57e
AC
34982012-09-18 Arnaud Charlet <charlet@adacore.com>
3499
3500 * c-ada-spec.c: Style fixes.
3501
da5182be
TQ
35022012-09-18 Thomas Quinot <quinot@adacore.com>
3503
3504 * c.opt (-fada-spec-parent): Define new command line switch.
3505 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3506 is specified, generate binding spec as a child of the specified unit.
3507
0ccb505d
PC
35082012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3509 Manuel López-Ibáñez <manu@gcc.gnu.org>
3510
3511 PR c++/53210
3512 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3513
c583af79
AC
35142012-08-23 Arnaud Charlet <charlet@adacore.com>
3515
3516 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3517 for pointers, and add missing Convention C pragma.
3518 (print_ada_struct_decl): Add missing aliased keyword.
3519 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3520
1a4049e7
JJ
35212012-08-17 Jakub Jelinek <jakub@redhat.com>
3522
3523 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3524 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3525 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3526 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3527 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3528
70b5e7dc
RG
35292012-08-10 Richard Guenther <rguenther@suse.de>
3530
3531 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3532
f8923f7e
SB
35332012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3534
3535 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3536 instead of separate pp_newline and pp_flush.
3537 (print_c_tree): Likewise.
3538
e45abe1f
RH
35392012-07-26 Richard Henderson <rth@redhat.com>
3540
3541 * c-common.c (handle_hot_attribute): Allow labels.
3542 (handle_cold_attribute): Likewise.
3543
332f1d24
JJ
35442012-07-20 Jakub Jelinek <jakub@redhat.com>
3545
3546 PR c++/28656
3547 * c-common.c (check_function_nonnull): Handle multiple nonnull
3548 attributes properly.
3549
7ee2468b
SB
35502012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3551
3552 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3553 * c-ada-spec.c: Likewise.
3554 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3555
ee7b28eb
SB
35562012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3557
3558 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3559 Remove code conditional on it.
3560
6bdf3519
SB
35612012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3562
3563 * c-gimplify.c: Do not include basic-block.h.
3564 * c-common.c: Do not include linfuncs.h.
3565
532aafad
SB
35662012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3567
3568 * c-common.h: Include tree.h.
3569
8d0d1915
JM
35702012-07-02 Jason Merrill <jason@redhat.com>
3571
3572 PR c++/53524
3573 * c-common.c (get_priority): Call default_conversion.
3574
fbc873ad
UB
35752012-07-01 Uros Bizjak <ubizjak@gmail.com>
3576
3577 * c-pch.c (c_common_write_pch): Remove unused variables.
3578
d4a10d0a
SB
35792012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3580
3581 * cppspec.c: Moved from gcc/ to here.
3582
6f3a2e23
KT
35832012-06-27 Kai Tietz <ktietz@redhat.com>
3584
3585 PR preprocessor/37215
3586 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3587
8ca92d04
SB
35882012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3589
3590 * c-common.h (c_common_print_pch_checksum): Remove.
3591 * c-pch.c: Do not include output.h.
3592 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3593 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3594 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3595 (struct c_pch_header): Remove.
3596 (get_ident): Update gpch version.
3597 (pch_init): Do not print executable_checksum to asm_out_file.
3598 Do not fail if there is no asm_out_file to read back from. Set
3599 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3600 (c_common_write_pch): Verify that nothing was written to asm_out_file
3601 since pch_init was called. Do not write a c_pch_header, and do not
3602 copy from asm_out_file to the PCH.
3603 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3604 the content of asm_out_file from the PCH.
3605 (c_common_print_pch_checksum): Remove.
3606 * c-opts.c (c_common_init): Print out executable_checksum directly.
3607
70f42967
SB
36082012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3609
3610 * c-target.def (objc_declare_unresolved_class_reference,
3611 objc_declare_class_definition): Add new hooks.
3612
a8781821
SB
36132012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3614
3615 * c-lex.c: Do not include output.h.
3616 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3617 Remove uses of ASM_OUTPUT_IDENT.
3618
9e1a8dd1
RR
36192012-06-15 Marc Glisse <marc.glisse@inria.fr>
3620
3621 PR c++/51033
3622 * c-common.h (c_build_vec_perm_expr): Move decl here.
3623 * c-common.c (c_build_vec_perm_expr): Move definition
3624 here.
3625
6f07a821
SB
36262012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3627
3628 * c.opt (fconserve-space): Turn into a no-op.
3629
9faeb493 36302012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3631
3632 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3633 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3634 both the start and end of the function.
3635
a4b7d13c
SB
36362012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3637
3638 * c-common.c: Do not include output.h.
3639 * c-pragma.c: Likewise.
3640
c265f413
SA
36412012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3642
3643 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3644 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3645 (lang_decl_name): Handle namespace decls.
3646
be7a421e
SB
36472012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3648
3649 * c-ada-spec.c: Do not include output.h.
3650 * c-semantics.c: Likewise.
3651
65de6659
JM
36522012-05-29 Joseph Myers <joseph@codesourcery.com>
3653
3654 * c-common.c: Fix typo.
3655
ca5f4331
MM
36562012-05-29 Michael Matz <matz@suse.de>
3657
3658 * c-common.h (c_expand_decl): Remove prototype.
3659
4f7f7aca
MLI
36602012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3661
3662 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3663 * c-opts.c (c_common_handle_option): Remove code handling
3664 warn_missing_braces.
3665
4a792f9b
PC
36662012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3667
3668 PR c++/25137
3669 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3670 -Wmissing_braces.
3671
650dc14a
DS
36722012-05-22 Dodji Seketeli <dodji@redhat.com>
3673
3674 PR c++/53322
3675 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3676
9b095bf1
MLI
36772012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3678
3679 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3680 * c-opts.c (c_common_handle_option): Do not handle explicitly
3681 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3682
0b2c4be5
DS
36832012-05-16 Dodji Seketeli <dodji@redhat.com>
3684
3685 PR preprocessor/7263
3686 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3687 to cpp_classify_number. For diagnostics, use the precise location
3688 instead of the global input_location.
3689
a1bde5af
PC
36902012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3691
d02924ef 3692 PR c++/11856
a1bde5af
PC
3693 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3694
d1ede5f4
BS
36952012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3696
a1bde5af 3697 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3698
f2bc201f
MLI
36992012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3700
3701 PR 53063
3702 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3703 Wreorder): Use LangEnabledBy.
3704 * c-opts.c (c_common_handle_option): Do not enable them
3705 explicitly. Call lang-specific generated functions.
3706 (c_common_post_options): Do not set them here.
3707
95744782
MLI
37082012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3709
3710 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3711 Wmissing-field-initializers,Wmissing-parameter-type,
3712 Wold-style-declaration,Woverride-init): Use EnabledBy.
3713 * c-opts.c (c_common_post_options): Do not set here explicitly.
3714
7d5a5747
MLI
37152012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3716
3717 PR 53063
3718 * c-opts.c (c_common_handle_option): Use handle_generated_option
3719 to enable sub-options.
3720
5a3c9cf2
PC
37212012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3722
3723 PR c++/53158
3724 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3725
3ac8781c
RG
37262012-05-10 Richard Guenther <rguenther@suse.de>
3727
3728 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3729 adjust commentary about TYPE_IS_SIZETYPE types.
3730
1e537948
MLI
37312012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3732
3733 PR c++/53261
3734 * c-common.c (warn_logical_operator): Check that argument of
3735 integer_zerop is not NULL.
3736
f2c4a785
MLI
37372012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3738
3739 PR c/43772
3740 * c-common.c (warn_logical_operator): Do not warn if either side
3741 is already true or false.
3742
50f305ca
MLI
37432012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3744
3745 PR c/51712
3746 * c-common.c (expr_original_type): New.
3747 (shorten_compare): Do not warn for enumeration types.
3748
0c3641b0
MLI
37492012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3750
3751 * c.opt (fpermissive): Add Var(flag_permissive).
3752
7edaa4d2
MG
37532012-04-30 Marc Glisse <marc.glisse@inria.fr>
3754
3755 PR c++/51033
3756 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3757 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3758
b9c8da34
DS
37592012-04-30 Dodji Seketeli <dodji@redhat.com>
3760
3761 Add -Wvarargs option
3762 * c.opt (Wvarargs): Define new option.
3763
e6c69da0
MLI
37642012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3765
3766 * c-common.c (check_function_arguments): Replace
3767 Wmissing-format-attribute with Wsuggest-attribute=format.
3768
90137d8f
MLI
37692012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3770
3771 * c.opt (Wsuggest-attribute=format): New. Alias of
3772 Wmissing-format-attribute.
3773 * c-format.c (decode_format_type): Replace
3774 Wmissing-format-attribute with Wsuggest-attribute=format.
3775 (check_function_format): Likewise.
3776
9faeb493 37772012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3778
3779 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3780 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3781 * c.opt: Add Wliteral-suffix.
3782
c1771a20
MLI
37832012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3784
3785 PR c/44774
3786 * c.opt (Wpedantic): New.
3787 (pedantic): Alias Wpedantic.
3788 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3789 (c_common_post_options): Likewise.
3790 (sanitize_cpp_opts): Likewise.
3791 * c-lex.c (interpret_float): Likewise.
3792 * c-format.c (check_format_types): Likewise.
3793 * c-common.c (pointer_int_sum): Likewise.
3794 (c_sizeof_or_alignof_type): Likewise.
3795 (c_add_case_label): Likewise.
3796 (c_do_switch_warnings): Likewise.
3797 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3798
04b391c1
JM
37992012-04-15 Jason Merrill <jason@redhat.com>
3800
3801 PR c++/52818
3802 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3803 (C_STD_NAME): Distinguish between C++98 and C++11.
3804
ac868f29
EB
38052012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3806
3807 PR target/52624
3808 * c-common.h (uint16_type_node): Rename into...
3809 (c_uint16_type_node): ...this.
3810 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3811 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3812
fd4116f4
MLI
38132012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3814
3815 * c-common.c (warn_if_unused_value): Move definition to here.
3816 * c-common.h (warn_if_unused_value): Move declaration to here.
3817
573ac65e
WB
38182012-03-23 William Bader <williambader@hotmail.com>
3819
3820 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3821
552b8185
JM
38222012-03-20 Jason Merrill <jason@redhat.com>
3823
3824 * c-common.h (enum cxx_dialect): Add cxx1y.
3825 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3826 test.
3827 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3828 * c-opts.c (c_common_post_options): Likewise.
3829 (set_std_cxx1y): New.
3830 (c_common_handle_option): Call it.
3831 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3832
04398fa8
PC
38332012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3834
3835 PR c++/14710
3836 * c.opt ([Wuseless-cast]): Add.
3837
d2a12ae7
RG
38382012-03-16 Richard Guenther <rguenther@suse.de>
3839
3840 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3841
a12bf402
MLI
38422012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3843
3844 PR c++/44783
3845 * c.opt (ftemplate-backtrace-limit) Add.
3846
5c30094f
RO
38472012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3848
3849 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3850 handling.
3851 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3852 (init_pragma): Don't register extern_prefix.
3853
21fa2faf
RG
38542012-03-12 Richard Guenther <rguenther@suse.de>
3855
3856 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3857 (builtin_type_for_size): Likewise.
3858
e3793c6f
JJ
38592012-02-13 Jakub Jelinek <jakub@redhat.com>
3860
3861 PR c++/52215
3862 * c-common.c (sync_resolve_params): Don't decide whether to convert
3863 or not based on TYPE_SIZE comparison, convert whenever arg_type
3864 is unsigned INTEGER_TYPE.
3865
93286335
PC
38662012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3867
3868 PR c/52118
3869 * c.opt ([Wunused-local-typedefs]): Fix description.
3870
7a421706
MS
38712012-01-24 Mike Stump <mikestump@comcast.net>
3872
3873 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3874 exactly.
3875
ba9b1f11
RG
38762012-01-18 Richard Guenther <rguenther@suse.de>
3877
3878 * c-opts.c (c_common_post_options): Reset LTO flags if
3879 we are about to generate a PCH.
3880
465406be
PC
38812012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3882
3883 PR c++/51777
3884 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3885 use pp_unsigned_wide_integer.
3886
aee15221
RG
38872012-01-10 Richard Guenther <rguenther@suse.de>
3888
3889 PR middle-end/51806
3890 * c-opts.c (c_common_handle_option): Move -Werror handling
3891 to language independent code.
3892
5720c0dc
RG
38932012-01-05 Richard Guenther <rguenther@suse.de>
3894
3895 PR middle-end/51764
3896 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3897 from common.opt.
3898
73ac190a
PC
38992011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3900
3901 PR c++/51316
3902 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3903 of array types with an unknown bound.
3904
48b0b196
JM
39052011-12-20 Joseph Myers <joseph@codesourcery.com>
3906
3907 * c-common.c (flag_isoc99): Update comment to refer to C11.
3908 (flag_isoc1x): Change to flag_isoc11.
3909 * c-common.h (flag_isoc99): Update comment to refer to C11.
3910 (flag_isoc1x): Change to flag_isoc11.
3911 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3912 C11.
3913 * c-opts.c (set_std_c1x): Change to set_std_c11.
3914 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3915 Call set_std_c11.
3916 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3917 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3918 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3919 standard.
3920 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3921 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3922 (std=gnu1x): Make alias of std=gnu11.
3923
d58d6eb5
JM
39242011-12-19 Jason Merrill <jason@redhat.com>
3925
3926 PR c++/51228
3927 * c-common.c (handle_transparent_union_attribute): Check the first
3928 field if the type is complete.
3929
b3908fcc
JW
39302011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3931
3932 PR libstdc++/51365
3933 * c-common.c (RID_IS_FINAL): Add.
3934 * c-common.h (RID_IS_FINAL): Add.
3935
fea3ca91
IS
39362011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3937
3938 * c.opt (fgnu-runtime): Provide full description.
3939 (fnext-runtime): Likewise.
3940 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3941
62bad7cd
AM
39422011-11-28 Andrew MacLeod <amacleod@redhat.com>
3943
3944 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3945 predefines in one place. Add LOCK_FREE predefines.
3946 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3947 new func.
3948
c466c4ff
AM
39492011-11-24 Andrew MacLeod <amacleod@redhat.com>
3950
3951 PR c/51256
9faeb493 3952 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3953 conditions
9faeb493
UB
3954 (resolve_overloaded_atomic_exchange,
3955 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3956 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3957 error_mark_node for error conditions.
9faeb493 3958
a5952633
RG
39592011-11-08 Richard Guenther <rguenther@suse.de>
3960
3961 PR middle-end/51010
3962 c-family/
3963
0a35513e
AH
39642011-11-07 Richard Henderson <rth@redhat.com>
3965 Aldy Hernandez <aldyh@redhat.com>
3966 Torvald Riegel <triegel@redhat.com>
3967
3968 Merged from transactional-memory.
3969
3970 * c-common.c (handle_tm_wrap_attribute,
3971 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3972 (struct c_common_reswords): Added __transaction* keywords.
3973 (struct c_common_attribute_table): Added transaction* and tm_regparm
3974 attributes.
3975 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3976 masks.
3977 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3978 find_tm_attribute): Declare.
3979
6d87092d
JM
39802011-11-07 Jason Merrill <jason@redhat.com>
3981
3982 PR c++/35688
3983 * c-common.c, c-common.h: Revert yesterday's changes.
3984
8e7860a1
JM
39852011-11-06 Jason Merrill <jason@redhat.com>
3986
3987 PR c++/35688
3988 * c-common.c (decl_has_visibility_attr): Split out from...
3989 (c_determine_visibility): ...here.
3990 * c-common.h: Declare it.
3991
d19fa6b5
JM
39922011-11-06 Joseph Myers <joseph@codesourcery.com>
3993
3994 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3995 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3996 type.
3997 (check_user_alignment): New. Split out of
3998 handle_aligned_attribute. Disallow integer constants with
3999 noninteger types. Conditionally allow zero.
4000 (handle_aligned_attribute): Use check_user_alignment.
4001 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4002
86951993
AM
40032011-11-06 Andrew MacLeod <amacleod@redhat.com>
4004 Richard Henderson <rth@redhat.com>
4005
4006 Merged from cxx-mem-model.
4007
4008 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 4009 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
4010 parameters that are the same type size.
4011 (get_atomic_generic_size): New. Find size of generic
4012 atomic function parameters and do typechecking.
4013 (add_atomic_size_parameter): New. Insert size into parameter list.
4014 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4015 either __atomic_exchange_n or external library call.
9faeb493 4016 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 4017 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 4018 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
4019 __atomic_load_n or an external library call.
4020 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4021 __atomic_store_n or an external library call.
4022 (resolve_overloaded_builtin): Handle new __atomic builtins.
4023
cf9e9959
EB
40242011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4025
4026 PR c++/50608
4027 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4028 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4029 <INDIRECT_REF>: Return the argument.
4030 <ARRAY_REF>: Remove special code for negative offset.
4031 Call fold_build_pointer_plus instead of size_binop.
4032 (fold_offsetof): Remove STOP_REF argument and adjust.
4033 * c-common.h (fold_offsetof_1): Declare.
4034 (fold_offsetof): Remove STOP_REF argument.
4035
25339f10
JM
40362011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4037
4038 PR c++/50810
4039 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4040 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4041 Wnarrowing for C++0x and C++98.
4042 * c.opt ([Wnarrowing]): Update.
4043
89401152
PC
40442011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4045
4046 PR c++/44277
4047 * c.opt: Add Wzero-as-null-pointer-constant.
4048
97e3ad20
JM
40492011-10-31 Jason Merrill <jason@redhat.com>
4050
15694fdd
JM
4051 * c.opt (-fdeduce-init-list): Off by default.
4052
97e3ad20
JM
4053 PR c++/50920
4054 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4055 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4056 and -Wc++11-compat.
4057 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4058
fb9120e3
RAV
40592011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4060
4061 PR c++/30066
4062 * c.opt (fvisibility-inlines-hidden): Description change.
4063
3ce4f9e4
ESR
40642011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4065
4066 Implement C++11 user-defined literals.
4067 * c-common.c (build_userdef_literal): New.
4068 * c-common.def: New tree code.
4069 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4070 * c-lex.c (interpret_float): Add suffix parm.
4071 (c_lex_with_flags): Build literal tokens.
4072
5f53c243
PC
40732011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4074
4075 PR c++/50841
4076 Revert:
4077 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4078
4079 PR c++/50810
4080 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4081 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4082 Wnarrowing for C++0x and C++98.
4083 * c.opt ([Wnarrowing]): Update.
4084
263734e1
PC
40852011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4086
4087 PR c++/50810
4088 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4089 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4090 Wnarrowing for C++0x and C++98.
4091 * c.opt ([Wnarrowing]): Update.
4092
d2e312d7
PC
40932011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4094
4095 PR c++/45385
4096 * c-common.c (conversion_warning): Remove code looking for
4097 artificial operands.
4098
d17687f6
DS
40992011-10-18 Dodji Seketeli <dodji@redhat.com>
4100
4101 PR bootstrap/50760
4102 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4103 !NO_IMPLICIT_EXTERN_C.
d17687f6 4104
fc8396e9
PC
41052011-10-17 Michael Spertus <mike_spertus@symantec.com>
4106
4107 * c-common.c (c_common_reswords): Add __bases,
4108 __direct_bases.
4109 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4110
41112011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4112
4113 PR c++/50757
4114 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4115
847e697a
TT
41162011-10-15 Tom Tromey <tromey@redhat.com>
4117 Dodji Seketeli <dodji@redhat.com>
4118
4119 * c.opt (fdebug-cpp): New option.
4120 * c-opts.c (c_common_handle_option): Handle the option.
4121 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4122 output stream in parameter. Factorized from ...
4123 (maybe_print_line): ... this. Dump location debug information when
4124 -fdebug-cpp is in effect.
4125 (print_line_1): New static function. Takes an output stream in
4126 parameter. Factorized from ...
4127 (print_line): ... here. Dump location information when -fdebug-cpp
4128 is in effect.
4129 (scan_translation_unit): Dump location information when
4130 -fdebug-cpp is in effect.
4131
92582b75
TT
41322011-10-15 Tom Tromey <tromey@redhat.com>
4133 Dodji Seketeli <dodji@redhat.com>
4134
4135 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4136 without argument.
4137 * c-opts.c (c_common_handle_option)<case
4138 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4139 cases. Handle -ftrack-macro-expansion with and without argument.
4140
46427374
TT
41412011-10-15 Tom Tromey <tromey@redhat.com>
4142 Dodji Seketeli <dodji@redhat.com>
4143
4144 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4145 (print_line, cb_define, do_line_change): Adjust to avoid touching
4146 the internals of struct line_map. Use the public API instead.
4147 * c-pch.c (c_common_read_pch): Likewise.
4148 * c-lex.c (fe_file_change): Likewise.
4149
fc8396e9
PC
41502011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4151
4152 PR c++/17212
4153 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4154
41552011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4156
4157 PR c++/33067
4158 * c-pretty-print.c (pp_c_floating_constant): Output
4159 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4160
e79983f4
MM
41612011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4162
4163 * c-common.c (def_builtin_1): Delete old interface with two
4164 parallel arrays to hold standard builtin declarations, and replace
4165 it with a function based interface that can support creating
4166 builtins on the fly in the future. Change all uses, and poison
4167 the old names. Make sure 0 is not a legitimate builtin index.
4168 * c-omp.c (c_finish_omp_barrier): Ditto.
4169 (c_finish_omp_taskwait): Ditto.
4170 (c_finish_omp_flush): Ditto.
4171
6637388f
TG
41722011-10-11 Tristan Gingold <gingold@adacore.com>
4173
4174 * c.opt: (fallow-parameterless-variadic-functions): New.
4175
3797cb21
DS
41762011-09-08 Dodji Seketeli <dodji@redhat.com>
4177
4178 PR c++/33255 - Support -Wunused-local-typedefs warning
4179 * c-common.h (struct c_language_function::local_typedefs): New
4180 field.
9faeb493
UB
4181 (record_locally_defined_typedef, maybe_record_typedef_use)
4182 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4183 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4184 (maybe_record_typedef_use)
4185 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4186 * c.opt: Declare new -Wunused-local-typedefs flag.
4187
693ddb1b
EB
41882011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4189
4190 PR middle-end/50266
4191 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4192 computations.
4193
830c740f
RG
41942011-09-05 Richard Guenther <rguenther@suse.de>
4195
4196 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4197 of integer_minus_one_node for empty array upper bounds.
4198
892a371f
DS
41992011-08-28 Dodji Seketeli <dodji@redhat.com>
4200
4201 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4202 it's the first time it's being called on this main TU.
4203
0e3fdb48
RB
42042011-08-24 Richard Guenther <rguenther@suse.de>
4205
4206 PR c/49396
4207 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4208
42092011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4210
4211 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4212 defined in cpp_init_builtins and c_cpp_builtins.
4213
d4a83c10
JM
42142011-08-19 Joseph Myers <joseph@codesourcery.com>
4215
4216 * c-common.c (c_common_reswords): Add __builtin_complex.
4217 * c-common.h (RID_BUILTIN_COMPLEX): New.
4218
bbceee64
JM
42192011-08-18 Joseph Myers <joseph@codesourcery.com>
4220
4221 * c-common.c (c_common_reswords): Add _Noreturn.
4222 (keyword_is_function_specifier): Handle RID_NORETURN.
4223 * c-common.h (RID_NORETURN): New.
4224
0e3a99ae
AS
42252011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4226
4227 * c-common.c (unsafe_conversion_p): New function. Check if it is
4228 unsafe to convert an expression to the type.
4229 (conversion_warning): Adjust, use unsafe_conversion_p.
4230 * c-common.h (unsafe_conversion_p): New function declaration.
4231
20906c66
JJ
42322011-08-02 Jakub Jelinek <jakub@redhat.com>
4233
4234 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4235 (c_finish_omp_taskyield): New prototype.
4236 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4237 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4238 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4239 or RHS1 have side-effects, evaluate those too in the right spot,
4240 if it is a decl and LHS is also a decl, error out if they
4241 aren't the same.
4242 (c_finish_omp_taskyield): New function.
4243 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4244 * c-pragma.c (omp_pragmas): Add taskyield.
4245 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4246 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4247 PRAGMA_OMP_CLAUSE_MERGEABLE.
4248
770e5a2e
DS
42492011-07-25 Dodji Seketeli <dodji@redhat.com>
4250
4251 * c-common.h (set_underlying_type): Remove parm name from
4252 declaration.
4253
1baae426
RG
42542011-07-25 Romain Geissler <romain.geissler@gmail.com>
4255
4256 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4257
fcb21722
JM
42582011-07-22 Jason Merrill <jason@redhat.com>
4259
76f86d00
JM
4260 PR c++/49793
4261 * c.opt (Wnarrowing): New.
4262
3a636414
JM
4263 PR c++/30112
4264 * c-common.h: Declare c_linkage_bindings.
4265 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4266
fcb21722
JM
4267 PR c++/49813
4268 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4269 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4270 as flag_isoc99 for 'restrict'.
4271 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4272
02614448
ILT
42732011-07-21 Ian Lance Taylor <iant@google.com>
4274
4275 PR middle-end/49705
4276 * c-common.c (c_disable_warnings): New static function.
4277 (c_enable_warnings): New static function.
4278 (c_fully_fold_internal): Change local unused_p to bool. Call
4279 c_disable_warnings and c_enable_warnings rather than change
4280 c_inhibit_evaluation_warnings.
4281
34429675
JM
42822011-07-20 Jason Merrill <jason@redhat.com>
4283
4284 PR c++/6709 (DR 743)
4285 PR c++/42603 (DR 950)
4286 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4287 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4288 (CPP_DECLTYPE): New.
4289 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4290
5d49b6a7
RG
42912011-07-19 Richard Guenther <rguenther@suse.de>
4292
4293 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4294 * c-omp.c (c_finish_omp_for): Likewise.
4295
e84a58ff
EB
42962011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4297
4298 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4299 body on the next line.
4300
329af3c7
JM
43012011-07-08 Jason Merrill <jason@redhat.com>
4302
4063e61b
JM
4303 PR c++/45437
4304 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4305
329af3c7
JM
4306 PR c++/49673
4307 * c-common.c (c_apply_type_quals_to_decl): Don't check
4308 TYPE_NEEDS_CONSTRUCTING.
4309
1a072294
RG
43102011-07-06 Richard Guenther <rguenther@suse.de>
4311
4312 * c-common.c (c_common_nodes_and_builtins):
4313 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4314
fce5dddd
RG
43152011-07-05 Richard Guenther <rguenther@suse.de>
4316
4317 * c-common.c (c_common_nodes_and_builtins): Build all common
4318 tree nodes first.
4319
45d439ac
JJ
43202011-06-27 Jakub Jelinek <jakub@redhat.com>
4321
56300785
JJ
4322 * c-common.h (c_tree_chain_next): New static inline function.
4323
45d439ac
JJ
4324 * c-common.c (check_builtin_function_arguments): Handle
4325 BUILT_IN_ASSUME_ALIGNED.
4326
e0a8ecf2
AM
43272011-06-21 Andrew MacLeod <amacleod@redhat.com>
4328
4329 * c-common.c: Add sync_ or SYNC__ to builtin names.
4330 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4331
43322011-06-20 Pierre Vittet <piervit@pvittet.com>
4333
4334 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4335 handler.
4336 (gen_pragma_handler): New union.
4337 (internal_pragma_handler): New type.
4338 (c_register_pragma_with_data)
4339 (c_register_pragma_with_expansion_and_data): New functions.
4340
4341 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4342 (c_register_pragma, c_register_pragma_with_expansion)
4343 (c_invoke_pragma_handler): Changed to work with
4344 internal_pragma_handler.
4345 (c_register_pragma_with_data)
4346 (c_register_pragma_with_expansion_and_data): New functions.
4347
677f3fa8
JM
43482011-06-14 Joseph Myers <joseph@codesourcery.com>
4349
4350 * c-common.c: Include common/common-target.h.
4351 (handle_section_attribute): Use
4352 targetm_common.have_named_sections.
4353 * c-cppbuiltin.c: Include common/common-target.h.
4354 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4355
d7fc8c14
RG
43562011-06-10 Richard Guenther <rguenther@suse.de>
4357
4358 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4359 to print a IDENTIFIER_NODE.
4360
10e48e39
RO
43612011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4362 Joseph Myers <joseph@codesourcery.com>
4363
4364 * c.opt (fbuilding-libgcc): New option.
4365 * c-cppbuiltin.c (c_cpp_builtins): Define
4366 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4367
6976ae51
JM
43682011-06-07 Jason Merrill <jason@redhat.com>
4369
3ff60975
JM
4370 * c-common.c (max_tinst_depth): Lower default to 900.
4371
6976ae51
JM
4372 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4373
009db074
RG
43742011-06-07 Richard Guenther <rguenther@suse.de>
4375
4376 * c-common.c (c_common_nodes_and_builtins): Do not set
4377 size_type_node or call set_sizetype.
4378
b4592b92
DS
43792011-06-07 Dodji Seketeli <dodji@redhat.com>
4380
4381 PR debug/49130
4382 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4383 type when using pointer comparison to compare types.
b4592b92 4384
014ab419
JW
43852011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4386
4387 * c.opt: Add -Wdelete-non-virtual-dtor.
4388 * c-opts.c (c_common_handle_option): Include it in -Wall.
4389
4f60111f
NF
43902011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4391
4392 PR bootstrap/49190
4393
4394 Revert:
4395 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4396
4397 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4398 not tree_common.
4399
4cc4f2f4
JJ
44002011-05-27 Jakub Jelinek <jakub@redhat.com>
4401
4402 PR c++/49165
4403 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4404 C++ don't call c_common_truthvalue_conversion on void type arms.
4405
38e01f9e
NF
44062011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4407
4408 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4409 (stmt_list_stack): Define.
4410 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4411 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4412
92e948a8
NF
44132011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4414
4415 * c-common.c (warning_candidate_p): Check for BLOCKs.
4416
a2fc3e63
NF
44172011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4418
4419 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4420 not tree_common.
4421
0957c029
JJ
44222011-05-25 Jakub Jelinek <jakub@redhat.com>
4423
4424 * c-common.c (def_fn_type): Remove extra va_end.
4425
828fb3ba
JM
44262011-05-23 Jason Merrill <jason@redhat.com>
4427
4428 PR c++/48106
4429 * c-common.c (c_common_get_narrower): New.
4430 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4431
dde05067
NF
44322011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4433
4434 * c-common.h (check_function_arguments): Tweak prototype of
4435 check_function_arguments.
4436 * c-common.c (check_function_arguments): Likewise. Adjust
4437 calls to check_function_nonnull, check_function_format, and
4438 check_function_sentinel.
4439 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4440 separate attributes and typelist arguments. Use
4441 FOREACH_FUNCTION_ARGS to iterate over argument types.
4442
3c0d13bf
PC
44432011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4444
4445 * c-common.c (c_common_reswords): Reorder.
4446 * c-common.h (rid): Likewise.
4447
8242dd04
NF
44482011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4449
4450 * c-common.c (def_fn_type): Don't call build_function_type, call
4451 build_function_type_array or build_varargs_function_type_array
4452 instead.
4453 (c_common_nodes_and_builtins): Likewise.
4454
3d528853
NF
44552011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4456
4457 * c-common.c (c_add_case_label): Omit the loc argument to
4458 build_case_label.
4459 * c-common.h (build_case_label): Remove.
4460 * c-semantics.c (build_case_label): Remove.
4461
a04a722b
JM
44622011-05-05 Joseph Myers <joseph@codesourcery.com>
4463
4464 * c-objc.h (objc_start_method_definition): Update prototype.
4465 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4466
e19a18d4
NF
44672011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4468
4469 * c-common.c (check_main_parameter_types): Reindent. Don't use
4470 TYPE_ARG_TYPES directly.
4471 (handle_nonnull_attribute): Likewise.
4472 (sync_resolve_params): Likewise.
4473 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4474 to check_format_string.
4475 (handle_format_attribute): Likewise.
4476 (check_format_string): Take a function type to examine instead of
4477 a type list. Use a function_arg_iterator to step through argument
4478 types.
4479
c62c040f
RG
44802011-05-04 Richard Guenther <rguenther@suse.de>
4481
4482 * c-common.c (fix_string_type): Use size_int for index type bounds.
4483 (start_fname_decls): Do not pass NULL to build_int_cst.
4484 (c_init_attributes): Likewise.
4485 * c-lex.c (c_lex_with_flags): Likewise.
4486
c12ff9d8
JM
44872011-04-27 Jason Merrill <jason@redhat.com>
4488
4489 * c-common.c (make_tree_vector_from_list): New.
4490 * c-common.h: Declare it.
4491
304dfbe3
RG
44922011-04-26 Richard Guenther <rguenther@suse.de>
4493
4494 PR preprocessor/48248
4495 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4496 for output size with -P.
4497
3c0d13bf
PC
44982011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4499
4500 * c-common.c (struct c_common_resword): Add __underlying_type.
4501 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4502
04695783
JM
45032011-04-20 Jim Meyering <meyering@redhat.com>
4504
4505 * c-format.c (init_dollar_format_checking): Remove useless
4506 if-before-free.
4507
0dc33c3c
NP
45082011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4509
4510 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4511 (objc_detect_field_duplicates): New.
0dc33c3c 4512 * stub-objc.c: Likewise.
3c0d13bf 4513
c59633d9
NP
45142011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4515
4516 * stub-objc.c (objc_declare_protocols): Renamed to
4517 objc_declare_protocol.
4518 * c-objc.h: Likewise.
3c0d13bf 4519
32dabdaf
NP
45202011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4521
4522 * stub-objc.c (objc_declare_class): Updated argument name.
4523
81f653d6
NF
45242011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4525
4526 * c-common.h (c_common_init_ts): Declare.
4527 * c-common.c (c_common_init_ts): Define.
4528
eb345401
NP
45292011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4530
4531 * c-objc.h (objc_build_message_expr): Updated prototype.
4532 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4533
a358e188
MJ
45342011-04-12 Martin Jambor <mjambor@suse.cz>
4535
4536 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4537 of cgraph_node.
4538
e6313a78
RG
45392011-04-11 Richard Guenther <rguenther@suse.de>
4540
4541 * c-common.c (complete_array_type): Build a range type of
4542 proper type.
4543
dcf0c47e
NF
45442011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4545
4546 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4547 (handle_type_generic_attribute): Likewise.
4548
1ee44b26
JM
45492011-04-07 Jason Merrill <jason@redhat.com>
4550
4551 PR c++/48450
4552 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4553 conversion from C++0x scoped enum.
4554
acce4e77
JM
45552011-04-06 Joseph Myers <joseph@codesourcery.com>
4556
4557 * c-target-def.h: New file.
4558 * c-target.def: New file.
4559 * c-target.h: New file.
4560 * c-common.c (targetcm): Don't define here.
4561 * c-common.h (default_handle_c_option): Declare.
4562 * c-format.c: Include c-target.h instead of target.h.
4563 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4564 include tm.h.
4565 (default_handle_c_option): Move from targhooks.c.
4566
e2eefb55
JJ
45672011-03-29 Jakub Jelinek <jakub@redhat.com>
4568
4569 PR preprocessor/48248
4570 * c-ppoutput.c (print): Add src_file field.
4571 (init_pp_output): Initialize it.
4572 (maybe_print_line): Don't optimize by adding up to 8 newlines
4573 if map->to_file and print.src_file are different file.
4574 (print_line): Update print.src_file.
4575
ba78087b
KT
45762011-03-25 Kai Tietz <ktietz@redhat.com>
4577
4578 * c-ada-spec.c (compare_comment): Use filename_cmp
4579 instead of strcmp for filename.
4580
0edf1bb2
JL
45812011-03-25 Jeff Law <law@redhat.com>
4582
adfac8df 4583 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4584
c7dc8804
JM
45852011-03-25 Jason Merrill <jason@redhat.com>
4586
4587 * c.opt: Add -std=c++03.
4588
d1d879b1
EB
45892011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4590
4591 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4592
62d784f7
KT
45932011-03-17 Kai Tietz
4594
4595 PR target/12171
5050afdf
KT
4596 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4597 Display allowed attributes for function pointer types.
4598 (pp_c_attributes_display): New function to display
4599 attributes having affects_type_identity flag set to true.
4600 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4601
62d784f7
KT
4602 * c-common.c (c_common_attribute_table):
4603 Add new element.
4604 (c_common_format_attribute_table): Likewise.
4605
82d37118
JM
46062011-03-18 Jason Merrill <jason@redhat.com>
4607
49a000c3
JM
4608 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4609 * c-common.h: Don't declare it here.
4610 * c-common.c: Or define it here.
4611 * c-opts.c (c_common_handle_option): Or set it here.
4612
82d37118
JM
4613 PR c++/35315
4614 * c-common.c (handle_transparent_union_attribute): Don't
4615 make a duplicate type in C++.
4616
17bc631c
JM
46172011-03-15 Jason Merrill <jason@redhat.com>
4618
4619 * c-common.c (max_constexpr_depth): New.
4620 * c-common.h: Declare it.
4621 * c-opts.c (c_common_handle_option): Set it.
4622 * c.opt (fconstexpr-depth): New option.
4623
1b9b91a6
JM
46242011-03-11 Jason Merrill <jason@redhat.com>
4625
f231b5ff
JM
4626 * c-common.c (attribute_takes_identifier_p): Add missing const.
4627
1b9b91a6
JM
4628 PR c++/46803
4629 * c-common.c (attribute_takes_identifier_p): Assume that an
4630 unknown attribute takes an identifier.
4631
a19e4d44
NF
46322011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4633
4634 PR c/47786
4635 * c-common.c (c_type_hash): Call list_length instead of iterating
4636 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4637
982d62f6
JJ
46382011-02-19 Jakub Jelinek <jakub@redhat.com>
4639
4640 PR c/47809
4641 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4642
0a256240
NP
46432011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4644
4645 * c.opt (fobjc-abi-version=) New.
4646 (fobjc-nilcheck): New.
4647
ba9e6dd5
NF
46482011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4649
4650 PR c++/46890
4651 * c-common.h (keyword_is_decl_specifier): Declare.
4652 * c-common.c (keyword_is_decl_specifier): Define.
4653 (keyword_is_function_specifier): New function.
4654
7273813a
JJ
46552011-01-26 Jakub Jelinek <jakub@redhat.com>
4656
4657 PR c/47473
4658 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4659 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4660 REAL_TYPE.
4661
908ef79b
AC
46622011-01-26 Arnaud Charlet <charlet@adacore.com>
4663
4664 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4665
237e9384
JJ
46662011-01-26 Jakub Jelinek <jakub@redhat.com>
4667
4668 PR pch/47430
4669 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4670 after init_c_lex if pch_file is set.
4671
47ea1edf
DK
46722011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4673
d4dba752 4674 PR c++/43601
47ea1edf
DK
4675 * c.opt (-fkeep-inline-dllexport): New switch.
4676
2aa9c6ae
RG
46772011-01-12 Richard Guenther <rguenther@suse.de>
4678
4679 PR middle-end/32511
4680 * c-common.c (handle_weak_attribute): Warn instead of error
4681 on declaring an inline function weak.
4682
7bd11157
TT
46832011-01-05 Tom Tromey <tromey@redhat.com>
4684
4685 * c-common.h (lvalue_error): Update.
4686 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4687 not error.
4688
0e66e494 46892010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4690
b4f588c4
NP
4691 PR objc/47075
4692 * c-objc.h (objc_finish_message_expr): Added argument to
4693 prototype.
4694
f4da8dce
NF
46952010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4696
4697 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4698 Use prototype_p.
4699
46270f14
NP
47002010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4701
4702 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4703 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4704
4816c593
NF
47052010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4706
4707 * c-common.h (readonly_error): Declare.
4708 * c-common.c (readonly_error): Define.
4709
7a6daeb0
NF
47102010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4711
4712 * c-common.h (invalid_indirection_error): Declare.
4713 * c-common.c (invalid_indirection_error): Define.
4714
892f6119
RG
47152010-12-03 Richard Guenther <rguenther@suse.de>
4716
4717 PR c/46745
4718 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4719 (pp_c_unary_expression): Likewise.
4720 (pp_c_expression): Likewise.
4721
6c39e757
NP
47222010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4723
4724 * c-common.h (objc_finish_function): New.
4725 (objc_non_volatilized_type): Removed.
4726 (objc_type_quals_match): Removed.
4727 * stub-objc.c (objc_finish_function): New.
4728 (objc_non_volatilized_type): Removed.
4729 (objc_type_quals_match): Removed.
9faeb493 4730
7c475d11
JM
47312010-11-30 Joseph Myers <joseph@codesourcery.com>
4732
4733 * c-common.h (parse_optimize_options): Declare.
4734 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4735 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4736
71f3e391
JM
47372010-11-29 Joseph Myers <joseph@codesourcery.com>
4738
4739 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4740 GET_ENVIRONMENT.
4741 * c-pch.c (O_BINARY): Don't define here.
4742 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4743
d5fabb58
JM
47442010-11-25 Joseph Myers <joseph@codesourcery.com>
4745
4746 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4747 targetm.except_unwind_info.
4748
299404a1
JM
47492010-11-23 Joseph Myers <joseph@codesourcery.com>
4750
4751 * c-opts.c (c_common_handle_option): Pass location to
4752 set_struct_debug_option.
4753
c98cd5bf
JM
47542010-11-23 Joseph Myers <joseph@codesourcery.com>
4755
4756 * c-common.c (visibility_options): Move from ../opts.c.
4757 * c-common.h (struct visibility_flags, visibility_options):
4758 Declare here.
4759 * c-opts.c (finish_options): Rename to c_finish_options.
4760 (c_common_init): Update call to finish_options.
4761
a9546771
NP
47622010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4763
4764 PR objc/34033
4765 * c-lex.c (lex_string): Check that each string in an Objective-C
4766 string concat sequence starts with either one or zero '@', and
4767 that there are no spurious '@' signs at the end.
4768
24a57808
JM
47692010-11-20 Joseph Myers <joseph@codesourcery.com>
4770
4771 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4772 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4773 HANDLE_PRAGMA_VISIBILITY.
4774 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4775 HANDLE_PRAGMA_VISIBILITY): Don't define.
4776 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4777
a9aa2c3a
NF
47782010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4779
4780 PR c++/16189
4781 PR c++/36888
4782 PR c++/45331
4783 * c-common.h (keyword_begins_type_specifier): Declare.
4784 (keyword_is_storage_class_specifier): Declare.
4785 (keyword_is_type_qualifier): Declare.
4786 * c-common.c (keyword_begins_type_specifier): New function.
4787 (keyword_is_storage_class_specifier): New function.
4788 (keyword_is_type_qualifier): Declare.
4789
5386338c
JM
47902010-11-19 Joseph Myers <joseph@codesourcery.com>
4791
4792 PR c/46547
4793 * c-common.c (in_late_binary_op): Define.
4794 (c_common_truthvalue_conversion): Check in_late_binary_op before
4795 calling c_save_expr.
4796 * c-common.h (in_late_binary_op): Declare.
4797
69ccdddb
JM
47982010-11-19 Joseph Myers <joseph@codesourcery.com>
4799
4800 * c-opts.c (c_common_handle_option): Update calls to
4801 set_struct_debug_option.
4802
6b192a09
NP
48032010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4804
4805 * c-common.h (objc_declare_protocols): Added additional argument.
4806 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4807
fb52b50a
NF
48082010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4809
4810 PR c/33193
4811 * c-common.h (build_real_imag_expr): Declare.
4812 * c-semantics.c (build_real_imag_expr): Define.
4813
b37421c6
JM
48142010-11-17 Joseph Myers <joseph@codesourcery.com>
4815
4816 * c-opts.c (c_common_parse_file): Take no arguments.
4817 * c-common.h (c_common_parse_file): Update prototype.
4818
07078664
JJ
48192010-11-16 Jakub Jelinek <jakub@redhat.com>
4820
4821 PR c++/46401
4822 * c-common.c (warning_candidate_p): Don't track non-const calls
4823 or STRING_CSTs.
4824
c6a13190
ILT
48252010-11-15 Ian Lance Taylor <iant@google.com>
4826
4827 * c-lex.c (init_c_lex): Set macro debug callbacks if
4828 flag_dump_go_spec is set.
4829
925e8657
NP
48302010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4831
4832 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4833 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4834
bb0a9581
NF
48352010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4836
4837 PR preprocessor/45038
4838 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4839 dialects.
4840
c5fa0890
JM
48412010-11-12 Joseph Myers <joseph@codesourcery.com>
4842
4843 * c-common.h (c_family_lang_mask): Declare.
4844 * c-opts.c (c_family_lang_mask): Make extern.
4845 * c-pragma.c (handle_pragma_diagnostic): Use
4846 control_warning_option.
4847
a4d8c676
JM
48482010-11-12 Joseph Myers <joseph@codesourcery.com>
4849
4850 * c-common.c (parse_optimize_options): Update call to
4851 decode_options.
4852 * c-common.h (c_common_handle_option): Update prototype.
4853 * c-opts.c (c_common_handle_option): Take location_t parameter and
4854 pass it to other functions.
4855
f954bd2c
JM
48562010-11-11 Joseph Myers <joseph@codesourcery.com>
4857
4858 * c-opts.c (warning_as_error_callback): Remove.
4859 (c_common_initialize_diagnostics): Don't call
4860 register_warning_as_error_callback.
4861 (c_common_handle_option): Handle -Werror=normalized= here.
4862
d8a07487
JM
48632010-11-10 Joseph Myers <joseph@codesourcery.com>
4864
4865 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4866 in diagnostic.
4867 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4868 letter.
4869 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4870 Remove trailing '.' from diagnostics.
4871 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4872
d5478783
JM
48732010-11-10 Joseph Myers <joseph@codesourcery.com>
4874
4875 * c-common.c (parse_optimize_options): Pass global_dc to
4876 decode_options.
4877 * c-opts.c (c_common_handle_option): Pass &global_options to
4878 set_Wstrict_aliasing.
4879 * c.opt (v): Don't mark Common or document here.
4880
91ebb981
IS
48812010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4882
4883 PR target/44981
4884 * c-format.c (format_type): New type gcc_objc_string_format_type.
4885 (valid_stringptr_type_p): New.
4886 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4887 (check_format_string): Pass expected type, use
91ebb981
IS
4888 valid_stringptr_type_p (), check that the format string types are
4889 consistent with the format specification.
4890 (decode_format_attr): Warn if NSString is used outside objective-c.
4891 (format_types_orig): Add NSString.
4892 (format_name): New.
4893 (format_flags): New.
4894 (check_format_arg): Handle format strings requiring an external parser.
4895 first_target_format_type: New variable.
4896 (handle_format_attribute): Set up first_target_format_type, pass the
4897 expected format arg string type to check_format_string().
4898 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4899 * stub-objc.c (objc_string_ref_type_p): New.
4900 (objc_check_format_arg): New.
4901
bede2adc
NP
49022010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4903
9faeb493 4904 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4905 * c-common.h (objc_build_class_component_ref): New.
4906 * stub-objc.c (objc_build_class_component_ref): New.
4907
9a179d01
NP
49082010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4909
4910 * c.opt (Wproperty-assign-default): New option.
4911
22d8d616
NP
49122010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4913
4914 Implemented -fobjc-std=objc1 flag.
4915 * c.opt (fobjc-std=objc1): New option.
4916
2debdb4f
NP
49172010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4918
4919 Implemented format and noreturn attributes for Objective-C methods.
4920 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4921 attribute for Objective-C methods.
4922
ec52b111
JM
49232010-10-31 Jason Merrill <jason@redhat.com>
4924
4925 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4926 EXPR_LOC_OR_HERE.
4927
46a88c12
NP
49282010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4929
4930 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4931 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4932 (objc_add_property_declaration): Removed arguments for copies and
4933 ivar.
4934 (objc_build_getter_call): Renamed to
4935 objc_maybe_build_component_ref.
4936 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4937 (objc_is_property_ref): New.
4938 * c-common.c (c_common_reswords): Removed copies and ivar.
4939 * stub-objc.c (objc_add_property_declaration): Removed arguments
4940 for copies and ivar.
4941 (objc_build_getter_call): Renamed to
4942 objc_maybe_build_component_ref.
4943 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4944 (objc_is_property_ref): New.
9faeb493 4945
1e4bf85b
AC
49462010-10-29 Arnaud Charlet <charlet@adacore.com>
4947 Matthew Gingell <gingell@adacore.com>
4948
4949 * c-ada-spec.c (separate_class_package): New function.
4950 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4951 name of their enclosing package.
4952 (print_ada_declaration): Use separate_class_package.
4953
81f0bab2
JM
49542010-10-27 Jason Merrill <jason@redhat.com>
4955
2b08f2c5
JM
4956 * c-common.c (c_common_reswords): Add __is_literal_type.
4957 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4958
81f0bab2
JM
4959 * c-common.c (check_case_value): Remove special C++ code.
4960
200290f2
NP
49612010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4962
4963 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4964 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4965 and RID_LAST_PATTR.
4966 (objc_add_property_declaration): Added additional arguments.
4967 (objc_property_attribute_kind): Removed.
4968 (objc_set_property_attr): Removed.
4969 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4970 copy and nonatomic.
4971 * stub-objc.c (objc_add_property_declaration): Added additional
4972 arguments.
4973 (objc_set_property_attr): Removed.
9faeb493 4974
f614132b
NP
49752010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4976
4977 * c-common.h (objc_add_property_variable): Renamed to
4978 objc_add_property_declaration. Added location argument.
4979 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 4980
b8a18805
NP
49812010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4982
4983 * c-common.h (objc_maybe_printable_name): New.
4984 * stub-objc.c (objc_maybe_printable_name): New.
4985
30cd1c5d
AS
49862010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4987 Andrew Pinski <pinskia@gmail.com>
4988
4989 * c-common.h (c_common_mark_addressable_vec): Declare.
4990 * c-common.c (c_common_mark_addressable_vec): New function.
4991
249a82c4
NP
49922010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4993
4994 * c-common.h (objc_set_method_type): Removed.
4995 (objc_add_method_declaration): Added boolean argument.
4996 (objc_start_method_definition): Same change.
4997 (objc_build_method_signature): Same change.
4998 * stub-objc.c (objc_set_method_type): Removed.
4999 (objc_add_method_declaration): Added boolean argument.
5000 (objc_start_method_definition): Same change.
5001 (objc_build_method_signature): Same change.
5002
977e30bc
NP
50032010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5004
5005 * c-common.h (finish_file): Removed.
5006 (objc_write_global_declarations): New.
5007 * c-opts.c (c_common_parse_file): Do not call finish_file.
5008 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 5009
da57d1b9
NP
50102010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5011
5012 Implemented parsing @synthesize and @dynamic for
5013 Objective-C/Objective-C++.
5014 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5015 (objc_add_synthesize_declaration): New.
5016 (objc_add_dynamic_declaration): New.
5017 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5018 * stub-objc.c (objc_add_synthesize_declaration): New.
5019 (objc_add_dynamic_declaration): New.
9faeb493 5020
0069111f
MM
50212010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5022
5023 PR target/46041
5024 * c-cppbuiltin.c (mode_has_fma): Move function here from
5025 builtins.c. Don't use the fma optab, instead just use the
5026 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5027 using -save-temps.
5028
e426b47b
NP
50292010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5030
5031 Merge from 'apple/trunk' branch on FSF servers.
0069111f 5032
e426b47b
NP
5033 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5034
9faeb493 5035 Radar 4330422
e426b47b
NP
5036 * c-common.h (objc_non_volatilized_type): New declaration
5037 * stub-objc.c (objc_non_volatilized_type): New stub.
5038
90fbfdc3
NP
50392010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5040
e426b47b 5041 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5042
5043 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5044
9faeb493 5045 Radar 4133425
90fbfdc3 5046 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5047 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5048
c37d8c30
IS
50492010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5050
5051 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5052 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5053 (objc_ivar_visibility_kind): New enum.
5054 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5055 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5056 visibility enum.
5057
1b1562a5
MM
50582010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5059
5060 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5061 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5062 has the appropriate fma builtins.
5063 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5064
668ea4b1
IS
50652010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5066
1b1562a5 5067 merge from FSF apple 'trunk' branch.
668ea4b1 5068 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5069
668ea4b1
IS
5070 Radars 4436866, 4505126, 4506903, 4517826
5071 * c-common.c (c_common_resword): Define @property and its attributes.
5072 * c-common.h: Define property attribute enum entries.
5073 (OBJC_IS_PATTR_KEYWORD): New.
5074 (objc_property_attribute_kind): New enum.
5075 Declare objc_set_property_attr (), objc_add_property_variable (),
5076 objc_build_getter_call () and objc_build_setter_call ().
5077 * stub-objc.c (objc_set_property_attr): New stub.
5078 (objc_add_property_variable): Likewise.
5079 (objc_build_getter_call): Likewise.
5080 (objc_build_setter_call) Likewise.
1b1562a5 5081
a1178b30
IS
50822010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5083
1b1562a5 5084 merge from FSF apple 'trunk' branch.
a1178b30
IS
5085 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5086
5087 Radar 3803157 (method attributes)
5088 * c-common.c (handle_deprecated_attribute): Recognize
5089 objc methods as valid declarations.
5090 * c-common.h: Declare objc_method_decl ().
1b1562a5 5091 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5092
a75bfaa6
JM
50932010-10-08 Joseph Myers <joseph@codesourcery.com>
5094
5095 * c-common.c (parse_optimize_options): Call
5096 decode_cmdline_options_to_array_default_mask before
5097 decode_options. Update arguments to decode_options.
5098 * c-common.h (c_common_init_options_struct): Declare.
5099 * c-opts.c (c_common_init_options_struct): New. Split out from
5100 c_common_init_options.
5101
f05b9d93
NP
51022010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5103
5104 Implemented fast enumeration for Objective-C.
5105 * c-common.h (objc_finish_foreach_loop): New.
5106 * stub-objc.c (objc_finish_foreach_loop): New.
5107
1ebe4b4f
JM
51082010-10-05 Joseph Myers <joseph@codesourcery.com>
5109
5110 * c-common.h (struct diagnostic_context): Don't declare here.
5111 (c_common_initialize_diagnostics): Declare using
5112 diagnostic_context typedef.
5113 * c-opts.c (c_common_handle_option): Pass global_dc to
5114 handle_generated_option.
5115
d4d24ba4
JM
51162010-10-04 Joseph Myers <joseph@codesourcery.com>
5117
5118 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5119 handle_generated_option.
5120
478a1c5b
ILT
51212010-10-03 Ian Lance Taylor <iant@google.com>
5122
5123 * c.opt (-fplan9-extensions): New option.
5124
82a1c2fe
FXC
51252010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5126
5127 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5128 Remove.
5129 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5130 of duplicating code.
5131
92902b1b
IS
51322010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5133
5134 * c-common.c: Add two new entries for @optional
5135 and @required keywords.
5136
5137 merge from FSF 'apple/trunk' branch.
5138 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5139
5140 Radar 4386773
5141 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5142 objective-c keywords.
5143 (objc_set_method_opt): New declaration.
5144 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5145
46625112
JM
51462010-09-30 Joseph Myers <joseph@codesourcery.com>
5147
5148 * c-common.c (handle_optimize_attribute): Pass &global_options to
5149 cl_optimization_save and cl_optimization_restore.
5150 * c-opts.c (c_common_handle_option): Pass &global_options to
5151 handle_generated_option.
5152 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5153 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5154 &global_options to cl_optimization_restore.
5155
49b91f05
NP
51562010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5157
5158 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5159 Objective-C/Objective-C++ keywords.
5160
13ed556f 51612010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5162
9faeb493
UB
5163 Merge from 'apple/trunk' branch on FSF servers.
5164
a6341d57
NP
5165 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5166
5167 Radar 4281748
5168 * c-common.h (objc_check_global_decl): New declaration.
5169 * stub-objc.c (objc_check_global_decl): New stub.
5170
f0036cca
JM
51712010-09-29 Joseph Myers <joseph@codesourcery.com>
5172
5173 * c.opt: Don't use VarExists.
5174
e3339d0f
JM
51752010-09-29 Joseph Myers <joseph@codesourcery.com>
5176
5177 * c-common.c (c_cpp_error): Update names of diagnostic_context
5178 members.
5179 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5180 cl_optimization members.
5181 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5182 sanitize_cpp_opts, finish_options): Update names of cpp_options
5183 members.
5184
1973201f
NP
51852010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5186
5187 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5188 (objc_is_reserved_word): Removed.
5189 * c-common.c: Updated comments.
5190 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5191 objc_is_reserved_word.
5192 * stub-objc.c (objc_is_reserved_word): Removed.
5193
f7e71da5
IS
51942010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5195
9faeb493 5196 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5197 include attributes.
5198 (objc_start_method_definition): Likewise.
5199 (objc_build_keyword_decl): Likewise.
5200 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5201 (objc_start_method_definition): Likewise.
5202 (objc_build_keyword_decl): Likewise.
5203
c165dca7
IS
52042010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5205
5206 * c-common.h (objc_start_class_interface): Adjust prototype.
5207 (objc_start_category_interface): Likewise.
5208 (objc_start_protocol): Likewise.
5209 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5210 (objc_start_class_interface): Likewise.
5211 (objc_start_category_interface): Likewise.
5212
7458026b
ILT
52132010-09-27 Ian Lance Taylor <iant@google.com>
5214
5215 * c-common.c (c_common_attribute_table): Add no_split_stack.
5216 (handle_no_split_stack_attribute): New static function.
5217
b581b85b
NP
52182010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5219
9faeb493 5220 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5221
5222 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5223
9faeb493 5224 Radar 4229905
b581b85b
NP
5225 * c-common.h (objc_have_common_type): New declaration.
5226 * stub-objc.c (objc_have_common_type): New stub.
5227
5228 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5229
5230 Radar 4154928
5231 * c-common.h (objc_common_type): New prototype.
9faeb493 5232 * stub-objc.c (objc_common_type): New stub.
b581b85b 5233
46a4da10
JH
52342010-09-24 Jan Hubicka <jh@suse.cz>
5235
5236 * c-common.c (handle_leaf_attribute): New function.
5237 (struct attribute_spec c_common_att): Add leaf.
5238
e200444e
JM
52392010-09-22 Joseph Myers <joseph@codesourcery.com>
5240
5241 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5242 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5243 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5244 -include-barrier, -include-directory, -include-directory=,
5245 -include-directory-after, -include-directory-after=,
5246 -include-prefix, -include-prefix=, -include-with-prefix,
5247 -include-with-prefix=, -include-with-prefix-after,
5248 -include-with-prefix-after=, -include-with-prefix-before,
5249 -include-with-prefix-before=, -no-integrated-cpp,
5250 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5251 -output=, -pedantic, -pedantic-errors, -preprocess,
5252 -print-missing-file-dependencies, -trace-includes, -traditional,
5253 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5254 -user-dependencies, -verbose, -write-dependencies,
5255 -write-user-dependencies, no-integrated-cpp, traditional): New.
5256
29a80ea6
NP
52572010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5258
5259 PR objc/23710
ac1fc2fc
NP
5260 * c-common.h (objc_start_method_definition): Return bool instead
5261 of void.
5262 * stub-objc.c (objc_start_method_definition): Return bool instead
5263 of void.
5264
52652010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5266
5267 PR objc/25965
5268 * c-common.h (objc_get_interface_ivars): New declaration.
5269 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5270
de621752
ILT
52712010-09-15 Ian Lance Taylor <iant@google.com>
5272
5273 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5274 messages. Remove period at end of warning message.
de621752 5275
ba885ec5
NS
52762010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5277
5278 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5279 (handle_alias_attribute): ... here.
5280 (handle_ifunc_attribute): New.
5281
c5ee1358
MM
52822010-09-06 Mark Mitchell <mark@codesourcery.com>
5283
5284 * c-common.h (do_warn_double_promotion): Declare.
5285 * c-common.c (do_warn_double_promotion): Define.
5286
0a0b3574
MM
52872010-09-05 Mark Mitchell <mark@codesourcery.com>
5288
5289 * c.opt (Wdouble-promotion): New.
5290
d1779886
JM
52912010-09-02 Joseph Myers <joseph@codesourcery.com>
5292
5293 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5294 fvtable-thunks, fxref): Mark no longer supported in help text.
5295
2d2bd949
JM
52962010-09-02 Joseph Myers <joseph@codesourcery.com>
5297
5298 * c.opt (Wimport, fall-virtual, falt-external-templates,
5299 fdefault-inline, fenum-int-equiv, fexternal-templates,
5300 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5301 fname-mangling-version-, fnew-abi, fnonnull-objects,
5302 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5303 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5304 applicable.
5305 (fhandle-exceptions): Mark with Alias and Warn.
5306 * c-opts.c (c_common_handle_option): Don't handle options marked
5307 as ignored.
5308
5de8299c
JM
53092010-09-02 Joseph Myers <joseph@codesourcery.com>
5310
5311 * c.opt (Wcomments, Werror-implicit-function-declaration,
5312 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5313 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5314 aliases.
5315 * c-common.c (option_codes): Use OPT_Wcomment instead of
5316 OPT_Wcomments.
5317 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5318 Don't handle options marked as aliases.
5319
0ceb0201
RG
53202010-08-25 Richard Guenther <rguenther@suse.de>
5321
5322 * c-common.c (c_common_get_alias_set): Remove special
5323 handling for pointers.
5324
ac47786e
NF
53252010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5326
5327 * c-common.c: Use FOR_EACH_VEC_ELT.
5328 * c-gimplify.c: Likewise.
5329 * c-pragma.c: Likewise.
5330
c878765b
JM
53312010-08-16 Joseph Myers <joseph@codesourcery.com>
5332
5333 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5334 RejectDriver.
5335 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5336 RejectDriver.
5337 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5338 instead of OPT_MDX and OPT_MMDX.
5339
603349bf
JM
53402010-08-16 Joseph Myers <joseph@codesourcery.com>
5341
5342 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5343
644fa7ac
JM
53442010-08-12 Joseph Myers <joseph@codesourcery.com>
5345
5346 * c.opt (MD, MMD): Change to MDX and MMDX.
5347 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5348
481e1176
JM
53492010-08-11 Joseph Myers <joseph@codesourcery.com>
5350
5351 * c-opts.c (c_common_handle_option): Call handle_generated_option
5352 instead of handle_option.
5353
ac8dc9f7
NF
53542010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5355
5356 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5357 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5358
4f8c876d
NF
53592010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5360
5361 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5362 (pending_redefine_extname): Change type to a VEC.
5363 (add_to_renaming_pragma_list): Update for new type of
5364 pending_redefine_extname.
ac8dc9f7 5365 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5366
3b0c690e
AC
53672010-08-04 Arnaud Charlet <charlet@adacore.com>
5368
5369 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5370 visited.
5371 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5372 decide whether a type has already been declared/seen.
5373 Do not go to the original type.
5374 (dump_nested_types): New parameter forward.
5375 Generate forward declaration if needed and mark type as visited.
5376 (print_ada_declaration): Call dump_nested_types if not already done.
5377 Mark types as visited.
5378
1890bccc
JM
53792010-08-03 Joseph Myers <joseph@codesourcery.com>
5380
5381 * c.opt (-print-pch-checksum): Remove option.
5382 * c-opts.c (c_common_handle_option): Don't handle
5383 OPT_print_pch_checksum.
5384
5f20c657
JM
53852010-07-27 Joseph Myers <joseph@codesourcery.com>
5386
5387 * c-common.h (c_common_handle_option): Update prototype and return
5388 value type.
5389 * c-opts.c (c_common_handle_option): Update prototype and return
5390 value type. Update calls to handle_option and
5391 enable_warning_as_error.
5392
f551f80c
JJ
53932010-07-27 Jakub Jelinek <jakub@redhat.com>
5394
5395 PR c/45079
5396 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5397
61ff2bdc
JM
53982010-07-27 Joseph Myers <joseph@codesourcery.com>
5399
5400 * c-common.h (c_common_missing_argument): Remove.
5401 * c-opts.c (c_common_missing_argument): Remove.
5402 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5403 idirafter, imacros, include, isysroot, isystem, iquote): Add
5404 MissingArgError.
5405 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5406
7a9bf9a4
JM
54072010-07-27 Joseph Myers <joseph@codesourcery.com>
5408
5409 * c-common.h (c_common_option_lang_mask,
5410 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5411 New.
5412 (c_common_init_options): Update prototype.
5413 * c-opts.c (c_common_option_lang_mask): New.
5414 (c_common_initialize_diagnostics): Split out of
5415 c_common_init_options.
5416 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5417 New.
5418 (c_common_init_options): Update prototype. Use decoded options in
5419 search for -lang-asm.
5420
910ad8de
NF
54212010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5422
5423 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5424 * c-format.c: Likewise.
5425
718f9c0f
MLI
54262010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5427
5428 * c-common.h: Include diagnostic-core.h. Error if already
5429 included.
5430 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5431
4d451982
MLI
54322010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5433
adfac8df 5434 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5435 Do not include expr.h
5436 (vector_mode_valid_p): Move here.
5437
119fe915
SB
54382010-06-21 DJ Delorie <dj@redhat.com>
5439
5440 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5441 allow these pragmas anywhere.
5442
54432010-06-14 Jakub Jelinek <jakub@redhat.com>
5444
5445 PR bootstrap/44509
5446 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5447 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5448 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5449 ggc_strdup instead of xstrdup.
5450
54512010-06-10 Jakub Jelinek <jakub@redhat.com>
5452
5453 * c-cppbuiltin.c: Include cpp-id-data.h.
5454 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5455 (lazy_hex_fp_value): New function.
5456 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5457
6662d794
MLI
54582010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5459
5460 * c-gimplify.c: Do not include tree-flow.h
5461
38f8b050
JR
54622010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5463
5464 PR other/44034
5465 * c-common.c: Rename targetm member:
5466 targetm.enum_va_list -> targetm.enum_va_list_p
5467
9589f23e
AS
54682010-06-28 Anatoly Sokolov <aesok@post.ru>
5469
5470 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5471
3b06d379
SB
54722010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5473
5474 * c-cppbuiltin.c: Do not include except.h.
5475
d166d4c3
AK
54762010-06-24 Andi Kleen <ak@linux.intel.com>
5477
9faeb493
UB
5478 * c-common.c (warn_for_omitted_condop): New.
5479 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5480
70cb8be6
JM
54812010-06-21 Joseph Myers <joseph@codesourcery.com>
5482
5483 * c.opt (lang-objc): Remove.
5484 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5485
a4c97feb
JR
54862010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5487
5488 * c-opts.c: Include "tm_p.h".
5489
6e2f1956
JM
54902010-06-20 Joseph Myers <joseph@codesourcery.com>
5491
5492 * c-common.c (parse_optimize_options): Update call to
5493 decode_options.
5494
bc87224e
NF
54952010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5496
5497 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5498 new type of types_used_by_cur_var_decl.
5499
b49cf425
JR
55002010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5501
5502 PR bootstrap/44512
5503 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5504 for C++ standard compliance.
5505
59f9c2ed
JM
55062010-06-16 Jason Merrill <jason@redhat.com>
5507
5508 * c.opt: Add -Wnoexcept.
5509
33766b66
RG
55102010-06-16 Richard Guenther <rguenther@suse.de>
5511
5512 PR c/44555
5513 * c-common.c (c_common_truthvalue_conversion): Remove
5514 premature and wrong optimization concering ADDR_EXPRs.
5515
eff7e30c
AC
55162010-06-15 Arnaud Charlet <charlet@adacore.com>
5517
5518 * c-ada-spec.c (dump_sloc): Remove column info.
5519 (is_simple_enum): New function.
5520 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5521 enum types when relevant.
5522
6312e84d
MLI
55232010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5524
9faeb493 5525 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5526 location.
5527
1cb42611
JM
55282010-06-10 Joseph Myers <joseph@codesourcery.com>
5529
5530 * c-opts.c (c_common_handle_option): Don't handle
5531 OPT_fshow_column.
5532
a9429e29
LB
55332010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5534
5535 * c-pragma.c (push_alignment): Use typed GC allocation.
5536 (handle_pragma_push_options): Likewise.
5537
5538 * c-common.c (parse_optimize_options): Likewise.
5539
5540 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5541 option.
5542
5498f011
JM
55432010-06-07 Joseph Myers <joseph@codesourcery.com>
5544
5545 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5546 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5547 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5548 flag_signed_bitfields, warn_strict_null_sentinel,
5549 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5550 flag_gen_declaration, flag_no_gnu_keywords,
5551 flag_implement_inlines, flag_implicit_templates,
5552 flag_implicit_inline_templates, flag_optional_diags,
5553 flag_elide_constructors, flag_default_inline, flag_rtti,
5554 flag_conserve_space, flag_access_control, flag_check_new,
5555 flag_new_for_scope, flag_weak, flag_working_directory,
5556 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5557 flag_enforce_eh_specs, flag_threadsafe_statics,
5558 flag_pretty_templates): Remove.
5559 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5560 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5561 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5562 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5563 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5564 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5565 flag_no_gnu_keywords, flag_implement_inlines,
5566 flag_implicit_templates, flag_implicit_inline_templates,
5567 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5568 flag_rtti, flag_conserve_space, flag_access_control,
5569 flag_check_new, flag_new_for_scope, flag_weak,
5570 flag_working_directory, flag_use_cxa_atexit,
5571 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5572 flag_threadsafe_statics, flag_pretty_templates,
5573 warn_strict_null_sentinel): Remove.
5574 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5575 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5576 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5577 fimplicit-inline-templates, fimplicit-templates,
5578 flax-vector-conversions, fms-extensions, fnil-receivers,
5579 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5580 frtti, fshort-double, fshort-enums, fshort-wchar,
5581 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5582 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5583 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5584 gen-decls, undef): Use Var.
5585 (fdefault-inline, foptional-diags): Document as doing nothing.
5586 * c-opts.c (c_common_handle_option): Remove cases for options now
5587 using Var. Mark ignored options as such.
5588
39dabefd
SB
55892010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5590
9faeb493 5591 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5592 * c-common.def: Likewise.
5593 * c-common.h: Likewise.
5594 * c-cppbuiltin.c: Likewise.
5595 * c-dump.c: Likewise.
5596 * c-format.c: Likewise.
5597 * c-format.h : Likewise.
5598 * c-gimplify.c: Likewise.
5599 * c-lex.c: Likewise.
5600 * c-omp.c: Likewise.
5601 * c.opt: Likewise.
5602 * c-opts.c: Likewise.
5603 * c-pch.c: Likewise.
5604 * c-ppoutput.c: Likewise.
5605 * c-pragma.c: Likewise.
5606 * c-pragma.h: Likewise.
5607 * c-pretty-print.c: Likewise.
5608 * c-pretty-print.h: Likewise.
5609 * c-semantics.c: Likewise.
5610 * stub-objc.c: Likewise.
5611
5612 * c-common.c: Include gt-c-family-c-common.h.
5613 * c-pragma.c: Include gt-c-family-c-pragma.h.
5614\f
5624e564 5615Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5616
5617Copying and distribution of this file, with or without modification,
5618are permitted in any medium without royalty provided the copyright
5619notice and this notice are preserved.