]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
typo
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
d9a6bd32
JJ
12015-10-13 Jakub Jelinek <jakub@redhat.com>
2 Aldy Hernandez <aldyh@redhat.com>
3
4 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
5 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
6 (c_define_builtins): Likewise.
7 * c-common.h (enum c_omp_clause_split): Add
8 C_OMP_CLAUSE_SPLIT_TASKLOOP.
9 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
10 (c_finish_omp_for): Add ORIG_DECLV argument.
11 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
12 201511 instead of 201307.
13 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
14 OMP_CRITICAL_CLAUSES to it.
15 (c_finish_omp_ordered): Add CLAUSES argument, set
16 OMP_ORDERED_CLAUSES to it.
17 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
18 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
19 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
20 constructs and new OpenMP 4.5 clauses. Clear
21 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
22 verification code.
23 * c-pragma.c (omp_pragmas_simd): Add taskloop.
24 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
25 (enum pragma_omp_clause): Add
26 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
27 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
28
624d31fe
RS
292015-10-05 Richard Sandiford <richard.sandiford@arm.com>
30
31 * c-lex.c (interpret_float): Use real_equal instead of
32 REAL_VALUES_EQUAL.
33
b8fd7909
JM
342015-10-04 Jason Merrill <jason@redhat.com>
35
36 Implement N4514, C++ Extensions for Transactional Memory.
37 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
38 (c_common_attribute_table): Add transaction_safe_dynamic.
39 transaction_safe now affects type identity.
40 (handle_tm_attribute): Handle transaction_safe_dynamic.
41 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
42 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
43 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
44 (D_TRANSMEM): New.
45 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
46 * c-pretty-print.c (pp_c_attributes_display): Don't print
47 transaction_safe in C++.
48
12651878
MP
492015-10-02 Marek Polacek <polacek@redhat.com>
50
51 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
52
3e3b8d63
MP
532015-10-02 Marek Polacek <polacek@redhat.com>
54
55 PR c/64249
56 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
57 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
58 * c.opt (Wduplicated-cond): New option.
59
0d1a8f75
JM
602015-10-01 Joseph Myers <joseph@codesourcery.com>
61
62 * c.opt (std=c11): Do not describe as experimental.
63 (std=gnu11): Likewise.
64 (std=iso9899:2011): Likewise.
65
3e32ee19
NS
662015-09-28 Nathan Sidwell <nathan@codesourcery.com>
67
68 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
69 (DEF_FUNCTION_TYPE_VAR_11): Delete.
70
974348ee
MP
712015-09-25 Marek Polacek <polacek@redhat.com>
72
73 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
74 (ubsan_instrument_shift): Likewise.
75
15dbc1a6
MP
762015-09-25 Marek Polacek <polacek@redhat.com>
77
78 PR sanitizer/64906
79 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
80
6b95d7cc
PP
812015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
82
83 * c-indentation.c (should_warn_for_misleading_indentation):
84 Compare next_stmt_vis_column with guard_line_first_nws instead
85 of with guard_line_vis_column.
86
c1822f9c
MLI
872015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
88
89 PR c/49654
90 PR c/49655
91 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
92 options and options not valid for the current language.
93
d5398058
PP
942015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
95
96 * c-indentation.c (should_warn_for_misleading_indentation):
97 Float out and consolidate the calls to get_visual_column that
98 are passed guard_exploc as an argument. Compare
99 next_stmt_vis_column with guard_line_first_nws instead of with
100 body_line_first_nws.
101
6b333269
NS
1022015-09-22 Nathan Sidwell <nathan@codesourcery.com>
103
104 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
105 Wnamespaces): New C++ warnings.
106
a75f1574
JM
1072015-09-22 Jason Merrill <jason@redhat.com>
108
109 * c-common.h (abi_compat_version_crosses): New.
110 (warn_abi_version): Declare.
111 * c-common.c: Define it.
112 * c-opts.c (c_common_post_options): Handle it.
113 flag_abi_compat_version defaults to 8.
114
bdaaa8b7
VV
1152015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
116
117 Complete the implementation of N4230, Nested namespace definition.
118 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
119 __cpp_nested_namespace_definitions.
120
eaa797e8
MLI
1212015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
122
123 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
124
c4914de6
MLI
1252015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
126
127 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
128 when warning.
129 * c-pragma.h (pragma_lex): Add optional loc argument.
130
fcb87c50
MM
1312015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
132
133 * c-format.c (check_format_arg): Adjust to use common block size in all
134 object pools.
135
31bdd08a
DM
1362015-09-15 David Malcolm <dmalcolm@redhat.com>
137
138 * c-format.c (location_from_offset): Update for change in
139 signature of location_get_source_line.
140 * c-indentation.c (get_visual_column): Likewise.
141 (line_contains_hash_if): Likewise.
142
aa9f4b4c
MP
1432015-09-14 Marek Polacek <polacek@redhat.com>
144
145 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
146 setting various warnings.
147
aa256c4a
MP
1482015-09-14 Marek Polacek <polacek@redhat.com>
149
150 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
151 a negative value.
152
0f876f22
MW
1532015-09-11 Mark Wielaard <mjw@redhat.com>
154
155 PR c/28901
156 * c.opt (Wunused-variable): Option from common.opt.
157 (Wunused-const-variable): New option.
158
273aa49e
PC
1592015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
160
161 PR c++/53184
162 * c.opt ([Wsubobject-linkage]): Add.
163
1807ffc1
MS
1642015-09-03 Martin Sebor <msebor@redhat.com>
165
166 PR c/66516
167 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
168 functions.
169 * c-common.c (reject_gcc_builtin): Define.
170
38942840
BI
1712015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
172
173 PR middle-end/60586
174 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
175 prototype.
176 * c-gimplify.c (c_gimplify_expr): Added a call to the function
177 cilk_gimplify_call_params_in_spawned_fn.
178 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
179 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
180 unwrapping.
181
c316b5e4
MP
1822015-08-25 Marek Polacek <polacek@redhat.com>
183
184 PR middle-end/67330
185 * c-common.c (handle_weak_attribute): Don't check whether the
186 visibility can be changed here.
187
584a7c46
MLI
1882015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
189
190 * c-lex.c (c_lex_with_flags): Use explicit locations.
191
a79683d5
TS
1922015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
193
194 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
195 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
196
61717a45
FXC
1972015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
198
199 PR middle-end/36757
200 * c-common.c (check_builtin_function_arguments): Add check
201 for BUILT_IN_SIGNBIT argument.
202
329524f5
PC
2032015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
204
205 PR c++/67160
206 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
207 in c++1z mode.
208
4ee55665
MP
2092015-08-17 Marek Polacek <polacek@redhat.com>
210
211 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
212 with whitespaces before qualifier names.
213
b893e375
MP
2142015-08-12 Marek Polacek <polacek@redhat.com>
215
216 PR c++/55095
217 * c-common.c (maybe_warn_shift_overflow): Properly handle
218 left-shifting 1 into the sign bit.
219
c2d89095
MLI
2202015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
221
222 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
223
971e17ff
AS
2242015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
225 Braden Obrzut <admin@maniacsvault.net>
226 Jason Merrill <jason@redhat.com>
227
228 Add C++ Concepts TS support.
229 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
230 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
231 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
232 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
233 * c-opts.c (set_std_cxx1z): Set flag_concepts.
234 * c.opt (fconcepts): New.
235
8ebca419
PP
2362015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
237
238 * c-indentation.c (should_warn_for_misleading_indentation):
239 Improve heuristics.
240
1a1e101f
PP
2412015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
242
243 * c-indentation.c (get_visual_column): Add parameter first_nws,
244 use it. Update comment documenting the function.
245 (is_first_nonwhitespace_on_line): Remove.
246 (should_warn_for_misleading_indentation): Replace usage of
247 of is_first_nonwhitespace_on_line with get_visual_column.
248
992118a1
PP
2492015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
250
251 * c-indentation.h (struct token_indent_info): Define.
252 (get_token_indent_info): Define.
253 (warn_for_misleading_information): Declare.
254 * c-common.h (warn_for_misleading_information): Remove.
255 * c-identation.c (warn_for_misleading_indentation):
256 Change declaration to take three token_indent_infos. Adjust
257 accordingly.
258 * c-identation.c (should_warn_for_misleading_indentation):
259 Likewise. Bail out early if the body is a compound statement.
260 (guard_tinfo_to_string): Define.
261
e8fa3817
JM
2622015-07-30 Jason Merrill <jason@redhat.com>
263
264 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
265 '*' for reference decay.
266
173864e8
MP
2672015-07-30 Marek Polacek <polacek@redhat.com>
268
269 * c-common.c (warn_tautological_cmp): Bail for float types.
270
f2afe6dd
MP
2712015-07-27 Marek Polacek <polacek@redhat.com>
272
273 PR bootstrap/67030
274 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
275
05b28fd6
MP
2762015-07-27 Marek Polacek <polacek@redhat.com>
277
278 PR c++/66555
279 PR c/54979
280 * c-common.c (find_array_ref_with_const_idx_r): New function.
281 (warn_tautological_cmp): New function.
282 * c-common.h (warn_tautological_cmp): Declare.
283 * c.opt (Wtautological-compare): New option.
284
5a5062b8
MP
2852015-07-23 Marek Polacek <polacek@redhat.com>
286
287 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
288 (ubsan_instrument_shift): Likewise.
289
dc891fe7
MP
2902015-07-23 Marek Polacek <polacek@redhat.com>
291
292 PR sanitizer/66908
293 * c-ubsan.c: Include gimplify.h.
294 (ubsan_instrument_division): Unshare OP0 and OP1.
295 (ubsan_instrument_shift): Likewise.
296
451b5e48
MP
2972015-07-20 Marek Polacek <polacek@redhat.com>
298 Richard Sandiford <richard.sandiford@arm.com>
299
300 PR c++/55095
301 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
302 Use EXPR_LOC_OR_LOC.
303 (maybe_warn_shift_overflow): New function.
304 * c-common.h (maybe_warn_shift_overflow): Declare.
305 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
306 * c.opt (Wshift-overflow): New option.
307
fb0b2914
ML
3082015-07-16 Martin Liska <mliska@suse.cz>
309
310 * c-format.c (static void check_format_info_main): Use
311 object_allocator instead of pool_allocator.
312 (check_format_arg): Likewise.
313 (check_format_info_main): Likewise.
314
903f5c23
AM
3152015-07-15 Andrew MacLeod <amacleod@redhat.com>
316
317 * c-opts.c: Remove multiline #include comment.
318
026c3cfd
AH
3192015-07-12 Aldy Hernandez <aldyh@redhat.com>
320
321 * c-common.c: Fix double word typos.
322
bb49ee66
EB
3232015-07-10 Eric Botcazou <ebotcazou@adacore.com>
324
325 * c-ada-spec.h (cpp_operation): Revert latest change.
326 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
327 constructors and destructors.
328
1916bcb5
AM
3292015-07-09 Andrew MacLeod <amacleod@redhat.com>
330
331 * c-common.h: Adjust includes for flags.h changes.
332 * stub-objc.c: Likewise.
026c3cfd 333
a9dcd529
EB
3342015-07-08 Eric Botcazou <ebotcazou@adacore.com>
335
336 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
337 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
338
b03b462f
JJ
3392015-07-08 Jakub Jelinek <jakub@redhat.com>
340
341 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
342 are to be removed, return NULL rather than original clauses list.
343
c7131fb2
AM
3442015-07-07 Andrew MacLeod <amacleod@redhat.com>
345
346 * array-notation-common.c: Adjust includes.
347 * c-ada-spec.c: Likewise.
348 * c-cilkplus.c: Likewise.
349 * c-common.h: Likewise.
350 * c-cppbuiltin.c: Likewise.
351 * c-dump.c: Likewise.
352 * c-format.c: Likewise.
353 * c-gimplify.c: Likewise.
354 * c-indentation.c: Likewise.
355 * c-lex.c: Likewise.
356 * c-omp.c: Likewise.
357 * c-opts.c: Likewise.
358 * c-pch.c: Likewise.
359 * c-ppoutput.c: Likewise.
360 * c-pragma.c: Likewise.
361 * c-pretty-print.c: Likewise.
362 * c-semantics.c: Likewise.
363 * c-ubsan.c: Likewise.
364 * cilk.c: Likewise.
365 * stub-objc.c: Likewise.
366
2a7fb83f
EB
3672015-07-07 Eric Botcazou <ebotcazou@adacore.com>
368
369 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
370 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
371
a03c9bf1
JM
3722015-07-01 Jason Merrill <jason@redhat.com>
373
36a85135
JM
374 * c-common.h (D_CXX11): Rename from D_CXX0X.
375 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
376 * c-common.c: Adjust.
377
e7fa68d5
JM
378 * c-opts.c (c_common_post_options): Default to C++14.
379
a03c9bf1
JM
380 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
381
fe95b036
ESR
3822015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
383
384 Implement N4197 - Adding u8 character literals
a64be36b
EB
385 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
386 CPP_CHAR.
387 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
388 CPP_UTF8CHAR_USERDEF tokens.
389 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
390 and CPP_UTF8CHAR tokens.
391 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 392
da2e71c9
MLI
3932015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
394
395 PR fortran/66605
396 * c-common.c (do_warn_unused_parameter): Move here.
397 * c-common.h (do_warn_unused_parameter): Declare.
398
b155cfd9
MP
3992015-06-29 Marek Polacek <polacek@redhat.com>
400
401 PR c/66322
402 * c-common.c (check_case_bounds): Add bool * parameter. Set
403 OUTSIDE_RANGE_P.
404 (c_add_case_label): Add bool * parameter. Pass it down to
405 check_case_bounds.
406 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
407 warning here.
408 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
409 declarations.
410
31521951
MP
4112015-06-27 Marek Polacek <polacek@redhat.com>
412
413 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
414 or VECTOR_INTEGER_TYPE_P throughout.
415 * c-gimplify.c: Likewise.
416
22d03525
MP
4172015-06-26 Marek Polacek <polacek@redhat.com>
418
419 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
420 * c-common.c (c_fully_fold_internal): Likewise.
421 (c_alignof_expr): Likewise.
422 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
423 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
424 * cilk.c (create_parm_list): Likewise.
425
af05e6e5
MP
4262015-06-26 Marek Polacek <polacek@redhat.com>
427
428 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
429
f0889939
AM
4302015-06-25 Andrew MacLeod <amacleod@redhat.com>
431
432 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
433 * c-gimplify.c: Likewise.
434 * c-pragma.c: Likewise.
435 * c-ubsan.c: Likewise.
436 * cilk.c: Likewise.
437
ca752f39
RS
4382015-06-25 Richard Sandiford <richard.sandiford@arm.com>
439
440 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
441 ggc_hasher.
442
16a16ec7
AM
4432015-06-25 Andrew MacLeod <amacleod@redhat.com>
444
445 * cilk.c: Move calls.h after tm.h in the include chain.
446
0ae9bd27
MP
4472015-06-25 Marek Polacek <polacek@redhat.com>
448
449 * array-notation-common.c: Use VAR_P throughout.
450 * c-ada-spec.c: Likewise.
451 * c-common.c: Likewise.
452 * c-format.c: Likewise.
453 * c-gimplify.c: Likewise.
454 * c-omp.c: Likewise.
455 * c-pragma.c: Likewise.
456 * c-pretty-print.c: Likewise.
457 * cilk.c: Likewise.
458
62f9079a
MP
4592015-06-25 Marek Polacek <polacek@redhat.com>
460
461 * cilk.c (extract_free_variables): Use is_global_var.
462
0fa16060
RS
4632015-06-23 Richard Sandiford <richard.sandiford@arm.com>
464
465 * c-common.c: Don't include target-def.h.
466
a68ae2e1
MP
4672015-06-23 Marek Polacek <polacek@redhat.com>
468
469 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
470 when comparing INTEGER_CSTs.
471
c6a2f2d9
PMR
4722015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
473
474 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
475 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
476 (dump_ada_template): Skip partially specialized types.
477
6b4db501
MM
4782015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
479
480 * c-common.c (scalar_to_vector): Use std::swap instead of manually
481 swapping.
482
abb226c9
AM
4832015-06-17 Andrew MacLeod <amacleod@redhat.com>
484
485 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
486 * c-ada-spec.c: Likewise.
487 * c-cilkplus.c: Likewise.
488 * c-common.c: Likewise.
489 * c-common.h: Likewise.
490 * c-cppbuiltin.c: Likewise.
491 * c-dump.c: Likewise.
492 * c-format.c: Likewise.
493 * c-gimplify.c: Likewise.
494 * c-indentation.c: Likewise.
495 * c-lex.c: Likewise.
496 * c-omp.c: Likewise.
497 * c-opts.c: Likewise.
498 * c-pch.c: Likewise.
499 * c-ppoutput.c: Likewise.
500 * c-pragma.c: Likewise.
501 * c-pretty-print.c: Likewise.
502 * c-semantics.c: Likewise.
503 * c-ubsan.c: Likewise.
504 * cilk.c: Likewise.
505 * stub-objc.c: Likewise.
506
076fecad
PP
5072015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
508
509 PR c++/65168
510 * c-common.c (c_common_truthvalue_conversion): Warn when
511 converting an address of a reference to a truth value.
512
13fdf2e2
AM
5132015-06-08 Andrew MacLeod <amacleod@redhat.com>
514
515 * array-notation-common.c : Adjust include files.
516 * c-ada-spec.c : Likewise.
517 * c-cilkplus.c : Likewise.
518 * c-common.c : Likewise.
519 * c-common.h : Likewise.
520 * c-cppbuiltin.c : Likewise.
521 * c-dump.c : Likewise.
522 * c-format.c : Likewise.
523 * c-gimplify.c : Likewise.
524 * c-indentation.c : Likewise.
525 * c-lex.c : Likewise.
526 * c-omp.c : Likewise.
527 * c-opts.c : Likewise.
528 * c-pch.c : Likewise.
529 * c-ppoutput.c : Likewise.
530 * c-pragma.c : Likewise.
531 * c-pretty-print.c : Likewise.
532 * c-semantics.c : Likewise.
533 * c-ubsan.c : Likewise.
534 * cilk.c : Likewise.
535 * stub-objc.c : Likewise.
536
a1661b90
MP
5372015-06-08 Marek Polacek <polacek@redhat.com>
538
539 PR c/66415
540 * c-format.c (location_from_offset): Return LOC if LINE is null.
541
d7438551
AH
5422015-06-05 Aldy Hernandez <aldyh@redhat.com>
543
544 * c-common.h (c_parse_final_cleanups): New prototype.
545 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
546
ecb9f223
AM
5472015-06-04 Andrew MacLeod <amacleod@redhat.com>
548
549 * array-notation-common.c: Adjust includes for restructured coretypes.h.
550 * c-ada-spec.c: Likewise.
551 * c-cilkplus.c: Likewise.
552 * c-common.c: Likewise.
553 * c-common.h: Likewise.
554 * c-cppbuiltin.c: Likewise.
555 * c-dump.c: Likewise.
556 * c-format.c: Likewise.
557 * c-gimplify.c: Likewise.
558 * c-indentation.c: Likewise.
559 * c-lex.c: Likewise.
560 * c-omp.c: Likewise.
561 * c-opts.c: Likewise.
562 * c-pch.c: Likewise.
563 * c-ppoutput.c: Likewise.
564 * c-pragma.c: Likewise.
565 * c-pretty-print.c: Likewise.
566 * c-semantics.c: Likewise.
567 * c-ubsan.c: Likewise.
568 * cilk.c: Likewise.
569 * stub-objc.c: Likewise.
570
6ac48155
DM
5712015-06-02 David Malcolm <dmalcolm@redhat.com>
572
573 PR c/66220:
574 * c-indentation.c (should_warn_for_misleading_indentation): Use
575 expand_location rather than expand_location_to_spelling_point.
576 Don't warn if the guarding statement is more indented than the
577 next/body stmts.
578
773ce42e
DM
5792015-06-02 David Malcolm <dmalcolm@redhat.com>
580
581 * c-indentation.c (warn_for_misleading_indentation): Bail out
582 immediately if -Wmisleading-indentation isn't enabled.
583
4fef8379
ML
5842015-06-01 Martin Liska <mliska@suse.cz>
585
586 * c-format.c (check_format_arg):Use new type-based pool allocator.
587 (check_format_info_main) Likewise.
588
1edfb384
EB
5892015-05-31 Eric Botcazou <ebotcazou@adacore.com>
590
591 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
592 (has_nontrivial_methods): Likewise.
593
9677ef52
MP
5942015-05-25 Marek Polacek <polacek@redhat.com>
595
596 * c-ubsan.c (ubsan_instrument_shift): Use type0.
597
fd5c817a
MP
5982015-05-22 Marek Polacek <polacek@redhat.com>
599
600 PR c/47043
601 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
602
a2f45fe6 6032015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
604
605 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
606 STACK_GROWS_DOWNWARD.
607
a2f45fe6 6082015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
609
610 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
611 STACK_GROWS_DOWNWARD rather than if it is defined.
612
0fee2ac2
MLI
6132015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
614
615 PR c/52952
616 * c-format.c (location_column_from_byte_offset): New.
617 (location_from_offset): New.
618 (struct format_wanted_type): Add offset_loc field.
619 (check_format_info): Move handling of location for extra arguments
620 closer to the point of warning.
621 (check_format_info_main): Pass the result of location_from_offset
622 to warning_at.
623 (format_type_warning): Pass the result of location_from_offset
624 to warning_at.
625
cf4ef6f7
MP
6262015-05-20 Marek Polacek <polacek@redhat.com>
627
628 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
629
3a65ee74
MP
6302015-05-20 Marek Polacek <polacek@redhat.com>
631
632 * c-ada-spec.c (dump_sloc): Use DECL_P.
633
21b634ae
MP
6342015-05-20 Marek Polacek <polacek@redhat.com>
635
636 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
637 * c-common.c: Likewise.
638
0e50b624
DM
6392015-05-19 David Malcolm <dmalcolm@redhat.com>
640
641 * c-common.h (fe_file_change): Strengthen param from
642 const line_map * to const line_map_ordinary *.
643 (pp_file_change): Likewise.
644 * c-lex.c (fe_file_change): Likewise.
645 (cb_define): Use linemap_check_ordinary when invoking
646 SOURCE_LINE.
647 (cb_undef): Likewise.
648 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
649 invoking cb_file_change.
650 (c_finish_options): Likewise.
651 (push_command_line_include): Likewise.
652 (cb_file_change): Strengthen param "new_map" from
653 const line_map * to const line_map_ordinary *.
654 * c-ppoutput.c (cb_define): Likewise for local "map".
655 (pp_file_change): Likewise for param "map" and local "from".
656
fab27f52
MM
6572015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
658
659 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
660
2fe1d762
TV
6612015-05-18 Tom de Vries <tom@codesourcery.com>
662
663 * c-common.c (build_va_arg_1): New function.
664 (build_va_arg): Add address operator to va_list operand if necessary.
665
7a37fa90
MM
6662015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
667
668 PR c/48956
669 * c-common.c (int_safely_convertible_to_real_p): Define.
670 (unsafe_conversion_p): Check conversions involving complex types.
671 (conversion_warning): Add new warning message for conversions which
672 discard imaginary component.
673 * c-common.h: (enum conversion_safety): Add new enumerator for such
674 conversions.
675
3aa3c9fc
MP
6762015-05-14 Marek Polacek <polacek@redhat.com>
677
678 PR c/66066
679 PR c/66127
680 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
681 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
682 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
683 use it. If FOR_INT_CONST, require that all evaluated operands be
684 INTEGER_CSTs.
685
c3388e62
DM
6862015-05-12 David Malcolm <dmalcolm@redhat.com>
687
688 * c-common.h (warn_for_misleading_indentation): New prototype.
689 * c-indentation.c: New file.
690 * c.opt (Wmisleading-indentation): New option.
691
c7b38fd5
TV
6922015-05-12 Tom de Vries <tom@codesourcery.com>
693
694 PR tree-optimization/66010
695 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
696
381bf11e
JM
6972015-05-09 Jason Merrill <jason@redhat.com>
698
edff0c06
JM
699 * c-opts.c (c_common_post_options): Also clear
700 cpp_opts->cpp_warn_cxx11_compat.
701
129211bc
JM
702 * c-common.h (enum cxx_dialect): Add cxx_unset.
703 * c-common.c (cxx_dialect): Initialize to cxx_unset.
704 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
705
381bf11e
JM
706 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
707 (std=gnu++0x): Mark as Undocumented.
708 (std=gnu++1y): Add deprecated message.
709
fe191308
JM
7102015-05-08 Jason Merrill <jason@redhat.com>
711
765189ff
JM
712 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
713 * c-opts.c: Adjust.
714
fe191308
JM
715 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
716
755e528f
MP
7172015-05-08 Marek Polacek <polacek@redhat.com>
718
719 PR c/64918
720 * c.opt (Woverride-init-side-effects): New option.
721
0173bd2a
MP
7222015-05-07 Marek Polacek <polacek@redhat.com>
723
724 PR c/65179
725 * c-common.c (c_fully_fold_internal): Warn when left shifting a
726 negative value.
727 * c.opt (Wshift-negative-value): New option.
728 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
729 when -Wextra and C99/C++11 mode.
730
e0f0d3b9
MP
7312015-05-07 Marek Polacek <polacek@redhat.com>
732 Martin Uecker <uecker@eecs.berkeley.edu>
733
734 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
735 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
736
8243e2a9
JM
7372015-05-05 Jason Merrill <jason@redhat.com>
738
739 * c.opt (Wterminate): New.
740
577cd070
MP
7412015-04-30 Marek Polacek <polacek@redhat.com>
742
743 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
744 require that the non-constant be of a boolean type.
745
0373796b
JT
7462015-04-29 Josh Triplett <josh@joshtriplett.org>
747
e0f0d3b9
MP
748 * c-common.c (handle_section_attribute): Refactor to reduce
749 nesting and distinguish between error cases.
0373796b 750
716c0ba6
MP
7512015-04-29 Marek Polacek <polacek@redhat.com>
752
753 PR c/64610
754 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
755 with 0/1.
756
8848828b
JJ
7572015-04-29 Jakub Jelinek <jakub@redhat.com>
758
759 * c-common.h (omp_clause_mask): Unconditionally define as a class.
760 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
761 HOST_BITS_PER_WIDE_INT.
762
ecd0e562
TV
7632015-04-28 Tom de Vries <tom@codesourcery.com>
764
765 PR tree-optimization/65887
766 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
767
2a877204 7682015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 769 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
770
771 * c-ada-spec.c (in_function): Delete.
772 (dump_generic_ada_node): Do not change in_function and remove the
773 redundant code dealing with it.
774 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
775 (print_ada_methods): Output the static member functions in a nested
776 package after the regular methods as well as associated renamings.
777
4853031e
MP
7782015-04-24 Marek Polacek <polacek@redhat.com>
779
780 PR c/65830
781 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
782 and OPT_Wshift_count_overflow.
783
8c2b7f79
MP
784 PR c/63357
785 * c-common.c (warn_logical_operator): Warn if the operands have the
786 same expressions.
787
b8787813
MP
7882015-04-24 Marek Polacek <polacek@redhat.com>
789
790 PR c/61534
791 * c-common.c (warn_logical_operator): Bail if either operand comes
792 from a macro expansion.
793
8fba1830
BRF
7942015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
795
796 PR target/55143
797 * c-common.c (c_default_pointer_mode): Add definition.
798 * c-common.h (c_default_pointer_mode): Add declaration.
799
17958621
JJ
8002015-03-11 Jakub Jelinek <jakub@redhat.com>
801
802 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
803 on record_builtin_type argument.
804
7ccb1a11
JJ
8052015-03-10 Jakub Jelinek <jakub@redhat.com>
806
807 PR c/65120
808 * c-common.c (warn_logical_not_parentheses): Don't warn for
809 !x == 0 or !x != 0.
810
04fd785e
MP
8112015-03-07 Marek Polacek <polacek@redhat.com>
812
813 PR sanitizer/65280
814 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
815 before trying to figure out whether we have a flexible array member.
816
a4e26206
EB
8172015-03-06 Eric Botcazou <ebotcazou@adacore.com>
818 Jonathan Wakely <jwakely.gcc@gmail.com>
819
820 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
821
0d2489f4
EB
8222015-03-05 Eric Botcazou <ebotcazou@adacore.com>
823
824 PR ada/65319
825 * c-ada-spec.c (print_destructor): Remove obsolete code.
826
83ed54d7
EB
8272015-03-01 Eric Botcazou <ebotcazou@adacore.com>
828
829 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
830 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
831 DECL_TEMPLATE_RESULT emulations.
832 (dump_ada_template)): Add guard for TYPE_METHODS.
833
7631f0e2
MP
8342015-02-27 Marek Polacek <polacek@redhat.com>
835
836 PR c/65040
837 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
838
d1783ae5
KT
8392015-02-27 Kai Tietz <ktietz@redhat.com>
840
841 PR c/35330
842 * c-pragma.c (handle_pragma_weak): Do not try to create
843 weak/alias of declarations not being function, or variable
844 declarations.
845
56a9f6bc
TS
8462015-02-24 Thomas Schwinge <thomas@codesourcery.com>
847
848 PR libgomp/64625
849 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
850 Remove macros.
851 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
852
3d5cb23d
MP
8532015-02-16 Marek Polacek <polacek@redhat.com>
854
855 PR c/65066
856 * c-format.c (check_format_types): Handle null param.
857
fa008882
MP
8582015-02-13 Marek Polacek <polacek@redhat.com>
859
860 PR c/65040
861 * c-format.c (check_format_types): Don't warn about different
862 signedness if the original value is in the range of WANTED_TYPE.
863
785f21af
JM
8642015-02-12 Jason Merrill <jason@redhat.com>
865
866 PR c++/64956
867 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
868 to the current highest version.
869 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
870
4886ec8e
JJ
8712015-02-04 Jakub Jelinek <jakub@redhat.com>
872
873 PR c/64824
874 PR c/64868
875 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
876 instead of RDIV_EXPR. Use build_binary_op instead of
877 build2_loc.
878
40fecdd6
JM
8792015-01-30 Joseph Myers <joseph@codesourcery.com>
880
881 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
882 to pass input_location as first argument.
883
a0c88d06
TV
8842015-01-23 Tom de Vries <tom@codesourcery.com>
885
886 PR libgomp/64672
887 * c.opt (fopenacc): Mark as LTO option.
888
1506ae0e
TV
8892015-01-23 Tom de Vries <tom@codesourcery.com>
890
891 PR libgomp/64707
892 * c.opt (fopenmp): Mark as LTO option.
893
31be63ab
JJ
8942015-01-21 Jakub Jelinek <jakub@redhat.com>
895
896 PR c/63307
897 * cilk.c (fill_decls_vec): Only put decls into vector v.
898 (compare_decls): Fix up formatting.
899
9002015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
901
902 PR c/63307
903 * cilk.c: Include vec.h.
904 (struct cilk_decls): New structure.
905 (wrapper_parm_cb): Split this function to...
906 (fill_decls_vec): ...this...
907 (create_parm_list): ...and this.
908 (compare_decls): New function.
909 (for_local_cb): Remove.
910 (wrapper_local_cb): Ditto.
911 (build_wrapper_type): For now first traverse and fill vector of
912 declarations then sort it and then deal with sorted vector.
913 (cilk_outline): Ditto.
914 (declare_one_free_variable): Ditto.
915
6875457f
JM
9162015-01-21 Jason Merrill <jason@redhat.com>
917
918 PR c++/64629
919 * c-format.c (check_format_arg): Call decl_constant_value.
920
185c9e56
ML
9212015-01-19 Martin Liska <mliska@suse.cz>
922
923 * c-common.c (handle_noicf_attribute): New function.
924
41dbbb37
TS
9252015-01-15 Thomas Schwinge <thomas@codesourcery.com>
926 Bernd Schmidt <bernds@codesourcery.com>
927 James Norris <jnorris@codesourcery.com>
928 Cesar Philippidis <cesar@codesourcery.com>
929 Ilmir Usmanov <i.usmanov@samsung.com>
930 Jakub Jelinek <jakub@redhat.com>
931
932 * c.opt (fopenacc): New option.
933 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
934 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
935 New macros.
936 * c-common.h (c_finish_oacc_wait): New prototype.
937 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
938 (c_finish_oacc_wait): New function.
939 * c-pragma.c (oacc_pragmas): New variable.
940 (c_pp_lookup_pragma, init_pragma): Handle it.
941 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
942 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
943 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
944 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
945 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
946 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
947 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
948 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
949 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
950 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
951 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
952 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
953 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
954 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
955 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
956 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
957 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
958 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
959 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
960 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
961 PRAGMA_OACC_CLAUSE_WORKER.
962
5434dc07
MD
9632015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
964
965 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
966 for the new option fstack-protector_explicit.
967 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
968 (handle_stack_protect_attribute): New function.
969
de1b5c17
MU
9702015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
971
972 * c.opt: New option -Warray-bounds=.
973
adfac8df
JJ
9742015-01-09 Michael Collison <michael.collison@linaro.org>
975
976 * array-notation-common.c: Include hash-set.h, machmode.h,
977 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
978 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
979 * c-ada-spec.c: Ditto.
980 * c-cilkplus.c: Ditto.
981 * c-common.c: Include input.h due to flattening of tree.h.
982 Define macro GCC_C_COMMON_C.
983 * c-common.h: Flatten tree.h header files into c-common.h.
984 Remove include of tree-core.h.
985 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
986 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
987 fold-const.h, wide-int.h, and inchash.h due to
988 flattening of tree.h.
989 * c-dump.c: Ditto.
990 * c-format.c: Flatten tree.h header files into c-common.h.
991 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
992 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
993 fold-const.h, wide-int.h, and inchash.h due to
994 flattening of tree.h.
995 * c-dump.c: Include hash-set.h, machmode.h,
996 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
997 fold-const.h, wide-int.h, and inchash.h due to
998 flattening of tree.h.
999 * c-format.c: Include hash-set.h, machmode.h,
1000 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1001 fold-const.h, wide-int.h, inchash.h and real.h due to
1002 flattening of tree.h.
1003 * c-gimplify.c: Include hash-set.h, machmode.h,
1004 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1005 fold-const.h, wide-int.h, and inchash.h due to
1006 flattening of tree.h.
1007 * cilk.c: Ditto.
1008 * c-lex.c: Ditto.
1009 * c-omp.c: Ditto.
1010 * c-opts.c: Ditto.
1011 * c-pch.c: Ditto.
1012 * c-ppoutput.c: Ditto.
1013 * c-pragma.c: Ditto.
1014 * c-pretty-print.c: Ditto.
1015 * c-semantics.c: Ditto.
1016 * c-ubsan.c: Ditto.
1017 * stub-objc.c: Ditto.
1018
f5481fc4
JM
10192015-01-08 Jason Merrill <jason@redhat.com>
1020
1021 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1022 do_ubsan_in_current_function.
1023 (ubsan_maybe_instrument_reference_or_call): Likewise.
1024 * c-ubsan.h: Declare it.
1025
de35aa66
MS
10262015-01-08 Mike Stump <mikestump@comcast.net>
1027
1028 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1029
4a9a42ab
MP
10302015-01-07 Marek Polacek <polacek@redhat.com>
1031
1032 PR c/64440
1033 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1034 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1035
2f42e5de
TS
10362015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1037
1038 PR c++/31397
1039 * c.opt (Wsuggest-override): New option.
1040
5624e564
JJ
10412015-01-05 Jakub Jelinek <jakub@redhat.com>
1042
1043 Update copyright years.
1044
5bd012f8
MP
10452015-01-05 Marek Polacek <polacek@redhat.com>
1046
1047 PR c/64423
1048 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1049 parameter. Use it.
1050 * c-common.h (warn_array_subscript_with_type_char): Update
1051 declaration.
1052
a7fa8d18
ESR
10532014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1054
1055 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1056 Control macro with flag_sized_deallocation.
1057
768952be
MU
10582014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1059
1060 * c.opt (Wdiscarded-array-qualifiers): New option.
1061
1f8d3e84
JJ
10622014-12-19 Jakub Jelinek <jakub@redhat.com>
1063
1064 PR preprocessor/63831
1065 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1066 and __has_cpp_attribute here.
1067 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1068 c_common_has_attribute.
1069 * c-common.h (c_common_has_attribute): New prototype.
1070 * c-lex.c (init_c_lex): Set cb->has_attribute to
1071 c_common_has_attribute instead of cb_has_attribute.
1072 (get_token_no_padding): New function.
1073 (cb_has_attribute): Renamed to ...
1074 (c_common_has_attribute): ... this. No longer static. Use
1075 get_token_no_padding, require ()s, don't build TREE_LIST
1076 unnecessarily, fix up formatting, adjust diagnostics, call
1077 init_attributes.
1078
20b06add
JM
10792014-12-15 Jason Merrill <jason@redhat.com>
1080
1081 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1082 (-Wsized-deallocation): New.
1083 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1084 to on in C++14 and up.
1085
94a073b2
JM
10862014-12-11 Jason Merrill <jason@redhat.com>
1087
acaa5911
JM
1088 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1089
94a073b2
JM
1090 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1091 we aren't complaining about VLAs.
1092
7fb66c15
MP
10932014-12-06 Marek Polacek <polacek@redhat.com>
1094
1095 PR tree-optimization/64183
1096 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1097 shift-expression if it is integer_type_node. Use types_compatible_p.
1098
b731b390
JJ
10992014-11-29 Jakub Jelinek <jakub@redhat.com>
1100
1101 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1102 last argument from create_tmp_var_raw and create_tmp_var calls.
1103 * cilk.c (gimplify_cilk_spawn): Likewise.
1104 * c-omp.c (c_finish_omp_atomic): Likewise.
1105
6a4da643
MP
11062014-11-28 Marek Polacek <polacek@redhat.com>
1107
1108 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1109 instead of unsigned_type_node.
1110
541e35a6
MP
11112014-11-28 Marek Polacek <polacek@redhat.com>
1112
1113 PR c/63862
1114 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1115 to op1_utype.
1116 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1117 expression to unsigned_type_node.
1118
dcc97066
MW
11192014-11-20 Mark Wielaard <mjw@redhat.com>
1120
1121 PR debug/38757
1122 * c-opts.c (set_std_c89): Set lang_hooks.name.
1123 (set_std_c99): Likewise.
1124 (set_std_c11): Likewise.
1125 (set_std_cxx98): Likewise.
1126 (set_std_cxx11): Likewise.
1127 (set_std_cxx14): Likewise.
1128 (set_std_cxx1z): Likewise.
1129
aa7da51a
JJ
11302014-11-21 Jakub Jelinek <jakub@redhat.com>
1131
1132 PR target/63764
1133 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1134 return type to bool.
009a3480 1135 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1136 (convert_vector_to_pointer_for_subscript): Change return type to
1137 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1138 and copy it into a TARGET_EXPR and use that instead of *vecp
1139 directly.
1140
538dd0b7
DM
11412014-11-19 David Malcolm <dmalcolm@redhat.com>
1142
1143 Merger of git branch "gimple-classes-v2-option-3".
1144 * ChangeLog.gimple-classes: New.
1145 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1146 from being just a vec<gimple> to a vec<gbind *>.
1147
c39a5e99
JJ
11482014-11-18 Jakub Jelinek <jakub@redhat.com>
1149
1150 PR sanitizer/63813
1151 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1152 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1153 get_pointer_alignment for non-pointers. Use ptype, or if it is
1154 reference type, corresponding pointer type, as type of kind
1155 argument.
1156 (ubsan_maybe_instrument_reference,
1157 ubsan_maybe_instrument_member_call): Adjust callers.
1158
8537a4a9
MP
11592014-11-15 Marek Polacek <polacek@redhat.com>
1160
1161 PR middle-end/63884
1162 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1163 for NULL fndecl.
1164 (extract_array_notation_exprs): Return for NULL node.
1165
2079956a
JM
11662014-11-12 Joseph Myers <joseph@codesourcery.com>
1167
1168 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1169 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1170
1304953e
JJ
11712014-11-12 Jakub Jelinek <jakub@redhat.com>
1172
1173 PR c/59708
1174 * c-common.c (check_builtin_function_arguments): Handle
1175 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1176
e5e44252
AK
11772014-11-10 Andi Kleen <ak@linux.intel.com>
1178
1179 PR c/60804
1180 * c-common.h (check_no_cilk): Declare.
1181 * cilk.c (get_error_location): New function.
1182 (check_no_cilk): Dito.
1183
e64b984d
AK
11842014-11-10 Andi Kleen <ak@linux.intel.com>
1185
1186 * cilk.c (recognize_spawn): Use expression location
1187 for error message.
1188
13c21655
PC
11892014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1190
1191 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1192
42fd12b1
ESR
11932014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1194
1195 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1196 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1197 (__cpp_range_based_for, __cpp_initializer_lists,
1198 __cpp_delegating_constructors, __cpp_nsdmi,
1199 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1200 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1201 __has_cpp_attribute.
1202 * c-lex.c (cb_has_attribute): New callback CPP function;
1203 (init_c_lex): Set has_attribute callback.
1204
6f450181
RB
12052014-11-04 Richard Biener <rguenther@suse.de>
1206
1207 * c-common.c (shorten_compare): Do not shorten mixed
1208 DFP and non-DFP compares.
1209
26f0e1d6
ESR
12102014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1211
1212 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1213 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1214 Commentary and rearrangement of tests.
1215 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1216 Commentary and rearrangement of tests.
1217 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1218 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1219
ef4bddc2
RS
12202014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1221
1222 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1223 enum from machine_mode.
1224
c582198b
AM
12252014-10-28 Andrew MacLeod <amacleod@redhat.com>
1226
adfac8df
JJ
1227 * c-common.c: Adjust include files.
1228 * c-gimplify.c: Ditto.
1229 * cilk.c: Ditto.
1230 * c-pragma.c: Ditto.
1231 * c-ubsan.c: Ditto.
c582198b 1232
60393bbc
AM
12332014-10-27 Andrew MacLeod <amacleod@redhat.com>
1234
1235 * c-gimplify.c: Adjust include files.
1236
d723bb7c
MLI
12372014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1238
1239 PR c++/53061
1240 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1241 c_common_initialize_diagnostics.
1242 * c-common.h: Likewise.
1243
90f3520e
MP
12442014-10-24 Marek Polacek <polacek@redhat.com>
1245
1246 PR c/56980
1247 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1248 print "struct"/"union"/"enum" for typedefed names.
1249
59d7607a
MP
12502014-10-23 Marek Polacek <polacek@redhat.com>
1251
1252 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1253 in unsigned type.
1254
d95a2703
JJ
12552014-10-22 Jakub Jelinek <jakub@redhat.com>
1256 Yury Gribov <y.gribov@samsung.com>
1257
1258 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1259 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1260 instead of flag_sanitize_recover as bool flag.
1261
8e6ef852
KY
12622014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1263
1264 * cilk.c: Revert previous change.
1265
948cf550
IZ
12662014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1267
1268 PR c/63307
1269 * cilk.c: Include vec.h.
1270 (struct cilk_decls): New structure.
1271 (wrapper_parm_cb): Split this function to...
1272 (fill_decls_vec): ...this...
1273 (create_parm_list): ...and this.
1274 (compare_decls): New function.
1275 (for_local_cb): Remove.
1276 (wrapper_local_cb): Ditto.
1277 (build_wrapper_type): For now first traverse and fill vector of
1278 declarations then sort it and then deal with sorted vector.
1279 (cilk_outline): Ditto.
1280 (declare_one_free_variable): Ditto.
1281
92574c7c
MP
12822014-10-17 Marek Polacek <polacek@redhat.com>
1283
1284 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1285 * c.opt (Wimplicit-int): Initialize to -1.
1286
83685514
AM
12872014-10-16 Andrew MacLeod <amacleod@redhat.com>
1288
1289 * c-pragma.c: Adjust include files.
1290 * c-semantics.c: Likewise.
1291
5b8300ea
DD
12922014-10-16 DJ Delorie <dj@redhat.com>
1293
1294 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1295 multiples of bytes.
1296
5f83e90b
JM
12972014-10-14 Jason Merrill <jason@redhat.com>
1298
1299 PR c++/63455
1300 * c-common.h (CPP_PREPARSED_EXPR): New.
1301 (N_CP_TTYPES): Adjust.
1302
d73326ca
MP
13032014-10-15 Marek Polacek <polacek@redhat.com>
1304
1305 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1306
78a7c317
DD
13072014-10-14 DJ Delorie <dj@redhat.com>
1308
1309 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1310 types, not just __int128.
1311 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1312 types, not just __int128.
1313 (cpp_atomic_builtins): Round pointer sizes up.
1314 (type_suffix): Use type precision, not specific types.
1315 * c-common.c (c_common_reswords): Remove __int128 special case.
1316 (c_common_type_for_size): Check for all __intN types, not just
1317 __int128.
1318 (c_common_type_for_mode): Likewise.
1319 (c_common_signed_or_unsigned_type): Likewise.
1320 (c_build_bitfield_integer_type): Likewise.
1321 (c_common_nodes_and_builtins): Likewise.
1322 (keyword_begins_type_specifier): Likewise.
1323 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1324 __intN variants.
1325
2a22f99c
TS
13262014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1327
1328 * c-common.c: Use hash_table instead of hashtab.
1329
2a8ef767
ESR
13302014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1331
adfac8df 1332 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1333 C++11 section.
1334
3c9aabbd
MG
13352014-10-03 Marc Glisse <marc.glisse@inria.fr>
1336
1337 PR c++/54427
1338 PR c++/57198
1339 PR c++/58845
1340 * c-common.c (warn_logical_operator): Punt for vectors.
1341
a15f7cb8
ESR
13422014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1343
1344 Implement SD-6: SG10 Feature Test Recommendations
1345 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1346 macros and the __has_header macro.
1347
8d0cf15e
JM
13482014-09-30 Jason Merrill <jason@redhat.com>
1349
dd5d5481
JM
1350 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1351 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1352 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1353
b752325e
JM
1354 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1355 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1356
8d0cf15e
JM
1357 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1358 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1359
083e891e
MP
13602014-09-24 Marek Polacek <polacek@redhat.com>
1361
1362 PR c/61405
1363 PR c/53874
1364 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1365
7861b648
AK
13662014-09-23 Andi Kleen <ak@linux.intel.com>
1367
1368 * c-common.c (handle_no_reorder_attribute): New function.
1369 (c_common_attribute_table): Add no_reorder attribute.
1370
9a79452d
JM
13712014-09-22 Joseph Myers <joseph@codesourcery.com>
1372
1373 * c-cppbuiltin.c (c_cpp_builtins): Define
1374 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1375 modes.
1376
dd69f047
JM
13772014-09-18 Joseph Myers <joseph@codesourcery.com>
1378
1379 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1380 for supported floating-point modes.
1381
737a4826
MLI
13822014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1383
1384 * c.opt (Wpsabi): Use LangEnabledBy.
1385 * c-opts.c (c_common_handle_option): Do not handle here.
1386
8cc4b7a2
JM
13872014-09-12 Joseph Myers <joseph@codesourcery.com>
1388
1389 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1390 macros for floating-point modes.
1391
179b5a55
MG
13922014-09-11 Marc Glisse <marc.glisse@inria.fr>
1393
1394 PR target/58757
1395 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1396 __*_DENORM_MIN__ without denormals.
1397
570a11fe
JJ
13982014-09-10 Jakub Jelinek <jakub@redhat.com>
1399
1400 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1401 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1402 ubsan_create_data callers.
1403 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1404 index is constant or BIT_AND_EXPR with constant mask and is
1405 small enough for the bound.
1406 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1407 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1408
b559c810
MLI
14092014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1410
1411 * c.opt: Add CppReason to various flags.
1412 (Wdate-time): Re-sort.
1413 * c-common.c: Include c-common.h earlier.
1414 (struct reason_option_codes_t): Delete.
1415 (c_option_controlling_cpp_error): Prefix global type and struct
1416 with cpp_.
1417
1ef33fd4
MLI
14182014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1419
1420 * c.opt (Wnormalized): New.
1421 (Wnormalized=): Use Enum and Reject Negative.
1422 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1423
66bb34c0
JM
14242014-09-08 Joseph Myers <joseph@codesourcery.com>
1425
1426 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1427 digits of floating-point modes if -fbuilding-libgcc.
1428
53d68b9f
JM
14292014-09-05 Joseph Myers <joseph@codesourcery.com>
1430
1431 * c-cppbuiltin.c (c_cpp_builtins): Also define
1432 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1433 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1434 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1435 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1436 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1437 __LIBGCC_STACK_GROWS_DOWNWARD__,
1438 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1439 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1440 __LIBGCC_DWARF_FRAME_REGISTERS__,
1441 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1442 __LIBGCC_STACK_POINTER_REGNUM__ and
1443 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1444 (builtin_define_with_value): Handle backslash-escaping in string
1445 macro values.
1446
f65586dc
RB
14472014-09-05 Richard Biener <rguenther@suse.de>
1448
1449 PR middle-end/63148
1450 * c-format.c (check_format_arg): Properly handle
1451 effectively signed POINTER_PLUS_EXPR offset.
1452
2b71f4a4
MLI
14532014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1454
1455 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1456 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1457 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1458 and Init.
1459 * c-opts.c (c_common_handle_option): Do not handle here.
1460 (sanitize_cpp_opts): Likewise.
1461 * c-common.c (struct reason_option_codes_t): Handle
1462 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1463
d2e4feca
MP
14642014-09-03 Marek Polacek <polacek@redhat.com>
1465
1466 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1467
9a771876
JJ
14682014-09-02 Jakub Jelinek <jakub@redhat.com>
1469 Balaji V. Iyer <balaji.v.iyer@intel.com>
1470 Igor Zamyatin <igor.zamyatin@intel.com>
1471
1472 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1473 * c-common.c (c_common_reswords): Added _Cilk_for.
1474 * c-common.h (enum rid): Added RID_CILK_FOR.
1475 (cilk_for_number_of_iterations): Add declaration.
1476 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1477 CILK_FOR.
1478 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1479 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1480
81b5d104
MLI
14812014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1482
1483 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1484 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1485 Wundef): Use CPP, Var and Init.
1486 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1487
b753b37b
MLI
14882014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1489
1490 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1491 * c-opts.c (c_common_handle_option): Do not handle here.
1492
028aee17
JM
14932014-08-25 Jason Merrill <jason@redhat.com>
1494
1495 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1496 -std=c++14 and -std=gnu++14, rather than the reverse.
1497 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1498 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1499 * c-common.h (cxx_dialect): Remove cxx1y.
1500
e4276ba5
ESR
15012014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1502
1503 * c-common.h (enum cxx_dialect): Add cxx14.
1504 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1505 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1506 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1507
a545cacd
JM
15082014-08-22 Jason Merrill <jason@redhat.com>
1509
1510 * c.opt (std=gnu++17): Fix alias.
1511
59ea0364
MP
15122014-08-22 Marek Polacek <polacek@redhat.com>
1513
1514 PR c++/62199
1515 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1516 check for vector types. Drop LHS argument.
1517 * c-common.h (warn_logical_not_parentheses): Adjust.
1518
596e808c
MLI
15192014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1520
1521 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1522 (Wmultichar): Likewise.
1523 (Wdate-time): Use C-family languages instead of Common. Use CPP
1524 and Var.
1525 * c-opts.c (c_common_handle_option): Do not handle the above
1526 options here.
1527 (sanitize_cpp_opts): Likewise.
1528
18767f65
MLI
15292014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1530
1531 PR fortran/44054
1532 * c-opts.c: Include tree-diagnostics.h.
1533 (c_diagnostic_finalizer): New.
1534 (c_common_initialize_diagnostics): Use it.
1535
b4413594
MLI
15362014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1537
1538 PR preprocessor/51303
1539 * c-common.c (struct reason_option_codes_t option_codes):
1540 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1541
43f9a13c
MLI
15422014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1543
1544 PR c/60975
1545 PR c/53063
1546 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1547 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1548 (c_common_post_options): Call init_global_opts_from_cpp.
1549 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1550
04159acf
MP
15512014-08-19 Marek Polacek <polacek@redhat.com>
1552
1553 PR c++/62153
1554 * c-common.c (maybe_warn_bool_compare): New function.
1555 * c-common.h (maybe_warn_bool_compare): Declare.
1556 * c.opt (Wbool-compare): New option.
1557
35aff4fb
MP
15582014-08-19 Marek Polacek <polacek@redhat.com>
1559
1560 * c.opt (Wc99-c11-compat): New option.
1561
177cce46
MP
15622014-08-19 Marek Polacek <polacek@redhat.com>
1563
1564 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1565 to warn_c90_c99_compat.
1566 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1567 to -1.
1568
6ae9194f
MLI
15692014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1570 Steven Bosscher <steven@gcc.gnu.org>
1571
1572 PR c/52952
1573 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1574 format_check_results.
1575 (check_function_format): Use true and add comment for boolean
1576 argument.
1577 (finish_dollar_format_checking): Use explicit location when warning.
1578 (check_format_info): Likewise.
1579 (check_format_arg): Set extra_arg_loc and format_string_loc.
1580 (check_format_info_main): Use explicit location when warning.
1581 (check_format_types): Pass explicit location.
1582 (format_type_warning): Likewise.
1583
8e54f6d3
MLI
15842014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1585
1586 PR fortran/44054
1587 * c-format.c: Handle Fortran flags.
1588
cd4e76fc
IZ
15892014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1590
1591 PR other/61962
1592 * array-notation-common.c (find_rank): Added handling for other
1593 types of references.
1594
f3bede71
MP
15952014-08-10 Marek Polacek <polacek@redhat.com>
1596
1597 PR c/51849
1598 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1599 * c.opt (Wc90-c99-compat): Add option.
1600
9f25a338
TS
16012014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1602
1603 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1604
62e4eb35
MP
16052014-08-03 Marek Polacek <polacek@redhat.com>
1606
1607 * c-common.c (check_case_value): Add location_t parameter. Use it.
1608 (c_add_case_label): Pass loc to check_case_value.
1609
b787e7a2
TS
16102014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1611
1612 * cilk.c: Use hash_map instead of pointer_map.
1613
6e2830c3
TS
16142014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1615
1616 * c-gimplify.c: Use hash_set instead of pointer_set.
1617
a7ee52fb
IZ
16182014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1619
1620 PR middle-end/61455
1621 * array-notation-common.c (extract_array_notation_exprs): Handling
1622 of DECL_EXPR added.
1623
944fa280
JJ
16242014-08-01 Jakub Jelinek <jakub@redhat.com>
1625
1626 * c-common.h (min_align_of_type): Removed prototype.
1627 * c-common.c (min_align_of_type): Removed.
1628 * c-ubsan.h (ubsan_maybe_instrument_reference,
1629 ubsan_maybe_instrument_member_call): New prototypes.
1630 * c-ubsan.c: Include stor-layout.h and builtins.h.
1631 (ubsan_maybe_instrument_reference_or_call,
1632 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1633 functions.
1634
b4dfdc11
MG
16352014-07-31 Marc Glisse <marc.glisse@inria.fr>
1636
1637 PR c++/60517
1638 * c.opt (-Wreturn-local-addr): Move to common.opt.
1639
a41844e5
JM
16402014-07-30 Jason Merrill <jason@redhat.com>
1641
1642 PR c++/61659
1643 PR c++/61687
1644 Revert:
1645 * c.opt (-fuse-all-virtuals): New.
1646
976d5a22
TT
16472014-07-30 Tom Tromey <tromey@redhat.com>
1648
1649 PR c/59855
1650 * c.opt (Wdesignated-init): New option.
1651 * c-common.c (c_common_attribute_table): Add "designated_init".
1652 (handle_designated_init): New function.
1653
cdc94aca
MP
16542014-07-24 Marek Polacek <polacek@redhat.com>
1655
1656 PR c/57653
1657 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1658
f41373b6
DS
16592014-07-16 Dodji Seketeli <dodji@redhat.com>
1660
1661 PR preprocessor/60723 - missing system-ness marks for macro tokens
1662 * c-ppoutput.c (struct print::prev_was_system_token): New data
1663 member.
1664 (init_pp_output): Initialize it.
1665 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1666 (do_line_change): Return a flag saying if a line marker was
1667 emitted or not.
1668 (scan_translation_unit): Detect if the system-ness of the token we
1669 are about to emit is different from the one of the previously
1670 emitted token. If so, emit a line marker. Avoid emitting useless
1671 adjacent line markers. Avoid emitting line markers for tokens
1672 originating from the expansion of built-in macros.
1673 (scan_translation_unit_directives_only): Adjust.
1674
4d661eaa
MP
16752014-07-15 Marek Polacek <polacek@redhat.com>
1676
1677 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1678 TYPE_MAX_VALUE is NULL.
1679
b108f48f
JJ
16802014-07-14 Jakub Jelinek <jakub@redhat.com>
1681
1682 PR middle-end/61294
1683 * c.opt (Wmemset-transposed-args): New warning.
1684
c0221884
JM
16852014-07-10 Jason Merrill <jason@redhat.com>
1686
1687 PR c++/61659
1688 PR c++/61687
1689 * c.opt (-fuse-all-virtuals): New.
1690
63dfbb95
RB
16912014-07-09 Richard Biener <rguenther@suse.de>
1692
1693 PR c-family/61741
1694 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1695 using unsigned arithmetic if overflow does not wrap instead of
1696 if overflow is undefined.
1697
773ec47f
MP
16982014-07-06 Marek Polacek <polacek@redhat.com>
1699
1700 PR c/6940
1701 * c.opt (Wsizeof-array-argument): New option.
1702
00a7ba58
JJ
17032014-07-03 Jakub Jelinek <jakub@redhat.com>
1704
1705 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1706 comments->count <= 1, as comments->entries might be NULL.
1707
52ec0ea3
MP
17082014-07-01 Marek Polacek <polacek@redhat.com>
1709
1710 * c.opt (Wint-conversion): New option.
1711
d5c3d343
MP
17122014-07-01 Marek Polacek <polacek@redhat.com>
1713
1714 PR c/58286
1715 * c.opt (Wincompatible-pointer-types): New option.
1716
6e7ceb17
PC
17172014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1718
1719 PR c++/51400
1720 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1721 Do not discard TYPE_QUALS of type.
1722
da73100b
JM
17232014-06-26 Jason Merrill <jason@redhat.com>
1724
1725 * c-common.h (enum cxx_dialect): Add cxx1z.
1726 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1727 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1728
08eedf75
TJ
17292014-06-26 Teresa Johnson <tejohnson@google.com>
1730
1731 * c-common.h (get_dump_info): Declare.
1732 * c-gimplify.c (c_genericize): Use saved dump files.
1733 * c-opts.c (c_common_parse_file): Begin and end dumps
1734 once around parsing invocation.
1735 (get_dump_info): New function.
1736
7b56b2f8
MP
17372014-06-23 Marek Polacek <polacek@redhat.com>
1738 Andrew MacLeod <amacleod@redhat.com>
1739
1740 PR c/61553
1741 * c-common.c (get_atomic_generic_size): Don't segfault if the
1742 type doesn't have a size.
1743
0e37a2f3
MP
17442014-06-20 Marek Polacek <polacek@redhat.com>
1745
1746 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1747 (ubsan_walk_array_refs_r): New function.
1748 (c_genericize): Instrument array bounds.
1749 * c-ubsan.c: Include "internal-fn.h".
1750 (ubsan_instrument_division): Mark instrumented arrays as having
1751 side effects. Adjust ubsan_type_descriptor call.
1752 (ubsan_instrument_shift): Likewise.
1753 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1754 (ubsan_instrument_bounds): New function.
1755 (ubsan_array_ref_instrumented_p): New function.
1756 (ubsan_maybe_instrument_array_ref): New function.
1757 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1758 (ubsan_array_ref_instrumented_p): Declare.
1759 (ubsan_maybe_instrument_array_ref): Declare.
1760
17612014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1762
1763 PR lto/61123
1764 * c.opt (fshort-enums): Add to LTO.
1765 * c.opt (fshort-wchar): Likewise.
1766
5c3d09f7
MP
17672014-06-16 Marek Polacek <polacek@redhat.com>
1768
1769 PR c/60439
1770 * c.opt (Wswitch-bool): Add Var.
1771
9cf32741
JJ
17722014-06-12 Jakub Jelinek <jakub@redhat.com>
1773
1774 PR middle-end/61486
1775 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1776 #pragma omp target teams or
1777 #pragma omp {,target }teams distribute simd.
1778
62984918
JM
17792014-06-12 Jason Merrill <jason@redhat.com>
1780
1781 * c.opt (Wabi=, fabi-compat-version): New.
1782 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1783 (c_common_post_options): Handle flag_abi_compat_version default.
1784 Disallow -fabi-compat-version=1.
1785 * c-common.h (abi_version_crosses): New.
1786
f961457f
JH
17872014-06-11 Jan Hubicka <hubicka@ucw.cz>
1788
adfac8df 1789 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1790 section names that are no longer trees.
1791
92d28cbb
JJ
17922014-06-10 Jakub Jelinek <jakub@redhat.com>
1793
1794 PR fortran/60928
1795 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1796 (omp_pragmas): ... back here.
1797
742938c9
MP
17982014-06-05 Marek Polacek <polacek@redhat.com>
1799
1800 PR c/49706
1801 * c-common.c (warn_logical_not_parentheses): New function.
1802 * c-common.h (warn_logical_not_parentheses): Declare.
1803 * c.opt (Wlogical-not-parentheses): New option.
1804
9d548dfb
MP
18052014-06-04 Marek Polacek <polacek@redhat.com>
1806
1807 PR c/30020
1808 * c-common.c (check_case_bounds): Add location parameter.
1809 Use it.
1810 (c_add_case_label): Pass loc to check_case_bounds.
1811
fedfecef
MP
18122014-06-03 Marek Polacek <polacek@redhat.com>
1813
1814 PR c/60439
1815 * c.opt (Wswitch-bool): New option.
1816
f6a7cffc
TS
18172014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1818
040d18b6
TS
1819 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1820 Remove prototypes.
1821 (record_types_used_by_current_var_decl): Move prototype to where
1822 it belongs.
1823
f6a7cffc
TS
1824 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1825 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1826 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1827
632f2871
RS
18282014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1829
1830 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1831 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1832 void_zero_node.
1833 * c-pretty-print.c (pp_c_void_constant): New function.
1834 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1835 (c_pretty_printer::expression): Handle VOID_CST.
1836 * cilk.c (extract_free_variables): Likewise.
1837 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1838 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1839
766090c2
TS
18402014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1841
1842 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1843 * c-pragma.c (push_alignment): Adjust.
1844 (handle_pragma_push_options): Likewise.
1845
661a0813
MP
18462014-05-09 Marek Polacek <polacek@redhat.com>
1847
1848 PR c/50459
1849 * c-common.c (check_user_alignment): Return -1 if alignment is error
1850 node.
1851 (handle_aligned_attribute): Don't call default_conversion on
1852 FUNCTION_DECLs.
1853 (handle_vector_size_attribute): Likewise.
1854 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1855 (handle_sentinel_attribute): Call default_conversion and allow even
1856 integral types as an argument.
1857
2793eeab
MP
18582014-05-08 Marek Polacek <polacek@redhat.com>
1859
1860 PR c/61053
1861 * c-common.c (min_align_of_type): New function factored out from...
1862 (c_sizeof_or_alignof_type): ...here.
1863 * c-common.h (min_align_of_type): Declare.
1864
f827930a
MP
18652014-05-08 Marek Polacek <polacek@redhat.com>
1866
1867 PR c/61077
1868 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1869 parameter type of main.
1870
ca49b74e
DD
18712014-05-07 DJ Delorie <dj@redhat.com>
1872
1873 * c-cppbuiltin.c (print_bits_of_hex): New.
1874 (builtin_define_type_minmax): Print values using hex so as not to
1875 require a pre-computed list of string values.
1876
1d60af08
KZ
18772014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1878 Mike Stump <mikestump@comcast.net>
1879 Richard Sandiford <rdsandiford@googlemail.com>
1880
1881 * c-ada-spec.c: Include wide-int.h.
1882 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1883 (dump_generic_ada_node): Use wide-int interfaces.
1884 * c-common.c: Include wide-int-print.h.
1885 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1886 (pointer_int_sum): Use wide-int interfaces.
1887 (c_common_nodes_and_builtins): Use make_int_cst.
1888 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1889 (handle_alloc_size_attribute): Use wide-int interfaces.
1890 (get_nonnull_operand): Likewise.
1891 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1892 * c-lex.c: Include wide-int.h.
1893 (narrowest_unsigned_type): Take a widest_int rather than two
1894 HOST_WIDE_INTs.
1895 (narrowest_signed_type): Likewise.
1896 (interpret_integer): Update accordingly. Use wide-int interfaces.
1897 (lex_charconst): Use wide-int interfaces.
1898 * c-pretty-print.c: Include wide-int.h.
1899 (pp_c_integer_constant): Use wide-int interfaces.
1900 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1901 INT_CST_LT_UNSIGNED.
1902
b15458be
RB
19032014-05-06 Richard Biener <rguenther@suse.de>
1904
1905 * c-opts.c (c_common_post_options): For -freestanding,
1906 -fno-hosted and -fno-builtin disable pattern recognition
1907 if not enabled explicitely.
1908
6577374e
MP
19092014-05-02 Marek Polacek <polacek@redhat.com>
1910
1911 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1912
d00887e8
MP
19132014-05-01 Marek Polacek <polacek@redhat.com>
1914
1915 PR c/43245
1916 * c.opt (Wdiscarded-qualifiers): Add.
1917
f8ed5150
MP
19182014-04-30 Marek Polacek <polacek@redhat.com>
1919
1920 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1921 INT_MIN / -1 sanitization only for integer types.
1922
45484dcf
MP
19232014-04-25 Marek Polacek <polacek@redhat.com>
1924
1925 PR c/18079
1926 * c-common.c (handle_noinline_attribute): Warn if the attribute
1927 conflicts with always_inline attribute.
1928 (handle_always_inline_attribute): Warn if the attribute conflicts
1929 with noinline attribute.
1930
38e514c0
MP
19312014-04-25 Marek Polacek <polacek@redhat.com>
1932
1933 PR c/60156
1934 * c-common.c (check_main_parameter_types): Warn about variadic main.
1935
44875f92
MS
19362014-04-24 Mike Stump <mikestump@comcast.net>
1937
1938 * c.opt (Wshadow-ivar): Default to on.
1939
dcaaa5a0
DP
19402014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1941
1942 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1943
c07d7c02
MP
19442014-04-23 Marek Polacek <polacek@redhat.com>
1945
1946 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1947
1c33c9b7
JJ
19482014-04-22 Jakub Jelinek <jakub@redhat.com>
1949
1950 PR sanitizer/60275
1951 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1952 if flag_sanitize_undefined_trap_on_error.
1953 (ubsan_instrument_division, ubsan_instrument_shift,
1954 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1955 if !flag_sanitize_recover.
1956
793c625f
MG
19572014-04-22 Marc Glisse <marc.glisse@inria.fr>
1958
1959 PR libstdc++/43622
1960 * c-common.c (registered_builtin_types): Make non-static.
1961 * c-common.h (registered_builtin_types): Declare.
1962
b0f1bf36
RB
19632014-04-14 Richard Biener <rguenther@suse.de>
1964 Marc Glisse <marc.glisse@inria.fr>
1965
1966 PR c/60819
1967 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1968 apply may-alias the scalar pointer type when applicable.
1969
3b07fa4a
IZ
19702014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1971
1972 PR middle-end/60467
1973 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1974 as possible argument for Cilk_spawn.
1975
cbbd2b1c
TB
19762014-04-11 Tobias Burnus <burnus@net-b.de>
1977
1978 PR c/60194
1979 * c.opt (Wformat-signedness): Add
1980 * c-format.c(check_format_types): Use it.
1981
6415bd5d
JM
19822014-04-11 Jason Merrill <jason@redhat.com>
1983
1984 PR c++/57926
1985 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1986 default_conversion for an array argument.
1987
6525783a
MP
19882014-04-08 Marek Polacek <polacek@redhat.com>
1989
1990 PR sanitizer/60745
1991 * c-ubsan.c: Include asan.h.
1992 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1993
880a467b
NS
19942014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1995
1996 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1997
7b59ff2d
MP
19982014-04-02 Marek Polacek <polacek@redhat.com>
1999
2000 * c-common.h (c_expand_expr): Remove declaration.
2001
8edbfaa6
JJ
20022014-03-28 Jakub Jelinek <jakub@redhat.com>
2003
2004 PR c++/60689
2005 * c-common.c (add_atomic_size_parameter): When creating new
2006 params vector, push the size argument first.
2007
07d72e1d
JJ
20082014-03-26 Jakub Jelinek <jakub@redhat.com>
2009
2010 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2011 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2012 ubsan_create_data callers.
2013
b35e0fa0
JJ
20142014-03-22 Jakub Jelinek <jakub@redhat.com>
2015
2016 PR debug/60603
2017 * c-opts.c (c_finish_options): Restore cb_file_change call to
2018 <built-in>.
2019
39a1ebb3
JJ
20202014-03-13 Jakub Jelinek <jakub@redhat.com>
2021
2022 PR middle-end/36282
2023 * c-pragma.c (apply_pragma_weak): Only look at
2024 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2025 DECL_ASSEMBLER_NAME_SET_P (decl).
2026 (maybe_apply_pending_pragma_weaks): Exit early if
2027 vec_safe_is_empty (pending_weaks) rather than only when
2028 !pending_weaks.
2029 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2030 set assembler name back to NULL afterwards.
2031
a07f6ed2
JM
20322014-03-11 Jason Merrill <jason@redhat.com>
2033
2034 * c.opt: Add -std=gnu++14.
2035
75b107f5
IB
20362014-03-11 Ian Bolton <ian.bolton@arm.com>
2037
2038 * c-opts.c (c_common_post_options): Don't override
2039 -ffp-contract=fast if unsafe-math-optimizations is on.
2040
f42c637e
PM
20412014-03-08 Paulo Matos <paulo@matos-sorge.com>
2042
2043 * c.opt: Enable LTO FE for fshort-double.
2044
70e24808
JM
20452014-03-07 Jason Merrill <jason@redhat.com>
2046
2047 * c.opt: Add -std=c++14.
2048
3af9c5e9
MP
20492014-03-06 Marek Polacek <polacek@redhat.com>
2050
2051 PR c/60197
2052 * cilk.c (contains_cilk_spawn_stmt): New function.
2053 (contains_cilk_spawn_stmt_walker): Likewise.
2054 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2055 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2056
b3bdf019
JJ
20572014-03-03 Jakub Jelinek <jakub@redhat.com>
2058
2059 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2060 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2061 even when flag_preprocess_only.
2062
ca7e759d
JM
20632014-02-26 Jason Merrill <jason@redhat.com>
2064
2065 PR c++/59231
2066 PR c++/11586
2067 * c-common.c (shorten_compare): Don't check
2068 c_inhibit_evaluation_warnings.
2069
28e41874
JJ
20702014-02-19 Jakub Jelinek <jakub@redhat.com>
2071
cca615af
JJ
2072 PR c/37743
2073 * c-common.c (c_common_nodes_and_builtins): When initializing
2074 c_uint{16,32,64}_type_node, also set corresponding
2075 uint{16,32,64}_type_node to the same value.
2076
28e41874
JJ
2077 PR c++/60267
2078 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2079 for PRAGMA_IVDEP if flag_preprocess_only.
2080
c2bf53a1
JJ
20812014-02-12 Jakub Jelinek <jakub@redhat.com>
2082
2083 PR c/60101
2084 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2085 if false, add ADD itself, rather than vice versa.
2086 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2087 copy. For SAVE_EXPR, only call merge_tlist once.
2088
8fcbce72
JJ
20892014-02-08 Jakub Jelinek <jakub@redhat.com>
2090
2091 PR middle-end/60092
2092 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2093 and tree_to_uhwi.
2094 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2095 functions.
2096 (c_common_attribute_table): Add alloc_align and assume_aligned
2097 attributes.
2098
0a756a3f
MP
20992014-02-06 Marek Polacek <polacek@redhat.com>
2100
2101 PR c/60087
2102 * c-common.c (warn_for_sign_compare): Call warning_at with location
2103 instead of warning.
2104
7ec4847a
MP
21052014-02-05 Marek Polacek <polacek@redhat.com>
2106
2107 PR c/53123
2108 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2109 statement.
2110
66f20604
MP
21112014-02-04 Marek Polacek <polacek@redhat.com>
2112
2113 PR c/60036
2114 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2115 SAVE_EXPR.
2116
5d77fb19
MG
21172014-02-03 Marc Glisse <marc.glisse@inria.fr>
2118
2119 PR c++/53017
2120 PR c++/59211
2121 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2122 handle_vector_size_attribute, handle_nonnull_attribute): Call
2123 default_conversion on the attribute argument.
2124 (handle_nonnull_attribute): Increment the argument number.
2125
81e5eca8
MP
21262014-01-31 Marek Polacek <polacek@redhat.com>
2127
2128 PR c/59963
2129 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2130 build_function_call_vec.
2131 (resolve_overloaded_builtin): Likewise.
2132 * c-common.h (build_function_call_vec): Adjust declaration.
2133
68fca595
MP
21342014-01-30 Marek Polacek <polacek@redhat.com>
2135
2136 PR c/59940
2137 * c-common.h (unsafe_conversion_p): Adjust declaration.
2138 (warnings_for_convert_and_check): Likewise.
2139 (convert_and_check): Likewise.
2140 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2141 expansion_point_location_if_in_system_header on it.
2142 (warnings_for_convert_and_check): Add location parameter. Call
2143 expansion_point_location_if_in_system_header on it. Use it.
2144 (convert_and_check): Add location parameter. Use it.
2145 (conversion_warning): Likewise.
2146 (c_add_case_label): Adjust convert_and_check calls.
2147 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2148
b72271b9
BI
21492014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2150
2151 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2152 flag_cilkplus.
2153 * c-pragma.c (init_pragma): Likewise.
2154 * c.opt: Likewise.
2155
393e8e8b
MP
21562014-01-23 Marek Polacek <polacek@redhat.com>
2157
2158 PR c/59846
2159 * c-common.c (shorten_compare): Add location_t parameter.
2160 * c-common.h (shorten_binary_op): Adjust declaration.
2161
f04dda30
MP
21622014-01-23 Marek Polacek <polacek@redhat.com>
2163
2164 PR c/58346
2165 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2166 * c-common.h: Declare it.
2167
621955cb
EB
21682014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2169
2170 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2171 * c-ada-spec.c (dump_ads): Likewise.
2172 (cpp_check): Likewise.
2173 (dump_ada_specs): Likewise.
2174
21752014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2176
2177 PR c++/49718
2178 * c-common.c (handle_no_instrument_function_attribute): Allow
2179 no_instrument_function attribute in class member
2180 definition/declaration.
2181
241f845a
JJ
21822014-01-15 Jakub Jelinek <jakub@redhat.com>
2183
2184 PR c/58943
2185 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2186 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2187 being COMPOUND_EXPR.
2188 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2189 operand a SAVE_EXPR and second MODIFY_EXPR.
2190
e83b8e2e
JJ
21912014-01-09 Jakub Jelinek <jakub@redhat.com>
2192
2193 PR target/58115
2194 * c-pch.c (c_common_write_pch): Call
2195 prepare_target_option_nodes_for_pch.
2196
23a5b65a
RS
21972014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2198
2199 Update copyright years
2200
f9030485
RS
22012014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2202
2203 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2204 the copyright notice.
2205
f2aa696b
EB
22062013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2207
2208 * c-ada-spec.c (print_constructor): New function.
2209 (print_destructor): Retrieve the origin of the destructor.
2210 (print_ada_declaration): Revamp handling of constructors/destructors.
2211
1f26ac87
JM
22122013-12-23 Stuart Hastings <stuart@apple.com>
2213 Bill Maddox <maddox@google.com>
2214 Jason Merrill <jason@redhat.com>
2215
2216 * c.opt: Add -fdeclone-ctor-dtor.
2217 * c-opts.c (c_common_post_options): Default to on iff -Os.
2218
41958c28
BI
22192013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2220
2221 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2222 attribute.
2223 * c-pragma.h (enum pragma_cilk_clause): Remove.
2224 (enum pragma_omp_clause): Added the following fields:
2225 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2226 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2227 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2228 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2229 PRAGMA_CILK_CLAUSE_UNIFORM.
2230
2231
12893402
BI
22322013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2233
2234 * cilk.c (cilk_outline): Made this function non-static.
2235 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2236 (create_cilk_wrapper): Added a new parameter: a function pointer.
2237 (c_install_body_w_frame_cleanup): Remove
2238 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2239 * c-common.h (cilk_outline): New prototype.
2240 (gimplify_cilk_spawn): Removed two parameters.
2241 (cilk_install_body_with_frame_cleanup): New prototype.
2242 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2243 CILK_SPAWN_STMT case.
2244
085b42ed
BS
22452013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2246
2ce064c3
BS
2247 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2248
085b42ed
BS
2249 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2250 (int_array_type_node): Remove.
2251 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2252
9e36c9ed
MP
22532013-12-05 Marek Polacek <polacek@redhat.com>
2254
2255 PR c/52023
2256 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2257 [ADJUST_FIELD_ALIGN].
2258
296674db
JM
22592013-12-04 Joseph Myers <joseph@codesourcery.com>
2260
2261 PR c/52023
2262 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2263 and check field alignment if set.
2264 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2265 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2266
31e071ae
MP
22672013-12-04 Jakub Jelinek <jakub@redhat.com>
2268 Marek Polacek <polacek@redhat.com>
2269
2270 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2271 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2272
d7947e19
L
22732013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2274
2275 PR c/59309
2276 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2277 arguments.
2278
fad7652e
JJ
22792013-11-29 Jakub Jelinek <jakub@redhat.com>
2280
2281 PR c/59280
2282 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2283 goto invalid. If it is error_mark_node, don't issue further
2284 diagnostics.
2285
8b5e1202
SO
22862013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2287
2288 * c.opt (Wopenmp-simd): New.
2289
0a508bb6
JJ
22902013-11-22 Jakub Jelinek <jakub@redhat.com>
2291
2292 * c-ubsan.h (ubsan_instrument_return): New prototype.
2293 * c-ubsan.c (ubsan_instrument_return): New function.
2294
2fb9a547
AM
22952013-11-22 Andrew MacLeod <amacleod@redhat.com>
2296
2297 * c-common.c: Add required include files from gimple.h.
2298 * c-gimplify.c: Likewise
2299 * cilk.c: Likewise
2300
8400e75e
DM
23012013-11-22 David Malcolm <dmalcolm@redhat.com>
2302
2303 * c-common.c (unsafe_conversion_p): Remove use of
2304 EXPR_LOC_OR_HERE macro.
2305 (conversion_warning): Likewise.
2306 (warnings_for_convert_and_check): Likewise.
2307 (warn_for_collisions_1): Likewise.
2308 (shorten_compare): Likewise, and remove use of in_system_header
2309 macro, using the location from the former.
2310 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2311 (cb_def_pragma): Remove use of in_system_header macro.
2312 (lex_string): Likewise.
2313 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2314
eb1ce453
KZ
23152013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2316 Mike Stump <mikestump@comcast.net>
2317 Richard Sandiford <rdsandiford@googlemail.com>
2318
2319 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2320 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2321 tree_fits_shwi_p or tree_fits_uhwi_p.
2322 (dump_generic_ada_node): Likewise.
2323 * c-format.c (check_format_arg): Likewise.
2324 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2325
6b3b8c27
KZ
23262013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2327
2328 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2329
49b0aa18
JC
23302013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2331
2332 PR c/53001
2333 * c-common.c (unsafe_conversion_p): Make this function
2334 return an enumeration with more detail.
2335 (conversion_warning): Use the new return type of
2336 unsafe_conversion_p to separately warn either about conversions
2337 that lower floating point number precision or about the other
2338 kinds of conversions.
2339 * c-common.h (enum conversion_safety): New enumeration.
2340 (unsafe_conversion_p): switching return type to
2341 conversion_safety enumeration.
2342 * c.opt: Adding new warning -Wfloat-conversion and
2343 enabling it with -Wconversion.
2344
b826515a
BS
23452013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2346
2347 * c-opts.c: Include plugin.h.
2348 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2349
b9a55b13
MP
23502013-11-19 Marek Polacek <polacek@redhat.com>
2351
2352 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2353 call.
2354 (ubsan_instrument_shift): Likewise.
2355 (ubsan_instrument_vla): Likewise.
2356
7d362f6c
RS
23572013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2358
2359 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2360 cast to unsigned type.
2361
386b1f1f
RS
23622013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2363
2364 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2365 tree_low_cst.
2366 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2367 rather than tree_low_cst.
2368
ae7e9ddd
RS
23692013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2370
2371 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2372 tree_to_uhwi throughout.
2373
9439e9a1
RS
23742013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2375
2376 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2377 tree_low_cst (..., 0) with tree_to_shwi throughout.
2378
cc269bb6
RS
23792013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2380
2381 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2382 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2383
9541ffee
RS
23842013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2385
2386 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2387 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2388
c02065fc
AH
23892013-11-15 Aldy Hernandez <aldyh@redhat.com>
2390
2391 * c-cilkplus.c: New file.
2392 * c-common.c (readonly_error): Add location argument.
2393 * c-common.h (readonly_error): Same.
2394 (c_finish_cilk_clauses): Protoize.
2395 (c_check_cilk_loop): Same.
2396 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2397 Do not fail on error_mark_node.
2398 Abstract increment canonicalization to here...
2399 (c_omp_for_incr_canonicalize_ptr): New.
2400 c-pragma.c (init_pragma): Register "simd" pragma.
2401 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2402 (enum pragma_cilk_clause): New.
2403
9cc65f15
RS
24042013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2405
2406 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2407 wchar_type and host_integerp checks.
2408
18f429e2
AM
24092013-11-14 Andrew MacLeod <amacleod@redhat.com>
2410
2411 * c-common.c: Likewise.
2412 * c-gimplify.c: Likewise.
2413 * cilk.c: Likewise.
2414
d8a2d370
DN
24152013-11-14 Diego Novillo <dnovillo@google.com>
2416
2417 * c-common.c: Include fold-const.h.
2418 Include stor-layout.h.
2419 Include calls.h.
2420 Include stringpool.h.
2421 Include attribs.h.
2422 Include varasm.h.
2423 Include trans-mem.h.
2424 * c-cppbuiltin.c: Include stor-layout.h.
2425 Include stringpool.h.
2426 * c-format.c: Include stringpool.h.
2427 * c-lex.c: Include stringpool.h.
2428 Include stor-layout.h.
2429 * c-pragma.c: Include stringpool.h.
2430 Include attribs.h.
2431 Include varasm.h.
2432 Include gcc-symtab.h.
2433 * c-pretty-print.c: Include stor-layout.h.
2434 Include attribs.h.
2435 * cilk.c: Include stringpool.h.
2436 Include calls.h.
2437
38b7bc7f
JM
24382013-11-13 Joseph Myers <joseph@codesourcery.com>
2439
2440 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2441 * c-common.c (c_common_reswords): Add __auto_type.
2442 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2443
45b0be94
AM
24442013-11-12 Andrew MacLeod <amacleod@redhat.com>
2445
18f429e2
AM
2446 * c-common.c: Include gimplify.h.
2447 * c-gimplify.c: Likewise.
2448 * cilk.c: Likewise.
2449 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2450 * c-ubsan.c: Don't include gimple.h.
45b0be94 2451
582d9b50
JM
24522013-11-12 Joseph Myers <joseph@codesourcery.com>
2453
2454 * c-common.c (c_common_reswords): Add _Thread_local.
2455
6b28e197
JM
24562013-11-09 Joseph Myers <joseph@codesourcery.com>
2457
2458 * c-common.c (atomic_size_supported_p): New function.
2459 (resolve_overloaded_atomic_exchange)
2460 (resolve_overloaded_atomic_compare_exchange)
2461 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2462 Use it instead of comparing size with a local list of sizes.
2463
267bac10
JM
24642013-11-07 Andrew MacLeod <amacleod@redhat.com>
2465 Joseph Myers <joseph@codesourcery.com>
2466
2467 * c-common.h (enum rid): Add RID_ATOMIC.
2468 * c-common.c (c_common_reswords): Add _Atomic.
2469 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2470 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2471 * c-format.c (check_format_types): Check for extra _Atomic
2472 qualifiers in format argument.
2473 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2474 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2475
5157b91e
TB
24762013-11-06 Tobias Burnus <burnus@net-b.de>
2477
2478 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2479
6dbe0958
JM
24802013-11-06 Joseph Myers <joseph@codesourcery.com>
2481
2482 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2483 standards modes.
2484 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2485 to mean lack of IEEE 754 support.
2486
e8ff5196
TB
24872013-11-05 Tobias Burnus <burnus@net-b.de>
2488
2489 * c.opt (-Wdate-time): New option
2490 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2491
254a0760
JM
24922013-11-05 Joseph Myers <joseph@codesourcery.com>
2493
2494 * c-cppbuiltin.c (cpp_iec_559_value): Test
2495 flag_excess_precision_cmdline not flag_excess_precision.
2496
6d7f7e0a
TB
24972013-11-05 Tobias Burnus <burnus@net-b.de>
2498
2499 * c.opt (fopenmp-simd): New option.
2500 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2501 (omp_pragmas): ... this new struct.
2502 (c_pp_lookup_pragma): Also walk omp_pragmas.
2503 (init_pragma): Init pragmas for -fopenmp-simd.
2504
55a7f02f
MP
25052013-11-04 Marek Polacek <polacek@redhat.com>
2506
2507 PR c++/58979
2508 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2509
9193fb05
JM
25102013-11-04 Joseph Myers <joseph@codesourcery.com>
2511
2512 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2513 New functions.
2514 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2515
94159ecf
EB
25162013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2517
2518 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2519 (dump_ada_specs): Adjust prototype of second callback.
2520 * c-ada-spec.c (cpp_check): New global variable.
2521 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2522 (print_generic_ada_decl): Likewise.
2523 (has_static_fields): Change return type to bool and add guard.
2524 (has_nontrivial_methods): New predicate.
2525 (is_tagged_type): Change return type to bool.
2526 (separate_class_package): Call has_nontrivial_methods.
2527 (pp_ada_tree_identifier): Minor tweaks.
2528 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2529 (dump_ada_array_domains): Likewise.
2530 (dump_ada_array_type): Likewise.
2531 (dump_template_types): Remove cpp_check parameter and do not pass it to
2532 dump_generic_ada_node.
2533 (dump_ada_template): Likewise.
2534 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2535 recursively.
2536 (print_ada_methods): Change return type to integer. Remove cpp_check
2537 parameter and do not pass it down.
2538 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2539 dump_generic_ada_node.
2540 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2541 accessing methods.
2542 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2543 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2544 value of print_ada_methods.
2545 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2546 Set cpp_check to it before invoking dump_ada_nodes.
2547 (dump_ada_specs): Likewise.
2548
b906f4ca
MP
25492013-11-03 Marek Polacek <polacek@redhat.com>
2550
2551 * c-ubsan.c: Don't include hash-table.h.
2552 (ubsan_instrument_vla): New function.
2553 * c-ubsan.h: Declare it.
2554
5e20cdc9
DM
25552013-10-31 David Malcolm <dmalcolm@redhat.com>
2556
2557 Automated part of renaming of symtab_node_base to symtab_node.
2558
2559 Patch autogenerated by rename_symtab.py from
2560 https://github.com/davidmalcolm/gcc-refactoring-scripts
2561 revision 58bb219cc090b2f4516a9297d868c245495ee622
2562
2563 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2564 symtab_node_base to symtab_node.
2565
7057e645
ESR
25662013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2567
2568 Implement C++14 digit separators.
2569 * c-lex.c (interpret_float): Remove digit separators from scratch string
2570 before building real literal.
2571
193ea7bc
JJ
25722013-10-30 Jakub Jelinek <jakub@redhat.com>
2573
2574 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2575
939b37da
BI
25762013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2577
2578 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2579 fields.
2580 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2581 enabled.
2582 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2583 (insert_cilk_frame): New prototype.
2584 (cilk_init_builtins): Likewise.
2585 (gimplify_cilk_spawn): Likewise.
2586 (c_cilk_install_body_w_frame_cleanup): Likewise.
2587 (cilk_detect_spawn_and_unwrap): Likewise.
2588 (cilk_set_spawn_marker): Likewise.
2589 (build_cilk_sync): Likewise.
2590 (build_cilk_spawn): Likewise.
2591 * cilk.c: New file.
2592
67348ccc
DM
25932013-10-29 David Malcolm <dmalcolm@redhat.com>
2594
2595 Patch autogenerated by refactor_symtab.py from
2596 https://github.com/davidmalcolm/gcc-refactoring-scripts
2597 revision 58bb219cc090b2f4516a9297d868c245495ee622
2598
2599 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2600 to a true class hierarchy.
2601 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2602
d570872d
RS
26032013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2604
2605 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2606
98906124
JL
26072013-10-26 Jeff Law <law@redhat.com>
2608
adfac8df
JJ
2609 * c-common.c (c_define_builtins): Remove mudflap support.
2610 * c.opt: Ignore and warn for mudflap options.
98906124 2611
d73749df 26122013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2613
2614 PR other/33426
2615 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2616 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2617
3f04b1bb
JM
26182013-10-23 Jason Merrill <jason@redhat.com>
2619
2620 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2621
acf0174b
JJ
26222013-10-11 Jakub Jelinek <jakub@redhat.com>
2623
acd15a28
JJ
2624 * c-common.h (omp_clause_mask::operator !=): New method.
2625 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2626 instead of if (mask & something) tests everywhere.
2627
acf0174b
JJ
2628 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2629 201307 instead of 201107.
2630 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2631 (c_common_attribute_table): Add "omp declare target" and
2632 "omp declare simd" attributes.
2633 (handle_omp_declare_target_attribute,
2634 handle_omp_declare_simd_attribute): New functions.
2635 * c-omp.c: Include c-pragma.h.
2636 (c_finish_omp_taskgroup): New function.
2637 (c_finish_omp_atomic): Add swapped argument, if true,
2638 build the operation first with rhs, lhs arguments and use NOP_EXPR
2639 build_modify_expr.
2640 (c_finish_omp_for): Add code argument, pass it down to make_code.
2641 (c_omp_split_clauses): New function.
2642 (c_split_parallel_clauses): Removed.
2643 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2644 c_omp_declare_simd_clauses_to_decls): New functions.
2645 * c-common.h (omp_clause_mask): New type.
2646 (OMP_CLAUSE_MASK_1): Define.
2647 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2648 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2649 omp_clause_mask::operator |, omp_clause_mask::operator &,
2650 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2651 omp_clause_mask::operator ==): New methods.
2652 (enum c_omp_clause_split): New.
2653 (c_finish_omp_taskgroup): New prototype.
2654 (c_finish_omp_atomic): Add swapped argument.
2655 (c_finish_omp_for): Add code argument.
2656 (c_omp_split_clauses): New prototype.
2657 (c_split_parallel_clauses): Removed.
2658 (c_omp_declare_simd_clauses_to_numbers,
2659 c_omp_declare_simd_clauses_to_decls): New prototypes.
2660 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2661 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2662 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2663 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2664 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2665 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2666 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2667 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2668 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2669 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2670 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2671 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2672 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2673 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2674 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2675 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2676 PRAGMA_OMP_CLAUSE_UNIFORM.
2677
826cacfe
MG
26782013-10-09 Marc Glisse <marc.glisse@inria.fr>
2679
2680 PR tree-optimization/20318
2681 * c-common.c (handle_returns_nonnull_attribute): New function.
2682 (c_common_attribute_table): Add returns_nonnull.
2683
2284b034
MG
26842013-10-03 Marc Glisse <marc.glisse@inria.fr>
2685
2686 PR c++/19476
2687 * c.opt (fcheck-new): Move to common.opt.
2688
b56e9788
MP
26892013-09-25 Marek Polacek <polacek@redhat.com>
2690 Jakub Jelinek <jakub@redhat.com>
2691
2692 PR sanitizer/58413
2693 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2694 an expression if we can prove it is correct.
2695 (ubsan_instrument_division): Likewise. Remove unnecessary
2696 check.
2697
ce6923c5
MP
26982013-09-18 Marek Polacek <polacek@redhat.com>
2699
2700 PR sanitizer/58411
2701 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2702 Declare it.
2703 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2704
fb5610fb
IS
27052013-09-14 Iain Sandoe <iain@codesourcery.com>
2706
2707 PR target/48094
2708 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2709 fobjc-gc, freplace-objc-classes): Accept for LTO.
2710
88b0e79e
JC
27112013-09-13 Jacek Caban <jacek@codeweavers.com>
2712
2713 * c-target.def: New hook
2714
c9b0866a
PC
27152013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2716
2717 PR c++/43452
2718 * c.opt (Wdelete-incomplete): Add.
2719
0af94e6f
JR
27202013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2721
2722 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2723 (vector_types_compatible_elements_p): New function.
2724 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2725 declaration.
2726 (vector_types_compatible_elements_p): Declare.
2727
7c26172c
GDR
27282013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2729
2730 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2731 a virtual member function.
2732 (pp_simple_type_specifier): Remove.
2733 (pp_c_type_specifier): Likewise.
2734 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2735 Rename from pp_c_type_specifier. Adjust.
2736 (c_pretty_printer::c_pretty_printer): Do not assign to
2737 simple_type_specifier.
2738
20059c8b
GDR
27392013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2740
2741 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2742 member function.
2743 (c_pretty_printer::storage_class_specifier): Likewise.
2744 (c_pretty_printer::initializer): Likewise.
2745 (pp_declaration): Remove.
2746 (pp_declaration_specifiers): Likewise.
2747 (pp_abstract_declarator): Likewise.
2748 (pp_declarator): Likewise.
2749 (pp_type_id): Likewise.
2750 (pp_statement): Likewise.
2751 (pp_constant): Likewise.
2752 (pp_id_expression): Likewise.
2753 (pp_primary_expression): Likewise.
2754 (pp_unary_expression): Likewise.
2755 (pp_multiplicative_expression): Likewise.
2756 (pp_conditional_expression): Likewise.
2757 (pp_assignment_expression): Likewise.
2758 (pp_expression): Likewise.
2759 (pp_c_type_id): Likewise.
2760 (pp_c_storage_class_specifier): Likewise.
2761 * c-pretty-print.c (pp_c_type_cast): Tidy.
2762 (pp_c_pointer): Likewise.
2763 (pp_c_type_specifier): Likewise.
2764 (pp_c_parameter_type_list): Likewise.
2765 (pp_c_function_definition): Likewise.
2766 (pp_c_init_declarator): Likewise.
2767 (pp_c_initializer_list): Likewise.
2768 (pp_c_constructor_elts): Likewise.
2769 (c_pretty_printer::direct_abstract_declarator): Likewise.
2770 (c_pretty_printer::declaration_specifiers): Likewise.
2771 (c_pretty_printer::primary_expression): Likewise.
2772 (c_pretty_printer::postfix_expression): Likewise.
2773 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2774 (c_pretty_printer::storage_class_specifier): Rename from
2775 pp_c_storage_class_specifier.
2776 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2777 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2778 storage_class_specifier, initializer, offset_list, flags.
2779
de5a5fa1
MP
27802013-08-30 Marek Polacek <polacek@redhat.com>
2781
2782 * c-ubsan.c: New file.
2783 * c-ubsan.h: New file.
2784
8f0e4d72
GDR
27852013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2786
2787 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2788 member function.
2789 (c_pretty_printer::declaration_specifiers): Likewise.
2790 (c_pretty_printer::declarator): Likewise.
2791 (c_pretty_printer::abstract_declarator): Likewise.
2792 (c_pretty_printer::direct_abstract_declarator): Likewise.
2793 (c_pretty_printer::direct_declarator): Likewise.
2794 (c_pretty_printer::function_specifier): Likewise.
2795 (pp_declaration): Adjust.
2796 (pp_declaration_specifiers): Likewise.
2797 (pp_abstract_declarator): Likewise.
2798 (pp_direct_declarator): Likewise.
2799 (pp_function_specifier): Likewise.
2800 (pp_direct_abstract_declarator): Remove as unused.
2801 (pp_c_declaration): Remove.
2802 (pp_c_declaration_specifiers): Likewise.
2803 (pp_c_declarator): Likewise.
2804 (pp_c_direct_declarator): Likewise.
2805 (pp_c_function_specifier): Likewise.
2806 (pp_c_direct_abstract_declarator): Likewise.
2807 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2808 from pp_c_abstract_declarator. Adjust.
2809 (c_pretty_printer::direct_abstract_declarator): Rename from
2810 pp_c_direct_abstract_declarator. Adjust.
2811 (c_pretty_printer::function_specifier): Rename from
2812 pp_c_function_specifier. Adjust.
2813 (c_pretty_printer::declaration_specifiers): Rename from
2814 pp_c_declaration_specifiers. Adjust.
2815 (c_pretty_printer::direct_declarator): Rename from
2816 pp_c_direct_declarator. Adjust.
2817 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2818 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2819 (c_pretty_printer::c_pretty_printer): Do not assign to
2820 declaration, declaration_specifiers, declarator,
2821 direct_declarator, direct_abstract_declarator, function_specifier.
2822
00d34d3a
GDR
28232013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2824
2825 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2826 virtual member function.
2827 (c_pretty_printer::multiplicative_expression): Likewise.
2828 (c_pretty_printer::conditional_expression): Likewise.
2829 (c_pretty_printer::assignment_expression): Likewise.
2830 (c_pretty_printer::expression): Likewise.
2831 (pp_unary_expression): Adjust.
2832 (pp_multiplicative_expression): Likewise.
2833 (pp_assignment_expression): Likewise.
2834 (pp_conditional_expression): Likewise.
2835 (pp_expression): Likewise.
2836 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2837 from pp_c_unary_expression. Adjust.
2838 (c_pretty_printer::multiplicative_expression): Rename from
2839 pp_c_multiplicative_expression. Adjust.
2840 (c_pretty_printer::conditional_expression): Rename from
2841 pp_c_conditional_expression. Adjust.
2842 (c_pretty_printer::assignment_expression): Rename from
2843 pp_c_assignment_expression. Adjust.
2844 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2845 (c_pretty_printer::c_pretty_printer): Do not assign to
2846 unary_expression, multiplicative_expression,
2847 conditional_expression, expression.
2848
fb22178f
GDR
28492013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2850
2851 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2852 virtual member function.
2853 (pp_postfix_expression): Adjust.
2854 (pp_c_postfix_expression): Remove.
2855 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2856 from pp_c_postfix_expression. Adjust.
2857 (c_pretty_printer::c_pretty_printer): Do not assign to
2858 postfix_expression.
2859
7ecc2600
GDR
28602013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2861
2862 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2863 virtua member function.
2864 (pp_primary_expression): Adjust.
2865 (pp_c_primary_expression): Remove.
2866 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2867 from pp_c_primary_expression. Adjust.
2868 (pp_c_initializer_list): Use pp_primary_expression.
2869 (c_pretty_printer::c_pretty_printer): Do not assign to
2870 primary_expression.
2871
0691175f
GDR
28722013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2873
2874 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2875 * c-pretty-print.c (M_): Remove.
2876 (c_pretty_printer::translate_string): Define.
2877 (pp_c_type_specifier): Use it.
2878 (pp_c_primary_expression): Likewise.
2879 (pp_c_expression): Likewise.
2880
66dfe4c4
GDR
28812013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2882
2883 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2884 virtual function.
2885 (pp_c_id_expression): Remove.
2886 (pp_id_expression): Adjust.
2887 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2888 pp_c_id_expression. Adjust.
2889 (pp_c_postfix_expression): Use pp_id_expression.
2890 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2891
ca43e9d5
GDR
28922013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2893
2894 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2895 member function.
2896 (pp_constant): Adjust.
2897 (pp_c_constant): Remove.
2898 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2899 pp_c_constant. Adjust.
2900 (pp_c_constant)
2901 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2902 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2903
da6ca2b5
GDR
29042013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2905
2906 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2907 (c_pretty_printer::c_pretty_printer): Declare.
2908 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2909 c_pretty_printer_init. Adjust.
2910 (print_c_tree): Do not call c_pretty_printer_init.
2911 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2912
65a372f4
AC
29132013-08-09 Arnaud Charlet <charlet@adacore.com>
2914
2915 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2916
fd9b0f32
PC
29172013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2918
2919 PR c++/58080
2920 * c-common.c (pointer_int_sum): Add bool parameter.
2921 * c-common.h (pointer_int_sum): Adjust declaration.
2922
e0aec1e9
GDR
29232013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2924
2925 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2926 c_pretty_printer variable.
2927
b066401f
GDR
29282013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2929
2930 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2931 (pp_base): Remove.
2932 (pp_c_base): Likewise. Adjust users.
2933 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2934 (pp_c_whitespace): Do not call pp_base.
2935 (pp_c_left_paren): Likewise.
2936 (pp_c_right_paren): Likewise.
2937 (pp_c_left_brace): Likewise.
2938 (pp_c_right_brace): Likewise.
2939 (pp_c_left_bracket): Likewise.
2940 (pp_c_right_bracket): Likewise.
2941 (pp_c_dot): Likewise.
2942 (pp_c_ampersand): Likewise.
2943 (pp_c_star): Likewise.
2944 (pp_c_arrow): Likewise.
2945 (pp_c_semicolon): Likewise.
2946 (pp_c_complement): Likewise.
2947 (pp_c_exclamation): Likewise.
2948 (pp_c_direct_declarator): Likewise.
2949 (pp_c_ws_string): Likewise.
2950 (pp_c_identifier): Likewise.
2951 (pp_c_statement): Likewise.
2952 (print_c_tree): Likewise.
2953
65e5a578
ESR
29542013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2955
2956 PR c++/58072
2957 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2958 provide useful error strings.
2959
137a1a27
GDR
29602013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2961
2962 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2963 printer functions instead of pp_string or operators and punctuators.
2964 (dump_generic_ada_node): Likewise.
2965 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2966 (pp_c_relational_expression): Likewise.
2967 (pp_c_logical_or_expression): Likewise.
2968
07838b13
GDR
29692013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2970
2971 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2972 functions instead of pp_character.
2973 (pp_ada_tree_identifier): Likewise.
2974 (dump_ada_double_name): Likewise.
2975 (dump_ada_function_declaration): Likewise.
2976 (dump_ada_array_domains): Likewise.
2977 (dump_template_types): Likewise.
2978 (dump_generic_ada_node): Likewise.
2979 (print_ada_declaration): Likewise.
2980 (print_ada_struct_decl): Likewise.
2981 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2982
433cc7b0
TT
29832013-07-23 Tom Tromey <tromey@redhat.com>
2984
2985 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2986 * c-common.c (c_common_reswords): Add _Generic.
2987
688010ba
OB
29882013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2989
2990 * c-common.c: Fix typos.
2991 * c-common.h: Likewise.
2992
2a99e5e6
LL
29932013-07-13 Lubos Lunak <l.lunak@suse.cz>
2994
2995 PR c++/55203
2996 * c-common.c (c_common_attribute_table): Add warn_unused.
2997 (handle_warn_unused_attribute): New.
2998
c26302d5
JJ
29992013-07-10 Jakub Jelinek <jakub@redhat.com>
3000
3001 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3002 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3003
dfeadaa0
PC
30042013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3005
3006 PR c++/57869
3007 * c.opt: Add Wconditionally-supported.
3008
6a2fa4b2
GS
30092013-07-08 Graham Stott <graham.stott@btinternet.com>
3010
adfac8df 3011 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3012 unused variables l_length and l_node.
3013
ecdbd01a 30142013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3015
3016 PR c/57821
3017 * c-common.c (complete_array_type): Delay folding first index
3018 like other indices. When folding, check for index overflow.
3019
bedc293e
MG
30202013-06-27 Marc Glisse <marc.glisse@inria.fr>
3021
3022 PR c++/57509
3023 * c-common.h (c_build_vec_perm_expr): New complain argument.
3024 * c-common.c (c_build_vec_perm_expr): Likewise.
3025 Use save_expr also in C++.
3026
604b2bfc
GDR
30272013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3028
3029 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3030 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3031 * c-opts.c (c_common_post_options): Likewise.
3032
dfeadaa0 30332013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3034
3035 * array-notation-common.c (length_mismatch_in_expr): Changed the
3036 parameter type's from a dynamic array to a vec_tree. Also removed
3037 the size parameters.
3038 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3039 the change above.
3040
2ce86d2e
BI
30412013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3042
3043 * c-common.h (struct cilkplus_an_parts): New structure.
3044 (struct cilkplus_an_loop_parts): Likewise.
3045 (cilkplus_extract_an_triplets): New prototype.
3046 (fix_sec_implicit_args): Likewise.
3047 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3048 (fix_sec_implicit_args): Likewise.
604b2bfc 3049
07a6825b
BI
30502013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3051
3052 * array-notation-common.c (find_inv_trees): Removed an unwanted
3053 typecasting.
3054 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3055 enum rid to enum tree_code.
3056
08346abd
JH
30572013-06-11 Jan Hubicka <jh@suse.cz>
3058
3059 * c-common.c (handle_alias_ifunc_attribute): Do not set
3060 DECL_EXTERNAL for weakref variables.
3061 * c-pragma.c (handle_pragma_weak): Make sure aliases
3062 are not declared as external.
3063
d60f1706
BI
30642013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3065
3066 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3067 function from c/c-array-notation.c.
3068 (is_cilkplus_reduce_builtin): Likewise.
3069 (find_rank): Likewise.
3070 (extract_array_notation_exprs): Likewise.
3071 (replace_array_notations): Likewise.
3072 (find_inv_trees): Likewise.
3073 (replace_inv_trees): Likewise.
3074 (contains_array_notation_expr): Likewise.
3075 (find_correct_array_notation_type): Likewise.
3076 * c-common.h (struct inv_list): Moved this struct from the file
3077 c/c-array-notation.c and added a new field called additional tcodes.
3078 (length_mismatch_in_expr_p): New prototype.
3079 (is_cilkplus_reduce_builtin): Likewise.
3080 (find_rank): Likewise.
3081 (extract_array_notation_exprs): Likewise.
3082 (replace_array_notation): Likewise.
3083 (find_inv_trees): Likewise.
3084 (replace_inv_trees): Likewise.
3085 (find_correct_array_notation_type): Likewise.
dfeadaa0 3086
36536d79
BI
30872013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3088
3089 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3090 function array_notation_init_builtins is called.
3091 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3092 * c-common.def (ARRAY_NOTATION_REF): New tree.
3093 * c-common.h (build_array_notation_expr): New function declaration.
3094 (build_array_notation_ref): Likewise.
3095 (extract_sec_implicit_index_arg): New extern declaration.
3096 (is_sec_implicit_index_fn): Likewise.
3097 (ARRAY_NOTATION_CHECK): New define.
3098 (ARRAY_NOTATION_ARRAY): Likewise.
3099 (ARRAY_NOTATION_START): Likewise.
3100 (ARRAY_NOTATION_LENGTH): Likewise.
3101 (ARRAY_NOTATION_STRIDE): Likewise.
3102 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3103 ARRAY_NOTATION_REF.
3104 (pp_c_expression): Likewise.
3105 * c.opt (flag_enable_cilkplus): New flag.
3106 * array-notation-common.c: New file.
3107
f7716d57
JJ
31082013-05-14 Jakub Jelinek <jakub@redhat.com>
3109
3110 PR c++/57274
3111 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3112
a5e0cd1d
MG
31132013-05-10 Marc Glisse <marc.glisse@inria.fr>
3114
3115 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3116 vectors.
3117
f6bc1c4a
HS
31182013-05-07 Han Shen <shenhan@google.com>
3119
3120 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3121
3f12f6e9
SKS
31222013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3123
3124 * c-common.c (check_user_alignment): Emit error for negative values.
3125
61949153
PC
31262013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3127
3128 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3129
e93e18e9
PC
31302013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3131
3132 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3133 __GXX_EXPERIMENTAL_CXX1Y__.
3134
44d90fe1
PC
31352013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3136 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3137
3138 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3139 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3140 to simply use OPT_Wpointer_arith.
3141 (c_sizeof_or_alignof_type): Likewise.
3142
13f39b2e
PC
31432013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3144
3145 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3146
4b84d650
JJ
31472013-04-12 Jakub Jelinek <jakub@redhat.com>
3148
3149 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3150 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3151 specifiers.
3152
fb037b5d
SB
31532013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3154
3155 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3156
4e856798
PC
31572013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3158
3159 * c-common.c (pointer_int_sum): Remove dead code.
3160
4b1baac8
RS
31612013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3162
3163 PR middle-end/56524
3164 * c-common.c (handle_optimize_attribute): Don't call
3165 save_optabs_if_changed.
3166
0b50e654
JJ
31672013-03-05 Jakub Jelinek <jakub@redhat.com>
3168
3169 PR middle-end/56461
3170 * c-pch.c (pch_init): Free target_validity at the end.
3171
48c41403
JJ
31722013-03-04 Jakub Jelinek <jakub@redhat.com>
3173
3174 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3175
e664c61c
KS
31762013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3177 Jakub Jelinek <jakub@redhat.com>
3178
3179 PR sanitizer/56454
3180 * c-common.c (handle_no_sanitize_address_attribute): New function.
3181 (c_common_attribute_table): Add no_sanitize_address attribute.
3182 (handle_no_address_safety_analysis_attribute): Add
3183 no_sanitize_address attribute, not no_address_safety_analysis
3184 attribute.
3185
a475fd3d 31862013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3187
3188 PR target/52555
3189 * c-common.c (handle_optimize_attribute): Call
3190 save_optabs_if_changed.
3191
f6007d99
JJ
31922013-02-18 Jakub Jelinek <jakub@redhat.com>
3193 Steven Bosscher <steven@gcc.gnu.org>
3194
3195 PR pch/54117
3196 * c-opts.c (c_common_post_options): If debug info is enabled
3197 and non-dwarf*, refuse to load PCH files and when writing PCH
3198 file warn.
3199
cf35e2b1
JJ
32002013-02-05 Jakub Jelinek <jakub@redhat.com>
3201
3202 PR middle-end/56167
3203 * c-common.c (handle_error_attribute): Fix condition.
3204
32887460
JJ
32052013-01-30 Jakub Jelinek <jakub@redhat.com>
3206
3207 PR c++/55742
3208 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3209
5af057d8
JM
32102013-01-18 Jason Merrill <jason@redhat.com>
3211
3212 PR target/54908
3213 * c.opt (-fextern-tls-init): New.
3214 * c-opts.c (c_common_post_options): Handle it.
3215
cc83c823
JJ
32162013-01-09 Jakub Jelinek <jakub@redhat.com>
3217
3218 PR c/48418
3219 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3220 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3221 and is either negative or bigger or equal to type precision
3222 of the first operand.
3223
a859517f
MP
32242012-12-03 Marek Polacek <polacek@redhat.com>
3225
3226 PR c/55570
3227 * c-common.c (check_user_alignment): Swap order of tests,
3228 check TREE_CODE first.
3229
2d7aa578
ESR
32302012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3231
3232 PR c++/52654
3233 * c-common.h (overflow_type): New enum.
3234 (build_userdef_literal): Add overflow_type argument.
3235 (tree_userdef_literal): Add overflow_type.
3236 (USERDEF_LITERAL_OVERFLOW): New access macro.
3237 * c-common.c (build_userdef_literal): Add overflow_type
3238 argument.
3239 * c-lex.c (c_lex_with_flags): Add overflow_type to
3240 build_userdef_literal calls.
3241 (interpret_integer, interpret_float): Add overflow_type argument.
3242
cc3c4f62
RB
32432012-11-28 Richard Biener <rguenther@suse.de>
3244
3245 PR c/35634
3246 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3247 here and use a type with proper overflow behavior for types that would
3248 need to be promoted for the arithmetic.
3249
77bc5132
JJ
32502012-11-23 Jakub Jelinek <jakub@redhat.com>
3251
3252 PR sanitizer/55435
3253 * c-common.c (handle_no_address_safety_analysis_attribute): New
3254 function.
3255 (c_common_attribute_table): Add no_address_safety_analysis.
3256
5dc99c46
SB
32572012-11-16 Simon Baldwin <simonb@google.com>
3258
3259 * c.opt: Add f[no-]canonical-system-headers.
3260 * c-opts.c (c_common_handle_option): Handle
3261 OPT_fcanonical_system_headers.
3262
a4a0016d
ESR
32632012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3264
3265 PR c++/54413
3266 * c-opts.c (c_common_handle_option): Set new flags.
3267 * c.opt: Describe new flags.
3268
7dbb85a7
JM
32692012-11-09 Jason Merrill <jason@redhat.com>
3270
3271 * c.opt (Wabi-tag): New.
3272
ad7bac31
AK
32732012-11-09 Andi Kleen <ak@linux.intel.com>
3274
3275 PR 55139
3276 * c-common.c (get_atomic_generic_size): Mask with
3277 MEMMODEL_MASK
3278
7332899a
MLI
32792012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3280
3281 PR c/53063
3282 * c.opt (Wformat): Make it Alias Wformat=1.
3283 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3284 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3285 LangEnabledBy.
3286 (Wformat=): RejectNegative. Use LangEnabledBy.
3287 (Wnonnull): Use LangEnabledBy.
3288 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3289 * c-format.c (set_Wformat): Delete.
3290 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3291 (maybe_read_dollar_number): Likewise.
3292 (avoid_dollar_number): Likewise.
3293 (finish_dollar_format_checking): Likewise.
3294 (check_format_info): Likewise.
3295 (check_format_info_main): Likewise.
3296 (check_format_types): Likewise.
3297 (format_type_warning): Likewise.
3298 * c-common.c (int): Likewise.
3299 (check_function_sentinel): Likewise.
3300 * c-common.h (warn_format,set_Wformat): Do not declare here.
3301
34a180a6
MLI
33022012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3303
3304 PR c/53063
3305 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3306 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3307 Use LangEnabledBy.
3308 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3309 common.opt.
3310 (Wvariadic-macros): Init(1).
3311 * c-opts.c (c_common_handle_option): Do not handle them
3312 explicitly.
3313 (c_common_post_options): Likewise.
3314 (sanitize_cpp_opts): warn_unused_macros is now
3315 cpp_warn_unused_macros.
3316 (push_command_line_include): Likewise.
3317 * c-common.c (warn_unknown_pragmas): Do not define.
3318 * c-common.h (warn_unknown_pragmas): Do not declare.
3319
3f46d6a5
MLI
33202012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3321
3322 PR c/51294
3323 * c-common.c (conversion_warning): Handle conditional expressions.
3324
880661a4
JW
33252012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3326
3327 PR c++/54930
3328 * c.opt (Wreturn_local_addr): Define new option.
3329
4514a96b
JM
33302012-10-25 Jason Merrill <jason@redhat.com>
3331
f14edc1a
JM
3332 * c.opt (Wvirtual-move-assign): New.
3333
4514a96b
JM
3334 * c.opt (Winherited-variadic-ctor): New.
3335
93100c6b
MG
33362012-10-25 Marc Glisse <marc.glisse@inria.fr>
3337
3338 PR c++/54427
3339 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3340
1efcb8c6
JM
33412012-10-23 Joseph Myers <joseph@codesourcery.com>
3342
3343 * c-common.h (pch_cpp_save_state): Declare.
3344 * c-target.def (c_preinclude): New hook.
3345 * c-opts.c (done_preinclude): New.
3346 (push_command_line_include): Handle default preincluded header.
3347 (cb_file_change): Call pch_cpp_save_state when calling
3348 push_command_line_include.
3349 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3350 (pch_cpp_save_state): New.
3351 (pch_init): Call pch_cpp_save_state conditionally, instead of
3352 calling cpp_save_state.
3353
4a0ae68e
MLI
33542012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3355
3356 PR c/53063
3357 PR c/40989
3358 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3359 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3360 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3361 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3362 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3363 * c-opts.c (c_common_handle_option): Remove explicit handling from
3364 here.
3365 (c_common_post_options): Likewise.
3366
67e4210b
EB
33672012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3368
3369 * c-ada-spec.c (LOCATION_COL): Delete.
3370 (compare_location): New function.
3371 (compare_node): Use it.
3372 (compare_comment): Likewise.
3373
65d4f2cd
MLI
33742012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3375
3376 PR c/53063
3377 PR c/40989
3378 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3379 * c-opts.c (c_common_handle_option): Do not set them here. Add
3380 comment.
3381 (c_common_post_options): Likewise.
3382
909881cb
EB
33832012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3384
3385 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3386 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3387 Remove POINTER_TYPE handling, add large unsigned handling and use
3388 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3389
3a785c97
JJ
33902012-10-12 Jakub Jelinek <jakub@redhat.com>
3391
3392 PR c/54381
3393 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3394 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3395 locs and array of 3 trees instead of just single loc and single
3396 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3397 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3398 For *cmp* builtins that take two sources strings report warnings
3399 about first and second source, not about destination and source.
3400
5e54f81d
MG
34012012-10-12 Marc Glisse <marc.glisse@inria.fr>
3402
3403 PR c++/53055
3404 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3405
f5b02f1e
EB
34062012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3407
3408 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3409 declaring something coming from another file.
3410
b46dbc6c
AC
34112012-10-10 Arnaud Charlet <charlet@adacore.com>
3412
f5b02f1e 3413 PR ada/54845
b46dbc6c
AC
3414 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3415
5d9de0d0
PC
34162012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3417
3418 PR c++/54194
3419 * c-common.c (warn_about_parentheses): Add location_t parameter;
3420 use EXPR_LOC_OR_LOC.
3421 * c-common.h: Update declaration.
3422
a212e43f
MG
34232012-10-09 Marc Glisse <marc.glisse@inria.fr>
3424
3425 PR c++/54427
3426 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3427 more operations. Make error messages optional.
3428 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3429 (scalar_to_vector): Declare.
3430
b1db7f91
JM
34312012-10-08 Jason Merrill <jason@redhat.com>
3432
3433 * c-common.c (c_common_reswords): Add thread_local.
3434
e28d52cf
DS
34352012-10-08 Dodji Seketeli <dodji@redhat.com>
3436
3437 PR c++/53528 C++11 attribute support
3438 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3439 new functions.
3440 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3441 static function.
3442 (handle_aligned_attribute): In choose strictest alignment
3443 among many. Use new check_cxx_fundamental_alignment_constraints.
3444 (handle_transparent_union_attribute): In c++11 attribute syntax,
3445 don't look through typedefs.
3446
3b78de56
AC
34472012-10-04 Arnaud Charlet <charlet@adacore.com>
3448
3449 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3450 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3451 out of dumpfile.h.
3452
6040bb5f
DC
34532012-09-25 Dehao Chen <dehao@google.com>
3454
3455 PR middle-end/54645
3b78de56 3456 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3457 map when read in the pch.
3458
0b07a57e
AC
34592012-09-18 Arnaud Charlet <charlet@adacore.com>
3460
3461 * c-ada-spec.c: Style fixes.
3462
da5182be
TQ
34632012-09-18 Thomas Quinot <quinot@adacore.com>
3464
3465 * c.opt (-fada-spec-parent): Define new command line switch.
3466 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3467 is specified, generate binding spec as a child of the specified unit.
3468
0ccb505d
PC
34692012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3470 Manuel López-Ibáñez <manu@gcc.gnu.org>
3471
3472 PR c++/53210
3473 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3474
c583af79
AC
34752012-08-23 Arnaud Charlet <charlet@adacore.com>
3476
3477 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3478 for pointers, and add missing Convention C pragma.
3479 (print_ada_struct_decl): Add missing aliased keyword.
3480 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3481
1a4049e7
JJ
34822012-08-17 Jakub Jelinek <jakub@redhat.com>
3483
3484 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3485 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3486 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3487 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3488 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3489
70b5e7dc
RG
34902012-08-10 Richard Guenther <rguenther@suse.de>
3491
3492 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3493
f8923f7e
SB
34942012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3495
3496 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3497 instead of separate pp_newline and pp_flush.
3498 (print_c_tree): Likewise.
3499
e45abe1f
RH
35002012-07-26 Richard Henderson <rth@redhat.com>
3501
3502 * c-common.c (handle_hot_attribute): Allow labels.
3503 (handle_cold_attribute): Likewise.
3504
332f1d24
JJ
35052012-07-20 Jakub Jelinek <jakub@redhat.com>
3506
3507 PR c++/28656
3508 * c-common.c (check_function_nonnull): Handle multiple nonnull
3509 attributes properly.
3510
7ee2468b
SB
35112012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3512
3513 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3514 * c-ada-spec.c: Likewise.
3515 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3516
ee7b28eb
SB
35172012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3518
3519 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3520 Remove code conditional on it.
3521
6bdf3519
SB
35222012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3523
3524 * c-gimplify.c: Do not include basic-block.h.
3525 * c-common.c: Do not include linfuncs.h.
3526
532aafad
SB
35272012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3528
3529 * c-common.h: Include tree.h.
3530
8d0d1915
JM
35312012-07-02 Jason Merrill <jason@redhat.com>
3532
3533 PR c++/53524
3534 * c-common.c (get_priority): Call default_conversion.
3535
fbc873ad
UB
35362012-07-01 Uros Bizjak <ubizjak@gmail.com>
3537
3538 * c-pch.c (c_common_write_pch): Remove unused variables.
3539
d4a10d0a
SB
35402012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3541
3542 * cppspec.c: Moved from gcc/ to here.
3543
6f3a2e23
KT
35442012-06-27 Kai Tietz <ktietz@redhat.com>
3545
3546 PR preprocessor/37215
3547 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3548
8ca92d04
SB
35492012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3550
3551 * c-common.h (c_common_print_pch_checksum): Remove.
3552 * c-pch.c: Do not include output.h.
3553 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3554 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3555 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3556 (struct c_pch_header): Remove.
3557 (get_ident): Update gpch version.
3558 (pch_init): Do not print executable_checksum to asm_out_file.
3559 Do not fail if there is no asm_out_file to read back from. Set
3560 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3561 (c_common_write_pch): Verify that nothing was written to asm_out_file
3562 since pch_init was called. Do not write a c_pch_header, and do not
3563 copy from asm_out_file to the PCH.
3564 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3565 the content of asm_out_file from the PCH.
3566 (c_common_print_pch_checksum): Remove.
3567 * c-opts.c (c_common_init): Print out executable_checksum directly.
3568
70f42967
SB
35692012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3570
3571 * c-target.def (objc_declare_unresolved_class_reference,
3572 objc_declare_class_definition): Add new hooks.
3573
a8781821
SB
35742012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3575
3576 * c-lex.c: Do not include output.h.
3577 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3578 Remove uses of ASM_OUTPUT_IDENT.
3579
9e1a8dd1
RR
35802012-06-15 Marc Glisse <marc.glisse@inria.fr>
3581
3582 PR c++/51033
3583 * c-common.h (c_build_vec_perm_expr): Move decl here.
3584 * c-common.c (c_build_vec_perm_expr): Move definition
3585 here.
3586
6f07a821
SB
35872012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3588
3589 * c.opt (fconserve-space): Turn into a no-op.
3590
9faeb493 35912012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3592
3593 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3594 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3595 both the start and end of the function.
3596
a4b7d13c
SB
35972012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3598
3599 * c-common.c: Do not include output.h.
3600 * c-pragma.c: Likewise.
3601
c265f413
SA
36022012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3603
3604 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3605 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3606 (lang_decl_name): Handle namespace decls.
3607
be7a421e
SB
36082012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3609
3610 * c-ada-spec.c: Do not include output.h.
3611 * c-semantics.c: Likewise.
3612
65de6659
JM
36132012-05-29 Joseph Myers <joseph@codesourcery.com>
3614
3615 * c-common.c: Fix typo.
3616
ca5f4331
MM
36172012-05-29 Michael Matz <matz@suse.de>
3618
3619 * c-common.h (c_expand_decl): Remove prototype.
3620
4f7f7aca
MLI
36212012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3622
3623 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3624 * c-opts.c (c_common_handle_option): Remove code handling
3625 warn_missing_braces.
3626
4a792f9b
PC
36272012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3628
3629 PR c++/25137
3630 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3631 -Wmissing_braces.
3632
650dc14a
DS
36332012-05-22 Dodji Seketeli <dodji@redhat.com>
3634
3635 PR c++/53322
3636 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3637
9b095bf1
MLI
36382012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3639
3640 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3641 * c-opts.c (c_common_handle_option): Do not handle explicitly
3642 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3643
0b2c4be5
DS
36442012-05-16 Dodji Seketeli <dodji@redhat.com>
3645
3646 PR preprocessor/7263
3647 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3648 to cpp_classify_number. For diagnostics, use the precise location
3649 instead of the global input_location.
3650
a1bde5af
PC
36512012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3652
d02924ef 3653 PR c++/11856
a1bde5af
PC
3654 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3655
d1ede5f4
BS
36562012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3657
a1bde5af 3658 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3659
f2bc201f
MLI
36602012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3661
3662 PR 53063
3663 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3664 Wreorder): Use LangEnabledBy.
3665 * c-opts.c (c_common_handle_option): Do not enable them
3666 explicitly. Call lang-specific generated functions.
3667 (c_common_post_options): Do not set them here.
3668
95744782
MLI
36692012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3670
3671 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3672 Wmissing-field-initializers,Wmissing-parameter-type,
3673 Wold-style-declaration,Woverride-init): Use EnabledBy.
3674 * c-opts.c (c_common_post_options): Do not set here explicitly.
3675
7d5a5747
MLI
36762012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3677
3678 PR 53063
3679 * c-opts.c (c_common_handle_option): Use handle_generated_option
3680 to enable sub-options.
3681
5a3c9cf2
PC
36822012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3683
3684 PR c++/53158
3685 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3686
3ac8781c
RG
36872012-05-10 Richard Guenther <rguenther@suse.de>
3688
3689 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3690 adjust commentary about TYPE_IS_SIZETYPE types.
3691
1e537948
MLI
36922012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3693
3694 PR c++/53261
3695 * c-common.c (warn_logical_operator): Check that argument of
3696 integer_zerop is not NULL.
3697
f2c4a785
MLI
36982012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3699
3700 PR c/43772
3701 * c-common.c (warn_logical_operator): Do not warn if either side
3702 is already true or false.
3703
50f305ca
MLI
37042012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3705
3706 PR c/51712
3707 * c-common.c (expr_original_type): New.
3708 (shorten_compare): Do not warn for enumeration types.
3709
0c3641b0
MLI
37102012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3711
3712 * c.opt (fpermissive): Add Var(flag_permissive).
3713
7edaa4d2
MG
37142012-04-30 Marc Glisse <marc.glisse@inria.fr>
3715
3716 PR c++/51033
3717 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3718 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3719
b9c8da34
DS
37202012-04-30 Dodji Seketeli <dodji@redhat.com>
3721
3722 Add -Wvarargs option
3723 * c.opt (Wvarargs): Define new option.
3724
e6c69da0
MLI
37252012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3726
3727 * c-common.c (check_function_arguments): Replace
3728 Wmissing-format-attribute with Wsuggest-attribute=format.
3729
90137d8f
MLI
37302012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3731
3732 * c.opt (Wsuggest-attribute=format): New. Alias of
3733 Wmissing-format-attribute.
3734 * c-format.c (decode_format_type): Replace
3735 Wmissing-format-attribute with Wsuggest-attribute=format.
3736 (check_function_format): Likewise.
3737
9faeb493 37382012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3739
3740 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3741 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3742 * c.opt: Add Wliteral-suffix.
3743
c1771a20
MLI
37442012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3745
3746 PR c/44774
3747 * c.opt (Wpedantic): New.
3748 (pedantic): Alias Wpedantic.
3749 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3750 (c_common_post_options): Likewise.
3751 (sanitize_cpp_opts): Likewise.
3752 * c-lex.c (interpret_float): Likewise.
3753 * c-format.c (check_format_types): Likewise.
3754 * c-common.c (pointer_int_sum): Likewise.
3755 (c_sizeof_or_alignof_type): Likewise.
3756 (c_add_case_label): Likewise.
3757 (c_do_switch_warnings): Likewise.
3758 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3759
04b391c1
JM
37602012-04-15 Jason Merrill <jason@redhat.com>
3761
3762 PR c++/52818
3763 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3764 (C_STD_NAME): Distinguish between C++98 and C++11.
3765
ac868f29
EB
37662012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3767
3768 PR target/52624
3769 * c-common.h (uint16_type_node): Rename into...
3770 (c_uint16_type_node): ...this.
3771 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3772 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3773
fd4116f4
MLI
37742012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3775
3776 * c-common.c (warn_if_unused_value): Move definition to here.
3777 * c-common.h (warn_if_unused_value): Move declaration to here.
3778
573ac65e
WB
37792012-03-23 William Bader <williambader@hotmail.com>
3780
3781 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3782
552b8185
JM
37832012-03-20 Jason Merrill <jason@redhat.com>
3784
3785 * c-common.h (enum cxx_dialect): Add cxx1y.
3786 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3787 test.
3788 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3789 * c-opts.c (c_common_post_options): Likewise.
3790 (set_std_cxx1y): New.
3791 (c_common_handle_option): Call it.
3792 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3793
04398fa8
PC
37942012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3795
3796 PR c++/14710
3797 * c.opt ([Wuseless-cast]): Add.
3798
d2a12ae7
RG
37992012-03-16 Richard Guenther <rguenther@suse.de>
3800
3801 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3802
a12bf402
MLI
38032012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3804
3805 PR c++/44783
3806 * c.opt (ftemplate-backtrace-limit) Add.
3807
5c30094f
RO
38082012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3809
3810 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3811 handling.
3812 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3813 (init_pragma): Don't register extern_prefix.
3814
21fa2faf
RG
38152012-03-12 Richard Guenther <rguenther@suse.de>
3816
3817 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3818 (builtin_type_for_size): Likewise.
3819
e3793c6f
JJ
38202012-02-13 Jakub Jelinek <jakub@redhat.com>
3821
3822 PR c++/52215
3823 * c-common.c (sync_resolve_params): Don't decide whether to convert
3824 or not based on TYPE_SIZE comparison, convert whenever arg_type
3825 is unsigned INTEGER_TYPE.
3826
93286335
PC
38272012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3828
3829 PR c/52118
3830 * c.opt ([Wunused-local-typedefs]): Fix description.
3831
7a421706
MS
38322012-01-24 Mike Stump <mikestump@comcast.net>
3833
3834 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3835 exactly.
3836
ba9b1f11
RG
38372012-01-18 Richard Guenther <rguenther@suse.de>
3838
3839 * c-opts.c (c_common_post_options): Reset LTO flags if
3840 we are about to generate a PCH.
3841
465406be
PC
38422012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3843
3844 PR c++/51777
3845 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3846 use pp_unsigned_wide_integer.
3847
aee15221
RG
38482012-01-10 Richard Guenther <rguenther@suse.de>
3849
3850 PR middle-end/51806
3851 * c-opts.c (c_common_handle_option): Move -Werror handling
3852 to language independent code.
3853
5720c0dc
RG
38542012-01-05 Richard Guenther <rguenther@suse.de>
3855
3856 PR middle-end/51764
3857 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3858 from common.opt.
3859
73ac190a
PC
38602011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3861
3862 PR c++/51316
3863 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3864 of array types with an unknown bound.
3865
48b0b196
JM
38662011-12-20 Joseph Myers <joseph@codesourcery.com>
3867
3868 * c-common.c (flag_isoc99): Update comment to refer to C11.
3869 (flag_isoc1x): Change to flag_isoc11.
3870 * c-common.h (flag_isoc99): Update comment to refer to C11.
3871 (flag_isoc1x): Change to flag_isoc11.
3872 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3873 C11.
3874 * c-opts.c (set_std_c1x): Change to set_std_c11.
3875 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3876 Call set_std_c11.
3877 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3878 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3879 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3880 standard.
3881 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3882 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3883 (std=gnu1x): Make alias of std=gnu11.
3884
d58d6eb5
JM
38852011-12-19 Jason Merrill <jason@redhat.com>
3886
3887 PR c++/51228
3888 * c-common.c (handle_transparent_union_attribute): Check the first
3889 field if the type is complete.
3890
b3908fcc
JW
38912011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3892
3893 PR libstdc++/51365
3894 * c-common.c (RID_IS_FINAL): Add.
3895 * c-common.h (RID_IS_FINAL): Add.
3896
fea3ca91
IS
38972011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3898
3899 * c.opt (fgnu-runtime): Provide full description.
3900 (fnext-runtime): Likewise.
3901 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3902
62bad7cd
AM
39032011-11-28 Andrew MacLeod <amacleod@redhat.com>
3904
3905 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3906 predefines in one place. Add LOCK_FREE predefines.
3907 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3908 new func.
3909
c466c4ff
AM
39102011-11-24 Andrew MacLeod <amacleod@redhat.com>
3911
3912 PR c/51256
9faeb493 3913 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3914 conditions
9faeb493
UB
3915 (resolve_overloaded_atomic_exchange,
3916 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3917 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3918 error_mark_node for error conditions.
9faeb493 3919
a5952633
RG
39202011-11-08 Richard Guenther <rguenther@suse.de>
3921
3922 PR middle-end/51010
3923 c-family/
3924
0a35513e
AH
39252011-11-07 Richard Henderson <rth@redhat.com>
3926 Aldy Hernandez <aldyh@redhat.com>
3927 Torvald Riegel <triegel@redhat.com>
3928
3929 Merged from transactional-memory.
3930
3931 * c-common.c (handle_tm_wrap_attribute,
3932 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3933 (struct c_common_reswords): Added __transaction* keywords.
3934 (struct c_common_attribute_table): Added transaction* and tm_regparm
3935 attributes.
3936 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3937 masks.
3938 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3939 find_tm_attribute): Declare.
3940
6d87092d
JM
39412011-11-07 Jason Merrill <jason@redhat.com>
3942
3943 PR c++/35688
3944 * c-common.c, c-common.h: Revert yesterday's changes.
3945
8e7860a1
JM
39462011-11-06 Jason Merrill <jason@redhat.com>
3947
3948 PR c++/35688
3949 * c-common.c (decl_has_visibility_attr): Split out from...
3950 (c_determine_visibility): ...here.
3951 * c-common.h: Declare it.
3952
d19fa6b5
JM
39532011-11-06 Joseph Myers <joseph@codesourcery.com>
3954
3955 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3956 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3957 type.
3958 (check_user_alignment): New. Split out of
3959 handle_aligned_attribute. Disallow integer constants with
3960 noninteger types. Conditionally allow zero.
3961 (handle_aligned_attribute): Use check_user_alignment.
3962 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3963
86951993
AM
39642011-11-06 Andrew MacLeod <amacleod@redhat.com>
3965 Richard Henderson <rth@redhat.com>
3966
3967 Merged from cxx-mem-model.
3968
3969 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3970 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3971 parameters that are the same type size.
3972 (get_atomic_generic_size): New. Find size of generic
3973 atomic function parameters and do typechecking.
3974 (add_atomic_size_parameter): New. Insert size into parameter list.
3975 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3976 either __atomic_exchange_n or external library call.
9faeb493 3977 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3978 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3979 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3980 __atomic_load_n or an external library call.
3981 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3982 __atomic_store_n or an external library call.
3983 (resolve_overloaded_builtin): Handle new __atomic builtins.
3984
cf9e9959
EB
39852011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3986
3987 PR c++/50608
3988 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3989 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3990 <INDIRECT_REF>: Return the argument.
3991 <ARRAY_REF>: Remove special code for negative offset.
3992 Call fold_build_pointer_plus instead of size_binop.
3993 (fold_offsetof): Remove STOP_REF argument and adjust.
3994 * c-common.h (fold_offsetof_1): Declare.
3995 (fold_offsetof): Remove STOP_REF argument.
3996
25339f10
JM
39972011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3998
3999 PR c++/50810
4000 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4001 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4002 Wnarrowing for C++0x and C++98.
4003 * c.opt ([Wnarrowing]): Update.
4004
89401152
PC
40052011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4006
4007 PR c++/44277
4008 * c.opt: Add Wzero-as-null-pointer-constant.
4009
97e3ad20
JM
40102011-10-31 Jason Merrill <jason@redhat.com>
4011
15694fdd
JM
4012 * c.opt (-fdeduce-init-list): Off by default.
4013
97e3ad20
JM
4014 PR c++/50920
4015 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4016 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4017 and -Wc++11-compat.
4018 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4019
fb9120e3
RAV
40202011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4021
4022 PR c++/30066
4023 * c.opt (fvisibility-inlines-hidden): Description change.
4024
3ce4f9e4
ESR
40252011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4026
4027 Implement C++11 user-defined literals.
4028 * c-common.c (build_userdef_literal): New.
4029 * c-common.def: New tree code.
4030 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4031 * c-lex.c (interpret_float): Add suffix parm.
4032 (c_lex_with_flags): Build literal tokens.
4033
5f53c243
PC
40342011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4035
4036 PR c++/50841
4037 Revert:
4038 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4039
4040 PR c++/50810
4041 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4042 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4043 Wnarrowing for C++0x and C++98.
4044 * c.opt ([Wnarrowing]): Update.
4045
263734e1
PC
40462011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4047
4048 PR c++/50810
4049 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4050 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4051 Wnarrowing for C++0x and C++98.
4052 * c.opt ([Wnarrowing]): Update.
4053
d2e312d7
PC
40542011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4055
4056 PR c++/45385
4057 * c-common.c (conversion_warning): Remove code looking for
4058 artificial operands.
4059
d17687f6
DS
40602011-10-18 Dodji Seketeli <dodji@redhat.com>
4061
4062 PR bootstrap/50760
4063 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4064 !NO_IMPLICIT_EXTERN_C.
d17687f6 4065
fc8396e9
PC
40662011-10-17 Michael Spertus <mike_spertus@symantec.com>
4067
4068 * c-common.c (c_common_reswords): Add __bases,
4069 __direct_bases.
4070 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4071
40722011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4073
4074 PR c++/50757
4075 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4076
847e697a
TT
40772011-10-15 Tom Tromey <tromey@redhat.com>
4078 Dodji Seketeli <dodji@redhat.com>
4079
4080 * c.opt (fdebug-cpp): New option.
4081 * c-opts.c (c_common_handle_option): Handle the option.
4082 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4083 output stream in parameter. Factorized from ...
4084 (maybe_print_line): ... this. Dump location debug information when
4085 -fdebug-cpp is in effect.
4086 (print_line_1): New static function. Takes an output stream in
4087 parameter. Factorized from ...
4088 (print_line): ... here. Dump location information when -fdebug-cpp
4089 is in effect.
4090 (scan_translation_unit): Dump location information when
4091 -fdebug-cpp is in effect.
4092
92582b75
TT
40932011-10-15 Tom Tromey <tromey@redhat.com>
4094 Dodji Seketeli <dodji@redhat.com>
4095
4096 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4097 without argument.
4098 * c-opts.c (c_common_handle_option)<case
4099 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4100 cases. Handle -ftrack-macro-expansion with and without argument.
4101
46427374
TT
41022011-10-15 Tom Tromey <tromey@redhat.com>
4103 Dodji Seketeli <dodji@redhat.com>
4104
4105 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4106 (print_line, cb_define, do_line_change): Adjust to avoid touching
4107 the internals of struct line_map. Use the public API instead.
4108 * c-pch.c (c_common_read_pch): Likewise.
4109 * c-lex.c (fe_file_change): Likewise.
4110
fc8396e9
PC
41112011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4112
4113 PR c++/17212
4114 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4115
41162011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4117
4118 PR c++/33067
4119 * c-pretty-print.c (pp_c_floating_constant): Output
4120 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4121
e79983f4
MM
41222011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4123
4124 * c-common.c (def_builtin_1): Delete old interface with two
4125 parallel arrays to hold standard builtin declarations, and replace
4126 it with a function based interface that can support creating
4127 builtins on the fly in the future. Change all uses, and poison
4128 the old names. Make sure 0 is not a legitimate builtin index.
4129 * c-omp.c (c_finish_omp_barrier): Ditto.
4130 (c_finish_omp_taskwait): Ditto.
4131 (c_finish_omp_flush): Ditto.
4132
6637388f
TG
41332011-10-11 Tristan Gingold <gingold@adacore.com>
4134
4135 * c.opt: (fallow-parameterless-variadic-functions): New.
4136
3797cb21
DS
41372011-09-08 Dodji Seketeli <dodji@redhat.com>
4138
4139 PR c++/33255 - Support -Wunused-local-typedefs warning
4140 * c-common.h (struct c_language_function::local_typedefs): New
4141 field.
9faeb493
UB
4142 (record_locally_defined_typedef, maybe_record_typedef_use)
4143 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4144 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4145 (maybe_record_typedef_use)
4146 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4147 * c.opt: Declare new -Wunused-local-typedefs flag.
4148
693ddb1b
EB
41492011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4150
4151 PR middle-end/50266
4152 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4153 computations.
4154
830c740f
RG
41552011-09-05 Richard Guenther <rguenther@suse.de>
4156
4157 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4158 of integer_minus_one_node for empty array upper bounds.
4159
892a371f
DS
41602011-08-28 Dodji Seketeli <dodji@redhat.com>
4161
4162 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4163 it's the first time it's being called on this main TU.
4164
0e3fdb48
RB
41652011-08-24 Richard Guenther <rguenther@suse.de>
4166
4167 PR c/49396
4168 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4169
41702011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4171
4172 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4173 defined in cpp_init_builtins and c_cpp_builtins.
4174
d4a83c10
JM
41752011-08-19 Joseph Myers <joseph@codesourcery.com>
4176
4177 * c-common.c (c_common_reswords): Add __builtin_complex.
4178 * c-common.h (RID_BUILTIN_COMPLEX): New.
4179
bbceee64
JM
41802011-08-18 Joseph Myers <joseph@codesourcery.com>
4181
4182 * c-common.c (c_common_reswords): Add _Noreturn.
4183 (keyword_is_function_specifier): Handle RID_NORETURN.
4184 * c-common.h (RID_NORETURN): New.
4185
0e3a99ae
AS
41862011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4187
4188 * c-common.c (unsafe_conversion_p): New function. Check if it is
4189 unsafe to convert an expression to the type.
4190 (conversion_warning): Adjust, use unsafe_conversion_p.
4191 * c-common.h (unsafe_conversion_p): New function declaration.
4192
20906c66
JJ
41932011-08-02 Jakub Jelinek <jakub@redhat.com>
4194
4195 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4196 (c_finish_omp_taskyield): New prototype.
4197 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4198 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4199 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4200 or RHS1 have side-effects, evaluate those too in the right spot,
4201 if it is a decl and LHS is also a decl, error out if they
4202 aren't the same.
4203 (c_finish_omp_taskyield): New function.
4204 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4205 * c-pragma.c (omp_pragmas): Add taskyield.
4206 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4207 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4208 PRAGMA_OMP_CLAUSE_MERGEABLE.
4209
770e5a2e
DS
42102011-07-25 Dodji Seketeli <dodji@redhat.com>
4211
4212 * c-common.h (set_underlying_type): Remove parm name from
4213 declaration.
4214
1baae426
RG
42152011-07-25 Romain Geissler <romain.geissler@gmail.com>
4216
4217 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4218
fcb21722
JM
42192011-07-22 Jason Merrill <jason@redhat.com>
4220
76f86d00
JM
4221 PR c++/49793
4222 * c.opt (Wnarrowing): New.
4223
3a636414
JM
4224 PR c++/30112
4225 * c-common.h: Declare c_linkage_bindings.
4226 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4227
fcb21722
JM
4228 PR c++/49813
4229 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4230 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4231 as flag_isoc99 for 'restrict'.
4232 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4233
02614448
ILT
42342011-07-21 Ian Lance Taylor <iant@google.com>
4235
4236 PR middle-end/49705
4237 * c-common.c (c_disable_warnings): New static function.
4238 (c_enable_warnings): New static function.
4239 (c_fully_fold_internal): Change local unused_p to bool. Call
4240 c_disable_warnings and c_enable_warnings rather than change
4241 c_inhibit_evaluation_warnings.
4242
34429675
JM
42432011-07-20 Jason Merrill <jason@redhat.com>
4244
4245 PR c++/6709 (DR 743)
4246 PR c++/42603 (DR 950)
4247 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4248 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4249 (CPP_DECLTYPE): New.
4250 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4251
5d49b6a7
RG
42522011-07-19 Richard Guenther <rguenther@suse.de>
4253
4254 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4255 * c-omp.c (c_finish_omp_for): Likewise.
4256
e84a58ff
EB
42572011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4258
4259 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4260 body on the next line.
4261
329af3c7
JM
42622011-07-08 Jason Merrill <jason@redhat.com>
4263
4063e61b
JM
4264 PR c++/45437
4265 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4266
329af3c7
JM
4267 PR c++/49673
4268 * c-common.c (c_apply_type_quals_to_decl): Don't check
4269 TYPE_NEEDS_CONSTRUCTING.
4270
1a072294
RG
42712011-07-06 Richard Guenther <rguenther@suse.de>
4272
4273 * c-common.c (c_common_nodes_and_builtins):
4274 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4275
fce5dddd
RG
42762011-07-05 Richard Guenther <rguenther@suse.de>
4277
4278 * c-common.c (c_common_nodes_and_builtins): Build all common
4279 tree nodes first.
4280
45d439ac
JJ
42812011-06-27 Jakub Jelinek <jakub@redhat.com>
4282
56300785
JJ
4283 * c-common.h (c_tree_chain_next): New static inline function.
4284
45d439ac
JJ
4285 * c-common.c (check_builtin_function_arguments): Handle
4286 BUILT_IN_ASSUME_ALIGNED.
4287
e0a8ecf2
AM
42882011-06-21 Andrew MacLeod <amacleod@redhat.com>
4289
4290 * c-common.c: Add sync_ or SYNC__ to builtin names.
4291 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4292
42932011-06-20 Pierre Vittet <piervit@pvittet.com>
4294
4295 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4296 handler.
4297 (gen_pragma_handler): New union.
4298 (internal_pragma_handler): New type.
4299 (c_register_pragma_with_data)
4300 (c_register_pragma_with_expansion_and_data): New functions.
4301
4302 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4303 (c_register_pragma, c_register_pragma_with_expansion)
4304 (c_invoke_pragma_handler): Changed to work with
4305 internal_pragma_handler.
4306 (c_register_pragma_with_data)
4307 (c_register_pragma_with_expansion_and_data): New functions.
4308
677f3fa8
JM
43092011-06-14 Joseph Myers <joseph@codesourcery.com>
4310
4311 * c-common.c: Include common/common-target.h.
4312 (handle_section_attribute): Use
4313 targetm_common.have_named_sections.
4314 * c-cppbuiltin.c: Include common/common-target.h.
4315 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4316
d7fc8c14
RG
43172011-06-10 Richard Guenther <rguenther@suse.de>
4318
4319 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4320 to print a IDENTIFIER_NODE.
4321
10e48e39
RO
43222011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4323 Joseph Myers <joseph@codesourcery.com>
4324
4325 * c.opt (fbuilding-libgcc): New option.
4326 * c-cppbuiltin.c (c_cpp_builtins): Define
4327 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4328
6976ae51
JM
43292011-06-07 Jason Merrill <jason@redhat.com>
4330
3ff60975
JM
4331 * c-common.c (max_tinst_depth): Lower default to 900.
4332
6976ae51
JM
4333 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4334
009db074
RG
43352011-06-07 Richard Guenther <rguenther@suse.de>
4336
4337 * c-common.c (c_common_nodes_and_builtins): Do not set
4338 size_type_node or call set_sizetype.
4339
b4592b92
DS
43402011-06-07 Dodji Seketeli <dodji@redhat.com>
4341
4342 PR debug/49130
4343 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4344 type when using pointer comparison to compare types.
b4592b92 4345
014ab419
JW
43462011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4347
4348 * c.opt: Add -Wdelete-non-virtual-dtor.
4349 * c-opts.c (c_common_handle_option): Include it in -Wall.
4350
4f60111f
NF
43512011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4352
4353 PR bootstrap/49190
4354
4355 Revert:
4356 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4357
4358 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4359 not tree_common.
4360
4cc4f2f4
JJ
43612011-05-27 Jakub Jelinek <jakub@redhat.com>
4362
4363 PR c++/49165
4364 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4365 C++ don't call c_common_truthvalue_conversion on void type arms.
4366
38e01f9e
NF
43672011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4368
4369 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4370 (stmt_list_stack): Define.
4371 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4372 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4373
92e948a8
NF
43742011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4375
4376 * c-common.c (warning_candidate_p): Check for BLOCKs.
4377
a2fc3e63
NF
43782011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4379
4380 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4381 not tree_common.
4382
0957c029
JJ
43832011-05-25 Jakub Jelinek <jakub@redhat.com>
4384
4385 * c-common.c (def_fn_type): Remove extra va_end.
4386
828fb3ba
JM
43872011-05-23 Jason Merrill <jason@redhat.com>
4388
4389 PR c++/48106
4390 * c-common.c (c_common_get_narrower): New.
4391 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4392
dde05067
NF
43932011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4394
4395 * c-common.h (check_function_arguments): Tweak prototype of
4396 check_function_arguments.
4397 * c-common.c (check_function_arguments): Likewise. Adjust
4398 calls to check_function_nonnull, check_function_format, and
4399 check_function_sentinel.
4400 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4401 separate attributes and typelist arguments. Use
4402 FOREACH_FUNCTION_ARGS to iterate over argument types.
4403
3c0d13bf
PC
44042011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4405
4406 * c-common.c (c_common_reswords): Reorder.
4407 * c-common.h (rid): Likewise.
4408
8242dd04
NF
44092011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4410
4411 * c-common.c (def_fn_type): Don't call build_function_type, call
4412 build_function_type_array or build_varargs_function_type_array
4413 instead.
4414 (c_common_nodes_and_builtins): Likewise.
4415
3d528853
NF
44162011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4417
4418 * c-common.c (c_add_case_label): Omit the loc argument to
4419 build_case_label.
4420 * c-common.h (build_case_label): Remove.
4421 * c-semantics.c (build_case_label): Remove.
4422
a04a722b
JM
44232011-05-05 Joseph Myers <joseph@codesourcery.com>
4424
4425 * c-objc.h (objc_start_method_definition): Update prototype.
4426 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4427
e19a18d4
NF
44282011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4429
4430 * c-common.c (check_main_parameter_types): Reindent. Don't use
4431 TYPE_ARG_TYPES directly.
4432 (handle_nonnull_attribute): Likewise.
4433 (sync_resolve_params): Likewise.
4434 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4435 to check_format_string.
4436 (handle_format_attribute): Likewise.
4437 (check_format_string): Take a function type to examine instead of
4438 a type list. Use a function_arg_iterator to step through argument
4439 types.
4440
c62c040f
RG
44412011-05-04 Richard Guenther <rguenther@suse.de>
4442
4443 * c-common.c (fix_string_type): Use size_int for index type bounds.
4444 (start_fname_decls): Do not pass NULL to build_int_cst.
4445 (c_init_attributes): Likewise.
4446 * c-lex.c (c_lex_with_flags): Likewise.
4447
c12ff9d8
JM
44482011-04-27 Jason Merrill <jason@redhat.com>
4449
4450 * c-common.c (make_tree_vector_from_list): New.
4451 * c-common.h: Declare it.
4452
304dfbe3
RG
44532011-04-26 Richard Guenther <rguenther@suse.de>
4454
4455 PR preprocessor/48248
4456 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4457 for output size with -P.
4458
3c0d13bf
PC
44592011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4460
4461 * c-common.c (struct c_common_resword): Add __underlying_type.
4462 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4463
04695783
JM
44642011-04-20 Jim Meyering <meyering@redhat.com>
4465
4466 * c-format.c (init_dollar_format_checking): Remove useless
4467 if-before-free.
4468
0dc33c3c
NP
44692011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4470
4471 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4472 (objc_detect_field_duplicates): New.
0dc33c3c 4473 * stub-objc.c: Likewise.
3c0d13bf 4474
c59633d9
NP
44752011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4476
4477 * stub-objc.c (objc_declare_protocols): Renamed to
4478 objc_declare_protocol.
4479 * c-objc.h: Likewise.
3c0d13bf 4480
32dabdaf
NP
44812011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4482
4483 * stub-objc.c (objc_declare_class): Updated argument name.
4484
81f653d6
NF
44852011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4486
4487 * c-common.h (c_common_init_ts): Declare.
4488 * c-common.c (c_common_init_ts): Define.
4489
eb345401
NP
44902011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4491
4492 * c-objc.h (objc_build_message_expr): Updated prototype.
4493 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4494
a358e188
MJ
44952011-04-12 Martin Jambor <mjambor@suse.cz>
4496
4497 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4498 of cgraph_node.
4499
e6313a78
RG
45002011-04-11 Richard Guenther <rguenther@suse.de>
4501
4502 * c-common.c (complete_array_type): Build a range type of
4503 proper type.
4504
dcf0c47e
NF
45052011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4506
4507 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4508 (handle_type_generic_attribute): Likewise.
4509
1ee44b26
JM
45102011-04-07 Jason Merrill <jason@redhat.com>
4511
4512 PR c++/48450
4513 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4514 conversion from C++0x scoped enum.
4515
acce4e77
JM
45162011-04-06 Joseph Myers <joseph@codesourcery.com>
4517
4518 * c-target-def.h: New file.
4519 * c-target.def: New file.
4520 * c-target.h: New file.
4521 * c-common.c (targetcm): Don't define here.
4522 * c-common.h (default_handle_c_option): Declare.
4523 * c-format.c: Include c-target.h instead of target.h.
4524 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4525 include tm.h.
4526 (default_handle_c_option): Move from targhooks.c.
4527
e2eefb55
JJ
45282011-03-29 Jakub Jelinek <jakub@redhat.com>
4529
4530 PR preprocessor/48248
4531 * c-ppoutput.c (print): Add src_file field.
4532 (init_pp_output): Initialize it.
4533 (maybe_print_line): Don't optimize by adding up to 8 newlines
4534 if map->to_file and print.src_file are different file.
4535 (print_line): Update print.src_file.
4536
ba78087b
KT
45372011-03-25 Kai Tietz <ktietz@redhat.com>
4538
4539 * c-ada-spec.c (compare_comment): Use filename_cmp
4540 instead of strcmp for filename.
4541
0edf1bb2
JL
45422011-03-25 Jeff Law <law@redhat.com>
4543
adfac8df 4544 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4545
c7dc8804
JM
45462011-03-25 Jason Merrill <jason@redhat.com>
4547
4548 * c.opt: Add -std=c++03.
4549
d1d879b1
EB
45502011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4551
4552 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4553
62d784f7
KT
45542011-03-17 Kai Tietz
4555
4556 PR target/12171
5050afdf
KT
4557 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4558 Display allowed attributes for function pointer types.
4559 (pp_c_attributes_display): New function to display
4560 attributes having affects_type_identity flag set to true.
4561 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4562
62d784f7
KT
4563 * c-common.c (c_common_attribute_table):
4564 Add new element.
4565 (c_common_format_attribute_table): Likewise.
4566
82d37118
JM
45672011-03-18 Jason Merrill <jason@redhat.com>
4568
49a000c3
JM
4569 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4570 * c-common.h: Don't declare it here.
4571 * c-common.c: Or define it here.
4572 * c-opts.c (c_common_handle_option): Or set it here.
4573
82d37118
JM
4574 PR c++/35315
4575 * c-common.c (handle_transparent_union_attribute): Don't
4576 make a duplicate type in C++.
4577
17bc631c
JM
45782011-03-15 Jason Merrill <jason@redhat.com>
4579
4580 * c-common.c (max_constexpr_depth): New.
4581 * c-common.h: Declare it.
4582 * c-opts.c (c_common_handle_option): Set it.
4583 * c.opt (fconstexpr-depth): New option.
4584
1b9b91a6
JM
45852011-03-11 Jason Merrill <jason@redhat.com>
4586
f231b5ff
JM
4587 * c-common.c (attribute_takes_identifier_p): Add missing const.
4588
1b9b91a6
JM
4589 PR c++/46803
4590 * c-common.c (attribute_takes_identifier_p): Assume that an
4591 unknown attribute takes an identifier.
4592
a19e4d44
NF
45932011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4594
4595 PR c/47786
4596 * c-common.c (c_type_hash): Call list_length instead of iterating
4597 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4598
982d62f6
JJ
45992011-02-19 Jakub Jelinek <jakub@redhat.com>
4600
4601 PR c/47809
4602 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4603
0a256240
NP
46042011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4605
4606 * c.opt (fobjc-abi-version=) New.
4607 (fobjc-nilcheck): New.
4608
ba9e6dd5
NF
46092011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4610
4611 PR c++/46890
4612 * c-common.h (keyword_is_decl_specifier): Declare.
4613 * c-common.c (keyword_is_decl_specifier): Define.
4614 (keyword_is_function_specifier): New function.
4615
7273813a
JJ
46162011-01-26 Jakub Jelinek <jakub@redhat.com>
4617
4618 PR c/47473
4619 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4620 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4621 REAL_TYPE.
4622
908ef79b
AC
46232011-01-26 Arnaud Charlet <charlet@adacore.com>
4624
4625 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4626
237e9384
JJ
46272011-01-26 Jakub Jelinek <jakub@redhat.com>
4628
4629 PR pch/47430
4630 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4631 after init_c_lex if pch_file is set.
4632
47ea1edf
DK
46332011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4634
d4dba752 4635 PR c++/43601
47ea1edf
DK
4636 * c.opt (-fkeep-inline-dllexport): New switch.
4637
2aa9c6ae
RG
46382011-01-12 Richard Guenther <rguenther@suse.de>
4639
4640 PR middle-end/32511
4641 * c-common.c (handle_weak_attribute): Warn instead of error
4642 on declaring an inline function weak.
4643
7bd11157
TT
46442011-01-05 Tom Tromey <tromey@redhat.com>
4645
4646 * c-common.h (lvalue_error): Update.
4647 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4648 not error.
4649
0e66e494 46502010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4651
b4f588c4
NP
4652 PR objc/47075
4653 * c-objc.h (objc_finish_message_expr): Added argument to
4654 prototype.
4655
f4da8dce
NF
46562010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4657
4658 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4659 Use prototype_p.
4660
46270f14
NP
46612010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4662
4663 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4664 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4665
4816c593
NF
46662010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4667
4668 * c-common.h (readonly_error): Declare.
4669 * c-common.c (readonly_error): Define.
4670
7a6daeb0
NF
46712010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4672
4673 * c-common.h (invalid_indirection_error): Declare.
4674 * c-common.c (invalid_indirection_error): Define.
4675
892f6119
RG
46762010-12-03 Richard Guenther <rguenther@suse.de>
4677
4678 PR c/46745
4679 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4680 (pp_c_unary_expression): Likewise.
4681 (pp_c_expression): Likewise.
4682
6c39e757
NP
46832010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4684
4685 * c-common.h (objc_finish_function): New.
4686 (objc_non_volatilized_type): Removed.
4687 (objc_type_quals_match): Removed.
4688 * stub-objc.c (objc_finish_function): New.
4689 (objc_non_volatilized_type): Removed.
4690 (objc_type_quals_match): Removed.
9faeb493 4691
7c475d11
JM
46922010-11-30 Joseph Myers <joseph@codesourcery.com>
4693
4694 * c-common.h (parse_optimize_options): Declare.
4695 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4696 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4697
71f3e391
JM
46982010-11-29 Joseph Myers <joseph@codesourcery.com>
4699
4700 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4701 GET_ENVIRONMENT.
4702 * c-pch.c (O_BINARY): Don't define here.
4703 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4704
d5fabb58
JM
47052010-11-25 Joseph Myers <joseph@codesourcery.com>
4706
4707 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4708 targetm.except_unwind_info.
4709
299404a1
JM
47102010-11-23 Joseph Myers <joseph@codesourcery.com>
4711
4712 * c-opts.c (c_common_handle_option): Pass location to
4713 set_struct_debug_option.
4714
c98cd5bf
JM
47152010-11-23 Joseph Myers <joseph@codesourcery.com>
4716
4717 * c-common.c (visibility_options): Move from ../opts.c.
4718 * c-common.h (struct visibility_flags, visibility_options):
4719 Declare here.
4720 * c-opts.c (finish_options): Rename to c_finish_options.
4721 (c_common_init): Update call to finish_options.
4722
a9546771
NP
47232010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4724
4725 PR objc/34033
4726 * c-lex.c (lex_string): Check that each string in an Objective-C
4727 string concat sequence starts with either one or zero '@', and
4728 that there are no spurious '@' signs at the end.
4729
24a57808
JM
47302010-11-20 Joseph Myers <joseph@codesourcery.com>
4731
4732 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4733 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4734 HANDLE_PRAGMA_VISIBILITY.
4735 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4736 HANDLE_PRAGMA_VISIBILITY): Don't define.
4737 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4738
a9aa2c3a
NF
47392010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4740
4741 PR c++/16189
4742 PR c++/36888
4743 PR c++/45331
4744 * c-common.h (keyword_begins_type_specifier): Declare.
4745 (keyword_is_storage_class_specifier): Declare.
4746 (keyword_is_type_qualifier): Declare.
4747 * c-common.c (keyword_begins_type_specifier): New function.
4748 (keyword_is_storage_class_specifier): New function.
4749 (keyword_is_type_qualifier): Declare.
4750
5386338c
JM
47512010-11-19 Joseph Myers <joseph@codesourcery.com>
4752
4753 PR c/46547
4754 * c-common.c (in_late_binary_op): Define.
4755 (c_common_truthvalue_conversion): Check in_late_binary_op before
4756 calling c_save_expr.
4757 * c-common.h (in_late_binary_op): Declare.
4758
69ccdddb
JM
47592010-11-19 Joseph Myers <joseph@codesourcery.com>
4760
4761 * c-opts.c (c_common_handle_option): Update calls to
4762 set_struct_debug_option.
4763
6b192a09
NP
47642010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4765
4766 * c-common.h (objc_declare_protocols): Added additional argument.
4767 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4768
fb52b50a
NF
47692010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4770
4771 PR c/33193
4772 * c-common.h (build_real_imag_expr): Declare.
4773 * c-semantics.c (build_real_imag_expr): Define.
4774
b37421c6
JM
47752010-11-17 Joseph Myers <joseph@codesourcery.com>
4776
4777 * c-opts.c (c_common_parse_file): Take no arguments.
4778 * c-common.h (c_common_parse_file): Update prototype.
4779
07078664
JJ
47802010-11-16 Jakub Jelinek <jakub@redhat.com>
4781
4782 PR c++/46401
4783 * c-common.c (warning_candidate_p): Don't track non-const calls
4784 or STRING_CSTs.
4785
c6a13190
ILT
47862010-11-15 Ian Lance Taylor <iant@google.com>
4787
4788 * c-lex.c (init_c_lex): Set macro debug callbacks if
4789 flag_dump_go_spec is set.
4790
925e8657
NP
47912010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4792
4793 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4794 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4795
bb0a9581
NF
47962010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4797
4798 PR preprocessor/45038
4799 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4800 dialects.
4801
c5fa0890
JM
48022010-11-12 Joseph Myers <joseph@codesourcery.com>
4803
4804 * c-common.h (c_family_lang_mask): Declare.
4805 * c-opts.c (c_family_lang_mask): Make extern.
4806 * c-pragma.c (handle_pragma_diagnostic): Use
4807 control_warning_option.
4808
a4d8c676
JM
48092010-11-12 Joseph Myers <joseph@codesourcery.com>
4810
4811 * c-common.c (parse_optimize_options): Update call to
4812 decode_options.
4813 * c-common.h (c_common_handle_option): Update prototype.
4814 * c-opts.c (c_common_handle_option): Take location_t parameter and
4815 pass it to other functions.
4816
f954bd2c
JM
48172010-11-11 Joseph Myers <joseph@codesourcery.com>
4818
4819 * c-opts.c (warning_as_error_callback): Remove.
4820 (c_common_initialize_diagnostics): Don't call
4821 register_warning_as_error_callback.
4822 (c_common_handle_option): Handle -Werror=normalized= here.
4823
d8a07487
JM
48242010-11-10 Joseph Myers <joseph@codesourcery.com>
4825
4826 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4827 in diagnostic.
4828 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4829 letter.
4830 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4831 Remove trailing '.' from diagnostics.
4832 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4833
d5478783
JM
48342010-11-10 Joseph Myers <joseph@codesourcery.com>
4835
4836 * c-common.c (parse_optimize_options): Pass global_dc to
4837 decode_options.
4838 * c-opts.c (c_common_handle_option): Pass &global_options to
4839 set_Wstrict_aliasing.
4840 * c.opt (v): Don't mark Common or document here.
4841
91ebb981
IS
48422010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4843
4844 PR target/44981
4845 * c-format.c (format_type): New type gcc_objc_string_format_type.
4846 (valid_stringptr_type_p): New.
4847 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4848 (check_format_string): Pass expected type, use
91ebb981
IS
4849 valid_stringptr_type_p (), check that the format string types are
4850 consistent with the format specification.
4851 (decode_format_attr): Warn if NSString is used outside objective-c.
4852 (format_types_orig): Add NSString.
4853 (format_name): New.
4854 (format_flags): New.
4855 (check_format_arg): Handle format strings requiring an external parser.
4856 first_target_format_type: New variable.
4857 (handle_format_attribute): Set up first_target_format_type, pass the
4858 expected format arg string type to check_format_string().
4859 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4860 * stub-objc.c (objc_string_ref_type_p): New.
4861 (objc_check_format_arg): New.
4862
bede2adc
NP
48632010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4864
9faeb493 4865 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4866 * c-common.h (objc_build_class_component_ref): New.
4867 * stub-objc.c (objc_build_class_component_ref): New.
4868
9a179d01
NP
48692010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4870
4871 * c.opt (Wproperty-assign-default): New option.
4872
22d8d616
NP
48732010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4874
4875 Implemented -fobjc-std=objc1 flag.
4876 * c.opt (fobjc-std=objc1): New option.
4877
2debdb4f
NP
48782010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4879
4880 Implemented format and noreturn attributes for Objective-C methods.
4881 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4882 attribute for Objective-C methods.
4883
ec52b111
JM
48842010-10-31 Jason Merrill <jason@redhat.com>
4885
4886 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4887 EXPR_LOC_OR_HERE.
4888
46a88c12
NP
48892010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4890
4891 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4892 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4893 (objc_add_property_declaration): Removed arguments for copies and
4894 ivar.
4895 (objc_build_getter_call): Renamed to
4896 objc_maybe_build_component_ref.
4897 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4898 (objc_is_property_ref): New.
4899 * c-common.c (c_common_reswords): Removed copies and ivar.
4900 * stub-objc.c (objc_add_property_declaration): Removed arguments
4901 for copies and ivar.
4902 (objc_build_getter_call): Renamed to
4903 objc_maybe_build_component_ref.
4904 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4905 (objc_is_property_ref): New.
9faeb493 4906
1e4bf85b
AC
49072010-10-29 Arnaud Charlet <charlet@adacore.com>
4908 Matthew Gingell <gingell@adacore.com>
4909
4910 * c-ada-spec.c (separate_class_package): New function.
4911 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4912 name of their enclosing package.
4913 (print_ada_declaration): Use separate_class_package.
4914
81f0bab2
JM
49152010-10-27 Jason Merrill <jason@redhat.com>
4916
2b08f2c5
JM
4917 * c-common.c (c_common_reswords): Add __is_literal_type.
4918 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4919
81f0bab2
JM
4920 * c-common.c (check_case_value): Remove special C++ code.
4921
200290f2
NP
49222010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4923
4924 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4925 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4926 and RID_LAST_PATTR.
4927 (objc_add_property_declaration): Added additional arguments.
4928 (objc_property_attribute_kind): Removed.
4929 (objc_set_property_attr): Removed.
4930 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4931 copy and nonatomic.
4932 * stub-objc.c (objc_add_property_declaration): Added additional
4933 arguments.
4934 (objc_set_property_attr): Removed.
9faeb493 4935
f614132b
NP
49362010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4937
4938 * c-common.h (objc_add_property_variable): Renamed to
4939 objc_add_property_declaration. Added location argument.
4940 * stub-objc.c (objc_add_property_variable): Same change.
4941
b8a18805
NP
49422010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4943
4944 * c-common.h (objc_maybe_printable_name): New.
4945 * stub-objc.c (objc_maybe_printable_name): New.
4946
30cd1c5d
AS
49472010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4948 Andrew Pinski <pinskia@gmail.com>
4949
4950 * c-common.h (c_common_mark_addressable_vec): Declare.
4951 * c-common.c (c_common_mark_addressable_vec): New function.
4952
249a82c4
NP
49532010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4954
4955 * c-common.h (objc_set_method_type): Removed.
4956 (objc_add_method_declaration): Added boolean argument.
4957 (objc_start_method_definition): Same change.
4958 (objc_build_method_signature): Same change.
4959 * stub-objc.c (objc_set_method_type): Removed.
4960 (objc_add_method_declaration): Added boolean argument.
4961 (objc_start_method_definition): Same change.
4962 (objc_build_method_signature): Same change.
4963
977e30bc
NP
49642010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4965
4966 * c-common.h (finish_file): Removed.
4967 (objc_write_global_declarations): New.
4968 * c-opts.c (c_common_parse_file): Do not call finish_file.
4969 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4970
da57d1b9
NP
49712010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4972
4973 Implemented parsing @synthesize and @dynamic for
4974 Objective-C/Objective-C++.
4975 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4976 (objc_add_synthesize_declaration): New.
4977 (objc_add_dynamic_declaration): New.
4978 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4979 * stub-objc.c (objc_add_synthesize_declaration): New.
4980 (objc_add_dynamic_declaration): New.
9faeb493 4981
0069111f
MM
49822010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4983
4984 PR target/46041
4985 * c-cppbuiltin.c (mode_has_fma): Move function here from
4986 builtins.c. Don't use the fma optab, instead just use the
4987 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4988 using -save-temps.
4989
e426b47b
NP
49902010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4991
4992 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4993
e426b47b
NP
4994 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4995
9faeb493 4996 Radar 4330422
e426b47b
NP
4997 * c-common.h (objc_non_volatilized_type): New declaration
4998 * stub-objc.c (objc_non_volatilized_type): New stub.
4999
90fbfdc3
NP
50002010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5001
e426b47b 5002 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5003
5004 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5005
9faeb493 5006 Radar 4133425
90fbfdc3 5007 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5008 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5009
c37d8c30
IS
50102010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5011
5012 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5013 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5014 (objc_ivar_visibility_kind): New enum.
5015 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5016 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5017 visibility enum.
5018
1b1562a5
MM
50192010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5020
5021 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5022 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5023 has the appropriate fma builtins.
5024 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5025
668ea4b1
IS
50262010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5027
1b1562a5 5028 merge from FSF apple 'trunk' branch.
668ea4b1 5029 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5030
668ea4b1
IS
5031 Radars 4436866, 4505126, 4506903, 4517826
5032 * c-common.c (c_common_resword): Define @property and its attributes.
5033 * c-common.h: Define property attribute enum entries.
5034 (OBJC_IS_PATTR_KEYWORD): New.
5035 (objc_property_attribute_kind): New enum.
5036 Declare objc_set_property_attr (), objc_add_property_variable (),
5037 objc_build_getter_call () and objc_build_setter_call ().
5038 * stub-objc.c (objc_set_property_attr): New stub.
5039 (objc_add_property_variable): Likewise.
5040 (objc_build_getter_call): Likewise.
5041 (objc_build_setter_call) Likewise.
1b1562a5 5042
a1178b30
IS
50432010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5044
1b1562a5 5045 merge from FSF apple 'trunk' branch.
a1178b30
IS
5046 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5047
5048 Radar 3803157 (method attributes)
5049 * c-common.c (handle_deprecated_attribute): Recognize
5050 objc methods as valid declarations.
5051 * c-common.h: Declare objc_method_decl ().
1b1562a5 5052 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5053
a75bfaa6
JM
50542010-10-08 Joseph Myers <joseph@codesourcery.com>
5055
5056 * c-common.c (parse_optimize_options): Call
5057 decode_cmdline_options_to_array_default_mask before
5058 decode_options. Update arguments to decode_options.
5059 * c-common.h (c_common_init_options_struct): Declare.
5060 * c-opts.c (c_common_init_options_struct): New. Split out from
5061 c_common_init_options.
5062
f05b9d93
NP
50632010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5064
5065 Implemented fast enumeration for Objective-C.
5066 * c-common.h (objc_finish_foreach_loop): New.
5067 * stub-objc.c (objc_finish_foreach_loop): New.
5068
1ebe4b4f
JM
50692010-10-05 Joseph Myers <joseph@codesourcery.com>
5070
5071 * c-common.h (struct diagnostic_context): Don't declare here.
5072 (c_common_initialize_diagnostics): Declare using
5073 diagnostic_context typedef.
5074 * c-opts.c (c_common_handle_option): Pass global_dc to
5075 handle_generated_option.
5076
d4d24ba4
JM
50772010-10-04 Joseph Myers <joseph@codesourcery.com>
5078
5079 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5080 handle_generated_option.
5081
478a1c5b
ILT
50822010-10-03 Ian Lance Taylor <iant@google.com>
5083
5084 * c.opt (-fplan9-extensions): New option.
5085
82a1c2fe
FXC
50862010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5087
5088 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5089 Remove.
5090 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5091 of duplicating code.
5092
92902b1b
IS
50932010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5094
5095 * c-common.c: Add two new entries for @optional
5096 and @required keywords.
5097
5098 merge from FSF 'apple/trunk' branch.
5099 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5100
5101 Radar 4386773
5102 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5103 objective-c keywords.
5104 (objc_set_method_opt): New declaration.
5105 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5106
46625112
JM
51072010-09-30 Joseph Myers <joseph@codesourcery.com>
5108
5109 * c-common.c (handle_optimize_attribute): Pass &global_options to
5110 cl_optimization_save and cl_optimization_restore.
5111 * c-opts.c (c_common_handle_option): Pass &global_options to
5112 handle_generated_option.
5113 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5114 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5115 &global_options to cl_optimization_restore.
5116
49b91f05
NP
51172010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5118
5119 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5120 Objective-C/Objective-C++ keywords.
5121
13ed556f 51222010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5123
9faeb493
UB
5124 Merge from 'apple/trunk' branch on FSF servers.
5125
a6341d57
NP
5126 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5127
5128 Radar 4281748
5129 * c-common.h (objc_check_global_decl): New declaration.
5130 * stub-objc.c (objc_check_global_decl): New stub.
5131
f0036cca
JM
51322010-09-29 Joseph Myers <joseph@codesourcery.com>
5133
5134 * c.opt: Don't use VarExists.
5135
e3339d0f
JM
51362010-09-29 Joseph Myers <joseph@codesourcery.com>
5137
5138 * c-common.c (c_cpp_error): Update names of diagnostic_context
5139 members.
5140 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5141 cl_optimization members.
5142 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5143 sanitize_cpp_opts, finish_options): Update names of cpp_options
5144 members.
5145
1973201f
NP
51462010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5147
5148 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5149 (objc_is_reserved_word): Removed.
5150 * c-common.c: Updated comments.
5151 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5152 objc_is_reserved_word.
5153 * stub-objc.c (objc_is_reserved_word): Removed.
5154
f7e71da5
IS
51552010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5156
9faeb493 5157 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5158 include attributes.
5159 (objc_start_method_definition): Likewise.
5160 (objc_build_keyword_decl): Likewise.
5161 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5162 (objc_start_method_definition): Likewise.
5163 (objc_build_keyword_decl): Likewise.
5164
c165dca7
IS
51652010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5166
5167 * c-common.h (objc_start_class_interface): Adjust prototype.
5168 (objc_start_category_interface): Likewise.
5169 (objc_start_protocol): Likewise.
5170 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5171 (objc_start_class_interface): Likewise.
5172 (objc_start_category_interface): Likewise.
5173
7458026b
ILT
51742010-09-27 Ian Lance Taylor <iant@google.com>
5175
5176 * c-common.c (c_common_attribute_table): Add no_split_stack.
5177 (handle_no_split_stack_attribute): New static function.
5178
b581b85b
NP
51792010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5180
9faeb493 5181 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5182
5183 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5184
9faeb493 5185 Radar 4229905
b581b85b
NP
5186 * c-common.h (objc_have_common_type): New declaration.
5187 * stub-objc.c (objc_have_common_type): New stub.
5188
5189 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5190
5191 Radar 4154928
5192 * c-common.h (objc_common_type): New prototype.
9faeb493 5193 * stub-objc.c (objc_common_type): New stub.
b581b85b 5194
46a4da10
JH
51952010-09-24 Jan Hubicka <jh@suse.cz>
5196
5197 * c-common.c (handle_leaf_attribute): New function.
5198 (struct attribute_spec c_common_att): Add leaf.
5199
e200444e
JM
52002010-09-22 Joseph Myers <joseph@codesourcery.com>
5201
5202 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5203 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5204 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5205 -include-barrier, -include-directory, -include-directory=,
5206 -include-directory-after, -include-directory-after=,
5207 -include-prefix, -include-prefix=, -include-with-prefix,
5208 -include-with-prefix=, -include-with-prefix-after,
5209 -include-with-prefix-after=, -include-with-prefix-before,
5210 -include-with-prefix-before=, -no-integrated-cpp,
5211 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5212 -output=, -pedantic, -pedantic-errors, -preprocess,
5213 -print-missing-file-dependencies, -trace-includes, -traditional,
5214 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5215 -user-dependencies, -verbose, -write-dependencies,
5216 -write-user-dependencies, no-integrated-cpp, traditional): New.
5217
29a80ea6
NP
52182010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5219
5220 PR objc/23710
ac1fc2fc
NP
5221 * c-common.h (objc_start_method_definition): Return bool instead
5222 of void.
5223 * stub-objc.c (objc_start_method_definition): Return bool instead
5224 of void.
5225
52262010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5227
5228 PR objc/25965
5229 * c-common.h (objc_get_interface_ivars): New declaration.
5230 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5231
de621752
ILT
52322010-09-15 Ian Lance Taylor <iant@google.com>
5233
5234 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5235 messages. Remove period at end of warning message.
de621752 5236
ba885ec5
NS
52372010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5238
5239 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5240 (handle_alias_attribute): ... here.
5241 (handle_ifunc_attribute): New.
5242
c5ee1358
MM
52432010-09-06 Mark Mitchell <mark@codesourcery.com>
5244
5245 * c-common.h (do_warn_double_promotion): Declare.
5246 * c-common.c (do_warn_double_promotion): Define.
5247
0a0b3574
MM
52482010-09-05 Mark Mitchell <mark@codesourcery.com>
5249
5250 * c.opt (Wdouble-promotion): New.
5251
d1779886
JM
52522010-09-02 Joseph Myers <joseph@codesourcery.com>
5253
5254 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5255 fvtable-thunks, fxref): Mark no longer supported in help text.
5256
2d2bd949
JM
52572010-09-02 Joseph Myers <joseph@codesourcery.com>
5258
5259 * c.opt (Wimport, fall-virtual, falt-external-templates,
5260 fdefault-inline, fenum-int-equiv, fexternal-templates,
5261 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5262 fname-mangling-version-, fnew-abi, fnonnull-objects,
5263 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5264 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5265 applicable.
5266 (fhandle-exceptions): Mark with Alias and Warn.
5267 * c-opts.c (c_common_handle_option): Don't handle options marked
5268 as ignored.
5269
5de8299c
JM
52702010-09-02 Joseph Myers <joseph@codesourcery.com>
5271
5272 * c.opt (Wcomments, Werror-implicit-function-declaration,
5273 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5274 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5275 aliases.
5276 * c-common.c (option_codes): Use OPT_Wcomment instead of
5277 OPT_Wcomments.
5278 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5279 Don't handle options marked as aliases.
5280
0ceb0201
RG
52812010-08-25 Richard Guenther <rguenther@suse.de>
5282
5283 * c-common.c (c_common_get_alias_set): Remove special
5284 handling for pointers.
5285
ac47786e
NF
52862010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5287
5288 * c-common.c: Use FOR_EACH_VEC_ELT.
5289 * c-gimplify.c: Likewise.
5290 * c-pragma.c: Likewise.
5291
c878765b
JM
52922010-08-16 Joseph Myers <joseph@codesourcery.com>
5293
5294 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5295 RejectDriver.
5296 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5297 RejectDriver.
5298 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5299 instead of OPT_MDX and OPT_MMDX.
5300
603349bf
JM
53012010-08-16 Joseph Myers <joseph@codesourcery.com>
5302
5303 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5304
644fa7ac
JM
53052010-08-12 Joseph Myers <joseph@codesourcery.com>
5306
5307 * c.opt (MD, MMD): Change to MDX and MMDX.
5308 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5309
481e1176
JM
53102010-08-11 Joseph Myers <joseph@codesourcery.com>
5311
5312 * c-opts.c (c_common_handle_option): Call handle_generated_option
5313 instead of handle_option.
5314
ac8dc9f7
NF
53152010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5316
5317 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5318 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5319
4f8c876d
NF
53202010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5321
5322 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5323 (pending_redefine_extname): Change type to a VEC.
5324 (add_to_renaming_pragma_list): Update for new type of
5325 pending_redefine_extname.
ac8dc9f7 5326 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5327
3b0c690e
AC
53282010-08-04 Arnaud Charlet <charlet@adacore.com>
5329
5330 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5331 visited.
5332 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5333 decide whether a type has already been declared/seen.
5334 Do not go to the original type.
5335 (dump_nested_types): New parameter forward.
5336 Generate forward declaration if needed and mark type as visited.
5337 (print_ada_declaration): Call dump_nested_types if not already done.
5338 Mark types as visited.
5339
1890bccc
JM
53402010-08-03 Joseph Myers <joseph@codesourcery.com>
5341
5342 * c.opt (-print-pch-checksum): Remove option.
5343 * c-opts.c (c_common_handle_option): Don't handle
5344 OPT_print_pch_checksum.
5345
5f20c657
JM
53462010-07-27 Joseph Myers <joseph@codesourcery.com>
5347
5348 * c-common.h (c_common_handle_option): Update prototype and return
5349 value type.
5350 * c-opts.c (c_common_handle_option): Update prototype and return
5351 value type. Update calls to handle_option and
5352 enable_warning_as_error.
5353
f551f80c
JJ
53542010-07-27 Jakub Jelinek <jakub@redhat.com>
5355
5356 PR c/45079
5357 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5358
61ff2bdc
JM
53592010-07-27 Joseph Myers <joseph@codesourcery.com>
5360
5361 * c-common.h (c_common_missing_argument): Remove.
5362 * c-opts.c (c_common_missing_argument): Remove.
5363 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5364 idirafter, imacros, include, isysroot, isystem, iquote): Add
5365 MissingArgError.
5366 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5367
7a9bf9a4
JM
53682010-07-27 Joseph Myers <joseph@codesourcery.com>
5369
5370 * c-common.h (c_common_option_lang_mask,
5371 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5372 New.
5373 (c_common_init_options): Update prototype.
5374 * c-opts.c (c_common_option_lang_mask): New.
5375 (c_common_initialize_diagnostics): Split out of
5376 c_common_init_options.
5377 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5378 New.
5379 (c_common_init_options): Update prototype. Use decoded options in
5380 search for -lang-asm.
5381
910ad8de
NF
53822010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5383
5384 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5385 * c-format.c: Likewise.
5386
718f9c0f
MLI
53872010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5388
5389 * c-common.h: Include diagnostic-core.h. Error if already
5390 included.
5391 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5392
4d451982
MLI
53932010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5394
adfac8df 5395 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5396 Do not include expr.h
5397 (vector_mode_valid_p): Move here.
5398
119fe915
SB
53992010-06-21 DJ Delorie <dj@redhat.com>
5400
5401 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5402 allow these pragmas anywhere.
5403
54042010-06-14 Jakub Jelinek <jakub@redhat.com>
5405
5406 PR bootstrap/44509
5407 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5408 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5409 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5410 ggc_strdup instead of xstrdup.
5411
54122010-06-10 Jakub Jelinek <jakub@redhat.com>
5413
5414 * c-cppbuiltin.c: Include cpp-id-data.h.
5415 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5416 (lazy_hex_fp_value): New function.
5417 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5418
6662d794
MLI
54192010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5420
5421 * c-gimplify.c: Do not include tree-flow.h
5422
38f8b050
JR
54232010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5424
5425 PR other/44034
5426 * c-common.c: Rename targetm member:
5427 targetm.enum_va_list -> targetm.enum_va_list_p
5428
9589f23e
AS
54292010-06-28 Anatoly Sokolov <aesok@post.ru>
5430
5431 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5432
3b06d379
SB
54332010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5434
5435 * c-cppbuiltin.c: Do not include except.h.
5436
d166d4c3
AK
54372010-06-24 Andi Kleen <ak@linux.intel.com>
5438
9faeb493
UB
5439 * c-common.c (warn_for_omitted_condop): New.
5440 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5441
70cb8be6
JM
54422010-06-21 Joseph Myers <joseph@codesourcery.com>
5443
5444 * c.opt (lang-objc): Remove.
5445 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5446
a4c97feb
JR
54472010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5448
5449 * c-opts.c: Include "tm_p.h".
5450
6e2f1956
JM
54512010-06-20 Joseph Myers <joseph@codesourcery.com>
5452
5453 * c-common.c (parse_optimize_options): Update call to
5454 decode_options.
5455
bc87224e
NF
54562010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5457
5458 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5459 new type of types_used_by_cur_var_decl.
5460
b49cf425
JR
54612010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5462
5463 PR bootstrap/44512
5464 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5465 for C++ standard compliance.
5466
59f9c2ed
JM
54672010-06-16 Jason Merrill <jason@redhat.com>
5468
5469 * c.opt: Add -Wnoexcept.
5470
33766b66
RG
54712010-06-16 Richard Guenther <rguenther@suse.de>
5472
5473 PR c/44555
5474 * c-common.c (c_common_truthvalue_conversion): Remove
5475 premature and wrong optimization concering ADDR_EXPRs.
5476
eff7e30c
AC
54772010-06-15 Arnaud Charlet <charlet@adacore.com>
5478
5479 * c-ada-spec.c (dump_sloc): Remove column info.
5480 (is_simple_enum): New function.
5481 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5482 enum types when relevant.
5483
6312e84d
MLI
54842010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5485
9faeb493 5486 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5487 location.
5488
1cb42611
JM
54892010-06-10 Joseph Myers <joseph@codesourcery.com>
5490
5491 * c-opts.c (c_common_handle_option): Don't handle
5492 OPT_fshow_column.
5493
a9429e29
LB
54942010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5495
5496 * c-pragma.c (push_alignment): Use typed GC allocation.
5497 (handle_pragma_push_options): Likewise.
5498
5499 * c-common.c (parse_optimize_options): Likewise.
5500
5501 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5502 option.
5503
5498f011
JM
55042010-06-07 Joseph Myers <joseph@codesourcery.com>
5505
5506 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5507 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5508 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5509 flag_signed_bitfields, warn_strict_null_sentinel,
5510 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5511 flag_gen_declaration, flag_no_gnu_keywords,
5512 flag_implement_inlines, flag_implicit_templates,
5513 flag_implicit_inline_templates, flag_optional_diags,
5514 flag_elide_constructors, flag_default_inline, flag_rtti,
5515 flag_conserve_space, flag_access_control, flag_check_new,
5516 flag_new_for_scope, flag_weak, flag_working_directory,
5517 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5518 flag_enforce_eh_specs, flag_threadsafe_statics,
5519 flag_pretty_templates): Remove.
5520 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5521 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5522 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5523 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5524 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5525 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5526 flag_no_gnu_keywords, flag_implement_inlines,
5527 flag_implicit_templates, flag_implicit_inline_templates,
5528 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5529 flag_rtti, flag_conserve_space, flag_access_control,
5530 flag_check_new, flag_new_for_scope, flag_weak,
5531 flag_working_directory, flag_use_cxa_atexit,
5532 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5533 flag_threadsafe_statics, flag_pretty_templates,
5534 warn_strict_null_sentinel): Remove.
5535 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5536 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5537 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5538 fimplicit-inline-templates, fimplicit-templates,
5539 flax-vector-conversions, fms-extensions, fnil-receivers,
5540 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5541 frtti, fshort-double, fshort-enums, fshort-wchar,
5542 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5543 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5544 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5545 gen-decls, undef): Use Var.
5546 (fdefault-inline, foptional-diags): Document as doing nothing.
5547 * c-opts.c (c_common_handle_option): Remove cases for options now
5548 using Var. Mark ignored options as such.
5549
39dabefd
SB
55502010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5551
9faeb493 5552 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5553 * c-common.def: Likewise.
5554 * c-common.h: Likewise.
5555 * c-cppbuiltin.c: Likewise.
5556 * c-dump.c: Likewise.
5557 * c-format.c: Likewise.
5558 * c-format.h : Likewise.
5559 * c-gimplify.c: Likewise.
5560 * c-lex.c: Likewise.
5561 * c-omp.c: Likewise.
5562 * c.opt: Likewise.
5563 * c-opts.c: Likewise.
5564 * c-pch.c: Likewise.
5565 * c-ppoutput.c: Likewise.
5566 * c-pragma.c: Likewise.
5567 * c-pragma.h: Likewise.
5568 * c-pretty-print.c: Likewise.
5569 * c-pretty-print.h: Likewise.
5570 * c-semantics.c: Likewise.
5571 * stub-objc.c: Likewise.
5572
5573 * c-common.c: Include gt-c-family-c-common.h.
5574 * c-pragma.c: Include gt-c-family-c-pragma.h.
5575\f
5624e564 5576Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5577
5578Copying and distribution of this file, with or without modification,
5579are permitted in any medium without royalty provided the copyright
5580notice and this notice are preserved.
This page took 2.022409 seconds and 5 git commands to generate.