]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR tree-optimization/69297 (Performance regression after r230020)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
e0a575ff
JJ
12016-01-15 Jakub Jelinek <jakub@redhat.com>
2
3 PR bootstrap/68271
4 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
5 C++ FE no longer has limit on number of pragmas.
6
72015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
8
9 PR c++/69048
10 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 11 to add missing cleanup point.
b6e3db06 12
c7df95d8
DM
132016-01-14 David Malcolm <dmalcolm@redhat.com>
14
15 PR c++/68819
16 * c-indentation.c (get_visual_column): Add location_t param.
17 Handle the column number being zero by effectively disabling the
18 warning, with an "inform".
19 (should_warn_for_misleading_indentation): Add location_t argument
20 for all uses of get_visual_column.
21
21efdd80
PP
222016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
23
24 PR c++/69029
25 * c-indentation.c (should_warn_for_misleading_indentation):
26 Don't warn about do-while statements.
27
7a127fa7
MS
282016-01-07 Martin Sebor <msebor@redhat.com>
29
30 PR c/68966
31 * c-common.c (sync_resolve_size): Reject first argument when it's
32 a pointer to _Bool.
33
c589e975
DM
342016-01-05 David Malcolm <dmalcolm@redhat.com>
35
36 PR c/69122
37 * c-indentation.c (get_visual_column): Remove default argument.
38 (should_warn_for_misleading_indentation): For the multiline case,
39 update call to get_visual_column for next_stmt_exploc so that it
40 captures the location of the first non-whitespace character in the
41 relevant line. Don't issue warnings if there is non-whitespace
42 before the next statement.
43
818ab71a
JJ
442016-01-04 Jakub Jelinek <jakub@redhat.com>
45
46 Update copyright years.
47
745e411d
DM
482015-12-21 David Malcolm <dmalcolm@redhat.com>
49
50 * c-common.c (binary_op_error): Convert first param from
51 location_t to rich_location * and use it when emitting an error.
52 * c-common.h (binary_op_error): Convert first param from
53 location_t to rich_location *.
54
de67c4c3
DM
552015-12-16 David Malcolm <dmalcolm@redhat.com>
56
57 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
58 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
59
4a38b02b
IV
602015-12-15 Ilya Verbin <ilya.verbin@intel.com>
61
62 * c-common.c (c_common_attribute_table): Handle "omp declare target
63 link" attribute.
64
54d62f51
JJ
652015-12-14 Jakub Jelinek <jakub@redhat.com>
66
67 PR c/68833
68 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
69
8d4227c8
TB
702014-12-12 Tobias Burnus <burnus@net-b.de>
71
72 PR fortran/68815
73 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
74 specifiers (%d, %i,%u and %c).
75
f6069ccc
DM
762015-12-10 David Malcolm <dmalcolm@redhat.com>
77
78 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
79
63bbf46d
JJ
802015-12-08 Jakub Jelinek <jakub@redhat.com>
81
82 PR c/48088
83 PR c/68657
84 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
85 * c-pragma.c (handle_pragma_diagnostic): Adjust
86 control_warning_option caller.
87
f79520bb
DM
882015-12-07 David Malcolm <dmalcolm@redhat.com>
89
90 * c-common.c (c_cpp_error): Update for change to
91 rich_location::set_range.
92
b3d5bc62
JJ
932015-12-04 Paolo Bonzini <bonzini@gnu.org>
94
95 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
96 shifting 1 out of the sign bit.
97
982015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
99
100 * c-common.c (c_common_attribute_table[]): Update max arguments
101 count for "simd" attribute.
102 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
103
6eb4a537
JJ
1042015-12-03 Jakub Jelinek <jakub@redhat.com>
105
106 PR preprocessor/57580
107 * c-ppoutput.c (print): Change printed field to bool.
108 Move src_file last for smaller padding.
109 (init_pp_output): Set print.printed to false instead of 0.
110 (scan_translation_unit): Fix up formatting. Set print.printed
111 to true after printing something other than newline.
112 (scan_translation_unit_trad): Set print.printed to true instead of 1.
113 (maybe_print_line_1): Set print.printed to false instead of 0.
114 (print_line_1): Likewise.
115 (do_line_change): Set print.printed to true instead of 1.
116 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
117 dump_macro): Set print.printed to false after printing newline.
118
4250754e
JM
1192015-12-02 Jason Merrill <jason@redhat.com>
120
f479b43d
JM
121 * c-common.c (fold_for_warn): New.
122 (warn_logical_operator, warn_tautological_cmp)
123 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
124
4250754e
JM
125 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
126 (c_fully_fold_internal, decl_constant_value_for_optimization):
127 Move to c/c-fold.c.
128 * c-common.h: Don't declare decl_constant_value_for_optimization.
129
e9e32ee6
JM
1302015-12-02 Joseph Myers <joseph@codesourcery.com>
131
132 PR c/68162
133 * c-common.h (c_build_qualified_type): Add extra default
134 arguments.
135
37d5ad46
JB
1362015-12-01 Julian Brown <julian@codesourcery.com>
137 Cesar Philippidis <cesar@codesourcery.com>
138 James Norris <James_Norris@mentor.com>
139
140 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
141 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
142 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
143
f07862c7
EB
1442015-11-30 Eric Botcazou <ebotcazou@adacore.com>
145
146 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
147 (decl_sloc_common): Delete and move bulk of processing to...
148 (decl_sloc): ...here.
149 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
150 (dump_ada_double_name): Remove S parameter and compute the suffix.
151 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
152 element type and deal with an anonymous one.
153 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
154 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
155 and remove reference to QUAL_UNION_TYPE.
156 (dump_nested_types): Make 2 passes on the fields and move bulk to...
157 (dump_nested_type): ...here. New function extracted from above.
158 Generate a full declaration for anonymous element type of arrays.
159 (print_ada_declaration): Really skip anonymous declarations. Remove
160 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
161 Clean up processing of declarations of array types and objects.
162 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
163 Remove obsolete code and tidy up.
164
75c8aac3
JH
1652015-11-29 Jan Hubicka <hubicka@ucw.cz>
166
167 PR c/67581
168 * c-common.c (handle_transparent_union_attribute): Update
169 also type variants.
170
b58d3df2
ML
1712015-11-27 Martin Liska <mliska@suse.cz>
172
173 PR c++/68312
174 * array-notation-common.c (cilkplus_extract_an_triplets):
175 Release vector of vectors.
176 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
177
89a01fcf
EB
1782015-11-26 Eric Botcazou <ebotcazou@adacore.com>
179
180 PR c++/68527
181 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
182 (print_ada_struct_decl): Likewise.
183
cc5c5226
IZ
1842015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
185
186 PR c++/68001
187 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
188 * cilk.c (recognize_spawn): Determine location in a more precise
189 way.
190
269adb9d
JM
1912015-11-19 Jason Merrill <jason@redhat.com>
192
193 * c-common.c (shorten_compare): But look through macros from
194 system headers.
195
d0eccfcd
JM
1962015-11-18 Jason Merrill <jason@redhat.com>
197
198 * c-common.c (shorten_compare): Don't -Wtype-limits if the
199 non-constant operand comes from a macro.
200
3e44547c
JM
2012015-11-17 Jason Merrill <jason@redhat.com>
202
203 PR bootstrap/68346
204 * c-common.c (warn_tautological_cmp): Fold before checking for
205 constants.
206
0f62c7a0
MP
2072015-11-16 Marek Polacek <polacek@redhat.com>
208
209 PR c++/68362
210 * c-common.c (check_case_bounds): Fold low and high cases.
211
a868811e
MP
2122015-11-16 Marek Polacek <polacek@redhat.com>
213
214 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
215 * c-common.c (c_common_get_alias_set): Likewise.
216 (handle_visibility_attribute): Likewise.
217
fff77217
KY
2182015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
219
220 * c-common.c (handle_simd_attribute): New.
221 (struct attribute_spec): Add entry for "simd".
222 (handle_simd_attribute): New.
223
269e63b7
KT
2242015-11-13 Kai Tietz <ktietz70@googlemail.com>
225
226 * c-lex.c (interpret_float): Use fold_convert.
227
ebedc9a3
DM
2282015-11-13 David Malcolm <dmalcolm@redhat.com>
229
230 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
231 and store it on the result.
232 * c-opts.c (c_common_init_options): Set
233 global_dc->colorize_source_p.
234
6e232ba4
JN
2352015-11-12 James Norris <jnorris@codesourcery.com>
236 Joseph Myers <joseph@codesourcery.com>
237
238 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
239 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
240 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
241 PRAGMA_OACC_CLAUSE_LINK.
242
e78bede6
MP
2432015-11-11 Marek Polacek <polacek@redhat.com>
244
245 PR c/68107
246 PR c++/68266
247 * c-common.c (valid_array_size_p): New function.
248 * c-common.h (valid_array_size_p): Declare.
249
4ac93c7c
DH
2502015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
251
252 PR bootstrap/68271
253 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
254
69f293c9
AM
2552015-11-11 Andrew MacLeod <amacleod@redhat.com>
256
257 * array-notation-common.c: Remove unused header files.
258 * c-ada-spec.c: Likewise.
259 * c-cilkplus.c: Likewise.
260 * c-common.c: Likewise.
261 * c-cppbuiltin.c: Likewise.
262 * c-dump.c: Likewise.
263 * c-format.c: Likewise.
264 * c-gimplify.c: Likewise.
265 * c-indentation.c: Likewise.
266 * c-lex.c: Likewise.
267 * c-omp.c: Likewise.
268 * c-opts.c: Likewise.
269 * c-pch.c: Likewise.
270 * c-ppoutput.c: Likewise.
271 * c-pragma.c: Likewise.
272 * c-pretty-print.c: Likewise.
273 * c-semantics.c: Likewise.
274 * c-ubsan.c: Likewise.
275 * cilk.c: Likewise.
276 * stub-objc.c: Likewise.
277
3a40d81d
NS
2782015-11-09 Thomas Schwinge <thomas@codesourcery.com>
279 Cesar Philippidis <cesar@codesourcery.com>
280 James Norris <jnorris@codesourcery.com>
281 Julian Brown <julian@codesourcery.com>
282 Nathan Sidwell <nathan@codesourcery.com>
283
284 * c-pragma.c (oacc_pragmas): Add "routine".
285 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
286
ee45a32d
EB
2872015-11-08 Eric Botcazou <ebotcazou@adacore.com>
288
289 * c-common.c (c_common_attributes): Add scalar_storage_order.
290 (handle_scalar_storage_order_attribute): New function.
291 * c-pragma.c (global_sso): New variable.
292 (maybe_apply_pragma_scalar_storage_order): New function.
293 (handle_pragma_scalar_storage_order): Likewise.
294 (init_pragma): Register scalar_storage_order.
295 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
296 * c.opt (Wscalar-storage-order): New warning.
297 (fsso-struct=): New option.
298
eb11eb15
MS
2992015-11-08 Martin Sebor <msebor@redhat.com>
300
301 * c.opt (Wplacement-new): Add a period to the end of a sentence.
302
0aad0198
RS
3032015-11-07 Richard Sandiford <richard.sandiford@arm.com>
304
305 * c-common.c: Don't undef DEF_BUILTIN.
306
8a645150
DM
3072015-11-06 David Malcolm <dmalcolm@redhat.com>
308
309 * c-common.c (c_cpp_error): Convert parameter from location_t to
310 rich_location *. Eliminate the "column_override" parameter and
311 the call to diagnostic_override_column.
312 Update the "done_lexing" clause to set range 0
313 on the rich_location, rather than overwriting a location_t.
314 * c-common.h (c_cpp_error): Convert parameter from location_t to
315 rich_location *. Eliminate the "column_override" parameter.
316
7a5e4956
CP
3172015-11-05 Cesar Philippidis <cesar@codesourcery.com>
318 Thomas Schwinge <thomas@codesourcery.com>
319 James Norris <jnorris@codesourcery.com>
320
321 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
322 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
323 clauses with parallel and kernels and loops.
324 * c-pragma.h (enum pragma_omp_clause): Add entries for
325 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
326 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
327 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
328 INDEPENDENT,SEQ}.
329 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
330
e2f5cc96
MS
3312015-11-05 Martin Sebor <msebor@redhat.com>
332
333 PR c++/67942
334 * c.opt (-Wplacement-new): New option.
335
e01d41e5
JJ
3362015-11-05 Jakub Jelinek <jakub@redhat.com>
337
338 * c-common.h (c_finish_omp_atomic): Add TEST argument.
339 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
340 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
341 save_expr or create_tmp_var* if TEST is true.
342 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
343 Don't call add_stmt here.
344 (struct c_omp_check_loop_iv_data): New type.
345 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
346 c_omp_check_loop_iv_exprs): New functions.
347 (c_omp_split_clauses): Adjust for lastprivate being allowed on
348 distribute.
349 (c_omp_declare_simd_clauses_to_numbers): Change
350 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
351 (c_omp_declare_simd_clauses_to_decls): Similarly change those
352 from numbers to PARM_DECLs.
353
595278be
MM
3542015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
355
356 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
357 flag_checking.
358
c85158de
MS
3592015-11-03 Bernd Schmidt <bschmidt@redhat.com>
360
361 PR c++-common/67882
b3d5bc62
JJ
362 * c-common.h (fold_offsetof_1): Add argument.
363 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
364 offsetof expressions that reference elements past the end of
365 an array.
366
4bf9e5a8
TS
3672015-11-03 Thomas Schwinge <thomas@codesourcery.com>
368 Chung-Lin Tang <cltang@codesourcery.com>
369
370 * c-pragma.c (oacc_pragmas): Add "atomic".
371 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
372
3b1661a9
ES
3732015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
374
375 * c-common.c (handle_target_clones_attribute): New.
376 (c_common_attribute_table): Add handle_target_clones_attribute.
377 (handle_always_inline_attribute): Add check on target_clones attribute.
378 (handle_target_attribute): Ditto.
379
2adfab87
AM
3802015-10-29 Andrew MacLeod <amacleod@redhat.com>
381
382 * array-notation-common.c: Reorder #include's and remove duplicates.
383 * c-ada-spec.c: Likewise.
384 * c-cilkplus.c: Likewise.
385 * c-common.c: Likewise.
386 * c-cppbuiltin.c: Likewise.
387 * c-dump.c: Likewise.
388 * c-format.c: Likewise.
389 * c-gimplify.c: Likewise.
390 * c-indentation.c: Likewise.
391 * c-lex.c: Likewise.
392 * c-omp.c: Likewise.
393 * c-opts.c: Likewise.
394 * c-pch.c: Likewise.
395 * c-ppoutput.c: Likewise.
396 * c-pragma.c: Likewise.
397 * c-pretty-print.c: Likewise.
398 * c-semantics.c: Likewise.
399 * c-ubsan.c: Likewise.
400 * cilk.c: Likewise.
401 * stub-objc.c: Likewise.
402
d90ec4f2
JM
4032015-10-28 Jason Merrill <jason@redhat.com>
404
405 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
406
88bae6f4
TS
4072015-10-27 Thomas Schwinge <thomas@codesourcery.com>
408 James Norris <jnorris@codesourcery.com>
409 Cesar Philippidis <cesar@codesourcery.com>
410
411 PR c/64765
412 PR c/64880
413 * c-common.h (c_oacc_split_loop_clauses): Declare function.
414 * c-omp.c (c_oacc_split_loop_clauses): New function.
415
b1726d6c
MS
4162015-10-21 Martin Sebor <msebor@redhat.com>
417
418 PR driver/68043
419 * c.opt: End each sentence that describes an option with a period.
420
fa60eeb9
MP
4212015-10-20 Marek Polacek <polacek@redhat.com>
422
423 * array-notation-common.c (is_cilkplus_vector_p): Define.
424 * c-common.h (is_cilkplus_vector_p): Declare.
425
95979049
MP
4262015-10-20 Marek Polacek <polacek@redhat.com>
427
428 * c.opt (std=gnu++11): Do not describe as experimental.
429 (std=gnu++14): Likewise.
430
2a9fb712
JM
4312015-10-19 Jason Merrill <jason@redhat.com>
432
433 * c-cppbuiltin.c (c_cpp_builtins): Define
434 __cpp_nontype_template_args.
435
13b380a3
JM
4362015-10-19 Jason Merrill <jason@redhat.com>
437
438 * c-cppbuiltin.c (c_cpp_builtins): Define
439 __cpp_enumerator_attributes, __cpp_fold_expressions,
440 __cpp_unicode_characters.
441
d9a6bd32
JJ
4422015-10-13 Jakub Jelinek <jakub@redhat.com>
443 Aldy Hernandez <aldyh@redhat.com>
444
445 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
446 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
447 (c_define_builtins): Likewise.
448 * c-common.h (enum c_omp_clause_split): Add
449 C_OMP_CLAUSE_SPLIT_TASKLOOP.
450 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
451 (c_finish_omp_for): Add ORIG_DECLV argument.
452 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
453 201511 instead of 201307.
454 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
455 OMP_CRITICAL_CLAUSES to it.
456 (c_finish_omp_ordered): Add CLAUSES argument, set
457 OMP_ORDERED_CLAUSES to it.
458 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
459 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
460 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
461 constructs and new OpenMP 4.5 clauses. Clear
462 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
463 verification code.
464 * c-pragma.c (omp_pragmas_simd): Add taskloop.
465 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
466 (enum pragma_omp_clause): Add
467 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
468 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
469
624d31fe
RS
4702015-10-05 Richard Sandiford <richard.sandiford@arm.com>
471
472 * c-lex.c (interpret_float): Use real_equal instead of
473 REAL_VALUES_EQUAL.
474
b8fd7909
JM
4752015-10-04 Jason Merrill <jason@redhat.com>
476
477 Implement N4514, C++ Extensions for Transactional Memory.
478 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
479 (c_common_attribute_table): Add transaction_safe_dynamic.
480 transaction_safe now affects type identity.
481 (handle_tm_attribute): Handle transaction_safe_dynamic.
482 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
483 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
484 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
485 (D_TRANSMEM): New.
486 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
487 * c-pretty-print.c (pp_c_attributes_display): Don't print
488 transaction_safe in C++.
489
12651878
MP
4902015-10-02 Marek Polacek <polacek@redhat.com>
491
492 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
493
3e3b8d63
MP
4942015-10-02 Marek Polacek <polacek@redhat.com>
495
496 PR c/64249
497 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
498 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
499 * c.opt (Wduplicated-cond): New option.
500
0d1a8f75
JM
5012015-10-01 Joseph Myers <joseph@codesourcery.com>
502
503 * c.opt (std=c11): Do not describe as experimental.
504 (std=gnu11): Likewise.
505 (std=iso9899:2011): Likewise.
506
3e32ee19
NS
5072015-09-28 Nathan Sidwell <nathan@codesourcery.com>
508
509 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
510 (DEF_FUNCTION_TYPE_VAR_11): Delete.
511
974348ee
MP
5122015-09-25 Marek Polacek <polacek@redhat.com>
513
514 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
515 (ubsan_instrument_shift): Likewise.
516
15dbc1a6
MP
5172015-09-25 Marek Polacek <polacek@redhat.com>
518
519 PR sanitizer/64906
520 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
521
6b95d7cc
PP
5222015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
523
524 * c-indentation.c (should_warn_for_misleading_indentation):
525 Compare next_stmt_vis_column with guard_line_first_nws instead
526 of with guard_line_vis_column.
527
c1822f9c
MLI
5282015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
529
530 PR c/49654
531 PR c/49655
532 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
533 options and options not valid for the current language.
534
d5398058
PP
5352015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
536
537 * c-indentation.c (should_warn_for_misleading_indentation):
538 Float out and consolidate the calls to get_visual_column that
539 are passed guard_exploc as an argument. Compare
540 next_stmt_vis_column with guard_line_first_nws instead of with
541 body_line_first_nws.
542
6b333269
NS
5432015-09-22 Nathan Sidwell <nathan@codesourcery.com>
544
545 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
546 Wnamespaces): New C++ warnings.
547
a75f1574
JM
5482015-09-22 Jason Merrill <jason@redhat.com>
549
550 * c-common.h (abi_compat_version_crosses): New.
551 (warn_abi_version): Declare.
552 * c-common.c: Define it.
553 * c-opts.c (c_common_post_options): Handle it.
554 flag_abi_compat_version defaults to 8.
555
bdaaa8b7
VV
5562015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
557
558 Complete the implementation of N4230, Nested namespace definition.
559 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
560 __cpp_nested_namespace_definitions.
561
eaa797e8
MLI
5622015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
563
564 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
565
c4914de6
MLI
5662015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
567
568 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
569 when warning.
570 * c-pragma.h (pragma_lex): Add optional loc argument.
571
fcb87c50
MM
5722015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
573
574 * c-format.c (check_format_arg): Adjust to use common block size in all
575 object pools.
576
31bdd08a
DM
5772015-09-15 David Malcolm <dmalcolm@redhat.com>
578
579 * c-format.c (location_from_offset): Update for change in
580 signature of location_get_source_line.
581 * c-indentation.c (get_visual_column): Likewise.
582 (line_contains_hash_if): Likewise.
583
aa9f4b4c
MP
5842015-09-14 Marek Polacek <polacek@redhat.com>
585
586 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
587 setting various warnings.
588
aa256c4a
MP
5892015-09-14 Marek Polacek <polacek@redhat.com>
590
591 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
592 a negative value.
593
0f876f22
MW
5942015-09-11 Mark Wielaard <mjw@redhat.com>
595
596 PR c/28901
597 * c.opt (Wunused-variable): Option from common.opt.
598 (Wunused-const-variable): New option.
599
273aa49e
PC
6002015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
601
602 PR c++/53184
603 * c.opt ([Wsubobject-linkage]): Add.
604
1807ffc1
MS
6052015-09-03 Martin Sebor <msebor@redhat.com>
606
607 PR c/66516
608 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
609 functions.
610 * c-common.c (reject_gcc_builtin): Define.
611
38942840
BI
6122015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
613
614 PR middle-end/60586
615 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
616 prototype.
617 * c-gimplify.c (c_gimplify_expr): Added a call to the function
618 cilk_gimplify_call_params_in_spawned_fn.
619 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
620 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
621 unwrapping.
622
c316b5e4
MP
6232015-08-25 Marek Polacek <polacek@redhat.com>
624
625 PR middle-end/67330
626 * c-common.c (handle_weak_attribute): Don't check whether the
627 visibility can be changed here.
628
584a7c46
MLI
6292015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
630
631 * c-lex.c (c_lex_with_flags): Use explicit locations.
632
a79683d5
TS
6332015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
634
635 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
636 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
637
61717a45
FXC
6382015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
639
640 PR middle-end/36757
641 * c-common.c (check_builtin_function_arguments): Add check
642 for BUILT_IN_SIGNBIT argument.
643
329524f5
PC
6442015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
645
646 PR c++/67160
647 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
648 in c++1z mode.
649
4ee55665
MP
6502015-08-17 Marek Polacek <polacek@redhat.com>
651
652 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
653 with whitespaces before qualifier names.
654
b893e375
MP
6552015-08-12 Marek Polacek <polacek@redhat.com>
656
657 PR c++/55095
658 * c-common.c (maybe_warn_shift_overflow): Properly handle
659 left-shifting 1 into the sign bit.
660
c2d89095
MLI
6612015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
662
663 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
664
971e17ff
AS
6652015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
666 Braden Obrzut <admin@maniacsvault.net>
667 Jason Merrill <jason@redhat.com>
668
669 Add C++ Concepts TS support.
670 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
671 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
672 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
673 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
674 * c-opts.c (set_std_cxx1z): Set flag_concepts.
675 * c.opt (fconcepts): New.
676
b3d5bc62
JJ
6772015-08-02 Martin Sebor <msebor@redhat.com>
678
679 * c.opt (-Wframe-address): New warning option.
680
8ebca419
PP
6812015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
682
683 * c-indentation.c (should_warn_for_misleading_indentation):
684 Improve heuristics.
685
1a1e101f
PP
6862015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
687
688 * c-indentation.c (get_visual_column): Add parameter first_nws,
689 use it. Update comment documenting the function.
690 (is_first_nonwhitespace_on_line): Remove.
691 (should_warn_for_misleading_indentation): Replace usage of
692 of is_first_nonwhitespace_on_line with get_visual_column.
693
992118a1
PP
6942015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
695
696 * c-indentation.h (struct token_indent_info): Define.
697 (get_token_indent_info): Define.
698 (warn_for_misleading_information): Declare.
699 * c-common.h (warn_for_misleading_information): Remove.
700 * c-identation.c (warn_for_misleading_indentation):
701 Change declaration to take three token_indent_infos. Adjust
702 accordingly.
703 * c-identation.c (should_warn_for_misleading_indentation):
704 Likewise. Bail out early if the body is a compound statement.
705 (guard_tinfo_to_string): Define.
706
e8fa3817
JM
7072015-07-30 Jason Merrill <jason@redhat.com>
708
709 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
710 '*' for reference decay.
711
173864e8
MP
7122015-07-30 Marek Polacek <polacek@redhat.com>
713
714 * c-common.c (warn_tautological_cmp): Bail for float types.
715
f2afe6dd
MP
7162015-07-27 Marek Polacek <polacek@redhat.com>
717
718 PR bootstrap/67030
719 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
720
05b28fd6
MP
7212015-07-27 Marek Polacek <polacek@redhat.com>
722
723 PR c++/66555
724 PR c/54979
725 * c-common.c (find_array_ref_with_const_idx_r): New function.
726 (warn_tautological_cmp): New function.
727 * c-common.h (warn_tautological_cmp): Declare.
728 * c.opt (Wtautological-compare): New option.
729
5a5062b8
MP
7302015-07-23 Marek Polacek <polacek@redhat.com>
731
732 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
733 (ubsan_instrument_shift): Likewise.
734
dc891fe7
MP
7352015-07-23 Marek Polacek <polacek@redhat.com>
736
737 PR sanitizer/66908
738 * c-ubsan.c: Include gimplify.h.
739 (ubsan_instrument_division): Unshare OP0 and OP1.
740 (ubsan_instrument_shift): Likewise.
741
451b5e48
MP
7422015-07-20 Marek Polacek <polacek@redhat.com>
743 Richard Sandiford <richard.sandiford@arm.com>
744
745 PR c++/55095
746 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
747 Use EXPR_LOC_OR_LOC.
748 (maybe_warn_shift_overflow): New function.
749 * c-common.h (maybe_warn_shift_overflow): Declare.
750 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
751 * c.opt (Wshift-overflow): New option.
752
fb0b2914
ML
7532015-07-16 Martin Liska <mliska@suse.cz>
754
755 * c-format.c (static void check_format_info_main): Use
756 object_allocator instead of pool_allocator.
757 (check_format_arg): Likewise.
758 (check_format_info_main): Likewise.
759
903f5c23
AM
7602015-07-15 Andrew MacLeod <amacleod@redhat.com>
761
762 * c-opts.c: Remove multiline #include comment.
763
026c3cfd
AH
7642015-07-12 Aldy Hernandez <aldyh@redhat.com>
765
766 * c-common.c: Fix double word typos.
767
bb49ee66
EB
7682015-07-10 Eric Botcazou <ebotcazou@adacore.com>
769
770 * c-ada-spec.h (cpp_operation): Revert latest change.
771 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
772 constructors and destructors.
773
1916bcb5
AM
7742015-07-09 Andrew MacLeod <amacleod@redhat.com>
775
776 * c-common.h: Adjust includes for flags.h changes.
777 * stub-objc.c: Likewise.
026c3cfd 778
a9dcd529
EB
7792015-07-08 Eric Botcazou <ebotcazou@adacore.com>
780
781 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
782 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
783
b03b462f
JJ
7842015-07-08 Jakub Jelinek <jakub@redhat.com>
785
786 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
787 are to be removed, return NULL rather than original clauses list.
788
c7131fb2
AM
7892015-07-07 Andrew MacLeod <amacleod@redhat.com>
790
791 * array-notation-common.c: Adjust includes.
792 * c-ada-spec.c: Likewise.
793 * c-cilkplus.c: Likewise.
794 * c-common.h: Likewise.
795 * c-cppbuiltin.c: Likewise.
796 * c-dump.c: Likewise.
797 * c-format.c: Likewise.
798 * c-gimplify.c: Likewise.
799 * c-indentation.c: Likewise.
800 * c-lex.c: Likewise.
801 * c-omp.c: Likewise.
802 * c-opts.c: Likewise.
803 * c-pch.c: Likewise.
804 * c-ppoutput.c: Likewise.
805 * c-pragma.c: Likewise.
806 * c-pretty-print.c: Likewise.
807 * c-semantics.c: Likewise.
808 * c-ubsan.c: Likewise.
809 * cilk.c: Likewise.
810 * stub-objc.c: Likewise.
811
2a7fb83f
EB
8122015-07-07 Eric Botcazou <ebotcazou@adacore.com>
813
814 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
815 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
816
a03c9bf1
JM
8172015-07-01 Jason Merrill <jason@redhat.com>
818
36a85135
JM
819 * c-common.h (D_CXX11): Rename from D_CXX0X.
820 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
821 * c-common.c: Adjust.
822
e7fa68d5
JM
823 * c-opts.c (c_common_post_options): Default to C++14.
824
a03c9bf1
JM
825 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
826
fe95b036
ESR
8272015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
828
829 Implement N4197 - Adding u8 character literals
b3d5bc62 830 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 831 CPP_CHAR.
b3d5bc62 832 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 833 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 834 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
835 and CPP_UTF8CHAR tokens.
836 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 837
da2e71c9
MLI
8382015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
839
840 PR fortran/66605
841 * c-common.c (do_warn_unused_parameter): Move here.
842 * c-common.h (do_warn_unused_parameter): Declare.
843
b155cfd9
MP
8442015-06-29 Marek Polacek <polacek@redhat.com>
845
846 PR c/66322
847 * c-common.c (check_case_bounds): Add bool * parameter. Set
848 OUTSIDE_RANGE_P.
849 (c_add_case_label): Add bool * parameter. Pass it down to
850 check_case_bounds.
851 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
852 warning here.
853 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
854 declarations.
855
31521951
MP
8562015-06-27 Marek Polacek <polacek@redhat.com>
857
858 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
859 or VECTOR_INTEGER_TYPE_P throughout.
860 * c-gimplify.c: Likewise.
861
22d03525
MP
8622015-06-26 Marek Polacek <polacek@redhat.com>
863
864 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
865 * c-common.c (c_fully_fold_internal): Likewise.
866 (c_alignof_expr): Likewise.
867 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
868 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 869 * cilk.c (create_parm_list): Likewise.
22d03525 870
af05e6e5
MP
8712015-06-26 Marek Polacek <polacek@redhat.com>
872
873 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
874
f0889939
AM
8752015-06-25 Andrew MacLeod <amacleod@redhat.com>
876
877 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
878 * c-gimplify.c: Likewise.
879 * c-pragma.c: Likewise.
880 * c-ubsan.c: Likewise.
881 * cilk.c: Likewise.
882
ca752f39
RS
8832015-06-25 Richard Sandiford <richard.sandiford@arm.com>
884
885 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
886 ggc_hasher.
887
16a16ec7
AM
8882015-06-25 Andrew MacLeod <amacleod@redhat.com>
889
890 * cilk.c: Move calls.h after tm.h in the include chain.
891
0ae9bd27
MP
8922015-06-25 Marek Polacek <polacek@redhat.com>
893
894 * array-notation-common.c: Use VAR_P throughout.
895 * c-ada-spec.c: Likewise.
896 * c-common.c: Likewise.
897 * c-format.c: Likewise.
898 * c-gimplify.c: Likewise.
899 * c-omp.c: Likewise.
900 * c-pragma.c: Likewise.
901 * c-pretty-print.c: Likewise.
902 * cilk.c: Likewise.
903
62f9079a
MP
9042015-06-25 Marek Polacek <polacek@redhat.com>
905
906 * cilk.c (extract_free_variables): Use is_global_var.
907
0fa16060
RS
9082015-06-23 Richard Sandiford <richard.sandiford@arm.com>
909
910 * c-common.c: Don't include target-def.h.
911
a68ae2e1
MP
9122015-06-23 Marek Polacek <polacek@redhat.com>
913
914 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
915 when comparing INTEGER_CSTs.
916
c6a2f2d9
PMR
9172015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
918
919 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
920 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
921 (dump_ada_template): Skip partially specialized types.
922
6b4db501
MM
9232015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
924
925 * c-common.c (scalar_to_vector): Use std::swap instead of manually
926 swapping.
927
abb226c9
AM
9282015-06-17 Andrew MacLeod <amacleod@redhat.com>
929
930 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
931 * c-ada-spec.c: Likewise.
932 * c-cilkplus.c: Likewise.
933 * c-common.c: Likewise.
934 * c-common.h: Likewise.
935 * c-cppbuiltin.c: Likewise.
936 * c-dump.c: Likewise.
937 * c-format.c: Likewise.
938 * c-gimplify.c: Likewise.
939 * c-indentation.c: Likewise.
940 * c-lex.c: Likewise.
941 * c-omp.c: Likewise.
942 * c-opts.c: Likewise.
943 * c-pch.c: Likewise.
944 * c-ppoutput.c: Likewise.
945 * c-pragma.c: Likewise.
946 * c-pretty-print.c: Likewise.
947 * c-semantics.c: Likewise.
948 * c-ubsan.c: Likewise.
949 * cilk.c: Likewise.
950 * stub-objc.c: Likewise.
951
076fecad
PP
9522015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
953
954 PR c++/65168
955 * c-common.c (c_common_truthvalue_conversion): Warn when
956 converting an address of a reference to a truth value.
957
13fdf2e2
AM
9582015-06-08 Andrew MacLeod <amacleod@redhat.com>
959
960 * array-notation-common.c : Adjust include files.
961 * c-ada-spec.c : Likewise.
962 * c-cilkplus.c : Likewise.
963 * c-common.c : Likewise.
964 * c-common.h : Likewise.
965 * c-cppbuiltin.c : Likewise.
966 * c-dump.c : Likewise.
967 * c-format.c : Likewise.
968 * c-gimplify.c : Likewise.
969 * c-indentation.c : Likewise.
970 * c-lex.c : Likewise.
971 * c-omp.c : Likewise.
972 * c-opts.c : Likewise.
973 * c-pch.c : Likewise.
974 * c-ppoutput.c : Likewise.
975 * c-pragma.c : Likewise.
976 * c-pretty-print.c : Likewise.
977 * c-semantics.c : Likewise.
978 * c-ubsan.c : Likewise.
979 * cilk.c : Likewise.
980 * stub-objc.c : Likewise.
981
a1661b90
MP
9822015-06-08 Marek Polacek <polacek@redhat.com>
983
984 PR c/66415
985 * c-format.c (location_from_offset): Return LOC if LINE is null.
986
d7438551
AH
9872015-06-05 Aldy Hernandez <aldyh@redhat.com>
988
989 * c-common.h (c_parse_final_cleanups): New prototype.
990 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
991
b3d5bc62
JJ
9922015-06-04 Sriraman Tallam <tmsriram@google.com>
993
994 * c-common.c (noplt): New attribute.
995 (handle_noplt_attribute): New handler.
996
ecb9f223
AM
9972015-06-04 Andrew MacLeod <amacleod@redhat.com>
998
999 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1000 * c-ada-spec.c: Likewise.
1001 * c-cilkplus.c: Likewise.
1002 * c-common.c: Likewise.
1003 * c-common.h: Likewise.
1004 * c-cppbuiltin.c: Likewise.
1005 * c-dump.c: Likewise.
1006 * c-format.c: Likewise.
1007 * c-gimplify.c: Likewise.
1008 * c-indentation.c: Likewise.
1009 * c-lex.c: Likewise.
1010 * c-omp.c: Likewise.
1011 * c-opts.c: Likewise.
1012 * c-pch.c: Likewise.
1013 * c-ppoutput.c: Likewise.
1014 * c-pragma.c: Likewise.
1015 * c-pretty-print.c: Likewise.
1016 * c-semantics.c: Likewise.
1017 * c-ubsan.c: Likewise.
1018 * cilk.c: Likewise.
1019 * stub-objc.c: Likewise.
1020
6ac48155
DM
10212015-06-02 David Malcolm <dmalcolm@redhat.com>
1022
1023 PR c/66220:
1024 * c-indentation.c (should_warn_for_misleading_indentation): Use
1025 expand_location rather than expand_location_to_spelling_point.
1026 Don't warn if the guarding statement is more indented than the
1027 next/body stmts.
1028
773ce42e
DM
10292015-06-02 David Malcolm <dmalcolm@redhat.com>
1030
1031 * c-indentation.c (warn_for_misleading_indentation): Bail out
1032 immediately if -Wmisleading-indentation isn't enabled.
1033
4fef8379
ML
10342015-06-01 Martin Liska <mliska@suse.cz>
1035
1036 * c-format.c (check_format_arg):Use new type-based pool allocator.
1037 (check_format_info_main) Likewise.
1038
1edfb384
EB
10392015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1040
1041 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1042 (has_nontrivial_methods): Likewise.
1043
9677ef52
MP
10442015-05-25 Marek Polacek <polacek@redhat.com>
1045
1046 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1047
fd5c817a
MP
10482015-05-22 Marek Polacek <polacek@redhat.com>
1049
1050 PR c/47043
1051 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1052
a2f45fe6 10532015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1054
1055 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1056 STACK_GROWS_DOWNWARD.
1057
a2f45fe6 10582015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1059
1060 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1061 STACK_GROWS_DOWNWARD rather than if it is defined.
1062
0fee2ac2 10632015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1064
0fee2ac2
MLI
1065 PR c/52952
1066 * c-format.c (location_column_from_byte_offset): New.
1067 (location_from_offset): New.
1068 (struct format_wanted_type): Add offset_loc field.
1069 (check_format_info): Move handling of location for extra arguments
1070 closer to the point of warning.
1071 (check_format_info_main): Pass the result of location_from_offset
1072 to warning_at.
1073 (format_type_warning): Pass the result of location_from_offset
1074 to warning_at.
1075
cf4ef6f7
MP
10762015-05-20 Marek Polacek <polacek@redhat.com>
1077
1078 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1079
3a65ee74
MP
10802015-05-20 Marek Polacek <polacek@redhat.com>
1081
1082 * c-ada-spec.c (dump_sloc): Use DECL_P.
1083
21b634ae
MP
10842015-05-20 Marek Polacek <polacek@redhat.com>
1085
1086 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1087 * c-common.c: Likewise.
1088
0e50b624
DM
10892015-05-19 David Malcolm <dmalcolm@redhat.com>
1090
1091 * c-common.h (fe_file_change): Strengthen param from
1092 const line_map * to const line_map_ordinary *.
1093 (pp_file_change): Likewise.
1094 * c-lex.c (fe_file_change): Likewise.
1095 (cb_define): Use linemap_check_ordinary when invoking
1096 SOURCE_LINE.
1097 (cb_undef): Likewise.
1098 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1099 invoking cb_file_change.
1100 (c_finish_options): Likewise.
1101 (push_command_line_include): Likewise.
1102 (cb_file_change): Strengthen param "new_map" from
1103 const line_map * to const line_map_ordinary *.
1104 * c-ppoutput.c (cb_define): Likewise for local "map".
1105 (pp_file_change): Likewise for param "map" and local "from".
1106
fab27f52
MM
11072015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1108
1109 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1110
2fe1d762
TV
11112015-05-18 Tom de Vries <tom@codesourcery.com>
1112
1113 * c-common.c (build_va_arg_1): New function.
1114 (build_va_arg): Add address operator to va_list operand if necessary.
1115
7a37fa90
MM
11162015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1117
1118 PR c/48956
1119 * c-common.c (int_safely_convertible_to_real_p): Define.
1120 (unsafe_conversion_p): Check conversions involving complex types.
1121 (conversion_warning): Add new warning message for conversions which
1122 discard imaginary component.
1123 * c-common.h: (enum conversion_safety): Add new enumerator for such
1124 conversions.
1125
3aa3c9fc
MP
11262015-05-14 Marek Polacek <polacek@redhat.com>
1127
1128 PR c/66066
1129 PR c/66127
1130 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1131 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1132 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1133 use it. If FOR_INT_CONST, require that all evaluated operands be
1134 INTEGER_CSTs.
1135
c3388e62
DM
11362015-05-12 David Malcolm <dmalcolm@redhat.com>
1137
1138 * c-common.h (warn_for_misleading_indentation): New prototype.
1139 * c-indentation.c: New file.
1140 * c.opt (Wmisleading-indentation): New option.
1141
c7b38fd5
TV
11422015-05-12 Tom de Vries <tom@codesourcery.com>
1143
1144 PR tree-optimization/66010
1145 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1146
381bf11e
JM
11472015-05-09 Jason Merrill <jason@redhat.com>
1148
edff0c06
JM
1149 * c-opts.c (c_common_post_options): Also clear
1150 cpp_opts->cpp_warn_cxx11_compat.
1151
129211bc
JM
1152 * c-common.h (enum cxx_dialect): Add cxx_unset.
1153 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1154 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1155
381bf11e
JM
1156 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1157 (std=gnu++0x): Mark as Undocumented.
1158 (std=gnu++1y): Add deprecated message.
1159
fe191308
JM
11602015-05-08 Jason Merrill <jason@redhat.com>
1161
765189ff
JM
1162 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1163 * c-opts.c: Adjust.
1164
fe191308
JM
1165 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1166
755e528f
MP
11672015-05-08 Marek Polacek <polacek@redhat.com>
1168
1169 PR c/64918
1170 * c.opt (Woverride-init-side-effects): New option.
1171
0173bd2a
MP
11722015-05-07 Marek Polacek <polacek@redhat.com>
1173
1174 PR c/65179
1175 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1176 negative value.
1177 * c.opt (Wshift-negative-value): New option.
1178 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1179 when -Wextra and C99/C++11 mode.
1180
e0f0d3b9
MP
11812015-05-07 Marek Polacek <polacek@redhat.com>
1182 Martin Uecker <uecker@eecs.berkeley.edu>
1183
1184 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1185 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1186
8243e2a9
JM
11872015-05-05 Jason Merrill <jason@redhat.com>
1188
1189 * c.opt (Wterminate): New.
1190
577cd070
MP
11912015-04-30 Marek Polacek <polacek@redhat.com>
1192
1193 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1194 require that the non-constant be of a boolean type.
1195
0373796b
JT
11962015-04-29 Josh Triplett <josh@joshtriplett.org>
1197
e0f0d3b9
MP
1198 * c-common.c (handle_section_attribute): Refactor to reduce
1199 nesting and distinguish between error cases.
0373796b 1200
716c0ba6
MP
12012015-04-29 Marek Polacek <polacek@redhat.com>
1202
1203 PR c/64610
1204 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1205 with 0/1.
1206
8848828b
JJ
12072015-04-29 Jakub Jelinek <jakub@redhat.com>
1208
1209 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1210 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1211 HOST_BITS_PER_WIDE_INT.
1212
ecd0e562
TV
12132015-04-28 Tom de Vries <tom@codesourcery.com>
1214
1215 PR tree-optimization/65887
1216 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1217
2a877204 12182015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 1219 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
1220
1221 * c-ada-spec.c (in_function): Delete.
1222 (dump_generic_ada_node): Do not change in_function and remove the
1223 redundant code dealing with it.
1224 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1225 (print_ada_methods): Output the static member functions in a nested
1226 package after the regular methods as well as associated renamings.
1227
4853031e
MP
12282015-04-24 Marek Polacek <polacek@redhat.com>
1229
1230 PR c/65830
1231 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1232 and OPT_Wshift_count_overflow.
1233
8c2b7f79
MP
1234 PR c/63357
1235 * c-common.c (warn_logical_operator): Warn if the operands have the
1236 same expressions.
1237
b8787813
MP
12382015-04-24 Marek Polacek <polacek@redhat.com>
1239
1240 PR c/61534
1241 * c-common.c (warn_logical_operator): Bail if either operand comes
1242 from a macro expansion.
1243
8fba1830
BRF
12442015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1245
1246 PR target/55143
1247 * c-common.c (c_default_pointer_mode): Add definition.
1248 * c-common.h (c_default_pointer_mode): Add declaration.
1249
17958621
JJ
12502015-03-11 Jakub Jelinek <jakub@redhat.com>
1251
1252 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1253 on record_builtin_type argument.
1254
7ccb1a11
JJ
12552015-03-10 Jakub Jelinek <jakub@redhat.com>
1256
1257 PR c/65120
1258 * c-common.c (warn_logical_not_parentheses): Don't warn for
1259 !x == 0 or !x != 0.
1260
04fd785e
MP
12612015-03-07 Marek Polacek <polacek@redhat.com>
1262
1263 PR sanitizer/65280
1264 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1265 before trying to figure out whether we have a flexible array member.
1266
a4e26206
EB
12672015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1268 Jonathan Wakely <jwakely.gcc@gmail.com>
1269
1270 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1271
0d2489f4
EB
12722015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1273
1274 PR ada/65319
1275 * c-ada-spec.c (print_destructor): Remove obsolete code.
1276
83ed54d7
EB
12772015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1278
1279 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1280 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1281 DECL_TEMPLATE_RESULT emulations.
1282 (dump_ada_template)): Add guard for TYPE_METHODS.
1283
7631f0e2
MP
12842015-02-27 Marek Polacek <polacek@redhat.com>
1285
1286 PR c/65040
1287 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1288
d1783ae5
KT
12892015-02-27 Kai Tietz <ktietz@redhat.com>
1290
1291 PR c/35330
1292 * c-pragma.c (handle_pragma_weak): Do not try to create
1293 weak/alias of declarations not being function, or variable
1294 declarations.
1295
56a9f6bc
TS
12962015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1297
1298 PR libgomp/64625
1299 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1300 Remove macros.
1301 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1302
3d5cb23d
MP
13032015-02-16 Marek Polacek <polacek@redhat.com>
1304
1305 PR c/65066
1306 * c-format.c (check_format_types): Handle null param.
1307
fa008882
MP
13082015-02-13 Marek Polacek <polacek@redhat.com>
1309
1310 PR c/65040
1311 * c-format.c (check_format_types): Don't warn about different
1312 signedness if the original value is in the range of WANTED_TYPE.
1313
785f21af
JM
13142015-02-12 Jason Merrill <jason@redhat.com>
1315
1316 PR c++/64956
1317 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1318 to the current highest version.
1319 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1320
4886ec8e
JJ
13212015-02-04 Jakub Jelinek <jakub@redhat.com>
1322
1323 PR c/64824
1324 PR c/64868
1325 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1326 instead of RDIV_EXPR. Use build_binary_op instead of
1327 build2_loc.
1328
40fecdd6
JM
13292015-01-30 Joseph Myers <joseph@codesourcery.com>
1330
1331 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1332 to pass input_location as first argument.
1333
a0c88d06
TV
13342015-01-23 Tom de Vries <tom@codesourcery.com>
1335
1336 PR libgomp/64672
1337 * c.opt (fopenacc): Mark as LTO option.
1338
1506ae0e
TV
13392015-01-23 Tom de Vries <tom@codesourcery.com>
1340
1341 PR libgomp/64707
1342 * c.opt (fopenmp): Mark as LTO option.
1343
31be63ab
JJ
13442015-01-21 Jakub Jelinek <jakub@redhat.com>
1345
1346 PR c/63307
b1726d6c 1347 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
1348 (compare_decls): Fix up formatting.
1349
13502015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1351
1352 PR c/63307
1353 * cilk.c: Include vec.h.
1354 (struct cilk_decls): New structure.
1355 (wrapper_parm_cb): Split this function to...
1356 (fill_decls_vec): ...this...
1357 (create_parm_list): ...and this.
1358 (compare_decls): New function.
1359 (for_local_cb): Remove.
1360 (wrapper_local_cb): Ditto.
1361 (build_wrapper_type): For now first traverse and fill vector of
1362 declarations then sort it and then deal with sorted vector.
1363 (cilk_outline): Ditto.
1364 (declare_one_free_variable): Ditto.
1365
6875457f
JM
13662015-01-21 Jason Merrill <jason@redhat.com>
1367
1368 PR c++/64629
1369 * c-format.c (check_format_arg): Call decl_constant_value.
1370
185c9e56
ML
13712015-01-19 Martin Liska <mliska@suse.cz>
1372
1373 * c-common.c (handle_noicf_attribute): New function.
1374
41dbbb37
TS
13752015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1376 Bernd Schmidt <bernds@codesourcery.com>
1377 James Norris <jnorris@codesourcery.com>
1378 Cesar Philippidis <cesar@codesourcery.com>
1379 Ilmir Usmanov <i.usmanov@samsung.com>
1380 Jakub Jelinek <jakub@redhat.com>
1381
1382 * c.opt (fopenacc): New option.
1383 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1384 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1385 New macros.
1386 * c-common.h (c_finish_oacc_wait): New prototype.
1387 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1388 (c_finish_oacc_wait): New function.
1389 * c-pragma.c (oacc_pragmas): New variable.
1390 (c_pp_lookup_pragma, init_pragma): Handle it.
1391 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1392 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1393 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1394 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1395 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1396 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1397 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1398 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1399 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1400 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1401 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1402 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1403 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1404 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1405 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1406 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1407 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1408 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1409 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1410 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1411 PRAGMA_OACC_CLAUSE_WORKER.
1412
5434dc07
MD
14132015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1414
1415 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1416 for the new option fstack-protector_explicit.
1417 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1418 (handle_stack_protect_attribute): New function.
1419
de1b5c17
MU
14202015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1421
1422 * c.opt: New option -Warray-bounds=.
1423
adfac8df
JJ
14242015-01-09 Michael Collison <michael.collison@linaro.org>
1425
1426 * array-notation-common.c: Include hash-set.h, machmode.h,
1427 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1428 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1429 * c-ada-spec.c: Ditto.
1430 * c-cilkplus.c: Ditto.
1431 * c-common.c: Include input.h due to flattening of tree.h.
1432 Define macro GCC_C_COMMON_C.
1433 * c-common.h: Flatten tree.h header files into c-common.h.
1434 Remove include of tree-core.h.
1435 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1436 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1437 fold-const.h, wide-int.h, and inchash.h due to
1438 flattening of tree.h.
1439 * c-dump.c: Ditto.
1440 * c-format.c: Flatten tree.h header files into c-common.h.
1441 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1442 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1443 fold-const.h, wide-int.h, and inchash.h due to
1444 flattening of tree.h.
1445 * c-dump.c: Include hash-set.h, machmode.h,
1446 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1447 fold-const.h, wide-int.h, and inchash.h due to
1448 flattening of tree.h.
1449 * c-format.c: Include hash-set.h, machmode.h,
1450 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1451 fold-const.h, wide-int.h, inchash.h and real.h due to
1452 flattening of tree.h.
1453 * c-gimplify.c: Include hash-set.h, machmode.h,
1454 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1455 fold-const.h, wide-int.h, and inchash.h due to
1456 flattening of tree.h.
1457 * cilk.c: Ditto.
1458 * c-lex.c: Ditto.
1459 * c-omp.c: Ditto.
1460 * c-opts.c: Ditto.
1461 * c-pch.c: Ditto.
1462 * c-ppoutput.c: Ditto.
1463 * c-pragma.c: Ditto.
1464 * c-pretty-print.c: Ditto.
1465 * c-semantics.c: Ditto.
1466 * c-ubsan.c: Ditto.
1467 * stub-objc.c: Ditto.
1468
f5481fc4
JM
14692015-01-08 Jason Merrill <jason@redhat.com>
1470
1471 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1472 do_ubsan_in_current_function.
1473 (ubsan_maybe_instrument_reference_or_call): Likewise.
1474 * c-ubsan.h: Declare it.
1475
de35aa66
MS
14762015-01-08 Mike Stump <mikestump@comcast.net>
1477
1478 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1479
4a9a42ab
MP
14802015-01-07 Marek Polacek <polacek@redhat.com>
1481
1482 PR c/64440
1483 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1484 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1485
2f42e5de
TS
14862015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1487
1488 PR c++/31397
1489 * c.opt (Wsuggest-override): New option.
1490
5624e564
JJ
14912015-01-05 Jakub Jelinek <jakub@redhat.com>
1492
1493 Update copyright years.
1494
5bd012f8
MP
14952015-01-05 Marek Polacek <polacek@redhat.com>
1496
1497 PR c/64423
1498 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1499 parameter. Use it.
1500 * c-common.h (warn_array_subscript_with_type_char): Update
1501 declaration.
1502
a7fa8d18
ESR
15032014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1504
1505 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1506 Control macro with flag_sized_deallocation.
1507
768952be
MU
15082014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1509
1510 * c.opt (Wdiscarded-array-qualifiers): New option.
1511
1f8d3e84
JJ
15122014-12-19 Jakub Jelinek <jakub@redhat.com>
1513
1514 PR preprocessor/63831
1515 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1516 and __has_cpp_attribute here.
1517 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1518 c_common_has_attribute.
1519 * c-common.h (c_common_has_attribute): New prototype.
1520 * c-lex.c (init_c_lex): Set cb->has_attribute to
1521 c_common_has_attribute instead of cb_has_attribute.
1522 (get_token_no_padding): New function.
1523 (cb_has_attribute): Renamed to ...
1524 (c_common_has_attribute): ... this. No longer static. Use
1525 get_token_no_padding, require ()s, don't build TREE_LIST
1526 unnecessarily, fix up formatting, adjust diagnostics, call
1527 init_attributes.
1528
20b06add
JM
15292014-12-15 Jason Merrill <jason@redhat.com>
1530
1531 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1532 (-Wsized-deallocation): New.
1533 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1534 to on in C++14 and up.
1535
94a073b2
JM
15362014-12-11 Jason Merrill <jason@redhat.com>
1537
acaa5911
JM
1538 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1539
94a073b2
JM
1540 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1541 we aren't complaining about VLAs.
1542
7fb66c15
MP
15432014-12-06 Marek Polacek <polacek@redhat.com>
1544
1545 PR tree-optimization/64183
1546 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1547 shift-expression if it is integer_type_node. Use types_compatible_p.
1548
b731b390
JJ
15492014-11-29 Jakub Jelinek <jakub@redhat.com>
1550
1551 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1552 last argument from create_tmp_var_raw and create_tmp_var calls.
1553 * cilk.c (gimplify_cilk_spawn): Likewise.
1554 * c-omp.c (c_finish_omp_atomic): Likewise.
1555
6a4da643
MP
15562014-11-28 Marek Polacek <polacek@redhat.com>
1557
1558 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1559 instead of unsigned_type_node.
1560
541e35a6
MP
15612014-11-28 Marek Polacek <polacek@redhat.com>
1562
1563 PR c/63862
1564 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1565 to op1_utype.
1566 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1567 expression to unsigned_type_node.
1568
dcc97066
MW
15692014-11-20 Mark Wielaard <mjw@redhat.com>
1570
1571 PR debug/38757
1572 * c-opts.c (set_std_c89): Set lang_hooks.name.
1573 (set_std_c99): Likewise.
1574 (set_std_c11): Likewise.
1575 (set_std_cxx98): Likewise.
1576 (set_std_cxx11): Likewise.
1577 (set_std_cxx14): Likewise.
1578 (set_std_cxx1z): Likewise.
1579
aa7da51a
JJ
15802014-11-21 Jakub Jelinek <jakub@redhat.com>
1581
1582 PR target/63764
1583 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1584 return type to bool.
009a3480 1585 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1586 (convert_vector_to_pointer_for_subscript): Change return type to
1587 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1588 and copy it into a TARGET_EXPR and use that instead of *vecp
1589 directly.
1590
538dd0b7
DM
15912014-11-19 David Malcolm <dmalcolm@redhat.com>
1592
1593 Merger of git branch "gimple-classes-v2-option-3".
1594 * ChangeLog.gimple-classes: New.
1595 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1596 from being just a vec<gimple> to a vec<gbind *>.
1597
c39a5e99
JJ
15982014-11-18 Jakub Jelinek <jakub@redhat.com>
1599
1600 PR sanitizer/63813
1601 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1602 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1603 get_pointer_alignment for non-pointers. Use ptype, or if it is
1604 reference type, corresponding pointer type, as type of kind
1605 argument.
1606 (ubsan_maybe_instrument_reference,
1607 ubsan_maybe_instrument_member_call): Adjust callers.
1608
8537a4a9
MP
16092014-11-15 Marek Polacek <polacek@redhat.com>
1610
1611 PR middle-end/63884
1612 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1613 for NULL fndecl.
1614 (extract_array_notation_exprs): Return for NULL node.
1615
2079956a
JM
16162014-11-12 Joseph Myers <joseph@codesourcery.com>
1617
1618 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1619 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1620
1304953e
JJ
16212014-11-12 Jakub Jelinek <jakub@redhat.com>
1622
1623 PR c/59708
1624 * c-common.c (check_builtin_function_arguments): Handle
1625 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1626
e5e44252
AK
16272014-11-10 Andi Kleen <ak@linux.intel.com>
1628
1629 PR c/60804
1630 * c-common.h (check_no_cilk): Declare.
1631 * cilk.c (get_error_location): New function.
1632 (check_no_cilk): Dito.
1633
e64b984d
AK
16342014-11-10 Andi Kleen <ak@linux.intel.com>
1635
1636 * cilk.c (recognize_spawn): Use expression location
1637 for error message.
1638
13c21655
PC
16392014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1640
1641 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1642
42fd12b1
ESR
16432014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1644
1645 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1646 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1647 (__cpp_range_based_for, __cpp_initializer_lists,
1648 __cpp_delegating_constructors, __cpp_nsdmi,
1649 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1650 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1651 __has_cpp_attribute.
1652 * c-lex.c (cb_has_attribute): New callback CPP function;
1653 (init_c_lex): Set has_attribute callback.
1654
6f450181
RB
16552014-11-04 Richard Biener <rguenther@suse.de>
1656
1657 * c-common.c (shorten_compare): Do not shorten mixed
1658 DFP and non-DFP compares.
1659
26f0e1d6
ESR
16602014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1661
1662 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1663 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1664 Commentary and rearrangement of tests.
1665 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1666 Commentary and rearrangement of tests.
1667 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1668 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1669
ef4bddc2
RS
16702014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1671
1672 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1673 enum from machine_mode.
1674
c582198b
AM
16752014-10-28 Andrew MacLeod <amacleod@redhat.com>
1676
adfac8df
JJ
1677 * c-common.c: Adjust include files.
1678 * c-gimplify.c: Ditto.
1679 * cilk.c: Ditto.
1680 * c-pragma.c: Ditto.
1681 * c-ubsan.c: Ditto.
c582198b 1682
60393bbc
AM
16832014-10-27 Andrew MacLeod <amacleod@redhat.com>
1684
1685 * c-gimplify.c: Adjust include files.
1686
d723bb7c
MLI
16872014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1688
1689 PR c++/53061
1690 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1691 c_common_initialize_diagnostics.
1692 * c-common.h: Likewise.
1693
90f3520e
MP
16942014-10-24 Marek Polacek <polacek@redhat.com>
1695
1696 PR c/56980
1697 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1698 print "struct"/"union"/"enum" for typedefed names.
1699
59d7607a
MP
17002014-10-23 Marek Polacek <polacek@redhat.com>
1701
1702 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1703 in unsigned type.
1704
d95a2703
JJ
17052014-10-22 Jakub Jelinek <jakub@redhat.com>
1706 Yury Gribov <y.gribov@samsung.com>
1707
1708 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1709 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1710 instead of flag_sanitize_recover as bool flag.
1711
8e6ef852
KY
17122014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1713
1714 * cilk.c: Revert previous change.
1715
948cf550
IZ
17162014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1717
1718 PR c/63307
1719 * cilk.c: Include vec.h.
1720 (struct cilk_decls): New structure.
1721 (wrapper_parm_cb): Split this function to...
1722 (fill_decls_vec): ...this...
1723 (create_parm_list): ...and this.
1724 (compare_decls): New function.
1725 (for_local_cb): Remove.
1726 (wrapper_local_cb): Ditto.
1727 (build_wrapper_type): For now first traverse and fill vector of
1728 declarations then sort it and then deal with sorted vector.
1729 (cilk_outline): Ditto.
1730 (declare_one_free_variable): Ditto.
1731
92574c7c
MP
17322014-10-17 Marek Polacek <polacek@redhat.com>
1733
1734 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1735 * c.opt (Wimplicit-int): Initialize to -1.
1736
83685514
AM
17372014-10-16 Andrew MacLeod <amacleod@redhat.com>
1738
1739 * c-pragma.c: Adjust include files.
1740 * c-semantics.c: Likewise.
1741
5b8300ea
DD
17422014-10-16 DJ Delorie <dj@redhat.com>
1743
1744 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1745 multiples of bytes.
1746
5f83e90b
JM
17472014-10-14 Jason Merrill <jason@redhat.com>
1748
1749 PR c++/63455
1750 * c-common.h (CPP_PREPARSED_EXPR): New.
1751 (N_CP_TTYPES): Adjust.
1752
d73326ca
MP
17532014-10-15 Marek Polacek <polacek@redhat.com>
1754
1755 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1756
78a7c317
DD
17572014-10-14 DJ Delorie <dj@redhat.com>
1758
1759 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1760 types, not just __int128.
1761 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1762 types, not just __int128.
1763 (cpp_atomic_builtins): Round pointer sizes up.
1764 (type_suffix): Use type precision, not specific types.
1765 * c-common.c (c_common_reswords): Remove __int128 special case.
1766 (c_common_type_for_size): Check for all __intN types, not just
1767 __int128.
1768 (c_common_type_for_mode): Likewise.
1769 (c_common_signed_or_unsigned_type): Likewise.
1770 (c_build_bitfield_integer_type): Likewise.
1771 (c_common_nodes_and_builtins): Likewise.
1772 (keyword_begins_type_specifier): Likewise.
1773 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1774 __intN variants.
1775
2a22f99c
TS
17762014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1777
1778 * c-common.c: Use hash_table instead of hashtab.
1779
2a8ef767
ESR
17802014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1781
adfac8df 1782 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1783 C++11 section.
1784
3c9aabbd
MG
17852014-10-03 Marc Glisse <marc.glisse@inria.fr>
1786
1787 PR c++/54427
1788 PR c++/57198
1789 PR c++/58845
1790 * c-common.c (warn_logical_operator): Punt for vectors.
1791
a15f7cb8
ESR
17922014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1793
1794 Implement SD-6: SG10 Feature Test Recommendations
1795 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1796 macros and the __has_header macro.
1797
8d0cf15e
JM
17982014-09-30 Jason Merrill <jason@redhat.com>
1799
dd5d5481
JM
1800 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1801 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1802 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1803
b752325e
JM
1804 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1805 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1806
8d0cf15e
JM
1807 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1808 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1809
083e891e
MP
18102014-09-24 Marek Polacek <polacek@redhat.com>
1811
1812 PR c/61405
1813 PR c/53874
1814 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1815
7861b648
AK
18162014-09-23 Andi Kleen <ak@linux.intel.com>
1817
1818 * c-common.c (handle_no_reorder_attribute): New function.
1819 (c_common_attribute_table): Add no_reorder attribute.
1820
9a79452d
JM
18212014-09-22 Joseph Myers <joseph@codesourcery.com>
1822
1823 * c-cppbuiltin.c (c_cpp_builtins): Define
1824 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1825 modes.
1826
dd69f047
JM
18272014-09-18 Joseph Myers <joseph@codesourcery.com>
1828
1829 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1830 for supported floating-point modes.
1831
737a4826
MLI
18322014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1833
1834 * c.opt (Wpsabi): Use LangEnabledBy.
1835 * c-opts.c (c_common_handle_option): Do not handle here.
1836
8cc4b7a2
JM
18372014-09-12 Joseph Myers <joseph@codesourcery.com>
1838
1839 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1840 macros for floating-point modes.
1841
179b5a55
MG
18422014-09-11 Marc Glisse <marc.glisse@inria.fr>
1843
1844 PR target/58757
1845 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1846 __*_DENORM_MIN__ without denormals.
1847
570a11fe
JJ
18482014-09-10 Jakub Jelinek <jakub@redhat.com>
1849
1850 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1851 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1852 ubsan_create_data callers.
1853 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1854 index is constant or BIT_AND_EXPR with constant mask and is
1855 small enough for the bound.
1856 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1857 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1858
b559c810
MLI
18592014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1860
1861 * c.opt: Add CppReason to various flags.
1862 (Wdate-time): Re-sort.
1863 * c-common.c: Include c-common.h earlier.
1864 (struct reason_option_codes_t): Delete.
1865 (c_option_controlling_cpp_error): Prefix global type and struct
1866 with cpp_.
1867
1ef33fd4
MLI
18682014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1869
1870 * c.opt (Wnormalized): New.
1871 (Wnormalized=): Use Enum and Reject Negative.
1872 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1873
66bb34c0
JM
18742014-09-08 Joseph Myers <joseph@codesourcery.com>
1875
1876 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1877 digits of floating-point modes if -fbuilding-libgcc.
1878
53d68b9f
JM
18792014-09-05 Joseph Myers <joseph@codesourcery.com>
1880
1881 * c-cppbuiltin.c (c_cpp_builtins): Also define
1882 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1883 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1884 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1885 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1886 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1887 __LIBGCC_STACK_GROWS_DOWNWARD__,
1888 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1889 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1890 __LIBGCC_DWARF_FRAME_REGISTERS__,
1891 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1892 __LIBGCC_STACK_POINTER_REGNUM__ and
1893 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1894 (builtin_define_with_value): Handle backslash-escaping in string
1895 macro values.
1896
f65586dc
RB
18972014-09-05 Richard Biener <rguenther@suse.de>
1898
1899 PR middle-end/63148
1900 * c-format.c (check_format_arg): Properly handle
1901 effectively signed POINTER_PLUS_EXPR offset.
1902
2b71f4a4
MLI
19032014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1904
1905 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1906 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1907 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1908 and Init.
1909 * c-opts.c (c_common_handle_option): Do not handle here.
1910 (sanitize_cpp_opts): Likewise.
1911 * c-common.c (struct reason_option_codes_t): Handle
1912 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1913
d2e4feca
MP
19142014-09-03 Marek Polacek <polacek@redhat.com>
1915
1916 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1917
9a771876
JJ
19182014-09-02 Jakub Jelinek <jakub@redhat.com>
1919 Balaji V. Iyer <balaji.v.iyer@intel.com>
1920 Igor Zamyatin <igor.zamyatin@intel.com>
1921
1922 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1923 * c-common.c (c_common_reswords): Added _Cilk_for.
1924 * c-common.h (enum rid): Added RID_CILK_FOR.
1925 (cilk_for_number_of_iterations): Add declaration.
1926 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1927 CILK_FOR.
1928 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1929 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1930
81b5d104
MLI
19312014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1932
1933 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1934 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1935 Wundef): Use CPP, Var and Init.
1936 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1937
b753b37b
MLI
19382014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1939
1940 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1941 * c-opts.c (c_common_handle_option): Do not handle here.
1942
028aee17
JM
19432014-08-25 Jason Merrill <jason@redhat.com>
1944
1945 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1946 -std=c++14 and -std=gnu++14, rather than the reverse.
1947 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1948 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1949 * c-common.h (cxx_dialect): Remove cxx1y.
1950
e4276ba5
ESR
19512014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1952
1953 * c-common.h (enum cxx_dialect): Add cxx14.
1954 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1955 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1956 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1957
a545cacd
JM
19582014-08-22 Jason Merrill <jason@redhat.com>
1959
1960 * c.opt (std=gnu++17): Fix alias.
1961
59ea0364
MP
19622014-08-22 Marek Polacek <polacek@redhat.com>
1963
1964 PR c++/62199
1965 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1966 check for vector types. Drop LHS argument.
1967 * c-common.h (warn_logical_not_parentheses): Adjust.
1968
596e808c
MLI
19692014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1970
1971 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1972 (Wmultichar): Likewise.
1973 (Wdate-time): Use C-family languages instead of Common. Use CPP
1974 and Var.
1975 * c-opts.c (c_common_handle_option): Do not handle the above
1976 options here.
1977 (sanitize_cpp_opts): Likewise.
1978
18767f65
MLI
19792014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1980
1981 PR fortran/44054
1982 * c-opts.c: Include tree-diagnostics.h.
1983 (c_diagnostic_finalizer): New.
1984 (c_common_initialize_diagnostics): Use it.
1985
b4413594
MLI
19862014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1987
1988 PR preprocessor/51303
1989 * c-common.c (struct reason_option_codes_t option_codes):
1990 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1991
43f9a13c
MLI
19922014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1993
1994 PR c/60975
1995 PR c/53063
1996 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1997 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1998 (c_common_post_options): Call init_global_opts_from_cpp.
1999 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2000
04159acf
MP
20012014-08-19 Marek Polacek <polacek@redhat.com>
2002
2003 PR c++/62153
2004 * c-common.c (maybe_warn_bool_compare): New function.
2005 * c-common.h (maybe_warn_bool_compare): Declare.
2006 * c.opt (Wbool-compare): New option.
2007
35aff4fb
MP
20082014-08-19 Marek Polacek <polacek@redhat.com>
2009
2010 * c.opt (Wc99-c11-compat): New option.
2011
177cce46
MP
20122014-08-19 Marek Polacek <polacek@redhat.com>
2013
2014 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2015 to warn_c90_c99_compat.
2016 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2017 to -1.
2018
6ae9194f
MLI
20192014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2020 Steven Bosscher <steven@gcc.gnu.org>
2021
2022 PR c/52952
2023 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2024 format_check_results.
2025 (check_function_format): Use true and add comment for boolean
2026 argument.
2027 (finish_dollar_format_checking): Use explicit location when warning.
2028 (check_format_info): Likewise.
2029 (check_format_arg): Set extra_arg_loc and format_string_loc.
2030 (check_format_info_main): Use explicit location when warning.
2031 (check_format_types): Pass explicit location.
2032 (format_type_warning): Likewise.
2033
8e54f6d3
MLI
20342014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2035
2036 PR fortran/44054
2037 * c-format.c: Handle Fortran flags.
2038
cd4e76fc
IZ
20392014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2040
2041 PR other/61962
2042 * array-notation-common.c (find_rank): Added handling for other
2043 types of references.
2044
f3bede71
MP
20452014-08-10 Marek Polacek <polacek@redhat.com>
2046
2047 PR c/51849
2048 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2049 * c.opt (Wc90-c99-compat): Add option.
2050
9f25a338
TS
20512014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2052
2053 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2054
62e4eb35
MP
20552014-08-03 Marek Polacek <polacek@redhat.com>
2056
2057 * c-common.c (check_case_value): Add location_t parameter. Use it.
2058 (c_add_case_label): Pass loc to check_case_value.
2059
b787e7a2
TS
20602014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2061
2062 * cilk.c: Use hash_map instead of pointer_map.
2063
6e2830c3
TS
20642014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2065
2066 * c-gimplify.c: Use hash_set instead of pointer_set.
2067
a7ee52fb
IZ
20682014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2069
2070 PR middle-end/61455
2071 * array-notation-common.c (extract_array_notation_exprs): Handling
2072 of DECL_EXPR added.
2073
944fa280
JJ
20742014-08-01 Jakub Jelinek <jakub@redhat.com>
2075
2076 * c-common.h (min_align_of_type): Removed prototype.
2077 * c-common.c (min_align_of_type): Removed.
2078 * c-ubsan.h (ubsan_maybe_instrument_reference,
2079 ubsan_maybe_instrument_member_call): New prototypes.
2080 * c-ubsan.c: Include stor-layout.h and builtins.h.
2081 (ubsan_maybe_instrument_reference_or_call,
2082 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2083 functions.
2084
b4dfdc11
MG
20852014-07-31 Marc Glisse <marc.glisse@inria.fr>
2086
2087 PR c++/60517
2088 * c.opt (-Wreturn-local-addr): Move to common.opt.
2089
a41844e5
JM
20902014-07-30 Jason Merrill <jason@redhat.com>
2091
2092 PR c++/61659
2093 PR c++/61687
2094 Revert:
2095 * c.opt (-fuse-all-virtuals): New.
2096
976d5a22
TT
20972014-07-30 Tom Tromey <tromey@redhat.com>
2098
2099 PR c/59855
2100 * c.opt (Wdesignated-init): New option.
2101 * c-common.c (c_common_attribute_table): Add "designated_init".
2102 (handle_designated_init): New function.
2103
cdc94aca
MP
21042014-07-24 Marek Polacek <polacek@redhat.com>
2105
2106 PR c/57653
2107 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2108
f41373b6
DS
21092014-07-16 Dodji Seketeli <dodji@redhat.com>
2110
2111 PR preprocessor/60723 - missing system-ness marks for macro tokens
2112 * c-ppoutput.c (struct print::prev_was_system_token): New data
2113 member.
2114 (init_pp_output): Initialize it.
2115 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2116 (do_line_change): Return a flag saying if a line marker was
2117 emitted or not.
2118 (scan_translation_unit): Detect if the system-ness of the token we
2119 are about to emit is different from the one of the previously
2120 emitted token. If so, emit a line marker. Avoid emitting useless
2121 adjacent line markers. Avoid emitting line markers for tokens
2122 originating from the expansion of built-in macros.
2123 (scan_translation_unit_directives_only): Adjust.
2124
4d661eaa
MP
21252014-07-15 Marek Polacek <polacek@redhat.com>
2126
2127 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2128 TYPE_MAX_VALUE is NULL.
2129
b108f48f
JJ
21302014-07-14 Jakub Jelinek <jakub@redhat.com>
2131
2132 PR middle-end/61294
2133 * c.opt (Wmemset-transposed-args): New warning.
2134
c0221884
JM
21352014-07-10 Jason Merrill <jason@redhat.com>
2136
2137 PR c++/61659
2138 PR c++/61687
2139 * c.opt (-fuse-all-virtuals): New.
2140
63dfbb95
RB
21412014-07-09 Richard Biener <rguenther@suse.de>
2142
2143 PR c-family/61741
2144 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2145 using unsigned arithmetic if overflow does not wrap instead of
2146 if overflow is undefined.
2147
773ec47f
MP
21482014-07-06 Marek Polacek <polacek@redhat.com>
2149
2150 PR c/6940
2151 * c.opt (Wsizeof-array-argument): New option.
2152
00a7ba58
JJ
21532014-07-03 Jakub Jelinek <jakub@redhat.com>
2154
b1726d6c 2155 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2156 comments->count <= 1, as comments->entries might be NULL.
2157
52ec0ea3
MP
21582014-07-01 Marek Polacek <polacek@redhat.com>
2159
2160 * c.opt (Wint-conversion): New option.
2161
d5c3d343
MP
21622014-07-01 Marek Polacek <polacek@redhat.com>
2163
2164 PR c/58286
2165 * c.opt (Wincompatible-pointer-types): New option.
2166
6e7ceb17
PC
21672014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2168
2169 PR c++/51400
2170 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2171 Do not discard TYPE_QUALS of type.
2172
da73100b
JM
21732014-06-26 Jason Merrill <jason@redhat.com>
2174
2175 * c-common.h (enum cxx_dialect): Add cxx1z.
2176 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2177 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2178
08eedf75
TJ
21792014-06-26 Teresa Johnson <tejohnson@google.com>
2180
2181 * c-common.h (get_dump_info): Declare.
2182 * c-gimplify.c (c_genericize): Use saved dump files.
2183 * c-opts.c (c_common_parse_file): Begin and end dumps
2184 once around parsing invocation.
2185 (get_dump_info): New function.
2186
7b56b2f8
MP
21872014-06-23 Marek Polacek <polacek@redhat.com>
2188 Andrew MacLeod <amacleod@redhat.com>
2189
2190 PR c/61553
2191 * c-common.c (get_atomic_generic_size): Don't segfault if the
2192 type doesn't have a size.
2193
0e37a2f3
MP
21942014-06-20 Marek Polacek <polacek@redhat.com>
2195
2196 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2197 (ubsan_walk_array_refs_r): New function.
2198 (c_genericize): Instrument array bounds.
2199 * c-ubsan.c: Include "internal-fn.h".
2200 (ubsan_instrument_division): Mark instrumented arrays as having
2201 side effects. Adjust ubsan_type_descriptor call.
2202 (ubsan_instrument_shift): Likewise.
2203 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2204 (ubsan_instrument_bounds): New function.
2205 (ubsan_array_ref_instrumented_p): New function.
2206 (ubsan_maybe_instrument_array_ref): New function.
2207 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2208 (ubsan_array_ref_instrumented_p): Declare.
2209 (ubsan_maybe_instrument_array_ref): Declare.
2210
22112014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
2212
2213 PR lto/61123
2214 * c.opt (fshort-enums): Add to LTO.
2215 * c.opt (fshort-wchar): Likewise.
2216
5c3d09f7
MP
22172014-06-16 Marek Polacek <polacek@redhat.com>
2218
2219 PR c/60439
2220 * c.opt (Wswitch-bool): Add Var.
2221
9cf32741
JJ
22222014-06-12 Jakub Jelinek <jakub@redhat.com>
2223
2224 PR middle-end/61486
2225 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2226 #pragma omp target teams or
2227 #pragma omp {,target }teams distribute simd.
2228
62984918
JM
22292014-06-12 Jason Merrill <jason@redhat.com>
2230
2231 * c.opt (Wabi=, fabi-compat-version): New.
2232 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2233 (c_common_post_options): Handle flag_abi_compat_version default.
2234 Disallow -fabi-compat-version=1.
2235 * c-common.h (abi_version_crosses): New.
2236
f961457f
JH
22372014-06-11 Jan Hubicka <hubicka@ucw.cz>
2238
adfac8df 2239 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
2240 section names that are no longer trees.
2241
92d28cbb
JJ
22422014-06-10 Jakub Jelinek <jakub@redhat.com>
2243
2244 PR fortran/60928
2245 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2246 (omp_pragmas): ... back here.
2247
742938c9
MP
22482014-06-05 Marek Polacek <polacek@redhat.com>
2249
2250 PR c/49706
2251 * c-common.c (warn_logical_not_parentheses): New function.
2252 * c-common.h (warn_logical_not_parentheses): Declare.
2253 * c.opt (Wlogical-not-parentheses): New option.
2254
9d548dfb
MP
22552014-06-04 Marek Polacek <polacek@redhat.com>
2256
2257 PR c/30020
2258 * c-common.c (check_case_bounds): Add location parameter.
2259 Use it.
2260 (c_add_case_label): Pass loc to check_case_bounds.
2261
fedfecef
MP
22622014-06-03 Marek Polacek <polacek@redhat.com>
2263
2264 PR c/60439
2265 * c.opt (Wswitch-bool): New option.
2266
f6a7cffc
TS
22672014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2268
040d18b6
TS
2269 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2270 Remove prototypes.
2271 (record_types_used_by_current_var_decl): Move prototype to where
2272 it belongs.
2273
f6a7cffc
TS
2274 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2275 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2276 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2277
632f2871
RS
22782014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2279
2280 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2281 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2282 void_zero_node.
2283 * c-pretty-print.c (pp_c_void_constant): New function.
2284 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2285 (c_pretty_printer::expression): Handle VOID_CST.
2286 * cilk.c (extract_free_variables): Likewise.
2287 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2288 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2289
766090c2
TS
22902014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2291
2292 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2293 * c-pragma.c (push_alignment): Adjust.
2294 (handle_pragma_push_options): Likewise.
2295
661a0813
MP
22962014-05-09 Marek Polacek <polacek@redhat.com>
2297
2298 PR c/50459
2299 * c-common.c (check_user_alignment): Return -1 if alignment is error
2300 node.
2301 (handle_aligned_attribute): Don't call default_conversion on
2302 FUNCTION_DECLs.
2303 (handle_vector_size_attribute): Likewise.
2304 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2305 (handle_sentinel_attribute): Call default_conversion and allow even
2306 integral types as an argument.
2307
2793eeab
MP
23082014-05-08 Marek Polacek <polacek@redhat.com>
2309
2310 PR c/61053
2311 * c-common.c (min_align_of_type): New function factored out from...
2312 (c_sizeof_or_alignof_type): ...here.
2313 * c-common.h (min_align_of_type): Declare.
2314
f827930a
MP
23152014-05-08 Marek Polacek <polacek@redhat.com>
2316
2317 PR c/61077
2318 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2319 parameter type of main.
2320
ca49b74e
DD
23212014-05-07 DJ Delorie <dj@redhat.com>
2322
2323 * c-cppbuiltin.c (print_bits_of_hex): New.
2324 (builtin_define_type_minmax): Print values using hex so as not to
2325 require a pre-computed list of string values.
2326
1d60af08
KZ
23272014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2328 Mike Stump <mikestump@comcast.net>
2329 Richard Sandiford <rdsandiford@googlemail.com>
2330
2331 * c-ada-spec.c: Include wide-int.h.
2332 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2333 (dump_generic_ada_node): Use wide-int interfaces.
2334 * c-common.c: Include wide-int-print.h.
2335 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2336 (pointer_int_sum): Use wide-int interfaces.
2337 (c_common_nodes_and_builtins): Use make_int_cst.
2338 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2339 (handle_alloc_size_attribute): Use wide-int interfaces.
2340 (get_nonnull_operand): Likewise.
2341 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2342 * c-lex.c: Include wide-int.h.
2343 (narrowest_unsigned_type): Take a widest_int rather than two
2344 HOST_WIDE_INTs.
2345 (narrowest_signed_type): Likewise.
2346 (interpret_integer): Update accordingly. Use wide-int interfaces.
2347 (lex_charconst): Use wide-int interfaces.
2348 * c-pretty-print.c: Include wide-int.h.
2349 (pp_c_integer_constant): Use wide-int interfaces.
2350 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2351 INT_CST_LT_UNSIGNED.
2352
b15458be
RB
23532014-05-06 Richard Biener <rguenther@suse.de>
2354
2355 * c-opts.c (c_common_post_options): For -freestanding,
2356 -fno-hosted and -fno-builtin disable pattern recognition
2357 if not enabled explicitely.
2358
6577374e
MP
23592014-05-02 Marek Polacek <polacek@redhat.com>
2360
2361 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2362
d00887e8
MP
23632014-05-01 Marek Polacek <polacek@redhat.com>
2364
2365 PR c/43245
2366 * c.opt (Wdiscarded-qualifiers): Add.
2367
f8ed5150
MP
23682014-04-30 Marek Polacek <polacek@redhat.com>
2369
2370 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2371 INT_MIN / -1 sanitization only for integer types.
2372
45484dcf
MP
23732014-04-25 Marek Polacek <polacek@redhat.com>
2374
2375 PR c/18079
2376 * c-common.c (handle_noinline_attribute): Warn if the attribute
2377 conflicts with always_inline attribute.
2378 (handle_always_inline_attribute): Warn if the attribute conflicts
2379 with noinline attribute.
2380
38e514c0
MP
23812014-04-25 Marek Polacek <polacek@redhat.com>
2382
2383 PR c/60156
2384 * c-common.c (check_main_parameter_types): Warn about variadic main.
2385
44875f92
MS
23862014-04-24 Mike Stump <mikestump@comcast.net>
2387
2388 * c.opt (Wshadow-ivar): Default to on.
2389
dcaaa5a0
DP
23902014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2391
2392 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2393
c07d7c02
MP
23942014-04-23 Marek Polacek <polacek@redhat.com>
2395
2396 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2397
1c33c9b7
JJ
23982014-04-22 Jakub Jelinek <jakub@redhat.com>
2399
2400 PR sanitizer/60275
2401 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2402 if flag_sanitize_undefined_trap_on_error.
2403 (ubsan_instrument_division, ubsan_instrument_shift,
2404 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2405 if !flag_sanitize_recover.
2406
793c625f
MG
24072014-04-22 Marc Glisse <marc.glisse@inria.fr>
2408
2409 PR libstdc++/43622
2410 * c-common.c (registered_builtin_types): Make non-static.
2411 * c-common.h (registered_builtin_types): Declare.
2412
b0f1bf36
RB
24132014-04-14 Richard Biener <rguenther@suse.de>
2414 Marc Glisse <marc.glisse@inria.fr>
2415
2416 PR c/60819
2417 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2418 apply may-alias the scalar pointer type when applicable.
2419
3b07fa4a
IZ
24202014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2421
2422 PR middle-end/60467
2423 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2424 as possible argument for Cilk_spawn.
2425
cbbd2b1c
TB
24262014-04-11 Tobias Burnus <burnus@net-b.de>
2427
2428 PR c/60194
2429 * c.opt (Wformat-signedness): Add
2430 * c-format.c(check_format_types): Use it.
2431
6415bd5d
JM
24322014-04-11 Jason Merrill <jason@redhat.com>
2433
2434 PR c++/57926
2435 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2436 default_conversion for an array argument.
2437
6525783a
MP
24382014-04-08 Marek Polacek <polacek@redhat.com>
2439
2440 PR sanitizer/60745
2441 * c-ubsan.c: Include asan.h.
2442 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2443
880a467b
NS
24442014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2445
2446 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2447
7b59ff2d
MP
24482014-04-02 Marek Polacek <polacek@redhat.com>
2449
2450 * c-common.h (c_expand_expr): Remove declaration.
2451
8edbfaa6
JJ
24522014-03-28 Jakub Jelinek <jakub@redhat.com>
2453
2454 PR c++/60689
2455 * c-common.c (add_atomic_size_parameter): When creating new
2456 params vector, push the size argument first.
2457
07d72e1d
JJ
24582014-03-26 Jakub Jelinek <jakub@redhat.com>
2459
2460 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2461 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2462 ubsan_create_data callers.
2463
b35e0fa0
JJ
24642014-03-22 Jakub Jelinek <jakub@redhat.com>
2465
2466 PR debug/60603
2467 * c-opts.c (c_finish_options): Restore cb_file_change call to
2468 <built-in>.
2469
39a1ebb3
JJ
24702014-03-13 Jakub Jelinek <jakub@redhat.com>
2471
2472 PR middle-end/36282
2473 * c-pragma.c (apply_pragma_weak): Only look at
2474 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2475 DECL_ASSEMBLER_NAME_SET_P (decl).
2476 (maybe_apply_pending_pragma_weaks): Exit early if
2477 vec_safe_is_empty (pending_weaks) rather than only when
2478 !pending_weaks.
2479 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2480 set assembler name back to NULL afterwards.
2481
a07f6ed2
JM
24822014-03-11 Jason Merrill <jason@redhat.com>
2483
2484 * c.opt: Add -std=gnu++14.
2485
75b107f5
IB
24862014-03-11 Ian Bolton <ian.bolton@arm.com>
2487
2488 * c-opts.c (c_common_post_options): Don't override
2489 -ffp-contract=fast if unsafe-math-optimizations is on.
2490
f42c637e
PM
24912014-03-08 Paulo Matos <paulo@matos-sorge.com>
2492
2493 * c.opt: Enable LTO FE for fshort-double.
2494
70e24808
JM
24952014-03-07 Jason Merrill <jason@redhat.com>
2496
2497 * c.opt: Add -std=c++14.
2498
3af9c5e9
MP
24992014-03-06 Marek Polacek <polacek@redhat.com>
2500
2501 PR c/60197
2502 * cilk.c (contains_cilk_spawn_stmt): New function.
2503 (contains_cilk_spawn_stmt_walker): Likewise.
2504 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2505 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2506
b3bdf019
JJ
25072014-03-03 Jakub Jelinek <jakub@redhat.com>
2508
2509 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2510 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2511 even when flag_preprocess_only.
2512
ca7e759d
JM
25132014-02-26 Jason Merrill <jason@redhat.com>
2514
2515 PR c++/59231
2516 PR c++/11586
2517 * c-common.c (shorten_compare): Don't check
2518 c_inhibit_evaluation_warnings.
2519
28e41874
JJ
25202014-02-19 Jakub Jelinek <jakub@redhat.com>
2521
cca615af
JJ
2522 PR c/37743
2523 * c-common.c (c_common_nodes_and_builtins): When initializing
2524 c_uint{16,32,64}_type_node, also set corresponding
2525 uint{16,32,64}_type_node to the same value.
2526
28e41874
JJ
2527 PR c++/60267
2528 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2529 for PRAGMA_IVDEP if flag_preprocess_only.
2530
c2bf53a1
JJ
25312014-02-12 Jakub Jelinek <jakub@redhat.com>
2532
2533 PR c/60101
2534 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2535 if false, add ADD itself, rather than vice versa.
2536 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2537 copy. For SAVE_EXPR, only call merge_tlist once.
2538
8fcbce72
JJ
25392014-02-08 Jakub Jelinek <jakub@redhat.com>
2540
2541 PR middle-end/60092
2542 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2543 and tree_to_uhwi.
2544 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2545 functions.
2546 (c_common_attribute_table): Add alloc_align and assume_aligned
2547 attributes.
2548
0a756a3f
MP
25492014-02-06 Marek Polacek <polacek@redhat.com>
2550
2551 PR c/60087
2552 * c-common.c (warn_for_sign_compare): Call warning_at with location
2553 instead of warning.
2554
7ec4847a
MP
25552014-02-05 Marek Polacek <polacek@redhat.com>
2556
2557 PR c/53123
2558 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2559 statement.
2560
66f20604
MP
25612014-02-04 Marek Polacek <polacek@redhat.com>
2562
2563 PR c/60036
2564 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2565 SAVE_EXPR.
2566
5d77fb19
MG
25672014-02-03 Marc Glisse <marc.glisse@inria.fr>
2568
2569 PR c++/53017
2570 PR c++/59211
2571 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2572 handle_vector_size_attribute, handle_nonnull_attribute): Call
2573 default_conversion on the attribute argument.
2574 (handle_nonnull_attribute): Increment the argument number.
2575
81e5eca8
MP
25762014-01-31 Marek Polacek <polacek@redhat.com>
2577
2578 PR c/59963
2579 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2580 build_function_call_vec.
2581 (resolve_overloaded_builtin): Likewise.
2582 * c-common.h (build_function_call_vec): Adjust declaration.
2583
68fca595
MP
25842014-01-30 Marek Polacek <polacek@redhat.com>
2585
2586 PR c/59940
2587 * c-common.h (unsafe_conversion_p): Adjust declaration.
2588 (warnings_for_convert_and_check): Likewise.
2589 (convert_and_check): Likewise.
2590 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2591 expansion_point_location_if_in_system_header on it.
2592 (warnings_for_convert_and_check): Add location parameter. Call
2593 expansion_point_location_if_in_system_header on it. Use it.
2594 (convert_and_check): Add location parameter. Use it.
2595 (conversion_warning): Likewise.
2596 (c_add_case_label): Adjust convert_and_check calls.
2597 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2598
b72271b9
BI
25992014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2600
2601 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2602 flag_cilkplus.
2603 * c-pragma.c (init_pragma): Likewise.
2604 * c.opt: Likewise.
2605
393e8e8b
MP
26062014-01-23 Marek Polacek <polacek@redhat.com>
2607
2608 PR c/59846
2609 * c-common.c (shorten_compare): Add location_t parameter.
2610 * c-common.h (shorten_binary_op): Adjust declaration.
2611
f04dda30
MP
26122014-01-23 Marek Polacek <polacek@redhat.com>
2613
2614 PR c/58346
2615 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2616 * c-common.h: Declare it.
2617
621955cb
EB
26182014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2619
2620 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2621 * c-ada-spec.c (dump_ads): Likewise.
2622 (cpp_check): Likewise.
2623 (dump_ada_specs): Likewise.
2624
26252014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2626
2627 PR c++/49718
2628 * c-common.c (handle_no_instrument_function_attribute): Allow
2629 no_instrument_function attribute in class member
2630 definition/declaration.
2631
241f845a
JJ
26322014-01-15 Jakub Jelinek <jakub@redhat.com>
2633
2634 PR c/58943
2635 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2636 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2637 being COMPOUND_EXPR.
2638 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2639 operand a SAVE_EXPR and second MODIFY_EXPR.
2640
e83b8e2e
JJ
26412014-01-09 Jakub Jelinek <jakub@redhat.com>
2642
2643 PR target/58115
2644 * c-pch.c (c_common_write_pch): Call
2645 prepare_target_option_nodes_for_pch.
2646
23a5b65a
RS
26472014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2648
2649 Update copyright years
2650
f9030485
RS
26512014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2652
2653 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2654 the copyright notice.
2655
f2aa696b
EB
26562013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2657
2658 * c-ada-spec.c (print_constructor): New function.
2659 (print_destructor): Retrieve the origin of the destructor.
2660 (print_ada_declaration): Revamp handling of constructors/destructors.
2661
1f26ac87
JM
26622013-12-23 Stuart Hastings <stuart@apple.com>
2663 Bill Maddox <maddox@google.com>
2664 Jason Merrill <jason@redhat.com>
2665
2666 * c.opt: Add -fdeclone-ctor-dtor.
2667 * c-opts.c (c_common_post_options): Default to on iff -Os.
2668
41958c28
BI
26692013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2670
2671 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2672 attribute.
2673 * c-pragma.h (enum pragma_cilk_clause): Remove.
2674 (enum pragma_omp_clause): Added the following fields:
2675 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2676 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2677 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2678 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2679 PRAGMA_CILK_CLAUSE_UNIFORM.
2680
b1726d6c 2681
12893402
BI
26822013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2683
2684 * cilk.c (cilk_outline): Made this function non-static.
2685 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2686 (create_cilk_wrapper): Added a new parameter: a function pointer.
2687 (c_install_body_w_frame_cleanup): Remove
2688 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2689 * c-common.h (cilk_outline): New prototype.
2690 (gimplify_cilk_spawn): Removed two parameters.
2691 (cilk_install_body_with_frame_cleanup): New prototype.
2692 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2693 CILK_SPAWN_STMT case.
2694
085b42ed
BS
26952013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2696
2ce064c3
BS
2697 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2698
085b42ed
BS
2699 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2700 (int_array_type_node): Remove.
2701 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2702
9e36c9ed
MP
27032013-12-05 Marek Polacek <polacek@redhat.com>
2704
2705 PR c/52023
2706 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2707 [ADJUST_FIELD_ALIGN].
2708
296674db
JM
27092013-12-04 Joseph Myers <joseph@codesourcery.com>
2710
2711 PR c/52023
2712 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2713 and check field alignment if set.
2714 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2715 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2716
b1726d6c 27172013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
2718 Marek Polacek <polacek@redhat.com>
2719
2720 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2721 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2722
d7947e19
L
27232013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2724
2725 PR c/59309
2726 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2727 arguments.
2728
fad7652e
JJ
27292013-11-29 Jakub Jelinek <jakub@redhat.com>
2730
2731 PR c/59280
2732 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2733 goto invalid. If it is error_mark_node, don't issue further
2734 diagnostics.
2735
8b5e1202
SO
27362013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2737
2738 * c.opt (Wopenmp-simd): New.
2739
0a508bb6
JJ
27402013-11-22 Jakub Jelinek <jakub@redhat.com>
2741
2742 * c-ubsan.h (ubsan_instrument_return): New prototype.
2743 * c-ubsan.c (ubsan_instrument_return): New function.
2744
2fb9a547
AM
27452013-11-22 Andrew MacLeod <amacleod@redhat.com>
2746
2747 * c-common.c: Add required include files from gimple.h.
2748 * c-gimplify.c: Likewise
2749 * cilk.c: Likewise
2750
8400e75e
DM
27512013-11-22 David Malcolm <dmalcolm@redhat.com>
2752
2753 * c-common.c (unsafe_conversion_p): Remove use of
2754 EXPR_LOC_OR_HERE macro.
2755 (conversion_warning): Likewise.
2756 (warnings_for_convert_and_check): Likewise.
2757 (warn_for_collisions_1): Likewise.
2758 (shorten_compare): Likewise, and remove use of in_system_header
2759 macro, using the location from the former.
2760 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2761 (cb_def_pragma): Remove use of in_system_header macro.
2762 (lex_string): Likewise.
2763 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2764
eb1ce453
KZ
27652013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2766 Mike Stump <mikestump@comcast.net>
2767 Richard Sandiford <rdsandiford@googlemail.com>
2768
2769 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2770 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2771 tree_fits_shwi_p or tree_fits_uhwi_p.
2772 (dump_generic_ada_node): Likewise.
2773 * c-format.c (check_format_arg): Likewise.
2774 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2775
6b3b8c27
KZ
27762013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2777
2778 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2779
49b0aa18
JC
27802013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2781
2782 PR c/53001
2783 * c-common.c (unsafe_conversion_p): Make this function
2784 return an enumeration with more detail.
2785 (conversion_warning): Use the new return type of
2786 unsafe_conversion_p to separately warn either about conversions
2787 that lower floating point number precision or about the other
2788 kinds of conversions.
2789 * c-common.h (enum conversion_safety): New enumeration.
2790 (unsafe_conversion_p): switching return type to
2791 conversion_safety enumeration.
2792 * c.opt: Adding new warning -Wfloat-conversion and
2793 enabling it with -Wconversion.
2794
b826515a
BS
27952013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2796
2797 * c-opts.c: Include plugin.h.
2798 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2799
b9a55b13
MP
28002013-11-19 Marek Polacek <polacek@redhat.com>
2801
2802 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2803 call.
2804 (ubsan_instrument_shift): Likewise.
2805 (ubsan_instrument_vla): Likewise.
2806
7d362f6c
RS
28072013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2808
2809 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2810 cast to unsigned type.
2811
386b1f1f
RS
28122013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2813
2814 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2815 tree_low_cst.
2816 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2817 rather than tree_low_cst.
2818
ae7e9ddd
RS
28192013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2820
2821 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2822 tree_to_uhwi throughout.
2823
9439e9a1
RS
28242013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2825
2826 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2827 tree_low_cst (..., 0) with tree_to_shwi throughout.
2828
cc269bb6
RS
28292013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2830
2831 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2832 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2833
9541ffee
RS
28342013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2835
2836 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2837 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2838
c02065fc
AH
28392013-11-15 Aldy Hernandez <aldyh@redhat.com>
2840
2841 * c-cilkplus.c: New file.
2842 * c-common.c (readonly_error): Add location argument.
2843 * c-common.h (readonly_error): Same.
2844 (c_finish_cilk_clauses): Protoize.
2845 (c_check_cilk_loop): Same.
2846 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2847 Do not fail on error_mark_node.
2848 Abstract increment canonicalization to here...
2849 (c_omp_for_incr_canonicalize_ptr): New.
2850 c-pragma.c (init_pragma): Register "simd" pragma.
2851 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2852 (enum pragma_cilk_clause): New.
2853
9cc65f15
RS
28542013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2855
2856 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2857 wchar_type and host_integerp checks.
2858
18f429e2
AM
28592013-11-14 Andrew MacLeod <amacleod@redhat.com>
2860
2861 * c-common.c: Likewise.
2862 * c-gimplify.c: Likewise.
2863 * cilk.c: Likewise.
2864
d8a2d370
DN
28652013-11-14 Diego Novillo <dnovillo@google.com>
2866
2867 * c-common.c: Include fold-const.h.
2868 Include stor-layout.h.
2869 Include calls.h.
2870 Include stringpool.h.
2871 Include attribs.h.
2872 Include varasm.h.
2873 Include trans-mem.h.
2874 * c-cppbuiltin.c: Include stor-layout.h.
2875 Include stringpool.h.
2876 * c-format.c: Include stringpool.h.
2877 * c-lex.c: Include stringpool.h.
2878 Include stor-layout.h.
2879 * c-pragma.c: Include stringpool.h.
2880 Include attribs.h.
2881 Include varasm.h.
2882 Include gcc-symtab.h.
2883 * c-pretty-print.c: Include stor-layout.h.
2884 Include attribs.h.
2885 * cilk.c: Include stringpool.h.
2886 Include calls.h.
2887
38b7bc7f
JM
28882013-11-13 Joseph Myers <joseph@codesourcery.com>
2889
2890 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2891 * c-common.c (c_common_reswords): Add __auto_type.
2892 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2893
45b0be94
AM
28942013-11-12 Andrew MacLeod <amacleod@redhat.com>
2895
18f429e2
AM
2896 * c-common.c: Include gimplify.h.
2897 * c-gimplify.c: Likewise.
2898 * cilk.c: Likewise.
2899 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2900 * c-ubsan.c: Don't include gimple.h.
45b0be94 2901
582d9b50
JM
29022013-11-12 Joseph Myers <joseph@codesourcery.com>
2903
2904 * c-common.c (c_common_reswords): Add _Thread_local.
2905
6b28e197
JM
29062013-11-09 Joseph Myers <joseph@codesourcery.com>
2907
2908 * c-common.c (atomic_size_supported_p): New function.
2909 (resolve_overloaded_atomic_exchange)
2910 (resolve_overloaded_atomic_compare_exchange)
2911 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2912 Use it instead of comparing size with a local list of sizes.
2913
267bac10
JM
29142013-11-07 Andrew MacLeod <amacleod@redhat.com>
2915 Joseph Myers <joseph@codesourcery.com>
2916
2917 * c-common.h (enum rid): Add RID_ATOMIC.
2918 * c-common.c (c_common_reswords): Add _Atomic.
2919 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2920 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2921 * c-format.c (check_format_types): Check for extra _Atomic
2922 qualifiers in format argument.
2923 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2924 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2925
5157b91e
TB
29262013-11-06 Tobias Burnus <burnus@net-b.de>
2927
2928 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2929
6dbe0958
JM
29302013-11-06 Joseph Myers <joseph@codesourcery.com>
2931
2932 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2933 standards modes.
2934 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2935 to mean lack of IEEE 754 support.
2936
e8ff5196
TB
29372013-11-05 Tobias Burnus <burnus@net-b.de>
2938
2939 * c.opt (-Wdate-time): New option
2940 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2941
254a0760
JM
29422013-11-05 Joseph Myers <joseph@codesourcery.com>
2943
2944 * c-cppbuiltin.c (cpp_iec_559_value): Test
2945 flag_excess_precision_cmdline not flag_excess_precision.
2946
6d7f7e0a
TB
29472013-11-05 Tobias Burnus <burnus@net-b.de>
2948
2949 * c.opt (fopenmp-simd): New option.
2950 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2951 (omp_pragmas): ... this new struct.
2952 (c_pp_lookup_pragma): Also walk omp_pragmas.
2953 (init_pragma): Init pragmas for -fopenmp-simd.
2954
55a7f02f
MP
29552013-11-04 Marek Polacek <polacek@redhat.com>
2956
2957 PR c++/58979
2958 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2959
9193fb05
JM
29602013-11-04 Joseph Myers <joseph@codesourcery.com>
2961
2962 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2963 New functions.
2964 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2965
94159ecf
EB
29662013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2967
2968 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2969 (dump_ada_specs): Adjust prototype of second callback.
2970 * c-ada-spec.c (cpp_check): New global variable.
2971 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2972 (print_generic_ada_decl): Likewise.
2973 (has_static_fields): Change return type to bool and add guard.
2974 (has_nontrivial_methods): New predicate.
2975 (is_tagged_type): Change return type to bool.
2976 (separate_class_package): Call has_nontrivial_methods.
2977 (pp_ada_tree_identifier): Minor tweaks.
2978 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2979 (dump_ada_array_domains): Likewise.
2980 (dump_ada_array_type): Likewise.
2981 (dump_template_types): Remove cpp_check parameter and do not pass it to
2982 dump_generic_ada_node.
2983 (dump_ada_template): Likewise.
2984 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2985 recursively.
2986 (print_ada_methods): Change return type to integer. Remove cpp_check
2987 parameter and do not pass it down.
2988 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2989 dump_generic_ada_node.
2990 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2991 accessing methods.
2992 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2993 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2994 value of print_ada_methods.
2995 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2996 Set cpp_check to it before invoking dump_ada_nodes.
2997 (dump_ada_specs): Likewise.
2998
b906f4ca
MP
29992013-11-03 Marek Polacek <polacek@redhat.com>
3000
3001 * c-ubsan.c: Don't include hash-table.h.
3002 (ubsan_instrument_vla): New function.
3003 * c-ubsan.h: Declare it.
3004
5e20cdc9
DM
30052013-10-31 David Malcolm <dmalcolm@redhat.com>
3006
3007 Automated part of renaming of symtab_node_base to symtab_node.
3008
3009 Patch autogenerated by rename_symtab.py from
3010 https://github.com/davidmalcolm/gcc-refactoring-scripts
3011 revision 58bb219cc090b2f4516a9297d868c245495ee622
3012
3013 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3014 symtab_node_base to symtab_node.
3015
7057e645
ESR
30162013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3017
3018 Implement C++14 digit separators.
3019 * c-lex.c (interpret_float): Remove digit separators from scratch string
3020 before building real literal.
3021
193ea7bc
JJ
30222013-10-30 Jakub Jelinek <jakub@redhat.com>
3023
3024 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3025
939b37da
BI
30262013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3027
3028 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3029 fields.
3030 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3031 enabled.
3032 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3033 (insert_cilk_frame): New prototype.
3034 (cilk_init_builtins): Likewise.
3035 (gimplify_cilk_spawn): Likewise.
3036 (c_cilk_install_body_w_frame_cleanup): Likewise.
3037 (cilk_detect_spawn_and_unwrap): Likewise.
3038 (cilk_set_spawn_marker): Likewise.
3039 (build_cilk_sync): Likewise.
3040 (build_cilk_spawn): Likewise.
3041 * cilk.c: New file.
3042
67348ccc
DM
30432013-10-29 David Malcolm <dmalcolm@redhat.com>
3044
3045 Patch autogenerated by refactor_symtab.py from
3046 https://github.com/davidmalcolm/gcc-refactoring-scripts
3047 revision 58bb219cc090b2f4516a9297d868c245495ee622
3048
3049 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3050 to a true class hierarchy.
3051 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3052
d570872d
RS
30532013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3054
3055 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3056
98906124
JL
30572013-10-26 Jeff Law <law@redhat.com>
3058
adfac8df
JJ
3059 * c-common.c (c_define_builtins): Remove mudflap support.
3060 * c.opt: Ignore and warn for mudflap options.
98906124 3061
d73749df 30622013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3063
3064 PR other/33426
3065 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3066 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3067
3f04b1bb
JM
30682013-10-23 Jason Merrill <jason@redhat.com>
3069
3070 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3071
acf0174b
JJ
30722013-10-11 Jakub Jelinek <jakub@redhat.com>
3073
acd15a28
JJ
3074 * c-common.h (omp_clause_mask::operator !=): New method.
3075 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3076 instead of if (mask & something) tests everywhere.
3077
acf0174b
JJ
3078 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3079 201307 instead of 201107.
3080 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3081 (c_common_attribute_table): Add "omp declare target" and
3082 "omp declare simd" attributes.
3083 (handle_omp_declare_target_attribute,
3084 handle_omp_declare_simd_attribute): New functions.
3085 * c-omp.c: Include c-pragma.h.
3086 (c_finish_omp_taskgroup): New function.
3087 (c_finish_omp_atomic): Add swapped argument, if true,
3088 build the operation first with rhs, lhs arguments and use NOP_EXPR
3089 build_modify_expr.
3090 (c_finish_omp_for): Add code argument, pass it down to make_code.
3091 (c_omp_split_clauses): New function.
3092 (c_split_parallel_clauses): Removed.
3093 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3094 c_omp_declare_simd_clauses_to_decls): New functions.
3095 * c-common.h (omp_clause_mask): New type.
3096 (OMP_CLAUSE_MASK_1): Define.
3097 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3098 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3099 omp_clause_mask::operator |, omp_clause_mask::operator &,
3100 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3101 omp_clause_mask::operator ==): New methods.
3102 (enum c_omp_clause_split): New.
3103 (c_finish_omp_taskgroup): New prototype.
3104 (c_finish_omp_atomic): Add swapped argument.
3105 (c_finish_omp_for): Add code argument.
3106 (c_omp_split_clauses): New prototype.
3107 (c_split_parallel_clauses): Removed.
3108 (c_omp_declare_simd_clauses_to_numbers,
3109 c_omp_declare_simd_clauses_to_decls): New prototypes.
3110 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3111 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3112 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3113 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3114 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3115 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3116 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3117 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3118 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3119 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3120 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3121 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3122 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3123 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3124 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3125 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3126 PRAGMA_OMP_CLAUSE_UNIFORM.
3127
826cacfe
MG
31282013-10-09 Marc Glisse <marc.glisse@inria.fr>
3129
3130 PR tree-optimization/20318
3131 * c-common.c (handle_returns_nonnull_attribute): New function.
3132 (c_common_attribute_table): Add returns_nonnull.
3133
2284b034
MG
31342013-10-03 Marc Glisse <marc.glisse@inria.fr>
3135
3136 PR c++/19476
3137 * c.opt (fcheck-new): Move to common.opt.
3138
b56e9788
MP
31392013-09-25 Marek Polacek <polacek@redhat.com>
3140 Jakub Jelinek <jakub@redhat.com>
3141
3142 PR sanitizer/58413
3143 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3144 an expression if we can prove it is correct.
3145 (ubsan_instrument_division): Likewise. Remove unnecessary
3146 check.
3147
ce6923c5
MP
31482013-09-18 Marek Polacek <polacek@redhat.com>
3149
3150 PR sanitizer/58411
3151 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3152 Declare it.
3153 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3154
fb5610fb
IS
31552013-09-14 Iain Sandoe <iain@codesourcery.com>
3156
3157 PR target/48094
3158 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3159 fobjc-gc, freplace-objc-classes): Accept for LTO.
3160
88b0e79e
JC
31612013-09-13 Jacek Caban <jacek@codeweavers.com>
3162
3163 * c-target.def: New hook
3164
c9b0866a
PC
31652013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3166
3167 PR c++/43452
3168 * c.opt (Wdelete-incomplete): Add.
3169
0af94e6f
JR
31702013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3171
3172 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3173 (vector_types_compatible_elements_p): New function.
3174 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3175 declaration.
3176 (vector_types_compatible_elements_p): Declare.
3177
7c26172c
GDR
31782013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3179
3180 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3181 a virtual member function.
3182 (pp_simple_type_specifier): Remove.
3183 (pp_c_type_specifier): Likewise.
3184 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3185 Rename from pp_c_type_specifier. Adjust.
3186 (c_pretty_printer::c_pretty_printer): Do not assign to
3187 simple_type_specifier.
3188
20059c8b
GDR
31892013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3190
3191 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3192 member function.
3193 (c_pretty_printer::storage_class_specifier): Likewise.
3194 (c_pretty_printer::initializer): Likewise.
3195 (pp_declaration): Remove.
3196 (pp_declaration_specifiers): Likewise.
3197 (pp_abstract_declarator): Likewise.
3198 (pp_declarator): Likewise.
3199 (pp_type_id): Likewise.
3200 (pp_statement): Likewise.
3201 (pp_constant): Likewise.
3202 (pp_id_expression): Likewise.
3203 (pp_primary_expression): Likewise.
3204 (pp_unary_expression): Likewise.
3205 (pp_multiplicative_expression): Likewise.
3206 (pp_conditional_expression): Likewise.
3207 (pp_assignment_expression): Likewise.
3208 (pp_expression): Likewise.
3209 (pp_c_type_id): Likewise.
3210 (pp_c_storage_class_specifier): Likewise.
3211 * c-pretty-print.c (pp_c_type_cast): Tidy.
3212 (pp_c_pointer): Likewise.
3213 (pp_c_type_specifier): Likewise.
3214 (pp_c_parameter_type_list): Likewise.
3215 (pp_c_function_definition): Likewise.
3216 (pp_c_init_declarator): Likewise.
3217 (pp_c_initializer_list): Likewise.
3218 (pp_c_constructor_elts): Likewise.
3219 (c_pretty_printer::direct_abstract_declarator): Likewise.
3220 (c_pretty_printer::declaration_specifiers): Likewise.
3221 (c_pretty_printer::primary_expression): Likewise.
3222 (c_pretty_printer::postfix_expression): Likewise.
3223 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3224 (c_pretty_printer::storage_class_specifier): Rename from
3225 pp_c_storage_class_specifier.
3226 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3227 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3228 storage_class_specifier, initializer, offset_list, flags.
3229
de5a5fa1
MP
32302013-08-30 Marek Polacek <polacek@redhat.com>
3231
3232 * c-ubsan.c: New file.
3233 * c-ubsan.h: New file.
3234
8f0e4d72
GDR
32352013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3236
3237 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3238 member function.
3239 (c_pretty_printer::declaration_specifiers): Likewise.
3240 (c_pretty_printer::declarator): Likewise.
3241 (c_pretty_printer::abstract_declarator): Likewise.
3242 (c_pretty_printer::direct_abstract_declarator): Likewise.
3243 (c_pretty_printer::direct_declarator): Likewise.
3244 (c_pretty_printer::function_specifier): Likewise.
3245 (pp_declaration): Adjust.
3246 (pp_declaration_specifiers): Likewise.
3247 (pp_abstract_declarator): Likewise.
3248 (pp_direct_declarator): Likewise.
3249 (pp_function_specifier): Likewise.
3250 (pp_direct_abstract_declarator): Remove as unused.
3251 (pp_c_declaration): Remove.
3252 (pp_c_declaration_specifiers): Likewise.
3253 (pp_c_declarator): Likewise.
3254 (pp_c_direct_declarator): Likewise.
3255 (pp_c_function_specifier): Likewise.
3256 (pp_c_direct_abstract_declarator): Likewise.
3257 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3258 from pp_c_abstract_declarator. Adjust.
3259 (c_pretty_printer::direct_abstract_declarator): Rename from
3260 pp_c_direct_abstract_declarator. Adjust.
3261 (c_pretty_printer::function_specifier): Rename from
3262 pp_c_function_specifier. Adjust.
3263 (c_pretty_printer::declaration_specifiers): Rename from
3264 pp_c_declaration_specifiers. Adjust.
3265 (c_pretty_printer::direct_declarator): Rename from
3266 pp_c_direct_declarator. Adjust.
3267 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3268 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3269 (c_pretty_printer::c_pretty_printer): Do not assign to
3270 declaration, declaration_specifiers, declarator,
3271 direct_declarator, direct_abstract_declarator, function_specifier.
3272
00d34d3a
GDR
32732013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3274
3275 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3276 virtual member function.
3277 (c_pretty_printer::multiplicative_expression): Likewise.
3278 (c_pretty_printer::conditional_expression): Likewise.
3279 (c_pretty_printer::assignment_expression): Likewise.
3280 (c_pretty_printer::expression): Likewise.
3281 (pp_unary_expression): Adjust.
3282 (pp_multiplicative_expression): Likewise.
3283 (pp_assignment_expression): Likewise.
3284 (pp_conditional_expression): Likewise.
3285 (pp_expression): Likewise.
3286 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3287 from pp_c_unary_expression. Adjust.
3288 (c_pretty_printer::multiplicative_expression): Rename from
3289 pp_c_multiplicative_expression. Adjust.
3290 (c_pretty_printer::conditional_expression): Rename from
3291 pp_c_conditional_expression. Adjust.
3292 (c_pretty_printer::assignment_expression): Rename from
3293 pp_c_assignment_expression. Adjust.
3294 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3295 (c_pretty_printer::c_pretty_printer): Do not assign to
3296 unary_expression, multiplicative_expression,
3297 conditional_expression, expression.
3298
fb22178f
GDR
32992013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3300
3301 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3302 virtual member function.
3303 (pp_postfix_expression): Adjust.
3304 (pp_c_postfix_expression): Remove.
3305 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3306 from pp_c_postfix_expression. Adjust.
3307 (c_pretty_printer::c_pretty_printer): Do not assign to
3308 postfix_expression.
3309
7ecc2600
GDR
33102013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3311
3312 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3313 virtua member function.
3314 (pp_primary_expression): Adjust.
3315 (pp_c_primary_expression): Remove.
3316 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3317 from pp_c_primary_expression. Adjust.
3318 (pp_c_initializer_list): Use pp_primary_expression.
3319 (c_pretty_printer::c_pretty_printer): Do not assign to
3320 primary_expression.
3321
0691175f
GDR
33222013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3323
3324 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3325 * c-pretty-print.c (M_): Remove.
3326 (c_pretty_printer::translate_string): Define.
3327 (pp_c_type_specifier): Use it.
3328 (pp_c_primary_expression): Likewise.
3329 (pp_c_expression): Likewise.
3330
66dfe4c4
GDR
33312013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3332
3333 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3334 virtual function.
3335 (pp_c_id_expression): Remove.
3336 (pp_id_expression): Adjust.
3337 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3338 pp_c_id_expression. Adjust.
3339 (pp_c_postfix_expression): Use pp_id_expression.
3340 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3341
ca43e9d5
GDR
33422013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3343
3344 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3345 member function.
3346 (pp_constant): Adjust.
3347 (pp_c_constant): Remove.
3348 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3349 pp_c_constant. Adjust.
3350 (pp_c_constant)
3351 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3352 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3353
da6ca2b5
GDR
33542013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3355
3356 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3357 (c_pretty_printer::c_pretty_printer): Declare.
3358 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3359 c_pretty_printer_init. Adjust.
3360 (print_c_tree): Do not call c_pretty_printer_init.
3361 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3362
65a372f4
AC
33632013-08-09 Arnaud Charlet <charlet@adacore.com>
3364
3365 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3366
fd9b0f32
PC
33672013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3368
3369 PR c++/58080
3370 * c-common.c (pointer_int_sum): Add bool parameter.
3371 * c-common.h (pointer_int_sum): Adjust declaration.
3372
e0aec1e9
GDR
33732013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3374
3375 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3376 c_pretty_printer variable.
3377
b066401f
GDR
33782013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3379
3380 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3381 (pp_base): Remove.
3382 (pp_c_base): Likewise. Adjust users.
3383 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3384 (pp_c_whitespace): Do not call pp_base.
3385 (pp_c_left_paren): Likewise.
3386 (pp_c_right_paren): Likewise.
3387 (pp_c_left_brace): Likewise.
3388 (pp_c_right_brace): Likewise.
3389 (pp_c_left_bracket): Likewise.
3390 (pp_c_right_bracket): Likewise.
3391 (pp_c_dot): Likewise.
3392 (pp_c_ampersand): Likewise.
3393 (pp_c_star): Likewise.
3394 (pp_c_arrow): Likewise.
3395 (pp_c_semicolon): Likewise.
3396 (pp_c_complement): Likewise.
3397 (pp_c_exclamation): Likewise.
3398 (pp_c_direct_declarator): Likewise.
3399 (pp_c_ws_string): Likewise.
3400 (pp_c_identifier): Likewise.
3401 (pp_c_statement): Likewise.
3402 (print_c_tree): Likewise.
3403
65e5a578
ESR
34042013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3405
3406 PR c++/58072
3407 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3408 provide useful error strings.
3409
137a1a27
GDR
34102013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3411
3412 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3413 printer functions instead of pp_string or operators and punctuators.
3414 (dump_generic_ada_node): Likewise.
3415 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3416 (pp_c_relational_expression): Likewise.
3417 (pp_c_logical_or_expression): Likewise.
3418
07838b13
GDR
34192013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3420
3421 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3422 functions instead of pp_character.
3423 (pp_ada_tree_identifier): Likewise.
3424 (dump_ada_double_name): Likewise.
3425 (dump_ada_function_declaration): Likewise.
3426 (dump_ada_array_domains): Likewise.
3427 (dump_template_types): Likewise.
3428 (dump_generic_ada_node): Likewise.
3429 (print_ada_declaration): Likewise.
3430 (print_ada_struct_decl): Likewise.
3431 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3432
433cc7b0
TT
34332013-07-23 Tom Tromey <tromey@redhat.com>
3434
3435 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3436 * c-common.c (c_common_reswords): Add _Generic.
3437
688010ba
OB
34382013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3439
3440 * c-common.c: Fix typos.
3441 * c-common.h: Likewise.
3442
2a99e5e6
LL
34432013-07-13 Lubos Lunak <l.lunak@suse.cz>
3444
3445 PR c++/55203
3446 * c-common.c (c_common_attribute_table): Add warn_unused.
3447 (handle_warn_unused_attribute): New.
3448
c26302d5
JJ
34492013-07-10 Jakub Jelinek <jakub@redhat.com>
3450
3451 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3452 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3453
dfeadaa0
PC
34542013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3455
3456 PR c++/57869
3457 * c.opt: Add Wconditionally-supported.
3458
6a2fa4b2
GS
34592013-07-08 Graham Stott <graham.stott@btinternet.com>
3460
adfac8df 3461 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3462 unused variables l_length and l_node.
3463
ecdbd01a 34642013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3465
3466 PR c/57821
3467 * c-common.c (complete_array_type): Delay folding first index
3468 like other indices. When folding, check for index overflow.
3469
bedc293e
MG
34702013-06-27 Marc Glisse <marc.glisse@inria.fr>
3471
3472 PR c++/57509
3473 * c-common.h (c_build_vec_perm_expr): New complain argument.
3474 * c-common.c (c_build_vec_perm_expr): Likewise.
3475 Use save_expr also in C++.
3476
604b2bfc
GDR
34772013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3478
3479 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3480 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3481 * c-opts.c (c_common_post_options): Likewise.
3482
dfeadaa0 34832013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3484
3485 * array-notation-common.c (length_mismatch_in_expr): Changed the
3486 parameter type's from a dynamic array to a vec_tree. Also removed
3487 the size parameters.
3488 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3489 the change above.
3490
2ce86d2e
BI
34912013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3492
3493 * c-common.h (struct cilkplus_an_parts): New structure.
3494 (struct cilkplus_an_loop_parts): Likewise.
3495 (cilkplus_extract_an_triplets): New prototype.
3496 (fix_sec_implicit_args): Likewise.
3497 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3498 (fix_sec_implicit_args): Likewise.
604b2bfc 3499
07a6825b
BI
35002013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3501
3502 * array-notation-common.c (find_inv_trees): Removed an unwanted
3503 typecasting.
3504 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3505 enum rid to enum tree_code.
3506
08346abd
JH
35072013-06-11 Jan Hubicka <jh@suse.cz>
3508
3509 * c-common.c (handle_alias_ifunc_attribute): Do not set
3510 DECL_EXTERNAL for weakref variables.
3511 * c-pragma.c (handle_pragma_weak): Make sure aliases
3512 are not declared as external.
3513
d60f1706
BI
35142013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3515
3516 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3517 function from c/c-array-notation.c.
3518 (is_cilkplus_reduce_builtin): Likewise.
3519 (find_rank): Likewise.
3520 (extract_array_notation_exprs): Likewise.
3521 (replace_array_notations): Likewise.
3522 (find_inv_trees): Likewise.
3523 (replace_inv_trees): Likewise.
3524 (contains_array_notation_expr): Likewise.
3525 (find_correct_array_notation_type): Likewise.
3526 * c-common.h (struct inv_list): Moved this struct from the file
3527 c/c-array-notation.c and added a new field called additional tcodes.
3528 (length_mismatch_in_expr_p): New prototype.
3529 (is_cilkplus_reduce_builtin): Likewise.
3530 (find_rank): Likewise.
3531 (extract_array_notation_exprs): Likewise.
3532 (replace_array_notation): Likewise.
3533 (find_inv_trees): Likewise.
3534 (replace_inv_trees): Likewise.
3535 (find_correct_array_notation_type): Likewise.
dfeadaa0 3536
36536d79
BI
35372013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3538
3539 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3540 function array_notation_init_builtins is called.
3541 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3542 * c-common.def (ARRAY_NOTATION_REF): New tree.
3543 * c-common.h (build_array_notation_expr): New function declaration.
3544 (build_array_notation_ref): Likewise.
3545 (extract_sec_implicit_index_arg): New extern declaration.
3546 (is_sec_implicit_index_fn): Likewise.
3547 (ARRAY_NOTATION_CHECK): New define.
3548 (ARRAY_NOTATION_ARRAY): Likewise.
3549 (ARRAY_NOTATION_START): Likewise.
3550 (ARRAY_NOTATION_LENGTH): Likewise.
3551 (ARRAY_NOTATION_STRIDE): Likewise.
3552 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3553 ARRAY_NOTATION_REF.
3554 (pp_c_expression): Likewise.
3555 * c.opt (flag_enable_cilkplus): New flag.
3556 * array-notation-common.c: New file.
3557
f7716d57
JJ
35582013-05-14 Jakub Jelinek <jakub@redhat.com>
3559
3560 PR c++/57274
3561 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3562
a5e0cd1d
MG
35632013-05-10 Marc Glisse <marc.glisse@inria.fr>
3564
3565 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3566 vectors.
3567
f6bc1c4a
HS
35682013-05-07 Han Shen <shenhan@google.com>
3569
3570 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3571
3f12f6e9
SKS
35722013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3573
3574 * c-common.c (check_user_alignment): Emit error for negative values.
3575
61949153
PC
35762013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3577
3578 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3579
e93e18e9
PC
35802013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3581
3582 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3583 __GXX_EXPERIMENTAL_CXX1Y__.
3584
44d90fe1
PC
35852013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3586 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3587
3588 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3589 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3590 to simply use OPT_Wpointer_arith.
3591 (c_sizeof_or_alignof_type): Likewise.
3592
13f39b2e
PC
35932013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3594
3595 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3596
4b84d650
JJ
35972013-04-12 Jakub Jelinek <jakub@redhat.com>
3598
3599 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3600 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3601 specifiers.
3602
fb037b5d
SB
36032013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3604
3605 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3606
4e856798
PC
36072013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3608
3609 * c-common.c (pointer_int_sum): Remove dead code.
3610
4b1baac8
RS
36112013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3612
3613 PR middle-end/56524
3614 * c-common.c (handle_optimize_attribute): Don't call
3615 save_optabs_if_changed.
3616
0b50e654
JJ
36172013-03-05 Jakub Jelinek <jakub@redhat.com>
3618
3619 PR middle-end/56461
3620 * c-pch.c (pch_init): Free target_validity at the end.
3621
48c41403
JJ
36222013-03-04 Jakub Jelinek <jakub@redhat.com>
3623
3624 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3625
e664c61c
KS
36262013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3627 Jakub Jelinek <jakub@redhat.com>
3628
3629 PR sanitizer/56454
3630 * c-common.c (handle_no_sanitize_address_attribute): New function.
3631 (c_common_attribute_table): Add no_sanitize_address attribute.
3632 (handle_no_address_safety_analysis_attribute): Add
3633 no_sanitize_address attribute, not no_address_safety_analysis
3634 attribute.
3635
a475fd3d 36362013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3637
3638 PR target/52555
3639 * c-common.c (handle_optimize_attribute): Call
3640 save_optabs_if_changed.
3641
f6007d99
JJ
36422013-02-18 Jakub Jelinek <jakub@redhat.com>
3643 Steven Bosscher <steven@gcc.gnu.org>
3644
3645 PR pch/54117
3646 * c-opts.c (c_common_post_options): If debug info is enabled
3647 and non-dwarf*, refuse to load PCH files and when writing PCH
3648 file warn.
3649
cf35e2b1
JJ
36502013-02-05 Jakub Jelinek <jakub@redhat.com>
3651
3652 PR middle-end/56167
3653 * c-common.c (handle_error_attribute): Fix condition.
3654
32887460
JJ
36552013-01-30 Jakub Jelinek <jakub@redhat.com>
3656
3657 PR c++/55742
3658 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3659
5af057d8
JM
36602013-01-18 Jason Merrill <jason@redhat.com>
3661
3662 PR target/54908
3663 * c.opt (-fextern-tls-init): New.
3664 * c-opts.c (c_common_post_options): Handle it.
3665
cc83c823
JJ
36662013-01-09 Jakub Jelinek <jakub@redhat.com>
3667
3668 PR c/48418
3669 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3670 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3671 and is either negative or bigger or equal to type precision
3672 of the first operand.
3673
a859517f
MP
36742012-12-03 Marek Polacek <polacek@redhat.com>
3675
3676 PR c/55570
3677 * c-common.c (check_user_alignment): Swap order of tests,
3678 check TREE_CODE first.
3679
2d7aa578
ESR
36802012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3681
3682 PR c++/52654
3683 * c-common.h (overflow_type): New enum.
3684 (build_userdef_literal): Add overflow_type argument.
3685 (tree_userdef_literal): Add overflow_type.
3686 (USERDEF_LITERAL_OVERFLOW): New access macro.
3687 * c-common.c (build_userdef_literal): Add overflow_type
3688 argument.
3689 * c-lex.c (c_lex_with_flags): Add overflow_type to
3690 build_userdef_literal calls.
3691 (interpret_integer, interpret_float): Add overflow_type argument.
3692
cc3c4f62
RB
36932012-11-28 Richard Biener <rguenther@suse.de>
3694
3695 PR c/35634
3696 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3697 here and use a type with proper overflow behavior for types that would
3698 need to be promoted for the arithmetic.
3699
77bc5132
JJ
37002012-11-23 Jakub Jelinek <jakub@redhat.com>
3701
3702 PR sanitizer/55435
3703 * c-common.c (handle_no_address_safety_analysis_attribute): New
3704 function.
3705 (c_common_attribute_table): Add no_address_safety_analysis.
3706
5dc99c46
SB
37072012-11-16 Simon Baldwin <simonb@google.com>
3708
3709 * c.opt: Add f[no-]canonical-system-headers.
3710 * c-opts.c (c_common_handle_option): Handle
3711 OPT_fcanonical_system_headers.
3712
a4a0016d
ESR
37132012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3714
3715 PR c++/54413
3716 * c-opts.c (c_common_handle_option): Set new flags.
3717 * c.opt: Describe new flags.
3718
7dbb85a7
JM
37192012-11-09 Jason Merrill <jason@redhat.com>
3720
3721 * c.opt (Wabi-tag): New.
3722
ad7bac31
AK
37232012-11-09 Andi Kleen <ak@linux.intel.com>
3724
3725 PR 55139
3726 * c-common.c (get_atomic_generic_size): Mask with
3727 MEMMODEL_MASK
3728
7332899a
MLI
37292012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3730
3731 PR c/53063
3732 * c.opt (Wformat): Make it Alias Wformat=1.
3733 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3734 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3735 LangEnabledBy.
3736 (Wformat=): RejectNegative. Use LangEnabledBy.
3737 (Wnonnull): Use LangEnabledBy.
3738 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3739 * c-format.c (set_Wformat): Delete.
3740 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3741 (maybe_read_dollar_number): Likewise.
3742 (avoid_dollar_number): Likewise.
3743 (finish_dollar_format_checking): Likewise.
3744 (check_format_info): Likewise.
3745 (check_format_info_main): Likewise.
3746 (check_format_types): Likewise.
3747 (format_type_warning): Likewise.
3748 * c-common.c (int): Likewise.
3749 (check_function_sentinel): Likewise.
3750 * c-common.h (warn_format,set_Wformat): Do not declare here.
3751
34a180a6
MLI
37522012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3753
3754 PR c/53063
3755 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3756 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3757 Use LangEnabledBy.
3758 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3759 common.opt.
3760 (Wvariadic-macros): Init(1).
3761 * c-opts.c (c_common_handle_option): Do not handle them
3762 explicitly.
3763 (c_common_post_options): Likewise.
3764 (sanitize_cpp_opts): warn_unused_macros is now
3765 cpp_warn_unused_macros.
3766 (push_command_line_include): Likewise.
3767 * c-common.c (warn_unknown_pragmas): Do not define.
3768 * c-common.h (warn_unknown_pragmas): Do not declare.
3769
3f46d6a5
MLI
37702012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3771
3772 PR c/51294
3773 * c-common.c (conversion_warning): Handle conditional expressions.
3774
880661a4
JW
37752012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3776
3777 PR c++/54930
3778 * c.opt (Wreturn_local_addr): Define new option.
3779
4514a96b
JM
37802012-10-25 Jason Merrill <jason@redhat.com>
3781
f14edc1a
JM
3782 * c.opt (Wvirtual-move-assign): New.
3783
4514a96b
JM
3784 * c.opt (Winherited-variadic-ctor): New.
3785
93100c6b
MG
37862012-10-25 Marc Glisse <marc.glisse@inria.fr>
3787
3788 PR c++/54427
3789 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3790
1efcb8c6
JM
37912012-10-23 Joseph Myers <joseph@codesourcery.com>
3792
3793 * c-common.h (pch_cpp_save_state): Declare.
3794 * c-target.def (c_preinclude): New hook.
3795 * c-opts.c (done_preinclude): New.
3796 (push_command_line_include): Handle default preincluded header.
3797 (cb_file_change): Call pch_cpp_save_state when calling
3798 push_command_line_include.
3799 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3800 (pch_cpp_save_state): New.
3801 (pch_init): Call pch_cpp_save_state conditionally, instead of
3802 calling cpp_save_state.
3803
4a0ae68e
MLI
38042012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3805
3806 PR c/53063
3807 PR c/40989
3808 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3809 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3810 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3811 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3812 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3813 * c-opts.c (c_common_handle_option): Remove explicit handling from
3814 here.
3815 (c_common_post_options): Likewise.
3816
67e4210b
EB
38172012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3818
3819 * c-ada-spec.c (LOCATION_COL): Delete.
3820 (compare_location): New function.
3821 (compare_node): Use it.
3822 (compare_comment): Likewise.
3823
65d4f2cd
MLI
38242012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3825
3826 PR c/53063
3827 PR c/40989
3828 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3829 * c-opts.c (c_common_handle_option): Do not set them here. Add
3830 comment.
3831 (c_common_post_options): Likewise.
3832
909881cb
EB
38332012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3834
3835 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3836 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3837 Remove POINTER_TYPE handling, add large unsigned handling and use
3838 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3839
3a785c97
JJ
38402012-10-12 Jakub Jelinek <jakub@redhat.com>
3841
3842 PR c/54381
3843 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3844 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3845 locs and array of 3 trees instead of just single loc and single
3846 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3847 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3848 For *cmp* builtins that take two sources strings report warnings
3849 about first and second source, not about destination and source.
3850
5e54f81d
MG
38512012-10-12 Marc Glisse <marc.glisse@inria.fr>
3852
3853 PR c++/53055
3854 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3855
f5b02f1e
EB
38562012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3857
3858 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3859 declaring something coming from another file.
3860
b46dbc6c
AC
38612012-10-10 Arnaud Charlet <charlet@adacore.com>
3862
f5b02f1e 3863 PR ada/54845
b46dbc6c
AC
3864 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3865
5d9de0d0
PC
38662012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3867
3868 PR c++/54194
3869 * c-common.c (warn_about_parentheses): Add location_t parameter;
3870 use EXPR_LOC_OR_LOC.
3871 * c-common.h: Update declaration.
3872
a212e43f
MG
38732012-10-09 Marc Glisse <marc.glisse@inria.fr>
3874
3875 PR c++/54427
3876 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3877 more operations. Make error messages optional.
3878 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3879 (scalar_to_vector): Declare.
3880
b1db7f91
JM
38812012-10-08 Jason Merrill <jason@redhat.com>
3882
3883 * c-common.c (c_common_reswords): Add thread_local.
3884
e28d52cf
DS
38852012-10-08 Dodji Seketeli <dodji@redhat.com>
3886
3887 PR c++/53528 C++11 attribute support
3888 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3889 new functions.
3890 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3891 static function.
3892 (handle_aligned_attribute): In choose strictest alignment
3893 among many. Use new check_cxx_fundamental_alignment_constraints.
3894 (handle_transparent_union_attribute): In c++11 attribute syntax,
3895 don't look through typedefs.
3896
3b78de56
AC
38972012-10-04 Arnaud Charlet <charlet@adacore.com>
3898
3899 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3900 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3901 out of dumpfile.h.
3902
6040bb5f
DC
39032012-09-25 Dehao Chen <dehao@google.com>
3904
3905 PR middle-end/54645
3b78de56 3906 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3907 map when read in the pch.
3908
0b07a57e
AC
39092012-09-18 Arnaud Charlet <charlet@adacore.com>
3910
3911 * c-ada-spec.c: Style fixes.
3912
da5182be
TQ
39132012-09-18 Thomas Quinot <quinot@adacore.com>
3914
3915 * c.opt (-fada-spec-parent): Define new command line switch.
3916 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3917 is specified, generate binding spec as a child of the specified unit.
3918
0ccb505d
PC
39192012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3920 Manuel López-Ibáñez <manu@gcc.gnu.org>
3921
3922 PR c++/53210
3923 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3924
c583af79
AC
39252012-08-23 Arnaud Charlet <charlet@adacore.com>
3926
3927 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3928 for pointers, and add missing Convention C pragma.
3929 (print_ada_struct_decl): Add missing aliased keyword.
3930 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3931
1a4049e7
JJ
39322012-08-17 Jakub Jelinek <jakub@redhat.com>
3933
3934 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3935 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3936 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3937 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3938 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3939
70b5e7dc
RG
39402012-08-10 Richard Guenther <rguenther@suse.de>
3941
3942 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3943
f8923f7e
SB
39442012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3945
3946 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3947 instead of separate pp_newline and pp_flush.
3948 (print_c_tree): Likewise.
3949
e45abe1f
RH
39502012-07-26 Richard Henderson <rth@redhat.com>
3951
3952 * c-common.c (handle_hot_attribute): Allow labels.
3953 (handle_cold_attribute): Likewise.
3954
332f1d24
JJ
39552012-07-20 Jakub Jelinek <jakub@redhat.com>
3956
3957 PR c++/28656
3958 * c-common.c (check_function_nonnull): Handle multiple nonnull
3959 attributes properly.
3960
7ee2468b
SB
39612012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3962
3963 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3964 * c-ada-spec.c: Likewise.
3965 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3966
ee7b28eb
SB
39672012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3968
3969 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3970 Remove code conditional on it.
3971
6bdf3519
SB
39722012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3973
3974 * c-gimplify.c: Do not include basic-block.h.
3975 * c-common.c: Do not include linfuncs.h.
3976
532aafad
SB
39772012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3978
3979 * c-common.h: Include tree.h.
3980
8d0d1915
JM
39812012-07-02 Jason Merrill <jason@redhat.com>
3982
3983 PR c++/53524
3984 * c-common.c (get_priority): Call default_conversion.
3985
fbc873ad
UB
39862012-07-01 Uros Bizjak <ubizjak@gmail.com>
3987
3988 * c-pch.c (c_common_write_pch): Remove unused variables.
3989
d4a10d0a
SB
39902012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3991
3992 * cppspec.c: Moved from gcc/ to here.
3993
6f3a2e23
KT
39942012-06-27 Kai Tietz <ktietz@redhat.com>
3995
3996 PR preprocessor/37215
3997 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3998
8ca92d04
SB
39992012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4000
4001 * c-common.h (c_common_print_pch_checksum): Remove.
4002 * c-pch.c: Do not include output.h.
4003 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4004 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4005 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4006 (struct c_pch_header): Remove.
4007 (get_ident): Update gpch version.
4008 (pch_init): Do not print executable_checksum to asm_out_file.
4009 Do not fail if there is no asm_out_file to read back from. Set
4010 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4011 (c_common_write_pch): Verify that nothing was written to asm_out_file
4012 since pch_init was called. Do not write a c_pch_header, and do not
4013 copy from asm_out_file to the PCH.
4014 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4015 the content of asm_out_file from the PCH.
4016 (c_common_print_pch_checksum): Remove.
4017 * c-opts.c (c_common_init): Print out executable_checksum directly.
4018
70f42967
SB
40192012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4020
4021 * c-target.def (objc_declare_unresolved_class_reference,
4022 objc_declare_class_definition): Add new hooks.
4023
a8781821
SB
40242012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4025
4026 * c-lex.c: Do not include output.h.
4027 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4028 Remove uses of ASM_OUTPUT_IDENT.
4029
9e1a8dd1
RR
40302012-06-15 Marc Glisse <marc.glisse@inria.fr>
4031
4032 PR c++/51033
4033 * c-common.h (c_build_vec_perm_expr): Move decl here.
4034 * c-common.c (c_build_vec_perm_expr): Move definition
4035 here.
4036
6f07a821
SB
40372012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4038
4039 * c.opt (fconserve-space): Turn into a no-op.
4040
9faeb493 40412012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4042
4043 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4044 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4045 both the start and end of the function.
4046
a4b7d13c
SB
40472012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4048
4049 * c-common.c: Do not include output.h.
4050 * c-pragma.c: Likewise.
4051
c265f413
SA
40522012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4053
4054 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4055 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4056 (lang_decl_name): Handle namespace decls.
4057
be7a421e
SB
40582012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4059
4060 * c-ada-spec.c: Do not include output.h.
4061 * c-semantics.c: Likewise.
4062
65de6659
JM
40632012-05-29 Joseph Myers <joseph@codesourcery.com>
4064
4065 * c-common.c: Fix typo.
4066
ca5f4331
MM
40672012-05-29 Michael Matz <matz@suse.de>
4068
4069 * c-common.h (c_expand_decl): Remove prototype.
4070
4f7f7aca
MLI
40712012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4072
4073 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4074 * c-opts.c (c_common_handle_option): Remove code handling
4075 warn_missing_braces.
4076
4a792f9b
PC
40772012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4078
4079 PR c++/25137
4080 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4081 -Wmissing_braces.
4082
650dc14a
DS
40832012-05-22 Dodji Seketeli <dodji@redhat.com>
4084
4085 PR c++/53322
4086 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4087
9b095bf1
MLI
40882012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4089
4090 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4091 * c-opts.c (c_common_handle_option): Do not handle explicitly
4092 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4093
0b2c4be5
DS
40942012-05-16 Dodji Seketeli <dodji@redhat.com>
4095
4096 PR preprocessor/7263
4097 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4098 to cpp_classify_number. For diagnostics, use the precise location
4099 instead of the global input_location.
4100
a1bde5af
PC
41012012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4102
d02924ef 4103 PR c++/11856
a1bde5af
PC
4104 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4105
d1ede5f4
BS
41062012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4107
a1bde5af 4108 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4109
f2bc201f
MLI
41102012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4111
4112 PR 53063
4113 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4114 Wreorder): Use LangEnabledBy.
4115 * c-opts.c (c_common_handle_option): Do not enable them
4116 explicitly. Call lang-specific generated functions.
4117 (c_common_post_options): Do not set them here.
4118
95744782
MLI
41192012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4120
4121 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4122 Wmissing-field-initializers,Wmissing-parameter-type,
4123 Wold-style-declaration,Woverride-init): Use EnabledBy.
4124 * c-opts.c (c_common_post_options): Do not set here explicitly.
4125
7d5a5747
MLI
41262012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4127
4128 PR 53063
4129 * c-opts.c (c_common_handle_option): Use handle_generated_option
4130 to enable sub-options.
4131
5a3c9cf2
PC
41322012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4133
4134 PR c++/53158
4135 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4136
3ac8781c
RG
41372012-05-10 Richard Guenther <rguenther@suse.de>
4138
4139 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4140 adjust commentary about TYPE_IS_SIZETYPE types.
4141
1e537948
MLI
41422012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4143
4144 PR c++/53261
4145 * c-common.c (warn_logical_operator): Check that argument of
4146 integer_zerop is not NULL.
4147
f2c4a785
MLI
41482012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4149
4150 PR c/43772
4151 * c-common.c (warn_logical_operator): Do not warn if either side
4152 is already true or false.
4153
50f305ca
MLI
41542012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4155
4156 PR c/51712
4157 * c-common.c (expr_original_type): New.
4158 (shorten_compare): Do not warn for enumeration types.
4159
0c3641b0
MLI
41602012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4161
4162 * c.opt (fpermissive): Add Var(flag_permissive).
4163
7edaa4d2
MG
41642012-04-30 Marc Glisse <marc.glisse@inria.fr>
4165
4166 PR c++/51033
4167 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4168 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4169
b9c8da34
DS
41702012-04-30 Dodji Seketeli <dodji@redhat.com>
4171
4172 Add -Wvarargs option
4173 * c.opt (Wvarargs): Define new option.
4174
e6c69da0
MLI
41752012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4176
4177 * c-common.c (check_function_arguments): Replace
4178 Wmissing-format-attribute with Wsuggest-attribute=format.
4179
90137d8f
MLI
41802012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4181
4182 * c.opt (Wsuggest-attribute=format): New. Alias of
4183 Wmissing-format-attribute.
4184 * c-format.c (decode_format_type): Replace
4185 Wmissing-format-attribute with Wsuggest-attribute=format.
4186 (check_function_format): Likewise.
4187
9faeb493 41882012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4189
4190 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4191 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4192 * c.opt: Add Wliteral-suffix.
4193
c1771a20
MLI
41942012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4195
4196 PR c/44774
4197 * c.opt (Wpedantic): New.
4198 (pedantic): Alias Wpedantic.
4199 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4200 (c_common_post_options): Likewise.
4201 (sanitize_cpp_opts): Likewise.
4202 * c-lex.c (interpret_float): Likewise.
4203 * c-format.c (check_format_types): Likewise.
4204 * c-common.c (pointer_int_sum): Likewise.
4205 (c_sizeof_or_alignof_type): Likewise.
4206 (c_add_case_label): Likewise.
4207 (c_do_switch_warnings): Likewise.
4208 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4209
04b391c1
JM
42102012-04-15 Jason Merrill <jason@redhat.com>
4211
4212 PR c++/52818
4213 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4214 (C_STD_NAME): Distinguish between C++98 and C++11.
4215
ac868f29
EB
42162012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4217
4218 PR target/52624
4219 * c-common.h (uint16_type_node): Rename into...
4220 (c_uint16_type_node): ...this.
4221 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4222 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4223
fd4116f4
MLI
42242012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4225
4226 * c-common.c (warn_if_unused_value): Move definition to here.
4227 * c-common.h (warn_if_unused_value): Move declaration to here.
4228
573ac65e
WB
42292012-03-23 William Bader <williambader@hotmail.com>
4230
4231 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4232
552b8185
JM
42332012-03-20 Jason Merrill <jason@redhat.com>
4234
4235 * c-common.h (enum cxx_dialect): Add cxx1y.
4236 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4237 test.
4238 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4239 * c-opts.c (c_common_post_options): Likewise.
4240 (set_std_cxx1y): New.
4241 (c_common_handle_option): Call it.
4242 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4243
04398fa8
PC
42442012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4245
4246 PR c++/14710
4247 * c.opt ([Wuseless-cast]): Add.
4248
d2a12ae7
RG
42492012-03-16 Richard Guenther <rguenther@suse.de>
4250
4251 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4252
a12bf402
MLI
42532012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4254
4255 PR c++/44783
4256 * c.opt (ftemplate-backtrace-limit) Add.
4257
5c30094f
RO
42582012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4259
4260 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4261 handling.
4262 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4263 (init_pragma): Don't register extern_prefix.
4264
21fa2faf
RG
42652012-03-12 Richard Guenther <rguenther@suse.de>
4266
4267 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4268 (builtin_type_for_size): Likewise.
4269
e3793c6f
JJ
42702012-02-13 Jakub Jelinek <jakub@redhat.com>
4271
4272 PR c++/52215
4273 * c-common.c (sync_resolve_params): Don't decide whether to convert
4274 or not based on TYPE_SIZE comparison, convert whenever arg_type
4275 is unsigned INTEGER_TYPE.
4276
93286335
PC
42772012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4278
4279 PR c/52118
4280 * c.opt ([Wunused-local-typedefs]): Fix description.
4281
7a421706
MS
42822012-01-24 Mike Stump <mikestump@comcast.net>
4283
4284 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4285 exactly.
4286
ba9b1f11
RG
42872012-01-18 Richard Guenther <rguenther@suse.de>
4288
4289 * c-opts.c (c_common_post_options): Reset LTO flags if
4290 we are about to generate a PCH.
4291
465406be
PC
42922012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4293
4294 PR c++/51777
4295 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4296 use pp_unsigned_wide_integer.
4297
aee15221
RG
42982012-01-10 Richard Guenther <rguenther@suse.de>
4299
4300 PR middle-end/51806
4301 * c-opts.c (c_common_handle_option): Move -Werror handling
4302 to language independent code.
4303
5720c0dc
RG
43042012-01-05 Richard Guenther <rguenther@suse.de>
4305
4306 PR middle-end/51764
4307 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4308 from common.opt.
4309
73ac190a
PC
43102011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4311
4312 PR c++/51316
4313 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4314 of array types with an unknown bound.
4315
48b0b196
JM
43162011-12-20 Joseph Myers <joseph@codesourcery.com>
4317
4318 * c-common.c (flag_isoc99): Update comment to refer to C11.
4319 (flag_isoc1x): Change to flag_isoc11.
4320 * c-common.h (flag_isoc99): Update comment to refer to C11.
4321 (flag_isoc1x): Change to flag_isoc11.
4322 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4323 C11.
4324 * c-opts.c (set_std_c1x): Change to set_std_c11.
4325 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4326 Call set_std_c11.
4327 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4328 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4329 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4330 standard.
4331 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4332 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4333 (std=gnu1x): Make alias of std=gnu11.
4334
d58d6eb5
JM
43352011-12-19 Jason Merrill <jason@redhat.com>
4336
4337 PR c++/51228
4338 * c-common.c (handle_transparent_union_attribute): Check the first
4339 field if the type is complete.
4340
b3908fcc
JW
43412011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4342
4343 PR libstdc++/51365
4344 * c-common.c (RID_IS_FINAL): Add.
4345 * c-common.h (RID_IS_FINAL): Add.
4346
fea3ca91
IS
43472011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4348
4349 * c.opt (fgnu-runtime): Provide full description.
4350 (fnext-runtime): Likewise.
4351 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4352
62bad7cd
AM
43532011-11-28 Andrew MacLeod <amacleod@redhat.com>
4354
4355 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4356 predefines in one place. Add LOCK_FREE predefines.
4357 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4358 new func.
4359
c466c4ff
AM
43602011-11-24 Andrew MacLeod <amacleod@redhat.com>
4361
4362 PR c/51256
9faeb493 4363 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 4364 conditions
9faeb493
UB
4365 (resolve_overloaded_atomic_exchange,
4366 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
4367 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4368 error_mark_node for error conditions.
9faeb493 4369
a5952633
RG
43702011-11-08 Richard Guenther <rguenther@suse.de>
4371
4372 PR middle-end/51010
4373 c-family/
4374
0a35513e
AH
43752011-11-07 Richard Henderson <rth@redhat.com>
4376 Aldy Hernandez <aldyh@redhat.com>
4377 Torvald Riegel <triegel@redhat.com>
4378
4379 Merged from transactional-memory.
4380
4381 * c-common.c (handle_tm_wrap_attribute,
4382 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4383 (struct c_common_reswords): Added __transaction* keywords.
4384 (struct c_common_attribute_table): Added transaction* and tm_regparm
4385 attributes.
4386 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4387 masks.
4388 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4389 find_tm_attribute): Declare.
4390
6d87092d
JM
43912011-11-07 Jason Merrill <jason@redhat.com>
4392
4393 PR c++/35688
4394 * c-common.c, c-common.h: Revert yesterday's changes.
4395
8e7860a1
JM
43962011-11-06 Jason Merrill <jason@redhat.com>
4397
4398 PR c++/35688
4399 * c-common.c (decl_has_visibility_attr): Split out from...
4400 (c_determine_visibility): ...here.
4401 * c-common.h: Declare it.
4402
d19fa6b5
JM
44032011-11-06 Joseph Myers <joseph@codesourcery.com>
4404
4405 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4406 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4407 type.
4408 (check_user_alignment): New. Split out of
4409 handle_aligned_attribute. Disallow integer constants with
4410 noninteger types. Conditionally allow zero.
4411 (handle_aligned_attribute): Use check_user_alignment.
4412 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4413
86951993
AM
44142011-11-06 Andrew MacLeod <amacleod@redhat.com>
4415 Richard Henderson <rth@redhat.com>
4416
4417 Merged from cxx-mem-model.
4418
4419 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 4420 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
4421 parameters that are the same type size.
4422 (get_atomic_generic_size): New. Find size of generic
4423 atomic function parameters and do typechecking.
4424 (add_atomic_size_parameter): New. Insert size into parameter list.
4425 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4426 either __atomic_exchange_n or external library call.
9faeb493 4427 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 4428 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 4429 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
4430 __atomic_load_n or an external library call.
4431 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4432 __atomic_store_n or an external library call.
4433 (resolve_overloaded_builtin): Handle new __atomic builtins.
4434
cf9e9959
EB
44352011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4436
4437 PR c++/50608
4438 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4439 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4440 <INDIRECT_REF>: Return the argument.
4441 <ARRAY_REF>: Remove special code for negative offset.
4442 Call fold_build_pointer_plus instead of size_binop.
4443 (fold_offsetof): Remove STOP_REF argument and adjust.
4444 * c-common.h (fold_offsetof_1): Declare.
4445 (fold_offsetof): Remove STOP_REF argument.
4446
25339f10
JM
44472011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4448
4449 PR c++/50810
4450 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4451 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4452 Wnarrowing for C++0x and C++98.
4453 * c.opt ([Wnarrowing]): Update.
4454
89401152
PC
44552011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4456
4457 PR c++/44277
4458 * c.opt: Add Wzero-as-null-pointer-constant.
4459
97e3ad20
JM
44602011-10-31 Jason Merrill <jason@redhat.com>
4461
15694fdd
JM
4462 * c.opt (-fdeduce-init-list): Off by default.
4463
97e3ad20
JM
4464 PR c++/50920
4465 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4466 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4467 and -Wc++11-compat.
4468 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4469
fb9120e3
RAV
44702011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4471
4472 PR c++/30066
4473 * c.opt (fvisibility-inlines-hidden): Description change.
4474
3ce4f9e4
ESR
44752011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4476
4477 Implement C++11 user-defined literals.
4478 * c-common.c (build_userdef_literal): New.
4479 * c-common.def: New tree code.
4480 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4481 * c-lex.c (interpret_float): Add suffix parm.
4482 (c_lex_with_flags): Build literal tokens.
4483
5f53c243
PC
44842011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4485
4486 PR c++/50841
4487 Revert:
4488 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4489
4490 PR c++/50810
4491 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4492 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4493 Wnarrowing for C++0x and C++98.
4494 * c.opt ([Wnarrowing]): Update.
4495
263734e1
PC
44962011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4497
4498 PR c++/50810
4499 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4500 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4501 Wnarrowing for C++0x and C++98.
4502 * c.opt ([Wnarrowing]): Update.
4503
d2e312d7
PC
45042011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4505
4506 PR c++/45385
4507 * c-common.c (conversion_warning): Remove code looking for
4508 artificial operands.
4509
d17687f6
DS
45102011-10-18 Dodji Seketeli <dodji@redhat.com>
4511
4512 PR bootstrap/50760
4513 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4514 !NO_IMPLICIT_EXTERN_C.
d17687f6 4515
fc8396e9
PC
45162011-10-17 Michael Spertus <mike_spertus@symantec.com>
4517
4518 * c-common.c (c_common_reswords): Add __bases,
4519 __direct_bases.
4520 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4521
45222011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4523
4524 PR c++/50757
4525 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4526
847e697a
TT
45272011-10-15 Tom Tromey <tromey@redhat.com>
4528 Dodji Seketeli <dodji@redhat.com>
4529
4530 * c.opt (fdebug-cpp): New option.
4531 * c-opts.c (c_common_handle_option): Handle the option.
4532 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4533 output stream in parameter. Factorized from ...
4534 (maybe_print_line): ... this. Dump location debug information when
4535 -fdebug-cpp is in effect.
4536 (print_line_1): New static function. Takes an output stream in
4537 parameter. Factorized from ...
4538 (print_line): ... here. Dump location information when -fdebug-cpp
4539 is in effect.
4540 (scan_translation_unit): Dump location information when
4541 -fdebug-cpp is in effect.
4542
92582b75
TT
45432011-10-15 Tom Tromey <tromey@redhat.com>
4544 Dodji Seketeli <dodji@redhat.com>
4545
4546 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4547 without argument.
4548 * c-opts.c (c_common_handle_option)<case
4549 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4550 cases. Handle -ftrack-macro-expansion with and without argument.
4551
46427374
TT
45522011-10-15 Tom Tromey <tromey@redhat.com>
4553 Dodji Seketeli <dodji@redhat.com>
4554
4555 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4556 (print_line, cb_define, do_line_change): Adjust to avoid touching
4557 the internals of struct line_map. Use the public API instead.
4558 * c-pch.c (c_common_read_pch): Likewise.
4559 * c-lex.c (fe_file_change): Likewise.
4560
fc8396e9
PC
45612011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4562
4563 PR c++/17212
4564 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4565
45662011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4567
4568 PR c++/33067
4569 * c-pretty-print.c (pp_c_floating_constant): Output
4570 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4571
e79983f4
MM
45722011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4573
4574 * c-common.c (def_builtin_1): Delete old interface with two
4575 parallel arrays to hold standard builtin declarations, and replace
4576 it with a function based interface that can support creating
4577 builtins on the fly in the future. Change all uses, and poison
4578 the old names. Make sure 0 is not a legitimate builtin index.
4579 * c-omp.c (c_finish_omp_barrier): Ditto.
4580 (c_finish_omp_taskwait): Ditto.
4581 (c_finish_omp_flush): Ditto.
4582
6637388f
TG
45832011-10-11 Tristan Gingold <gingold@adacore.com>
4584
4585 * c.opt: (fallow-parameterless-variadic-functions): New.
4586
3797cb21
DS
45872011-09-08 Dodji Seketeli <dodji@redhat.com>
4588
4589 PR c++/33255 - Support -Wunused-local-typedefs warning
4590 * c-common.h (struct c_language_function::local_typedefs): New
4591 field.
9faeb493
UB
4592 (record_locally_defined_typedef, maybe_record_typedef_use)
4593 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4594 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4595 (maybe_record_typedef_use)
4596 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4597 * c.opt: Declare new -Wunused-local-typedefs flag.
4598
693ddb1b
EB
45992011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4600
4601 PR middle-end/50266
4602 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4603 computations.
4604
830c740f
RG
46052011-09-05 Richard Guenther <rguenther@suse.de>
4606
4607 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4608 of integer_minus_one_node for empty array upper bounds.
4609
892a371f
DS
46102011-08-28 Dodji Seketeli <dodji@redhat.com>
4611
4612 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4613 it's the first time it's being called on this main TU.
4614
0e3fdb48
RB
46152011-08-24 Richard Guenther <rguenther@suse.de>
4616
4617 PR c/49396
4618 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4619
46202011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4621
4622 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4623 defined in cpp_init_builtins and c_cpp_builtins.
4624
d4a83c10
JM
46252011-08-19 Joseph Myers <joseph@codesourcery.com>
4626
4627 * c-common.c (c_common_reswords): Add __builtin_complex.
4628 * c-common.h (RID_BUILTIN_COMPLEX): New.
4629
bbceee64
JM
46302011-08-18 Joseph Myers <joseph@codesourcery.com>
4631
4632 * c-common.c (c_common_reswords): Add _Noreturn.
4633 (keyword_is_function_specifier): Handle RID_NORETURN.
4634 * c-common.h (RID_NORETURN): New.
4635
0e3a99ae
AS
46362011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4637
4638 * c-common.c (unsafe_conversion_p): New function. Check if it is
4639 unsafe to convert an expression to the type.
4640 (conversion_warning): Adjust, use unsafe_conversion_p.
4641 * c-common.h (unsafe_conversion_p): New function declaration.
4642
20906c66
JJ
46432011-08-02 Jakub Jelinek <jakub@redhat.com>
4644
4645 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4646 (c_finish_omp_taskyield): New prototype.
4647 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4648 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4649 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4650 or RHS1 have side-effects, evaluate those too in the right spot,
4651 if it is a decl and LHS is also a decl, error out if they
4652 aren't the same.
4653 (c_finish_omp_taskyield): New function.
4654 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4655 * c-pragma.c (omp_pragmas): Add taskyield.
4656 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4657 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4658 PRAGMA_OMP_CLAUSE_MERGEABLE.
4659
770e5a2e
DS
46602011-07-25 Dodji Seketeli <dodji@redhat.com>
4661
4662 * c-common.h (set_underlying_type): Remove parm name from
4663 declaration.
4664
1baae426
RG
46652011-07-25 Romain Geissler <romain.geissler@gmail.com>
4666
4667 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4668
fcb21722
JM
46692011-07-22 Jason Merrill <jason@redhat.com>
4670
76f86d00
JM
4671 PR c++/49793
4672 * c.opt (Wnarrowing): New.
4673
3a636414
JM
4674 PR c++/30112
4675 * c-common.h: Declare c_linkage_bindings.
4676 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4677
fcb21722
JM
4678 PR c++/49813
4679 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4680 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4681 as flag_isoc99 for 'restrict'.
4682 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4683
02614448
ILT
46842011-07-21 Ian Lance Taylor <iant@google.com>
4685
4686 PR middle-end/49705
4687 * c-common.c (c_disable_warnings): New static function.
4688 (c_enable_warnings): New static function.
4689 (c_fully_fold_internal): Change local unused_p to bool. Call
4690 c_disable_warnings and c_enable_warnings rather than change
4691 c_inhibit_evaluation_warnings.
4692
34429675
JM
46932011-07-20 Jason Merrill <jason@redhat.com>
4694
4695 PR c++/6709 (DR 743)
4696 PR c++/42603 (DR 950)
4697 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4698 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4699 (CPP_DECLTYPE): New.
4700 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4701
5d49b6a7
RG
47022011-07-19 Richard Guenther <rguenther@suse.de>
4703
4704 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4705 * c-omp.c (c_finish_omp_for): Likewise.
4706
e84a58ff
EB
47072011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4708
4709 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4710 body on the next line.
4711
329af3c7
JM
47122011-07-08 Jason Merrill <jason@redhat.com>
4713
4063e61b
JM
4714 PR c++/45437
4715 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4716
329af3c7
JM
4717 PR c++/49673
4718 * c-common.c (c_apply_type_quals_to_decl): Don't check
4719 TYPE_NEEDS_CONSTRUCTING.
4720
1a072294
RG
47212011-07-06 Richard Guenther <rguenther@suse.de>
4722
4723 * c-common.c (c_common_nodes_and_builtins):
4724 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4725
fce5dddd
RG
47262011-07-05 Richard Guenther <rguenther@suse.de>
4727
4728 * c-common.c (c_common_nodes_and_builtins): Build all common
4729 tree nodes first.
4730
45d439ac
JJ
47312011-06-27 Jakub Jelinek <jakub@redhat.com>
4732
56300785
JJ
4733 * c-common.h (c_tree_chain_next): New static inline function.
4734
45d439ac
JJ
4735 * c-common.c (check_builtin_function_arguments): Handle
4736 BUILT_IN_ASSUME_ALIGNED.
4737
e0a8ecf2
AM
47382011-06-21 Andrew MacLeod <amacleod@redhat.com>
4739
4740 * c-common.c: Add sync_ or SYNC__ to builtin names.
4741 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4742
47432011-06-20 Pierre Vittet <piervit@pvittet.com>
4744
4745 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4746 handler.
4747 (gen_pragma_handler): New union.
4748 (internal_pragma_handler): New type.
4749 (c_register_pragma_with_data)
4750 (c_register_pragma_with_expansion_and_data): New functions.
4751
4752 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4753 (c_register_pragma, c_register_pragma_with_expansion)
4754 (c_invoke_pragma_handler): Changed to work with
4755 internal_pragma_handler.
4756 (c_register_pragma_with_data)
4757 (c_register_pragma_with_expansion_and_data): New functions.
4758
677f3fa8
JM
47592011-06-14 Joseph Myers <joseph@codesourcery.com>
4760
4761 * c-common.c: Include common/common-target.h.
4762 (handle_section_attribute): Use
4763 targetm_common.have_named_sections.
4764 * c-cppbuiltin.c: Include common/common-target.h.
4765 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4766
d7fc8c14
RG
47672011-06-10 Richard Guenther <rguenther@suse.de>
4768
4769 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4770 to print a IDENTIFIER_NODE.
4771
10e48e39
RO
47722011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4773 Joseph Myers <joseph@codesourcery.com>
4774
4775 * c.opt (fbuilding-libgcc): New option.
4776 * c-cppbuiltin.c (c_cpp_builtins): Define
4777 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4778
6976ae51
JM
47792011-06-07 Jason Merrill <jason@redhat.com>
4780
3ff60975
JM
4781 * c-common.c (max_tinst_depth): Lower default to 900.
4782
6976ae51
JM
4783 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4784
009db074
RG
47852011-06-07 Richard Guenther <rguenther@suse.de>
4786
4787 * c-common.c (c_common_nodes_and_builtins): Do not set
4788 size_type_node or call set_sizetype.
4789
b4592b92
DS
47902011-06-07 Dodji Seketeli <dodji@redhat.com>
4791
4792 PR debug/49130
4793 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4794 type when using pointer comparison to compare types.
b4592b92 4795
014ab419
JW
47962011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4797
4798 * c.opt: Add -Wdelete-non-virtual-dtor.
4799 * c-opts.c (c_common_handle_option): Include it in -Wall.
4800
4f60111f
NF
48012011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4802
4803 PR bootstrap/49190
4804
4805 Revert:
4806 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4807
4808 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4809 not tree_common.
4810
4cc4f2f4
JJ
48112011-05-27 Jakub Jelinek <jakub@redhat.com>
4812
4813 PR c++/49165
4814 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4815 C++ don't call c_common_truthvalue_conversion on void type arms.
4816
38e01f9e
NF
48172011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4818
4819 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4820 (stmt_list_stack): Define.
4821 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4822 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4823
92e948a8
NF
48242011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4825
4826 * c-common.c (warning_candidate_p): Check for BLOCKs.
4827
a2fc3e63
NF
48282011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4829
4830 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4831 not tree_common.
4832
0957c029
JJ
48332011-05-25 Jakub Jelinek <jakub@redhat.com>
4834
4835 * c-common.c (def_fn_type): Remove extra va_end.
4836
828fb3ba
JM
48372011-05-23 Jason Merrill <jason@redhat.com>
4838
4839 PR c++/48106
4840 * c-common.c (c_common_get_narrower): New.
4841 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4842
dde05067
NF
48432011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4844
4845 * c-common.h (check_function_arguments): Tweak prototype of
4846 check_function_arguments.
4847 * c-common.c (check_function_arguments): Likewise. Adjust
4848 calls to check_function_nonnull, check_function_format, and
4849 check_function_sentinel.
4850 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4851 separate attributes and typelist arguments. Use
4852 FOREACH_FUNCTION_ARGS to iterate over argument types.
4853
3c0d13bf
PC
48542011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4855
4856 * c-common.c (c_common_reswords): Reorder.
4857 * c-common.h (rid): Likewise.
4858
8242dd04
NF
48592011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4860
4861 * c-common.c (def_fn_type): Don't call build_function_type, call
4862 build_function_type_array or build_varargs_function_type_array
4863 instead.
4864 (c_common_nodes_and_builtins): Likewise.
4865
3d528853
NF
48662011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4867
4868 * c-common.c (c_add_case_label): Omit the loc argument to
4869 build_case_label.
4870 * c-common.h (build_case_label): Remove.
4871 * c-semantics.c (build_case_label): Remove.
4872
a04a722b
JM
48732011-05-05 Joseph Myers <joseph@codesourcery.com>
4874
4875 * c-objc.h (objc_start_method_definition): Update prototype.
4876 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4877
e19a18d4
NF
48782011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4879
4880 * c-common.c (check_main_parameter_types): Reindent. Don't use
4881 TYPE_ARG_TYPES directly.
4882 (handle_nonnull_attribute): Likewise.
4883 (sync_resolve_params): Likewise.
4884 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4885 to check_format_string.
4886 (handle_format_attribute): Likewise.
4887 (check_format_string): Take a function type to examine instead of
4888 a type list. Use a function_arg_iterator to step through argument
4889 types.
4890
c62c040f
RG
48912011-05-04 Richard Guenther <rguenther@suse.de>
4892
4893 * c-common.c (fix_string_type): Use size_int for index type bounds.
4894 (start_fname_decls): Do not pass NULL to build_int_cst.
4895 (c_init_attributes): Likewise.
4896 * c-lex.c (c_lex_with_flags): Likewise.
4897
c12ff9d8
JM
48982011-04-27 Jason Merrill <jason@redhat.com>
4899
4900 * c-common.c (make_tree_vector_from_list): New.
4901 * c-common.h: Declare it.
4902
304dfbe3
RG
49032011-04-26 Richard Guenther <rguenther@suse.de>
4904
4905 PR preprocessor/48248
4906 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4907 for output size with -P.
4908
3c0d13bf
PC
49092011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4910
4911 * c-common.c (struct c_common_resword): Add __underlying_type.
4912 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4913
04695783
JM
49142011-04-20 Jim Meyering <meyering@redhat.com>
4915
4916 * c-format.c (init_dollar_format_checking): Remove useless
4917 if-before-free.
4918
0dc33c3c
NP
49192011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4920
4921 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4922 (objc_detect_field_duplicates): New.
0dc33c3c 4923 * stub-objc.c: Likewise.
3c0d13bf 4924
c59633d9
NP
49252011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4926
4927 * stub-objc.c (objc_declare_protocols): Renamed to
4928 objc_declare_protocol.
4929 * c-objc.h: Likewise.
3c0d13bf 4930
32dabdaf
NP
49312011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4932
4933 * stub-objc.c (objc_declare_class): Updated argument name.
4934
81f653d6
NF
49352011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4936
4937 * c-common.h (c_common_init_ts): Declare.
4938 * c-common.c (c_common_init_ts): Define.
4939
eb345401
NP
49402011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4941
4942 * c-objc.h (objc_build_message_expr): Updated prototype.
4943 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4944
a358e188
MJ
49452011-04-12 Martin Jambor <mjambor@suse.cz>
4946
4947 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4948 of cgraph_node.
4949
e6313a78
RG
49502011-04-11 Richard Guenther <rguenther@suse.de>
4951
4952 * c-common.c (complete_array_type): Build a range type of
4953 proper type.
4954
dcf0c47e
NF
49552011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4956
4957 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4958 (handle_type_generic_attribute): Likewise.
4959
1ee44b26
JM
49602011-04-07 Jason Merrill <jason@redhat.com>
4961
4962 PR c++/48450
4963 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4964 conversion from C++0x scoped enum.
4965
acce4e77
JM
49662011-04-06 Joseph Myers <joseph@codesourcery.com>
4967
4968 * c-target-def.h: New file.
4969 * c-target.def: New file.
4970 * c-target.h: New file.
4971 * c-common.c (targetcm): Don't define here.
4972 * c-common.h (default_handle_c_option): Declare.
4973 * c-format.c: Include c-target.h instead of target.h.
4974 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4975 include tm.h.
4976 (default_handle_c_option): Move from targhooks.c.
4977
e2eefb55
JJ
49782011-03-29 Jakub Jelinek <jakub@redhat.com>
4979
4980 PR preprocessor/48248
4981 * c-ppoutput.c (print): Add src_file field.
4982 (init_pp_output): Initialize it.
4983 (maybe_print_line): Don't optimize by adding up to 8 newlines
4984 if map->to_file and print.src_file are different file.
4985 (print_line): Update print.src_file.
4986
ba78087b
KT
49872011-03-25 Kai Tietz <ktietz@redhat.com>
4988
4989 * c-ada-spec.c (compare_comment): Use filename_cmp
4990 instead of strcmp for filename.
4991
0edf1bb2
JL
49922011-03-25 Jeff Law <law@redhat.com>
4993
adfac8df 4994 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4995
c7dc8804
JM
49962011-03-25 Jason Merrill <jason@redhat.com>
4997
4998 * c.opt: Add -std=c++03.
4999
d1d879b1
EB
50002011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5001
5002 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5003
62d784f7
KT
50042011-03-17 Kai Tietz
5005
5006 PR target/12171
5050afdf
KT
5007 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5008 Display allowed attributes for function pointer types.
5009 (pp_c_attributes_display): New function to display
5010 attributes having affects_type_identity flag set to true.
5011 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5012
62d784f7
KT
5013 * c-common.c (c_common_attribute_table):
5014 Add new element.
5015 (c_common_format_attribute_table): Likewise.
5016
82d37118
JM
50172011-03-18 Jason Merrill <jason@redhat.com>
5018
49a000c3
JM
5019 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5020 * c-common.h: Don't declare it here.
5021 * c-common.c: Or define it here.
5022 * c-opts.c (c_common_handle_option): Or set it here.
5023
82d37118
JM
5024 PR c++/35315
5025 * c-common.c (handle_transparent_union_attribute): Don't
5026 make a duplicate type in C++.
5027
17bc631c
JM
50282011-03-15 Jason Merrill <jason@redhat.com>
5029
5030 * c-common.c (max_constexpr_depth): New.
5031 * c-common.h: Declare it.
5032 * c-opts.c (c_common_handle_option): Set it.
5033 * c.opt (fconstexpr-depth): New option.
5034
1b9b91a6
JM
50352011-03-11 Jason Merrill <jason@redhat.com>
5036
f231b5ff
JM
5037 * c-common.c (attribute_takes_identifier_p): Add missing const.
5038
1b9b91a6
JM
5039 PR c++/46803
5040 * c-common.c (attribute_takes_identifier_p): Assume that an
5041 unknown attribute takes an identifier.
5042
a19e4d44
NF
50432011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5044
5045 PR c/47786
5046 * c-common.c (c_type_hash): Call list_length instead of iterating
5047 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5048
982d62f6
JJ
50492011-02-19 Jakub Jelinek <jakub@redhat.com>
5050
5051 PR c/47809
5052 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5053
0a256240
NP
50542011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5055
5056 * c.opt (fobjc-abi-version=) New.
5057 (fobjc-nilcheck): New.
5058
ba9e6dd5
NF
50592011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5060
5061 PR c++/46890
5062 * c-common.h (keyword_is_decl_specifier): Declare.
5063 * c-common.c (keyword_is_decl_specifier): Define.
5064 (keyword_is_function_specifier): New function.
5065
7273813a
JJ
50662011-01-26 Jakub Jelinek <jakub@redhat.com>
5067
5068 PR c/47473
5069 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5070 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5071 REAL_TYPE.
5072
908ef79b
AC
50732011-01-26 Arnaud Charlet <charlet@adacore.com>
5074
5075 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5076
237e9384
JJ
50772011-01-26 Jakub Jelinek <jakub@redhat.com>
5078
5079 PR pch/47430
5080 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5081 after init_c_lex if pch_file is set.
5082
47ea1edf
DK
50832011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5084
d4dba752 5085 PR c++/43601
47ea1edf
DK
5086 * c.opt (-fkeep-inline-dllexport): New switch.
5087
2aa9c6ae
RG
50882011-01-12 Richard Guenther <rguenther@suse.de>
5089
5090 PR middle-end/32511
5091 * c-common.c (handle_weak_attribute): Warn instead of error
5092 on declaring an inline function weak.
5093
7bd11157
TT
50942011-01-05 Tom Tromey <tromey@redhat.com>
5095
5096 * c-common.h (lvalue_error): Update.
5097 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5098 not error.
5099
0e66e494 51002010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5101
b4f588c4
NP
5102 PR objc/47075
5103 * c-objc.h (objc_finish_message_expr): Added argument to
5104 prototype.
5105
f4da8dce
NF
51062010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5107
5108 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5109 Use prototype_p.
5110
46270f14
NP
51112010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5112
5113 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5114 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5115
4816c593
NF
51162010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5117
5118 * c-common.h (readonly_error): Declare.
5119 * c-common.c (readonly_error): Define.
5120
7a6daeb0
NF
51212010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5122
5123 * c-common.h (invalid_indirection_error): Declare.
5124 * c-common.c (invalid_indirection_error): Define.
5125
892f6119
RG
51262010-12-03 Richard Guenther <rguenther@suse.de>
5127
5128 PR c/46745
5129 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5130 (pp_c_unary_expression): Likewise.
5131 (pp_c_expression): Likewise.
5132
6c39e757
NP
51332010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5134
5135 * c-common.h (objc_finish_function): New.
5136 (objc_non_volatilized_type): Removed.
5137 (objc_type_quals_match): Removed.
5138 * stub-objc.c (objc_finish_function): New.
5139 (objc_non_volatilized_type): Removed.
5140 (objc_type_quals_match): Removed.
9faeb493 5141
7c475d11
JM
51422010-11-30 Joseph Myers <joseph@codesourcery.com>
5143
5144 * c-common.h (parse_optimize_options): Declare.
5145 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5146 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5147
71f3e391
JM
51482010-11-29 Joseph Myers <joseph@codesourcery.com>
5149
5150 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5151 GET_ENVIRONMENT.
5152 * c-pch.c (O_BINARY): Don't define here.
5153 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5154
d5fabb58
JM
51552010-11-25 Joseph Myers <joseph@codesourcery.com>
5156
5157 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5158 targetm.except_unwind_info.
5159
299404a1
JM
51602010-11-23 Joseph Myers <joseph@codesourcery.com>
5161
5162 * c-opts.c (c_common_handle_option): Pass location to
5163 set_struct_debug_option.
5164
c98cd5bf
JM
51652010-11-23 Joseph Myers <joseph@codesourcery.com>
5166
5167 * c-common.c (visibility_options): Move from ../opts.c.
5168 * c-common.h (struct visibility_flags, visibility_options):
5169 Declare here.
5170 * c-opts.c (finish_options): Rename to c_finish_options.
5171 (c_common_init): Update call to finish_options.
5172
a9546771
NP
51732010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5174
5175 PR objc/34033
5176 * c-lex.c (lex_string): Check that each string in an Objective-C
5177 string concat sequence starts with either one or zero '@', and
5178 that there are no spurious '@' signs at the end.
5179
24a57808
JM
51802010-11-20 Joseph Myers <joseph@codesourcery.com>
5181
5182 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5183 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5184 HANDLE_PRAGMA_VISIBILITY.
5185 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5186 HANDLE_PRAGMA_VISIBILITY): Don't define.
5187 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5188
a9aa2c3a
NF
51892010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5190
5191 PR c++/16189
5192 PR c++/36888
5193 PR c++/45331
5194 * c-common.h (keyword_begins_type_specifier): Declare.
5195 (keyword_is_storage_class_specifier): Declare.
5196 (keyword_is_type_qualifier): Declare.
5197 * c-common.c (keyword_begins_type_specifier): New function.
5198 (keyword_is_storage_class_specifier): New function.
5199 (keyword_is_type_qualifier): Declare.
5200
5386338c
JM
52012010-11-19 Joseph Myers <joseph@codesourcery.com>
5202
5203 PR c/46547
5204 * c-common.c (in_late_binary_op): Define.
5205 (c_common_truthvalue_conversion): Check in_late_binary_op before
5206 calling c_save_expr.
5207 * c-common.h (in_late_binary_op): Declare.
5208
69ccdddb
JM
52092010-11-19 Joseph Myers <joseph@codesourcery.com>
5210
5211 * c-opts.c (c_common_handle_option): Update calls to
5212 set_struct_debug_option.
5213
6b192a09
NP
52142010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5215
5216 * c-common.h (objc_declare_protocols): Added additional argument.
5217 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 5218
fb52b50a
NF
52192010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5220
5221 PR c/33193
5222 * c-common.h (build_real_imag_expr): Declare.
5223 * c-semantics.c (build_real_imag_expr): Define.
5224
b37421c6
JM
52252010-11-17 Joseph Myers <joseph@codesourcery.com>
5226
5227 * c-opts.c (c_common_parse_file): Take no arguments.
5228 * c-common.h (c_common_parse_file): Update prototype.
5229
07078664
JJ
52302010-11-16 Jakub Jelinek <jakub@redhat.com>
5231
5232 PR c++/46401
5233 * c-common.c (warning_candidate_p): Don't track non-const calls
5234 or STRING_CSTs.
5235
c6a13190
ILT
52362010-11-15 Ian Lance Taylor <iant@google.com>
5237
5238 * c-lex.c (init_c_lex): Set macro debug callbacks if
5239 flag_dump_go_spec is set.
5240
925e8657
NP
52412010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5242
5243 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5244 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5245
bb0a9581
NF
52462010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5247
5248 PR preprocessor/45038
5249 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5250 dialects.
5251
c5fa0890
JM
52522010-11-12 Joseph Myers <joseph@codesourcery.com>
5253
5254 * c-common.h (c_family_lang_mask): Declare.
5255 * c-opts.c (c_family_lang_mask): Make extern.
5256 * c-pragma.c (handle_pragma_diagnostic): Use
5257 control_warning_option.
5258
a4d8c676
JM
52592010-11-12 Joseph Myers <joseph@codesourcery.com>
5260
5261 * c-common.c (parse_optimize_options): Update call to
5262 decode_options.
5263 * c-common.h (c_common_handle_option): Update prototype.
5264 * c-opts.c (c_common_handle_option): Take location_t parameter and
5265 pass it to other functions.
5266
f954bd2c
JM
52672010-11-11 Joseph Myers <joseph@codesourcery.com>
5268
5269 * c-opts.c (warning_as_error_callback): Remove.
5270 (c_common_initialize_diagnostics): Don't call
5271 register_warning_as_error_callback.
5272 (c_common_handle_option): Handle -Werror=normalized= here.
5273
d8a07487
JM
52742010-11-10 Joseph Myers <joseph@codesourcery.com>
5275
5276 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5277 in diagnostic.
5278 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5279 letter.
5280 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5281 Remove trailing '.' from diagnostics.
5282 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5283
d5478783
JM
52842010-11-10 Joseph Myers <joseph@codesourcery.com>
5285
5286 * c-common.c (parse_optimize_options): Pass global_dc to
5287 decode_options.
5288 * c-opts.c (c_common_handle_option): Pass &global_options to
5289 set_Wstrict_aliasing.
5290 * c.opt (v): Don't mark Common or document here.
5291
91ebb981
IS
52922010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5293
5294 PR target/44981
5295 * c-format.c (format_type): New type gcc_objc_string_format_type.
5296 (valid_stringptr_type_p): New.
5297 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 5298 (check_format_string): Pass expected type, use
91ebb981
IS
5299 valid_stringptr_type_p (), check that the format string types are
5300 consistent with the format specification.
5301 (decode_format_attr): Warn if NSString is used outside objective-c.
5302 (format_types_orig): Add NSString.
5303 (format_name): New.
5304 (format_flags): New.
5305 (check_format_arg): Handle format strings requiring an external parser.
5306 first_target_format_type: New variable.
5307 (handle_format_attribute): Set up first_target_format_type, pass the
5308 expected format arg string type to check_format_string().
5309 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5310 * stub-objc.c (objc_string_ref_type_p): New.
5311 (objc_check_format_arg): New.
5312
bede2adc
NP
53132010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5314
9faeb493 5315 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
5316 * c-common.h (objc_build_class_component_ref): New.
5317 * stub-objc.c (objc_build_class_component_ref): New.
5318
9a179d01
NP
53192010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5320
5321 * c.opt (Wproperty-assign-default): New option.
5322
22d8d616
NP
53232010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5324
5325 Implemented -fobjc-std=objc1 flag.
5326 * c.opt (fobjc-std=objc1): New option.
5327
2debdb4f
NP
53282010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5329
5330 Implemented format and noreturn attributes for Objective-C methods.
5331 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5332 attribute for Objective-C methods.
5333
ec52b111
JM
53342010-10-31 Jason Merrill <jason@redhat.com>
5335
5336 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5337 EXPR_LOC_OR_HERE.
5338
46a88c12
NP
53392010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5340
5341 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5342 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5343 (objc_add_property_declaration): Removed arguments for copies and
5344 ivar.
5345 (objc_build_getter_call): Renamed to
5346 objc_maybe_build_component_ref.
5347 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5348 (objc_is_property_ref): New.
5349 * c-common.c (c_common_reswords): Removed copies and ivar.
5350 * stub-objc.c (objc_add_property_declaration): Removed arguments
5351 for copies and ivar.
5352 (objc_build_getter_call): Renamed to
5353 objc_maybe_build_component_ref.
5354 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5355 (objc_is_property_ref): New.
9faeb493 5356
1e4bf85b
AC
53572010-10-29 Arnaud Charlet <charlet@adacore.com>
5358 Matthew Gingell <gingell@adacore.com>
5359
5360 * c-ada-spec.c (separate_class_package): New function.
5361 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5362 name of their enclosing package.
5363 (print_ada_declaration): Use separate_class_package.
5364
81f0bab2
JM
53652010-10-27 Jason Merrill <jason@redhat.com>
5366
2b08f2c5
JM
5367 * c-common.c (c_common_reswords): Add __is_literal_type.
5368 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5369
81f0bab2
JM
5370 * c-common.c (check_case_value): Remove special C++ code.
5371
200290f2
NP
53722010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5373
5374 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5375 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5376 and RID_LAST_PATTR.
5377 (objc_add_property_declaration): Added additional arguments.
5378 (objc_property_attribute_kind): Removed.
5379 (objc_set_property_attr): Removed.
5380 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5381 copy and nonatomic.
5382 * stub-objc.c (objc_add_property_declaration): Added additional
5383 arguments.
5384 (objc_set_property_attr): Removed.
9faeb493 5385
f614132b
NP
53862010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5387
5388 * c-common.h (objc_add_property_variable): Renamed to
5389 objc_add_property_declaration. Added location argument.
5390 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 5391
b8a18805
NP
53922010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5393
5394 * c-common.h (objc_maybe_printable_name): New.
5395 * stub-objc.c (objc_maybe_printable_name): New.
5396
30cd1c5d
AS
53972010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5398 Andrew Pinski <pinskia@gmail.com>
5399
5400 * c-common.h (c_common_mark_addressable_vec): Declare.
5401 * c-common.c (c_common_mark_addressable_vec): New function.
5402
249a82c4
NP
54032010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5404
5405 * c-common.h (objc_set_method_type): Removed.
5406 (objc_add_method_declaration): Added boolean argument.
5407 (objc_start_method_definition): Same change.
5408 (objc_build_method_signature): Same change.
5409 * stub-objc.c (objc_set_method_type): Removed.
5410 (objc_add_method_declaration): Added boolean argument.
5411 (objc_start_method_definition): Same change.
5412 (objc_build_method_signature): Same change.
5413
977e30bc
NP
54142010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5415
5416 * c-common.h (finish_file): Removed.
5417 (objc_write_global_declarations): New.
5418 * c-opts.c (c_common_parse_file): Do not call finish_file.
5419 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 5420
da57d1b9
NP
54212010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5422
5423 Implemented parsing @synthesize and @dynamic for
5424 Objective-C/Objective-C++.
5425 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5426 (objc_add_synthesize_declaration): New.
5427 (objc_add_dynamic_declaration): New.
5428 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5429 * stub-objc.c (objc_add_synthesize_declaration): New.
5430 (objc_add_dynamic_declaration): New.
9faeb493 5431
0069111f
MM
54322010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5433
5434 PR target/46041
5435 * c-cppbuiltin.c (mode_has_fma): Move function here from
5436 builtins.c. Don't use the fma optab, instead just use the
5437 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5438 using -save-temps.
5439
e426b47b
NP
54402010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5441
5442 Merge from 'apple/trunk' branch on FSF servers.
0069111f 5443
e426b47b
NP
5444 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5445
9faeb493 5446 Radar 4330422
e426b47b
NP
5447 * c-common.h (objc_non_volatilized_type): New declaration
5448 * stub-objc.c (objc_non_volatilized_type): New stub.
5449
90fbfdc3
NP
54502010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5451
e426b47b 5452 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5453
5454 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5455
9faeb493 5456 Radar 4133425
90fbfdc3 5457 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5458 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5459
c37d8c30
IS
54602010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5461
5462 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5463 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5464 (objc_ivar_visibility_kind): New enum.
5465 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5466 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5467 visibility enum.
5468
1b1562a5
MM
54692010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5470
5471 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5472 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5473 has the appropriate fma builtins.
5474 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5475
668ea4b1
IS
54762010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5477
1b1562a5 5478 merge from FSF apple 'trunk' branch.
668ea4b1 5479 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5480
668ea4b1
IS
5481 Radars 4436866, 4505126, 4506903, 4517826
5482 * c-common.c (c_common_resword): Define @property and its attributes.
5483 * c-common.h: Define property attribute enum entries.
5484 (OBJC_IS_PATTR_KEYWORD): New.
5485 (objc_property_attribute_kind): New enum.
5486 Declare objc_set_property_attr (), objc_add_property_variable (),
5487 objc_build_getter_call () and objc_build_setter_call ().
5488 * stub-objc.c (objc_set_property_attr): New stub.
5489 (objc_add_property_variable): Likewise.
5490 (objc_build_getter_call): Likewise.
5491 (objc_build_setter_call) Likewise.
1b1562a5 5492
a1178b30
IS
54932010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5494
1b1562a5 5495 merge from FSF apple 'trunk' branch.
a1178b30
IS
5496 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5497
5498 Radar 3803157 (method attributes)
5499 * c-common.c (handle_deprecated_attribute): Recognize
5500 objc methods as valid declarations.
5501 * c-common.h: Declare objc_method_decl ().
1b1562a5 5502 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5503
a75bfaa6
JM
55042010-10-08 Joseph Myers <joseph@codesourcery.com>
5505
5506 * c-common.c (parse_optimize_options): Call
5507 decode_cmdline_options_to_array_default_mask before
5508 decode_options. Update arguments to decode_options.
5509 * c-common.h (c_common_init_options_struct): Declare.
5510 * c-opts.c (c_common_init_options_struct): New. Split out from
5511 c_common_init_options.
5512
f05b9d93
NP
55132010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5514
5515 Implemented fast enumeration for Objective-C.
5516 * c-common.h (objc_finish_foreach_loop): New.
5517 * stub-objc.c (objc_finish_foreach_loop): New.
5518
1ebe4b4f
JM
55192010-10-05 Joseph Myers <joseph@codesourcery.com>
5520
5521 * c-common.h (struct diagnostic_context): Don't declare here.
5522 (c_common_initialize_diagnostics): Declare using
5523 diagnostic_context typedef.
5524 * c-opts.c (c_common_handle_option): Pass global_dc to
5525 handle_generated_option.
5526
d4d24ba4
JM
55272010-10-04 Joseph Myers <joseph@codesourcery.com>
5528
5529 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5530 handle_generated_option.
5531
478a1c5b
ILT
55322010-10-03 Ian Lance Taylor <iant@google.com>
5533
5534 * c.opt (-fplan9-extensions): New option.
5535
82a1c2fe
FXC
55362010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5537
5538 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5539 Remove.
5540 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5541 of duplicating code.
5542
92902b1b
IS
55432010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5544
5545 * c-common.c: Add two new entries for @optional
5546 and @required keywords.
5547
5548 merge from FSF 'apple/trunk' branch.
5549 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5550
5551 Radar 4386773
5552 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5553 objective-c keywords.
5554 (objc_set_method_opt): New declaration.
5555 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5556
46625112
JM
55572010-09-30 Joseph Myers <joseph@codesourcery.com>
5558
5559 * c-common.c (handle_optimize_attribute): Pass &global_options to
5560 cl_optimization_save and cl_optimization_restore.
5561 * c-opts.c (c_common_handle_option): Pass &global_options to
5562 handle_generated_option.
5563 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5564 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5565 &global_options to cl_optimization_restore.
5566
49b91f05
NP
55672010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5568
5569 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5570 Objective-C/Objective-C++ keywords.
5571
13ed556f 55722010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5573
9faeb493
UB
5574 Merge from 'apple/trunk' branch on FSF servers.
5575
a6341d57
NP
5576 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5577
5578 Radar 4281748
5579 * c-common.h (objc_check_global_decl): New declaration.
5580 * stub-objc.c (objc_check_global_decl): New stub.
5581
f0036cca
JM
55822010-09-29 Joseph Myers <joseph@codesourcery.com>
5583
5584 * c.opt: Don't use VarExists.
5585
e3339d0f
JM
55862010-09-29 Joseph Myers <joseph@codesourcery.com>
5587
5588 * c-common.c (c_cpp_error): Update names of diagnostic_context
5589 members.
5590 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5591 cl_optimization members.
5592 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5593 sanitize_cpp_opts, finish_options): Update names of cpp_options
5594 members.
5595
1973201f
NP
55962010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5597
5598 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5599 (objc_is_reserved_word): Removed.
5600 * c-common.c: Updated comments.
5601 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5602 objc_is_reserved_word.
5603 * stub-objc.c (objc_is_reserved_word): Removed.
5604
f7e71da5
IS
56052010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5606
9faeb493 5607 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5608 include attributes.
5609 (objc_start_method_definition): Likewise.
5610 (objc_build_keyword_decl): Likewise.
5611 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5612 (objc_start_method_definition): Likewise.
5613 (objc_build_keyword_decl): Likewise.
5614
c165dca7
IS
56152010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5616
5617 * c-common.h (objc_start_class_interface): Adjust prototype.
5618 (objc_start_category_interface): Likewise.
5619 (objc_start_protocol): Likewise.
5620 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5621 (objc_start_class_interface): Likewise.
5622 (objc_start_category_interface): Likewise.
5623
7458026b
ILT
56242010-09-27 Ian Lance Taylor <iant@google.com>
5625
5626 * c-common.c (c_common_attribute_table): Add no_split_stack.
5627 (handle_no_split_stack_attribute): New static function.
5628
b581b85b
NP
56292010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5630
9faeb493 5631 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5632
5633 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5634
9faeb493 5635 Radar 4229905
b581b85b
NP
5636 * c-common.h (objc_have_common_type): New declaration.
5637 * stub-objc.c (objc_have_common_type): New stub.
5638
5639 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5640
5641 Radar 4154928
5642 * c-common.h (objc_common_type): New prototype.
9faeb493 5643 * stub-objc.c (objc_common_type): New stub.
b581b85b 5644
46a4da10
JH
56452010-09-24 Jan Hubicka <jh@suse.cz>
5646
5647 * c-common.c (handle_leaf_attribute): New function.
5648 (struct attribute_spec c_common_att): Add leaf.
5649
e200444e
JM
56502010-09-22 Joseph Myers <joseph@codesourcery.com>
5651
5652 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5653 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5654 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5655 -include-barrier, -include-directory, -include-directory=,
5656 -include-directory-after, -include-directory-after=,
5657 -include-prefix, -include-prefix=, -include-with-prefix,
5658 -include-with-prefix=, -include-with-prefix-after,
5659 -include-with-prefix-after=, -include-with-prefix-before,
5660 -include-with-prefix-before=, -no-integrated-cpp,
5661 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5662 -output=, -pedantic, -pedantic-errors, -preprocess,
5663 -print-missing-file-dependencies, -trace-includes, -traditional,
5664 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5665 -user-dependencies, -verbose, -write-dependencies,
5666 -write-user-dependencies, no-integrated-cpp, traditional): New.
5667
29a80ea6
NP
56682010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5669
5670 PR objc/23710
ac1fc2fc
NP
5671 * c-common.h (objc_start_method_definition): Return bool instead
5672 of void.
5673 * stub-objc.c (objc_start_method_definition): Return bool instead
5674 of void.
5675
56762010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5677
5678 PR objc/25965
5679 * c-common.h (objc_get_interface_ivars): New declaration.
5680 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5681
de621752
ILT
56822010-09-15 Ian Lance Taylor <iant@google.com>
5683
5684 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5685 messages. Remove period at end of warning message.
de621752 5686
ba885ec5
NS
56872010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5688
5689 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5690 (handle_alias_attribute): ... here.
5691 (handle_ifunc_attribute): New.
5692
c5ee1358
MM
56932010-09-06 Mark Mitchell <mark@codesourcery.com>
5694
5695 * c-common.h (do_warn_double_promotion): Declare.
5696 * c-common.c (do_warn_double_promotion): Define.
5697
0a0b3574
MM
56982010-09-05 Mark Mitchell <mark@codesourcery.com>
5699
5700 * c.opt (Wdouble-promotion): New.
5701
d1779886
JM
57022010-09-02 Joseph Myers <joseph@codesourcery.com>
5703
5704 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5705 fvtable-thunks, fxref): Mark no longer supported in help text.
5706
2d2bd949
JM
57072010-09-02 Joseph Myers <joseph@codesourcery.com>
5708
5709 * c.opt (Wimport, fall-virtual, falt-external-templates,
5710 fdefault-inline, fenum-int-equiv, fexternal-templates,
5711 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5712 fname-mangling-version-, fnew-abi, fnonnull-objects,
5713 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5714 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5715 applicable.
5716 (fhandle-exceptions): Mark with Alias and Warn.
5717 * c-opts.c (c_common_handle_option): Don't handle options marked
5718 as ignored.
5719
5de8299c
JM
57202010-09-02 Joseph Myers <joseph@codesourcery.com>
5721
5722 * c.opt (Wcomments, Werror-implicit-function-declaration,
5723 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5724 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5725 aliases.
5726 * c-common.c (option_codes): Use OPT_Wcomment instead of
5727 OPT_Wcomments.
5728 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5729 Don't handle options marked as aliases.
5730
0ceb0201
RG
57312010-08-25 Richard Guenther <rguenther@suse.de>
5732
5733 * c-common.c (c_common_get_alias_set): Remove special
5734 handling for pointers.
5735
ac47786e
NF
57362010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5737
5738 * c-common.c: Use FOR_EACH_VEC_ELT.
5739 * c-gimplify.c: Likewise.
5740 * c-pragma.c: Likewise.
5741
c878765b
JM
57422010-08-16 Joseph Myers <joseph@codesourcery.com>
5743
5744 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5745 RejectDriver.
5746 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5747 RejectDriver.
5748 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5749 instead of OPT_MDX and OPT_MMDX.
5750
603349bf
JM
57512010-08-16 Joseph Myers <joseph@codesourcery.com>
5752
5753 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5754
644fa7ac
JM
57552010-08-12 Joseph Myers <joseph@codesourcery.com>
5756
5757 * c.opt (MD, MMD): Change to MDX and MMDX.
5758 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5759
481e1176
JM
57602010-08-11 Joseph Myers <joseph@codesourcery.com>
5761
5762 * c-opts.c (c_common_handle_option): Call handle_generated_option
5763 instead of handle_option.
5764
ac8dc9f7
NF
57652010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5766
5767 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5768 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5769
4f8c876d
NF
57702010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5771
5772 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5773 (pending_redefine_extname): Change type to a VEC.
5774 (add_to_renaming_pragma_list): Update for new type of
5775 pending_redefine_extname.
ac8dc9f7 5776 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5777
3b0c690e
AC
57782010-08-04 Arnaud Charlet <charlet@adacore.com>
5779
5780 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5781 visited.
5782 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5783 decide whether a type has already been declared/seen.
5784 Do not go to the original type.
5785 (dump_nested_types): New parameter forward.
5786 Generate forward declaration if needed and mark type as visited.
5787 (print_ada_declaration): Call dump_nested_types if not already done.
5788 Mark types as visited.
5789
1890bccc
JM
57902010-08-03 Joseph Myers <joseph@codesourcery.com>
5791
5792 * c.opt (-print-pch-checksum): Remove option.
5793 * c-opts.c (c_common_handle_option): Don't handle
5794 OPT_print_pch_checksum.
5795
5f20c657
JM
57962010-07-27 Joseph Myers <joseph@codesourcery.com>
5797
5798 * c-common.h (c_common_handle_option): Update prototype and return
5799 value type.
5800 * c-opts.c (c_common_handle_option): Update prototype and return
5801 value type. Update calls to handle_option and
5802 enable_warning_as_error.
5803
f551f80c
JJ
58042010-07-27 Jakub Jelinek <jakub@redhat.com>
5805
5806 PR c/45079
5807 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5808
61ff2bdc
JM
58092010-07-27 Joseph Myers <joseph@codesourcery.com>
5810
5811 * c-common.h (c_common_missing_argument): Remove.
5812 * c-opts.c (c_common_missing_argument): Remove.
5813 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5814 idirafter, imacros, include, isysroot, isystem, iquote): Add
5815 MissingArgError.
5816 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5817
7a9bf9a4
JM
58182010-07-27 Joseph Myers <joseph@codesourcery.com>
5819
5820 * c-common.h (c_common_option_lang_mask,
5821 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5822 New.
5823 (c_common_init_options): Update prototype.
5824 * c-opts.c (c_common_option_lang_mask): New.
5825 (c_common_initialize_diagnostics): Split out of
5826 c_common_init_options.
5827 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5828 New.
5829 (c_common_init_options): Update prototype. Use decoded options in
5830 search for -lang-asm.
5831
910ad8de
NF
58322010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5833
5834 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5835 * c-format.c: Likewise.
5836
718f9c0f
MLI
58372010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5838
5839 * c-common.h: Include diagnostic-core.h. Error if already
5840 included.
5841 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5842
4d451982
MLI
58432010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5844
adfac8df 5845 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5846 Do not include expr.h
5847 (vector_mode_valid_p): Move here.
5848
119fe915
SB
58492010-06-21 DJ Delorie <dj@redhat.com>
5850
5851 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5852 allow these pragmas anywhere.
5853
58542010-06-14 Jakub Jelinek <jakub@redhat.com>
5855
5856 PR bootstrap/44509
5857 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5858 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5859 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5860 ggc_strdup instead of xstrdup.
5861
58622010-06-10 Jakub Jelinek <jakub@redhat.com>
5863
5864 * c-cppbuiltin.c: Include cpp-id-data.h.
5865 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5866 (lazy_hex_fp_value): New function.
5867 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5868
6662d794
MLI
58692010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5870
5871 * c-gimplify.c: Do not include tree-flow.h
5872
38f8b050
JR
58732010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5874
5875 PR other/44034
5876 * c-common.c: Rename targetm member:
5877 targetm.enum_va_list -> targetm.enum_va_list_p
5878
9589f23e
AS
58792010-06-28 Anatoly Sokolov <aesok@post.ru>
5880
5881 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5882
3b06d379
SB
58832010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5884
5885 * c-cppbuiltin.c: Do not include except.h.
5886
d166d4c3
AK
58872010-06-24 Andi Kleen <ak@linux.intel.com>
5888
9faeb493
UB
5889 * c-common.c (warn_for_omitted_condop): New.
5890 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5891
70cb8be6
JM
58922010-06-21 Joseph Myers <joseph@codesourcery.com>
5893
5894 * c.opt (lang-objc): Remove.
5895 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5896
a4c97feb
JR
58972010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5898
5899 * c-opts.c: Include "tm_p.h".
5900
6e2f1956
JM
59012010-06-20 Joseph Myers <joseph@codesourcery.com>
5902
5903 * c-common.c (parse_optimize_options): Update call to
5904 decode_options.
5905
bc87224e
NF
59062010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5907
5908 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5909 new type of types_used_by_cur_var_decl.
5910
b49cf425
JR
59112010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5912
5913 PR bootstrap/44512
5914 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5915 for C++ standard compliance.
5916
59f9c2ed
JM
59172010-06-16 Jason Merrill <jason@redhat.com>
5918
5919 * c.opt: Add -Wnoexcept.
5920
33766b66
RG
59212010-06-16 Richard Guenther <rguenther@suse.de>
5922
5923 PR c/44555
5924 * c-common.c (c_common_truthvalue_conversion): Remove
5925 premature and wrong optimization concering ADDR_EXPRs.
5926
eff7e30c
AC
59272010-06-15 Arnaud Charlet <charlet@adacore.com>
5928
5929 * c-ada-spec.c (dump_sloc): Remove column info.
5930 (is_simple_enum): New function.
5931 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5932 enum types when relevant.
5933
6312e84d
MLI
59342010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5935
9faeb493 5936 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5937 location.
5938
1cb42611
JM
59392010-06-10 Joseph Myers <joseph@codesourcery.com>
5940
5941 * c-opts.c (c_common_handle_option): Don't handle
5942 OPT_fshow_column.
5943
a9429e29
LB
59442010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5945
5946 * c-pragma.c (push_alignment): Use typed GC allocation.
5947 (handle_pragma_push_options): Likewise.
5948
5949 * c-common.c (parse_optimize_options): Likewise.
5950
5951 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5952 option.
5953
5498f011
JM
59542010-06-07 Joseph Myers <joseph@codesourcery.com>
5955
5956 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5957 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5958 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5959 flag_signed_bitfields, warn_strict_null_sentinel,
5960 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5961 flag_gen_declaration, flag_no_gnu_keywords,
5962 flag_implement_inlines, flag_implicit_templates,
5963 flag_implicit_inline_templates, flag_optional_diags,
5964 flag_elide_constructors, flag_default_inline, flag_rtti,
5965 flag_conserve_space, flag_access_control, flag_check_new,
5966 flag_new_for_scope, flag_weak, flag_working_directory,
5967 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5968 flag_enforce_eh_specs, flag_threadsafe_statics,
5969 flag_pretty_templates): Remove.
5970 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5971 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5972 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5973 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5974 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5975 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5976 flag_no_gnu_keywords, flag_implement_inlines,
5977 flag_implicit_templates, flag_implicit_inline_templates,
5978 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5979 flag_rtti, flag_conserve_space, flag_access_control,
5980 flag_check_new, flag_new_for_scope, flag_weak,
5981 flag_working_directory, flag_use_cxa_atexit,
5982 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5983 flag_threadsafe_statics, flag_pretty_templates,
5984 warn_strict_null_sentinel): Remove.
5985 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5986 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5987 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5988 fimplicit-inline-templates, fimplicit-templates,
5989 flax-vector-conversions, fms-extensions, fnil-receivers,
5990 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5991 frtti, fshort-double, fshort-enums, fshort-wchar,
5992 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5993 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5994 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5995 gen-decls, undef): Use Var.
5996 (fdefault-inline, foptional-diags): Document as doing nothing.
5997 * c-opts.c (c_common_handle_option): Remove cases for options now
5998 using Var. Mark ignored options as such.
5999
39dabefd
SB
60002010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6001
9faeb493 6002 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6003 * c-common.def: Likewise.
6004 * c-common.h: Likewise.
6005 * c-cppbuiltin.c: Likewise.
6006 * c-dump.c: Likewise.
6007 * c-format.c: Likewise.
6008 * c-format.h : Likewise.
6009 * c-gimplify.c: Likewise.
6010 * c-lex.c: Likewise.
6011 * c-omp.c: Likewise.
6012 * c.opt: Likewise.
6013 * c-opts.c: Likewise.
6014 * c-pch.c: Likewise.
6015 * c-ppoutput.c: Likewise.
6016 * c-pragma.c: Likewise.
6017 * c-pragma.h: Likewise.
6018 * c-pretty-print.c: Likewise.
6019 * c-pretty-print.h: Likewise.
6020 * c-semantics.c: Likewise.
6021 * stub-objc.c: Likewise.
6022
6023 * c-common.c: Include gt-c-family-c-common.h.
6024 * c-pragma.c: Include gt-c-family-c-pragma.h.
6025\f
818ab71a 6026Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6027
6028Copying and distribution of this file, with or without modification,
6029are permitted in any medium without royalty provided the copyright
6030notice and this notice are preserved.