]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
stdfix.h [...]: Include <stdfix-avrlibc.h>.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
3d5cb23d
MP
12015-02-16 Marek Polacek <polacek@redhat.com>
2
3 PR c/65066
4 * c-format.c (check_format_types): Handle null param.
5
fa008882
MP
62015-02-13 Marek Polacek <polacek@redhat.com>
7
8 PR c/65040
9 * c-format.c (check_format_types): Don't warn about different
10 signedness if the original value is in the range of WANTED_TYPE.
11
785f21af
JM
122015-02-12 Jason Merrill <jason@redhat.com>
13
14 PR c++/64956
15 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
16 to the current highest version.
17 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
18
4886ec8e
JJ
192015-02-04 Jakub Jelinek <jakub@redhat.com>
20
21 PR c/64824
22 PR c/64868
23 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
24 instead of RDIV_EXPR. Use build_binary_op instead of
25 build2_loc.
26
40fecdd6
JM
272015-01-30 Joseph Myers <joseph@codesourcery.com>
28
29 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
30 to pass input_location as first argument.
31
a0c88d06
TV
322015-01-23 Tom de Vries <tom@codesourcery.com>
33
34 PR libgomp/64672
35 * c.opt (fopenacc): Mark as LTO option.
36
1506ae0e
TV
372015-01-23 Tom de Vries <tom@codesourcery.com>
38
39 PR libgomp/64707
40 * c.opt (fopenmp): Mark as LTO option.
41
31be63ab
JJ
422015-01-21 Jakub Jelinek <jakub@redhat.com>
43
44 PR c/63307
45 * cilk.c (fill_decls_vec): Only put decls into vector v.
46 (compare_decls): Fix up formatting.
47
482015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
49
50 PR c/63307
51 * cilk.c: Include vec.h.
52 (struct cilk_decls): New structure.
53 (wrapper_parm_cb): Split this function to...
54 (fill_decls_vec): ...this...
55 (create_parm_list): ...and this.
56 (compare_decls): New function.
57 (for_local_cb): Remove.
58 (wrapper_local_cb): Ditto.
59 (build_wrapper_type): For now first traverse and fill vector of
60 declarations then sort it and then deal with sorted vector.
61 (cilk_outline): Ditto.
62 (declare_one_free_variable): Ditto.
63
6875457f
JM
642015-01-21 Jason Merrill <jason@redhat.com>
65
66 PR c++/64629
67 * c-format.c (check_format_arg): Call decl_constant_value.
68
185c9e56
ML
692015-01-19 Martin Liska <mliska@suse.cz>
70
71 * c-common.c (handle_noicf_attribute): New function.
72
41dbbb37
TS
732015-01-15 Thomas Schwinge <thomas@codesourcery.com>
74 Bernd Schmidt <bernds@codesourcery.com>
75 James Norris <jnorris@codesourcery.com>
76 Cesar Philippidis <cesar@codesourcery.com>
77 Ilmir Usmanov <i.usmanov@samsung.com>
78 Jakub Jelinek <jakub@redhat.com>
79
80 * c.opt (fopenacc): New option.
81 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
82 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
83 New macros.
84 * c-common.h (c_finish_oacc_wait): New prototype.
85 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
86 (c_finish_oacc_wait): New function.
87 * c-pragma.c (oacc_pragmas): New variable.
88 (c_pp_lookup_pragma, init_pragma): Handle it.
89 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
90 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
91 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
92 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
93 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
94 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
95 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
96 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
97 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
98 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
99 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
100 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
101 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
102 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
103 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
104 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
105 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
106 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
107 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
108 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
109 PRAGMA_OACC_CLAUSE_WORKER.
110
5434dc07
MD
1112015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
112
113 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
114 for the new option fstack-protector_explicit.
115 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
116 (handle_stack_protect_attribute): New function.
117
de1b5c17
MU
1182015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
119
120 * c.opt: New option -Warray-bounds=.
121
adfac8df
JJ
1222015-01-09 Michael Collison <michael.collison@linaro.org>
123
124 * array-notation-common.c: Include hash-set.h, machmode.h,
125 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
126 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
127 * c-ada-spec.c: Ditto.
128 * c-cilkplus.c: Ditto.
129 * c-common.c: Include input.h due to flattening of tree.h.
130 Define macro GCC_C_COMMON_C.
131 * c-common.h: Flatten tree.h header files into c-common.h.
132 Remove include of tree-core.h.
133 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
134 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
135 fold-const.h, wide-int.h, and inchash.h due to
136 flattening of tree.h.
137 * c-dump.c: Ditto.
138 * c-format.c: Flatten tree.h header files into c-common.h.
139 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
140 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
141 fold-const.h, wide-int.h, and inchash.h due to
142 flattening of tree.h.
143 * c-dump.c: Include hash-set.h, machmode.h,
144 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
145 fold-const.h, wide-int.h, and inchash.h due to
146 flattening of tree.h.
147 * c-format.c: Include hash-set.h, machmode.h,
148 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
149 fold-const.h, wide-int.h, inchash.h and real.h due to
150 flattening of tree.h.
151 * c-gimplify.c: Include hash-set.h, machmode.h,
152 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
153 fold-const.h, wide-int.h, and inchash.h due to
154 flattening of tree.h.
155 * cilk.c: Ditto.
156 * c-lex.c: Ditto.
157 * c-omp.c: Ditto.
158 * c-opts.c: Ditto.
159 * c-pch.c: Ditto.
160 * c-ppoutput.c: Ditto.
161 * c-pragma.c: Ditto.
162 * c-pretty-print.c: Ditto.
163 * c-semantics.c: Ditto.
164 * c-ubsan.c: Ditto.
165 * stub-objc.c: Ditto.
166
f5481fc4
JM
1672015-01-08 Jason Merrill <jason@redhat.com>
168
169 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
170 do_ubsan_in_current_function.
171 (ubsan_maybe_instrument_reference_or_call): Likewise.
172 * c-ubsan.h: Declare it.
173
de35aa66
MS
1742015-01-08 Mike Stump <mikestump@comcast.net>
175
176 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
177
4a9a42ab
MP
1782015-01-07 Marek Polacek <polacek@redhat.com>
179
180 PR c/64440
181 * c-common.c (c_fully_fold_internal): Warn for division and modulo
182 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
183
2f42e5de
TS
1842015-01-05 Trevor Saunders <tsaunders@mozilla.com>
185
186 PR c++/31397
187 * c.opt (Wsuggest-override): New option.
188
5624e564
JJ
1892015-01-05 Jakub Jelinek <jakub@redhat.com>
190
191 Update copyright years.
192
5bd012f8
MP
1932015-01-05 Marek Polacek <polacek@redhat.com>
194
195 PR c/64423
196 * c-common.c (warn_array_subscript_with_type_char): Add location_t
197 parameter. Use it.
198 * c-common.h (warn_array_subscript_with_type_char): Update
199 declaration.
200
a7fa8d18
ESR
2012014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
202
203 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
204 Control macro with flag_sized_deallocation.
205
768952be
MU
2062014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
207
208 * c.opt (Wdiscarded-array-qualifiers): New option.
209
1f8d3e84
JJ
2102014-12-19 Jakub Jelinek <jakub@redhat.com>
211
212 PR preprocessor/63831
213 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
214 and __has_cpp_attribute here.
215 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
216 c_common_has_attribute.
217 * c-common.h (c_common_has_attribute): New prototype.
218 * c-lex.c (init_c_lex): Set cb->has_attribute to
219 c_common_has_attribute instead of cb_has_attribute.
220 (get_token_no_padding): New function.
221 (cb_has_attribute): Renamed to ...
222 (c_common_has_attribute): ... this. No longer static. Use
223 get_token_no_padding, require ()s, don't build TREE_LIST
224 unnecessarily, fix up formatting, adjust diagnostics, call
225 init_attributes.
226
20b06add
JM
2272014-12-15 Jason Merrill <jason@redhat.com>
228
229 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
230 (-Wsized-deallocation): New.
231 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
232 to on in C++14 and up.
233
94a073b2
JM
2342014-12-11 Jason Merrill <jason@redhat.com>
235
acaa5911
JM
236 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
237
94a073b2
JM
238 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
239 we aren't complaining about VLAs.
240
7fb66c15
MP
2412014-12-06 Marek Polacek <polacek@redhat.com>
242
243 PR tree-optimization/64183
244 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
245 shift-expression if it is integer_type_node. Use types_compatible_p.
246
b731b390
JJ
2472014-11-29 Jakub Jelinek <jakub@redhat.com>
248
249 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
250 last argument from create_tmp_var_raw and create_tmp_var calls.
251 * cilk.c (gimplify_cilk_spawn): Likewise.
252 * c-omp.c (c_finish_omp_atomic): Likewise.
253
6a4da643
MP
2542014-11-28 Marek Polacek <polacek@redhat.com>
255
256 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
257 instead of unsigned_type_node.
258
541e35a6
MP
2592014-11-28 Marek Polacek <polacek@redhat.com>
260
261 PR c/63862
262 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
263 to op1_utype.
264 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
265 expression to unsigned_type_node.
266
dcc97066
MW
2672014-11-20 Mark Wielaard <mjw@redhat.com>
268
269 PR debug/38757
270 * c-opts.c (set_std_c89): Set lang_hooks.name.
271 (set_std_c99): Likewise.
272 (set_std_c11): Likewise.
273 (set_std_cxx98): Likewise.
274 (set_std_cxx11): Likewise.
275 (set_std_cxx14): Likewise.
276 (set_std_cxx1z): Likewise.
277
aa7da51a
JJ
2782014-11-21 Jakub Jelinek <jakub@redhat.com>
279
280 PR target/63764
281 * c-common.h (convert_vector_to_pointer_for_subscript): Change
282 return type to bool.
009a3480 283 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
284 (convert_vector_to_pointer_for_subscript): Change return type to
285 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
286 and copy it into a TARGET_EXPR and use that instead of *vecp
287 directly.
288
538dd0b7
DM
2892014-11-19 David Malcolm <dmalcolm@redhat.com>
290
291 Merger of git branch "gimple-classes-v2-option-3".
292 * ChangeLog.gimple-classes: New.
293 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
294 from being just a vec<gimple> to a vec<gbind *>.
295
c39a5e99
JJ
2962014-11-18 Jakub Jelinek <jakub@redhat.com>
297
298 PR sanitizer/63813
299 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
300 argument to ptype, set type to TREE_TYPE (ptype). Don't call
301 get_pointer_alignment for non-pointers. Use ptype, or if it is
302 reference type, corresponding pointer type, as type of kind
303 argument.
304 (ubsan_maybe_instrument_reference,
305 ubsan_maybe_instrument_member_call): Adjust callers.
306
8537a4a9
MP
3072014-11-15 Marek Polacek <polacek@redhat.com>
308
309 PR middle-end/63884
310 * array-notation-common.c (is_sec_implicit_index_fn): Return false
311 for NULL fndecl.
312 (extract_array_notation_exprs): Return for NULL node.
313
2079956a
JM
3142014-11-12 Joseph Myers <joseph@codesourcery.com>
315
316 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
317 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
318
1304953e
JJ
3192014-11-12 Jakub Jelinek <jakub@redhat.com>
320
321 PR c/59708
322 * c-common.c (check_builtin_function_arguments): Handle
323 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
324
e5e44252
AK
3252014-11-10 Andi Kleen <ak@linux.intel.com>
326
327 PR c/60804
328 * c-common.h (check_no_cilk): Declare.
329 * cilk.c (get_error_location): New function.
330 (check_no_cilk): Dito.
331
e64b984d
AK
3322014-11-10 Andi Kleen <ak@linux.intel.com>
333
334 * cilk.c (recognize_spawn): Use expression location
335 for error message.
336
13c21655
PC
3372014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
338
339 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
340
42fd12b1
ESR
3412014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
342
343 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
344 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
345 (__cpp_range_based_for, __cpp_initializer_lists,
346 __cpp_delegating_constructors, __cpp_nsdmi,
347 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
348 for C++11; (__cpp_attribute_deprecated): Remove in favor of
349 __has_cpp_attribute.
350 * c-lex.c (cb_has_attribute): New callback CPP function;
351 (init_c_lex): Set has_attribute callback.
352
6f450181
RB
3532014-11-04 Richard Biener <rguenther@suse.de>
354
355 * c-common.c (shorten_compare): Do not shorten mixed
356 DFP and non-DFP compares.
357
26f0e1d6
ESR
3582014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
359
360 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
361 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
362 Commentary and rearrangement of tests.
363 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
364 Commentary and rearrangement of tests.
365 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
366 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
367
ef4bddc2
RS
3682014-10-29 Richard Sandiford <richard.sandiford@arm.com>
369
370 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
371 enum from machine_mode.
372
c582198b
AM
3732014-10-28 Andrew MacLeod <amacleod@redhat.com>
374
adfac8df
JJ
375 * c-common.c: Adjust include files.
376 * c-gimplify.c: Ditto.
377 * cilk.c: Ditto.
378 * c-pragma.c: Ditto.
379 * c-ubsan.c: Ditto.
c582198b 380
60393bbc
AM
3812014-10-27 Andrew MacLeod <amacleod@redhat.com>
382
383 * c-gimplify.c: Adjust include files.
384
d723bb7c
MLI
3852014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
386
387 PR c++/53061
388 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
389 c_common_initialize_diagnostics.
390 * c-common.h: Likewise.
391
90f3520e
MP
3922014-10-24 Marek Polacek <polacek@redhat.com>
393
394 PR c/56980
395 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
396 print "struct"/"union"/"enum" for typedefed names.
397
59d7607a
MP
3982014-10-23 Marek Polacek <polacek@redhat.com>
399
400 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
401 in unsigned type.
402
d95a2703
JJ
4032014-10-22 Jakub Jelinek <jakub@redhat.com>
404 Yury Gribov <y.gribov@samsung.com>
405
406 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
407 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
408 instead of flag_sanitize_recover as bool flag.
409
8e6ef852
KY
4102014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
411
412 * cilk.c: Revert previous change.
413
948cf550
IZ
4142014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
415
416 PR c/63307
417 * cilk.c: Include vec.h.
418 (struct cilk_decls): New structure.
419 (wrapper_parm_cb): Split this function to...
420 (fill_decls_vec): ...this...
421 (create_parm_list): ...and this.
422 (compare_decls): New function.
423 (for_local_cb): Remove.
424 (wrapper_local_cb): Ditto.
425 (build_wrapper_type): For now first traverse and fill vector of
426 declarations then sort it and then deal with sorted vector.
427 (cilk_outline): Ditto.
428 (declare_one_free_variable): Ditto.
429
92574c7c
MP
4302014-10-17 Marek Polacek <polacek@redhat.com>
431
432 * c-opts.c (c_common_post_options): Set warn_implicit_int.
433 * c.opt (Wimplicit-int): Initialize to -1.
434
83685514
AM
4352014-10-16 Andrew MacLeod <amacleod@redhat.com>
436
437 * c-pragma.c: Adjust include files.
438 * c-semantics.c: Likewise.
439
5b8300ea
DD
4402014-10-16 DJ Delorie <dj@redhat.com>
441
442 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
443 multiples of bytes.
444
5f83e90b
JM
4452014-10-14 Jason Merrill <jason@redhat.com>
446
447 PR c++/63455
448 * c-common.h (CPP_PREPARSED_EXPR): New.
449 (N_CP_TTYPES): Adjust.
450
d73326ca
MP
4512014-10-15 Marek Polacek <polacek@redhat.com>
452
453 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
454
78a7c317
DD
4552014-10-14 DJ Delorie <dj@redhat.com>
456
457 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
458 types, not just __int128.
459 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
460 types, not just __int128.
461 (cpp_atomic_builtins): Round pointer sizes up.
462 (type_suffix): Use type precision, not specific types.
463 * c-common.c (c_common_reswords): Remove __int128 special case.
464 (c_common_type_for_size): Check for all __intN types, not just
465 __int128.
466 (c_common_type_for_mode): Likewise.
467 (c_common_signed_or_unsigned_type): Likewise.
468 (c_build_bitfield_integer_type): Likewise.
469 (c_common_nodes_and_builtins): Likewise.
470 (keyword_begins_type_specifier): Likewise.
471 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
472 __intN variants.
473
2a22f99c
TS
4742014-10-12 Trevor Saunders <tsaunders@mozilla.com>
475
476 * c-common.c: Use hash_table instead of hashtab.
477
2a8ef767
ESR
4782014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
479
adfac8df 480 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
481 C++11 section.
482
3c9aabbd
MG
4832014-10-03 Marc Glisse <marc.glisse@inria.fr>
484
485 PR c++/54427
486 PR c++/57198
487 PR c++/58845
488 * c-common.c (warn_logical_operator): Punt for vectors.
489
a15f7cb8
ESR
4902014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
491
492 Implement SD-6: SG10 Feature Test Recommendations
493 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
494 macros and the __has_header macro.
495
8d0cf15e
JM
4962014-09-30 Jason Merrill <jason@redhat.com>
497
dd5d5481
JM
498 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
499 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
500 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
501
b752325e
JM
502 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
503 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
504
8d0cf15e
JM
505 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
506 * c-common.c (c_common_reswords): Remove __is_convertible_to.
507
083e891e
MP
5082014-09-24 Marek Polacek <polacek@redhat.com>
509
510 PR c/61405
511 PR c/53874
512 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
513
7861b648
AK
5142014-09-23 Andi Kleen <ak@linux.intel.com>
515
516 * c-common.c (handle_no_reorder_attribute): New function.
517 (c_common_attribute_table): Add no_reorder attribute.
518
9a79452d
JM
5192014-09-22 Joseph Myers <joseph@codesourcery.com>
520
521 * c-cppbuiltin.c (c_cpp_builtins): Define
522 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
523 modes.
524
dd69f047
JM
5252014-09-18 Joseph Myers <joseph@codesourcery.com>
526
527 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
528 for supported floating-point modes.
529
737a4826
MLI
5302014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
531
532 * c.opt (Wpsabi): Use LangEnabledBy.
533 * c-opts.c (c_common_handle_option): Do not handle here.
534
8cc4b7a2
JM
5352014-09-12 Joseph Myers <joseph@codesourcery.com>
536
537 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
538 macros for floating-point modes.
539
179b5a55
MG
5402014-09-11 Marc Glisse <marc.glisse@inria.fr>
541
542 PR target/58757
543 * c-cppbuiltin.c (builtin_define_float_constants): Correct
544 __*_DENORM_MIN__ without denormals.
545
570a11fe
JJ
5462014-09-10 Jakub Jelinek <jakub@redhat.com>
547
548 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
549 ubsan_instrument_vla, ubsan_instrument_return): Adjust
550 ubsan_create_data callers.
551 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
552 index is constant or BIT_AND_EXPR with constant mask and is
553 small enough for the bound.
554 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
555 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
556
b559c810
MLI
5572014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
558
559 * c.opt: Add CppReason to various flags.
560 (Wdate-time): Re-sort.
561 * c-common.c: Include c-common.h earlier.
562 (struct reason_option_codes_t): Delete.
563 (c_option_controlling_cpp_error): Prefix global type and struct
564 with cpp_.
565
1ef33fd4
MLI
5662014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
567
568 * c.opt (Wnormalized): New.
569 (Wnormalized=): Use Enum and Reject Negative.
570 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
571
66bb34c0
JM
5722014-09-08 Joseph Myers <joseph@codesourcery.com>
573
574 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
575 digits of floating-point modes if -fbuilding-libgcc.
576
53d68b9f
JM
5772014-09-05 Joseph Myers <joseph@codesourcery.com>
578
579 * c-cppbuiltin.c (c_cpp_builtins): Also define
580 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
581 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
582 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
583 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
584 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
585 __LIBGCC_STACK_GROWS_DOWNWARD__,
586 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
587 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
588 __LIBGCC_DWARF_FRAME_REGISTERS__,
589 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
590 __LIBGCC_STACK_POINTER_REGNUM__ and
591 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
592 (builtin_define_with_value): Handle backslash-escaping in string
593 macro values.
594
f65586dc
RB
5952014-09-05 Richard Biener <rguenther@suse.de>
596
597 PR middle-end/63148
598 * c-format.c (check_format_arg): Properly handle
599 effectively signed POINTER_PLUS_EXPR offset.
600
2b71f4a4
MLI
6012014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
602
603 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
604 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
605 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
606 and Init.
607 * c-opts.c (c_common_handle_option): Do not handle here.
608 (sanitize_cpp_opts): Likewise.
609 * c-common.c (struct reason_option_codes_t): Handle
610 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
611
d2e4feca
MP
6122014-09-03 Marek Polacek <polacek@redhat.com>
613
614 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
615
9a771876
JJ
6162014-09-02 Jakub Jelinek <jakub@redhat.com>
617 Balaji V. Iyer <balaji.v.iyer@intel.com>
618 Igor Zamyatin <igor.zamyatin@intel.com>
619
620 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
621 * c-common.c (c_common_reswords): Added _Cilk_for.
622 * c-common.h (enum rid): Added RID_CILK_FOR.
623 (cilk_for_number_of_iterations): Add declaration.
624 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
625 CILK_FOR.
626 * c-pragma.c (init_pragma): Register "grainsize" pragma.
627 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
628
81b5d104
MLI
6292014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
630
631 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
632 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
633 Wundef): Use CPP, Var and Init.
634 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
635
b753b37b
MLI
6362014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
637
638 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
639 * c-opts.c (c_common_handle_option): Do not handle here.
640
028aee17
JM
6412014-08-25 Jason Merrill <jason@redhat.com>
642
643 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
644 -std=c++14 and -std=gnu++14, rather than the reverse.
645 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
646 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
647 * c-common.h (cxx_dialect): Remove cxx1y.
648
e4276ba5
ESR
6492014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
650
651 * c-common.h (enum cxx_dialect): Add cxx14.
652 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
653 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
654 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
655
a545cacd
JM
6562014-08-22 Jason Merrill <jason@redhat.com>
657
658 * c.opt (std=gnu++17): Fix alias.
659
59ea0364
MP
6602014-08-22 Marek Polacek <polacek@redhat.com>
661
662 PR c++/62199
663 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
664 check for vector types. Drop LHS argument.
665 * c-common.h (warn_logical_not_parentheses): Adjust.
666
596e808c
MLI
6672014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
668
669 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
670 (Wmultichar): Likewise.
671 (Wdate-time): Use C-family languages instead of Common. Use CPP
672 and Var.
673 * c-opts.c (c_common_handle_option): Do not handle the above
674 options here.
675 (sanitize_cpp_opts): Likewise.
676
18767f65
MLI
6772014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
678
679 PR fortran/44054
680 * c-opts.c: Include tree-diagnostics.h.
681 (c_diagnostic_finalizer): New.
682 (c_common_initialize_diagnostics): Use it.
683
b4413594
MLI
6842014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
685
686 PR preprocessor/51303
687 * c-common.c (struct reason_option_codes_t option_codes):
688 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
689
43f9a13c
MLI
6902014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
691
692 PR c/60975
693 PR c/53063
694 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
695 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
696 (c_common_post_options): Call init_global_opts_from_cpp.
697 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
698
04159acf
MP
6992014-08-19 Marek Polacek <polacek@redhat.com>
700
701 PR c++/62153
702 * c-common.c (maybe_warn_bool_compare): New function.
703 * c-common.h (maybe_warn_bool_compare): Declare.
704 * c.opt (Wbool-compare): New option.
705
35aff4fb
MP
7062014-08-19 Marek Polacek <polacek@redhat.com>
707
708 * c.opt (Wc99-c11-compat): New option.
709
177cce46
MP
7102014-08-19 Marek Polacek <polacek@redhat.com>
711
712 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
713 to warn_c90_c99_compat.
714 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
715 to -1.
716
6ae9194f
MLI
7172014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
718 Steven Bosscher <steven@gcc.gnu.org>
719
720 PR c/52952
721 * c-format.c: Add extra_arg_loc and format_string_loc to struct
722 format_check_results.
723 (check_function_format): Use true and add comment for boolean
724 argument.
725 (finish_dollar_format_checking): Use explicit location when warning.
726 (check_format_info): Likewise.
727 (check_format_arg): Set extra_arg_loc and format_string_loc.
728 (check_format_info_main): Use explicit location when warning.
729 (check_format_types): Pass explicit location.
730 (format_type_warning): Likewise.
731
8e54f6d3
MLI
7322014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
733
734 PR fortran/44054
735 * c-format.c: Handle Fortran flags.
736
cd4e76fc
IZ
7372014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
738
739 PR other/61962
740 * array-notation-common.c (find_rank): Added handling for other
741 types of references.
742
f3bede71
MP
7432014-08-10 Marek Polacek <polacek@redhat.com>
744
745 PR c/51849
746 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
747 * c.opt (Wc90-c99-compat): Add option.
748
9f25a338
TS
7492014-08-07 Trevor Saunders <tsaunders@mozilla.com>
750
751 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
752
62e4eb35
MP
7532014-08-03 Marek Polacek <polacek@redhat.com>
754
755 * c-common.c (check_case_value): Add location_t parameter. Use it.
756 (c_add_case_label): Pass loc to check_case_value.
757
b787e7a2
TS
7582014-08-02 Trevor Saunders <tsaunders@mozilla.com>
759
760 * cilk.c: Use hash_map instead of pointer_map.
761
6e2830c3
TS
7622014-08-02 Trevor Saunders <tsaunders@mozilla.com>
763
764 * c-gimplify.c: Use hash_set instead of pointer_set.
765
a7ee52fb
IZ
7662014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
767
768 PR middle-end/61455
769 * array-notation-common.c (extract_array_notation_exprs): Handling
770 of DECL_EXPR added.
771
944fa280
JJ
7722014-08-01 Jakub Jelinek <jakub@redhat.com>
773
774 * c-common.h (min_align_of_type): Removed prototype.
775 * c-common.c (min_align_of_type): Removed.
776 * c-ubsan.h (ubsan_maybe_instrument_reference,
777 ubsan_maybe_instrument_member_call): New prototypes.
778 * c-ubsan.c: Include stor-layout.h and builtins.h.
779 (ubsan_maybe_instrument_reference_or_call,
780 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
781 functions.
782
b4dfdc11
MG
7832014-07-31 Marc Glisse <marc.glisse@inria.fr>
784
785 PR c++/60517
786 * c.opt (-Wreturn-local-addr): Move to common.opt.
787
a41844e5
JM
7882014-07-30 Jason Merrill <jason@redhat.com>
789
790 PR c++/61659
791 PR c++/61687
792 Revert:
793 * c.opt (-fuse-all-virtuals): New.
794
976d5a22
TT
7952014-07-30 Tom Tromey <tromey@redhat.com>
796
797 PR c/59855
798 * c.opt (Wdesignated-init): New option.
799 * c-common.c (c_common_attribute_table): Add "designated_init".
800 (handle_designated_init): New function.
801
cdc94aca
MP
8022014-07-24 Marek Polacek <polacek@redhat.com>
803
804 PR c/57653
805 * c-opts.c (c_finish_options): If -imacros is in effect, return.
806
f41373b6
DS
8072014-07-16 Dodji Seketeli <dodji@redhat.com>
808
809 PR preprocessor/60723 - missing system-ness marks for macro tokens
810 * c-ppoutput.c (struct print::prev_was_system_token): New data
811 member.
812 (init_pp_output): Initialize it.
813 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
814 (do_line_change): Return a flag saying if a line marker was
815 emitted or not.
816 (scan_translation_unit): Detect if the system-ness of the token we
817 are about to emit is different from the one of the previously
818 emitted token. If so, emit a line marker. Avoid emitting useless
819 adjacent line markers. Avoid emitting line markers for tokens
820 originating from the expansion of built-in macros.
821 (scan_translation_unit_directives_only): Adjust.
822
4d661eaa
MP
8232014-07-15 Marek Polacek <polacek@redhat.com>
824
825 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
826 TYPE_MAX_VALUE is NULL.
827
b108f48f
JJ
8282014-07-14 Jakub Jelinek <jakub@redhat.com>
829
830 PR middle-end/61294
831 * c.opt (Wmemset-transposed-args): New warning.
832
c0221884
JM
8332014-07-10 Jason Merrill <jason@redhat.com>
834
835 PR c++/61659
836 PR c++/61687
837 * c.opt (-fuse-all-virtuals): New.
838
63dfbb95
RB
8392014-07-09 Richard Biener <rguenther@suse.de>
840
841 PR c-family/61741
842 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
843 using unsigned arithmetic if overflow does not wrap instead of
844 if overflow is undefined.
845
773ec47f
MP
8462014-07-06 Marek Polacek <polacek@redhat.com>
847
848 PR c/6940
849 * c.opt (Wsizeof-array-argument): New option.
850
00a7ba58
JJ
8512014-07-03 Jakub Jelinek <jakub@redhat.com>
852
853 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
854 comments->count <= 1, as comments->entries might be NULL.
855
52ec0ea3
MP
8562014-07-01 Marek Polacek <polacek@redhat.com>
857
858 * c.opt (Wint-conversion): New option.
859
d5c3d343
MP
8602014-07-01 Marek Polacek <polacek@redhat.com>
861
862 PR c/58286
863 * c.opt (Wincompatible-pointer-types): New option.
864
6e7ceb17
PC
8652014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
866
867 PR c++/51400
868 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
869 Do not discard TYPE_QUALS of type.
870
da73100b
JM
8712014-06-26 Jason Merrill <jason@redhat.com>
872
873 * c-common.h (enum cxx_dialect): Add cxx1z.
874 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
875 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
876
08eedf75
TJ
8772014-06-26 Teresa Johnson <tejohnson@google.com>
878
879 * c-common.h (get_dump_info): Declare.
880 * c-gimplify.c (c_genericize): Use saved dump files.
881 * c-opts.c (c_common_parse_file): Begin and end dumps
882 once around parsing invocation.
883 (get_dump_info): New function.
884
7b56b2f8
MP
8852014-06-23 Marek Polacek <polacek@redhat.com>
886 Andrew MacLeod <amacleod@redhat.com>
887
888 PR c/61553
889 * c-common.c (get_atomic_generic_size): Don't segfault if the
890 type doesn't have a size.
891
0e37a2f3
MP
8922014-06-20 Marek Polacek <polacek@redhat.com>
893
894 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
895 (ubsan_walk_array_refs_r): New function.
896 (c_genericize): Instrument array bounds.
897 * c-ubsan.c: Include "internal-fn.h".
898 (ubsan_instrument_division): Mark instrumented arrays as having
899 side effects. Adjust ubsan_type_descriptor call.
900 (ubsan_instrument_shift): Likewise.
901 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
902 (ubsan_instrument_bounds): New function.
903 (ubsan_array_ref_instrumented_p): New function.
904 (ubsan_maybe_instrument_array_ref): New function.
905 * c-ubsan.h (ubsan_instrument_bounds): Declare.
906 (ubsan_array_ref_instrumented_p): Declare.
907 (ubsan_maybe_instrument_array_ref): Declare.
908
9092014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
910
911 PR lto/61123
912 * c.opt (fshort-enums): Add to LTO.
913 * c.opt (fshort-wchar): Likewise.
914
5c3d09f7
MP
9152014-06-16 Marek Polacek <polacek@redhat.com>
916
917 PR c/60439
918 * c.opt (Wswitch-bool): Add Var.
919
9cf32741
JJ
9202014-06-12 Jakub Jelinek <jakub@redhat.com>
921
922 PR middle-end/61486
923 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
924 #pragma omp target teams or
925 #pragma omp {,target }teams distribute simd.
926
62984918
JM
9272014-06-12 Jason Merrill <jason@redhat.com>
928
929 * c.opt (Wabi=, fabi-compat-version): New.
930 * c-opts.c (c_common_handle_option): Handle -Wabi=.
931 (c_common_post_options): Handle flag_abi_compat_version default.
932 Disallow -fabi-compat-version=1.
933 * c-common.h (abi_version_crosses): New.
934
f961457f
JH
9352014-06-11 Jan Hubicka <hubicka@ucw.cz>
936
adfac8df 937 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
938 section names that are no longer trees.
939
92d28cbb
JJ
9402014-06-10 Jakub Jelinek <jakub@redhat.com>
941
942 PR fortran/60928
943 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
944 (omp_pragmas): ... back here.
945
742938c9
MP
9462014-06-05 Marek Polacek <polacek@redhat.com>
947
948 PR c/49706
949 * c-common.c (warn_logical_not_parentheses): New function.
950 * c-common.h (warn_logical_not_parentheses): Declare.
951 * c.opt (Wlogical-not-parentheses): New option.
952
9d548dfb
MP
9532014-06-04 Marek Polacek <polacek@redhat.com>
954
955 PR c/30020
956 * c-common.c (check_case_bounds): Add location parameter.
957 Use it.
958 (c_add_case_label): Pass loc to check_case_bounds.
959
fedfecef
MP
9602014-06-03 Marek Polacek <polacek@redhat.com>
961
962 PR c/60439
963 * c.opt (Wswitch-bool): New option.
964
f6a7cffc
TS
9652014-05-22 Thomas Schwinge <thomas@codesourcery.com>
966
040d18b6
TS
967 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
968 Remove prototypes.
969 (record_types_used_by_current_var_decl): Move prototype to where
970 it belongs.
971
f6a7cffc
TS
972 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
973 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
974 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
975
632f2871
RS
9762014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
977
978 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
979 * c-common.c (c_common_nodes_and_builtins): Don't initialize
980 void_zero_node.
981 * c-pretty-print.c (pp_c_void_constant): New function.
982 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
983 (c_pretty_printer::expression): Handle VOID_CST.
984 * cilk.c (extract_free_variables): Likewise.
985 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
986 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
987
766090c2
TS
9882014-05-17 Trevor Saunders <tsaunders@mozilla.com>
989
990 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
991 * c-pragma.c (push_alignment): Adjust.
992 (handle_pragma_push_options): Likewise.
993
661a0813
MP
9942014-05-09 Marek Polacek <polacek@redhat.com>
995
996 PR c/50459
997 * c-common.c (check_user_alignment): Return -1 if alignment is error
998 node.
999 (handle_aligned_attribute): Don't call default_conversion on
1000 FUNCTION_DECLs.
1001 (handle_vector_size_attribute): Likewise.
1002 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1003 (handle_sentinel_attribute): Call default_conversion and allow even
1004 integral types as an argument.
1005
2793eeab
MP
10062014-05-08 Marek Polacek <polacek@redhat.com>
1007
1008 PR c/61053
1009 * c-common.c (min_align_of_type): New function factored out from...
1010 (c_sizeof_or_alignof_type): ...here.
1011 * c-common.h (min_align_of_type): Declare.
1012
f827930a
MP
10132014-05-08 Marek Polacek <polacek@redhat.com>
1014
1015 PR c/61077
1016 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1017 parameter type of main.
1018
ca49b74e
DD
10192014-05-07 DJ Delorie <dj@redhat.com>
1020
1021 * c-cppbuiltin.c (print_bits_of_hex): New.
1022 (builtin_define_type_minmax): Print values using hex so as not to
1023 require a pre-computed list of string values.
1024
1d60af08
KZ
10252014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1026 Mike Stump <mikestump@comcast.net>
1027 Richard Sandiford <rdsandiford@googlemail.com>
1028
1029 * c-ada-spec.c: Include wide-int.h.
1030 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1031 (dump_generic_ada_node): Use wide-int interfaces.
1032 * c-common.c: Include wide-int-print.h.
1033 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1034 (pointer_int_sum): Use wide-int interfaces.
1035 (c_common_nodes_and_builtins): Use make_int_cst.
1036 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1037 (handle_alloc_size_attribute): Use wide-int interfaces.
1038 (get_nonnull_operand): Likewise.
1039 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1040 * c-lex.c: Include wide-int.h.
1041 (narrowest_unsigned_type): Take a widest_int rather than two
1042 HOST_WIDE_INTs.
1043 (narrowest_signed_type): Likewise.
1044 (interpret_integer): Update accordingly. Use wide-int interfaces.
1045 (lex_charconst): Use wide-int interfaces.
1046 * c-pretty-print.c: Include wide-int.h.
1047 (pp_c_integer_constant): Use wide-int interfaces.
1048 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1049 INT_CST_LT_UNSIGNED.
1050
b15458be
RB
10512014-05-06 Richard Biener <rguenther@suse.de>
1052
1053 * c-opts.c (c_common_post_options): For -freestanding,
1054 -fno-hosted and -fno-builtin disable pattern recognition
1055 if not enabled explicitely.
1056
6577374e
MP
10572014-05-02 Marek Polacek <polacek@redhat.com>
1058
1059 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1060
d00887e8
MP
10612014-05-01 Marek Polacek <polacek@redhat.com>
1062
1063 PR c/43245
1064 * c.opt (Wdiscarded-qualifiers): Add.
1065
f8ed5150
MP
10662014-04-30 Marek Polacek <polacek@redhat.com>
1067
1068 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1069 INT_MIN / -1 sanitization only for integer types.
1070
45484dcf
MP
10712014-04-25 Marek Polacek <polacek@redhat.com>
1072
1073 PR c/18079
1074 * c-common.c (handle_noinline_attribute): Warn if the attribute
1075 conflicts with always_inline attribute.
1076 (handle_always_inline_attribute): Warn if the attribute conflicts
1077 with noinline attribute.
1078
38e514c0
MP
10792014-04-25 Marek Polacek <polacek@redhat.com>
1080
1081 PR c/60156
1082 * c-common.c (check_main_parameter_types): Warn about variadic main.
1083
44875f92
MS
10842014-04-24 Mike Stump <mikestump@comcast.net>
1085
1086 * c.opt (Wshadow-ivar): Default to on.
1087
dcaaa5a0
DP
10882014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1089
1090 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1091
c07d7c02
MP
10922014-04-23 Marek Polacek <polacek@redhat.com>
1093
1094 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1095
1c33c9b7
JJ
10962014-04-22 Jakub Jelinek <jakub@redhat.com>
1097
1098 PR sanitizer/60275
1099 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1100 if flag_sanitize_undefined_trap_on_error.
1101 (ubsan_instrument_division, ubsan_instrument_shift,
1102 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1103 if !flag_sanitize_recover.
1104
793c625f
MG
11052014-04-22 Marc Glisse <marc.glisse@inria.fr>
1106
1107 PR libstdc++/43622
1108 * c-common.c (registered_builtin_types): Make non-static.
1109 * c-common.h (registered_builtin_types): Declare.
1110
b0f1bf36
RB
11112014-04-14 Richard Biener <rguenther@suse.de>
1112 Marc Glisse <marc.glisse@inria.fr>
1113
1114 PR c/60819
1115 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1116 apply may-alias the scalar pointer type when applicable.
1117
3b07fa4a
IZ
11182014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1119
1120 PR middle-end/60467
1121 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1122 as possible argument for Cilk_spawn.
1123
cbbd2b1c
TB
11242014-04-11 Tobias Burnus <burnus@net-b.de>
1125
1126 PR c/60194
1127 * c.opt (Wformat-signedness): Add
1128 * c-format.c(check_format_types): Use it.
1129
6415bd5d
JM
11302014-04-11 Jason Merrill <jason@redhat.com>
1131
1132 PR c++/57926
1133 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1134 default_conversion for an array argument.
1135
6525783a
MP
11362014-04-08 Marek Polacek <polacek@redhat.com>
1137
1138 PR sanitizer/60745
1139 * c-ubsan.c: Include asan.h.
1140 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1141
880a467b
NS
11422014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1143
1144 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1145
7b59ff2d
MP
11462014-04-02 Marek Polacek <polacek@redhat.com>
1147
1148 * c-common.h (c_expand_expr): Remove declaration.
1149
8edbfaa6
JJ
11502014-03-28 Jakub Jelinek <jakub@redhat.com>
1151
1152 PR c++/60689
1153 * c-common.c (add_atomic_size_parameter): When creating new
1154 params vector, push the size argument first.
1155
07d72e1d
JJ
11562014-03-26 Jakub Jelinek <jakub@redhat.com>
1157
1158 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1159 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1160 ubsan_create_data callers.
1161
b35e0fa0
JJ
11622014-03-22 Jakub Jelinek <jakub@redhat.com>
1163
1164 PR debug/60603
1165 * c-opts.c (c_finish_options): Restore cb_file_change call to
1166 <built-in>.
1167
39a1ebb3
JJ
11682014-03-13 Jakub Jelinek <jakub@redhat.com>
1169
1170 PR middle-end/36282
1171 * c-pragma.c (apply_pragma_weak): Only look at
1172 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1173 DECL_ASSEMBLER_NAME_SET_P (decl).
1174 (maybe_apply_pending_pragma_weaks): Exit early if
1175 vec_safe_is_empty (pending_weaks) rather than only when
1176 !pending_weaks.
1177 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1178 set assembler name back to NULL afterwards.
1179
a07f6ed2
JM
11802014-03-11 Jason Merrill <jason@redhat.com>
1181
1182 * c.opt: Add -std=gnu++14.
1183
75b107f5
IB
11842014-03-11 Ian Bolton <ian.bolton@arm.com>
1185
1186 * c-opts.c (c_common_post_options): Don't override
1187 -ffp-contract=fast if unsafe-math-optimizations is on.
1188
f42c637e
PM
11892014-03-08 Paulo Matos <paulo@matos-sorge.com>
1190
1191 * c.opt: Enable LTO FE for fshort-double.
1192
70e24808
JM
11932014-03-07 Jason Merrill <jason@redhat.com>
1194
1195 * c.opt: Add -std=c++14.
1196
3af9c5e9
MP
11972014-03-06 Marek Polacek <polacek@redhat.com>
1198
1199 PR c/60197
1200 * cilk.c (contains_cilk_spawn_stmt): New function.
1201 (contains_cilk_spawn_stmt_walker): Likewise.
1202 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1203 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1204
b3bdf019
JJ
12052014-03-03 Jakub Jelinek <jakub@redhat.com>
1206
1207 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1208 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1209 even when flag_preprocess_only.
1210
ca7e759d
JM
12112014-02-26 Jason Merrill <jason@redhat.com>
1212
1213 PR c++/59231
1214 PR c++/11586
1215 * c-common.c (shorten_compare): Don't check
1216 c_inhibit_evaluation_warnings.
1217
28e41874
JJ
12182014-02-19 Jakub Jelinek <jakub@redhat.com>
1219
cca615af
JJ
1220 PR c/37743
1221 * c-common.c (c_common_nodes_and_builtins): When initializing
1222 c_uint{16,32,64}_type_node, also set corresponding
1223 uint{16,32,64}_type_node to the same value.
1224
28e41874
JJ
1225 PR c++/60267
1226 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1227 for PRAGMA_IVDEP if flag_preprocess_only.
1228
c2bf53a1
JJ
12292014-02-12 Jakub Jelinek <jakub@redhat.com>
1230
1231 PR c/60101
1232 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1233 if false, add ADD itself, rather than vice versa.
1234 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1235 copy. For SAVE_EXPR, only call merge_tlist once.
1236
8fcbce72
JJ
12372014-02-08 Jakub Jelinek <jakub@redhat.com>
1238
1239 PR middle-end/60092
1240 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1241 and tree_to_uhwi.
1242 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1243 functions.
1244 (c_common_attribute_table): Add alloc_align and assume_aligned
1245 attributes.
1246
0a756a3f
MP
12472014-02-06 Marek Polacek <polacek@redhat.com>
1248
1249 PR c/60087
1250 * c-common.c (warn_for_sign_compare): Call warning_at with location
1251 instead of warning.
1252
7ec4847a
MP
12532014-02-05 Marek Polacek <polacek@redhat.com>
1254
1255 PR c/53123
1256 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1257 statement.
1258
66f20604
MP
12592014-02-04 Marek Polacek <polacek@redhat.com>
1260
1261 PR c/60036
1262 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1263 SAVE_EXPR.
1264
5d77fb19
MG
12652014-02-03 Marc Glisse <marc.glisse@inria.fr>
1266
1267 PR c++/53017
1268 PR c++/59211
1269 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1270 handle_vector_size_attribute, handle_nonnull_attribute): Call
1271 default_conversion on the attribute argument.
1272 (handle_nonnull_attribute): Increment the argument number.
1273
81e5eca8
MP
12742014-01-31 Marek Polacek <polacek@redhat.com>
1275
1276 PR c/59963
1277 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1278 build_function_call_vec.
1279 (resolve_overloaded_builtin): Likewise.
1280 * c-common.h (build_function_call_vec): Adjust declaration.
1281
68fca595
MP
12822014-01-30 Marek Polacek <polacek@redhat.com>
1283
1284 PR c/59940
1285 * c-common.h (unsafe_conversion_p): Adjust declaration.
1286 (warnings_for_convert_and_check): Likewise.
1287 (convert_and_check): Likewise.
1288 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1289 expansion_point_location_if_in_system_header on it.
1290 (warnings_for_convert_and_check): Add location parameter. Call
1291 expansion_point_location_if_in_system_header on it. Use it.
1292 (convert_and_check): Add location parameter. Use it.
1293 (conversion_warning): Likewise.
1294 (c_add_case_label): Adjust convert_and_check calls.
1295 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1296
b72271b9
BI
12972014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1298
1299 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1300 flag_cilkplus.
1301 * c-pragma.c (init_pragma): Likewise.
1302 * c.opt: Likewise.
1303
393e8e8b
MP
13042014-01-23 Marek Polacek <polacek@redhat.com>
1305
1306 PR c/59846
1307 * c-common.c (shorten_compare): Add location_t parameter.
1308 * c-common.h (shorten_binary_op): Adjust declaration.
1309
f04dda30
MP
13102014-01-23 Marek Polacek <polacek@redhat.com>
1311
1312 PR c/58346
1313 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1314 * c-common.h: Declare it.
1315
621955cb
EB
13162014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1317
1318 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1319 * c-ada-spec.c (dump_ads): Likewise.
1320 (cpp_check): Likewise.
1321 (dump_ada_specs): Likewise.
1322
13232014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1324
1325 PR c++/49718
1326 * c-common.c (handle_no_instrument_function_attribute): Allow
1327 no_instrument_function attribute in class member
1328 definition/declaration.
1329
241f845a
JJ
13302014-01-15 Jakub Jelinek <jakub@redhat.com>
1331
1332 PR c/58943
1333 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1334 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1335 being COMPOUND_EXPR.
1336 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1337 operand a SAVE_EXPR and second MODIFY_EXPR.
1338
e83b8e2e
JJ
13392014-01-09 Jakub Jelinek <jakub@redhat.com>
1340
1341 PR target/58115
1342 * c-pch.c (c_common_write_pch): Call
1343 prepare_target_option_nodes_for_pch.
1344
23a5b65a
RS
13452014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1346
1347 Update copyright years
1348
f9030485
RS
13492014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1350
1351 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1352 the copyright notice.
1353
f2aa696b
EB
13542013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1355
1356 * c-ada-spec.c (print_constructor): New function.
1357 (print_destructor): Retrieve the origin of the destructor.
1358 (print_ada_declaration): Revamp handling of constructors/destructors.
1359
1f26ac87
JM
13602013-12-23 Stuart Hastings <stuart@apple.com>
1361 Bill Maddox <maddox@google.com>
1362 Jason Merrill <jason@redhat.com>
1363
1364 * c.opt: Add -fdeclone-ctor-dtor.
1365 * c-opts.c (c_common_post_options): Default to on iff -Os.
1366
41958c28
BI
13672013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1368
1369 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1370 attribute.
1371 * c-pragma.h (enum pragma_cilk_clause): Remove.
1372 (enum pragma_omp_clause): Added the following fields:
1373 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1374 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1375 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1376 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1377 PRAGMA_CILK_CLAUSE_UNIFORM.
1378
1379
12893402
BI
13802013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1381
1382 * cilk.c (cilk_outline): Made this function non-static.
1383 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1384 (create_cilk_wrapper): Added a new parameter: a function pointer.
1385 (c_install_body_w_frame_cleanup): Remove
1386 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1387 * c-common.h (cilk_outline): New prototype.
1388 (gimplify_cilk_spawn): Removed two parameters.
1389 (cilk_install_body_with_frame_cleanup): New prototype.
1390 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1391 CILK_SPAWN_STMT case.
1392
085b42ed
BS
13932013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1394
2ce064c3
BS
1395 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1396
085b42ed
BS
1397 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1398 (int_array_type_node): Remove.
1399 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1400
9e36c9ed
MP
14012013-12-05 Marek Polacek <polacek@redhat.com>
1402
1403 PR c/52023
1404 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1405 [ADJUST_FIELD_ALIGN].
1406
296674db
JM
14072013-12-04 Joseph Myers <joseph@codesourcery.com>
1408
1409 PR c/52023
1410 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1411 and check field alignment if set.
1412 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1413 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1414
31e071ae
MP
14152013-12-04 Jakub Jelinek <jakub@redhat.com>
1416 Marek Polacek <polacek@redhat.com>
1417
1418 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1419 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1420
d7947e19
L
14212013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1422
1423 PR c/59309
1424 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1425 arguments.
1426
fad7652e
JJ
14272013-11-29 Jakub Jelinek <jakub@redhat.com>
1428
1429 PR c/59280
1430 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1431 goto invalid. If it is error_mark_node, don't issue further
1432 diagnostics.
1433
8b5e1202
SO
14342013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1435
1436 * c.opt (Wopenmp-simd): New.
1437
0a508bb6
JJ
14382013-11-22 Jakub Jelinek <jakub@redhat.com>
1439
1440 * c-ubsan.h (ubsan_instrument_return): New prototype.
1441 * c-ubsan.c (ubsan_instrument_return): New function.
1442
2fb9a547
AM
14432013-11-22 Andrew MacLeod <amacleod@redhat.com>
1444
1445 * c-common.c: Add required include files from gimple.h.
1446 * c-gimplify.c: Likewise
1447 * cilk.c: Likewise
1448
8400e75e
DM
14492013-11-22 David Malcolm <dmalcolm@redhat.com>
1450
1451 * c-common.c (unsafe_conversion_p): Remove use of
1452 EXPR_LOC_OR_HERE macro.
1453 (conversion_warning): Likewise.
1454 (warnings_for_convert_and_check): Likewise.
1455 (warn_for_collisions_1): Likewise.
1456 (shorten_compare): Likewise, and remove use of in_system_header
1457 macro, using the location from the former.
1458 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1459 (cb_def_pragma): Remove use of in_system_header macro.
1460 (lex_string): Likewise.
1461 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1462
eb1ce453
KZ
14632013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1464 Mike Stump <mikestump@comcast.net>
1465 Richard Sandiford <rdsandiford@googlemail.com>
1466
1467 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1468 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1469 tree_fits_shwi_p or tree_fits_uhwi_p.
1470 (dump_generic_ada_node): Likewise.
1471 * c-format.c (check_format_arg): Likewise.
1472 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1473
6b3b8c27
KZ
14742013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1475
1476 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1477
49b0aa18
JC
14782013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1479
1480 PR c/53001
1481 * c-common.c (unsafe_conversion_p): Make this function
1482 return an enumeration with more detail.
1483 (conversion_warning): Use the new return type of
1484 unsafe_conversion_p to separately warn either about conversions
1485 that lower floating point number precision or about the other
1486 kinds of conversions.
1487 * c-common.h (enum conversion_safety): New enumeration.
1488 (unsafe_conversion_p): switching return type to
1489 conversion_safety enumeration.
1490 * c.opt: Adding new warning -Wfloat-conversion and
1491 enabling it with -Wconversion.
1492
b826515a
BS
14932013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1494
1495 * c-opts.c: Include plugin.h.
1496 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1497
b9a55b13
MP
14982013-11-19 Marek Polacek <polacek@redhat.com>
1499
1500 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1501 call.
1502 (ubsan_instrument_shift): Likewise.
1503 (ubsan_instrument_vla): Likewise.
1504
7d362f6c
RS
15052013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1506
1507 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1508 cast to unsigned type.
1509
386b1f1f
RS
15102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1511
1512 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1513 tree_low_cst.
1514 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1515 rather than tree_low_cst.
1516
ae7e9ddd
RS
15172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1518
1519 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1520 tree_to_uhwi throughout.
1521
9439e9a1
RS
15222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1523
1524 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1525 tree_low_cst (..., 0) with tree_to_shwi throughout.
1526
cc269bb6
RS
15272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1528
1529 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1530 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1531
9541ffee
RS
15322013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1533
1534 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1535 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1536
c02065fc
AH
15372013-11-15 Aldy Hernandez <aldyh@redhat.com>
1538
1539 * c-cilkplus.c: New file.
1540 * c-common.c (readonly_error): Add location argument.
1541 * c-common.h (readonly_error): Same.
1542 (c_finish_cilk_clauses): Protoize.
1543 (c_check_cilk_loop): Same.
1544 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1545 Do not fail on error_mark_node.
1546 Abstract increment canonicalization to here...
1547 (c_omp_for_incr_canonicalize_ptr): New.
1548 c-pragma.c (init_pragma): Register "simd" pragma.
1549 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1550 (enum pragma_cilk_clause): New.
1551
9cc65f15
RS
15522013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1553
1554 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1555 wchar_type and host_integerp checks.
1556
18f429e2
AM
15572013-11-14 Andrew MacLeod <amacleod@redhat.com>
1558
1559 * c-common.c: Likewise.
1560 * c-gimplify.c: Likewise.
1561 * cilk.c: Likewise.
1562
d8a2d370
DN
15632013-11-14 Diego Novillo <dnovillo@google.com>
1564
1565 * c-common.c: Include fold-const.h.
1566 Include stor-layout.h.
1567 Include calls.h.
1568 Include stringpool.h.
1569 Include attribs.h.
1570 Include varasm.h.
1571 Include trans-mem.h.
1572 * c-cppbuiltin.c: Include stor-layout.h.
1573 Include stringpool.h.
1574 * c-format.c: Include stringpool.h.
1575 * c-lex.c: Include stringpool.h.
1576 Include stor-layout.h.
1577 * c-pragma.c: Include stringpool.h.
1578 Include attribs.h.
1579 Include varasm.h.
1580 Include gcc-symtab.h.
1581 * c-pretty-print.c: Include stor-layout.h.
1582 Include attribs.h.
1583 * cilk.c: Include stringpool.h.
1584 Include calls.h.
1585
38b7bc7f
JM
15862013-11-13 Joseph Myers <joseph@codesourcery.com>
1587
1588 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1589 * c-common.c (c_common_reswords): Add __auto_type.
1590 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1591
45b0be94
AM
15922013-11-12 Andrew MacLeod <amacleod@redhat.com>
1593
18f429e2
AM
1594 * c-common.c: Include gimplify.h.
1595 * c-gimplify.c: Likewise.
1596 * cilk.c: Likewise.
1597 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1598 * c-ubsan.c: Don't include gimple.h.
45b0be94 1599
582d9b50
JM
16002013-11-12 Joseph Myers <joseph@codesourcery.com>
1601
1602 * c-common.c (c_common_reswords): Add _Thread_local.
1603
6b28e197
JM
16042013-11-09 Joseph Myers <joseph@codesourcery.com>
1605
1606 * c-common.c (atomic_size_supported_p): New function.
1607 (resolve_overloaded_atomic_exchange)
1608 (resolve_overloaded_atomic_compare_exchange)
1609 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1610 Use it instead of comparing size with a local list of sizes.
1611
267bac10
JM
16122013-11-07 Andrew MacLeod <amacleod@redhat.com>
1613 Joseph Myers <joseph@codesourcery.com>
1614
1615 * c-common.h (enum rid): Add RID_ATOMIC.
1616 * c-common.c (c_common_reswords): Add _Atomic.
1617 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1618 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1619 * c-format.c (check_format_types): Check for extra _Atomic
1620 qualifiers in format argument.
1621 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1622 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1623
5157b91e
TB
16242013-11-06 Tobias Burnus <burnus@net-b.de>
1625
1626 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1627
6dbe0958
JM
16282013-11-06 Joseph Myers <joseph@codesourcery.com>
1629
1630 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1631 standards modes.
1632 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1633 to mean lack of IEEE 754 support.
1634
e8ff5196
TB
16352013-11-05 Tobias Burnus <burnus@net-b.de>
1636
1637 * c.opt (-Wdate-time): New option
1638 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1639
254a0760
JM
16402013-11-05 Joseph Myers <joseph@codesourcery.com>
1641
1642 * c-cppbuiltin.c (cpp_iec_559_value): Test
1643 flag_excess_precision_cmdline not flag_excess_precision.
1644
6d7f7e0a
TB
16452013-11-05 Tobias Burnus <burnus@net-b.de>
1646
1647 * c.opt (fopenmp-simd): New option.
1648 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1649 (omp_pragmas): ... this new struct.
1650 (c_pp_lookup_pragma): Also walk omp_pragmas.
1651 (init_pragma): Init pragmas for -fopenmp-simd.
1652
55a7f02f
MP
16532013-11-04 Marek Polacek <polacek@redhat.com>
1654
1655 PR c++/58979
1656 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1657
9193fb05
JM
16582013-11-04 Joseph Myers <joseph@codesourcery.com>
1659
1660 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1661 New functions.
1662 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1663
94159ecf
EB
16642013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1665
1666 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1667 (dump_ada_specs): Adjust prototype of second callback.
1668 * c-ada-spec.c (cpp_check): New global variable.
1669 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1670 (print_generic_ada_decl): Likewise.
1671 (has_static_fields): Change return type to bool and add guard.
1672 (has_nontrivial_methods): New predicate.
1673 (is_tagged_type): Change return type to bool.
1674 (separate_class_package): Call has_nontrivial_methods.
1675 (pp_ada_tree_identifier): Minor tweaks.
1676 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1677 (dump_ada_array_domains): Likewise.
1678 (dump_ada_array_type): Likewise.
1679 (dump_template_types): Remove cpp_check parameter and do not pass it to
1680 dump_generic_ada_node.
1681 (dump_ada_template): Likewise.
1682 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1683 recursively.
1684 (print_ada_methods): Change return type to integer. Remove cpp_check
1685 parameter and do not pass it down.
1686 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1687 dump_generic_ada_node.
1688 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1689 accessing methods.
1690 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1691 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1692 value of print_ada_methods.
1693 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1694 Set cpp_check to it before invoking dump_ada_nodes.
1695 (dump_ada_specs): Likewise.
1696
b906f4ca
MP
16972013-11-03 Marek Polacek <polacek@redhat.com>
1698
1699 * c-ubsan.c: Don't include hash-table.h.
1700 (ubsan_instrument_vla): New function.
1701 * c-ubsan.h: Declare it.
1702
5e20cdc9
DM
17032013-10-31 David Malcolm <dmalcolm@redhat.com>
1704
1705 Automated part of renaming of symtab_node_base to symtab_node.
1706
1707 Patch autogenerated by rename_symtab.py from
1708 https://github.com/davidmalcolm/gcc-refactoring-scripts
1709 revision 58bb219cc090b2f4516a9297d868c245495ee622
1710
1711 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1712 symtab_node_base to symtab_node.
1713
7057e645
ESR
17142013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1715
1716 Implement C++14 digit separators.
1717 * c-lex.c (interpret_float): Remove digit separators from scratch string
1718 before building real literal.
1719
193ea7bc
JJ
17202013-10-30 Jakub Jelinek <jakub@redhat.com>
1721
1722 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1723
939b37da
BI
17242013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1725
1726 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1727 fields.
1728 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1729 enabled.
1730 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1731 (insert_cilk_frame): New prototype.
1732 (cilk_init_builtins): Likewise.
1733 (gimplify_cilk_spawn): Likewise.
1734 (c_cilk_install_body_w_frame_cleanup): Likewise.
1735 (cilk_detect_spawn_and_unwrap): Likewise.
1736 (cilk_set_spawn_marker): Likewise.
1737 (build_cilk_sync): Likewise.
1738 (build_cilk_spawn): Likewise.
1739 * cilk.c: New file.
1740
67348ccc
DM
17412013-10-29 David Malcolm <dmalcolm@redhat.com>
1742
1743 Patch autogenerated by refactor_symtab.py from
1744 https://github.com/davidmalcolm/gcc-refactoring-scripts
1745 revision 58bb219cc090b2f4516a9297d868c245495ee622
1746
1747 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1748 to a true class hierarchy.
1749 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1750
d570872d
RS
17512013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1752
1753 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1754
98906124
JL
17552013-10-26 Jeff Law <law@redhat.com>
1756
adfac8df
JJ
1757 * c-common.c (c_define_builtins): Remove mudflap support.
1758 * c.opt: Ignore and warn for mudflap options.
98906124 1759
d73749df 17602013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1761
1762 PR other/33426
1763 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1764 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1765
3f04b1bb
JM
17662013-10-23 Jason Merrill <jason@redhat.com>
1767
1768 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1769
acf0174b
JJ
17702013-10-11 Jakub Jelinek <jakub@redhat.com>
1771
acd15a28
JJ
1772 * c-common.h (omp_clause_mask::operator !=): New method.
1773 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1774 instead of if (mask & something) tests everywhere.
1775
acf0174b
JJ
1776 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1777 201307 instead of 201107.
1778 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1779 (c_common_attribute_table): Add "omp declare target" and
1780 "omp declare simd" attributes.
1781 (handle_omp_declare_target_attribute,
1782 handle_omp_declare_simd_attribute): New functions.
1783 * c-omp.c: Include c-pragma.h.
1784 (c_finish_omp_taskgroup): New function.
1785 (c_finish_omp_atomic): Add swapped argument, if true,
1786 build the operation first with rhs, lhs arguments and use NOP_EXPR
1787 build_modify_expr.
1788 (c_finish_omp_for): Add code argument, pass it down to make_code.
1789 (c_omp_split_clauses): New function.
1790 (c_split_parallel_clauses): Removed.
1791 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1792 c_omp_declare_simd_clauses_to_decls): New functions.
1793 * c-common.h (omp_clause_mask): New type.
1794 (OMP_CLAUSE_MASK_1): Define.
1795 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1796 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1797 omp_clause_mask::operator |, omp_clause_mask::operator &,
1798 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1799 omp_clause_mask::operator ==): New methods.
1800 (enum c_omp_clause_split): New.
1801 (c_finish_omp_taskgroup): New prototype.
1802 (c_finish_omp_atomic): Add swapped argument.
1803 (c_finish_omp_for): Add code argument.
1804 (c_omp_split_clauses): New prototype.
1805 (c_split_parallel_clauses): Removed.
1806 (c_omp_declare_simd_clauses_to_numbers,
1807 c_omp_declare_simd_clauses_to_decls): New prototypes.
1808 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1809 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1810 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1811 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1812 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1813 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1814 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1815 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1816 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1817 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1818 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1819 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1820 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1821 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1822 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1823 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1824 PRAGMA_OMP_CLAUSE_UNIFORM.
1825
826cacfe
MG
18262013-10-09 Marc Glisse <marc.glisse@inria.fr>
1827
1828 PR tree-optimization/20318
1829 * c-common.c (handle_returns_nonnull_attribute): New function.
1830 (c_common_attribute_table): Add returns_nonnull.
1831
2284b034
MG
18322013-10-03 Marc Glisse <marc.glisse@inria.fr>
1833
1834 PR c++/19476
1835 * c.opt (fcheck-new): Move to common.opt.
1836
b56e9788
MP
18372013-09-25 Marek Polacek <polacek@redhat.com>
1838 Jakub Jelinek <jakub@redhat.com>
1839
1840 PR sanitizer/58413
1841 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1842 an expression if we can prove it is correct.
1843 (ubsan_instrument_division): Likewise. Remove unnecessary
1844 check.
1845
ce6923c5
MP
18462013-09-18 Marek Polacek <polacek@redhat.com>
1847
1848 PR sanitizer/58411
1849 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1850 Declare it.
1851 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1852
fb5610fb
IS
18532013-09-14 Iain Sandoe <iain@codesourcery.com>
1854
1855 PR target/48094
1856 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1857 fobjc-gc, freplace-objc-classes): Accept for LTO.
1858
88b0e79e
JC
18592013-09-13 Jacek Caban <jacek@codeweavers.com>
1860
1861 * c-target.def: New hook
1862
c9b0866a
PC
18632013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1864
1865 PR c++/43452
1866 * c.opt (Wdelete-incomplete): Add.
1867
0af94e6f
JR
18682013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1869
1870 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1871 (vector_types_compatible_elements_p): New function.
1872 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1873 declaration.
1874 (vector_types_compatible_elements_p): Declare.
1875
7c26172c
GDR
18762013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1877
1878 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1879 a virtual member function.
1880 (pp_simple_type_specifier): Remove.
1881 (pp_c_type_specifier): Likewise.
1882 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1883 Rename from pp_c_type_specifier. Adjust.
1884 (c_pretty_printer::c_pretty_printer): Do not assign to
1885 simple_type_specifier.
1886
20059c8b
GDR
18872013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1888
1889 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1890 member function.
1891 (c_pretty_printer::storage_class_specifier): Likewise.
1892 (c_pretty_printer::initializer): Likewise.
1893 (pp_declaration): Remove.
1894 (pp_declaration_specifiers): Likewise.
1895 (pp_abstract_declarator): Likewise.
1896 (pp_declarator): Likewise.
1897 (pp_type_id): Likewise.
1898 (pp_statement): Likewise.
1899 (pp_constant): Likewise.
1900 (pp_id_expression): Likewise.
1901 (pp_primary_expression): Likewise.
1902 (pp_unary_expression): Likewise.
1903 (pp_multiplicative_expression): Likewise.
1904 (pp_conditional_expression): Likewise.
1905 (pp_assignment_expression): Likewise.
1906 (pp_expression): Likewise.
1907 (pp_c_type_id): Likewise.
1908 (pp_c_storage_class_specifier): Likewise.
1909 * c-pretty-print.c (pp_c_type_cast): Tidy.
1910 (pp_c_pointer): Likewise.
1911 (pp_c_type_specifier): Likewise.
1912 (pp_c_parameter_type_list): Likewise.
1913 (pp_c_function_definition): Likewise.
1914 (pp_c_init_declarator): Likewise.
1915 (pp_c_initializer_list): Likewise.
1916 (pp_c_constructor_elts): Likewise.
1917 (c_pretty_printer::direct_abstract_declarator): Likewise.
1918 (c_pretty_printer::declaration_specifiers): Likewise.
1919 (c_pretty_printer::primary_expression): Likewise.
1920 (c_pretty_printer::postfix_expression): Likewise.
1921 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1922 (c_pretty_printer::storage_class_specifier): Rename from
1923 pp_c_storage_class_specifier.
1924 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1925 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1926 storage_class_specifier, initializer, offset_list, flags.
1927
de5a5fa1
MP
19282013-08-30 Marek Polacek <polacek@redhat.com>
1929
1930 * c-ubsan.c: New file.
1931 * c-ubsan.h: New file.
1932
8f0e4d72
GDR
19332013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1934
1935 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1936 member function.
1937 (c_pretty_printer::declaration_specifiers): Likewise.
1938 (c_pretty_printer::declarator): Likewise.
1939 (c_pretty_printer::abstract_declarator): Likewise.
1940 (c_pretty_printer::direct_abstract_declarator): Likewise.
1941 (c_pretty_printer::direct_declarator): Likewise.
1942 (c_pretty_printer::function_specifier): Likewise.
1943 (pp_declaration): Adjust.
1944 (pp_declaration_specifiers): Likewise.
1945 (pp_abstract_declarator): Likewise.
1946 (pp_direct_declarator): Likewise.
1947 (pp_function_specifier): Likewise.
1948 (pp_direct_abstract_declarator): Remove as unused.
1949 (pp_c_declaration): Remove.
1950 (pp_c_declaration_specifiers): Likewise.
1951 (pp_c_declarator): Likewise.
1952 (pp_c_direct_declarator): Likewise.
1953 (pp_c_function_specifier): Likewise.
1954 (pp_c_direct_abstract_declarator): Likewise.
1955 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1956 from pp_c_abstract_declarator. Adjust.
1957 (c_pretty_printer::direct_abstract_declarator): Rename from
1958 pp_c_direct_abstract_declarator. Adjust.
1959 (c_pretty_printer::function_specifier): Rename from
1960 pp_c_function_specifier. Adjust.
1961 (c_pretty_printer::declaration_specifiers): Rename from
1962 pp_c_declaration_specifiers. Adjust.
1963 (c_pretty_printer::direct_declarator): Rename from
1964 pp_c_direct_declarator. Adjust.
1965 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1966 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1967 (c_pretty_printer::c_pretty_printer): Do not assign to
1968 declaration, declaration_specifiers, declarator,
1969 direct_declarator, direct_abstract_declarator, function_specifier.
1970
00d34d3a
GDR
19712013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1972
1973 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1974 virtual member function.
1975 (c_pretty_printer::multiplicative_expression): Likewise.
1976 (c_pretty_printer::conditional_expression): Likewise.
1977 (c_pretty_printer::assignment_expression): Likewise.
1978 (c_pretty_printer::expression): Likewise.
1979 (pp_unary_expression): Adjust.
1980 (pp_multiplicative_expression): Likewise.
1981 (pp_assignment_expression): Likewise.
1982 (pp_conditional_expression): Likewise.
1983 (pp_expression): Likewise.
1984 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1985 from pp_c_unary_expression. Adjust.
1986 (c_pretty_printer::multiplicative_expression): Rename from
1987 pp_c_multiplicative_expression. Adjust.
1988 (c_pretty_printer::conditional_expression): Rename from
1989 pp_c_conditional_expression. Adjust.
1990 (c_pretty_printer::assignment_expression): Rename from
1991 pp_c_assignment_expression. Adjust.
1992 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1993 (c_pretty_printer::c_pretty_printer): Do not assign to
1994 unary_expression, multiplicative_expression,
1995 conditional_expression, expression.
1996
fb22178f
GDR
19972013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1998
1999 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2000 virtual member function.
2001 (pp_postfix_expression): Adjust.
2002 (pp_c_postfix_expression): Remove.
2003 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2004 from pp_c_postfix_expression. Adjust.
2005 (c_pretty_printer::c_pretty_printer): Do not assign to
2006 postfix_expression.
2007
7ecc2600
GDR
20082013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2009
2010 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2011 virtua member function.
2012 (pp_primary_expression): Adjust.
2013 (pp_c_primary_expression): Remove.
2014 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2015 from pp_c_primary_expression. Adjust.
2016 (pp_c_initializer_list): Use pp_primary_expression.
2017 (c_pretty_printer::c_pretty_printer): Do not assign to
2018 primary_expression.
2019
0691175f
GDR
20202013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2021
2022 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2023 * c-pretty-print.c (M_): Remove.
2024 (c_pretty_printer::translate_string): Define.
2025 (pp_c_type_specifier): Use it.
2026 (pp_c_primary_expression): Likewise.
2027 (pp_c_expression): Likewise.
2028
66dfe4c4
GDR
20292013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2030
2031 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2032 virtual function.
2033 (pp_c_id_expression): Remove.
2034 (pp_id_expression): Adjust.
2035 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2036 pp_c_id_expression. Adjust.
2037 (pp_c_postfix_expression): Use pp_id_expression.
2038 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2039
ca43e9d5
GDR
20402013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2041
2042 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2043 member function.
2044 (pp_constant): Adjust.
2045 (pp_c_constant): Remove.
2046 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2047 pp_c_constant. Adjust.
2048 (pp_c_constant)
2049 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2050 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2051
da6ca2b5
GDR
20522013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2053
2054 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2055 (c_pretty_printer::c_pretty_printer): Declare.
2056 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2057 c_pretty_printer_init. Adjust.
2058 (print_c_tree): Do not call c_pretty_printer_init.
2059 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2060
65a372f4
AC
20612013-08-09 Arnaud Charlet <charlet@adacore.com>
2062
2063 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2064
fd9b0f32
PC
20652013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2066
2067 PR c++/58080
2068 * c-common.c (pointer_int_sum): Add bool parameter.
2069 * c-common.h (pointer_int_sum): Adjust declaration.
2070
e0aec1e9
GDR
20712013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2072
2073 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2074 c_pretty_printer variable.
2075
b066401f
GDR
20762013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2077
2078 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2079 (pp_base): Remove.
2080 (pp_c_base): Likewise. Adjust users.
2081 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2082 (pp_c_whitespace): Do not call pp_base.
2083 (pp_c_left_paren): Likewise.
2084 (pp_c_right_paren): Likewise.
2085 (pp_c_left_brace): Likewise.
2086 (pp_c_right_brace): Likewise.
2087 (pp_c_left_bracket): Likewise.
2088 (pp_c_right_bracket): Likewise.
2089 (pp_c_dot): Likewise.
2090 (pp_c_ampersand): Likewise.
2091 (pp_c_star): Likewise.
2092 (pp_c_arrow): Likewise.
2093 (pp_c_semicolon): Likewise.
2094 (pp_c_complement): Likewise.
2095 (pp_c_exclamation): Likewise.
2096 (pp_c_direct_declarator): Likewise.
2097 (pp_c_ws_string): Likewise.
2098 (pp_c_identifier): Likewise.
2099 (pp_c_statement): Likewise.
2100 (print_c_tree): Likewise.
2101
65e5a578
ESR
21022013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2103
2104 PR c++/58072
2105 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2106 provide useful error strings.
2107
137a1a27
GDR
21082013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2109
2110 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2111 printer functions instead of pp_string or operators and punctuators.
2112 (dump_generic_ada_node): Likewise.
2113 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2114 (pp_c_relational_expression): Likewise.
2115 (pp_c_logical_or_expression): Likewise.
2116
07838b13
GDR
21172013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2118
2119 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2120 functions instead of pp_character.
2121 (pp_ada_tree_identifier): Likewise.
2122 (dump_ada_double_name): Likewise.
2123 (dump_ada_function_declaration): Likewise.
2124 (dump_ada_array_domains): Likewise.
2125 (dump_template_types): Likewise.
2126 (dump_generic_ada_node): Likewise.
2127 (print_ada_declaration): Likewise.
2128 (print_ada_struct_decl): Likewise.
2129 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2130
433cc7b0
TT
21312013-07-23 Tom Tromey <tromey@redhat.com>
2132
2133 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2134 * c-common.c (c_common_reswords): Add _Generic.
2135
688010ba
OB
21362013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2137
2138 * c-common.c: Fix typos.
2139 * c-common.h: Likewise.
2140
2a99e5e6
LL
21412013-07-13 Lubos Lunak <l.lunak@suse.cz>
2142
2143 PR c++/55203
2144 * c-common.c (c_common_attribute_table): Add warn_unused.
2145 (handle_warn_unused_attribute): New.
2146
c26302d5
JJ
21472013-07-10 Jakub Jelinek <jakub@redhat.com>
2148
2149 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2150 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2151
dfeadaa0
PC
21522013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2153
2154 PR c++/57869
2155 * c.opt: Add Wconditionally-supported.
2156
6a2fa4b2
GS
21572013-07-08 Graham Stott <graham.stott@btinternet.com>
2158
adfac8df 2159 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2160 unused variables l_length and l_node.
2161
ecdbd01a 21622013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2163
2164 PR c/57821
2165 * c-common.c (complete_array_type): Delay folding first index
2166 like other indices. When folding, check for index overflow.
2167
bedc293e
MG
21682013-06-27 Marc Glisse <marc.glisse@inria.fr>
2169
2170 PR c++/57509
2171 * c-common.h (c_build_vec_perm_expr): New complain argument.
2172 * c-common.c (c_build_vec_perm_expr): Likewise.
2173 Use save_expr also in C++.
2174
604b2bfc
GDR
21752013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2176
2177 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2178 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2179 * c-opts.c (c_common_post_options): Likewise.
2180
dfeadaa0 21812013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2182
2183 * array-notation-common.c (length_mismatch_in_expr): Changed the
2184 parameter type's from a dynamic array to a vec_tree. Also removed
2185 the size parameters.
2186 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2187 the change above.
2188
2ce86d2e
BI
21892013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2190
2191 * c-common.h (struct cilkplus_an_parts): New structure.
2192 (struct cilkplus_an_loop_parts): Likewise.
2193 (cilkplus_extract_an_triplets): New prototype.
2194 (fix_sec_implicit_args): Likewise.
2195 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2196 (fix_sec_implicit_args): Likewise.
604b2bfc 2197
07a6825b
BI
21982013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2199
2200 * array-notation-common.c (find_inv_trees): Removed an unwanted
2201 typecasting.
2202 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2203 enum rid to enum tree_code.
2204
08346abd
JH
22052013-06-11 Jan Hubicka <jh@suse.cz>
2206
2207 * c-common.c (handle_alias_ifunc_attribute): Do not set
2208 DECL_EXTERNAL for weakref variables.
2209 * c-pragma.c (handle_pragma_weak): Make sure aliases
2210 are not declared as external.
2211
d60f1706
BI
22122013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2213
2214 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2215 function from c/c-array-notation.c.
2216 (is_cilkplus_reduce_builtin): Likewise.
2217 (find_rank): Likewise.
2218 (extract_array_notation_exprs): Likewise.
2219 (replace_array_notations): Likewise.
2220 (find_inv_trees): Likewise.
2221 (replace_inv_trees): Likewise.
2222 (contains_array_notation_expr): Likewise.
2223 (find_correct_array_notation_type): Likewise.
2224 * c-common.h (struct inv_list): Moved this struct from the file
2225 c/c-array-notation.c and added a new field called additional tcodes.
2226 (length_mismatch_in_expr_p): New prototype.
2227 (is_cilkplus_reduce_builtin): Likewise.
2228 (find_rank): Likewise.
2229 (extract_array_notation_exprs): Likewise.
2230 (replace_array_notation): Likewise.
2231 (find_inv_trees): Likewise.
2232 (replace_inv_trees): Likewise.
2233 (find_correct_array_notation_type): Likewise.
dfeadaa0 2234
36536d79
BI
22352013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2236
2237 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2238 function array_notation_init_builtins is called.
2239 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2240 * c-common.def (ARRAY_NOTATION_REF): New tree.
2241 * c-common.h (build_array_notation_expr): New function declaration.
2242 (build_array_notation_ref): Likewise.
2243 (extract_sec_implicit_index_arg): New extern declaration.
2244 (is_sec_implicit_index_fn): Likewise.
2245 (ARRAY_NOTATION_CHECK): New define.
2246 (ARRAY_NOTATION_ARRAY): Likewise.
2247 (ARRAY_NOTATION_START): Likewise.
2248 (ARRAY_NOTATION_LENGTH): Likewise.
2249 (ARRAY_NOTATION_STRIDE): Likewise.
2250 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2251 ARRAY_NOTATION_REF.
2252 (pp_c_expression): Likewise.
2253 * c.opt (flag_enable_cilkplus): New flag.
2254 * array-notation-common.c: New file.
2255
f7716d57
JJ
22562013-05-14 Jakub Jelinek <jakub@redhat.com>
2257
2258 PR c++/57274
2259 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2260
a5e0cd1d
MG
22612013-05-10 Marc Glisse <marc.glisse@inria.fr>
2262
2263 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2264 vectors.
2265
f6bc1c4a
HS
22662013-05-07 Han Shen <shenhan@google.com>
2267
2268 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2269
3f12f6e9
SKS
22702013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2271
2272 * c-common.c (check_user_alignment): Emit error for negative values.
2273
61949153
PC
22742013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2275
2276 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2277
e93e18e9
PC
22782013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2279
2280 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2281 __GXX_EXPERIMENTAL_CXX1Y__.
2282
44d90fe1
PC
22832013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2284 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2285
2286 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2287 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2288 to simply use OPT_Wpointer_arith.
2289 (c_sizeof_or_alignof_type): Likewise.
2290
13f39b2e
PC
22912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2292
2293 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2294
4b84d650
JJ
22952013-04-12 Jakub Jelinek <jakub@redhat.com>
2296
2297 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2298 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2299 specifiers.
2300
fb037b5d
SB
23012013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2302
2303 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2304
4e856798
PC
23052013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2306
2307 * c-common.c (pointer_int_sum): Remove dead code.
2308
4b1baac8
RS
23092013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2310
2311 PR middle-end/56524
2312 * c-common.c (handle_optimize_attribute): Don't call
2313 save_optabs_if_changed.
2314
0b50e654
JJ
23152013-03-05 Jakub Jelinek <jakub@redhat.com>
2316
2317 PR middle-end/56461
2318 * c-pch.c (pch_init): Free target_validity at the end.
2319
48c41403
JJ
23202013-03-04 Jakub Jelinek <jakub@redhat.com>
2321
2322 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2323
e664c61c
KS
23242013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2325 Jakub Jelinek <jakub@redhat.com>
2326
2327 PR sanitizer/56454
2328 * c-common.c (handle_no_sanitize_address_attribute): New function.
2329 (c_common_attribute_table): Add no_sanitize_address attribute.
2330 (handle_no_address_safety_analysis_attribute): Add
2331 no_sanitize_address attribute, not no_address_safety_analysis
2332 attribute.
2333
a475fd3d 23342013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2335
2336 PR target/52555
2337 * c-common.c (handle_optimize_attribute): Call
2338 save_optabs_if_changed.
2339
f6007d99
JJ
23402013-02-18 Jakub Jelinek <jakub@redhat.com>
2341 Steven Bosscher <steven@gcc.gnu.org>
2342
2343 PR pch/54117
2344 * c-opts.c (c_common_post_options): If debug info is enabled
2345 and non-dwarf*, refuse to load PCH files and when writing PCH
2346 file warn.
2347
cf35e2b1
JJ
23482013-02-05 Jakub Jelinek <jakub@redhat.com>
2349
2350 PR middle-end/56167
2351 * c-common.c (handle_error_attribute): Fix condition.
2352
32887460
JJ
23532013-01-30 Jakub Jelinek <jakub@redhat.com>
2354
2355 PR c++/55742
2356 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2357
5af057d8
JM
23582013-01-18 Jason Merrill <jason@redhat.com>
2359
2360 PR target/54908
2361 * c.opt (-fextern-tls-init): New.
2362 * c-opts.c (c_common_post_options): Handle it.
2363
cc83c823
JJ
23642013-01-09 Jakub Jelinek <jakub@redhat.com>
2365
2366 PR c/48418
2367 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2368 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2369 and is either negative or bigger or equal to type precision
2370 of the first operand.
2371
a859517f
MP
23722012-12-03 Marek Polacek <polacek@redhat.com>
2373
2374 PR c/55570
2375 * c-common.c (check_user_alignment): Swap order of tests,
2376 check TREE_CODE first.
2377
2d7aa578
ESR
23782012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2379
2380 PR c++/52654
2381 * c-common.h (overflow_type): New enum.
2382 (build_userdef_literal): Add overflow_type argument.
2383 (tree_userdef_literal): Add overflow_type.
2384 (USERDEF_LITERAL_OVERFLOW): New access macro.
2385 * c-common.c (build_userdef_literal): Add overflow_type
2386 argument.
2387 * c-lex.c (c_lex_with_flags): Add overflow_type to
2388 build_userdef_literal calls.
2389 (interpret_integer, interpret_float): Add overflow_type argument.
2390
cc3c4f62
RB
23912012-11-28 Richard Biener <rguenther@suse.de>
2392
2393 PR c/35634
2394 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2395 here and use a type with proper overflow behavior for types that would
2396 need to be promoted for the arithmetic.
2397
77bc5132
JJ
23982012-11-23 Jakub Jelinek <jakub@redhat.com>
2399
2400 PR sanitizer/55435
2401 * c-common.c (handle_no_address_safety_analysis_attribute): New
2402 function.
2403 (c_common_attribute_table): Add no_address_safety_analysis.
2404
5dc99c46
SB
24052012-11-16 Simon Baldwin <simonb@google.com>
2406
2407 * c.opt: Add f[no-]canonical-system-headers.
2408 * c-opts.c (c_common_handle_option): Handle
2409 OPT_fcanonical_system_headers.
2410
a4a0016d
ESR
24112012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2412
2413 PR c++/54413
2414 * c-opts.c (c_common_handle_option): Set new flags.
2415 * c.opt: Describe new flags.
2416
7dbb85a7
JM
24172012-11-09 Jason Merrill <jason@redhat.com>
2418
2419 * c.opt (Wabi-tag): New.
2420
ad7bac31
AK
24212012-11-09 Andi Kleen <ak@linux.intel.com>
2422
2423 PR 55139
2424 * c-common.c (get_atomic_generic_size): Mask with
2425 MEMMODEL_MASK
2426
7332899a
MLI
24272012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2428
2429 PR c/53063
2430 * c.opt (Wformat): Make it Alias Wformat=1.
2431 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2432 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2433 LangEnabledBy.
2434 (Wformat=): RejectNegative. Use LangEnabledBy.
2435 (Wnonnull): Use LangEnabledBy.
2436 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2437 * c-format.c (set_Wformat): Delete.
2438 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2439 (maybe_read_dollar_number): Likewise.
2440 (avoid_dollar_number): Likewise.
2441 (finish_dollar_format_checking): Likewise.
2442 (check_format_info): Likewise.
2443 (check_format_info_main): Likewise.
2444 (check_format_types): Likewise.
2445 (format_type_warning): Likewise.
2446 * c-common.c (int): Likewise.
2447 (check_function_sentinel): Likewise.
2448 * c-common.h (warn_format,set_Wformat): Do not declare here.
2449
34a180a6
MLI
24502012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2451
2452 PR c/53063
2453 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2454 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2455 Use LangEnabledBy.
2456 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2457 common.opt.
2458 (Wvariadic-macros): Init(1).
2459 * c-opts.c (c_common_handle_option): Do not handle them
2460 explicitly.
2461 (c_common_post_options): Likewise.
2462 (sanitize_cpp_opts): warn_unused_macros is now
2463 cpp_warn_unused_macros.
2464 (push_command_line_include): Likewise.
2465 * c-common.c (warn_unknown_pragmas): Do not define.
2466 * c-common.h (warn_unknown_pragmas): Do not declare.
2467
3f46d6a5
MLI
24682012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2469
2470 PR c/51294
2471 * c-common.c (conversion_warning): Handle conditional expressions.
2472
880661a4
JW
24732012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2474
2475 PR c++/54930
2476 * c.opt (Wreturn_local_addr): Define new option.
2477
4514a96b
JM
24782012-10-25 Jason Merrill <jason@redhat.com>
2479
f14edc1a
JM
2480 * c.opt (Wvirtual-move-assign): New.
2481
4514a96b
JM
2482 * c.opt (Winherited-variadic-ctor): New.
2483
93100c6b
MG
24842012-10-25 Marc Glisse <marc.glisse@inria.fr>
2485
2486 PR c++/54427
2487 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2488
1efcb8c6
JM
24892012-10-23 Joseph Myers <joseph@codesourcery.com>
2490
2491 * c-common.h (pch_cpp_save_state): Declare.
2492 * c-target.def (c_preinclude): New hook.
2493 * c-opts.c (done_preinclude): New.
2494 (push_command_line_include): Handle default preincluded header.
2495 (cb_file_change): Call pch_cpp_save_state when calling
2496 push_command_line_include.
2497 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2498 (pch_cpp_save_state): New.
2499 (pch_init): Call pch_cpp_save_state conditionally, instead of
2500 calling cpp_save_state.
2501
4a0ae68e
MLI
25022012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2503
2504 PR c/53063
2505 PR c/40989
2506 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2507 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2508 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2509 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2510 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2511 * c-opts.c (c_common_handle_option): Remove explicit handling from
2512 here.
2513 (c_common_post_options): Likewise.
2514
67e4210b
EB
25152012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2516
2517 * c-ada-spec.c (LOCATION_COL): Delete.
2518 (compare_location): New function.
2519 (compare_node): Use it.
2520 (compare_comment): Likewise.
2521
65d4f2cd
MLI
25222012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2523
2524 PR c/53063
2525 PR c/40989
2526 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2527 * c-opts.c (c_common_handle_option): Do not set them here. Add
2528 comment.
2529 (c_common_post_options): Likewise.
2530
909881cb
EB
25312012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2532
2533 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2534 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2535 Remove POINTER_TYPE handling, add large unsigned handling and use
2536 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2537
3a785c97
JJ
25382012-10-12 Jakub Jelinek <jakub@redhat.com>
2539
2540 PR c/54381
2541 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2542 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2543 locs and array of 3 trees instead of just single loc and single
2544 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2545 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2546 For *cmp* builtins that take two sources strings report warnings
2547 about first and second source, not about destination and source.
2548
5e54f81d
MG
25492012-10-12 Marc Glisse <marc.glisse@inria.fr>
2550
2551 PR c++/53055
2552 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2553
f5b02f1e
EB
25542012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2555
2556 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2557 declaring something coming from another file.
2558
b46dbc6c
AC
25592012-10-10 Arnaud Charlet <charlet@adacore.com>
2560
f5b02f1e 2561 PR ada/54845
b46dbc6c
AC
2562 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2563
5d9de0d0
PC
25642012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2565
2566 PR c++/54194
2567 * c-common.c (warn_about_parentheses): Add location_t parameter;
2568 use EXPR_LOC_OR_LOC.
2569 * c-common.h: Update declaration.
2570
a212e43f
MG
25712012-10-09 Marc Glisse <marc.glisse@inria.fr>
2572
2573 PR c++/54427
2574 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2575 more operations. Make error messages optional.
2576 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2577 (scalar_to_vector): Declare.
2578
b1db7f91
JM
25792012-10-08 Jason Merrill <jason@redhat.com>
2580
2581 * c-common.c (c_common_reswords): Add thread_local.
2582
e28d52cf
DS
25832012-10-08 Dodji Seketeli <dodji@redhat.com>
2584
2585 PR c++/53528 C++11 attribute support
2586 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2587 new functions.
2588 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2589 static function.
2590 (handle_aligned_attribute): In choose strictest alignment
2591 among many. Use new check_cxx_fundamental_alignment_constraints.
2592 (handle_transparent_union_attribute): In c++11 attribute syntax,
2593 don't look through typedefs.
2594
3b78de56
AC
25952012-10-04 Arnaud Charlet <charlet@adacore.com>
2596
2597 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2598 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2599 out of dumpfile.h.
2600
6040bb5f
DC
26012012-09-25 Dehao Chen <dehao@google.com>
2602
2603 PR middle-end/54645
3b78de56 2604 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2605 map when read in the pch.
2606
0b07a57e
AC
26072012-09-18 Arnaud Charlet <charlet@adacore.com>
2608
2609 * c-ada-spec.c: Style fixes.
2610
da5182be
TQ
26112012-09-18 Thomas Quinot <quinot@adacore.com>
2612
2613 * c.opt (-fada-spec-parent): Define new command line switch.
2614 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2615 is specified, generate binding spec as a child of the specified unit.
2616
0ccb505d
PC
26172012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2618 Manuel López-Ibáñez <manu@gcc.gnu.org>
2619
2620 PR c++/53210
2621 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2622
c583af79
AC
26232012-08-23 Arnaud Charlet <charlet@adacore.com>
2624
2625 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2626 for pointers, and add missing Convention C pragma.
2627 (print_ada_struct_decl): Add missing aliased keyword.
2628 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2629
1a4049e7
JJ
26302012-08-17 Jakub Jelinek <jakub@redhat.com>
2631
2632 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2633 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2634 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2635 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2636 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2637
70b5e7dc
RG
26382012-08-10 Richard Guenther <rguenther@suse.de>
2639
2640 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2641
f8923f7e
SB
26422012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2643
2644 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2645 instead of separate pp_newline and pp_flush.
2646 (print_c_tree): Likewise.
2647
e45abe1f
RH
26482012-07-26 Richard Henderson <rth@redhat.com>
2649
2650 * c-common.c (handle_hot_attribute): Allow labels.
2651 (handle_cold_attribute): Likewise.
2652
332f1d24
JJ
26532012-07-20 Jakub Jelinek <jakub@redhat.com>
2654
2655 PR c++/28656
2656 * c-common.c (check_function_nonnull): Handle multiple nonnull
2657 attributes properly.
2658
7ee2468b
SB
26592012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2660
2661 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2662 * c-ada-spec.c: Likewise.
2663 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2664
ee7b28eb
SB
26652012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2666
2667 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2668 Remove code conditional on it.
2669
6bdf3519
SB
26702012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2671
2672 * c-gimplify.c: Do not include basic-block.h.
2673 * c-common.c: Do not include linfuncs.h.
2674
532aafad
SB
26752012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2676
2677 * c-common.h: Include tree.h.
2678
8d0d1915
JM
26792012-07-02 Jason Merrill <jason@redhat.com>
2680
2681 PR c++/53524
2682 * c-common.c (get_priority): Call default_conversion.
2683
fbc873ad
UB
26842012-07-01 Uros Bizjak <ubizjak@gmail.com>
2685
2686 * c-pch.c (c_common_write_pch): Remove unused variables.
2687
d4a10d0a
SB
26882012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2689
2690 * cppspec.c: Moved from gcc/ to here.
2691
6f3a2e23
KT
26922012-06-27 Kai Tietz <ktietz@redhat.com>
2693
2694 PR preprocessor/37215
2695 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2696
8ca92d04
SB
26972012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2698
2699 * c-common.h (c_common_print_pch_checksum): Remove.
2700 * c-pch.c: Do not include output.h.
2701 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2702 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2703 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2704 (struct c_pch_header): Remove.
2705 (get_ident): Update gpch version.
2706 (pch_init): Do not print executable_checksum to asm_out_file.
2707 Do not fail if there is no asm_out_file to read back from. Set
2708 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2709 (c_common_write_pch): Verify that nothing was written to asm_out_file
2710 since pch_init was called. Do not write a c_pch_header, and do not
2711 copy from asm_out_file to the PCH.
2712 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2713 the content of asm_out_file from the PCH.
2714 (c_common_print_pch_checksum): Remove.
2715 * c-opts.c (c_common_init): Print out executable_checksum directly.
2716
70f42967
SB
27172012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2718
2719 * c-target.def (objc_declare_unresolved_class_reference,
2720 objc_declare_class_definition): Add new hooks.
2721
a8781821
SB
27222012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2723
2724 * c-lex.c: Do not include output.h.
2725 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2726 Remove uses of ASM_OUTPUT_IDENT.
2727
9e1a8dd1
RR
27282012-06-15 Marc Glisse <marc.glisse@inria.fr>
2729
2730 PR c++/51033
2731 * c-common.h (c_build_vec_perm_expr): Move decl here.
2732 * c-common.c (c_build_vec_perm_expr): Move definition
2733 here.
2734
6f07a821
SB
27352012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2736
2737 * c.opt (fconserve-space): Turn into a no-op.
2738
9faeb493 27392012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2740
2741 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2742 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2743 both the start and end of the function.
2744
a4b7d13c
SB
27452012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2746
2747 * c-common.c: Do not include output.h.
2748 * c-pragma.c: Likewise.
2749
c265f413
SA
27502012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2751
2752 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2753 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2754 (lang_decl_name): Handle namespace decls.
2755
be7a421e
SB
27562012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2757
2758 * c-ada-spec.c: Do not include output.h.
2759 * c-semantics.c: Likewise.
2760
65de6659
JM
27612012-05-29 Joseph Myers <joseph@codesourcery.com>
2762
2763 * c-common.c: Fix typo.
2764
ca5f4331
MM
27652012-05-29 Michael Matz <matz@suse.de>
2766
2767 * c-common.h (c_expand_decl): Remove prototype.
2768
4f7f7aca
MLI
27692012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2770
2771 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2772 * c-opts.c (c_common_handle_option): Remove code handling
2773 warn_missing_braces.
2774
4a792f9b
PC
27752012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2776
2777 PR c++/25137
2778 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2779 -Wmissing_braces.
2780
650dc14a
DS
27812012-05-22 Dodji Seketeli <dodji@redhat.com>
2782
2783 PR c++/53322
2784 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2785
9b095bf1
MLI
27862012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2787
2788 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2789 * c-opts.c (c_common_handle_option): Do not handle explicitly
2790 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2791
0b2c4be5
DS
27922012-05-16 Dodji Seketeli <dodji@redhat.com>
2793
2794 PR preprocessor/7263
2795 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2796 to cpp_classify_number. For diagnostics, use the precise location
2797 instead of the global input_location.
2798
a1bde5af
PC
27992012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2800
d02924ef 2801 PR c++/11856
a1bde5af
PC
2802 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2803
d1ede5f4
BS
28042012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2805
a1bde5af 2806 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2807
f2bc201f
MLI
28082012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2809
2810 PR 53063
2811 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2812 Wreorder): Use LangEnabledBy.
2813 * c-opts.c (c_common_handle_option): Do not enable them
2814 explicitly. Call lang-specific generated functions.
2815 (c_common_post_options): Do not set them here.
2816
95744782
MLI
28172012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2818
2819 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2820 Wmissing-field-initializers,Wmissing-parameter-type,
2821 Wold-style-declaration,Woverride-init): Use EnabledBy.
2822 * c-opts.c (c_common_post_options): Do not set here explicitly.
2823
7d5a5747
MLI
28242012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2825
2826 PR 53063
2827 * c-opts.c (c_common_handle_option): Use handle_generated_option
2828 to enable sub-options.
2829
5a3c9cf2
PC
28302012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2831
2832 PR c++/53158
2833 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2834
3ac8781c
RG
28352012-05-10 Richard Guenther <rguenther@suse.de>
2836
2837 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2838 adjust commentary about TYPE_IS_SIZETYPE types.
2839
1e537948
MLI
28402012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2841
2842 PR c++/53261
2843 * c-common.c (warn_logical_operator): Check that argument of
2844 integer_zerop is not NULL.
2845
f2c4a785
MLI
28462012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2847
2848 PR c/43772
2849 * c-common.c (warn_logical_operator): Do not warn if either side
2850 is already true or false.
2851
50f305ca
MLI
28522012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2853
2854 PR c/51712
2855 * c-common.c (expr_original_type): New.
2856 (shorten_compare): Do not warn for enumeration types.
2857
0c3641b0
MLI
28582012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2859
2860 * c.opt (fpermissive): Add Var(flag_permissive).
2861
7edaa4d2
MG
28622012-04-30 Marc Glisse <marc.glisse@inria.fr>
2863
2864 PR c++/51033
2865 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2866 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2867
b9c8da34
DS
28682012-04-30 Dodji Seketeli <dodji@redhat.com>
2869
2870 Add -Wvarargs option
2871 * c.opt (Wvarargs): Define new option.
2872
e6c69da0
MLI
28732012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2874
2875 * c-common.c (check_function_arguments): Replace
2876 Wmissing-format-attribute with Wsuggest-attribute=format.
2877
90137d8f
MLI
28782012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2879
2880 * c.opt (Wsuggest-attribute=format): New. Alias of
2881 Wmissing-format-attribute.
2882 * c-format.c (decode_format_type): Replace
2883 Wmissing-format-attribute with Wsuggest-attribute=format.
2884 (check_function_format): Likewise.
2885
9faeb493 28862012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2887
2888 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2889 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2890 * c.opt: Add Wliteral-suffix.
2891
c1771a20
MLI
28922012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2893
2894 PR c/44774
2895 * c.opt (Wpedantic): New.
2896 (pedantic): Alias Wpedantic.
2897 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2898 (c_common_post_options): Likewise.
2899 (sanitize_cpp_opts): Likewise.
2900 * c-lex.c (interpret_float): Likewise.
2901 * c-format.c (check_format_types): Likewise.
2902 * c-common.c (pointer_int_sum): Likewise.
2903 (c_sizeof_or_alignof_type): Likewise.
2904 (c_add_case_label): Likewise.
2905 (c_do_switch_warnings): Likewise.
2906 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2907
04b391c1
JM
29082012-04-15 Jason Merrill <jason@redhat.com>
2909
2910 PR c++/52818
2911 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2912 (C_STD_NAME): Distinguish between C++98 and C++11.
2913
ac868f29
EB
29142012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2915
2916 PR target/52624
2917 * c-common.h (uint16_type_node): Rename into...
2918 (c_uint16_type_node): ...this.
2919 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2920 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2921
fd4116f4
MLI
29222012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2923
2924 * c-common.c (warn_if_unused_value): Move definition to here.
2925 * c-common.h (warn_if_unused_value): Move declaration to here.
2926
573ac65e
WB
29272012-03-23 William Bader <williambader@hotmail.com>
2928
2929 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2930
552b8185
JM
29312012-03-20 Jason Merrill <jason@redhat.com>
2932
2933 * c-common.h (enum cxx_dialect): Add cxx1y.
2934 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2935 test.
2936 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2937 * c-opts.c (c_common_post_options): Likewise.
2938 (set_std_cxx1y): New.
2939 (c_common_handle_option): Call it.
2940 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2941
04398fa8
PC
29422012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2943
2944 PR c++/14710
2945 * c.opt ([Wuseless-cast]): Add.
2946
d2a12ae7
RG
29472012-03-16 Richard Guenther <rguenther@suse.de>
2948
2949 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2950
a12bf402
MLI
29512012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2952
2953 PR c++/44783
2954 * c.opt (ftemplate-backtrace-limit) Add.
2955
5c30094f
RO
29562012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2957
2958 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2959 handling.
2960 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2961 (init_pragma): Don't register extern_prefix.
2962
21fa2faf
RG
29632012-03-12 Richard Guenther <rguenther@suse.de>
2964
2965 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2966 (builtin_type_for_size): Likewise.
2967
e3793c6f
JJ
29682012-02-13 Jakub Jelinek <jakub@redhat.com>
2969
2970 PR c++/52215
2971 * c-common.c (sync_resolve_params): Don't decide whether to convert
2972 or not based on TYPE_SIZE comparison, convert whenever arg_type
2973 is unsigned INTEGER_TYPE.
2974
93286335
PC
29752012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2976
2977 PR c/52118
2978 * c.opt ([Wunused-local-typedefs]): Fix description.
2979
7a421706
MS
29802012-01-24 Mike Stump <mikestump@comcast.net>
2981
2982 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2983 exactly.
2984
ba9b1f11
RG
29852012-01-18 Richard Guenther <rguenther@suse.de>
2986
2987 * c-opts.c (c_common_post_options): Reset LTO flags if
2988 we are about to generate a PCH.
2989
465406be
PC
29902012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2991
2992 PR c++/51777
2993 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2994 use pp_unsigned_wide_integer.
2995
aee15221
RG
29962012-01-10 Richard Guenther <rguenther@suse.de>
2997
2998 PR middle-end/51806
2999 * c-opts.c (c_common_handle_option): Move -Werror handling
3000 to language independent code.
3001
5720c0dc
RG
30022012-01-05 Richard Guenther <rguenther@suse.de>
3003
3004 PR middle-end/51764
3005 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3006 from common.opt.
3007
73ac190a
PC
30082011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3009
3010 PR c++/51316
3011 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3012 of array types with an unknown bound.
3013
48b0b196
JM
30142011-12-20 Joseph Myers <joseph@codesourcery.com>
3015
3016 * c-common.c (flag_isoc99): Update comment to refer to C11.
3017 (flag_isoc1x): Change to flag_isoc11.
3018 * c-common.h (flag_isoc99): Update comment to refer to C11.
3019 (flag_isoc1x): Change to flag_isoc11.
3020 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3021 C11.
3022 * c-opts.c (set_std_c1x): Change to set_std_c11.
3023 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3024 Call set_std_c11.
3025 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3026 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3027 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3028 standard.
3029 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3030 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3031 (std=gnu1x): Make alias of std=gnu11.
3032
d58d6eb5
JM
30332011-12-19 Jason Merrill <jason@redhat.com>
3034
3035 PR c++/51228
3036 * c-common.c (handle_transparent_union_attribute): Check the first
3037 field if the type is complete.
3038
b3908fcc
JW
30392011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3040
3041 PR libstdc++/51365
3042 * c-common.c (RID_IS_FINAL): Add.
3043 * c-common.h (RID_IS_FINAL): Add.
3044
fea3ca91
IS
30452011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3046
3047 * c.opt (fgnu-runtime): Provide full description.
3048 (fnext-runtime): Likewise.
3049 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3050
62bad7cd
AM
30512011-11-28 Andrew MacLeod <amacleod@redhat.com>
3052
3053 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3054 predefines in one place. Add LOCK_FREE predefines.
3055 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3056 new func.
3057
c466c4ff
AM
30582011-11-24 Andrew MacLeod <amacleod@redhat.com>
3059
3060 PR c/51256
9faeb493 3061 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3062 conditions
9faeb493
UB
3063 (resolve_overloaded_atomic_exchange,
3064 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3065 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3066 error_mark_node for error conditions.
9faeb493 3067
a5952633
RG
30682011-11-08 Richard Guenther <rguenther@suse.de>
3069
3070 PR middle-end/51010
3071 c-family/
3072
0a35513e
AH
30732011-11-07 Richard Henderson <rth@redhat.com>
3074 Aldy Hernandez <aldyh@redhat.com>
3075 Torvald Riegel <triegel@redhat.com>
3076
3077 Merged from transactional-memory.
3078
3079 * c-common.c (handle_tm_wrap_attribute,
3080 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3081 (struct c_common_reswords): Added __transaction* keywords.
3082 (struct c_common_attribute_table): Added transaction* and tm_regparm
3083 attributes.
3084 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3085 masks.
3086 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3087 find_tm_attribute): Declare.
3088
6d87092d
JM
30892011-11-07 Jason Merrill <jason@redhat.com>
3090
3091 PR c++/35688
3092 * c-common.c, c-common.h: Revert yesterday's changes.
3093
8e7860a1
JM
30942011-11-06 Jason Merrill <jason@redhat.com>
3095
3096 PR c++/35688
3097 * c-common.c (decl_has_visibility_attr): Split out from...
3098 (c_determine_visibility): ...here.
3099 * c-common.h: Declare it.
3100
d19fa6b5
JM
31012011-11-06 Joseph Myers <joseph@codesourcery.com>
3102
3103 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3104 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3105 type.
3106 (check_user_alignment): New. Split out of
3107 handle_aligned_attribute. Disallow integer constants with
3108 noninteger types. Conditionally allow zero.
3109 (handle_aligned_attribute): Use check_user_alignment.
3110 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3111
86951993
AM
31122011-11-06 Andrew MacLeod <amacleod@redhat.com>
3113 Richard Henderson <rth@redhat.com>
3114
3115 Merged from cxx-mem-model.
3116
3117 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3118 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3119 parameters that are the same type size.
3120 (get_atomic_generic_size): New. Find size of generic
3121 atomic function parameters and do typechecking.
3122 (add_atomic_size_parameter): New. Insert size into parameter list.
3123 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3124 either __atomic_exchange_n or external library call.
9faeb493 3125 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3126 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3127 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3128 __atomic_load_n or an external library call.
3129 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3130 __atomic_store_n or an external library call.
3131 (resolve_overloaded_builtin): Handle new __atomic builtins.
3132
cf9e9959
EB
31332011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3134
3135 PR c++/50608
3136 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3137 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3138 <INDIRECT_REF>: Return the argument.
3139 <ARRAY_REF>: Remove special code for negative offset.
3140 Call fold_build_pointer_plus instead of size_binop.
3141 (fold_offsetof): Remove STOP_REF argument and adjust.
3142 * c-common.h (fold_offsetof_1): Declare.
3143 (fold_offsetof): Remove STOP_REF argument.
3144
25339f10
JM
31452011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3146
3147 PR c++/50810
3148 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3149 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3150 Wnarrowing for C++0x and C++98.
3151 * c.opt ([Wnarrowing]): Update.
3152
89401152
PC
31532011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3154
3155 PR c++/44277
3156 * c.opt: Add Wzero-as-null-pointer-constant.
3157
97e3ad20
JM
31582011-10-31 Jason Merrill <jason@redhat.com>
3159
15694fdd
JM
3160 * c.opt (-fdeduce-init-list): Off by default.
3161
97e3ad20
JM
3162 PR c++/50920
3163 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3164 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3165 and -Wc++11-compat.
3166 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3167
fb9120e3
RAV
31682011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3169
3170 PR c++/30066
3171 * c.opt (fvisibility-inlines-hidden): Description change.
3172
3ce4f9e4
ESR
31732011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3174
3175 Implement C++11 user-defined literals.
3176 * c-common.c (build_userdef_literal): New.
3177 * c-common.def: New tree code.
3178 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3179 * c-lex.c (interpret_float): Add suffix parm.
3180 (c_lex_with_flags): Build literal tokens.
3181
5f53c243
PC
31822011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3183
3184 PR c++/50841
3185 Revert:
3186 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3187
3188 PR c++/50810
3189 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3190 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3191 Wnarrowing for C++0x and C++98.
3192 * c.opt ([Wnarrowing]): Update.
3193
263734e1
PC
31942011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3195
3196 PR c++/50810
3197 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3198 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3199 Wnarrowing for C++0x and C++98.
3200 * c.opt ([Wnarrowing]): Update.
3201
d2e312d7
PC
32022011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3203
3204 PR c++/45385
3205 * c-common.c (conversion_warning): Remove code looking for
3206 artificial operands.
3207
d17687f6
DS
32082011-10-18 Dodji Seketeli <dodji@redhat.com>
3209
3210 PR bootstrap/50760
3211 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3212 !NO_IMPLICIT_EXTERN_C.
d17687f6 3213
fc8396e9
PC
32142011-10-17 Michael Spertus <mike_spertus@symantec.com>
3215
3216 * c-common.c (c_common_reswords): Add __bases,
3217 __direct_bases.
3218 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3219
32202011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3221
3222 PR c++/50757
3223 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3224
847e697a
TT
32252011-10-15 Tom Tromey <tromey@redhat.com>
3226 Dodji Seketeli <dodji@redhat.com>
3227
3228 * c.opt (fdebug-cpp): New option.
3229 * c-opts.c (c_common_handle_option): Handle the option.
3230 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3231 output stream in parameter. Factorized from ...
3232 (maybe_print_line): ... this. Dump location debug information when
3233 -fdebug-cpp is in effect.
3234 (print_line_1): New static function. Takes an output stream in
3235 parameter. Factorized from ...
3236 (print_line): ... here. Dump location information when -fdebug-cpp
3237 is in effect.
3238 (scan_translation_unit): Dump location information when
3239 -fdebug-cpp is in effect.
3240
92582b75
TT
32412011-10-15 Tom Tromey <tromey@redhat.com>
3242 Dodji Seketeli <dodji@redhat.com>
3243
3244 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3245 without argument.
3246 * c-opts.c (c_common_handle_option)<case
3247 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3248 cases. Handle -ftrack-macro-expansion with and without argument.
3249
46427374
TT
32502011-10-15 Tom Tromey <tromey@redhat.com>
3251 Dodji Seketeli <dodji@redhat.com>
3252
3253 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3254 (print_line, cb_define, do_line_change): Adjust to avoid touching
3255 the internals of struct line_map. Use the public API instead.
3256 * c-pch.c (c_common_read_pch): Likewise.
3257 * c-lex.c (fe_file_change): Likewise.
3258
fc8396e9
PC
32592011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3260
3261 PR c++/17212
3262 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3263
32642011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3265
3266 PR c++/33067
3267 * c-pretty-print.c (pp_c_floating_constant): Output
3268 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3269
e79983f4
MM
32702011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3271
3272 * c-common.c (def_builtin_1): Delete old interface with two
3273 parallel arrays to hold standard builtin declarations, and replace
3274 it with a function based interface that can support creating
3275 builtins on the fly in the future. Change all uses, and poison
3276 the old names. Make sure 0 is not a legitimate builtin index.
3277 * c-omp.c (c_finish_omp_barrier): Ditto.
3278 (c_finish_omp_taskwait): Ditto.
3279 (c_finish_omp_flush): Ditto.
3280
6637388f
TG
32812011-10-11 Tristan Gingold <gingold@adacore.com>
3282
3283 * c.opt: (fallow-parameterless-variadic-functions): New.
3284
3797cb21
DS
32852011-09-08 Dodji Seketeli <dodji@redhat.com>
3286
3287 PR c++/33255 - Support -Wunused-local-typedefs warning
3288 * c-common.h (struct c_language_function::local_typedefs): New
3289 field.
9faeb493
UB
3290 (record_locally_defined_typedef, maybe_record_typedef_use)
3291 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3292 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3293 (maybe_record_typedef_use)
3294 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3295 * c.opt: Declare new -Wunused-local-typedefs flag.
3296
693ddb1b
EB
32972011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3298
3299 PR middle-end/50266
3300 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3301 computations.
3302
830c740f
RG
33032011-09-05 Richard Guenther <rguenther@suse.de>
3304
3305 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3306 of integer_minus_one_node for empty array upper bounds.
3307
892a371f
DS
33082011-08-28 Dodji Seketeli <dodji@redhat.com>
3309
3310 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3311 it's the first time it's being called on this main TU.
3312
0e3fdb48
RB
33132011-08-24 Richard Guenther <rguenther@suse.de>
3314
3315 PR c/49396
3316 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3317
33182011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3319
3320 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3321 defined in cpp_init_builtins and c_cpp_builtins.
3322
d4a83c10
JM
33232011-08-19 Joseph Myers <joseph@codesourcery.com>
3324
3325 * c-common.c (c_common_reswords): Add __builtin_complex.
3326 * c-common.h (RID_BUILTIN_COMPLEX): New.
3327
bbceee64
JM
33282011-08-18 Joseph Myers <joseph@codesourcery.com>
3329
3330 * c-common.c (c_common_reswords): Add _Noreturn.
3331 (keyword_is_function_specifier): Handle RID_NORETURN.
3332 * c-common.h (RID_NORETURN): New.
3333
0e3a99ae
AS
33342011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3335
3336 * c-common.c (unsafe_conversion_p): New function. Check if it is
3337 unsafe to convert an expression to the type.
3338 (conversion_warning): Adjust, use unsafe_conversion_p.
3339 * c-common.h (unsafe_conversion_p): New function declaration.
3340
20906c66
JJ
33412011-08-02 Jakub Jelinek <jakub@redhat.com>
3342
3343 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3344 (c_finish_omp_taskyield): New prototype.
3345 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3346 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3347 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3348 or RHS1 have side-effects, evaluate those too in the right spot,
3349 if it is a decl and LHS is also a decl, error out if they
3350 aren't the same.
3351 (c_finish_omp_taskyield): New function.
3352 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3353 * c-pragma.c (omp_pragmas): Add taskyield.
3354 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3355 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3356 PRAGMA_OMP_CLAUSE_MERGEABLE.
3357
770e5a2e
DS
33582011-07-25 Dodji Seketeli <dodji@redhat.com>
3359
3360 * c-common.h (set_underlying_type): Remove parm name from
3361 declaration.
3362
1baae426
RG
33632011-07-25 Romain Geissler <romain.geissler@gmail.com>
3364
3365 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3366
fcb21722
JM
33672011-07-22 Jason Merrill <jason@redhat.com>
3368
76f86d00
JM
3369 PR c++/49793
3370 * c.opt (Wnarrowing): New.
3371
3a636414
JM
3372 PR c++/30112
3373 * c-common.h: Declare c_linkage_bindings.
3374 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3375
fcb21722
JM
3376 PR c++/49813
3377 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3378 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3379 as flag_isoc99 for 'restrict'.
3380 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3381
02614448
ILT
33822011-07-21 Ian Lance Taylor <iant@google.com>
3383
3384 PR middle-end/49705
3385 * c-common.c (c_disable_warnings): New static function.
3386 (c_enable_warnings): New static function.
3387 (c_fully_fold_internal): Change local unused_p to bool. Call
3388 c_disable_warnings and c_enable_warnings rather than change
3389 c_inhibit_evaluation_warnings.
3390
34429675
JM
33912011-07-20 Jason Merrill <jason@redhat.com>
3392
3393 PR c++/6709 (DR 743)
3394 PR c++/42603 (DR 950)
3395 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3396 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3397 (CPP_DECLTYPE): New.
3398 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3399
5d49b6a7
RG
34002011-07-19 Richard Guenther <rguenther@suse.de>
3401
3402 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3403 * c-omp.c (c_finish_omp_for): Likewise.
3404
e84a58ff
EB
34052011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3406
3407 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3408 body on the next line.
3409
329af3c7
JM
34102011-07-08 Jason Merrill <jason@redhat.com>
3411
4063e61b
JM
3412 PR c++/45437
3413 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3414
329af3c7
JM
3415 PR c++/49673
3416 * c-common.c (c_apply_type_quals_to_decl): Don't check
3417 TYPE_NEEDS_CONSTRUCTING.
3418
1a072294
RG
34192011-07-06 Richard Guenther <rguenther@suse.de>
3420
3421 * c-common.c (c_common_nodes_and_builtins):
3422 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3423
fce5dddd
RG
34242011-07-05 Richard Guenther <rguenther@suse.de>
3425
3426 * c-common.c (c_common_nodes_and_builtins): Build all common
3427 tree nodes first.
3428
45d439ac
JJ
34292011-06-27 Jakub Jelinek <jakub@redhat.com>
3430
56300785
JJ
3431 * c-common.h (c_tree_chain_next): New static inline function.
3432
45d439ac
JJ
3433 * c-common.c (check_builtin_function_arguments): Handle
3434 BUILT_IN_ASSUME_ALIGNED.
3435
e0a8ecf2
AM
34362011-06-21 Andrew MacLeod <amacleod@redhat.com>
3437
3438 * c-common.c: Add sync_ or SYNC__ to builtin names.
3439 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3440
34412011-06-20 Pierre Vittet <piervit@pvittet.com>
3442
3443 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3444 handler.
3445 (gen_pragma_handler): New union.
3446 (internal_pragma_handler): New type.
3447 (c_register_pragma_with_data)
3448 (c_register_pragma_with_expansion_and_data): New functions.
3449
3450 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3451 (c_register_pragma, c_register_pragma_with_expansion)
3452 (c_invoke_pragma_handler): Changed to work with
3453 internal_pragma_handler.
3454 (c_register_pragma_with_data)
3455 (c_register_pragma_with_expansion_and_data): New functions.
3456
677f3fa8
JM
34572011-06-14 Joseph Myers <joseph@codesourcery.com>
3458
3459 * c-common.c: Include common/common-target.h.
3460 (handle_section_attribute): Use
3461 targetm_common.have_named_sections.
3462 * c-cppbuiltin.c: Include common/common-target.h.
3463 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3464
d7fc8c14
RG
34652011-06-10 Richard Guenther <rguenther@suse.de>
3466
3467 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3468 to print a IDENTIFIER_NODE.
3469
10e48e39
RO
34702011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3471 Joseph Myers <joseph@codesourcery.com>
3472
3473 * c.opt (fbuilding-libgcc): New option.
3474 * c-cppbuiltin.c (c_cpp_builtins): Define
3475 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3476
6976ae51
JM
34772011-06-07 Jason Merrill <jason@redhat.com>
3478
3ff60975
JM
3479 * c-common.c (max_tinst_depth): Lower default to 900.
3480
6976ae51
JM
3481 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3482
009db074
RG
34832011-06-07 Richard Guenther <rguenther@suse.de>
3484
3485 * c-common.c (c_common_nodes_and_builtins): Do not set
3486 size_type_node or call set_sizetype.
3487
b4592b92
DS
34882011-06-07 Dodji Seketeli <dodji@redhat.com>
3489
3490 PR debug/49130
3491 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3492 type when using pointer comparison to compare types.
b4592b92 3493
014ab419
JW
34942011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3495
3496 * c.opt: Add -Wdelete-non-virtual-dtor.
3497 * c-opts.c (c_common_handle_option): Include it in -Wall.
3498
4f60111f
NF
34992011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3500
3501 PR bootstrap/49190
3502
3503 Revert:
3504 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3505
3506 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3507 not tree_common.
3508
4cc4f2f4
JJ
35092011-05-27 Jakub Jelinek <jakub@redhat.com>
3510
3511 PR c++/49165
3512 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3513 C++ don't call c_common_truthvalue_conversion on void type arms.
3514
38e01f9e
NF
35152011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3516
3517 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3518 (stmt_list_stack): Define.
3519 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3520 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3521
92e948a8
NF
35222011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3523
3524 * c-common.c (warning_candidate_p): Check for BLOCKs.
3525
a2fc3e63
NF
35262011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3527
3528 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3529 not tree_common.
3530
0957c029
JJ
35312011-05-25 Jakub Jelinek <jakub@redhat.com>
3532
3533 * c-common.c (def_fn_type): Remove extra va_end.
3534
828fb3ba
JM
35352011-05-23 Jason Merrill <jason@redhat.com>
3536
3537 PR c++/48106
3538 * c-common.c (c_common_get_narrower): New.
3539 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3540
dde05067
NF
35412011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3542
3543 * c-common.h (check_function_arguments): Tweak prototype of
3544 check_function_arguments.
3545 * c-common.c (check_function_arguments): Likewise. Adjust
3546 calls to check_function_nonnull, check_function_format, and
3547 check_function_sentinel.
3548 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3549 separate attributes and typelist arguments. Use
3550 FOREACH_FUNCTION_ARGS to iterate over argument types.
3551
3c0d13bf
PC
35522011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3553
3554 * c-common.c (c_common_reswords): Reorder.
3555 * c-common.h (rid): Likewise.
3556
8242dd04
NF
35572011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3558
3559 * c-common.c (def_fn_type): Don't call build_function_type, call
3560 build_function_type_array or build_varargs_function_type_array
3561 instead.
3562 (c_common_nodes_and_builtins): Likewise.
3563
3d528853
NF
35642011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3565
3566 * c-common.c (c_add_case_label): Omit the loc argument to
3567 build_case_label.
3568 * c-common.h (build_case_label): Remove.
3569 * c-semantics.c (build_case_label): Remove.
3570
a04a722b
JM
35712011-05-05 Joseph Myers <joseph@codesourcery.com>
3572
3573 * c-objc.h (objc_start_method_definition): Update prototype.
3574 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3575
e19a18d4
NF
35762011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3577
3578 * c-common.c (check_main_parameter_types): Reindent. Don't use
3579 TYPE_ARG_TYPES directly.
3580 (handle_nonnull_attribute): Likewise.
3581 (sync_resolve_params): Likewise.
3582 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3583 to check_format_string.
3584 (handle_format_attribute): Likewise.
3585 (check_format_string): Take a function type to examine instead of
3586 a type list. Use a function_arg_iterator to step through argument
3587 types.
3588
c62c040f
RG
35892011-05-04 Richard Guenther <rguenther@suse.de>
3590
3591 * c-common.c (fix_string_type): Use size_int for index type bounds.
3592 (start_fname_decls): Do not pass NULL to build_int_cst.
3593 (c_init_attributes): Likewise.
3594 * c-lex.c (c_lex_with_flags): Likewise.
3595
c12ff9d8
JM
35962011-04-27 Jason Merrill <jason@redhat.com>
3597
3598 * c-common.c (make_tree_vector_from_list): New.
3599 * c-common.h: Declare it.
3600
304dfbe3
RG
36012011-04-26 Richard Guenther <rguenther@suse.de>
3602
3603 PR preprocessor/48248
3604 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3605 for output size with -P.
3606
3c0d13bf
PC
36072011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3608
3609 * c-common.c (struct c_common_resword): Add __underlying_type.
3610 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3611
04695783
JM
36122011-04-20 Jim Meyering <meyering@redhat.com>
3613
3614 * c-format.c (init_dollar_format_checking): Remove useless
3615 if-before-free.
3616
0dc33c3c
NP
36172011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3618
3619 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3620 (objc_detect_field_duplicates): New.
0dc33c3c 3621 * stub-objc.c: Likewise.
3c0d13bf 3622
c59633d9
NP
36232011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3624
3625 * stub-objc.c (objc_declare_protocols): Renamed to
3626 objc_declare_protocol.
3627 * c-objc.h: Likewise.
3c0d13bf 3628
32dabdaf
NP
36292011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3630
3631 * stub-objc.c (objc_declare_class): Updated argument name.
3632
81f653d6
NF
36332011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3634
3635 * c-common.h (c_common_init_ts): Declare.
3636 * c-common.c (c_common_init_ts): Define.
3637
eb345401
NP
36382011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3639
3640 * c-objc.h (objc_build_message_expr): Updated prototype.
3641 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3642
a358e188
MJ
36432011-04-12 Martin Jambor <mjambor@suse.cz>
3644
3645 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3646 of cgraph_node.
3647
e6313a78
RG
36482011-04-11 Richard Guenther <rguenther@suse.de>
3649
3650 * c-common.c (complete_array_type): Build a range type of
3651 proper type.
3652
dcf0c47e
NF
36532011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3654
3655 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3656 (handle_type_generic_attribute): Likewise.
3657
1ee44b26
JM
36582011-04-07 Jason Merrill <jason@redhat.com>
3659
3660 PR c++/48450
3661 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3662 conversion from C++0x scoped enum.
3663
acce4e77
JM
36642011-04-06 Joseph Myers <joseph@codesourcery.com>
3665
3666 * c-target-def.h: New file.
3667 * c-target.def: New file.
3668 * c-target.h: New file.
3669 * c-common.c (targetcm): Don't define here.
3670 * c-common.h (default_handle_c_option): Declare.
3671 * c-format.c: Include c-target.h instead of target.h.
3672 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3673 include tm.h.
3674 (default_handle_c_option): Move from targhooks.c.
3675
e2eefb55
JJ
36762011-03-29 Jakub Jelinek <jakub@redhat.com>
3677
3678 PR preprocessor/48248
3679 * c-ppoutput.c (print): Add src_file field.
3680 (init_pp_output): Initialize it.
3681 (maybe_print_line): Don't optimize by adding up to 8 newlines
3682 if map->to_file and print.src_file are different file.
3683 (print_line): Update print.src_file.
3684
ba78087b
KT
36852011-03-25 Kai Tietz <ktietz@redhat.com>
3686
3687 * c-ada-spec.c (compare_comment): Use filename_cmp
3688 instead of strcmp for filename.
3689
0edf1bb2
JL
36902011-03-25 Jeff Law <law@redhat.com>
3691
adfac8df 3692 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 3693
c7dc8804
JM
36942011-03-25 Jason Merrill <jason@redhat.com>
3695
3696 * c.opt: Add -std=c++03.
3697
d1d879b1
EB
36982011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3699
3700 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3701
62d784f7
KT
37022011-03-17 Kai Tietz
3703
3704 PR target/12171
5050afdf
KT
3705 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3706 Display allowed attributes for function pointer types.
3707 (pp_c_attributes_display): New function to display
3708 attributes having affects_type_identity flag set to true.
3709 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3710
62d784f7
KT
3711 * c-common.c (c_common_attribute_table):
3712 Add new element.
3713 (c_common_format_attribute_table): Likewise.
3714
82d37118
JM
37152011-03-18 Jason Merrill <jason@redhat.com>
3716
49a000c3
JM
3717 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3718 * c-common.h: Don't declare it here.
3719 * c-common.c: Or define it here.
3720 * c-opts.c (c_common_handle_option): Or set it here.
3721
82d37118
JM
3722 PR c++/35315
3723 * c-common.c (handle_transparent_union_attribute): Don't
3724 make a duplicate type in C++.
3725
17bc631c
JM
37262011-03-15 Jason Merrill <jason@redhat.com>
3727
3728 * c-common.c (max_constexpr_depth): New.
3729 * c-common.h: Declare it.
3730 * c-opts.c (c_common_handle_option): Set it.
3731 * c.opt (fconstexpr-depth): New option.
3732
1b9b91a6
JM
37332011-03-11 Jason Merrill <jason@redhat.com>
3734
f231b5ff
JM
3735 * c-common.c (attribute_takes_identifier_p): Add missing const.
3736
1b9b91a6
JM
3737 PR c++/46803
3738 * c-common.c (attribute_takes_identifier_p): Assume that an
3739 unknown attribute takes an identifier.
3740
a19e4d44
NF
37412011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3742
3743 PR c/47786
3744 * c-common.c (c_type_hash): Call list_length instead of iterating
3745 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3746
982d62f6
JJ
37472011-02-19 Jakub Jelinek <jakub@redhat.com>
3748
3749 PR c/47809
3750 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3751
0a256240
NP
37522011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3753
3754 * c.opt (fobjc-abi-version=) New.
3755 (fobjc-nilcheck): New.
3756
ba9e6dd5
NF
37572011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3758
3759 PR c++/46890
3760 * c-common.h (keyword_is_decl_specifier): Declare.
3761 * c-common.c (keyword_is_decl_specifier): Define.
3762 (keyword_is_function_specifier): New function.
3763
7273813a
JJ
37642011-01-26 Jakub Jelinek <jakub@redhat.com>
3765
3766 PR c/47473
3767 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3768 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3769 REAL_TYPE.
3770
908ef79b
AC
37712011-01-26 Arnaud Charlet <charlet@adacore.com>
3772
3773 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3774
237e9384
JJ
37752011-01-26 Jakub Jelinek <jakub@redhat.com>
3776
3777 PR pch/47430
3778 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3779 after init_c_lex if pch_file is set.
3780
47ea1edf
DK
37812011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3782
d4dba752 3783 PR c++/43601
47ea1edf
DK
3784 * c.opt (-fkeep-inline-dllexport): New switch.
3785
2aa9c6ae
RG
37862011-01-12 Richard Guenther <rguenther@suse.de>
3787
3788 PR middle-end/32511
3789 * c-common.c (handle_weak_attribute): Warn instead of error
3790 on declaring an inline function weak.
3791
7bd11157
TT
37922011-01-05 Tom Tromey <tromey@redhat.com>
3793
3794 * c-common.h (lvalue_error): Update.
3795 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3796 not error.
3797
0e66e494 37982010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3799
b4f588c4
NP
3800 PR objc/47075
3801 * c-objc.h (objc_finish_message_expr): Added argument to
3802 prototype.
3803
f4da8dce
NF
38042010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3805
3806 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3807 Use prototype_p.
3808
46270f14
NP
38092010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3810
3811 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3812 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3813
4816c593
NF
38142010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3815
3816 * c-common.h (readonly_error): Declare.
3817 * c-common.c (readonly_error): Define.
3818
7a6daeb0
NF
38192010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3820
3821 * c-common.h (invalid_indirection_error): Declare.
3822 * c-common.c (invalid_indirection_error): Define.
3823
892f6119
RG
38242010-12-03 Richard Guenther <rguenther@suse.de>
3825
3826 PR c/46745
3827 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3828 (pp_c_unary_expression): Likewise.
3829 (pp_c_expression): Likewise.
3830
6c39e757
NP
38312010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3832
3833 * c-common.h (objc_finish_function): New.
3834 (objc_non_volatilized_type): Removed.
3835 (objc_type_quals_match): Removed.
3836 * stub-objc.c (objc_finish_function): New.
3837 (objc_non_volatilized_type): Removed.
3838 (objc_type_quals_match): Removed.
9faeb493 3839
7c475d11
JM
38402010-11-30 Joseph Myers <joseph@codesourcery.com>
3841
3842 * c-common.h (parse_optimize_options): Declare.
3843 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3844 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3845
71f3e391
JM
38462010-11-29 Joseph Myers <joseph@codesourcery.com>
3847
3848 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3849 GET_ENVIRONMENT.
3850 * c-pch.c (O_BINARY): Don't define here.
3851 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3852
d5fabb58
JM
38532010-11-25 Joseph Myers <joseph@codesourcery.com>
3854
3855 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3856 targetm.except_unwind_info.
3857
299404a1
JM
38582010-11-23 Joseph Myers <joseph@codesourcery.com>
3859
3860 * c-opts.c (c_common_handle_option): Pass location to
3861 set_struct_debug_option.
3862
c98cd5bf
JM
38632010-11-23 Joseph Myers <joseph@codesourcery.com>
3864
3865 * c-common.c (visibility_options): Move from ../opts.c.
3866 * c-common.h (struct visibility_flags, visibility_options):
3867 Declare here.
3868 * c-opts.c (finish_options): Rename to c_finish_options.
3869 (c_common_init): Update call to finish_options.
3870
a9546771
NP
38712010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3872
3873 PR objc/34033
3874 * c-lex.c (lex_string): Check that each string in an Objective-C
3875 string concat sequence starts with either one or zero '@', and
3876 that there are no spurious '@' signs at the end.
3877
24a57808
JM
38782010-11-20 Joseph Myers <joseph@codesourcery.com>
3879
3880 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3881 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3882 HANDLE_PRAGMA_VISIBILITY.
3883 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3884 HANDLE_PRAGMA_VISIBILITY): Don't define.
3885 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3886
a9aa2c3a
NF
38872010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3888
3889 PR c++/16189
3890 PR c++/36888
3891 PR c++/45331
3892 * c-common.h (keyword_begins_type_specifier): Declare.
3893 (keyword_is_storage_class_specifier): Declare.
3894 (keyword_is_type_qualifier): Declare.
3895 * c-common.c (keyword_begins_type_specifier): New function.
3896 (keyword_is_storage_class_specifier): New function.
3897 (keyword_is_type_qualifier): Declare.
3898
5386338c
JM
38992010-11-19 Joseph Myers <joseph@codesourcery.com>
3900
3901 PR c/46547
3902 * c-common.c (in_late_binary_op): Define.
3903 (c_common_truthvalue_conversion): Check in_late_binary_op before
3904 calling c_save_expr.
3905 * c-common.h (in_late_binary_op): Declare.
3906
69ccdddb
JM
39072010-11-19 Joseph Myers <joseph@codesourcery.com>
3908
3909 * c-opts.c (c_common_handle_option): Update calls to
3910 set_struct_debug_option.
3911
6b192a09
NP
39122010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3913
3914 * c-common.h (objc_declare_protocols): Added additional argument.
3915 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3916
fb52b50a
NF
39172010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3918
3919 PR c/33193
3920 * c-common.h (build_real_imag_expr): Declare.
3921 * c-semantics.c (build_real_imag_expr): Define.
3922
b37421c6
JM
39232010-11-17 Joseph Myers <joseph@codesourcery.com>
3924
3925 * c-opts.c (c_common_parse_file): Take no arguments.
3926 * c-common.h (c_common_parse_file): Update prototype.
3927
07078664
JJ
39282010-11-16 Jakub Jelinek <jakub@redhat.com>
3929
3930 PR c++/46401
3931 * c-common.c (warning_candidate_p): Don't track non-const calls
3932 or STRING_CSTs.
3933
c6a13190
ILT
39342010-11-15 Ian Lance Taylor <iant@google.com>
3935
3936 * c-lex.c (init_c_lex): Set macro debug callbacks if
3937 flag_dump_go_spec is set.
3938
925e8657
NP
39392010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3940
3941 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3942 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3943
bb0a9581
NF
39442010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3945
3946 PR preprocessor/45038
3947 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3948 dialects.
3949
c5fa0890
JM
39502010-11-12 Joseph Myers <joseph@codesourcery.com>
3951
3952 * c-common.h (c_family_lang_mask): Declare.
3953 * c-opts.c (c_family_lang_mask): Make extern.
3954 * c-pragma.c (handle_pragma_diagnostic): Use
3955 control_warning_option.
3956
a4d8c676
JM
39572010-11-12 Joseph Myers <joseph@codesourcery.com>
3958
3959 * c-common.c (parse_optimize_options): Update call to
3960 decode_options.
3961 * c-common.h (c_common_handle_option): Update prototype.
3962 * c-opts.c (c_common_handle_option): Take location_t parameter and
3963 pass it to other functions.
3964
f954bd2c
JM
39652010-11-11 Joseph Myers <joseph@codesourcery.com>
3966
3967 * c-opts.c (warning_as_error_callback): Remove.
3968 (c_common_initialize_diagnostics): Don't call
3969 register_warning_as_error_callback.
3970 (c_common_handle_option): Handle -Werror=normalized= here.
3971
d8a07487
JM
39722010-11-10 Joseph Myers <joseph@codesourcery.com>
3973
3974 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3975 in diagnostic.
3976 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3977 letter.
3978 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3979 Remove trailing '.' from diagnostics.
3980 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3981
d5478783
JM
39822010-11-10 Joseph Myers <joseph@codesourcery.com>
3983
3984 * c-common.c (parse_optimize_options): Pass global_dc to
3985 decode_options.
3986 * c-opts.c (c_common_handle_option): Pass &global_options to
3987 set_Wstrict_aliasing.
3988 * c.opt (v): Don't mark Common or document here.
3989
91ebb981
IS
39902010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3991
3992 PR target/44981
3993 * c-format.c (format_type): New type gcc_objc_string_format_type.
3994 (valid_stringptr_type_p): New.
3995 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3996 (check_format_string): Pass expected type, use
91ebb981
IS
3997 valid_stringptr_type_p (), check that the format string types are
3998 consistent with the format specification.
3999 (decode_format_attr): Warn if NSString is used outside objective-c.
4000 (format_types_orig): Add NSString.
4001 (format_name): New.
4002 (format_flags): New.
4003 (check_format_arg): Handle format strings requiring an external parser.
4004 first_target_format_type: New variable.
4005 (handle_format_attribute): Set up first_target_format_type, pass the
4006 expected format arg string type to check_format_string().
4007 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4008 * stub-objc.c (objc_string_ref_type_p): New.
4009 (objc_check_format_arg): New.
4010
bede2adc
NP
40112010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4012
9faeb493 4013 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4014 * c-common.h (objc_build_class_component_ref): New.
4015 * stub-objc.c (objc_build_class_component_ref): New.
4016
9a179d01
NP
40172010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4018
4019 * c.opt (Wproperty-assign-default): New option.
4020
22d8d616
NP
40212010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4022
4023 Implemented -fobjc-std=objc1 flag.
4024 * c.opt (fobjc-std=objc1): New option.
4025
2debdb4f
NP
40262010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4027
4028 Implemented format and noreturn attributes for Objective-C methods.
4029 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4030 attribute for Objective-C methods.
4031
ec52b111
JM
40322010-10-31 Jason Merrill <jason@redhat.com>
4033
4034 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4035 EXPR_LOC_OR_HERE.
4036
46a88c12
NP
40372010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4038
4039 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4040 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4041 (objc_add_property_declaration): Removed arguments for copies and
4042 ivar.
4043 (objc_build_getter_call): Renamed to
4044 objc_maybe_build_component_ref.
4045 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4046 (objc_is_property_ref): New.
4047 * c-common.c (c_common_reswords): Removed copies and ivar.
4048 * stub-objc.c (objc_add_property_declaration): Removed arguments
4049 for copies and ivar.
4050 (objc_build_getter_call): Renamed to
4051 objc_maybe_build_component_ref.
4052 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4053 (objc_is_property_ref): New.
9faeb493 4054
1e4bf85b
AC
40552010-10-29 Arnaud Charlet <charlet@adacore.com>
4056 Matthew Gingell <gingell@adacore.com>
4057
4058 * c-ada-spec.c (separate_class_package): New function.
4059 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4060 name of their enclosing package.
4061 (print_ada_declaration): Use separate_class_package.
4062
81f0bab2
JM
40632010-10-27 Jason Merrill <jason@redhat.com>
4064
2b08f2c5
JM
4065 * c-common.c (c_common_reswords): Add __is_literal_type.
4066 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4067
81f0bab2
JM
4068 * c-common.c (check_case_value): Remove special C++ code.
4069
200290f2
NP
40702010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4071
4072 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4073 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4074 and RID_LAST_PATTR.
4075 (objc_add_property_declaration): Added additional arguments.
4076 (objc_property_attribute_kind): Removed.
4077 (objc_set_property_attr): Removed.
4078 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4079 copy and nonatomic.
4080 * stub-objc.c (objc_add_property_declaration): Added additional
4081 arguments.
4082 (objc_set_property_attr): Removed.
9faeb493 4083
f614132b
NP
40842010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4085
4086 * c-common.h (objc_add_property_variable): Renamed to
4087 objc_add_property_declaration. Added location argument.
4088 * stub-objc.c (objc_add_property_variable): Same change.
4089
b8a18805
NP
40902010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4091
4092 * c-common.h (objc_maybe_printable_name): New.
4093 * stub-objc.c (objc_maybe_printable_name): New.
4094
30cd1c5d
AS
40952010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4096 Andrew Pinski <pinskia@gmail.com>
4097
4098 * c-common.h (c_common_mark_addressable_vec): Declare.
4099 * c-common.c (c_common_mark_addressable_vec): New function.
4100
249a82c4
NP
41012010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4102
4103 * c-common.h (objc_set_method_type): Removed.
4104 (objc_add_method_declaration): Added boolean argument.
4105 (objc_start_method_definition): Same change.
4106 (objc_build_method_signature): Same change.
4107 * stub-objc.c (objc_set_method_type): Removed.
4108 (objc_add_method_declaration): Added boolean argument.
4109 (objc_start_method_definition): Same change.
4110 (objc_build_method_signature): Same change.
4111
977e30bc
NP
41122010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4113
4114 * c-common.h (finish_file): Removed.
4115 (objc_write_global_declarations): New.
4116 * c-opts.c (c_common_parse_file): Do not call finish_file.
4117 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4118
da57d1b9
NP
41192010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4120
4121 Implemented parsing @synthesize and @dynamic for
4122 Objective-C/Objective-C++.
4123 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4124 (objc_add_synthesize_declaration): New.
4125 (objc_add_dynamic_declaration): New.
4126 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4127 * stub-objc.c (objc_add_synthesize_declaration): New.
4128 (objc_add_dynamic_declaration): New.
9faeb493 4129
0069111f
MM
41302010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4131
4132 PR target/46041
4133 * c-cppbuiltin.c (mode_has_fma): Move function here from
4134 builtins.c. Don't use the fma optab, instead just use the
4135 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4136 using -save-temps.
4137
e426b47b
NP
41382010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4139
4140 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4141
e426b47b
NP
4142 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4143
9faeb493 4144 Radar 4330422
e426b47b
NP
4145 * c-common.h (objc_non_volatilized_type): New declaration
4146 * stub-objc.c (objc_non_volatilized_type): New stub.
4147
90fbfdc3
NP
41482010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4149
e426b47b 4150 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4151
4152 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4153
9faeb493 4154 Radar 4133425
90fbfdc3 4155 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4156 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4157
c37d8c30
IS
41582010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4159
4160 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4161 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4162 (objc_ivar_visibility_kind): New enum.
4163 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4164 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4165 visibility enum.
4166
1b1562a5
MM
41672010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4168
4169 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4170 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4171 has the appropriate fma builtins.
4172 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4173
668ea4b1
IS
41742010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4175
1b1562a5 4176 merge from FSF apple 'trunk' branch.
668ea4b1 4177 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4178
668ea4b1
IS
4179 Radars 4436866, 4505126, 4506903, 4517826
4180 * c-common.c (c_common_resword): Define @property and its attributes.
4181 * c-common.h: Define property attribute enum entries.
4182 (OBJC_IS_PATTR_KEYWORD): New.
4183 (objc_property_attribute_kind): New enum.
4184 Declare objc_set_property_attr (), objc_add_property_variable (),
4185 objc_build_getter_call () and objc_build_setter_call ().
4186 * stub-objc.c (objc_set_property_attr): New stub.
4187 (objc_add_property_variable): Likewise.
4188 (objc_build_getter_call): Likewise.
4189 (objc_build_setter_call) Likewise.
1b1562a5 4190
a1178b30
IS
41912010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4192
1b1562a5 4193 merge from FSF apple 'trunk' branch.
a1178b30
IS
4194 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4195
4196 Radar 3803157 (method attributes)
4197 * c-common.c (handle_deprecated_attribute): Recognize
4198 objc methods as valid declarations.
4199 * c-common.h: Declare objc_method_decl ().
1b1562a5 4200 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4201
a75bfaa6
JM
42022010-10-08 Joseph Myers <joseph@codesourcery.com>
4203
4204 * c-common.c (parse_optimize_options): Call
4205 decode_cmdline_options_to_array_default_mask before
4206 decode_options. Update arguments to decode_options.
4207 * c-common.h (c_common_init_options_struct): Declare.
4208 * c-opts.c (c_common_init_options_struct): New. Split out from
4209 c_common_init_options.
4210
f05b9d93
NP
42112010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4212
4213 Implemented fast enumeration for Objective-C.
4214 * c-common.h (objc_finish_foreach_loop): New.
4215 * stub-objc.c (objc_finish_foreach_loop): New.
4216
1ebe4b4f
JM
42172010-10-05 Joseph Myers <joseph@codesourcery.com>
4218
4219 * c-common.h (struct diagnostic_context): Don't declare here.
4220 (c_common_initialize_diagnostics): Declare using
4221 diagnostic_context typedef.
4222 * c-opts.c (c_common_handle_option): Pass global_dc to
4223 handle_generated_option.
4224
d4d24ba4
JM
42252010-10-04 Joseph Myers <joseph@codesourcery.com>
4226
4227 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4228 handle_generated_option.
4229
478a1c5b
ILT
42302010-10-03 Ian Lance Taylor <iant@google.com>
4231
4232 * c.opt (-fplan9-extensions): New option.
4233
82a1c2fe
FXC
42342010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4235
4236 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4237 Remove.
4238 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4239 of duplicating code.
4240
92902b1b
IS
42412010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4242
4243 * c-common.c: Add two new entries for @optional
4244 and @required keywords.
4245
4246 merge from FSF 'apple/trunk' branch.
4247 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4248
4249 Radar 4386773
4250 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4251 objective-c keywords.
4252 (objc_set_method_opt): New declaration.
4253 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4254
46625112
JM
42552010-09-30 Joseph Myers <joseph@codesourcery.com>
4256
4257 * c-common.c (handle_optimize_attribute): Pass &global_options to
4258 cl_optimization_save and cl_optimization_restore.
4259 * c-opts.c (c_common_handle_option): Pass &global_options to
4260 handle_generated_option.
4261 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4262 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4263 &global_options to cl_optimization_restore.
4264
49b91f05
NP
42652010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4266
4267 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4268 Objective-C/Objective-C++ keywords.
4269
13ed556f 42702010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4271
9faeb493
UB
4272 Merge from 'apple/trunk' branch on FSF servers.
4273
a6341d57
NP
4274 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4275
4276 Radar 4281748
4277 * c-common.h (objc_check_global_decl): New declaration.
4278 * stub-objc.c (objc_check_global_decl): New stub.
4279
f0036cca
JM
42802010-09-29 Joseph Myers <joseph@codesourcery.com>
4281
4282 * c.opt: Don't use VarExists.
4283
e3339d0f
JM
42842010-09-29 Joseph Myers <joseph@codesourcery.com>
4285
4286 * c-common.c (c_cpp_error): Update names of diagnostic_context
4287 members.
4288 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4289 cl_optimization members.
4290 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4291 sanitize_cpp_opts, finish_options): Update names of cpp_options
4292 members.
4293
1973201f
NP
42942010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4295
4296 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4297 (objc_is_reserved_word): Removed.
4298 * c-common.c: Updated comments.
4299 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4300 objc_is_reserved_word.
4301 * stub-objc.c (objc_is_reserved_word): Removed.
4302
f7e71da5
IS
43032010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4304
9faeb493 4305 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4306 include attributes.
4307 (objc_start_method_definition): Likewise.
4308 (objc_build_keyword_decl): Likewise.
4309 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4310 (objc_start_method_definition): Likewise.
4311 (objc_build_keyword_decl): Likewise.
4312
c165dca7
IS
43132010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4314
4315 * c-common.h (objc_start_class_interface): Adjust prototype.
4316 (objc_start_category_interface): Likewise.
4317 (objc_start_protocol): Likewise.
4318 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4319 (objc_start_class_interface): Likewise.
4320 (objc_start_category_interface): Likewise.
4321
7458026b
ILT
43222010-09-27 Ian Lance Taylor <iant@google.com>
4323
4324 * c-common.c (c_common_attribute_table): Add no_split_stack.
4325 (handle_no_split_stack_attribute): New static function.
4326
b581b85b
NP
43272010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4328
9faeb493 4329 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4330
4331 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4332
9faeb493 4333 Radar 4229905
b581b85b
NP
4334 * c-common.h (objc_have_common_type): New declaration.
4335 * stub-objc.c (objc_have_common_type): New stub.
4336
4337 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4338
4339 Radar 4154928
4340 * c-common.h (objc_common_type): New prototype.
9faeb493 4341 * stub-objc.c (objc_common_type): New stub.
b581b85b 4342
46a4da10
JH
43432010-09-24 Jan Hubicka <jh@suse.cz>
4344
4345 * c-common.c (handle_leaf_attribute): New function.
4346 (struct attribute_spec c_common_att): Add leaf.
4347
e200444e
JM
43482010-09-22 Joseph Myers <joseph@codesourcery.com>
4349
4350 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4351 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4352 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4353 -include-barrier, -include-directory, -include-directory=,
4354 -include-directory-after, -include-directory-after=,
4355 -include-prefix, -include-prefix=, -include-with-prefix,
4356 -include-with-prefix=, -include-with-prefix-after,
4357 -include-with-prefix-after=, -include-with-prefix-before,
4358 -include-with-prefix-before=, -no-integrated-cpp,
4359 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4360 -output=, -pedantic, -pedantic-errors, -preprocess,
4361 -print-missing-file-dependencies, -trace-includes, -traditional,
4362 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4363 -user-dependencies, -verbose, -write-dependencies,
4364 -write-user-dependencies, no-integrated-cpp, traditional): New.
4365
29a80ea6
NP
43662010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4367
4368 PR objc/23710
ac1fc2fc
NP
4369 * c-common.h (objc_start_method_definition): Return bool instead
4370 of void.
4371 * stub-objc.c (objc_start_method_definition): Return bool instead
4372 of void.
4373
43742010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4375
4376 PR objc/25965
4377 * c-common.h (objc_get_interface_ivars): New declaration.
4378 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4379
de621752
ILT
43802010-09-15 Ian Lance Taylor <iant@google.com>
4381
4382 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4383 messages. Remove period at end of warning message.
de621752 4384
ba885ec5
NS
43852010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4386
4387 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4388 (handle_alias_attribute): ... here.
4389 (handle_ifunc_attribute): New.
4390
c5ee1358
MM
43912010-09-06 Mark Mitchell <mark@codesourcery.com>
4392
4393 * c-common.h (do_warn_double_promotion): Declare.
4394 * c-common.c (do_warn_double_promotion): Define.
4395
0a0b3574
MM
43962010-09-05 Mark Mitchell <mark@codesourcery.com>
4397
4398 * c.opt (Wdouble-promotion): New.
4399
d1779886
JM
44002010-09-02 Joseph Myers <joseph@codesourcery.com>
4401
4402 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4403 fvtable-thunks, fxref): Mark no longer supported in help text.
4404
2d2bd949
JM
44052010-09-02 Joseph Myers <joseph@codesourcery.com>
4406
4407 * c.opt (Wimport, fall-virtual, falt-external-templates,
4408 fdefault-inline, fenum-int-equiv, fexternal-templates,
4409 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4410 fname-mangling-version-, fnew-abi, fnonnull-objects,
4411 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4412 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4413 applicable.
4414 (fhandle-exceptions): Mark with Alias and Warn.
4415 * c-opts.c (c_common_handle_option): Don't handle options marked
4416 as ignored.
4417
5de8299c
JM
44182010-09-02 Joseph Myers <joseph@codesourcery.com>
4419
4420 * c.opt (Wcomments, Werror-implicit-function-declaration,
4421 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4422 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4423 aliases.
4424 * c-common.c (option_codes): Use OPT_Wcomment instead of
4425 OPT_Wcomments.
4426 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4427 Don't handle options marked as aliases.
4428
0ceb0201
RG
44292010-08-25 Richard Guenther <rguenther@suse.de>
4430
4431 * c-common.c (c_common_get_alias_set): Remove special
4432 handling for pointers.
4433
ac47786e
NF
44342010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4435
4436 * c-common.c: Use FOR_EACH_VEC_ELT.
4437 * c-gimplify.c: Likewise.
4438 * c-pragma.c: Likewise.
4439
c878765b
JM
44402010-08-16 Joseph Myers <joseph@codesourcery.com>
4441
4442 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4443 RejectDriver.
4444 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4445 RejectDriver.
4446 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4447 instead of OPT_MDX and OPT_MMDX.
4448
603349bf
JM
44492010-08-16 Joseph Myers <joseph@codesourcery.com>
4450
4451 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4452
644fa7ac
JM
44532010-08-12 Joseph Myers <joseph@codesourcery.com>
4454
4455 * c.opt (MD, MMD): Change to MDX and MMDX.
4456 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4457
481e1176
JM
44582010-08-11 Joseph Myers <joseph@codesourcery.com>
4459
4460 * c-opts.c (c_common_handle_option): Call handle_generated_option
4461 instead of handle_option.
4462
ac8dc9f7
NF
44632010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4464
4465 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4466 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4467
4f8c876d
NF
44682010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4469
4470 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4471 (pending_redefine_extname): Change type to a VEC.
4472 (add_to_renaming_pragma_list): Update for new type of
4473 pending_redefine_extname.
ac8dc9f7 4474 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4475
3b0c690e
AC
44762010-08-04 Arnaud Charlet <charlet@adacore.com>
4477
4478 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4479 visited.
4480 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4481 decide whether a type has already been declared/seen.
4482 Do not go to the original type.
4483 (dump_nested_types): New parameter forward.
4484 Generate forward declaration if needed and mark type as visited.
4485 (print_ada_declaration): Call dump_nested_types if not already done.
4486 Mark types as visited.
4487
1890bccc
JM
44882010-08-03 Joseph Myers <joseph@codesourcery.com>
4489
4490 * c.opt (-print-pch-checksum): Remove option.
4491 * c-opts.c (c_common_handle_option): Don't handle
4492 OPT_print_pch_checksum.
4493
5f20c657
JM
44942010-07-27 Joseph Myers <joseph@codesourcery.com>
4495
4496 * c-common.h (c_common_handle_option): Update prototype and return
4497 value type.
4498 * c-opts.c (c_common_handle_option): Update prototype and return
4499 value type. Update calls to handle_option and
4500 enable_warning_as_error.
4501
f551f80c
JJ
45022010-07-27 Jakub Jelinek <jakub@redhat.com>
4503
4504 PR c/45079
4505 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4506
61ff2bdc
JM
45072010-07-27 Joseph Myers <joseph@codesourcery.com>
4508
4509 * c-common.h (c_common_missing_argument): Remove.
4510 * c-opts.c (c_common_missing_argument): Remove.
4511 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4512 idirafter, imacros, include, isysroot, isystem, iquote): Add
4513 MissingArgError.
4514 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4515
7a9bf9a4
JM
45162010-07-27 Joseph Myers <joseph@codesourcery.com>
4517
4518 * c-common.h (c_common_option_lang_mask,
4519 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4520 New.
4521 (c_common_init_options): Update prototype.
4522 * c-opts.c (c_common_option_lang_mask): New.
4523 (c_common_initialize_diagnostics): Split out of
4524 c_common_init_options.
4525 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4526 New.
4527 (c_common_init_options): Update prototype. Use decoded options in
4528 search for -lang-asm.
4529
910ad8de
NF
45302010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4531
4532 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4533 * c-format.c: Likewise.
4534
718f9c0f
MLI
45352010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4536
4537 * c-common.h: Include diagnostic-core.h. Error if already
4538 included.
4539 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4540
4d451982
MLI
45412010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4542
adfac8df 4543 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
4544 Do not include expr.h
4545 (vector_mode_valid_p): Move here.
4546
119fe915
SB
45472010-06-21 DJ Delorie <dj@redhat.com>
4548
4549 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4550 allow these pragmas anywhere.
4551
45522010-06-14 Jakub Jelinek <jakub@redhat.com>
4553
4554 PR bootstrap/44509
4555 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4556 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4557 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4558 ggc_strdup instead of xstrdup.
4559
45602010-06-10 Jakub Jelinek <jakub@redhat.com>
4561
4562 * c-cppbuiltin.c: Include cpp-id-data.h.
4563 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4564 (lazy_hex_fp_value): New function.
4565 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4566
6662d794
MLI
45672010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4568
4569 * c-gimplify.c: Do not include tree-flow.h
4570
38f8b050
JR
45712010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4572
4573 PR other/44034
4574 * c-common.c: Rename targetm member:
4575 targetm.enum_va_list -> targetm.enum_va_list_p
4576
9589f23e
AS
45772010-06-28 Anatoly Sokolov <aesok@post.ru>
4578
4579 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4580
3b06d379
SB
45812010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4582
4583 * c-cppbuiltin.c: Do not include except.h.
4584
d166d4c3
AK
45852010-06-24 Andi Kleen <ak@linux.intel.com>
4586
9faeb493
UB
4587 * c-common.c (warn_for_omitted_condop): New.
4588 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4589
70cb8be6
JM
45902010-06-21 Joseph Myers <joseph@codesourcery.com>
4591
4592 * c.opt (lang-objc): Remove.
4593 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4594
a4c97feb
JR
45952010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4596
4597 * c-opts.c: Include "tm_p.h".
4598
6e2f1956
JM
45992010-06-20 Joseph Myers <joseph@codesourcery.com>
4600
4601 * c-common.c (parse_optimize_options): Update call to
4602 decode_options.
4603
bc87224e
NF
46042010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4605
4606 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4607 new type of types_used_by_cur_var_decl.
4608
b49cf425
JR
46092010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4610
4611 PR bootstrap/44512
4612 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4613 for C++ standard compliance.
4614
59f9c2ed
JM
46152010-06-16 Jason Merrill <jason@redhat.com>
4616
4617 * c.opt: Add -Wnoexcept.
4618
33766b66
RG
46192010-06-16 Richard Guenther <rguenther@suse.de>
4620
4621 PR c/44555
4622 * c-common.c (c_common_truthvalue_conversion): Remove
4623 premature and wrong optimization concering ADDR_EXPRs.
4624
eff7e30c
AC
46252010-06-15 Arnaud Charlet <charlet@adacore.com>
4626
4627 * c-ada-spec.c (dump_sloc): Remove column info.
4628 (is_simple_enum): New function.
4629 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4630 enum types when relevant.
4631
6312e84d
MLI
46322010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4633
9faeb493 4634 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4635 location.
4636
1cb42611
JM
46372010-06-10 Joseph Myers <joseph@codesourcery.com>
4638
4639 * c-opts.c (c_common_handle_option): Don't handle
4640 OPT_fshow_column.
4641
a9429e29
LB
46422010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4643
4644 * c-pragma.c (push_alignment): Use typed GC allocation.
4645 (handle_pragma_push_options): Likewise.
4646
4647 * c-common.c (parse_optimize_options): Likewise.
4648
4649 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4650 option.
4651
5498f011
JM
46522010-06-07 Joseph Myers <joseph@codesourcery.com>
4653
4654 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4655 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4656 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4657 flag_signed_bitfields, warn_strict_null_sentinel,
4658 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4659 flag_gen_declaration, flag_no_gnu_keywords,
4660 flag_implement_inlines, flag_implicit_templates,
4661 flag_implicit_inline_templates, flag_optional_diags,
4662 flag_elide_constructors, flag_default_inline, flag_rtti,
4663 flag_conserve_space, flag_access_control, flag_check_new,
4664 flag_new_for_scope, flag_weak, flag_working_directory,
4665 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4666 flag_enforce_eh_specs, flag_threadsafe_statics,
4667 flag_pretty_templates): Remove.
4668 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4669 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4670 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4671 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4672 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4673 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4674 flag_no_gnu_keywords, flag_implement_inlines,
4675 flag_implicit_templates, flag_implicit_inline_templates,
4676 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4677 flag_rtti, flag_conserve_space, flag_access_control,
4678 flag_check_new, flag_new_for_scope, flag_weak,
4679 flag_working_directory, flag_use_cxa_atexit,
4680 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4681 flag_threadsafe_statics, flag_pretty_templates,
4682 warn_strict_null_sentinel): Remove.
4683 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4684 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4685 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4686 fimplicit-inline-templates, fimplicit-templates,
4687 flax-vector-conversions, fms-extensions, fnil-receivers,
4688 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4689 frtti, fshort-double, fshort-enums, fshort-wchar,
4690 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4691 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4692 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4693 gen-decls, undef): Use Var.
4694 (fdefault-inline, foptional-diags): Document as doing nothing.
4695 * c-opts.c (c_common_handle_option): Remove cases for options now
4696 using Var. Mark ignored options as such.
4697
39dabefd
SB
46982010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4699
9faeb493 4700 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4701 * c-common.def: Likewise.
4702 * c-common.h: Likewise.
4703 * c-cppbuiltin.c: Likewise.
4704 * c-dump.c: Likewise.
4705 * c-format.c: Likewise.
4706 * c-format.h : Likewise.
4707 * c-gimplify.c: Likewise.
4708 * c-lex.c: Likewise.
4709 * c-omp.c: Likewise.
4710 * c.opt: Likewise.
4711 * c-opts.c: Likewise.
4712 * c-pch.c: Likewise.
4713 * c-ppoutput.c: Likewise.
4714 * c-pragma.c: Likewise.
4715 * c-pragma.h: Likewise.
4716 * c-pretty-print.c: Likewise.
4717 * c-pretty-print.h: Likewise.
4718 * c-semantics.c: Likewise.
4719 * stub-objc.c: Likewise.
4720
4721 * c-common.c: Include gt-c-family-c-common.h.
4722 * c-pragma.c: Include gt-c-family-c-pragma.h.
4723\f
5624e564 4724Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
4725
4726Copying and distribution of this file, with or without modification,
4727are permitted in any medium without royalty provided the copyright
4728notice and this notice are preserved.