]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
483b3d26 12015-04-28 Eric Botcazou <ebotcazou@adacore.com>
2 Pierre-Marie de Rodat <derodat@adacore.com>
3
4 * c-ada-spec.c (in_function): Delete.
5 (dump_generic_ada_node): Do not change in_function and remove the
6 redundant code dealing with it.
7 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
8 (print_ada_methods): Output the static member functions in a nested
9 package after the regular methods as well as associated renamings.
10
f11bdffb 112015-04-24 Marek Polacek <polacek@redhat.com>
12
13 PR c/65830
14 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
15 and OPT_Wshift_count_overflow.
16
485f6b9c 17 PR c/63357
18 * c-common.c (warn_logical_operator): Warn if the operands have the
19 same expressions.
20
439606a9 212015-04-24 Marek Polacek <polacek@redhat.com>
22
23 PR c/61534
24 * c-common.c (warn_logical_operator): Bail if either operand comes
25 from a macro expansion.
26
de801c28 272015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28
29 PR target/55143
30 * c-common.c (c_default_pointer_mode): Add definition.
31 * c-common.h (c_default_pointer_mode): Add declaration.
32
76738f56 332015-03-11 Jakub Jelinek <jakub@redhat.com>
34
35 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
36 on record_builtin_type argument.
37
16f958b3 382015-03-10 Jakub Jelinek <jakub@redhat.com>
39
40 PR c/65120
41 * c-common.c (warn_logical_not_parentheses): Don't warn for
42 !x == 0 or !x != 0.
43
9b22f73f 442015-03-07 Marek Polacek <polacek@redhat.com>
45
46 PR sanitizer/65280
47 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
48 before trying to figure out whether we have a flexible array member.
49
a864b7d4 502015-03-06 Eric Botcazou <ebotcazou@adacore.com>
51 Jonathan Wakely <jwakely.gcc@gmail.com>
52
53 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
54
9bf8c90b 552015-03-05 Eric Botcazou <ebotcazou@adacore.com>
56
57 PR ada/65319
58 * c-ada-spec.c (print_destructor): Remove obsolete code.
59
037ac54f 602015-03-01 Eric Botcazou <ebotcazou@adacore.com>
61
62 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
63 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
64 DECL_TEMPLATE_RESULT emulations.
65 (dump_ada_template)): Add guard for TYPE_METHODS.
66
495cbfb8 672015-02-27 Marek Polacek <polacek@redhat.com>
68
69 PR c/65040
70 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
71
688a864e 722015-02-27 Kai Tietz <ktietz@redhat.com>
73
74 PR c/35330
75 * c-pragma.c (handle_pragma_weak): Do not try to create
76 weak/alias of declarations not being function, or variable
77 declarations.
78
6349b8cc 792015-02-24 Thomas Schwinge <thomas@codesourcery.com>
80
81 PR libgomp/64625
82 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
83 Remove macros.
84 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
85
3afd5369 862015-02-16 Marek Polacek <polacek@redhat.com>
87
88 PR c/65066
89 * c-format.c (check_format_types): Handle null param.
90
46173d1b 912015-02-13 Marek Polacek <polacek@redhat.com>
92
93 PR c/65040
94 * c-format.c (check_format_types): Don't warn about different
95 signedness if the original value is in the range of WANTED_TYPE.
96
1d524ff7 972015-02-12 Jason Merrill <jason@redhat.com>
98
99 PR c++/64956
100 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
101 to the current highest version.
102 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
103
bbf8fbec 1042015-02-04 Jakub Jelinek <jakub@redhat.com>
105
106 PR c/64824
107 PR c/64868
108 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
109 instead of RDIV_EXPR. Use build_binary_op instead of
110 build2_loc.
111
c05be867 1122015-01-30 Joseph Myers <joseph@codesourcery.com>
113
114 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
115 to pass input_location as first argument.
116
85977647 1172015-01-23 Tom de Vries <tom@codesourcery.com>
118
119 PR libgomp/64672
120 * c.opt (fopenacc): Mark as LTO option.
121
fa175926 1222015-01-23 Tom de Vries <tom@codesourcery.com>
123
124 PR libgomp/64707
125 * c.opt (fopenmp): Mark as LTO option.
126
20aad5ba 1272015-01-21 Jakub Jelinek <jakub@redhat.com>
128
129 PR c/63307
130 * cilk.c (fill_decls_vec): Only put decls into vector v.
131 (compare_decls): Fix up formatting.
132
1332015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
134
135 PR c/63307
136 * cilk.c: Include vec.h.
137 (struct cilk_decls): New structure.
138 (wrapper_parm_cb): Split this function to...
139 (fill_decls_vec): ...this...
140 (create_parm_list): ...and this.
141 (compare_decls): New function.
142 (for_local_cb): Remove.
143 (wrapper_local_cb): Ditto.
144 (build_wrapper_type): For now first traverse and fill vector of
145 declarations then sort it and then deal with sorted vector.
146 (cilk_outline): Ditto.
147 (declare_one_free_variable): Ditto.
148
60b77e28 1492015-01-21 Jason Merrill <jason@redhat.com>
150
151 PR c++/64629
152 * c-format.c (check_format_arg): Call decl_constant_value.
153
85fbea97 1542015-01-19 Martin Liska <mliska@suse.cz>
155
156 * c-common.c (handle_noicf_attribute): New function.
157
ca4c3545 1582015-01-15 Thomas Schwinge <thomas@codesourcery.com>
159 Bernd Schmidt <bernds@codesourcery.com>
160 James Norris <jnorris@codesourcery.com>
161 Cesar Philippidis <cesar@codesourcery.com>
162 Ilmir Usmanov <i.usmanov@samsung.com>
163 Jakub Jelinek <jakub@redhat.com>
164
165 * c.opt (fopenacc): New option.
166 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
167 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
168 New macros.
169 * c-common.h (c_finish_oacc_wait): New prototype.
170 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
171 (c_finish_oacc_wait): New function.
172 * c-pragma.c (oacc_pragmas): New variable.
173 (c_pp_lookup_pragma, init_pragma): Handle it.
174 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
175 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
176 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
177 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
178 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
179 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
180 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
181 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
182 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
183 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
184 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
185 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
186 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
187 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
188 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
189 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
190 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
191 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
192 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
193 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
194 PRAGMA_OACC_CLAUSE_WORKER.
195
947aa916 1962015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
197
198 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
199 for the new option fstack-protector_explicit.
200 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
201 (handle_stack_protect_attribute): New function.
202
e4fd7af1 2032015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
204
205 * c.opt: New option -Warray-bounds=.
206
1f78217c 2072015-01-09 Michael Collison <michael.collison@linaro.org>
208
209 * array-notation-common.c: Include hash-set.h, machmode.h,
210 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
211 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
212 * c-ada-spec.c: Ditto.
213 * c-cilkplus.c: Ditto.
214 * c-common.c: Include input.h due to flattening of tree.h.
215 Define macro GCC_C_COMMON_C.
216 * c-common.h: Flatten tree.h header files into c-common.h.
217 Remove include of tree-core.h.
218 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
219 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
220 fold-const.h, wide-int.h, and inchash.h due to
221 flattening of tree.h.
222 * c-dump.c: Ditto.
223 * c-format.c: Flatten tree.h header files into c-common.h.
224 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
225 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
226 fold-const.h, wide-int.h, and inchash.h due to
227 flattening of tree.h.
228 * c-dump.c: Include hash-set.h, machmode.h,
229 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
230 fold-const.h, wide-int.h, and inchash.h due to
231 flattening of tree.h.
232 * c-format.c: Include hash-set.h, machmode.h,
233 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
234 fold-const.h, wide-int.h, inchash.h and real.h due to
235 flattening of tree.h.
236 * c-gimplify.c: Include hash-set.h, machmode.h,
237 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
238 fold-const.h, wide-int.h, and inchash.h due to
239 flattening of tree.h.
240 * cilk.c: Ditto.
241 * c-lex.c: Ditto.
242 * c-omp.c: Ditto.
243 * c-opts.c: Ditto.
244 * c-pch.c: Ditto.
245 * c-ppoutput.c: Ditto.
246 * c-pragma.c: Ditto.
247 * c-pretty-print.c: Ditto.
248 * c-semantics.c: Ditto.
249 * c-ubsan.c: Ditto.
250 * stub-objc.c: Ditto.
251
411b7663 2522015-01-08 Jason Merrill <jason@redhat.com>
253
254 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
255 do_ubsan_in_current_function.
256 (ubsan_maybe_instrument_reference_or_call): Likewise.
257 * c-ubsan.h: Declare it.
258
d1e96383 2592015-01-08 Mike Stump <mikestump@comcast.net>
260
261 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
262
b57910fa 2632015-01-07 Marek Polacek <polacek@redhat.com>
264
265 PR c/64440
266 * c-common.c (c_fully_fold_internal): Warn for division and modulo
267 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
268
678a4e3e 2692015-01-05 Trevor Saunders <tsaunders@mozilla.com>
270
271 PR c++/31397
272 * c.opt (Wsuggest-override): New option.
273
d353bf18 2742015-01-05 Jakub Jelinek <jakub@redhat.com>
275
276 Update copyright years.
277
92b63884 2782015-01-05 Marek Polacek <polacek@redhat.com>
279
280 PR c/64423
281 * c-common.c (warn_array_subscript_with_type_char): Add location_t
282 parameter. Use it.
283 * c-common.h (warn_array_subscript_with_type_char): Update
284 declaration.
285
83715bc4 2862014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
287
288 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
289 Control macro with flag_sized_deallocation.
290
8a8211df 2912014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
292
293 * c.opt (Wdiscarded-array-qualifiers): New option.
294
33058239 2952014-12-19 Jakub Jelinek <jakub@redhat.com>
296
297 PR preprocessor/63831
298 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
299 and __has_cpp_attribute here.
300 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
301 c_common_has_attribute.
302 * c-common.h (c_common_has_attribute): New prototype.
303 * c-lex.c (init_c_lex): Set cb->has_attribute to
304 c_common_has_attribute instead of cb_has_attribute.
305 (get_token_no_padding): New function.
306 (cb_has_attribute): Renamed to ...
307 (c_common_has_attribute): ... this. No longer static. Use
308 get_token_no_padding, require ()s, don't build TREE_LIST
309 unnecessarily, fix up formatting, adjust diagnostics, call
310 init_attributes.
311
d1856d2c 3122014-12-15 Jason Merrill <jason@redhat.com>
313
314 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
315 (-Wsized-deallocation): New.
316 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
317 to on in C++14 and up.
318
4972ed5d 3192014-12-11 Jason Merrill <jason@redhat.com>
320
7d7fa964 321 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
322
4972ed5d 323 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
324 we aren't complaining about VLAs.
325
5ebccf71 3262014-12-06 Marek Polacek <polacek@redhat.com>
327
328 PR tree-optimization/64183
329 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
330 shift-expression if it is integer_type_node. Use types_compatible_p.
331
f9e245b2 3322014-11-29 Jakub Jelinek <jakub@redhat.com>
333
334 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
335 last argument from create_tmp_var_raw and create_tmp_var calls.
336 * cilk.c (gimplify_cilk_spawn): Likewise.
337 * c-omp.c (c_finish_omp_atomic): Likewise.
338
d2f60593 3392014-11-28 Marek Polacek <polacek@redhat.com>
340
341 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
342 instead of unsigned_type_node.
343
fce2dbd1 3442014-11-28 Marek Polacek <polacek@redhat.com>
345
346 PR c/63862
347 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
348 to op1_utype.
349 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
350 expression to unsigned_type_node.
351
3a4a2292 3522014-11-20 Mark Wielaard <mjw@redhat.com>
353
354 PR debug/38757
355 * c-opts.c (set_std_c89): Set lang_hooks.name.
356 (set_std_c99): Likewise.
357 (set_std_c11): Likewise.
358 (set_std_cxx98): Likewise.
359 (set_std_cxx11): Likewise.
360 (set_std_cxx14): Likewise.
361 (set_std_cxx1z): Likewise.
362
c61ef207 3632014-11-21 Jakub Jelinek <jakub@redhat.com>
364
365 PR target/63764
366 * c-common.h (convert_vector_to_pointer_for_subscript): Change
367 return type to bool.
c9ed79de 368 * c-common.c: Include gimple-expr.h.
c61ef207 369 (convert_vector_to_pointer_for_subscript): Change return type to
370 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
371 and copy it into a TARGET_EXPR and use that instead of *vecp
372 directly.
373
1a91d914 3742014-11-19 David Malcolm <dmalcolm@redhat.com>
375
376 Merger of git branch "gimple-classes-v2-option-3".
377 * ChangeLog.gimple-classes: New.
378 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
379 from being just a vec<gimple> to a vec<gbind *>.
380
f8fc8b8e 3812014-11-18 Jakub Jelinek <jakub@redhat.com>
382
383 PR sanitizer/63813
384 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
385 argument to ptype, set type to TREE_TYPE (ptype). Don't call
386 get_pointer_alignment for non-pointers. Use ptype, or if it is
387 reference type, corresponding pointer type, as type of kind
388 argument.
389 (ubsan_maybe_instrument_reference,
390 ubsan_maybe_instrument_member_call): Adjust callers.
391
8315e35e 3922014-11-15 Marek Polacek <polacek@redhat.com>
393
394 PR middle-end/63884
395 * array-notation-common.c (is_sec_implicit_index_fn): Return false
396 for NULL fndecl.
397 (extract_array_notation_exprs): Return for NULL node.
398
86b9f14b 3992014-11-12 Joseph Myers <joseph@codesourcery.com>
400
401 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
402 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
403
0c93c8a9 4042014-11-12 Jakub Jelinek <jakub@redhat.com>
405
406 PR c/59708
407 * c-common.c (check_builtin_function_arguments): Handle
408 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
409
fdd735a7 4102014-11-10 Andi Kleen <ak@linux.intel.com>
411
412 PR c/60804
413 * c-common.h (check_no_cilk): Declare.
414 * cilk.c (get_error_location): New function.
415 (check_no_cilk): Dito.
416
5cb678b4 4172014-11-10 Andi Kleen <ak@linux.intel.com>
418
419 * cilk.c (recognize_spawn): Use expression location
420 for error message.
421
0feb4de1 4222014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
423
424 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
425
3aa2fa44 4262014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
427
428 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
429 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
430 (__cpp_range_based_for, __cpp_initializer_lists,
431 __cpp_delegating_constructors, __cpp_nsdmi,
432 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
433 for C++11; (__cpp_attribute_deprecated): Remove in favor of
434 __has_cpp_attribute.
435 * c-lex.c (cb_has_attribute): New callback CPP function;
436 (init_c_lex): Set has_attribute callback.
437
7fd22aae 4382014-11-04 Richard Biener <rguenther@suse.de>
439
440 * c-common.c (shorten_compare): Do not shorten mixed
441 DFP and non-DFP compares.
442
4af203ac 4432014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
444
445 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
446 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
447 Commentary and rearrangement of tests.
448 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
449 Commentary and rearrangement of tests.
450 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
451 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
452
3754d046 4532014-10-29 Richard Sandiford <richard.sandiford@arm.com>
454
455 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
456 enum from machine_mode.
457
1140c305 4582014-10-28 Andrew MacLeod <amacleod@redhat.com>
459
1f78217c 460 * c-common.c: Adjust include files.
461 * c-gimplify.c: Ditto.
462 * cilk.c: Ditto.
463 * c-pragma.c: Ditto.
464 * c-ubsan.c: Ditto.
1140c305 465
94ea8568 4662014-10-27 Andrew MacLeod <amacleod@redhat.com>
467
468 * c-gimplify.c: Adjust include files.
469
32ecf960 4702014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
471
472 PR c++/53061
473 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
474 c_common_initialize_diagnostics.
475 * c-common.h: Likewise.
476
85fecbe2 4772014-10-24 Marek Polacek <polacek@redhat.com>
478
479 PR c/56980
480 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
481 print "struct"/"union"/"enum" for typedefed names.
482
e7ec033a 4832014-10-23 Marek Polacek <polacek@redhat.com>
484
485 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
486 in unsigned type.
487
c2598081 4882014-10-22 Jakub Jelinek <jakub@redhat.com>
489 Yury Gribov <y.gribov@samsung.com>
490
491 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
492 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
493 instead of flag_sanitize_recover as bool flag.
494
acebb7e2 4952014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
496
497 * cilk.c: Revert previous change.
498
6115016c 4992014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
500
501 PR c/63307
502 * cilk.c: Include vec.h.
503 (struct cilk_decls): New structure.
504 (wrapper_parm_cb): Split this function to...
505 (fill_decls_vec): ...this...
506 (create_parm_list): ...and this.
507 (compare_decls): New function.
508 (for_local_cb): Remove.
509 (wrapper_local_cb): Ditto.
510 (build_wrapper_type): For now first traverse and fill vector of
511 declarations then sort it and then deal with sorted vector.
512 (cilk_outline): Ditto.
513 (declare_one_free_variable): Ditto.
514
e610d2b2 5152014-10-17 Marek Polacek <polacek@redhat.com>
516
517 * c-opts.c (c_common_post_options): Set warn_implicit_int.
518 * c.opt (Wimplicit-int): Initialize to -1.
519
a3020f2f 5202014-10-16 Andrew MacLeod <amacleod@redhat.com>
521
522 * c-pragma.c: Adjust include files.
523 * c-semantics.c: Likewise.
524
926ddd2c 5252014-10-16 DJ Delorie <dj@redhat.com>
526
527 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
528 multiples of bytes.
529
b0542e7c 5302014-10-14 Jason Merrill <jason@redhat.com>
531
532 PR c++/63455
533 * c-common.h (CPP_PREPARSED_EXPR): New.
534 (N_CP_TTYPES): Adjust.
535
b2601928 5362014-10-15 Marek Polacek <polacek@redhat.com>
537
538 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
539
9f75f026 5402014-10-14 DJ Delorie <dj@redhat.com>
541
542 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
543 types, not just __int128.
544 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
545 types, not just __int128.
546 (cpp_atomic_builtins): Round pointer sizes up.
547 (type_suffix): Use type precision, not specific types.
548 * c-common.c (c_common_reswords): Remove __int128 special case.
549 (c_common_type_for_size): Check for all __intN types, not just
550 __int128.
551 (c_common_type_for_mode): Likewise.
552 (c_common_signed_or_unsigned_type): Likewise.
553 (c_build_bitfield_integer_type): Likewise.
554 (c_common_nodes_and_builtins): Likewise.
555 (keyword_begins_type_specifier): Likewise.
556 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
557 __intN variants.
558
2ef51f0e 5592014-10-12 Trevor Saunders <tsaunders@mozilla.com>
560
561 * c-common.c: Use hash_table instead of hashtab.
562
5b8257e3 5632014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
564
1f78217c 565 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
5b8257e3 566 C++11 section.
567
5e84569c 5682014-10-03 Marc Glisse <marc.glisse@inria.fr>
569
570 PR c++/54427
571 PR c++/57198
572 PR c++/58845
573 * c-common.c (warn_logical_operator): Punt for vectors.
574
f6751ff2 5752014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
576
577 Implement SD-6: SG10 Feature Test Recommendations
578 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
579 macros and the __has_header macro.
580
c33e051d 5812014-09-30 Jason Merrill <jason@redhat.com>
582
f76a9aa8 583 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
584 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
585 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
586
717e52f9 587 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
588 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
589
c33e051d 590 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
591 * c-common.c (c_common_reswords): Remove __is_convertible_to.
592
5213d6c9 5932014-09-24 Marek Polacek <polacek@redhat.com>
594
595 PR c/61405
596 PR c/53874
597 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
598
6b722052 5992014-09-23 Andi Kleen <ak@linux.intel.com>
600
601 * c-common.c (handle_no_reorder_attribute): New function.
602 (c_common_attribute_table): Add no_reorder attribute.
603
0cb69d12 6042014-09-22 Joseph Myers <joseph@codesourcery.com>
605
606 * c-cppbuiltin.c (c_cpp_builtins): Define
607 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
608 modes.
609
168dfbf0 6102014-09-18 Joseph Myers <joseph@codesourcery.com>
611
612 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
613 for supported floating-point modes.
614
b83705f4 6152014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
616
617 * c.opt (Wpsabi): Use LangEnabledBy.
618 * c-opts.c (c_common_handle_option): Do not handle here.
619
d5957f0d 6202014-09-12 Joseph Myers <joseph@codesourcery.com>
621
622 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
623 macros for floating-point modes.
624
bae6edff 6252014-09-11 Marc Glisse <marc.glisse@inria.fr>
626
627 PR target/58757
628 * c-cppbuiltin.c (builtin_define_float_constants): Correct
629 __*_DENORM_MIN__ without denormals.
630
73a69d02 6312014-09-10 Jakub Jelinek <jakub@redhat.com>
632
633 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
634 ubsan_instrument_vla, ubsan_instrument_return): Adjust
635 ubsan_create_data callers.
636 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
637 index is constant or BIT_AND_EXPR with constant mask and is
638 small enough for the bound.
639 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
640 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
641
7ff8db31 6422014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
643
644 * c.opt: Add CppReason to various flags.
645 (Wdate-time): Re-sort.
646 * c-common.c: Include c-common.h earlier.
647 (struct reason_option_codes_t): Delete.
648 (c_option_controlling_cpp_error): Prefix global type and struct
649 with cpp_.
650
bcc1f37e 6512014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
652
653 * c.opt (Wnormalized): New.
654 (Wnormalized=): Use Enum and Reject Negative.
655 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
656
b660d3c6 6572014-09-08 Joseph Myers <joseph@codesourcery.com>
658
659 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
660 digits of floating-point modes if -fbuilding-libgcc.
661
325b8c3c 6622014-09-05 Joseph Myers <joseph@codesourcery.com>
663
664 * c-cppbuiltin.c (c_cpp_builtins): Also define
665 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
666 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
667 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
668 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
669 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
670 __LIBGCC_STACK_GROWS_DOWNWARD__,
671 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
672 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
673 __LIBGCC_DWARF_FRAME_REGISTERS__,
674 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
675 __LIBGCC_STACK_POINTER_REGNUM__ and
676 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
677 (builtin_define_with_value): Handle backslash-escaping in string
678 macro values.
679
1e074e77 6802014-09-05 Richard Biener <rguenther@suse.de>
681
682 PR middle-end/63148
683 * c-format.c (check_format_arg): Properly handle
684 effectively signed POINTER_PLUS_EXPR offset.
685
04afd878 6862014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
687
688 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
689 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
690 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
691 and Init.
692 * c-opts.c (c_common_handle_option): Do not handle here.
693 (sanitize_cpp_opts): Likewise.
694 * c-common.c (struct reason_option_codes_t): Handle
695 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
696
a3f448f0 6972014-09-03 Marek Polacek <polacek@redhat.com>
698
699 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
700
40750995 7012014-09-02 Jakub Jelinek <jakub@redhat.com>
702 Balaji V. Iyer <balaji.v.iyer@intel.com>
703 Igor Zamyatin <igor.zamyatin@intel.com>
704
705 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
706 * c-common.c (c_common_reswords): Added _Cilk_for.
707 * c-common.h (enum rid): Added RID_CILK_FOR.
708 (cilk_for_number_of_iterations): Add declaration.
709 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
710 CILK_FOR.
711 * c-pragma.c (init_pragma): Register "grainsize" pragma.
712 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
713
f0fbe519 7142014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
715
716 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
717 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
718 Wundef): Use CPP, Var and Init.
719 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
720
a7d2e480 7212014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
722
723 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
724 * c-opts.c (c_common_handle_option): Do not handle here.
725
c35e53f1 7262014-08-25 Jason Merrill <jason@redhat.com>
727
728 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
729 -std=c++14 and -std=gnu++14, rather than the reverse.
730 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
731 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
732 * c-common.h (cxx_dialect): Remove cxx1y.
733
4e454776 7342014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
735
736 * c-common.h (enum cxx_dialect): Add cxx14.
737 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
738 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
739 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
740
af1a80f2 7412014-08-22 Jason Merrill <jason@redhat.com>
742
743 * c.opt (std=gnu++17): Fix alias.
744
dc6229e8 7452014-08-22 Marek Polacek <polacek@redhat.com>
746
747 PR c++/62199
748 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
749 check for vector types. Drop LHS argument.
750 * c-common.h (warn_logical_not_parentheses): Adjust.
751
ba7f7c88 7522014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
753
754 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
755 (Wmultichar): Likewise.
756 (Wdate-time): Use C-family languages instead of Common. Use CPP
757 and Var.
758 * c-opts.c (c_common_handle_option): Do not handle the above
759 options here.
760 (sanitize_cpp_opts): Likewise.
761
399d4f80 7622014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
763
764 PR fortran/44054
765 * c-opts.c: Include tree-diagnostics.h.
766 (c_diagnostic_finalizer): New.
767 (c_common_initialize_diagnostics): Use it.
768
1babed5f 7692014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
770
771 PR preprocessor/51303
772 * c-common.c (struct reason_option_codes_t option_codes):
773 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
774
3636964b 7752014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
776
777 PR c/60975
778 PR c/53063
779 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
780 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
781 (c_common_post_options): Call init_global_opts_from_cpp.
782 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
783
78bf4156 7842014-08-19 Marek Polacek <polacek@redhat.com>
785
786 PR c++/62153
787 * c-common.c (maybe_warn_bool_compare): New function.
788 * c-common.h (maybe_warn_bool_compare): Declare.
789 * c.opt (Wbool-compare): New option.
790
508ea33a 7912014-08-19 Marek Polacek <polacek@redhat.com>
792
793 * c.opt (Wc99-c11-compat): New option.
794
806fe15e 7952014-08-19 Marek Polacek <polacek@redhat.com>
796
797 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
798 to warn_c90_c99_compat.
799 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
800 to -1.
801
6c867de1 8022014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
803 Steven Bosscher <steven@gcc.gnu.org>
804
805 PR c/52952
806 * c-format.c: Add extra_arg_loc and format_string_loc to struct
807 format_check_results.
808 (check_function_format): Use true and add comment for boolean
809 argument.
810 (finish_dollar_format_checking): Use explicit location when warning.
811 (check_format_info): Likewise.
812 (check_format_arg): Set extra_arg_loc and format_string_loc.
813 (check_format_info_main): Use explicit location when warning.
814 (check_format_types): Pass explicit location.
815 (format_type_warning): Likewise.
816
dc8078a3 8172014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
818
819 PR fortran/44054
820 * c-format.c: Handle Fortran flags.
821
d271ec7e 8222014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
823
824 PR other/61962
825 * array-notation-common.c (find_rank): Added handling for other
826 types of references.
827
890c2e2f 8282014-08-10 Marek Polacek <polacek@redhat.com>
829
830 PR c/51849
831 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
832 * c.opt (Wc90-c99-compat): Add option.
833
7149db5f 8342014-08-07 Trevor Saunders <tsaunders@mozilla.com>
835
836 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
837
2d2f6a15 8382014-08-03 Marek Polacek <polacek@redhat.com>
839
840 * c-common.c (check_case_value): Add location_t parameter. Use it.
841 (c_add_case_label): Pass loc to check_case_value.
842
06ecf488 8432014-08-02 Trevor Saunders <tsaunders@mozilla.com>
844
845 * cilk.c: Use hash_map instead of pointer_map.
846
431205b7 8472014-08-02 Trevor Saunders <tsaunders@mozilla.com>
848
849 * c-gimplify.c: Use hash_set instead of pointer_set.
850
3394c80c 8512014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
852
853 PR middle-end/61455
854 * array-notation-common.c (extract_array_notation_exprs): Handling
855 of DECL_EXPR added.
856
392dee1e 8572014-08-01 Jakub Jelinek <jakub@redhat.com>
858
859 * c-common.h (min_align_of_type): Removed prototype.
860 * c-common.c (min_align_of_type): Removed.
861 * c-ubsan.h (ubsan_maybe_instrument_reference,
862 ubsan_maybe_instrument_member_call): New prototypes.
863 * c-ubsan.c: Include stor-layout.h and builtins.h.
864 (ubsan_maybe_instrument_reference_or_call,
865 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
866 functions.
867
f22a2cb7 8682014-07-31 Marc Glisse <marc.glisse@inria.fr>
869
870 PR c++/60517
871 * c.opt (-Wreturn-local-addr): Move to common.opt.
872
87b0198f 8732014-07-30 Jason Merrill <jason@redhat.com>
874
875 PR c++/61659
876 PR c++/61687
877 Revert:
878 * c.opt (-fuse-all-virtuals): New.
879
74691f46 8802014-07-30 Tom Tromey <tromey@redhat.com>
881
882 PR c/59855
883 * c.opt (Wdesignated-init): New option.
884 * c-common.c (c_common_attribute_table): Add "designated_init".
885 (handle_designated_init): New function.
886
9140d56f 8872014-07-24 Marek Polacek <polacek@redhat.com>
888
889 PR c/57653
890 * c-opts.c (c_finish_options): If -imacros is in effect, return.
891
a09c5cc2 8922014-07-16 Dodji Seketeli <dodji@redhat.com>
893
894 PR preprocessor/60723 - missing system-ness marks for macro tokens
895 * c-ppoutput.c (struct print::prev_was_system_token): New data
896 member.
897 (init_pp_output): Initialize it.
898 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
899 (do_line_change): Return a flag saying if a line marker was
900 emitted or not.
901 (scan_translation_unit): Detect if the system-ness of the token we
902 are about to emit is different from the one of the previously
903 emitted token. If so, emit a line marker. Avoid emitting useless
904 adjacent line markers. Avoid emitting line markers for tokens
905 originating from the expansion of built-in macros.
906 (scan_translation_unit_directives_only): Adjust.
907
2b25b62f 9082014-07-15 Marek Polacek <polacek@redhat.com>
909
910 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
911 TYPE_MAX_VALUE is NULL.
912
305d96bc 9132014-07-14 Jakub Jelinek <jakub@redhat.com>
914
915 PR middle-end/61294
916 * c.opt (Wmemset-transposed-args): New warning.
917
8ea4660d 9182014-07-10 Jason Merrill <jason@redhat.com>
919
920 PR c++/61659
921 PR c++/61687
922 * c.opt (-fuse-all-virtuals): New.
923
cd480f3d 9242014-07-09 Richard Biener <rguenther@suse.de>
925
926 PR c-family/61741
927 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
928 using unsigned arithmetic if overflow does not wrap instead of
929 if overflow is undefined.
930
87d59e72 9312014-07-06 Marek Polacek <polacek@redhat.com>
932
933 PR c/6940
934 * c.opt (Wsizeof-array-argument): New option.
935
d69521d8 9362014-07-03 Jakub Jelinek <jakub@redhat.com>
937
938 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
939 comments->count <= 1, as comments->entries might be NULL.
940
1207866e 9412014-07-01 Marek Polacek <polacek@redhat.com>
942
943 * c.opt (Wint-conversion): New option.
944
7a6bbb76 9452014-07-01 Marek Polacek <polacek@redhat.com>
946
947 PR c/58286
948 * c.opt (Wincompatible-pointer-types): New option.
949
9d4eeb52 9502014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
951
952 PR c++/51400
953 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
954 Do not discard TYPE_QUALS of type.
955
4b53bc0f 9562014-06-26 Jason Merrill <jason@redhat.com>
957
958 * c-common.h (enum cxx_dialect): Add cxx1z.
959 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
960 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
961
a8a8d4ea 9622014-06-26 Teresa Johnson <tejohnson@google.com>
963
964 * c-common.h (get_dump_info): Declare.
965 * c-gimplify.c (c_genericize): Use saved dump files.
966 * c-opts.c (c_common_parse_file): Begin and end dumps
967 once around parsing invocation.
968 (get_dump_info): New function.
969
1f6be080 9702014-06-23 Marek Polacek <polacek@redhat.com>
971 Andrew MacLeod <amacleod@redhat.com>
972
973 PR c/61553
974 * c-common.c (get_atomic_generic_size): Don't segfault if the
975 type doesn't have a size.
976
5ef6b660 9772014-06-20 Marek Polacek <polacek@redhat.com>
978
979 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
980 (ubsan_walk_array_refs_r): New function.
981 (c_genericize): Instrument array bounds.
982 * c-ubsan.c: Include "internal-fn.h".
983 (ubsan_instrument_division): Mark instrumented arrays as having
984 side effects. Adjust ubsan_type_descriptor call.
985 (ubsan_instrument_shift): Likewise.
986 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
987 (ubsan_instrument_bounds): New function.
988 (ubsan_array_ref_instrumented_p): New function.
989 (ubsan_maybe_instrument_array_ref): New function.
990 * c-ubsan.h (ubsan_instrument_bounds): Declare.
991 (ubsan_array_ref_instrumented_p): Declare.
992 (ubsan_maybe_instrument_array_ref): Declare.
993
9942014-06-20 Hale Wang <hale.wang@arm.com>
3ccd1e6e 995
996 PR lto/61123
997 * c.opt (fshort-enums): Add to LTO.
998 * c.opt (fshort-wchar): Likewise.
999
78438f31 10002014-06-16 Marek Polacek <polacek@redhat.com>
1001
1002 PR c/60439
1003 * c.opt (Wswitch-bool): Add Var.
1004
5fddcf34 10052014-06-12 Jakub Jelinek <jakub@redhat.com>
1006
1007 PR middle-end/61486
1008 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1009 #pragma omp target teams or
1010 #pragma omp {,target }teams distribute simd.
1011
74b777e5 10122014-06-12 Jason Merrill <jason@redhat.com>
1013
1014 * c.opt (Wabi=, fabi-compat-version): New.
1015 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1016 (c_common_post_options): Handle flag_abi_compat_version default.
1017 Disallow -fabi-compat-version=1.
1018 * c-common.h (abi_version_crosses): New.
1019
738a6bda 10202014-06-11 Jan Hubicka <hubicka@ucw.cz>
1021
1f78217c 1022 * c-common.c (handle_section_attribute): Update handling for
738a6bda 1023 section names that are no longer trees.
1024
cf5f881f 10252014-06-10 Jakub Jelinek <jakub@redhat.com>
1026
1027 PR fortran/60928
1028 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1029 (omp_pragmas): ... back here.
1030
32dc1512 10312014-06-05 Marek Polacek <polacek@redhat.com>
1032
1033 PR c/49706
1034 * c-common.c (warn_logical_not_parentheses): New function.
1035 * c-common.h (warn_logical_not_parentheses): Declare.
1036 * c.opt (Wlogical-not-parentheses): New option.
1037
f61a9bc2 10382014-06-04 Marek Polacek <polacek@redhat.com>
1039
1040 PR c/30020
1041 * c-common.c (check_case_bounds): Add location parameter.
1042 Use it.
1043 (c_add_case_label): Pass loc to check_case_bounds.
1044
c69ec07d 10452014-06-03 Marek Polacek <polacek@redhat.com>
1046
1047 PR c/60439
1048 * c.opt (Wswitch-bool): New option.
1049
3c77ca67 10502014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1051
68a2c870 1052 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1053 Remove prototypes.
1054 (record_types_used_by_current_var_decl): Move prototype to where
1055 it belongs.
1056
3c77ca67 1057 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1058 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1059 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1060
3ab4693e 10612014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1062
1063 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1064 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1065 void_zero_node.
1066 * c-pretty-print.c (pp_c_void_constant): New function.
1067 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1068 (c_pretty_printer::expression): Handle VOID_CST.
1069 * cilk.c (extract_free_variables): Likewise.
1070 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1071 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1072
25a27413 10732014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1074
1075 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1076 * c-pragma.c (push_alignment): Adjust.
1077 (handle_pragma_push_options): Likewise.
1078
3e5a8b00 10792014-05-09 Marek Polacek <polacek@redhat.com>
1080
1081 PR c/50459
1082 * c-common.c (check_user_alignment): Return -1 if alignment is error
1083 node.
1084 (handle_aligned_attribute): Don't call default_conversion on
1085 FUNCTION_DECLs.
1086 (handle_vector_size_attribute): Likewise.
1087 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1088 (handle_sentinel_attribute): Call default_conversion and allow even
1089 integral types as an argument.
1090
c2c4ae8d 10912014-05-08 Marek Polacek <polacek@redhat.com>
1092
1093 PR c/61053
1094 * c-common.c (min_align_of_type): New function factored out from...
1095 (c_sizeof_or_alignof_type): ...here.
1096 * c-common.h (min_align_of_type): Declare.
1097
2026249a 10982014-05-08 Marek Polacek <polacek@redhat.com>
1099
1100 PR c/61077
1101 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1102 parameter type of main.
1103
33c8dcfe 11042014-05-07 DJ Delorie <dj@redhat.com>
1105
1106 * c-cppbuiltin.c (print_bits_of_hex): New.
1107 (builtin_define_type_minmax): Print values using hex so as not to
1108 require a pre-computed list of string values.
1109
960d5a55 11102014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1111 Mike Stump <mikestump@comcast.net>
1112 Richard Sandiford <rdsandiford@googlemail.com>
1113
1114 * c-ada-spec.c: Include wide-int.h.
1115 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1116 (dump_generic_ada_node): Use wide-int interfaces.
1117 * c-common.c: Include wide-int-print.h.
1118 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1119 (pointer_int_sum): Use wide-int interfaces.
1120 (c_common_nodes_and_builtins): Use make_int_cst.
1121 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1122 (handle_alloc_size_attribute): Use wide-int interfaces.
1123 (get_nonnull_operand): Likewise.
1124 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1125 * c-lex.c: Include wide-int.h.
1126 (narrowest_unsigned_type): Take a widest_int rather than two
1127 HOST_WIDE_INTs.
1128 (narrowest_signed_type): Likewise.
1129 (interpret_integer): Update accordingly. Use wide-int interfaces.
1130 (lex_charconst): Use wide-int interfaces.
1131 * c-pretty-print.c: Include wide-int.h.
1132 (pp_c_integer_constant): Use wide-int interfaces.
1133 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1134 INT_CST_LT_UNSIGNED.
1135
bbb88b31 11362014-05-06 Richard Biener <rguenther@suse.de>
1137
1138 * c-opts.c (c_common_post_options): For -freestanding,
1139 -fno-hosted and -fno-builtin disable pattern recognition
1140 if not enabled explicitely.
1141
022d4718 11422014-05-02 Marek Polacek <polacek@redhat.com>
1143
1144 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1145
e4ab2ef3 11462014-05-01 Marek Polacek <polacek@redhat.com>
1147
1148 PR c/43245
1149 * c.opt (Wdiscarded-qualifiers): Add.
1150
52cc0072 11512014-04-30 Marek Polacek <polacek@redhat.com>
1152
1153 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1154 INT_MIN / -1 sanitization only for integer types.
1155
4a026b48 11562014-04-25 Marek Polacek <polacek@redhat.com>
1157
1158 PR c/18079
1159 * c-common.c (handle_noinline_attribute): Warn if the attribute
1160 conflicts with always_inline attribute.
1161 (handle_always_inline_attribute): Warn if the attribute conflicts
1162 with noinline attribute.
1163
90e645fa 11642014-04-25 Marek Polacek <polacek@redhat.com>
1165
1166 PR c/60156
1167 * c-common.c (check_main_parameter_types): Warn about variadic main.
1168
db103ea4 11692014-04-24 Mike Stump <mikestump@comcast.net>
1170
1171 * c.opt (Wshadow-ivar): Default to on.
1172
06511efd 11732014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1174
1175 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1176
cdf34fca 11772014-04-23 Marek Polacek <polacek@redhat.com>
1178
1179 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1180
7311d7c1 11812014-04-22 Jakub Jelinek <jakub@redhat.com>
1182
1183 PR sanitizer/60275
1184 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1185 if flag_sanitize_undefined_trap_on_error.
1186 (ubsan_instrument_division, ubsan_instrument_shift,
1187 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1188 if !flag_sanitize_recover.
1189
c1917557 11902014-04-22 Marc Glisse <marc.glisse@inria.fr>
1191
1192 PR libstdc++/43622
1193 * c-common.c (registered_builtin_types): Make non-static.
1194 * c-common.h (registered_builtin_types): Declare.
1195
b2ca6510 11962014-04-14 Richard Biener <rguenther@suse.de>
1197 Marc Glisse <marc.glisse@inria.fr>
1198
1199 PR c/60819
1200 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1201 apply may-alias the scalar pointer type when applicable.
1202
855372a3 12032014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1204
1205 PR middle-end/60467
1206 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1207 as possible argument for Cilk_spawn.
1208
4012a986 12092014-04-11 Tobias Burnus <burnus@net-b.de>
1210
1211 PR c/60194
1212 * c.opt (Wformat-signedness): Add
1213 * c-format.c(check_format_types): Use it.
1214
0d284870 12152014-04-11 Jason Merrill <jason@redhat.com>
1216
1217 PR c++/57926
1218 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1219 default_conversion for an array argument.
1220
a34c1231 12212014-04-08 Marek Polacek <polacek@redhat.com>
1222
1223 PR sanitizer/60745
1224 * c-ubsan.c: Include asan.h.
1225 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1226
a35a8e18 12272014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1228
1229 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1230
b23e42b6 12312014-04-02 Marek Polacek <polacek@redhat.com>
1232
1233 * c-common.h (c_expand_expr): Remove declaration.
1234
5a672e62 12352014-03-28 Jakub Jelinek <jakub@redhat.com>
1236
1237 PR c++/60689
1238 * c-common.c (add_atomic_size_parameter): When creating new
1239 params vector, push the size argument first.
1240
d4d068c0 12412014-03-26 Jakub Jelinek <jakub@redhat.com>
1242
1243 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1244 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1245 ubsan_create_data callers.
1246
446bdf5f 12472014-03-22 Jakub Jelinek <jakub@redhat.com>
1248
1249 PR debug/60603
1250 * c-opts.c (c_finish_options): Restore cb_file_change call to
1251 <built-in>.
1252
8895f0a3 12532014-03-13 Jakub Jelinek <jakub@redhat.com>
1254
1255 PR middle-end/36282
1256 * c-pragma.c (apply_pragma_weak): Only look at
1257 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1258 DECL_ASSEMBLER_NAME_SET_P (decl).
1259 (maybe_apply_pending_pragma_weaks): Exit early if
1260 vec_safe_is_empty (pending_weaks) rather than only when
1261 !pending_weaks.
1262 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1263 set assembler name back to NULL afterwards.
1264
7a5da2cd 12652014-03-11 Jason Merrill <jason@redhat.com>
1266
1267 * c.opt: Add -std=gnu++14.
1268
95093889 12692014-03-11 Ian Bolton <ian.bolton@arm.com>
1270
1271 * c-opts.c (c_common_post_options): Don't override
1272 -ffp-contract=fast if unsafe-math-optimizations is on.
1273
c9a24b37 12742014-03-08 Paulo Matos <paulo@matos-sorge.com>
1275
1276 * c.opt: Enable LTO FE for fshort-double.
1277
3f6dba6e 12782014-03-07 Jason Merrill <jason@redhat.com>
1279
1280 * c.opt: Add -std=c++14.
1281
3bfdc94f 12822014-03-06 Marek Polacek <polacek@redhat.com>
1283
1284 PR c/60197
1285 * cilk.c (contains_cilk_spawn_stmt): New function.
1286 (contains_cilk_spawn_stmt_walker): Likewise.
1287 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1288 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1289
8b3a6a4c 12902014-03-03 Jakub Jelinek <jakub@redhat.com>
1291
1292 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1293 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1294 even when flag_preprocess_only.
1295
734ec290 12962014-02-26 Jason Merrill <jason@redhat.com>
1297
1298 PR c++/59231
1299 PR c++/11586
1300 * c-common.c (shorten_compare): Don't check
1301 c_inhibit_evaluation_warnings.
1302
81aec8b8 13032014-02-19 Jakub Jelinek <jakub@redhat.com>
1304
d1081017 1305 PR c/37743
1306 * c-common.c (c_common_nodes_and_builtins): When initializing
1307 c_uint{16,32,64}_type_node, also set corresponding
1308 uint{16,32,64}_type_node to the same value.
1309
81aec8b8 1310 PR c++/60267
1311 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1312 for PRAGMA_IVDEP if flag_preprocess_only.
1313
312243bb 13142014-02-12 Jakub Jelinek <jakub@redhat.com>
1315
1316 PR c/60101
1317 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1318 if false, add ADD itself, rather than vice versa.
1319 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1320 copy. For SAVE_EXPR, only call merge_tlist once.
1321
237e78b1 13222014-02-08 Jakub Jelinek <jakub@redhat.com>
1323
1324 PR middle-end/60092
1325 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1326 and tree_to_uhwi.
1327 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1328 functions.
1329 (c_common_attribute_table): Add alloc_align and assume_aligned
1330 attributes.
1331
76fdceeb 13322014-02-06 Marek Polacek <polacek@redhat.com>
1333
1334 PR c/60087
1335 * c-common.c (warn_for_sign_compare): Call warning_at with location
1336 instead of warning.
1337
4a4dea42 13382014-02-05 Marek Polacek <polacek@redhat.com>
1339
1340 PR c/53123
1341 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1342 statement.
1343
ec704957 13442014-02-04 Marek Polacek <polacek@redhat.com>
1345
1346 PR c/60036
1347 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1348 SAVE_EXPR.
1349
caf62483 13502014-02-03 Marc Glisse <marc.glisse@inria.fr>
1351
1352 PR c++/53017
1353 PR c++/59211
1354 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1355 handle_vector_size_attribute, handle_nonnull_attribute): Call
1356 default_conversion on the attribute argument.
1357 (handle_nonnull_attribute): Increment the argument number.
1358
ec761d5a 13592014-01-31 Marek Polacek <polacek@redhat.com>
1360
1361 PR c/59963
1362 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1363 build_function_call_vec.
1364 (resolve_overloaded_builtin): Likewise.
1365 * c-common.h (build_function_call_vec): Adjust declaration.
1366
22a75734 13672014-01-30 Marek Polacek <polacek@redhat.com>
1368
1369 PR c/59940
1370 * c-common.h (unsafe_conversion_p): Adjust declaration.
1371 (warnings_for_convert_and_check): Likewise.
1372 (convert_and_check): Likewise.
1373 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1374 expansion_point_location_if_in_system_header on it.
1375 (warnings_for_convert_and_check): Add location parameter. Call
1376 expansion_point_location_if_in_system_header on it. Use it.
1377 (convert_and_check): Add location parameter. Use it.
1378 (conversion_warning): Likewise.
1379 (c_add_case_label): Adjust convert_and_check calls.
1380 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1381
a89e6c15 13822014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1383
1384 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1385 flag_cilkplus.
1386 * c-pragma.c (init_pragma): Likewise.
1387 * c.opt: Likewise.
1388
2623625f 13892014-01-23 Marek Polacek <polacek@redhat.com>
1390
1391 PR c/59846
1392 * c-common.c (shorten_compare): Add location_t parameter.
1393 * c-common.h (shorten_binary_op): Adjust declaration.
1394
46da3601 13952014-01-23 Marek Polacek <polacek@redhat.com>
1396
1397 PR c/58346
1398 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1399 * c-common.h: Declare it.
1400
c9743c6a 14012014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1402
1403 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1404 * c-ada-spec.c (dump_ads): Likewise.
1405 (cpp_check): Likewise.
1406 (dump_ada_specs): Likewise.
1407
14082014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
36e33c6a 1409
1410 PR c++/49718
1411 * c-common.c (handle_no_instrument_function_attribute): Allow
1412 no_instrument_function attribute in class member
1413 definition/declaration.
1414
1248c663 14152014-01-15 Jakub Jelinek <jakub@redhat.com>
1416
1417 PR c/58943
1418 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1419 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1420 being COMPOUND_EXPR.
1421 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1422 operand a SAVE_EXPR and second MODIFY_EXPR.
1423
6e5c480b 14242014-01-09 Jakub Jelinek <jakub@redhat.com>
1425
1426 PR target/58115
1427 * c-pch.c (c_common_write_pch): Call
1428 prepare_target_option_nodes_for_pch.
1429
3aea1f79 14302014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1431
1432 Update copyright years
1433
e4f22041 14342014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1435
1436 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1437 the copyright notice.
1438
7fb0fe24 14392013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1440
1441 * c-ada-spec.c (print_constructor): New function.
1442 (print_destructor): Retrieve the origin of the destructor.
1443 (print_ada_declaration): Revamp handling of constructors/destructors.
1444
468088ac 14452013-12-23 Stuart Hastings <stuart@apple.com>
1446 Bill Maddox <maddox@google.com>
1447 Jason Merrill <jason@redhat.com>
1448
1449 * c.opt: Add -fdeclone-ctor-dtor.
1450 * c-opts.c (c_common_post_options): Default to on iff -Os.
1451
74acc703 14522013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1453
1454 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1455 attribute.
1456 * c-pragma.h (enum pragma_cilk_clause): Remove.
1457 (enum pragma_omp_clause): Added the following fields:
1458 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1459 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1460 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1461 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1462 PRAGMA_CILK_CLAUSE_UNIFORM.
1463
1464
433e804e 14652013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1466
1467 * cilk.c (cilk_outline): Made this function non-static.
1468 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1469 (create_cilk_wrapper): Added a new parameter: a function pointer.
1470 (c_install_body_w_frame_cleanup): Remove
1471 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1472 * c-common.h (cilk_outline): New prototype.
1473 (gimplify_cilk_spawn): Removed two parameters.
1474 (cilk_install_body_with_frame_cleanup): New prototype.
1475 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1476 CILK_SPAWN_STMT case.
1477
5bcc7e60 14782013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1479
e66325ea 1480 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1481
5bcc7e60 1482 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1483 (int_array_type_node): Remove.
1484 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1485
0b26ec77 14862013-12-05 Marek Polacek <polacek@redhat.com>
1487
1488 PR c/52023
1489 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1490 [ADJUST_FIELD_ALIGN].
1491
a179a7dc 14922013-12-04 Joseph Myers <joseph@codesourcery.com>
1493
1494 PR c/52023
1495 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1496 and check field alignment if set.
1497 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1498 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1499
137559b2 15002013-12-04 Jakub Jelinek <jakub@redhat.com>
1501 Marek Polacek <polacek@redhat.com>
1502
1503 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1504 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1505
648fd348 15062013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1507
1508 PR c/59309
1509 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1510 arguments.
1511
253e1cae 15122013-11-29 Jakub Jelinek <jakub@redhat.com>
1513
1514 PR c/59280
1515 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1516 goto invalid. If it is error_mark_node, don't issue further
1517 diagnostics.
1518
3e398f5b 15192013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1520
1521 * c.opt (Wopenmp-simd): New.
1522
020bc656 15232013-11-22 Jakub Jelinek <jakub@redhat.com>
1524
1525 * c-ubsan.h (ubsan_instrument_return): New prototype.
1526 * c-ubsan.c (ubsan_instrument_return): New function.
1527
bc61cadb 15282013-11-22 Andrew MacLeod <amacleod@redhat.com>
1529
1530 * c-common.c: Add required include files from gimple.h.
1531 * c-gimplify.c: Likewise
1532 * cilk.c: Likewise
1533
3df42822 15342013-11-22 David Malcolm <dmalcolm@redhat.com>
1535
1536 * c-common.c (unsafe_conversion_p): Remove use of
1537 EXPR_LOC_OR_HERE macro.
1538 (conversion_warning): Likewise.
1539 (warnings_for_convert_and_check): Likewise.
1540 (warn_for_collisions_1): Likewise.
1541 (shorten_compare): Likewise, and remove use of in_system_header
1542 macro, using the location from the former.
1543 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1544 (cb_def_pragma): Remove use of in_system_header macro.
1545 (lex_string): Likewise.
1546 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1547
8c53c46c 15482013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1549 Mike Stump <mikestump@comcast.net>
1550 Richard Sandiford <rdsandiford@googlemail.com>
1551
1552 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1553 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1554 tree_fits_shwi_p or tree_fits_uhwi_p.
1555 (dump_generic_ada_node): Likewise.
1556 * c-format.c (check_format_arg): Likewise.
1557 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1558
5200ef07 15592013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1560
1561 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1562
ca9d7d74 15632013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1564
1565 PR c/53001
1566 * c-common.c (unsafe_conversion_p): Make this function
1567 return an enumeration with more detail.
1568 (conversion_warning): Use the new return type of
1569 unsafe_conversion_p to separately warn either about conversions
1570 that lower floating point number precision or about the other
1571 kinds of conversions.
1572 * c-common.h (enum conversion_safety): New enumeration.
1573 (unsafe_conversion_p): switching return type to
1574 conversion_safety enumeration.
1575 * c.opt: Adding new warning -Wfloat-conversion and
1576 enabling it with -Wconversion.
1577
0391a567 15782013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1579
1580 * c-opts.c: Include plugin.h.
1581 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1582
19b928d9 15832013-11-19 Marek Polacek <polacek@redhat.com>
1584
1585 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1586 call.
1587 (ubsan_instrument_shift): Likewise.
1588 (ubsan_instrument_vla): Likewise.
1589
aa59f000 15902013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1591
1592 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1593 cast to unsigned type.
1594
08f817b3 15952013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1596
1597 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1598 tree_low_cst.
1599 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1600 rather than tree_low_cst.
1601
6a0712d4 16022013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1603
1604 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1605 tree_to_uhwi throughout.
1606
fcb97e84 16072013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1608
1609 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1610 tree_low_cst (..., 0) with tree_to_shwi throughout.
1611
cd4547bf 16122013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1613
1614 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1615 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1616
35ec552a 16172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1618
1619 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1620 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1621
f2697631 16222013-11-15 Aldy Hernandez <aldyh@redhat.com>
1623
1624 * c-cilkplus.c: New file.
1625 * c-common.c (readonly_error): Add location argument.
1626 * c-common.h (readonly_error): Same.
1627 (c_finish_cilk_clauses): Protoize.
1628 (c_check_cilk_loop): Same.
1629 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1630 Do not fail on error_mark_node.
1631 Abstract increment canonicalization to here...
1632 (c_omp_for_incr_canonicalize_ptr): New.
1633 c-pragma.c (init_pragma): Register "simd" pragma.
1634 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1635 (enum pragma_cilk_clause): New.
1636
0aa8c34e 16372013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1638
1639 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1640 wchar_type and host_integerp checks.
1641
e795d6e1 16422013-11-14 Andrew MacLeod <amacleod@redhat.com>
1643
1644 * c-common.c: Likewise.
1645 * c-gimplify.c: Likewise.
1646 * cilk.c: Likewise.
1647
9ed99284 16482013-11-14 Diego Novillo <dnovillo@google.com>
1649
1650 * c-common.c: Include fold-const.h.
1651 Include stor-layout.h.
1652 Include calls.h.
1653 Include stringpool.h.
1654 Include attribs.h.
1655 Include varasm.h.
1656 Include trans-mem.h.
1657 * c-cppbuiltin.c: Include stor-layout.h.
1658 Include stringpool.h.
1659 * c-format.c: Include stringpool.h.
1660 * c-lex.c: Include stringpool.h.
1661 Include stor-layout.h.
1662 * c-pragma.c: Include stringpool.h.
1663 Include attribs.h.
1664 Include varasm.h.
1665 Include gcc-symtab.h.
1666 * c-pretty-print.c: Include stor-layout.h.
1667 Include attribs.h.
1668 * cilk.c: Include stringpool.h.
1669 Include calls.h.
1670
4fba5eb9 16712013-11-13 Joseph Myers <joseph@codesourcery.com>
1672
1673 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1674 * c-common.c (c_common_reswords): Add __auto_type.
1675 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1676
a8783bee 16772013-11-12 Andrew MacLeod <amacleod@redhat.com>
1678
e795d6e1 1679 * c-common.c: Include gimplify.h.
1680 * c-gimplify.c: Likewise.
1681 * cilk.c: Likewise.
1682 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1683 * c-ubsan.c: Don't include gimple.h.
a8783bee 1684
d184e0c0 16852013-11-12 Joseph Myers <joseph@codesourcery.com>
1686
1687 * c-common.c (c_common_reswords): Add _Thread_local.
1688
a056826c 16892013-11-09 Joseph Myers <joseph@codesourcery.com>
1690
1691 * c-common.c (atomic_size_supported_p): New function.
1692 (resolve_overloaded_atomic_exchange)
1693 (resolve_overloaded_atomic_compare_exchange)
1694 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1695 Use it instead of comparing size with a local list of sizes.
1696
b560fabd 16972013-11-07 Andrew MacLeod <amacleod@redhat.com>
1698 Joseph Myers <joseph@codesourcery.com>
1699
1700 * c-common.h (enum rid): Add RID_ATOMIC.
1701 * c-common.c (c_common_reswords): Add _Atomic.
1702 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1703 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1704 * c-format.c (check_format_types): Check for extra _Atomic
1705 qualifiers in format argument.
1706 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1707 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1708
5b1a0622 17092013-11-06 Tobias Burnus <burnus@net-b.de>
1710
1711 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1712
4f8f4cb8 17132013-11-06 Joseph Myers <joseph@codesourcery.com>
1714
1715 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1716 standards modes.
1717 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1718 to mean lack of IEEE 754 support.
1719
9148bda3 17202013-11-05 Tobias Burnus <burnus@net-b.de>
1721
1722 * c.opt (-Wdate-time): New option
1723 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1724
08c5f4d5 17252013-11-05 Joseph Myers <joseph@codesourcery.com>
1726
1727 * c-cppbuiltin.c (cpp_iec_559_value): Test
1728 flag_excess_precision_cmdline not flag_excess_precision.
1729
c630ef93 17302013-11-05 Tobias Burnus <burnus@net-b.de>
1731
1732 * c.opt (fopenmp-simd): New option.
1733 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1734 (omp_pragmas): ... this new struct.
1735 (c_pp_lookup_pragma): Also walk omp_pragmas.
1736 (init_pragma): Init pragmas for -fopenmp-simd.
1737
7354a89b 17382013-11-04 Marek Polacek <polacek@redhat.com>
1739
1740 PR c++/58979
1741 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1742
4c866b9b 17432013-11-04 Joseph Myers <joseph@codesourcery.com>
1744
1745 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1746 New functions.
1747 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1748
e2a6a333 17492013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1750
1751 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1752 (dump_ada_specs): Adjust prototype of second callback.
1753 * c-ada-spec.c (cpp_check): New global variable.
1754 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1755 (print_generic_ada_decl): Likewise.
1756 (has_static_fields): Change return type to bool and add guard.
1757 (has_nontrivial_methods): New predicate.
1758 (is_tagged_type): Change return type to bool.
1759 (separate_class_package): Call has_nontrivial_methods.
1760 (pp_ada_tree_identifier): Minor tweaks.
1761 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1762 (dump_ada_array_domains): Likewise.
1763 (dump_ada_array_type): Likewise.
1764 (dump_template_types): Remove cpp_check parameter and do not pass it to
1765 dump_generic_ada_node.
1766 (dump_ada_template): Likewise.
1767 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1768 recursively.
1769 (print_ada_methods): Change return type to integer. Remove cpp_check
1770 parameter and do not pass it down.
1771 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1772 dump_generic_ada_node.
1773 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1774 accessing methods.
1775 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1776 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1777 value of print_ada_methods.
1778 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1779 Set cpp_check to it before invoking dump_ada_nodes.
1780 (dump_ada_specs): Likewise.
1781
2c4c3477 17822013-11-03 Marek Polacek <polacek@redhat.com>
1783
1784 * c-ubsan.c: Don't include hash-table.h.
1785 (ubsan_instrument_vla): New function.
1786 * c-ubsan.h: Declare it.
1787
452659af 17882013-10-31 David Malcolm <dmalcolm@redhat.com>
1789
1790 Automated part of renaming of symtab_node_base to symtab_node.
1791
1792 Patch autogenerated by rename_symtab.py from
1793 https://github.com/davidmalcolm/gcc-refactoring-scripts
1794 revision 58bb219cc090b2f4516a9297d868c245495ee622
1795
1796 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1797 symtab_node_base to symtab_node.
1798
4d6f7dd4 17992013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1800
1801 Implement C++14 digit separators.
1802 * c-lex.c (interpret_float): Remove digit separators from scratch string
1803 before building real literal.
1804
06cfe805 18052013-10-30 Jakub Jelinek <jakub@redhat.com>
1806
1807 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1808
d037099f 18092013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1810
1811 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1812 fields.
1813 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1814 enabled.
1815 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1816 (insert_cilk_frame): New prototype.
1817 (cilk_init_builtins): Likewise.
1818 (gimplify_cilk_spawn): Likewise.
1819 (c_cilk_install_body_w_frame_cleanup): Likewise.
1820 (cilk_detect_spawn_and_unwrap): Likewise.
1821 (cilk_set_spawn_marker): Likewise.
1822 (build_cilk_sync): Likewise.
1823 (build_cilk_spawn): Likewise.
1824 * cilk.c: New file.
1825
02774f2d 18262013-10-29 David Malcolm <dmalcolm@redhat.com>
1827
1828 Patch autogenerated by refactor_symtab.py from
1829 https://github.com/davidmalcolm/gcc-refactoring-scripts
1830 revision 58bb219cc090b2f4516a9297d868c245495ee622
1831
1832 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1833 to a true class hierarchy.
1834 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1835
31fe10fd 18362013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1837
1838 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1839
b1c06ff9 18402013-10-26 Jeff Law <law@redhat.com>
1841
1f78217c 1842 * c-common.c (c_define_builtins): Remove mudflap support.
1843 * c.opt: Ignore and warn for mudflap options.
b1c06ff9 1844
48a972c8 18452013-10-24 Tobias Burnus <burnus@net-b.de>
4644b593 1846
1847 PR other/33426
1848 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1849 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1850
546a04b1 18512013-10-23 Jason Merrill <jason@redhat.com>
1852
1853 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1854
bc7bff74 18552013-10-11 Jakub Jelinek <jakub@redhat.com>
1856
d62c713e 1857 * c-common.h (omp_clause_mask::operator !=): New method.
1858 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1859 instead of if (mask & something) tests everywhere.
1860
bc7bff74 1861 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1862 201307 instead of 201107.
1863 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1864 (c_common_attribute_table): Add "omp declare target" and
1865 "omp declare simd" attributes.
1866 (handle_omp_declare_target_attribute,
1867 handle_omp_declare_simd_attribute): New functions.
1868 * c-omp.c: Include c-pragma.h.
1869 (c_finish_omp_taskgroup): New function.
1870 (c_finish_omp_atomic): Add swapped argument, if true,
1871 build the operation first with rhs, lhs arguments and use NOP_EXPR
1872 build_modify_expr.
1873 (c_finish_omp_for): Add code argument, pass it down to make_code.
1874 (c_omp_split_clauses): New function.
1875 (c_split_parallel_clauses): Removed.
1876 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1877 c_omp_declare_simd_clauses_to_decls): New functions.
1878 * c-common.h (omp_clause_mask): New type.
1879 (OMP_CLAUSE_MASK_1): Define.
1880 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1881 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1882 omp_clause_mask::operator |, omp_clause_mask::operator &,
1883 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1884 omp_clause_mask::operator ==): New methods.
1885 (enum c_omp_clause_split): New.
1886 (c_finish_omp_taskgroup): New prototype.
1887 (c_finish_omp_atomic): Add swapped argument.
1888 (c_finish_omp_for): Add code argument.
1889 (c_omp_split_clauses): New prototype.
1890 (c_split_parallel_clauses): Removed.
1891 (c_omp_declare_simd_clauses_to_numbers,
1892 c_omp_declare_simd_clauses_to_decls): New prototypes.
1893 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1894 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1895 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1896 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1897 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1898 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1899 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1900 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1901 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1902 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1903 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1904 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1905 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1906 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1907 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1908 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1909 PRAGMA_OMP_CLAUSE_UNIFORM.
1910
d7dcba40 19112013-10-09 Marc Glisse <marc.glisse@inria.fr>
1912
1913 PR tree-optimization/20318
1914 * c-common.c (handle_returns_nonnull_attribute): New function.
1915 (c_common_attribute_table): Add returns_nonnull.
1916
0b7282f1 19172013-10-03 Marc Glisse <marc.glisse@inria.fr>
1918
1919 PR c++/19476
1920 * c.opt (fcheck-new): Move to common.opt.
1921
51f553af 19222013-09-25 Marek Polacek <polacek@redhat.com>
1923 Jakub Jelinek <jakub@redhat.com>
1924
1925 PR sanitizer/58413
1926 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1927 an expression if we can prove it is correct.
1928 (ubsan_instrument_division): Likewise. Remove unnecessary
1929 check.
1930
05f893e1 19312013-09-18 Marek Polacek <polacek@redhat.com>
1932
1933 PR sanitizer/58411
1934 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1935 Declare it.
1936 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1937
236ce1d1 19382013-09-14 Iain Sandoe <iain@codesourcery.com>
1939
1940 PR target/48094
1941 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1942 fobjc-gc, freplace-objc-classes): Accept for LTO.
1943
f9f68d35 19442013-09-13 Jacek Caban <jacek@codeweavers.com>
1945
1946 * c-target.def: New hook
1947
ba2f764e 19482013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1949
1950 PR c++/43452
1951 * c.opt (Wdelete-incomplete): Add.
1952
73437615 19532013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1954
1955 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1956 (vector_types_compatible_elements_p): New function.
1957 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1958 declaration.
1959 (vector_types_compatible_elements_p): Declare.
1960
95af4c75 19612013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1962
1963 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1964 a virtual member function.
1965 (pp_simple_type_specifier): Remove.
1966 (pp_c_type_specifier): Likewise.
1967 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1968 Rename from pp_c_type_specifier. Adjust.
1969 (c_pretty_printer::c_pretty_printer): Do not assign to
1970 simple_type_specifier.
1971
eaab24b9 19722013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1973
1974 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1975 member function.
1976 (c_pretty_printer::storage_class_specifier): Likewise.
1977 (c_pretty_printer::initializer): Likewise.
1978 (pp_declaration): Remove.
1979 (pp_declaration_specifiers): Likewise.
1980 (pp_abstract_declarator): Likewise.
1981 (pp_declarator): Likewise.
1982 (pp_type_id): Likewise.
1983 (pp_statement): Likewise.
1984 (pp_constant): Likewise.
1985 (pp_id_expression): Likewise.
1986 (pp_primary_expression): Likewise.
1987 (pp_unary_expression): Likewise.
1988 (pp_multiplicative_expression): Likewise.
1989 (pp_conditional_expression): Likewise.
1990 (pp_assignment_expression): Likewise.
1991 (pp_expression): Likewise.
1992 (pp_c_type_id): Likewise.
1993 (pp_c_storage_class_specifier): Likewise.
1994 * c-pretty-print.c (pp_c_type_cast): Tidy.
1995 (pp_c_pointer): Likewise.
1996 (pp_c_type_specifier): Likewise.
1997 (pp_c_parameter_type_list): Likewise.
1998 (pp_c_function_definition): Likewise.
1999 (pp_c_init_declarator): Likewise.
2000 (pp_c_initializer_list): Likewise.
2001 (pp_c_constructor_elts): Likewise.
2002 (c_pretty_printer::direct_abstract_declarator): Likewise.
2003 (c_pretty_printer::declaration_specifiers): Likewise.
2004 (c_pretty_printer::primary_expression): Likewise.
2005 (c_pretty_printer::postfix_expression): Likewise.
2006 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2007 (c_pretty_printer::storage_class_specifier): Rename from
2008 pp_c_storage_class_specifier.
2009 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2010 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2011 storage_class_specifier, initializer, offset_list, flags.
2012
9e46467d 20132013-08-30 Marek Polacek <polacek@redhat.com>
2014
2015 * c-ubsan.c: New file.
2016 * c-ubsan.h: New file.
2017
36a8d9b9 20182013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2019
2020 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2021 member function.
2022 (c_pretty_printer::declaration_specifiers): Likewise.
2023 (c_pretty_printer::declarator): Likewise.
2024 (c_pretty_printer::abstract_declarator): Likewise.
2025 (c_pretty_printer::direct_abstract_declarator): Likewise.
2026 (c_pretty_printer::direct_declarator): Likewise.
2027 (c_pretty_printer::function_specifier): Likewise.
2028 (pp_declaration): Adjust.
2029 (pp_declaration_specifiers): Likewise.
2030 (pp_abstract_declarator): Likewise.
2031 (pp_direct_declarator): Likewise.
2032 (pp_function_specifier): Likewise.
2033 (pp_direct_abstract_declarator): Remove as unused.
2034 (pp_c_declaration): Remove.
2035 (pp_c_declaration_specifiers): Likewise.
2036 (pp_c_declarator): Likewise.
2037 (pp_c_direct_declarator): Likewise.
2038 (pp_c_function_specifier): Likewise.
2039 (pp_c_direct_abstract_declarator): Likewise.
2040 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2041 from pp_c_abstract_declarator. Adjust.
2042 (c_pretty_printer::direct_abstract_declarator): Rename from
2043 pp_c_direct_abstract_declarator. Adjust.
2044 (c_pretty_printer::function_specifier): Rename from
2045 pp_c_function_specifier. Adjust.
2046 (c_pretty_printer::declaration_specifiers): Rename from
2047 pp_c_declaration_specifiers. Adjust.
2048 (c_pretty_printer::direct_declarator): Rename from
2049 pp_c_direct_declarator. Adjust.
2050 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2051 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2052 (c_pretty_printer::c_pretty_printer): Do not assign to
2053 declaration, declaration_specifiers, declarator,
2054 direct_declarator, direct_abstract_declarator, function_specifier.
2055
30635c2e 20562013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2057
2058 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2059 virtual member function.
2060 (c_pretty_printer::multiplicative_expression): Likewise.
2061 (c_pretty_printer::conditional_expression): Likewise.
2062 (c_pretty_printer::assignment_expression): Likewise.
2063 (c_pretty_printer::expression): Likewise.
2064 (pp_unary_expression): Adjust.
2065 (pp_multiplicative_expression): Likewise.
2066 (pp_assignment_expression): Likewise.
2067 (pp_conditional_expression): Likewise.
2068 (pp_expression): Likewise.
2069 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2070 from pp_c_unary_expression. Adjust.
2071 (c_pretty_printer::multiplicative_expression): Rename from
2072 pp_c_multiplicative_expression. Adjust.
2073 (c_pretty_printer::conditional_expression): Rename from
2074 pp_c_conditional_expression. Adjust.
2075 (c_pretty_printer::assignment_expression): Rename from
2076 pp_c_assignment_expression. Adjust.
2077 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2078 (c_pretty_printer::c_pretty_printer): Do not assign to
2079 unary_expression, multiplicative_expression,
2080 conditional_expression, expression.
2081
027d08ed 20822013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2083
2084 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2085 virtual member function.
2086 (pp_postfix_expression): Adjust.
2087 (pp_c_postfix_expression): Remove.
2088 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2089 from pp_c_postfix_expression. Adjust.
2090 (c_pretty_printer::c_pretty_printer): Do not assign to
2091 postfix_expression.
2092
f873303a 20932013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2094
2095 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2096 virtua member function.
2097 (pp_primary_expression): Adjust.
2098 (pp_c_primary_expression): Remove.
2099 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2100 from pp_c_primary_expression. Adjust.
2101 (pp_c_initializer_list): Use pp_primary_expression.
2102 (c_pretty_printer::c_pretty_printer): Do not assign to
2103 primary_expression.
2104
08e3e481 21052013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2106
2107 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2108 * c-pretty-print.c (M_): Remove.
2109 (c_pretty_printer::translate_string): Define.
2110 (pp_c_type_specifier): Use it.
2111 (pp_c_primary_expression): Likewise.
2112 (pp_c_expression): Likewise.
2113
1fc4a87f 21142013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2115
2116 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2117 virtual function.
2118 (pp_c_id_expression): Remove.
2119 (pp_id_expression): Adjust.
2120 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2121 pp_c_id_expression. Adjust.
2122 (pp_c_postfix_expression): Use pp_id_expression.
2123 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2124
a6cb161b 21252013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2126
2127 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2128 member function.
2129 (pp_constant): Adjust.
2130 (pp_c_constant): Remove.
2131 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2132 pp_c_constant. Adjust.
2133 (pp_c_constant)
2134 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2135 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2136
eed6bc21 21372013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2138
2139 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2140 (c_pretty_printer::c_pretty_printer): Declare.
2141 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2142 c_pretty_printer_init. Adjust.
2143 (print_c_tree): Do not call c_pretty_printer_init.
2144 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2145
df558d2e 21462013-08-09 Arnaud Charlet <charlet@adacore.com>
2147
2148 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2149
42f9a786 21502013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2151
2152 PR c++/58080
2153 * c-common.c (pointer_int_sum): Add bool parameter.
2154 * c-common.h (pointer_int_sum): Adjust declaration.
2155
f874ddad 21562013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2157
2158 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2159 c_pretty_printer variable.
2160
a94db6b0 21612013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2162
2163 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2164 (pp_base): Remove.
2165 (pp_c_base): Likewise. Adjust users.
2166 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2167 (pp_c_whitespace): Do not call pp_base.
2168 (pp_c_left_paren): Likewise.
2169 (pp_c_right_paren): Likewise.
2170 (pp_c_left_brace): Likewise.
2171 (pp_c_right_brace): Likewise.
2172 (pp_c_left_bracket): Likewise.
2173 (pp_c_right_bracket): Likewise.
2174 (pp_c_dot): Likewise.
2175 (pp_c_ampersand): Likewise.
2176 (pp_c_star): Likewise.
2177 (pp_c_arrow): Likewise.
2178 (pp_c_semicolon): Likewise.
2179 (pp_c_complement): Likewise.
2180 (pp_c_exclamation): Likewise.
2181 (pp_c_direct_declarator): Likewise.
2182 (pp_c_ws_string): Likewise.
2183 (pp_c_identifier): Likewise.
2184 (pp_c_statement): Likewise.
2185 (print_c_tree): Likewise.
2186
1898176c 21872013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2188
2189 PR c++/58072
2190 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2191 provide useful error strings.
2192
70d60d1d 21932013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2194
2195 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2196 printer functions instead of pp_string or operators and punctuators.
2197 (dump_generic_ada_node): Likewise.
2198 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2199 (pp_c_relational_expression): Likewise.
2200 (pp_c_logical_or_expression): Likewise.
2201
dda4f0ec 22022013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2203
2204 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2205 functions instead of pp_character.
2206 (pp_ada_tree_identifier): Likewise.
2207 (dump_ada_double_name): Likewise.
2208 (dump_ada_function_declaration): Likewise.
2209 (dump_ada_array_domains): Likewise.
2210 (dump_template_types): Likewise.
2211 (dump_generic_ada_node): Likewise.
2212 (print_ada_declaration): Likewise.
2213 (print_ada_struct_decl): Likewise.
2214 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2215
7aa04c8d 22162013-07-23 Tom Tromey <tromey@redhat.com>
2217
2218 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2219 * c-common.c (c_common_reswords): Add _Generic.
2220
a04e8d62 22212013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2222
2223 * c-common.c: Fix typos.
2224 * c-common.h: Likewise.
2225
a96c3cc1 22262013-07-13 Lubos Lunak <l.lunak@suse.cz>
2227
2228 PR c++/55203
2229 * c-common.c (c_common_attribute_table): Add warn_unused.
2230 (handle_warn_unused_attribute): New.
2231
da31536d 22322013-07-10 Jakub Jelinek <jakub@redhat.com>
2233
2234 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2235 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2236
839f2f70 22372013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2238
2239 PR c++/57869
2240 * c.opt: Add Wconditionally-supported.
2241
73f353d0 22422013-07-08 Graham Stott <graham.stott@btinternet.com>
2243
1f78217c 2244 * array-notation-common.c (length_mismatch_in_expr_p): Delete
73f353d0 2245 unused variables l_length and l_node.
2246
21ebaa24 22472013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
f5298614 2248
2249 PR c/57821
2250 * c-common.c (complete_array_type): Delay folding first index
2251 like other indices. When folding, check for index overflow.
2252
68ea4406 22532013-06-27 Marc Glisse <marc.glisse@inria.fr>
2254
2255 PR c++/57509
2256 * c-common.h (c_build_vec_perm_expr): New complain argument.
2257 * c-common.c (c_build_vec_perm_expr): Likewise.
2258 Use save_expr also in C++.
2259
60777f69 22602013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2261
2262 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2263 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2264 * c-opts.c (c_common_post_options): Likewise.
2265
839f2f70 22662013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
50acebe0 2267
2268 * array-notation-common.c (length_mismatch_in_expr): Changed the
2269 parameter type's from a dynamic array to a vec_tree. Also removed
2270 the size parameters.
2271 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2272 the change above.
2273
e9331eab 22742013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2275
2276 * c-common.h (struct cilkplus_an_parts): New structure.
2277 (struct cilkplus_an_loop_parts): Likewise.
2278 (cilkplus_extract_an_triplets): New prototype.
2279 (fix_sec_implicit_args): Likewise.
2280 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2281 (fix_sec_implicit_args): Likewise.
60777f69 2282
a9c99fc4 22832013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2284
2285 * array-notation-common.c (find_inv_trees): Removed an unwanted
2286 typecasting.
2287 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2288 enum rid to enum tree_code.
2289
f2526cce 22902013-06-11 Jan Hubicka <jh@suse.cz>
2291
2292 * c-common.c (handle_alias_ifunc_attribute): Do not set
2293 DECL_EXTERNAL for weakref variables.
2294 * c-pragma.c (handle_pragma_weak): Make sure aliases
2295 are not declared as external.
2296
09970d67 22972013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2298
2299 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2300 function from c/c-array-notation.c.
2301 (is_cilkplus_reduce_builtin): Likewise.
2302 (find_rank): Likewise.
2303 (extract_array_notation_exprs): Likewise.
2304 (replace_array_notations): Likewise.
2305 (find_inv_trees): Likewise.
2306 (replace_inv_trees): Likewise.
2307 (contains_array_notation_expr): Likewise.
2308 (find_correct_array_notation_type): Likewise.
2309 * c-common.h (struct inv_list): Moved this struct from the file
2310 c/c-array-notation.c and added a new field called additional tcodes.
2311 (length_mismatch_in_expr_p): New prototype.
2312 (is_cilkplus_reduce_builtin): Likewise.
2313 (find_rank): Likewise.
2314 (extract_array_notation_exprs): Likewise.
2315 (replace_array_notation): Likewise.
2316 (find_inv_trees): Likewise.
2317 (replace_inv_trees): Likewise.
2318 (find_correct_array_notation_type): Likewise.
839f2f70 2319
3c6d4197 23202013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2321
2322 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2323 function array_notation_init_builtins is called.
2324 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2325 * c-common.def (ARRAY_NOTATION_REF): New tree.
2326 * c-common.h (build_array_notation_expr): New function declaration.
2327 (build_array_notation_ref): Likewise.
2328 (extract_sec_implicit_index_arg): New extern declaration.
2329 (is_sec_implicit_index_fn): Likewise.
2330 (ARRAY_NOTATION_CHECK): New define.
2331 (ARRAY_NOTATION_ARRAY): Likewise.
2332 (ARRAY_NOTATION_START): Likewise.
2333 (ARRAY_NOTATION_LENGTH): Likewise.
2334 (ARRAY_NOTATION_STRIDE): Likewise.
2335 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2336 ARRAY_NOTATION_REF.
2337 (pp_c_expression): Likewise.
2338 * c.opt (flag_enable_cilkplus): New flag.
2339 * array-notation-common.c: New file.
2340
8e71dad2 23412013-05-14 Jakub Jelinek <jakub@redhat.com>
2342
2343 PR c++/57274
2344 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2345
432dd330 23462013-05-10 Marc Glisse <marc.glisse@inria.fr>
2347
2348 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2349 vectors.
2350
b156ec37 23512013-05-07 Han Shen <shenhan@google.com>
2352
2353 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2354
1a087624 23552013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2356
2357 * c-common.c (check_user_alignment): Emit error for negative values.
2358
1638c736 23592013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2360
2361 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2362
949dbf93 23632013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2364
2365 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2366 __GXX_EXPERIMENTAL_CXX1Y__.
2367
9205a6cc 23682013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2369 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2370
2371 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2372 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2373 to simply use OPT_Wpointer_arith.
2374 (c_sizeof_or_alignof_type): Likewise.
2375
05d0bce1 23762013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2377
2378 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2379
41609f8b 23802013-04-12 Jakub Jelinek <jakub@redhat.com>
2381
2382 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2383 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2384 specifiers.
2385
c671dc4f 23862013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2387
2388 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2389
ba125576 23902013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2391
2392 * c-common.c (pointer_int_sum): Remove dead code.
2393
9d3fa937 23942013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2395
2396 PR middle-end/56524
2397 * c-common.c (handle_optimize_attribute): Don't call
2398 save_optabs_if_changed.
2399
5ceebb21 24002013-03-05 Jakub Jelinek <jakub@redhat.com>
2401
2402 PR middle-end/56461
2403 * c-pch.c (pch_init): Free target_validity at the end.
2404
18eeed2b 24052013-03-04 Jakub Jelinek <jakub@redhat.com>
2406
2407 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2408
a9196da9 24092013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2410 Jakub Jelinek <jakub@redhat.com>
2411
2412 PR sanitizer/56454
2413 * c-common.c (handle_no_sanitize_address_attribute): New function.
2414 (c_common_attribute_table): Add no_sanitize_address attribute.
2415 (handle_no_address_safety_analysis_attribute): Add
2416 no_sanitize_address attribute, not no_address_safety_analysis
2417 attribute.
2418
15c27dda 24192013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 2420
2421 PR target/52555
2422 * c-common.c (handle_optimize_attribute): Call
2423 save_optabs_if_changed.
2424
19426fe1 24252013-02-18 Jakub Jelinek <jakub@redhat.com>
2426 Steven Bosscher <steven@gcc.gnu.org>
2427
2428 PR pch/54117
2429 * c-opts.c (c_common_post_options): If debug info is enabled
2430 and non-dwarf*, refuse to load PCH files and when writing PCH
2431 file warn.
2432
df936998 24332013-02-05 Jakub Jelinek <jakub@redhat.com>
2434
2435 PR middle-end/56167
2436 * c-common.c (handle_error_attribute): Fix condition.
2437
ae0c3984 24382013-01-30 Jakub Jelinek <jakub@redhat.com>
2439
2440 PR c++/55742
2441 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2442
1c4973d7 24432013-01-18 Jason Merrill <jason@redhat.com>
2444
2445 PR target/54908
2446 * c.opt (-fextern-tls-init): New.
2447 * c-opts.c (c_common_post_options): Handle it.
2448
7c834436 24492013-01-09 Jakub Jelinek <jakub@redhat.com>
2450
2451 PR c/48418
2452 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2453 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2454 and is either negative or bigger or equal to type precision
2455 of the first operand.
2456
5abaa10a 24572012-12-03 Marek Polacek <polacek@redhat.com>
2458
2459 PR c/55570
2460 * c-common.c (check_user_alignment): Swap order of tests,
2461 check TREE_CODE first.
2462
324ca377 24632012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2464
2465 PR c++/52654
2466 * c-common.h (overflow_type): New enum.
2467 (build_userdef_literal): Add overflow_type argument.
2468 (tree_userdef_literal): Add overflow_type.
2469 (USERDEF_LITERAL_OVERFLOW): New access macro.
2470 * c-common.c (build_userdef_literal): Add overflow_type
2471 argument.
2472 * c-lex.c (c_lex_with_flags): Add overflow_type to
2473 build_userdef_literal calls.
2474 (interpret_integer, interpret_float): Add overflow_type argument.
2475
b4c4a429 24762012-11-28 Richard Biener <rguenther@suse.de>
2477
2478 PR c/35634
2479 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2480 here and use a type with proper overflow behavior for types that would
2481 need to be promoted for the arithmetic.
2482
d413ffdd 24832012-11-23 Jakub Jelinek <jakub@redhat.com>
2484
2485 PR sanitizer/55435
2486 * c-common.c (handle_no_address_safety_analysis_attribute): New
2487 function.
2488 (c_common_attribute_table): Add no_address_safety_analysis.
2489
52bc861d 24902012-11-16 Simon Baldwin <simonb@google.com>
2491
2492 * c.opt: Add f[no-]canonical-system-headers.
2493 * c-opts.c (c_common_handle_option): Handle
2494 OPT_fcanonical_system_headers.
2495
2dd00636 24962012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2497
2498 PR c++/54413
2499 * c-opts.c (c_common_handle_option): Set new flags.
2500 * c.opt: Describe new flags.
2501
d4701f6c 25022012-11-09 Jason Merrill <jason@redhat.com>
2503
2504 * c.opt (Wabi-tag): New.
2505
72d65da9 25062012-11-09 Andi Kleen <ak@linux.intel.com>
2507
2508 PR 55139
2509 * c-common.c (get_atomic_generic_size): Mask with
2510 MEMMODEL_MASK
2511
77a357e3 25122012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2513
2514 PR c/53063
2515 * c.opt (Wformat): Make it Alias Wformat=1.
2516 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2517 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2518 LangEnabledBy.
2519 (Wformat=): RejectNegative. Use LangEnabledBy.
2520 (Wnonnull): Use LangEnabledBy.
2521 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2522 * c-format.c (set_Wformat): Delete.
2523 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2524 (maybe_read_dollar_number): Likewise.
2525 (avoid_dollar_number): Likewise.
2526 (finish_dollar_format_checking): Likewise.
2527 (check_format_info): Likewise.
2528 (check_format_info_main): Likewise.
2529 (check_format_types): Likewise.
2530 (format_type_warning): Likewise.
2531 * c-common.c (int): Likewise.
2532 (check_function_sentinel): Likewise.
2533 * c-common.h (warn_format,set_Wformat): Do not declare here.
2534
45efa6b9 25352012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2536
2537 PR c/53063
2538 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2539 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2540 Use LangEnabledBy.
2541 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2542 common.opt.
2543 (Wvariadic-macros): Init(1).
2544 * c-opts.c (c_common_handle_option): Do not handle them
2545 explicitly.
2546 (c_common_post_options): Likewise.
2547 (sanitize_cpp_opts): warn_unused_macros is now
2548 cpp_warn_unused_macros.
2549 (push_command_line_include): Likewise.
2550 * c-common.c (warn_unknown_pragmas): Do not define.
2551 * c-common.h (warn_unknown_pragmas): Do not declare.
2552
0e4e775a 25532012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2554
2555 PR c/51294
2556 * c-common.c (conversion_warning): Handle conditional expressions.
2557
8b447d3f 25582012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2559
2560 PR c++/54930
2561 * c.opt (Wreturn_local_addr): Define new option.
2562
f4a61754 25632012-10-25 Jason Merrill <jason@redhat.com>
2564
ecb10e6a 2565 * c.opt (Wvirtual-move-assign): New.
2566
f4a61754 2567 * c.opt (Winherited-variadic-ctor): New.
2568
7b463b19 25692012-10-25 Marc Glisse <marc.glisse@inria.fr>
2570
2571 PR c++/54427
2572 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2573
6adc88f8 25742012-10-23 Joseph Myers <joseph@codesourcery.com>
2575
2576 * c-common.h (pch_cpp_save_state): Declare.
2577 * c-target.def (c_preinclude): New hook.
2578 * c-opts.c (done_preinclude): New.
2579 (push_command_line_include): Handle default preincluded header.
2580 (cb_file_change): Call pch_cpp_save_state when calling
2581 push_command_line_include.
2582 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2583 (pch_cpp_save_state): New.
2584 (pch_init): Call pch_cpp_save_state conditionally, instead of
2585 calling cpp_save_state.
2586
fa816b0b 25872012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2588
2589 PR c/53063
2590 PR c/40989
2591 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2592 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2593 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2594 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2595 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2596 * c-opts.c (c_common_handle_option): Remove explicit handling from
2597 here.
2598 (c_common_post_options): Likewise.
2599
d214ccee 26002012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2601
2602 * c-ada-spec.c (LOCATION_COL): Delete.
2603 (compare_location): New function.
2604 (compare_node): Use it.
2605 (compare_comment): Likewise.
2606
77b27208 26072012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2608
2609 PR c/53063
2610 PR c/40989
2611 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2612 * c-opts.c (c_common_handle_option): Do not set them here. Add
2613 comment.
2614 (c_common_post_options): Likewise.
2615
cc02ca4d 26162012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2617
2618 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2619 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2620 Remove POINTER_TYPE handling, add large unsigned handling and use
2621 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2622
57f872a2 26232012-10-12 Jakub Jelinek <jakub@redhat.com>
2624
2625 PR c/54381
2626 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2627 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2628 locs and array of 3 trees instead of just single loc and single
2629 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2630 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2631 For *cmp* builtins that take two sources strings report warnings
2632 about first and second source, not about destination and source.
2633
7354ad2e 26342012-10-12 Marc Glisse <marc.glisse@inria.fr>
2635
2636 PR c++/53055
2637 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2638
1ac7f120 26392012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2640
2641 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2642 declaring something coming from another file.
2643
1e0cc9e3 26442012-10-10 Arnaud Charlet <charlet@adacore.com>
2645
1ac7f120 2646 PR ada/54845
1e0cc9e3 2647 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2648
b0e7825e 26492012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2650
2651 PR c++/54194
2652 * c-common.c (warn_about_parentheses): Add location_t parameter;
2653 use EXPR_LOC_OR_LOC.
2654 * c-common.h: Update declaration.
2655
41ed701a 26562012-10-09 Marc Glisse <marc.glisse@inria.fr>
2657
2658 PR c++/54427
2659 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2660 more operations. Make error messages optional.
2661 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2662 (scalar_to_vector): Declare.
2663
3740094c 26642012-10-08 Jason Merrill <jason@redhat.com>
2665
2666 * c-common.c (c_common_reswords): Add thread_local.
2667
ffcdbf9c 26682012-10-08 Dodji Seketeli <dodji@redhat.com>
2669
2670 PR c++/53528 C++11 attribute support
2671 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2672 new functions.
2673 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2674 static function.
2675 (handle_aligned_attribute): In choose strictest alignment
2676 among many. Use new check_cxx_fundamental_alignment_constraints.
2677 (handle_transparent_union_attribute): In c++11 attribute syntax,
2678 don't look through typedefs.
2679
ef34afc1 26802012-10-04 Arnaud Charlet <charlet@adacore.com>
2681
2682 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2683 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2684 out of dumpfile.h.
2685
f1ff4562 26862012-09-25 Dehao Chen <dehao@google.com>
2687
2688 PR middle-end/54645
ef34afc1 2689 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 2690 map when read in the pch.
2691
735538a1 26922012-09-18 Arnaud Charlet <charlet@adacore.com>
2693
2694 * c-ada-spec.c: Style fixes.
2695
9120cdc8 26962012-09-18 Thomas Quinot <quinot@adacore.com>
2697
2698 * c.opt (-fada-spec-parent): Define new command line switch.
2699 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2700 is specified, generate binding spec as a child of the specified unit.
2701
8eba82c2 27022012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2703 Manuel López-Ibáñez <manu@gcc.gnu.org>
2704
2705 PR c++/53210
2706 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2707
38682990 27082012-08-23 Arnaud Charlet <charlet@adacore.com>
2709
2710 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2711 for pointers, and add missing Convention C pragma.
2712 (print_ada_struct_decl): Add missing aliased keyword.
2713 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2714
f003f5dc 27152012-08-17 Jakub Jelinek <jakub@redhat.com>
2716
2717 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2718 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2719 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2720 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2721 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2722
ec11736b 27232012-08-10 Richard Guenther <rguenther@suse.de>
2724
2725 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2726
5f7f600e 27272012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2728
2729 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2730 instead of separate pp_newline and pp_flush.
2731 (print_c_tree): Likewise.
2732
758a38ab 27332012-07-26 Richard Henderson <rth@redhat.com>
2734
2735 * c-common.c (handle_hot_attribute): Allow labels.
2736 (handle_cold_attribute): Likewise.
2737
9ca77b08 27382012-07-20 Jakub Jelinek <jakub@redhat.com>
2739
2740 PR c++/28656
2741 * c-common.c (check_function_nonnull): Handle multiple nonnull
2742 attributes properly.
2743
b9ed1410 27442012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2745
2746 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2747 * c-ada-spec.c: Likewise.
2748 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2749
c2a65b90 27502012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2751
2752 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2753 Remove code conditional on it.
2754
88c5a1d1 27552012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2756
2757 * c-gimplify.c: Do not include basic-block.h.
2758 * c-common.c: Do not include linfuncs.h.
2759
4a020a8c 27602012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2761
2762 * c-common.h: Include tree.h.
2763
c28ddc97 27642012-07-02 Jason Merrill <jason@redhat.com>
2765
2766 PR c++/53524
2767 * c-common.c (get_priority): Call default_conversion.
2768
405ed67f 27692012-07-01 Uros Bizjak <ubizjak@gmail.com>
2770
2771 * c-pch.c (c_common_write_pch): Remove unused variables.
2772
e53d55e7 27732012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2774
2775 * cppspec.c: Moved from gcc/ to here.
2776
3d9c25ec 27772012-06-27 Kai Tietz <ktietz@redhat.com>
2778
2779 PR preprocessor/37215
2780 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2781
3169c57a 27822012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2783
2784 * c-common.h (c_common_print_pch_checksum): Remove.
2785 * c-pch.c: Do not include output.h.
2786 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2787 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2788 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2789 (struct c_pch_header): Remove.
2790 (get_ident): Update gpch version.
2791 (pch_init): Do not print executable_checksum to asm_out_file.
2792 Do not fail if there is no asm_out_file to read back from. Set
2793 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2794 (c_common_write_pch): Verify that nothing was written to asm_out_file
2795 since pch_init was called. Do not write a c_pch_header, and do not
2796 copy from asm_out_file to the PCH.
2797 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2798 the content of asm_out_file from the PCH.
2799 (c_common_print_pch_checksum): Remove.
2800 * c-opts.c (c_common_init): Print out executable_checksum directly.
2801
ff6624bc 28022012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2803
2804 * c-target.def (objc_declare_unresolved_class_reference,
2805 objc_declare_class_definition): Add new hooks.
2806
367b1459 28072012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2808
2809 * c-lex.c: Do not include output.h.
2810 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2811 Remove uses of ASM_OUTPUT_IDENT.
2812
bf0cb017 28132012-06-15 Marc Glisse <marc.glisse@inria.fr>
2814
2815 PR c++/51033
2816 * c-common.h (c_build_vec_perm_expr): Move decl here.
2817 * c-common.c (c_build_vec_perm_expr): Move definition
2818 here.
2819
b37a3600 28202012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2821
2822 * c.opt (fconserve-space): Turn into a no-op.
2823
19931eea 28242012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 2825
2826 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2827 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2828 both the start and end of the function.
2829
dff12c10 28302012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2831
2832 * c-common.c: Do not include output.h.
2833 * c-pragma.c: Likewise.
2834
5f9e7dd5 28352012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2836
2837 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2838 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2839 (lang_decl_name): Handle namespace decls.
2840
b5369b7d 28412012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2842
2843 * c-ada-spec.c: Do not include output.h.
2844 * c-semantics.c: Likewise.
2845
8032877c 28462012-05-29 Joseph Myers <joseph@codesourcery.com>
2847
2848 * c-common.c: Fix typo.
2849
7843e4bc 28502012-05-29 Michael Matz <matz@suse.de>
2851
2852 * c-common.h (c_expand_decl): Remove prototype.
2853
8cf857d4 28542012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2855
2856 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2857 * c-opts.c (c_common_handle_option): Remove code handling
2858 warn_missing_braces.
2859
8b64dc3c 28602012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2861
2862 PR c++/25137
2863 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2864 -Wmissing_braces.
2865
43cbde16 28662012-05-22 Dodji Seketeli <dodji@redhat.com>
2867
2868 PR c++/53322
2869 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2870
db490cb6 28712012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2872
2873 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2874 * c-opts.c (c_common_handle_option): Do not handle explicitly
2875 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2876
a60f3e81 28772012-05-16 Dodji Seketeli <dodji@redhat.com>
2878
2879 PR preprocessor/7263
2880 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2881 to cpp_classify_number. For diagnostics, use the precise location
2882 instead of the global input_location.
2883
82e6ef7c 28842012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2885
cd4797ff 2886 PR c++/11856
82e6ef7c 2887 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2888
258a168d 28892012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2890
82e6ef7c 2891 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 2892
d3b7ee7c 28932012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2894
2895 PR 53063
2896 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2897 Wreorder): Use LangEnabledBy.
2898 * c-opts.c (c_common_handle_option): Do not enable them
2899 explicitly. Call lang-specific generated functions.
2900 (c_common_post_options): Do not set them here.
2901
70059cea 29022012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2903
2904 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2905 Wmissing-field-initializers,Wmissing-parameter-type,
2906 Wold-style-declaration,Woverride-init): Use EnabledBy.
2907 * c-opts.c (c_common_post_options): Do not set here explicitly.
2908
fbb6fbd8 29092012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2910
2911 PR 53063
2912 * c-opts.c (c_common_handle_option): Use handle_generated_option
2913 to enable sub-options.
2914
61f69bc9 29152012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2916
2917 PR c++/53158
2918 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2919
5a1fe2db 29202012-05-10 Richard Guenther <rguenther@suse.de>
2921
2922 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2923 adjust commentary about TYPE_IS_SIZETYPE types.
2924
d42e7c5a 29252012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2926
2927 PR c++/53261
2928 * c-common.c (warn_logical_operator): Check that argument of
2929 integer_zerop is not NULL.
2930
686369e8 29312012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2932
2933 PR c/43772
2934 * c-common.c (warn_logical_operator): Do not warn if either side
2935 is already true or false.
2936
03fe1dc2 29372012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2938
2939 PR c/51712
2940 * c-common.c (expr_original_type): New.
2941 (shorten_compare): Do not warn for enumeration types.
2942
bba5a206 29432012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2944
2945 * c.opt (fpermissive): Add Var(flag_permissive).
2946
7059d45d 29472012-04-30 Marc Glisse <marc.glisse@inria.fr>
2948
2949 PR c++/51033
2950 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2951 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2952
7edb1062 29532012-04-30 Dodji Seketeli <dodji@redhat.com>
2954
2955 Add -Wvarargs option
2956 * c.opt (Wvarargs): Define new option.
2957
068bea1e 29582012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2959
2960 * c-common.c (check_function_arguments): Replace
2961 Wmissing-format-attribute with Wsuggest-attribute=format.
2962
b86527d8 29632012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2964
2965 * c.opt (Wsuggest-attribute=format): New. Alias of
2966 Wmissing-format-attribute.
2967 * c-format.c (decode_format_type): Replace
2968 Wmissing-format-attribute with Wsuggest-attribute=format.
2969 (check_function_format): Likewise.
2970
19931eea 29712012-04-27 Ollie Wild <aaw@google.com>
76d340ac 2972
2973 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2974 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2975 * c.opt: Add Wliteral-suffix.
2976
29438999 29772012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2978
2979 PR c/44774
2980 * c.opt (Wpedantic): New.
2981 (pedantic): Alias Wpedantic.
2982 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2983 (c_common_post_options): Likewise.
2984 (sanitize_cpp_opts): Likewise.
2985 * c-lex.c (interpret_float): Likewise.
2986 * c-format.c (check_format_types): Likewise.
2987 * c-common.c (pointer_int_sum): Likewise.
2988 (c_sizeof_or_alignof_type): Likewise.
2989 (c_add_case_label): Likewise.
2990 (c_do_switch_warnings): Likewise.
2991 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2992
4f9d6b8b 29932012-04-15 Jason Merrill <jason@redhat.com>
2994
2995 PR c++/52818
2996 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2997 (C_STD_NAME): Distinguish between C++98 and C++11.
2998
74bdbe96 29992012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3000
3001 PR target/52624
3002 * c-common.h (uint16_type_node): Rename into...
3003 (c_uint16_type_node): ...this.
3004 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3005 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3006
3d177e8c 30072012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3008
3009 * c-common.c (warn_if_unused_value): Move definition to here.
3010 * c-common.h (warn_if_unused_value): Move declaration to here.
3011
6a9a958f 30122012-03-23 William Bader <williambader@hotmail.com>
3013
3014 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3015
543efdbe 30162012-03-20 Jason Merrill <jason@redhat.com>
3017
3018 * c-common.h (enum cxx_dialect): Add cxx1y.
3019 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3020 test.
3021 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3022 * c-opts.c (c_common_post_options): Likewise.
3023 (set_std_cxx1y): New.
3024 (c_common_handle_option): Call it.
3025 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3026
62206d34 30272012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3028
3029 PR c++/14710
3030 * c.opt ([Wuseless-cast]): Add.
3031
fadf62f4 30322012-03-16 Richard Guenther <rguenther@suse.de>
3033
3034 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3035
249faa35 30362012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3037
3038 PR c++/44783
3039 * c.opt (ftemplate-backtrace-limit) Add.
3040
126b6848 30412012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3042
3043 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3044 handling.
3045 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3046 (init_pragma): Don't register extern_prefix.
3047
a51edb4c 30482012-03-12 Richard Guenther <rguenther@suse.de>
3049
3050 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3051 (builtin_type_for_size): Likewise.
3052
0f6a7cb7 30532012-02-13 Jakub Jelinek <jakub@redhat.com>
3054
3055 PR c++/52215
3056 * c-common.c (sync_resolve_params): Don't decide whether to convert
3057 or not based on TYPE_SIZE comparison, convert whenever arg_type
3058 is unsigned INTEGER_TYPE.
3059
0779e32c 30602012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3061
3062 PR c/52118
3063 * c.opt ([Wunused-local-typedefs]): Fix description.
3064
baec58e1 30652012-01-24 Mike Stump <mikestump@comcast.net>
3066
3067 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3068 exactly.
3069
c779d8cc 30702012-01-18 Richard Guenther <rguenther@suse.de>
3071
3072 * c-opts.c (c_common_post_options): Reset LTO flags if
3073 we are about to generate a PCH.
3074
ee917d24 30752012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3076
3077 PR c++/51777
3078 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3079 use pp_unsigned_wide_integer.
3080
90e2341f 30812012-01-10 Richard Guenther <rguenther@suse.de>
3082
3083 PR middle-end/51806
3084 * c-opts.c (c_common_handle_option): Move -Werror handling
3085 to language independent code.
3086
9ea022ce 30872012-01-05 Richard Guenther <rguenther@suse.de>
3088
3089 PR middle-end/51764
3090 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3091 from common.opt.
3092
3df19e1b 30932011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3094
3095 PR c++/51316
3096 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3097 of array types with an unknown bound.
3098
32074525 30992011-12-20 Joseph Myers <joseph@codesourcery.com>
3100
3101 * c-common.c (flag_isoc99): Update comment to refer to C11.
3102 (flag_isoc1x): Change to flag_isoc11.
3103 * c-common.h (flag_isoc99): Update comment to refer to C11.
3104 (flag_isoc1x): Change to flag_isoc11.
3105 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3106 C11.
3107 * c-opts.c (set_std_c1x): Change to set_std_c11.
3108 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3109 Call set_std_c11.
3110 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3111 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3112 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3113 standard.
3114 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3115 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3116 (std=gnu1x): Make alias of std=gnu11.
3117
fca86134 31182011-12-19 Jason Merrill <jason@redhat.com>
3119
3120 PR c++/51228
3121 * c-common.c (handle_transparent_union_attribute): Check the first
3122 field if the type is complete.
3123
aa4313eb 31242011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3125
3126 PR libstdc++/51365
3127 * c-common.c (RID_IS_FINAL): Add.
3128 * c-common.h (RID_IS_FINAL): Add.
3129
3f3d5ad4 31302011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3131
3132 * c.opt (fgnu-runtime): Provide full description.
3133 (fnext-runtime): Likewise.
3134 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3135
c4606d19 31362011-11-28 Andrew MacLeod <amacleod@redhat.com>
3137
3138 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3139 predefines in one place. Add LOCK_FREE predefines.
3140 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3141 new func.
3142
1d581089 31432011-11-24 Andrew MacLeod <amacleod@redhat.com>
3144
3145 PR c/51256
19931eea 3146 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 3147 conditions
19931eea 3148 (resolve_overloaded_atomic_exchange,
3149 resolve_overloaded_atomic_compare_exchange,
1d581089 3150 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3151 error_mark_node for error conditions.
19931eea 3152
6aa221fa 31532011-11-08 Richard Guenther <rguenther@suse.de>
3154
3155 PR middle-end/51010
3156 c-family/
3157
4c0315d0 31582011-11-07 Richard Henderson <rth@redhat.com>
3159 Aldy Hernandez <aldyh@redhat.com>
3160 Torvald Riegel <triegel@redhat.com>
3161
3162 Merged from transactional-memory.
3163
3164 * c-common.c (handle_tm_wrap_attribute,
3165 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3166 (struct c_common_reswords): Added __transaction* keywords.
3167 (struct c_common_attribute_table): Added transaction* and tm_regparm
3168 attributes.
3169 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3170 masks.
3171 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3172 find_tm_attribute): Declare.
3173
920f5a70 31742011-11-07 Jason Merrill <jason@redhat.com>
3175
3176 PR c++/35688
3177 * c-common.c, c-common.h: Revert yesterday's changes.
3178
b4f861b4 31792011-11-06 Jason Merrill <jason@redhat.com>
3180
3181 PR c++/35688
3182 * c-common.c (decl_has_visibility_attr): Split out from...
3183 (c_determine_visibility): ...here.
3184 * c-common.h: Declare it.
3185
83e25171 31862011-11-06 Joseph Myers <joseph@codesourcery.com>
3187
3188 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3189 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3190 type.
3191 (check_user_alignment): New. Split out of
3192 handle_aligned_attribute. Disallow integer constants with
3193 noninteger types. Conditionally allow zero.
3194 (handle_aligned_attribute): Use check_user_alignment.
3195 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3196
1cd6e20d 31972011-11-06 Andrew MacLeod <amacleod@redhat.com>
3198 Richard Henderson <rth@redhat.com>
3199
3200 Merged from cxx-mem-model.
3201
3202 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 3203 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 3204 parameters that are the same type size.
3205 (get_atomic_generic_size): New. Find size of generic
3206 atomic function parameters and do typechecking.
3207 (add_atomic_size_parameter): New. Insert size into parameter list.
3208 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3209 either __atomic_exchange_n or external library call.
19931eea 3210 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 3211 __atomic_compare_exchange to either _n variant or external library call.
19931eea 3212 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 3213 __atomic_load_n or an external library call.
3214 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3215 __atomic_store_n or an external library call.
3216 (resolve_overloaded_builtin): Handle new __atomic builtins.
3217
7549df0d 32182011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3219
3220 PR c++/50608
3221 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3222 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3223 <INDIRECT_REF>: Return the argument.
3224 <ARRAY_REF>: Remove special code for negative offset.
3225 Call fold_build_pointer_plus instead of size_binop.
3226 (fold_offsetof): Remove STOP_REF argument and adjust.
3227 * c-common.h (fold_offsetof_1): Declare.
3228 (fold_offsetof): Remove STOP_REF argument.
3229
7e783eb3 32302011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3231
3232 PR c++/50810
3233 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3234 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3235 Wnarrowing for C++0x and C++98.
3236 * c.opt ([Wnarrowing]): Update.
3237
8fe701f5 32382011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3239
3240 PR c++/44277
3241 * c.opt: Add Wzero-as-null-pointer-constant.
3242
0d84dc2d 32432011-10-31 Jason Merrill <jason@redhat.com>
3244
67031f52 3245 * c.opt (-fdeduce-init-list): Off by default.
3246
0d84dc2d 3247 PR c++/50920
3248 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3249 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3250 and -Wc++11-compat.
3251 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3252
66f24c41 32532011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3254
3255 PR c++/30066
3256 * c.opt (fvisibility-inlines-hidden): Description change.
3257
244db24d 32582011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3259
3260 Implement C++11 user-defined literals.
3261 * c-common.c (build_userdef_literal): New.
3262 * c-common.def: New tree code.
3263 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3264 * c-lex.c (interpret_float): Add suffix parm.
3265 (c_lex_with_flags): Build literal tokens.
3266
235be70f 32672011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3268
3269 PR c++/50841
3270 Revert:
3271 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3272
3273 PR c++/50810
3274 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3275 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3276 Wnarrowing for C++0x and C++98.
3277 * c.opt ([Wnarrowing]): Update.
3278
4fe0fb1c 32792011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3280
3281 PR c++/50810
3282 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3283 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3284 Wnarrowing for C++0x and C++98.
3285 * c.opt ([Wnarrowing]): Update.
3286
5f7504f9 32872011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3288
3289 PR c++/45385
3290 * c-common.c (conversion_warning): Remove code looking for
3291 artificial operands.
3292
2a688977 32932011-10-18 Dodji Seketeli <dodji@redhat.com>
3294
3295 PR bootstrap/50760
3296 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 3297 !NO_IMPLICIT_EXTERN_C.
2a688977 3298
326e3391 32992011-10-17 Michael Spertus <mike_spertus@symantec.com>
3300
3301 * c-common.c (c_common_reswords): Add __bases,
3302 __direct_bases.
3303 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3304
33052011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3306
3307 PR c++/50757
3308 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3309
62db153a 33102011-10-15 Tom Tromey <tromey@redhat.com>
3311 Dodji Seketeli <dodji@redhat.com>
3312
3313 * c.opt (fdebug-cpp): New option.
3314 * c-opts.c (c_common_handle_option): Handle the option.
3315 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3316 output stream in parameter. Factorized from ...
3317 (maybe_print_line): ... this. Dump location debug information when
3318 -fdebug-cpp is in effect.
3319 (print_line_1): New static function. Takes an output stream in
3320 parameter. Factorized from ...
3321 (print_line): ... here. Dump location information when -fdebug-cpp
3322 is in effect.
3323 (scan_translation_unit): Dump location information when
3324 -fdebug-cpp is in effect.
3325
ce70f433 33262011-10-15 Tom Tromey <tromey@redhat.com>
3327 Dodji Seketeli <dodji@redhat.com>
3328
3329 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3330 without argument.
3331 * c-opts.c (c_common_handle_option)<case
3332 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3333 cases. Handle -ftrack-macro-expansion with and without argument.
3334
97bfb9ef 33352011-10-15 Tom Tromey <tromey@redhat.com>
3336 Dodji Seketeli <dodji@redhat.com>
3337
3338 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3339 (print_line, cb_define, do_line_change): Adjust to avoid touching
3340 the internals of struct line_map. Use the public API instead.
3341 * c-pch.c (c_common_read_pch): Likewise.
3342 * c-lex.c (fe_file_change): Likewise.
3343
326e3391 33442011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3345
3346 PR c++/17212
3347 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3348
33492011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3350
3351 PR c++/33067
3352 * c-pretty-print.c (pp_c_floating_constant): Output
3353 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3354
b9a16870 33552011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3356
3357 * c-common.c (def_builtin_1): Delete old interface with two
3358 parallel arrays to hold standard builtin declarations, and replace
3359 it with a function based interface that can support creating
3360 builtins on the fly in the future. Change all uses, and poison
3361 the old names. Make sure 0 is not a legitimate builtin index.
3362 * c-omp.c (c_finish_omp_barrier): Ditto.
3363 (c_finish_omp_taskwait): Ditto.
3364 (c_finish_omp_flush): Ditto.
3365
c7964868 33662011-10-11 Tristan Gingold <gingold@adacore.com>
3367
3368 * c.opt: (fallow-parameterless-variadic-functions): New.
3369
a4e3ffad 33702011-09-08 Dodji Seketeli <dodji@redhat.com>
3371
3372 PR c++/33255 - Support -Wunused-local-typedefs warning
3373 * c-common.h (struct c_language_function::local_typedefs): New
3374 field.
19931eea 3375 (record_locally_defined_typedef, maybe_record_typedef_use)
3376 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 3377 * c-common.c (record_locally_defined_typedef)
19931eea 3378 (maybe_record_typedef_use)
3379 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 3380 * c.opt: Declare new -Wunused-local-typedefs flag.
3381
737a23cc 33822011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3383
3384 PR middle-end/50266
3385 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3386 computations.
3387
7542c3b4 33882011-09-05 Richard Guenther <rguenther@suse.de>
3389
3390 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3391 of integer_minus_one_node for empty array upper bounds.
3392
1dc92c59 33932011-08-28 Dodji Seketeli <dodji@redhat.com>
3394
3395 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3396 it's the first time it's being called on this main TU.
3397
2bdf2b6e 33982011-08-24 Richard Guenther <rguenther@suse.de>
3399
3400 PR c/49396
3401 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3402
34032011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 3404
3405 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3406 defined in cpp_init_builtins and c_cpp_builtins.
3407
bff4ad11 34082011-08-19 Joseph Myers <joseph@codesourcery.com>
3409
3410 * c-common.c (c_common_reswords): Add __builtin_complex.
3411 * c-common.h (RID_BUILTIN_COMPLEX): New.
3412
985c6e3a 34132011-08-18 Joseph Myers <joseph@codesourcery.com>
3414
3415 * c-common.c (c_common_reswords): Add _Noreturn.
3416 (keyword_is_function_specifier): Handle RID_NORETURN.
3417 * c-common.h (RID_NORETURN): New.
3418
7dfa155b 34192011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3420
3421 * c-common.c (unsafe_conversion_p): New function. Check if it is
3422 unsafe to convert an expression to the type.
3423 (conversion_warning): Adjust, use unsafe_conversion_p.
3424 * c-common.h (unsafe_conversion_p): New function declaration.
3425
2169f33b 34262011-08-02 Jakub Jelinek <jakub@redhat.com>
3427
3428 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3429 (c_finish_omp_taskyield): New prototype.
3430 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3431 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3432 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3433 or RHS1 have side-effects, evaluate those too in the right spot,
3434 if it is a decl and LHS is also a decl, error out if they
3435 aren't the same.
3436 (c_finish_omp_taskyield): New function.
3437 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3438 * c-pragma.c (omp_pragmas): Add taskyield.
3439 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3440 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3441 PRAGMA_OMP_CLAUSE_MERGEABLE.
3442
ab77850e 34432011-07-25 Dodji Seketeli <dodji@redhat.com>
3444
3445 * c-common.h (set_underlying_type): Remove parm name from
3446 declaration.
3447
6ee97920 34482011-07-25 Romain Geissler <romain.geissler@gmail.com>
3449
3450 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 3451
dc251364 34522011-07-22 Jason Merrill <jason@redhat.com>
3453
1a2a35f0 3454 PR c++/49793
3455 * c.opt (Wnarrowing): New.
3456
27282252 3457 PR c++/30112
3458 * c-common.h: Declare c_linkage_bindings.
3459 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3460
dc251364 3461 PR c++/49813
3462 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3463 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3464 as flag_isoc99 for 'restrict'.
3465 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3466
fc501191 34672011-07-21 Ian Lance Taylor <iant@google.com>
3468
3469 PR middle-end/49705
3470 * c-common.c (c_disable_warnings): New static function.
3471 (c_enable_warnings): New static function.
3472 (c_fully_fold_internal): Change local unused_p to bool. Call
3473 c_disable_warnings and c_enable_warnings rather than change
3474 c_inhibit_evaluation_warnings.
3475
07b8f133 34762011-07-20 Jason Merrill <jason@redhat.com>
3477
3478 PR c++/6709 (DR 743)
3479 PR c++/42603 (DR 950)
3480 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3481 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3482 (CPP_DECLTYPE): New.
3483 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3484
2cc66f2a 34852011-07-19 Richard Guenther <rguenther@suse.de>
3486
3487 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3488 * c-omp.c (c_finish_omp_for): Likewise.
3489
3c802a1e 34902011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3491
3492 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3493 body on the next line.
3494
98a33d9f 34952011-07-08 Jason Merrill <jason@redhat.com>
3496
3115bda0 3497 PR c++/45437
3498 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3499
98a33d9f 3500 PR c++/49673
3501 * c-common.c (c_apply_type_quals_to_decl): Don't check
3502 TYPE_NEEDS_CONSTRUCTING.
3503
c38a75b7 35042011-07-06 Richard Guenther <rguenther@suse.de>
3505
3506 * c-common.c (c_common_nodes_and_builtins):
3507 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3508
e593356b 35092011-07-05 Richard Guenther <rguenther@suse.de>
3510
3511 * c-common.c (c_common_nodes_and_builtins): Build all common
3512 tree nodes first.
3513
fca0886c 35142011-06-27 Jakub Jelinek <jakub@redhat.com>
3515
a68f7a8d 3516 * c-common.h (c_tree_chain_next): New static inline function.
3517
fca0886c 3518 * c-common.c (check_builtin_function_arguments): Handle
3519 BUILT_IN_ASSUME_ALIGNED.
3520
2797f13a 35212011-06-21 Andrew MacLeod <amacleod@redhat.com>
3522
3523 * c-common.c: Add sync_ or SYNC__ to builtin names.
3524 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 3525
35262011-06-20 Pierre Vittet <piervit@pvittet.com>
3527
3528 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3529 handler.
3530 (gen_pragma_handler): New union.
3531 (internal_pragma_handler): New type.
3532 (c_register_pragma_with_data)
3533 (c_register_pragma_with_expansion_and_data): New functions.
3534
3535 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3536 (c_register_pragma, c_register_pragma_with_expansion)
3537 (c_invoke_pragma_handler): Changed to work with
3538 internal_pragma_handler.
3539 (c_register_pragma_with_data)
3540 (c_register_pragma_with_expansion_and_data): New functions.
3541
218e3e4e 35422011-06-14 Joseph Myers <joseph@codesourcery.com>
3543
3544 * c-common.c: Include common/common-target.h.
3545 (handle_section_attribute): Use
3546 targetm_common.have_named_sections.
3547 * c-cppbuiltin.c: Include common/common-target.h.
3548 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3549
41e53ed2 35502011-06-10 Richard Guenther <rguenther@suse.de>
3551
3552 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3553 to print a IDENTIFIER_NODE.
3554
a6f06169 35552011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3556 Joseph Myers <joseph@codesourcery.com>
3557
3558 * c.opt (fbuilding-libgcc): New option.
3559 * c-cppbuiltin.c (c_cpp_builtins): Define
3560 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3561
1ea9269b 35622011-06-07 Jason Merrill <jason@redhat.com>
3563
8ce59854 3564 * c-common.c (max_tinst_depth): Lower default to 900.
3565
1ea9269b 3566 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3567
1af0124d 35682011-06-07 Richard Guenther <rguenther@suse.de>
3569
3570 * c-common.c (c_common_nodes_and_builtins): Do not set
3571 size_type_node or call set_sizetype.
3572
0e9a4c01 35732011-06-07 Dodji Seketeli <dodji@redhat.com>
3574
3575 PR debug/49130
3576 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 3577 type when using pointer comparison to compare types.
0e9a4c01 3578
90b40725 35792011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3580
3581 * c.opt: Add -Wdelete-non-virtual-dtor.
3582 * c-opts.c (c_common_handle_option): Include it in -Wall.
3583
fc9c9e87 35842011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3585
3586 PR bootstrap/49190
3587
3588 Revert:
3589 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3590
3591 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3592 not tree_common.
3593
d0389adc 35942011-05-27 Jakub Jelinek <jakub@redhat.com>
3595
3596 PR c++/49165
3597 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3598 C++ don't call c_common_truthvalue_conversion on void type arms.
3599
cacfdc02 36002011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3601
3602 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3603 (stmt_list_stack): Define.
3604 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3605 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3606
027fc6ef 36072011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3608
3609 * c-common.c (warning_candidate_p): Check for BLOCKs.
3610
f21317a1 36112011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3612
3613 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3614 not tree_common.
3615
789e953d 36162011-05-25 Jakub Jelinek <jakub@redhat.com>
3617
3618 * c-common.c (def_fn_type): Remove extra va_end.
3619
7f506bca 36202011-05-23 Jason Merrill <jason@redhat.com>
3621
3622 PR c++/48106
3623 * c-common.c (c_common_get_narrower): New.
3624 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3625
774e9d58 36262011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3627
3628 * c-common.h (check_function_arguments): Tweak prototype of
3629 check_function_arguments.
3630 * c-common.c (check_function_arguments): Likewise. Adjust
3631 calls to check_function_nonnull, check_function_format, and
3632 check_function_sentinel.
3633 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3634 separate attributes and typelist arguments. Use
3635 FOREACH_FUNCTION_ARGS to iterate over argument types.
3636
23407dc9 36372011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3638
3639 * c-common.c (c_common_reswords): Reorder.
3640 * c-common.h (rid): Likewise.
3641
3a939d12 36422011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3643
3644 * c-common.c (def_fn_type): Don't call build_function_type, call
3645 build_function_type_array or build_varargs_function_type_array
3646 instead.
3647 (c_common_nodes_and_builtins): Likewise.
3648
b6e3dd65 36492011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3650
3651 * c-common.c (c_add_case_label): Omit the loc argument to
3652 build_case_label.
3653 * c-common.h (build_case_label): Remove.
3654 * c-semantics.c (build_case_label): Remove.
3655
4232a958 36562011-05-05 Joseph Myers <joseph@codesourcery.com>
3657
3658 * c-objc.h (objc_start_method_definition): Update prototype.
3659 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3660
d0af78c5 36612011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3662
3663 * c-common.c (check_main_parameter_types): Reindent. Don't use
3664 TYPE_ARG_TYPES directly.
3665 (handle_nonnull_attribute): Likewise.
3666 (sync_resolve_params): Likewise.
3667 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3668 to check_format_string.
3669 (handle_format_attribute): Likewise.
3670 (check_format_string): Take a function type to examine instead of
3671 a type list. Use a function_arg_iterator to step through argument
3672 types.
3673
ceb7b692 36742011-05-04 Richard Guenther <rguenther@suse.de>
3675
3676 * c-common.c (fix_string_type): Use size_int for index type bounds.
3677 (start_fname_decls): Do not pass NULL to build_int_cst.
3678 (c_init_attributes): Likewise.
3679 * c-lex.c (c_lex_with_flags): Likewise.
3680
c66c81be 36812011-04-27 Jason Merrill <jason@redhat.com>
3682
3683 * c-common.c (make_tree_vector_from_list): New.
3684 * c-common.h: Declare it.
3685
16930c72 36862011-04-26 Richard Guenther <rguenther@suse.de>
3687
3688 PR preprocessor/48248
3689 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3690 for output size with -P.
3691
23407dc9 36922011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3693
3694 * c-common.c (struct c_common_resword): Add __underlying_type.
3695 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3696
dd045aee 36972011-04-20 Jim Meyering <meyering@redhat.com>
3698
3699 * c-format.c (init_dollar_format_checking): Remove useless
3700 if-before-free.
3701
394dd737 37022011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3703
3704 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 3705 (objc_detect_field_duplicates): New.
394dd737 3706 * stub-objc.c: Likewise.
23407dc9 3707
a758bf7d 37082011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3709
3710 * stub-objc.c (objc_declare_protocols): Renamed to
3711 objc_declare_protocol.
3712 * c-objc.h: Likewise.
23407dc9 3713
29d7200d 37142011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3715
3716 * stub-objc.c (objc_declare_class): Updated argument name.
3717
9b88d08d 37182011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3719
3720 * c-common.h (c_common_init_ts): Declare.
3721 * c-common.c (c_common_init_ts): Define.
3722
4185cf58 37232011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3724
3725 * c-objc.h (objc_build_message_expr): Updated prototype.
3726 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 3727
5a90471f 37282011-04-12 Martin Jambor <mjambor@suse.cz>
3729
3730 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3731 of cgraph_node.
3732
783bb57e 37332011-04-11 Richard Guenther <rguenther@suse.de>
3734
3735 * c-common.c (complete_array_type): Build a range type of
3736 proper type.
3737
c33080b9 37382011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3739
3740 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3741 (handle_type_generic_attribute): Likewise.
3742
f8913d47 37432011-04-07 Jason Merrill <jason@redhat.com>
3744
3745 PR c++/48450
3746 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3747 conversion from C++0x scoped enum.
3748
c94b1d0e 37492011-04-06 Joseph Myers <joseph@codesourcery.com>
3750
3751 * c-target-def.h: New file.
3752 * c-target.def: New file.
3753 * c-target.h: New file.
3754 * c-common.c (targetcm): Don't define here.
3755 * c-common.h (default_handle_c_option): Declare.
3756 * c-format.c: Include c-target.h instead of target.h.
3757 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3758 include tm.h.
3759 (default_handle_c_option): Move from targhooks.c.
3760
acb10f41 37612011-03-29 Jakub Jelinek <jakub@redhat.com>
3762
3763 PR preprocessor/48248
3764 * c-ppoutput.c (print): Add src_file field.
3765 (init_pp_output): Initialize it.
3766 (maybe_print_line): Don't optimize by adding up to 8 newlines
3767 if map->to_file and print.src_file are different file.
3768 (print_line): Update print.src_file.
3769
82715bcd 37702011-03-25 Kai Tietz <ktietz@redhat.com>
3771
3772 * c-ada-spec.c (compare_comment): Use filename_cmp
3773 instead of strcmp for filename.
3774
451c8e2f 37752011-03-25 Jeff Law <law@redhat.com>
3776
1f78217c 3777 * c-common.c (def_fn_type): Add missing va_end.
451c8e2f 3778
3c47771c 37792011-03-25 Jason Merrill <jason@redhat.com>
3780
3781 * c.opt: Add -std=c++03.
3782
97e6200f 37832011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3784
3785 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3786
ac86af5d 37872011-03-17 Kai Tietz
3788
3789 PR target/12171
ee212425 3790 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3791 Display allowed attributes for function pointer types.
3792 (pp_c_attributes_display): New function to display
3793 attributes having affects_type_identity flag set to true.
3794 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3795
ac86af5d 3796 * c-common.c (c_common_attribute_table):
3797 Add new element.
3798 (c_common_format_attribute_table): Likewise.
3799
914d1151 38002011-03-18 Jason Merrill <jason@redhat.com>
3801
69788bdf 3802 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3803 * c-common.h: Don't declare it here.
3804 * c-common.c: Or define it here.
3805 * c-opts.c (c_common_handle_option): Or set it here.
3806
914d1151 3807 PR c++/35315
3808 * c-common.c (handle_transparent_union_attribute): Don't
3809 make a duplicate type in C++.
3810
54cf6eed 38112011-03-15 Jason Merrill <jason@redhat.com>
3812
3813 * c-common.c (max_constexpr_depth): New.
3814 * c-common.h: Declare it.
3815 * c-opts.c (c_common_handle_option): Set it.
3816 * c.opt (fconstexpr-depth): New option.
3817
02cb1060 38182011-03-11 Jason Merrill <jason@redhat.com>
3819
9bf1c74e 3820 * c-common.c (attribute_takes_identifier_p): Add missing const.
3821
02cb1060 3822 PR c++/46803
3823 * c-common.c (attribute_takes_identifier_p): Assume that an
3824 unknown attribute takes an identifier.
3825
ecf2703d 38262011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3827
3828 PR c/47786
3829 * c-common.c (c_type_hash): Call list_length instead of iterating
3830 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3831
2b19dfe4 38322011-02-19 Jakub Jelinek <jakub@redhat.com>
3833
3834 PR c/47809
3835 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3836
29cf2335 38372011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3838
3839 * c.opt (fobjc-abi-version=) New.
3840 (fobjc-nilcheck): New.
3841
fad3f658 38422011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3843
3844 PR c++/46890
3845 * c-common.h (keyword_is_decl_specifier): Declare.
3846 * c-common.c (keyword_is_decl_specifier): Define.
3847 (keyword_is_function_specifier): New function.
3848
a12319b3 38492011-01-26 Jakub Jelinek <jakub@redhat.com>
3850
3851 PR c/47473
3852 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3853 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3854 REAL_TYPE.
3855
5c128dc8 38562011-01-26 Arnaud Charlet <charlet@adacore.com>
3857
3858 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3859
8d67b0c7 38602011-01-26 Jakub Jelinek <jakub@redhat.com>
3861
3862 PR pch/47430
3863 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3864 after init_c_lex if pch_file is set.
3865
0675168d 38662011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3867
e8911163 3868 PR c++/43601
0675168d 3869 * c.opt (-fkeep-inline-dllexport): New switch.
3870
0725e25c 38712011-01-12 Richard Guenther <rguenther@suse.de>
3872
3873 PR middle-end/32511
3874 * c-common.c (handle_weak_attribute): Warn instead of error
3875 on declaring an inline function weak.
3876
fdd84b77 38772011-01-05 Tom Tromey <tromey@redhat.com>
3878
3879 * c-common.h (lvalue_error): Update.
3880 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3881 not error.
3882
e6e73d14 38832010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 3884
d67e8485 3885 PR objc/47075
3886 * c-objc.h (objc_finish_message_expr): Added argument to
3887 prototype.
3888
a36cf284 38892010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3890
3891 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3892 Use prototype_p.
3893
33b3681f 38942010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3895
3896 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 3897 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 3898
a1f90215 38992010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3900
3901 * c-common.h (readonly_error): Declare.
3902 * c-common.c (readonly_error): Define.
3903
b1bbc8e5 39042010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3905
3906 * c-common.h (invalid_indirection_error): Declare.
3907 * c-common.c (invalid_indirection_error): Define.
3908
b0d55af9 39092010-12-03 Richard Guenther <rguenther@suse.de>
3910
3911 PR c/46745
3912 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3913 (pp_c_unary_expression): Likewise.
3914 (pp_c_expression): Likewise.
3915
d7489d8d 39162010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3917
3918 * c-common.h (objc_finish_function): New.
3919 (objc_non_volatilized_type): Removed.
3920 (objc_type_quals_match): Removed.
3921 * stub-objc.c (objc_finish_function): New.
3922 (objc_non_volatilized_type): Removed.
3923 (objc_type_quals_match): Removed.
19931eea 3924
92468061 39252010-11-30 Joseph Myers <joseph@codesourcery.com>
3926
3927 * c-common.h (parse_optimize_options): Declare.
3928 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3929 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3930
967958e4 39312010-11-29 Joseph Myers <joseph@codesourcery.com>
3932
3933 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3934 GET_ENVIRONMENT.
3935 * c-pch.c (O_BINARY): Don't define here.
3936 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3937
b213bf24 39382010-11-25 Joseph Myers <joseph@codesourcery.com>
3939
3940 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3941 targetm.except_unwind_info.
3942
9faf44d6 39432010-11-23 Joseph Myers <joseph@codesourcery.com>
3944
3945 * c-opts.c (c_common_handle_option): Pass location to
3946 set_struct_debug_option.
3947
79396169 39482010-11-23 Joseph Myers <joseph@codesourcery.com>
3949
3950 * c-common.c (visibility_options): Move from ../opts.c.
3951 * c-common.h (struct visibility_flags, visibility_options):
3952 Declare here.
3953 * c-opts.c (finish_options): Rename to c_finish_options.
3954 (c_common_init): Update call to finish_options.
3955
b4aa4123 39562010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3957
3958 PR objc/34033
3959 * c-lex.c (lex_string): Check that each string in an Objective-C
3960 string concat sequence starts with either one or zero '@', and
3961 that there are no spurious '@' signs at the end.
3962
3e0e49f2 39632010-11-20 Joseph Myers <joseph@codesourcery.com>
3964
3965 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3966 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3967 HANDLE_PRAGMA_VISIBILITY.
3968 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3969 HANDLE_PRAGMA_VISIBILITY): Don't define.
3970 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3971
a9ffdd35 39722010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3973
3974 PR c++/16189
3975 PR c++/36888
3976 PR c++/45331
3977 * c-common.h (keyword_begins_type_specifier): Declare.
3978 (keyword_is_storage_class_specifier): Declare.
3979 (keyword_is_type_qualifier): Declare.
3980 * c-common.c (keyword_begins_type_specifier): New function.
3981 (keyword_is_storage_class_specifier): New function.
3982 (keyword_is_type_qualifier): Declare.
3983
93be21c0 39842010-11-19 Joseph Myers <joseph@codesourcery.com>
3985
3986 PR c/46547
3987 * c-common.c (in_late_binary_op): Define.
3988 (c_common_truthvalue_conversion): Check in_late_binary_op before
3989 calling c_save_expr.
3990 * c-common.h (in_late_binary_op): Declare.
3991
d7175aef 39922010-11-19 Joseph Myers <joseph@codesourcery.com>
3993
3994 * c-opts.c (c_common_handle_option): Update calls to
3995 set_struct_debug_option.
3996
c213e196 39972010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3998
3999 * c-common.h (objc_declare_protocols): Added additional argument.
4000 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 4001
0b5fc5d6 40022010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4003
4004 PR c/33193
4005 * c-common.h (build_real_imag_expr): Declare.
4006 * c-semantics.c (build_real_imag_expr): Define.
4007
b8ba44e7 40082010-11-17 Joseph Myers <joseph@codesourcery.com>
4009
4010 * c-opts.c (c_common_parse_file): Take no arguments.
4011 * c-common.h (c_common_parse_file): Update prototype.
4012
6ef8d12f 40132010-11-16 Jakub Jelinek <jakub@redhat.com>
4014
4015 PR c++/46401
4016 * c-common.c (warning_candidate_p): Don't track non-const calls
4017 or STRING_CSTs.
4018
929d2a90 40192010-11-15 Ian Lance Taylor <iant@google.com>
4020
4021 * c-lex.c (init_c_lex): Set macro debug callbacks if
4022 flag_dump_go_spec is set.
4023
e4a7640a 40242010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4025
4026 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4027 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4028
597d2d81 40292010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4030
4031 PR preprocessor/45038
4032 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4033 dialects.
4034
c123f04d 40352010-11-12 Joseph Myers <joseph@codesourcery.com>
4036
4037 * c-common.h (c_family_lang_mask): Declare.
4038 * c-opts.c (c_family_lang_mask): Make extern.
4039 * c-pragma.c (handle_pragma_diagnostic): Use
4040 control_warning_option.
4041
3c6c0e40 40422010-11-12 Joseph Myers <joseph@codesourcery.com>
4043
4044 * c-common.c (parse_optimize_options): Update call to
4045 decode_options.
4046 * c-common.h (c_common_handle_option): Update prototype.
4047 * c-opts.c (c_common_handle_option): Take location_t parameter and
4048 pass it to other functions.
4049
19ec5c9e 40502010-11-11 Joseph Myers <joseph@codesourcery.com>
4051
4052 * c-opts.c (warning_as_error_callback): Remove.
4053 (c_common_initialize_diagnostics): Don't call
4054 register_warning_as_error_callback.
4055 (c_common_handle_option): Handle -Werror=normalized= here.
4056
bf776685 40572010-11-10 Joseph Myers <joseph@codesourcery.com>
4058
4059 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4060 in diagnostic.
4061 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4062 letter.
4063 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4064 Remove trailing '.' from diagnostics.
4065 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4066
6bd9d862 40672010-11-10 Joseph Myers <joseph@codesourcery.com>
4068
4069 * c-common.c (parse_optimize_options): Pass global_dc to
4070 decode_options.
4071 * c-opts.c (c_common_handle_option): Pass &global_options to
4072 set_Wstrict_aliasing.
4073 * c.opt (v): Don't mark Common or document here.
4074
1f6616ee 40752010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4076
4077 PR target/44981
4078 * c-format.c (format_type): New type gcc_objc_string_format_type.
4079 (valid_stringptr_type_p): New.
4080 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 4081 (check_format_string): Pass expected type, use
1f6616ee 4082 valid_stringptr_type_p (), check that the format string types are
4083 consistent with the format specification.
4084 (decode_format_attr): Warn if NSString is used outside objective-c.
4085 (format_types_orig): Add NSString.
4086 (format_name): New.
4087 (format_flags): New.
4088 (check_format_arg): Handle format strings requiring an external parser.
4089 first_target_format_type: New variable.
4090 (handle_format_attribute): Set up first_target_format_type, pass the
4091 expected format arg string type to check_format_string().
4092 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4093 * stub-objc.c (objc_string_ref_type_p): New.
4094 (objc_check_format_arg): New.
4095
b0d0931f 40962010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4097
19931eea 4098 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 4099 * c-common.h (objc_build_class_component_ref): New.
4100 * stub-objc.c (objc_build_class_component_ref): New.
4101
f26877d5 41022010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4103
4104 * c.opt (Wproperty-assign-default): New option.
4105
1ef143b6 41062010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4107
4108 Implemented -fobjc-std=objc1 flag.
4109 * c.opt (fobjc-std=objc1): New option.
4110
8c582e4f 41112010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4112
4113 Implemented format and noreturn attributes for Objective-C methods.
4114 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4115 attribute for Objective-C methods.
4116
8637f1db 41172010-10-31 Jason Merrill <jason@redhat.com>
4118
4119 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4120 EXPR_LOC_OR_HERE.
4121
9d9f5bb3 41222010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4123
4124 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4125 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4126 (objc_add_property_declaration): Removed arguments for copies and
4127 ivar.
4128 (objc_build_getter_call): Renamed to
4129 objc_maybe_build_component_ref.
4130 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4131 (objc_is_property_ref): New.
4132 * c-common.c (c_common_reswords): Removed copies and ivar.
4133 * stub-objc.c (objc_add_property_declaration): Removed arguments
4134 for copies and ivar.
4135 (objc_build_getter_call): Renamed to
4136 objc_maybe_build_component_ref.
4137 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4138 (objc_is_property_ref): New.
19931eea 4139
56f907a0 41402010-10-29 Arnaud Charlet <charlet@adacore.com>
4141 Matthew Gingell <gingell@adacore.com>
4142
4143 * c-ada-spec.c (separate_class_package): New function.
4144 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4145 name of their enclosing package.
4146 (print_ada_declaration): Use separate_class_package.
4147
b5fa273e 41482010-10-27 Jason Merrill <jason@redhat.com>
4149
5290e253 4150 * c-common.c (c_common_reswords): Add __is_literal_type.
4151 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4152
b5fa273e 4153 * c-common.c (check_case_value): Remove special C++ code.
4154
7590f0e5 41552010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4156
4157 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4158 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4159 and RID_LAST_PATTR.
4160 (objc_add_property_declaration): Added additional arguments.
4161 (objc_property_attribute_kind): Removed.
4162 (objc_set_property_attr): Removed.
4163 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4164 copy and nonatomic.
4165 * stub-objc.c (objc_add_property_declaration): Added additional
4166 arguments.
4167 (objc_set_property_attr): Removed.
19931eea 4168
1d894bcf 41692010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4170
4171 * c-common.h (objc_add_property_variable): Renamed to
4172 objc_add_property_declaration. Added location argument.
4173 * stub-objc.c (objc_add_property_variable): Same change.
4174
e23bf1fb 41752010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4176
4177 * c-common.h (objc_maybe_printable_name): New.
4178 * stub-objc.c (objc_maybe_printable_name): New.
4179
93426222 41802010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4181 Andrew Pinski <pinskia@gmail.com>
4182
4183 * c-common.h (c_common_mark_addressable_vec): Declare.
4184 * c-common.c (c_common_mark_addressable_vec): New function.
4185
45b2b110 41862010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4187
4188 * c-common.h (objc_set_method_type): Removed.
4189 (objc_add_method_declaration): Added boolean argument.
4190 (objc_start_method_definition): Same change.
4191 (objc_build_method_signature): Same change.
4192 * stub-objc.c (objc_set_method_type): Removed.
4193 (objc_add_method_declaration): Added boolean argument.
4194 (objc_start_method_definition): Same change.
4195 (objc_build_method_signature): Same change.
4196
64cd9619 41972010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4198
4199 * c-common.h (finish_file): Removed.
4200 (objc_write_global_declarations): New.
4201 * c-opts.c (c_common_parse_file): Do not call finish_file.
4202 * stub-objc.c (objc_write_global_declarations): New.
19931eea 4203
e1f293c0 42042010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4205
4206 Implemented parsing @synthesize and @dynamic for
4207 Objective-C/Objective-C++.
4208 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4209 (objc_add_synthesize_declaration): New.
4210 (objc_add_dynamic_declaration): New.
4211 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4212 * stub-objc.c (objc_add_synthesize_declaration): New.
4213 (objc_add_dynamic_declaration): New.
19931eea 4214
ef97a312 42152010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4216
4217 PR target/46041
4218 * c-cppbuiltin.c (mode_has_fma): Move function here from
4219 builtins.c. Don't use the fma optab, instead just use the
4220 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4221 using -save-temps.
4222
69b07042 42232010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4224
4225 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 4226
69b07042 4227 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4228
19931eea 4229 Radar 4330422
69b07042 4230 * c-common.h (objc_non_volatilized_type): New declaration
4231 * stub-objc.c (objc_non_volatilized_type): New stub.
4232
f15f2e56 42332010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4234
69b07042 4235 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 4236
4237 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4238
19931eea 4239 Radar 4133425
f15f2e56 4240 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 4241 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 4242
4a8875ed 42432010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4244
4245 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4246 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4247 (objc_ivar_visibility_kind): New enum.
4248 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 4249 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 4250 visibility enum.
4251
7e0713b1 42522010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4253
4254 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4255 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4256 has the appropriate fma builtins.
4257 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4258
86c110ac 42592010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4260
7e0713b1 4261 merge from FSF apple 'trunk' branch.
86c110ac 4262 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 4263
86c110ac 4264 Radars 4436866, 4505126, 4506903, 4517826
4265 * c-common.c (c_common_resword): Define @property and its attributes.
4266 * c-common.h: Define property attribute enum entries.
4267 (OBJC_IS_PATTR_KEYWORD): New.
4268 (objc_property_attribute_kind): New enum.
4269 Declare objc_set_property_attr (), objc_add_property_variable (),
4270 objc_build_getter_call () and objc_build_setter_call ().
4271 * stub-objc.c (objc_set_property_attr): New stub.
4272 (objc_add_property_variable): Likewise.
4273 (objc_build_getter_call): Likewise.
4274 (objc_build_setter_call) Likewise.
7e0713b1 4275
40c8d1dd 42762010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4277
7e0713b1 4278 merge from FSF apple 'trunk' branch.
40c8d1dd 4279 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4280
4281 Radar 3803157 (method attributes)
4282 * c-common.c (handle_deprecated_attribute): Recognize
4283 objc methods as valid declarations.
4284 * c-common.h: Declare objc_method_decl ().
7e0713b1 4285 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 4286
f3f006ad 42872010-10-08 Joseph Myers <joseph@codesourcery.com>
4288
4289 * c-common.c (parse_optimize_options): Call
4290 decode_cmdline_options_to_array_default_mask before
4291 decode_options. Update arguments to decode_options.
4292 * c-common.h (c_common_init_options_struct): Declare.
4293 * c-opts.c (c_common_init_options_struct): New. Split out from
4294 c_common_init_options.
4295
0a65c3bb 42962010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4297
4298 Implemented fast enumeration for Objective-C.
4299 * c-common.h (objc_finish_foreach_loop): New.
4300 * stub-objc.c (objc_finish_foreach_loop): New.
4301
24ca3b4e 43022010-10-05 Joseph Myers <joseph@codesourcery.com>
4303
4304 * c-common.h (struct diagnostic_context): Don't declare here.
4305 (c_common_initialize_diagnostics): Declare using
4306 diagnostic_context typedef.
4307 * c-opts.c (c_common_handle_option): Pass global_dc to
4308 handle_generated_option.
4309
f83b64ca 43102010-10-04 Joseph Myers <joseph@codesourcery.com>
4311
4312 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4313 handle_generated_option.
4314
2fdec027 43152010-10-03 Ian Lance Taylor <iant@google.com>
4316
4317 * c.opt (-fplan9-extensions): New option.
4318
41acdfa4 43192010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4320
4321 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4322 Remove.
4323 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4324 of duplicating code.
4325
069761fb 43262010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4327
4328 * c-common.c: Add two new entries for @optional
4329 and @required keywords.
4330
4331 merge from FSF 'apple/trunk' branch.
4332 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4333
4334 Radar 4386773
4335 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4336 objective-c keywords.
4337 (objc_set_method_opt): New declaration.
4338 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 4339
2c5d2e39 43402010-09-30 Joseph Myers <joseph@codesourcery.com>
4341
4342 * c-common.c (handle_optimize_attribute): Pass &global_options to
4343 cl_optimization_save and cl_optimization_restore.
4344 * c-opts.c (c_common_handle_option): Pass &global_options to
4345 handle_generated_option.
4346 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4347 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4348 &global_options to cl_optimization_restore.
4349
e5c75ac3 43502010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4351
4352 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4353 Objective-C/Objective-C++ keywords.
4354
3511333e 43552010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 4356
19931eea 4357 Merge from 'apple/trunk' branch on FSF servers.
4358
e147d6aa 4359 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4360
4361 Radar 4281748
4362 * c-common.h (objc_check_global_decl): New declaration.
4363 * stub-objc.c (objc_check_global_decl): New stub.
4364
5461e683 43652010-09-29 Joseph Myers <joseph@codesourcery.com>
4366
4367 * c.opt: Don't use VarExists.
4368
5ae82d58 43692010-09-29 Joseph Myers <joseph@codesourcery.com>
4370
4371 * c-common.c (c_cpp_error): Update names of diagnostic_context
4372 members.
4373 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4374 cl_optimization members.
4375 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4376 sanitize_cpp_opts, finish_options): Update names of cpp_options
4377 members.
4378
b27e241e 43792010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4380
4381 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4382 (objc_is_reserved_word): Removed.
4383 * c-common.c: Updated comments.
4384 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4385 objc_is_reserved_word.
4386 * stub-objc.c (objc_is_reserved_word): Removed.
4387
03fc2271 43882010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4389
19931eea 4390 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 4391 include attributes.
4392 (objc_start_method_definition): Likewise.
4393 (objc_build_keyword_decl): Likewise.
4394 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4395 (objc_start_method_definition): Likewise.
4396 (objc_build_keyword_decl): Likewise.
4397
a336eb4b 43982010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4399
4400 * c-common.h (objc_start_class_interface): Adjust prototype.
4401 (objc_start_category_interface): Likewise.
4402 (objc_start_protocol): Likewise.
4403 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4404 (objc_start_class_interface): Likewise.
4405 (objc_start_category_interface): Likewise.
4406
48b14f50 44072010-09-27 Ian Lance Taylor <iant@google.com>
4408
4409 * c-common.c (c_common_attribute_table): Add no_split_stack.
4410 (handle_no_split_stack_attribute): New static function.
4411
4abfc532 44122010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4413
19931eea 4414 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 4415
4416 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4417
19931eea 4418 Radar 4229905
4abfc532 4419 * c-common.h (objc_have_common_type): New declaration.
4420 * stub-objc.c (objc_have_common_type): New stub.
4421
4422 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4423
4424 Radar 4154928
4425 * c-common.h (objc_common_type): New prototype.
19931eea 4426 * stub-objc.c (objc_common_type): New stub.
4abfc532 4427
7bd95dfd 44282010-09-24 Jan Hubicka <jh@suse.cz>
4429
4430 * c-common.c (handle_leaf_attribute): New function.
4431 (struct attribute_spec c_common_att): Add leaf.
4432
5789e05b 44332010-09-22 Joseph Myers <joseph@codesourcery.com>
4434
4435 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4436 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4437 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4438 -include-barrier, -include-directory, -include-directory=,
4439 -include-directory-after, -include-directory-after=,
4440 -include-prefix, -include-prefix=, -include-with-prefix,
4441 -include-with-prefix=, -include-with-prefix-after,
4442 -include-with-prefix-after=, -include-with-prefix-before,
4443 -include-with-prefix-before=, -no-integrated-cpp,
4444 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4445 -output=, -pedantic, -pedantic-errors, -preprocess,
4446 -print-missing-file-dependencies, -trace-includes, -traditional,
4447 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4448 -user-dependencies, -verbose, -write-dependencies,
4449 -write-user-dependencies, no-integrated-cpp, traditional): New.
4450
e6fb54ba 44512010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4452
4453 PR objc/23710
9b60f3b0 4454 * c-common.h (objc_start_method_definition): Return bool instead
4455 of void.
4456 * stub-objc.c (objc_start_method_definition): Return bool instead
4457 of void.
4458
44592010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4460
4461 PR objc/25965
4462 * c-common.h (objc_get_interface_ivars): New declaration.
4463 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 4464
e44b0a1f 44652010-09-15 Ian Lance Taylor <iant@google.com>
4466
4467 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 4468 messages. Remove period at end of warning message.
e44b0a1f 4469
85c0a25c 44702010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4471
4472 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4473 (handle_alias_attribute): ... here.
4474 (handle_ifunc_attribute): New.
4475
5ba33bf4 44762010-09-06 Mark Mitchell <mark@codesourcery.com>
4477
4478 * c-common.h (do_warn_double_promotion): Declare.
4479 * c-common.c (do_warn_double_promotion): Define.
4480
c920faa3 44812010-09-05 Mark Mitchell <mark@codesourcery.com>
4482
4483 * c.opt (Wdouble-promotion): New.
4484
9604e070 44852010-09-02 Joseph Myers <joseph@codesourcery.com>
4486
4487 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4488 fvtable-thunks, fxref): Mark no longer supported in help text.
4489
3b0273a1 44902010-09-02 Joseph Myers <joseph@codesourcery.com>
4491
4492 * c.opt (Wimport, fall-virtual, falt-external-templates,
4493 fdefault-inline, fenum-int-equiv, fexternal-templates,
4494 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4495 fname-mangling-version-, fnew-abi, fnonnull-objects,
4496 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4497 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4498 applicable.
4499 (fhandle-exceptions): Mark with Alias and Warn.
4500 * c-opts.c (c_common_handle_option): Don't handle options marked
4501 as ignored.
4502
67089c6b 45032010-09-02 Joseph Myers <joseph@codesourcery.com>
4504
4505 * c.opt (Wcomments, Werror-implicit-function-declaration,
4506 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4507 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4508 aliases.
4509 * c-common.c (option_codes): Use OPT_Wcomment instead of
4510 OPT_Wcomments.
4511 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4512 Don't handle options marked as aliases.
4513
2af087f2 45142010-08-25 Richard Guenther <rguenther@suse.de>
4515
4516 * c-common.c (c_common_get_alias_set): Remove special
4517 handling for pointers.
4518
48148244 45192010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4520
4521 * c-common.c: Use FOR_EACH_VEC_ELT.
4522 * c-gimplify.c: Likewise.
4523 * c-pragma.c: Likewise.
4524
89c69892 45252010-08-16 Joseph Myers <joseph@codesourcery.com>
4526
4527 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4528 RejectDriver.
4529 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4530 RejectDriver.
4531 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4532 instead of OPT_MDX and OPT_MMDX.
4533
e28aa114 45342010-08-16 Joseph Myers <joseph@codesourcery.com>
4535
4536 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4537
99b66d21 45382010-08-12 Joseph Myers <joseph@codesourcery.com>
4539
4540 * c.opt (MD, MMD): Change to MDX and MMDX.
4541 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4542
666f4bf0 45432010-08-11 Joseph Myers <joseph@codesourcery.com>
4544
4545 * c-opts.c (c_common_handle_option): Call handle_generated_option
4546 instead of handle_option.
4547
5ec815f6 45482010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4549
4550 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4551 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4552
d13143cf 45532010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4554
4555 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4556 (pending_redefine_extname): Change type to a VEC.
4557 (add_to_renaming_pragma_list): Update for new type of
4558 pending_redefine_extname.
5ec815f6 4559 (maybe_apply_renaming_pragma): Likewise.
d13143cf 4560
2008c983 45612010-08-04 Arnaud Charlet <charlet@adacore.com>
4562
4563 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4564 visited.
4565 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4566 decide whether a type has already been declared/seen.
4567 Do not go to the original type.
4568 (dump_nested_types): New parameter forward.
4569 Generate forward declaration if needed and mark type as visited.
4570 (print_ada_declaration): Call dump_nested_types if not already done.
4571 Mark types as visited.
4572
9b091a73 45732010-08-03 Joseph Myers <joseph@codesourcery.com>
4574
4575 * c.opt (-print-pch-checksum): Remove option.
4576 * c-opts.c (c_common_handle_option): Don't handle
4577 OPT_print_pch_checksum.
4578
b78351e5 45792010-07-27 Joseph Myers <joseph@codesourcery.com>
4580
4581 * c-common.h (c_common_handle_option): Update prototype and return
4582 value type.
4583 * c-opts.c (c_common_handle_option): Update prototype and return
4584 value type. Update calls to handle_option and
4585 enable_warning_as_error.
4586
34416a90 45872010-07-27 Jakub Jelinek <jakub@redhat.com>
4588
4589 PR c/45079
4590 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4591
fecf9011 45922010-07-27 Joseph Myers <joseph@codesourcery.com>
4593
4594 * c-common.h (c_common_missing_argument): Remove.
4595 * c-opts.c (c_common_missing_argument): Remove.
4596 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4597 idirafter, imacros, include, isysroot, isystem, iquote): Add
4598 MissingArgError.
4599 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4600
e88d34f6 46012010-07-27 Joseph Myers <joseph@codesourcery.com>
4602
4603 * c-common.h (c_common_option_lang_mask,
4604 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4605 New.
4606 (c_common_init_options): Update prototype.
4607 * c-opts.c (c_common_option_lang_mask): New.
4608 (c_common_initialize_diagnostics): Split out of
4609 c_common_init_options.
4610 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4611 New.
4612 (c_common_init_options): Update prototype. Use decoded options in
4613 search for -lang-asm.
4614
1767a056 46152010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4616
4617 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4618 * c-format.c: Likewise.
4619
0b205f4c 46202010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4621
4622 * c-common.h: Include diagnostic-core.h. Error if already
4623 included.
4624 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4625
1c58e3f1 46262010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4627
1f78217c 4628 * c-common.c (IN_GCC_FRONTEND): Do not undef.
1c58e3f1 4629 Do not include expr.h
4630 (vector_mode_valid_p): Move here.
4631
33cc157c 46322010-06-21 DJ Delorie <dj@redhat.com>
4633
4634 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4635 allow these pragmas anywhere.
4636
46372010-06-14 Jakub Jelinek <jakub@redhat.com>
4638
4639 PR bootstrap/44509
4640 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4641 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4642 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4643 ggc_strdup instead of xstrdup.
4644
46452010-06-10 Jakub Jelinek <jakub@redhat.com>
4646
4647 * c-cppbuiltin.c: Include cpp-id-data.h.
4648 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4649 (lazy_hex_fp_value): New function.
4650 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4651
9b40bfbf 46522010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4653
4654 * c-gimplify.c: Do not include tree-flow.h
4655
202d6e5f 46562010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4657
4658 PR other/44034
4659 * c-common.c: Rename targetm member:
4660 targetm.enum_va_list -> targetm.enum_va_list_p
4661
d3237426 46622010-06-28 Anatoly Sokolov <aesok@post.ru>
4663
4664 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4665
596981c8 46662010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4667
4668 * c-cppbuiltin.c: Do not include except.h.
4669
b9bdfa0b 46702010-06-24 Andi Kleen <ak@linux.intel.com>
4671
19931eea 4672 * c-common.c (warn_for_omitted_condop): New.
4673 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 4674
55ad092d 46752010-06-21 Joseph Myers <joseph@codesourcery.com>
4676
4677 * c.opt (lang-objc): Remove.
4678 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4679
9e7c2572 46802010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4681
4682 * c-opts.c: Include "tm_p.h".
4683
615ef0bb 46842010-06-20 Joseph Myers <joseph@codesourcery.com>
4685
4686 * c-common.c (parse_optimize_options): Update call to
4687 decode_options.
4688
aef48c9a 46892010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4690
4691 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4692 new type of types_used_by_cur_var_decl.
4693
d74003b4 46942010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4695
4696 PR bootstrap/44512
4697 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4698 for C++ standard compliance.
4699
1194d077 47002010-06-16 Jason Merrill <jason@redhat.com>
4701
4702 * c.opt: Add -Wnoexcept.
4703
d473d901 47042010-06-16 Richard Guenther <rguenther@suse.de>
4705
4706 PR c/44555
4707 * c-common.c (c_common_truthvalue_conversion): Remove
4708 premature and wrong optimization concering ADDR_EXPRs.
4709
b62dbfd3 47102010-06-15 Arnaud Charlet <charlet@adacore.com>
4711
4712 * c-ada-spec.c (dump_sloc): Remove column info.
4713 (is_simple_enum): New function.
4714 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4715 enum types when relevant.
4716
200dd99c 47172010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4718
19931eea 4719 * c-common.c (conversion_warning): Warn at expression
200dd99c 4720 location.
4721
abf6a617 47222010-06-10 Joseph Myers <joseph@codesourcery.com>
4723
4724 * c-opts.c (c_common_handle_option): Don't handle
4725 OPT_fshow_column.
4726
ba72912a 47272010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4728
4729 * c-pragma.c (push_alignment): Use typed GC allocation.
4730 (handle_pragma_push_options): Likewise.
4731
4732 * c-common.c (parse_optimize_options): Likewise.
4733
4734 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4735 option.
4736
4aafe913 47372010-06-07 Joseph Myers <joseph@codesourcery.com>
4738
4739 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4740 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4741 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4742 flag_signed_bitfields, warn_strict_null_sentinel,
4743 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4744 flag_gen_declaration, flag_no_gnu_keywords,
4745 flag_implement_inlines, flag_implicit_templates,
4746 flag_implicit_inline_templates, flag_optional_diags,
4747 flag_elide_constructors, flag_default_inline, flag_rtti,
4748 flag_conserve_space, flag_access_control, flag_check_new,
4749 flag_new_for_scope, flag_weak, flag_working_directory,
4750 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4751 flag_enforce_eh_specs, flag_threadsafe_statics,
4752 flag_pretty_templates): Remove.
4753 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4754 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4755 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4756 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4757 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4758 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4759 flag_no_gnu_keywords, flag_implement_inlines,
4760 flag_implicit_templates, flag_implicit_inline_templates,
4761 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4762 flag_rtti, flag_conserve_space, flag_access_control,
4763 flag_check_new, flag_new_for_scope, flag_weak,
4764 flag_working_directory, flag_use_cxa_atexit,
4765 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4766 flag_threadsafe_statics, flag_pretty_templates,
4767 warn_strict_null_sentinel): Remove.
4768 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4769 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4770 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4771 fimplicit-inline-templates, fimplicit-templates,
4772 flax-vector-conversions, fms-extensions, fnil-receivers,
4773 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4774 frtti, fshort-double, fshort-enums, fshort-wchar,
4775 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4776 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4777 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4778 gen-decls, undef): Use Var.
4779 (fdefault-inline, foptional-diags): Document as doing nothing.
4780 * c-opts.c (c_common_handle_option): Remove cases for options now
4781 using Var. Mark ignored options as such.
4782
7bedc3a0 47832010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4784
19931eea 4785 * c-common.c: Moved to here from parent directory.
7bedc3a0 4786 * c-common.def: Likewise.
4787 * c-common.h: Likewise.
4788 * c-cppbuiltin.c: Likewise.
4789 * c-dump.c: Likewise.
4790 * c-format.c: Likewise.
4791 * c-format.h : Likewise.
4792 * c-gimplify.c: Likewise.
4793 * c-lex.c: Likewise.
4794 * c-omp.c: Likewise.
4795 * c.opt: Likewise.
4796 * c-opts.c: Likewise.
4797 * c-pch.c: Likewise.
4798 * c-ppoutput.c: Likewise.
4799 * c-pragma.c: Likewise.
4800 * c-pragma.h: Likewise.
4801 * c-pretty-print.c: Likewise.
4802 * c-pretty-print.h: Likewise.
4803 * c-semantics.c: Likewise.
4804 * stub-objc.c: Likewise.
4805
4806 * c-common.c: Include gt-c-family-c-common.h.
4807 * c-pragma.c: Include gt-c-family-c-pragma.h.
4808\f
d353bf18 4809Copyright (C) 2010-2015 Free Software Foundation, Inc.
7bedc3a0 4810
4811Copying and distribution of this file, with or without modification,
4812are permitted in any medium without royalty provided the copyright
4813notice and this notice are preserved.