]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR fortran/61933 (Inquire on internal units)
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
de1b5c17
MU
12015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
2
3 * c.opt: New option -Warray-bounds=.
4
adfac8df
JJ
52015-01-09 Michael Collison <michael.collison@linaro.org>
6
7 * array-notation-common.c: Include hash-set.h, machmode.h,
8 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
9 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
10 * c-ada-spec.c: Ditto.
11 * c-cilkplus.c: Ditto.
12 * c-common.c: Include input.h due to flattening of tree.h.
13 Define macro GCC_C_COMMON_C.
14 * c-common.h: Flatten tree.h header files into c-common.h.
15 Remove include of tree-core.h.
16 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
17 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
18 fold-const.h, wide-int.h, and inchash.h due to
19 flattening of tree.h.
20 * c-dump.c: Ditto.
21 * c-format.c: Flatten tree.h header files into c-common.h.
22 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
23 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
24 fold-const.h, wide-int.h, and inchash.h due to
25 flattening of tree.h.
26 * c-dump.c: Include hash-set.h, machmode.h,
27 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
28 fold-const.h, wide-int.h, and inchash.h due to
29 flattening of tree.h.
30 * c-format.c: Include hash-set.h, machmode.h,
31 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
32 fold-const.h, wide-int.h, inchash.h and real.h due to
33 flattening of tree.h.
34 * c-gimplify.c: Include hash-set.h, machmode.h,
35 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
36 fold-const.h, wide-int.h, and inchash.h due to
37 flattening of tree.h.
38 * cilk.c: Ditto.
39 * c-lex.c: Ditto.
40 * c-omp.c: Ditto.
41 * c-opts.c: Ditto.
42 * c-pch.c: Ditto.
43 * c-ppoutput.c: Ditto.
44 * c-pragma.c: Ditto.
45 * c-pretty-print.c: Ditto.
46 * c-semantics.c: Ditto.
47 * c-ubsan.c: Ditto.
48 * stub-objc.c: Ditto.
49
f5481fc4
JM
502015-01-08 Jason Merrill <jason@redhat.com>
51
52 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
53 do_ubsan_in_current_function.
54 (ubsan_maybe_instrument_reference_or_call): Likewise.
55 * c-ubsan.h: Declare it.
56
de35aa66
MS
572015-01-08 Mike Stump <mikestump@comcast.net>
58
59 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
60
4a9a42ab
MP
612015-01-07 Marek Polacek <polacek@redhat.com>
62
63 PR c/64440
64 * c-common.c (c_fully_fold_internal): Warn for division and modulo
65 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
66
2f42e5de
TS
672015-01-05 Trevor Saunders <tsaunders@mozilla.com>
68
69 PR c++/31397
70 * c.opt (Wsuggest-override): New option.
71
5624e564
JJ
722015-01-05 Jakub Jelinek <jakub@redhat.com>
73
74 Update copyright years.
75
5bd012f8
MP
762015-01-05 Marek Polacek <polacek@redhat.com>
77
78 PR c/64423
79 * c-common.c (warn_array_subscript_with_type_char): Add location_t
80 parameter. Use it.
81 * c-common.h (warn_array_subscript_with_type_char): Update
82 declaration.
83
a7fa8d18
ESR
842014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
85
86 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
87 Control macro with flag_sized_deallocation.
88
768952be
MU
892014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
90
91 * c.opt (Wdiscarded-array-qualifiers): New option.
92
1f8d3e84
JJ
932014-12-19 Jakub Jelinek <jakub@redhat.com>
94
95 PR preprocessor/63831
96 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
97 and __has_cpp_attribute here.
98 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
99 c_common_has_attribute.
100 * c-common.h (c_common_has_attribute): New prototype.
101 * c-lex.c (init_c_lex): Set cb->has_attribute to
102 c_common_has_attribute instead of cb_has_attribute.
103 (get_token_no_padding): New function.
104 (cb_has_attribute): Renamed to ...
105 (c_common_has_attribute): ... this. No longer static. Use
106 get_token_no_padding, require ()s, don't build TREE_LIST
107 unnecessarily, fix up formatting, adjust diagnostics, call
108 init_attributes.
109
20b06add
JM
1102014-12-15 Jason Merrill <jason@redhat.com>
111
112 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
113 (-Wsized-deallocation): New.
114 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
115 to on in C++14 and up.
116
94a073b2
JM
1172014-12-11 Jason Merrill <jason@redhat.com>
118
acaa5911
JM
119 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
120
94a073b2
JM
121 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
122 we aren't complaining about VLAs.
123
7fb66c15
MP
1242014-12-06 Marek Polacek <polacek@redhat.com>
125
126 PR tree-optimization/64183
127 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
128 shift-expression if it is integer_type_node. Use types_compatible_p.
129
b731b390
JJ
1302014-11-29 Jakub Jelinek <jakub@redhat.com>
131
132 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
133 last argument from create_tmp_var_raw and create_tmp_var calls.
134 * cilk.c (gimplify_cilk_spawn): Likewise.
135 * c-omp.c (c_finish_omp_atomic): Likewise.
136
6a4da643
MP
1372014-11-28 Marek Polacek <polacek@redhat.com>
138
139 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
140 instead of unsigned_type_node.
141
541e35a6
MP
1422014-11-28 Marek Polacek <polacek@redhat.com>
143
144 PR c/63862
145 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
146 to op1_utype.
147 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
148 expression to unsigned_type_node.
149
dcc97066
MW
1502014-11-20 Mark Wielaard <mjw@redhat.com>
151
152 PR debug/38757
153 * c-opts.c (set_std_c89): Set lang_hooks.name.
154 (set_std_c99): Likewise.
155 (set_std_c11): Likewise.
156 (set_std_cxx98): Likewise.
157 (set_std_cxx11): Likewise.
158 (set_std_cxx14): Likewise.
159 (set_std_cxx1z): Likewise.
160
aa7da51a
JJ
1612014-11-21 Jakub Jelinek <jakub@redhat.com>
162
163 PR target/63764
164 * c-common.h (convert_vector_to_pointer_for_subscript): Change
165 return type to bool.
009a3480 166 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
167 (convert_vector_to_pointer_for_subscript): Change return type to
168 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
169 and copy it into a TARGET_EXPR and use that instead of *vecp
170 directly.
171
538dd0b7
DM
1722014-11-19 David Malcolm <dmalcolm@redhat.com>
173
174 Merger of git branch "gimple-classes-v2-option-3".
175 * ChangeLog.gimple-classes: New.
176 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
177 from being just a vec<gimple> to a vec<gbind *>.
178
c39a5e99
JJ
1792014-11-18 Jakub Jelinek <jakub@redhat.com>
180
181 PR sanitizer/63813
182 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
183 argument to ptype, set type to TREE_TYPE (ptype). Don't call
184 get_pointer_alignment for non-pointers. Use ptype, or if it is
185 reference type, corresponding pointer type, as type of kind
186 argument.
187 (ubsan_maybe_instrument_reference,
188 ubsan_maybe_instrument_member_call): Adjust callers.
189
8537a4a9
MP
1902014-11-15 Marek Polacek <polacek@redhat.com>
191
192 PR middle-end/63884
193 * array-notation-common.c (is_sec_implicit_index_fn): Return false
194 for NULL fndecl.
195 (extract_array_notation_exprs): Return for NULL node.
196
2079956a
JM
1972014-11-12 Joseph Myers <joseph@codesourcery.com>
198
199 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
200 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
201
1304953e
JJ
2022014-11-12 Jakub Jelinek <jakub@redhat.com>
203
204 PR c/59708
205 * c-common.c (check_builtin_function_arguments): Handle
206 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
207
e5e44252
AK
2082014-11-10 Andi Kleen <ak@linux.intel.com>
209
210 PR c/60804
211 * c-common.h (check_no_cilk): Declare.
212 * cilk.c (get_error_location): New function.
213 (check_no_cilk): Dito.
214
e64b984d
AK
2152014-11-10 Andi Kleen <ak@linux.intel.com>
216
217 * cilk.c (recognize_spawn): Use expression location
218 for error message.
219
13c21655
PC
2202014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
221
222 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
223
42fd12b1
ESR
2242014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
225
226 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
227 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
228 (__cpp_range_based_for, __cpp_initializer_lists,
229 __cpp_delegating_constructors, __cpp_nsdmi,
230 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
231 for C++11; (__cpp_attribute_deprecated): Remove in favor of
232 __has_cpp_attribute.
233 * c-lex.c (cb_has_attribute): New callback CPP function;
234 (init_c_lex): Set has_attribute callback.
235
6f450181
RB
2362014-11-04 Richard Biener <rguenther@suse.de>
237
238 * c-common.c (shorten_compare): Do not shorten mixed
239 DFP and non-DFP compares.
240
26f0e1d6
ESR
2412014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
242
243 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
244 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
245 Commentary and rearrangement of tests.
246 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
247 Commentary and rearrangement of tests.
248 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
249 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
250
ef4bddc2
RS
2512014-10-29 Richard Sandiford <richard.sandiford@arm.com>
252
253 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
254 enum from machine_mode.
255
c582198b
AM
2562014-10-28 Andrew MacLeod <amacleod@redhat.com>
257
adfac8df
JJ
258 * c-common.c: Adjust include files.
259 * c-gimplify.c: Ditto.
260 * cilk.c: Ditto.
261 * c-pragma.c: Ditto.
262 * c-ubsan.c: Ditto.
c582198b 263
60393bbc
AM
2642014-10-27 Andrew MacLeod <amacleod@redhat.com>
265
266 * c-gimplify.c: Adjust include files.
267
d723bb7c
MLI
2682014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
269
270 PR c++/53061
271 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
272 c_common_initialize_diagnostics.
273 * c-common.h: Likewise.
274
90f3520e
MP
2752014-10-24 Marek Polacek <polacek@redhat.com>
276
277 PR c/56980
278 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
279 print "struct"/"union"/"enum" for typedefed names.
280
59d7607a
MP
2812014-10-23 Marek Polacek <polacek@redhat.com>
282
283 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
284 in unsigned type.
285
d95a2703
JJ
2862014-10-22 Jakub Jelinek <jakub@redhat.com>
287 Yury Gribov <y.gribov@samsung.com>
288
289 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
290 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
291 instead of flag_sanitize_recover as bool flag.
292
8e6ef852
KY
2932014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
294
295 * cilk.c: Revert previous change.
296
948cf550
IZ
2972014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
298
299 PR c/63307
300 * cilk.c: Include vec.h.
301 (struct cilk_decls): New structure.
302 (wrapper_parm_cb): Split this function to...
303 (fill_decls_vec): ...this...
304 (create_parm_list): ...and this.
305 (compare_decls): New function.
306 (for_local_cb): Remove.
307 (wrapper_local_cb): Ditto.
308 (build_wrapper_type): For now first traverse and fill vector of
309 declarations then sort it and then deal with sorted vector.
310 (cilk_outline): Ditto.
311 (declare_one_free_variable): Ditto.
312
92574c7c
MP
3132014-10-17 Marek Polacek <polacek@redhat.com>
314
315 * c-opts.c (c_common_post_options): Set warn_implicit_int.
316 * c.opt (Wimplicit-int): Initialize to -1.
317
83685514
AM
3182014-10-16 Andrew MacLeod <amacleod@redhat.com>
319
320 * c-pragma.c: Adjust include files.
321 * c-semantics.c: Likewise.
322
5b8300ea
DD
3232014-10-16 DJ Delorie <dj@redhat.com>
324
325 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
326 multiples of bytes.
327
5f83e90b
JM
3282014-10-14 Jason Merrill <jason@redhat.com>
329
330 PR c++/63455
331 * c-common.h (CPP_PREPARSED_EXPR): New.
332 (N_CP_TTYPES): Adjust.
333
d73326ca
MP
3342014-10-15 Marek Polacek <polacek@redhat.com>
335
336 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
337
78a7c317
DD
3382014-10-14 DJ Delorie <dj@redhat.com>
339
340 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
341 types, not just __int128.
342 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
343 types, not just __int128.
344 (cpp_atomic_builtins): Round pointer sizes up.
345 (type_suffix): Use type precision, not specific types.
346 * c-common.c (c_common_reswords): Remove __int128 special case.
347 (c_common_type_for_size): Check for all __intN types, not just
348 __int128.
349 (c_common_type_for_mode): Likewise.
350 (c_common_signed_or_unsigned_type): Likewise.
351 (c_build_bitfield_integer_type): Likewise.
352 (c_common_nodes_and_builtins): Likewise.
353 (keyword_begins_type_specifier): Likewise.
354 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
355 __intN variants.
356
2a22f99c
TS
3572014-10-12 Trevor Saunders <tsaunders@mozilla.com>
358
359 * c-common.c: Use hash_table instead of hashtab.
360
2a8ef767
ESR
3612014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
362
adfac8df 363 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
364 C++11 section.
365
3c9aabbd
MG
3662014-10-03 Marc Glisse <marc.glisse@inria.fr>
367
368 PR c++/54427
369 PR c++/57198
370 PR c++/58845
371 * c-common.c (warn_logical_operator): Punt for vectors.
372
a15f7cb8
ESR
3732014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
374
375 Implement SD-6: SG10 Feature Test Recommendations
376 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
377 macros and the __has_header macro.
378
8d0cf15e
JM
3792014-09-30 Jason Merrill <jason@redhat.com>
380
dd5d5481
JM
381 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
382 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
383 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
384
b752325e
JM
385 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
386 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
387
8d0cf15e
JM
388 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
389 * c-common.c (c_common_reswords): Remove __is_convertible_to.
390
083e891e
MP
3912014-09-24 Marek Polacek <polacek@redhat.com>
392
393 PR c/61405
394 PR c/53874
395 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
396
7861b648
AK
3972014-09-23 Andi Kleen <ak@linux.intel.com>
398
399 * c-common.c (handle_no_reorder_attribute): New function.
400 (c_common_attribute_table): Add no_reorder attribute.
401
9a79452d
JM
4022014-09-22 Joseph Myers <joseph@codesourcery.com>
403
404 * c-cppbuiltin.c (c_cpp_builtins): Define
405 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
406 modes.
407
dd69f047
JM
4082014-09-18 Joseph Myers <joseph@codesourcery.com>
409
410 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
411 for supported floating-point modes.
412
737a4826
MLI
4132014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
414
415 * c.opt (Wpsabi): Use LangEnabledBy.
416 * c-opts.c (c_common_handle_option): Do not handle here.
417
8cc4b7a2
JM
4182014-09-12 Joseph Myers <joseph@codesourcery.com>
419
420 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
421 macros for floating-point modes.
422
179b5a55
MG
4232014-09-11 Marc Glisse <marc.glisse@inria.fr>
424
425 PR target/58757
426 * c-cppbuiltin.c (builtin_define_float_constants): Correct
427 __*_DENORM_MIN__ without denormals.
428
570a11fe
JJ
4292014-09-10 Jakub Jelinek <jakub@redhat.com>
430
431 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
432 ubsan_instrument_vla, ubsan_instrument_return): Adjust
433 ubsan_create_data callers.
434 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
435 index is constant or BIT_AND_EXPR with constant mask and is
436 small enough for the bound.
437 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
438 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
439
b559c810
MLI
4402014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
441
442 * c.opt: Add CppReason to various flags.
443 (Wdate-time): Re-sort.
444 * c-common.c: Include c-common.h earlier.
445 (struct reason_option_codes_t): Delete.
446 (c_option_controlling_cpp_error): Prefix global type and struct
447 with cpp_.
448
1ef33fd4
MLI
4492014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
450
451 * c.opt (Wnormalized): New.
452 (Wnormalized=): Use Enum and Reject Negative.
453 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
454
66bb34c0
JM
4552014-09-08 Joseph Myers <joseph@codesourcery.com>
456
457 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
458 digits of floating-point modes if -fbuilding-libgcc.
459
53d68b9f
JM
4602014-09-05 Joseph Myers <joseph@codesourcery.com>
461
462 * c-cppbuiltin.c (c_cpp_builtins): Also define
463 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
464 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
465 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
466 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
467 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
468 __LIBGCC_STACK_GROWS_DOWNWARD__,
469 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
470 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
471 __LIBGCC_DWARF_FRAME_REGISTERS__,
472 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
473 __LIBGCC_STACK_POINTER_REGNUM__ and
474 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
475 (builtin_define_with_value): Handle backslash-escaping in string
476 macro values.
477
f65586dc
RB
4782014-09-05 Richard Biener <rguenther@suse.de>
479
480 PR middle-end/63148
481 * c-format.c (check_format_arg): Properly handle
482 effectively signed POINTER_PLUS_EXPR offset.
483
2b71f4a4
MLI
4842014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
485
486 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
487 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
488 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
489 and Init.
490 * c-opts.c (c_common_handle_option): Do not handle here.
491 (sanitize_cpp_opts): Likewise.
492 * c-common.c (struct reason_option_codes_t): Handle
493 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
494
d2e4feca
MP
4952014-09-03 Marek Polacek <polacek@redhat.com>
496
497 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
498
9a771876
JJ
4992014-09-02 Jakub Jelinek <jakub@redhat.com>
500 Balaji V. Iyer <balaji.v.iyer@intel.com>
501 Igor Zamyatin <igor.zamyatin@intel.com>
502
503 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
504 * c-common.c (c_common_reswords): Added _Cilk_for.
505 * c-common.h (enum rid): Added RID_CILK_FOR.
506 (cilk_for_number_of_iterations): Add declaration.
507 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
508 CILK_FOR.
509 * c-pragma.c (init_pragma): Register "grainsize" pragma.
510 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
511
81b5d104
MLI
5122014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
513
514 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
515 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
516 Wundef): Use CPP, Var and Init.
517 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
518
b753b37b
MLI
5192014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
520
521 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
522 * c-opts.c (c_common_handle_option): Do not handle here.
523
028aee17
JM
5242014-08-25 Jason Merrill <jason@redhat.com>
525
526 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
527 -std=c++14 and -std=gnu++14, rather than the reverse.
528 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
529 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
530 * c-common.h (cxx_dialect): Remove cxx1y.
531
e4276ba5
ESR
5322014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
533
534 * c-common.h (enum cxx_dialect): Add cxx14.
535 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
536 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
537 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
538
a545cacd
JM
5392014-08-22 Jason Merrill <jason@redhat.com>
540
541 * c.opt (std=gnu++17): Fix alias.
542
59ea0364
MP
5432014-08-22 Marek Polacek <polacek@redhat.com>
544
545 PR c++/62199
546 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
547 check for vector types. Drop LHS argument.
548 * c-common.h (warn_logical_not_parentheses): Adjust.
549
596e808c
MLI
5502014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
551
552 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
553 (Wmultichar): Likewise.
554 (Wdate-time): Use C-family languages instead of Common. Use CPP
555 and Var.
556 * c-opts.c (c_common_handle_option): Do not handle the above
557 options here.
558 (sanitize_cpp_opts): Likewise.
559
18767f65
MLI
5602014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
561
562 PR fortran/44054
563 * c-opts.c: Include tree-diagnostics.h.
564 (c_diagnostic_finalizer): New.
565 (c_common_initialize_diagnostics): Use it.
566
b4413594
MLI
5672014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
568
569 PR preprocessor/51303
570 * c-common.c (struct reason_option_codes_t option_codes):
571 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
572
43f9a13c
MLI
5732014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
574
575 PR c/60975
576 PR c/53063
577 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
578 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
579 (c_common_post_options): Call init_global_opts_from_cpp.
580 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
581
04159acf
MP
5822014-08-19 Marek Polacek <polacek@redhat.com>
583
584 PR c++/62153
585 * c-common.c (maybe_warn_bool_compare): New function.
586 * c-common.h (maybe_warn_bool_compare): Declare.
587 * c.opt (Wbool-compare): New option.
588
35aff4fb
MP
5892014-08-19 Marek Polacek <polacek@redhat.com>
590
591 * c.opt (Wc99-c11-compat): New option.
592
177cce46
MP
5932014-08-19 Marek Polacek <polacek@redhat.com>
594
595 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
596 to warn_c90_c99_compat.
597 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
598 to -1.
599
6ae9194f
MLI
6002014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
601 Steven Bosscher <steven@gcc.gnu.org>
602
603 PR c/52952
604 * c-format.c: Add extra_arg_loc and format_string_loc to struct
605 format_check_results.
606 (check_function_format): Use true and add comment for boolean
607 argument.
608 (finish_dollar_format_checking): Use explicit location when warning.
609 (check_format_info): Likewise.
610 (check_format_arg): Set extra_arg_loc and format_string_loc.
611 (check_format_info_main): Use explicit location when warning.
612 (check_format_types): Pass explicit location.
613 (format_type_warning): Likewise.
614
8e54f6d3
MLI
6152014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
616
617 PR fortran/44054
618 * c-format.c: Handle Fortran flags.
619
cd4e76fc
IZ
6202014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
621
622 PR other/61962
623 * array-notation-common.c (find_rank): Added handling for other
624 types of references.
625
f3bede71
MP
6262014-08-10 Marek Polacek <polacek@redhat.com>
627
628 PR c/51849
629 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
630 * c.opt (Wc90-c99-compat): Add option.
631
9f25a338
TS
6322014-08-07 Trevor Saunders <tsaunders@mozilla.com>
633
634 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
635
62e4eb35
MP
6362014-08-03 Marek Polacek <polacek@redhat.com>
637
638 * c-common.c (check_case_value): Add location_t parameter. Use it.
639 (c_add_case_label): Pass loc to check_case_value.
640
b787e7a2
TS
6412014-08-02 Trevor Saunders <tsaunders@mozilla.com>
642
643 * cilk.c: Use hash_map instead of pointer_map.
644
6e2830c3
TS
6452014-08-02 Trevor Saunders <tsaunders@mozilla.com>
646
647 * c-gimplify.c: Use hash_set instead of pointer_set.
648
a7ee52fb
IZ
6492014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
650
651 PR middle-end/61455
652 * array-notation-common.c (extract_array_notation_exprs): Handling
653 of DECL_EXPR added.
654
944fa280
JJ
6552014-08-01 Jakub Jelinek <jakub@redhat.com>
656
657 * c-common.h (min_align_of_type): Removed prototype.
658 * c-common.c (min_align_of_type): Removed.
659 * c-ubsan.h (ubsan_maybe_instrument_reference,
660 ubsan_maybe_instrument_member_call): New prototypes.
661 * c-ubsan.c: Include stor-layout.h and builtins.h.
662 (ubsan_maybe_instrument_reference_or_call,
663 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
664 functions.
665
b4dfdc11
MG
6662014-07-31 Marc Glisse <marc.glisse@inria.fr>
667
668 PR c++/60517
669 * c.opt (-Wreturn-local-addr): Move to common.opt.
670
a41844e5
JM
6712014-07-30 Jason Merrill <jason@redhat.com>
672
673 PR c++/61659
674 PR c++/61687
675 Revert:
676 * c.opt (-fuse-all-virtuals): New.
677
976d5a22
TT
6782014-07-30 Tom Tromey <tromey@redhat.com>
679
680 PR c/59855
681 * c.opt (Wdesignated-init): New option.
682 * c-common.c (c_common_attribute_table): Add "designated_init".
683 (handle_designated_init): New function.
684
cdc94aca
MP
6852014-07-24 Marek Polacek <polacek@redhat.com>
686
687 PR c/57653
688 * c-opts.c (c_finish_options): If -imacros is in effect, return.
689
f41373b6
DS
6902014-07-16 Dodji Seketeli <dodji@redhat.com>
691
692 PR preprocessor/60723 - missing system-ness marks for macro tokens
693 * c-ppoutput.c (struct print::prev_was_system_token): New data
694 member.
695 (init_pp_output): Initialize it.
696 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
697 (do_line_change): Return a flag saying if a line marker was
698 emitted or not.
699 (scan_translation_unit): Detect if the system-ness of the token we
700 are about to emit is different from the one of the previously
701 emitted token. If so, emit a line marker. Avoid emitting useless
702 adjacent line markers. Avoid emitting line markers for tokens
703 originating from the expansion of built-in macros.
704 (scan_translation_unit_directives_only): Adjust.
705
4d661eaa
MP
7062014-07-15 Marek Polacek <polacek@redhat.com>
707
708 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
709 TYPE_MAX_VALUE is NULL.
710
b108f48f
JJ
7112014-07-14 Jakub Jelinek <jakub@redhat.com>
712
713 PR middle-end/61294
714 * c.opt (Wmemset-transposed-args): New warning.
715
c0221884
JM
7162014-07-10 Jason Merrill <jason@redhat.com>
717
718 PR c++/61659
719 PR c++/61687
720 * c.opt (-fuse-all-virtuals): New.
721
63dfbb95
RB
7222014-07-09 Richard Biener <rguenther@suse.de>
723
724 PR c-family/61741
725 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
726 using unsigned arithmetic if overflow does not wrap instead of
727 if overflow is undefined.
728
773ec47f
MP
7292014-07-06 Marek Polacek <polacek@redhat.com>
730
731 PR c/6940
732 * c.opt (Wsizeof-array-argument): New option.
733
00a7ba58
JJ
7342014-07-03 Jakub Jelinek <jakub@redhat.com>
735
736 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
737 comments->count <= 1, as comments->entries might be NULL.
738
52ec0ea3
MP
7392014-07-01 Marek Polacek <polacek@redhat.com>
740
741 * c.opt (Wint-conversion): New option.
742
d5c3d343
MP
7432014-07-01 Marek Polacek <polacek@redhat.com>
744
745 PR c/58286
746 * c.opt (Wincompatible-pointer-types): New option.
747
6e7ceb17
PC
7482014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
749
750 PR c++/51400
751 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
752 Do not discard TYPE_QUALS of type.
753
da73100b
JM
7542014-06-26 Jason Merrill <jason@redhat.com>
755
756 * c-common.h (enum cxx_dialect): Add cxx1z.
757 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
758 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
759
08eedf75
TJ
7602014-06-26 Teresa Johnson <tejohnson@google.com>
761
762 * c-common.h (get_dump_info): Declare.
763 * c-gimplify.c (c_genericize): Use saved dump files.
764 * c-opts.c (c_common_parse_file): Begin and end dumps
765 once around parsing invocation.
766 (get_dump_info): New function.
767
7b56b2f8
MP
7682014-06-23 Marek Polacek <polacek@redhat.com>
769 Andrew MacLeod <amacleod@redhat.com>
770
771 PR c/61553
772 * c-common.c (get_atomic_generic_size): Don't segfault if the
773 type doesn't have a size.
774
0e37a2f3
MP
7752014-06-20 Marek Polacek <polacek@redhat.com>
776
777 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
778 (ubsan_walk_array_refs_r): New function.
779 (c_genericize): Instrument array bounds.
780 * c-ubsan.c: Include "internal-fn.h".
781 (ubsan_instrument_division): Mark instrumented arrays as having
782 side effects. Adjust ubsan_type_descriptor call.
783 (ubsan_instrument_shift): Likewise.
784 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
785 (ubsan_instrument_bounds): New function.
786 (ubsan_array_ref_instrumented_p): New function.
787 (ubsan_maybe_instrument_array_ref): New function.
788 * c-ubsan.h (ubsan_instrument_bounds): Declare.
789 (ubsan_array_ref_instrumented_p): Declare.
790 (ubsan_maybe_instrument_array_ref): Declare.
791
7922014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
793
794 PR lto/61123
795 * c.opt (fshort-enums): Add to LTO.
796 * c.opt (fshort-wchar): Likewise.
797
5c3d09f7
MP
7982014-06-16 Marek Polacek <polacek@redhat.com>
799
800 PR c/60439
801 * c.opt (Wswitch-bool): Add Var.
802
9cf32741
JJ
8032014-06-12 Jakub Jelinek <jakub@redhat.com>
804
805 PR middle-end/61486
806 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
807 #pragma omp target teams or
808 #pragma omp {,target }teams distribute simd.
809
62984918
JM
8102014-06-12 Jason Merrill <jason@redhat.com>
811
812 * c.opt (Wabi=, fabi-compat-version): New.
813 * c-opts.c (c_common_handle_option): Handle -Wabi=.
814 (c_common_post_options): Handle flag_abi_compat_version default.
815 Disallow -fabi-compat-version=1.
816 * c-common.h (abi_version_crosses): New.
817
f961457f
JH
8182014-06-11 Jan Hubicka <hubicka@ucw.cz>
819
adfac8df 820 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
821 section names that are no longer trees.
822
92d28cbb
JJ
8232014-06-10 Jakub Jelinek <jakub@redhat.com>
824
825 PR fortran/60928
826 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
827 (omp_pragmas): ... back here.
828
742938c9
MP
8292014-06-05 Marek Polacek <polacek@redhat.com>
830
831 PR c/49706
832 * c-common.c (warn_logical_not_parentheses): New function.
833 * c-common.h (warn_logical_not_parentheses): Declare.
834 * c.opt (Wlogical-not-parentheses): New option.
835
9d548dfb
MP
8362014-06-04 Marek Polacek <polacek@redhat.com>
837
838 PR c/30020
839 * c-common.c (check_case_bounds): Add location parameter.
840 Use it.
841 (c_add_case_label): Pass loc to check_case_bounds.
842
fedfecef
MP
8432014-06-03 Marek Polacek <polacek@redhat.com>
844
845 PR c/60439
846 * c.opt (Wswitch-bool): New option.
847
f6a7cffc
TS
8482014-05-22 Thomas Schwinge <thomas@codesourcery.com>
849
040d18b6
TS
850 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
851 Remove prototypes.
852 (record_types_used_by_current_var_decl): Move prototype to where
853 it belongs.
854
f6a7cffc
TS
855 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
856 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
857 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
858
632f2871
RS
8592014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
860
861 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
862 * c-common.c (c_common_nodes_and_builtins): Don't initialize
863 void_zero_node.
864 * c-pretty-print.c (pp_c_void_constant): New function.
865 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
866 (c_pretty_printer::expression): Handle VOID_CST.
867 * cilk.c (extract_free_variables): Likewise.
868 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
869 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
870
766090c2
TS
8712014-05-17 Trevor Saunders <tsaunders@mozilla.com>
872
873 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
874 * c-pragma.c (push_alignment): Adjust.
875 (handle_pragma_push_options): Likewise.
876
661a0813
MP
8772014-05-09 Marek Polacek <polacek@redhat.com>
878
879 PR c/50459
880 * c-common.c (check_user_alignment): Return -1 if alignment is error
881 node.
882 (handle_aligned_attribute): Don't call default_conversion on
883 FUNCTION_DECLs.
884 (handle_vector_size_attribute): Likewise.
885 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
886 (handle_sentinel_attribute): Call default_conversion and allow even
887 integral types as an argument.
888
2793eeab
MP
8892014-05-08 Marek Polacek <polacek@redhat.com>
890
891 PR c/61053
892 * c-common.c (min_align_of_type): New function factored out from...
893 (c_sizeof_or_alignof_type): ...here.
894 * c-common.h (min_align_of_type): Declare.
895
f827930a
MP
8962014-05-08 Marek Polacek <polacek@redhat.com>
897
898 PR c/61077
899 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
900 parameter type of main.
901
ca49b74e
DD
9022014-05-07 DJ Delorie <dj@redhat.com>
903
904 * c-cppbuiltin.c (print_bits_of_hex): New.
905 (builtin_define_type_minmax): Print values using hex so as not to
906 require a pre-computed list of string values.
907
1d60af08
KZ
9082014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
909 Mike Stump <mikestump@comcast.net>
910 Richard Sandiford <rdsandiford@googlemail.com>
911
912 * c-ada-spec.c: Include wide-int.h.
913 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
914 (dump_generic_ada_node): Use wide-int interfaces.
915 * c-common.c: Include wide-int-print.h.
916 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
917 (pointer_int_sum): Use wide-int interfaces.
918 (c_common_nodes_and_builtins): Use make_int_cst.
919 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
920 (handle_alloc_size_attribute): Use wide-int interfaces.
921 (get_nonnull_operand): Likewise.
922 * c-format.c (get_constant): Use tree_fits_uhwi_p.
923 * c-lex.c: Include wide-int.h.
924 (narrowest_unsigned_type): Take a widest_int rather than two
925 HOST_WIDE_INTs.
926 (narrowest_signed_type): Likewise.
927 (interpret_integer): Update accordingly. Use wide-int interfaces.
928 (lex_charconst): Use wide-int interfaces.
929 * c-pretty-print.c: Include wide-int.h.
930 (pp_c_integer_constant): Use wide-int interfaces.
931 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
932 INT_CST_LT_UNSIGNED.
933
b15458be
RB
9342014-05-06 Richard Biener <rguenther@suse.de>
935
936 * c-opts.c (c_common_post_options): For -freestanding,
937 -fno-hosted and -fno-builtin disable pattern recognition
938 if not enabled explicitely.
939
6577374e
MP
9402014-05-02 Marek Polacek <polacek@redhat.com>
941
942 * c.opt (Wsizeof-pointer-memaccess): Describe option.
943
d00887e8
MP
9442014-05-01 Marek Polacek <polacek@redhat.com>
945
946 PR c/43245
947 * c.opt (Wdiscarded-qualifiers): Add.
948
f8ed5150
MP
9492014-04-30 Marek Polacek <polacek@redhat.com>
950
951 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
952 INT_MIN / -1 sanitization only for integer types.
953
45484dcf
MP
9542014-04-25 Marek Polacek <polacek@redhat.com>
955
956 PR c/18079
957 * c-common.c (handle_noinline_attribute): Warn if the attribute
958 conflicts with always_inline attribute.
959 (handle_always_inline_attribute): Warn if the attribute conflicts
960 with noinline attribute.
961
38e514c0
MP
9622014-04-25 Marek Polacek <polacek@redhat.com>
963
964 PR c/60156
965 * c-common.c (check_main_parameter_types): Warn about variadic main.
966
44875f92
MS
9672014-04-24 Mike Stump <mikestump@comcast.net>
968
969 * c.opt (Wshadow-ivar): Default to on.
970
dcaaa5a0
DP
9712014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
972
973 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
974
c07d7c02
MP
9752014-04-23 Marek Polacek <polacek@redhat.com>
976
977 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
978
1c33c9b7
JJ
9792014-04-22 Jakub Jelinek <jakub@redhat.com>
980
981 PR sanitizer/60275
982 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
983 if flag_sanitize_undefined_trap_on_error.
984 (ubsan_instrument_division, ubsan_instrument_shift,
985 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
986 if !flag_sanitize_recover.
987
793c625f
MG
9882014-04-22 Marc Glisse <marc.glisse@inria.fr>
989
990 PR libstdc++/43622
991 * c-common.c (registered_builtin_types): Make non-static.
992 * c-common.h (registered_builtin_types): Declare.
993
b0f1bf36
RB
9942014-04-14 Richard Biener <rguenther@suse.de>
995 Marc Glisse <marc.glisse@inria.fr>
996
997 PR c/60819
998 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
999 apply may-alias the scalar pointer type when applicable.
1000
3b07fa4a
IZ
10012014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1002
1003 PR middle-end/60467
1004 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1005 as possible argument for Cilk_spawn.
1006
cbbd2b1c
TB
10072014-04-11 Tobias Burnus <burnus@net-b.de>
1008
1009 PR c/60194
1010 * c.opt (Wformat-signedness): Add
1011 * c-format.c(check_format_types): Use it.
1012
6415bd5d
JM
10132014-04-11 Jason Merrill <jason@redhat.com>
1014
1015 PR c++/57926
1016 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1017 default_conversion for an array argument.
1018
6525783a
MP
10192014-04-08 Marek Polacek <polacek@redhat.com>
1020
1021 PR sanitizer/60745
1022 * c-ubsan.c: Include asan.h.
1023 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1024
880a467b
NS
10252014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1026
1027 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1028
7b59ff2d
MP
10292014-04-02 Marek Polacek <polacek@redhat.com>
1030
1031 * c-common.h (c_expand_expr): Remove declaration.
1032
8edbfaa6
JJ
10332014-03-28 Jakub Jelinek <jakub@redhat.com>
1034
1035 PR c++/60689
1036 * c-common.c (add_atomic_size_parameter): When creating new
1037 params vector, push the size argument first.
1038
07d72e1d
JJ
10392014-03-26 Jakub Jelinek <jakub@redhat.com>
1040
1041 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1042 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1043 ubsan_create_data callers.
1044
b35e0fa0
JJ
10452014-03-22 Jakub Jelinek <jakub@redhat.com>
1046
1047 PR debug/60603
1048 * c-opts.c (c_finish_options): Restore cb_file_change call to
1049 <built-in>.
1050
39a1ebb3
JJ
10512014-03-13 Jakub Jelinek <jakub@redhat.com>
1052
1053 PR middle-end/36282
1054 * c-pragma.c (apply_pragma_weak): Only look at
1055 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1056 DECL_ASSEMBLER_NAME_SET_P (decl).
1057 (maybe_apply_pending_pragma_weaks): Exit early if
1058 vec_safe_is_empty (pending_weaks) rather than only when
1059 !pending_weaks.
1060 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1061 set assembler name back to NULL afterwards.
1062
a07f6ed2
JM
10632014-03-11 Jason Merrill <jason@redhat.com>
1064
1065 * c.opt: Add -std=gnu++14.
1066
75b107f5
IB
10672014-03-11 Ian Bolton <ian.bolton@arm.com>
1068
1069 * c-opts.c (c_common_post_options): Don't override
1070 -ffp-contract=fast if unsafe-math-optimizations is on.
1071
f42c637e
PM
10722014-03-08 Paulo Matos <paulo@matos-sorge.com>
1073
1074 * c.opt: Enable LTO FE for fshort-double.
1075
70e24808
JM
10762014-03-07 Jason Merrill <jason@redhat.com>
1077
1078 * c.opt: Add -std=c++14.
1079
3af9c5e9
MP
10802014-03-06 Marek Polacek <polacek@redhat.com>
1081
1082 PR c/60197
1083 * cilk.c (contains_cilk_spawn_stmt): New function.
1084 (contains_cilk_spawn_stmt_walker): Likewise.
1085 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1086 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1087
b3bdf019
JJ
10882014-03-03 Jakub Jelinek <jakub@redhat.com>
1089
1090 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1091 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1092 even when flag_preprocess_only.
1093
ca7e759d
JM
10942014-02-26 Jason Merrill <jason@redhat.com>
1095
1096 PR c++/59231
1097 PR c++/11586
1098 * c-common.c (shorten_compare): Don't check
1099 c_inhibit_evaluation_warnings.
1100
28e41874
JJ
11012014-02-19 Jakub Jelinek <jakub@redhat.com>
1102
cca615af
JJ
1103 PR c/37743
1104 * c-common.c (c_common_nodes_and_builtins): When initializing
1105 c_uint{16,32,64}_type_node, also set corresponding
1106 uint{16,32,64}_type_node to the same value.
1107
28e41874
JJ
1108 PR c++/60267
1109 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1110 for PRAGMA_IVDEP if flag_preprocess_only.
1111
c2bf53a1
JJ
11122014-02-12 Jakub Jelinek <jakub@redhat.com>
1113
1114 PR c/60101
1115 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1116 if false, add ADD itself, rather than vice versa.
1117 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1118 copy. For SAVE_EXPR, only call merge_tlist once.
1119
8fcbce72
JJ
11202014-02-08 Jakub Jelinek <jakub@redhat.com>
1121
1122 PR middle-end/60092
1123 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1124 and tree_to_uhwi.
1125 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1126 functions.
1127 (c_common_attribute_table): Add alloc_align and assume_aligned
1128 attributes.
1129
0a756a3f
MP
11302014-02-06 Marek Polacek <polacek@redhat.com>
1131
1132 PR c/60087
1133 * c-common.c (warn_for_sign_compare): Call warning_at with location
1134 instead of warning.
1135
7ec4847a
MP
11362014-02-05 Marek Polacek <polacek@redhat.com>
1137
1138 PR c/53123
1139 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1140 statement.
1141
66f20604
MP
11422014-02-04 Marek Polacek <polacek@redhat.com>
1143
1144 PR c/60036
1145 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1146 SAVE_EXPR.
1147
5d77fb19
MG
11482014-02-03 Marc Glisse <marc.glisse@inria.fr>
1149
1150 PR c++/53017
1151 PR c++/59211
1152 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1153 handle_vector_size_attribute, handle_nonnull_attribute): Call
1154 default_conversion on the attribute argument.
1155 (handle_nonnull_attribute): Increment the argument number.
1156
81e5eca8
MP
11572014-01-31 Marek Polacek <polacek@redhat.com>
1158
1159 PR c/59963
1160 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1161 build_function_call_vec.
1162 (resolve_overloaded_builtin): Likewise.
1163 * c-common.h (build_function_call_vec): Adjust declaration.
1164
68fca595
MP
11652014-01-30 Marek Polacek <polacek@redhat.com>
1166
1167 PR c/59940
1168 * c-common.h (unsafe_conversion_p): Adjust declaration.
1169 (warnings_for_convert_and_check): Likewise.
1170 (convert_and_check): Likewise.
1171 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1172 expansion_point_location_if_in_system_header on it.
1173 (warnings_for_convert_and_check): Add location parameter. Call
1174 expansion_point_location_if_in_system_header on it. Use it.
1175 (convert_and_check): Add location parameter. Use it.
1176 (conversion_warning): Likewise.
1177 (c_add_case_label): Adjust convert_and_check calls.
1178 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1179
b72271b9
BI
11802014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1181
1182 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1183 flag_cilkplus.
1184 * c-pragma.c (init_pragma): Likewise.
1185 * c.opt: Likewise.
1186
393e8e8b
MP
11872014-01-23 Marek Polacek <polacek@redhat.com>
1188
1189 PR c/59846
1190 * c-common.c (shorten_compare): Add location_t parameter.
1191 * c-common.h (shorten_binary_op): Adjust declaration.
1192
f04dda30
MP
11932014-01-23 Marek Polacek <polacek@redhat.com>
1194
1195 PR c/58346
1196 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1197 * c-common.h: Declare it.
1198
621955cb
EB
11992014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1200
1201 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1202 * c-ada-spec.c (dump_ads): Likewise.
1203 (cpp_check): Likewise.
1204 (dump_ada_specs): Likewise.
1205
12062014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1207
1208 PR c++/49718
1209 * c-common.c (handle_no_instrument_function_attribute): Allow
1210 no_instrument_function attribute in class member
1211 definition/declaration.
1212
241f845a
JJ
12132014-01-15 Jakub Jelinek <jakub@redhat.com>
1214
1215 PR c/58943
1216 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1217 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1218 being COMPOUND_EXPR.
1219 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1220 operand a SAVE_EXPR and second MODIFY_EXPR.
1221
e83b8e2e
JJ
12222014-01-09 Jakub Jelinek <jakub@redhat.com>
1223
1224 PR target/58115
1225 * c-pch.c (c_common_write_pch): Call
1226 prepare_target_option_nodes_for_pch.
1227
23a5b65a
RS
12282014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1229
1230 Update copyright years
1231
f9030485
RS
12322014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1233
1234 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1235 the copyright notice.
1236
f2aa696b
EB
12372013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1238
1239 * c-ada-spec.c (print_constructor): New function.
1240 (print_destructor): Retrieve the origin of the destructor.
1241 (print_ada_declaration): Revamp handling of constructors/destructors.
1242
1f26ac87
JM
12432013-12-23 Stuart Hastings <stuart@apple.com>
1244 Bill Maddox <maddox@google.com>
1245 Jason Merrill <jason@redhat.com>
1246
1247 * c.opt: Add -fdeclone-ctor-dtor.
1248 * c-opts.c (c_common_post_options): Default to on iff -Os.
1249
41958c28
BI
12502013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1251
1252 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1253 attribute.
1254 * c-pragma.h (enum pragma_cilk_clause): Remove.
1255 (enum pragma_omp_clause): Added the following fields:
1256 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1257 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1258 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1259 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1260 PRAGMA_CILK_CLAUSE_UNIFORM.
1261
1262
12893402
BI
12632013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1264
1265 * cilk.c (cilk_outline): Made this function non-static.
1266 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1267 (create_cilk_wrapper): Added a new parameter: a function pointer.
1268 (c_install_body_w_frame_cleanup): Remove
1269 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1270 * c-common.h (cilk_outline): New prototype.
1271 (gimplify_cilk_spawn): Removed two parameters.
1272 (cilk_install_body_with_frame_cleanup): New prototype.
1273 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1274 CILK_SPAWN_STMT case.
1275
085b42ed
BS
12762013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1277
2ce064c3
BS
1278 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1279
085b42ed
BS
1280 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1281 (int_array_type_node): Remove.
1282 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1283
9e36c9ed
MP
12842013-12-05 Marek Polacek <polacek@redhat.com>
1285
1286 PR c/52023
1287 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1288 [ADJUST_FIELD_ALIGN].
1289
296674db
JM
12902013-12-04 Joseph Myers <joseph@codesourcery.com>
1291
1292 PR c/52023
1293 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1294 and check field alignment if set.
1295 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1296 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1297
31e071ae
MP
12982013-12-04 Jakub Jelinek <jakub@redhat.com>
1299 Marek Polacek <polacek@redhat.com>
1300
1301 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1302 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1303
d7947e19
L
13042013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1305
1306 PR c/59309
1307 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1308 arguments.
1309
fad7652e
JJ
13102013-11-29 Jakub Jelinek <jakub@redhat.com>
1311
1312 PR c/59280
1313 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1314 goto invalid. If it is error_mark_node, don't issue further
1315 diagnostics.
1316
8b5e1202
SO
13172013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1318
1319 * c.opt (Wopenmp-simd): New.
1320
0a508bb6
JJ
13212013-11-22 Jakub Jelinek <jakub@redhat.com>
1322
1323 * c-ubsan.h (ubsan_instrument_return): New prototype.
1324 * c-ubsan.c (ubsan_instrument_return): New function.
1325
2fb9a547
AM
13262013-11-22 Andrew MacLeod <amacleod@redhat.com>
1327
1328 * c-common.c: Add required include files from gimple.h.
1329 * c-gimplify.c: Likewise
1330 * cilk.c: Likewise
1331
8400e75e
DM
13322013-11-22 David Malcolm <dmalcolm@redhat.com>
1333
1334 * c-common.c (unsafe_conversion_p): Remove use of
1335 EXPR_LOC_OR_HERE macro.
1336 (conversion_warning): Likewise.
1337 (warnings_for_convert_and_check): Likewise.
1338 (warn_for_collisions_1): Likewise.
1339 (shorten_compare): Likewise, and remove use of in_system_header
1340 macro, using the location from the former.
1341 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1342 (cb_def_pragma): Remove use of in_system_header macro.
1343 (lex_string): Likewise.
1344 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1345
eb1ce453
KZ
13462013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1347 Mike Stump <mikestump@comcast.net>
1348 Richard Sandiford <rdsandiford@googlemail.com>
1349
1350 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1351 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1352 tree_fits_shwi_p or tree_fits_uhwi_p.
1353 (dump_generic_ada_node): Likewise.
1354 * c-format.c (check_format_arg): Likewise.
1355 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1356
6b3b8c27
KZ
13572013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1358
1359 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1360
49b0aa18
JC
13612013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1362
1363 PR c/53001
1364 * c-common.c (unsafe_conversion_p): Make this function
1365 return an enumeration with more detail.
1366 (conversion_warning): Use the new return type of
1367 unsafe_conversion_p to separately warn either about conversions
1368 that lower floating point number precision or about the other
1369 kinds of conversions.
1370 * c-common.h (enum conversion_safety): New enumeration.
1371 (unsafe_conversion_p): switching return type to
1372 conversion_safety enumeration.
1373 * c.opt: Adding new warning -Wfloat-conversion and
1374 enabling it with -Wconversion.
1375
b826515a
BS
13762013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1377
1378 * c-opts.c: Include plugin.h.
1379 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1380
b9a55b13
MP
13812013-11-19 Marek Polacek <polacek@redhat.com>
1382
1383 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1384 call.
1385 (ubsan_instrument_shift): Likewise.
1386 (ubsan_instrument_vla): Likewise.
1387
7d362f6c
RS
13882013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1389
1390 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1391 cast to unsigned type.
1392
386b1f1f
RS
13932013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1394
1395 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1396 tree_low_cst.
1397 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1398 rather than tree_low_cst.
1399
ae7e9ddd
RS
14002013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1401
1402 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1403 tree_to_uhwi throughout.
1404
9439e9a1
RS
14052013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1406
1407 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1408 tree_low_cst (..., 0) with tree_to_shwi throughout.
1409
cc269bb6
RS
14102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1411
1412 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1413 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1414
9541ffee
RS
14152013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1416
1417 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1418 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1419
c02065fc
AH
14202013-11-15 Aldy Hernandez <aldyh@redhat.com>
1421
1422 * c-cilkplus.c: New file.
1423 * c-common.c (readonly_error): Add location argument.
1424 * c-common.h (readonly_error): Same.
1425 (c_finish_cilk_clauses): Protoize.
1426 (c_check_cilk_loop): Same.
1427 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1428 Do not fail on error_mark_node.
1429 Abstract increment canonicalization to here...
1430 (c_omp_for_incr_canonicalize_ptr): New.
1431 c-pragma.c (init_pragma): Register "simd" pragma.
1432 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1433 (enum pragma_cilk_clause): New.
1434
9cc65f15
RS
14352013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1436
1437 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1438 wchar_type and host_integerp checks.
1439
18f429e2
AM
14402013-11-14 Andrew MacLeod <amacleod@redhat.com>
1441
1442 * c-common.c: Likewise.
1443 * c-gimplify.c: Likewise.
1444 * cilk.c: Likewise.
1445
d8a2d370
DN
14462013-11-14 Diego Novillo <dnovillo@google.com>
1447
1448 * c-common.c: Include fold-const.h.
1449 Include stor-layout.h.
1450 Include calls.h.
1451 Include stringpool.h.
1452 Include attribs.h.
1453 Include varasm.h.
1454 Include trans-mem.h.
1455 * c-cppbuiltin.c: Include stor-layout.h.
1456 Include stringpool.h.
1457 * c-format.c: Include stringpool.h.
1458 * c-lex.c: Include stringpool.h.
1459 Include stor-layout.h.
1460 * c-pragma.c: Include stringpool.h.
1461 Include attribs.h.
1462 Include varasm.h.
1463 Include gcc-symtab.h.
1464 * c-pretty-print.c: Include stor-layout.h.
1465 Include attribs.h.
1466 * cilk.c: Include stringpool.h.
1467 Include calls.h.
1468
38b7bc7f
JM
14692013-11-13 Joseph Myers <joseph@codesourcery.com>
1470
1471 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1472 * c-common.c (c_common_reswords): Add __auto_type.
1473 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1474
45b0be94
AM
14752013-11-12 Andrew MacLeod <amacleod@redhat.com>
1476
18f429e2
AM
1477 * c-common.c: Include gimplify.h.
1478 * c-gimplify.c: Likewise.
1479 * cilk.c: Likewise.
1480 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1481 * c-ubsan.c: Don't include gimple.h.
45b0be94 1482
582d9b50
JM
14832013-11-12 Joseph Myers <joseph@codesourcery.com>
1484
1485 * c-common.c (c_common_reswords): Add _Thread_local.
1486
6b28e197
JM
14872013-11-09 Joseph Myers <joseph@codesourcery.com>
1488
1489 * c-common.c (atomic_size_supported_p): New function.
1490 (resolve_overloaded_atomic_exchange)
1491 (resolve_overloaded_atomic_compare_exchange)
1492 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1493 Use it instead of comparing size with a local list of sizes.
1494
267bac10
JM
14952013-11-07 Andrew MacLeod <amacleod@redhat.com>
1496 Joseph Myers <joseph@codesourcery.com>
1497
1498 * c-common.h (enum rid): Add RID_ATOMIC.
1499 * c-common.c (c_common_reswords): Add _Atomic.
1500 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1501 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1502 * c-format.c (check_format_types): Check for extra _Atomic
1503 qualifiers in format argument.
1504 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1505 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1506
5157b91e
TB
15072013-11-06 Tobias Burnus <burnus@net-b.de>
1508
1509 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1510
6dbe0958
JM
15112013-11-06 Joseph Myers <joseph@codesourcery.com>
1512
1513 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1514 standards modes.
1515 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1516 to mean lack of IEEE 754 support.
1517
e8ff5196
TB
15182013-11-05 Tobias Burnus <burnus@net-b.de>
1519
1520 * c.opt (-Wdate-time): New option
1521 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1522
254a0760
JM
15232013-11-05 Joseph Myers <joseph@codesourcery.com>
1524
1525 * c-cppbuiltin.c (cpp_iec_559_value): Test
1526 flag_excess_precision_cmdline not flag_excess_precision.
1527
6d7f7e0a
TB
15282013-11-05 Tobias Burnus <burnus@net-b.de>
1529
1530 * c.opt (fopenmp-simd): New option.
1531 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1532 (omp_pragmas): ... this new struct.
1533 (c_pp_lookup_pragma): Also walk omp_pragmas.
1534 (init_pragma): Init pragmas for -fopenmp-simd.
1535
55a7f02f
MP
15362013-11-04 Marek Polacek <polacek@redhat.com>
1537
1538 PR c++/58979
1539 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1540
9193fb05
JM
15412013-11-04 Joseph Myers <joseph@codesourcery.com>
1542
1543 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1544 New functions.
1545 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1546
94159ecf
EB
15472013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1548
1549 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1550 (dump_ada_specs): Adjust prototype of second callback.
1551 * c-ada-spec.c (cpp_check): New global variable.
1552 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1553 (print_generic_ada_decl): Likewise.
1554 (has_static_fields): Change return type to bool and add guard.
1555 (has_nontrivial_methods): New predicate.
1556 (is_tagged_type): Change return type to bool.
1557 (separate_class_package): Call has_nontrivial_methods.
1558 (pp_ada_tree_identifier): Minor tweaks.
1559 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1560 (dump_ada_array_domains): Likewise.
1561 (dump_ada_array_type): Likewise.
1562 (dump_template_types): Remove cpp_check parameter and do not pass it to
1563 dump_generic_ada_node.
1564 (dump_ada_template): Likewise.
1565 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1566 recursively.
1567 (print_ada_methods): Change return type to integer. Remove cpp_check
1568 parameter and do not pass it down.
1569 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1570 dump_generic_ada_node.
1571 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1572 accessing methods.
1573 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1574 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1575 value of print_ada_methods.
1576 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1577 Set cpp_check to it before invoking dump_ada_nodes.
1578 (dump_ada_specs): Likewise.
1579
b906f4ca
MP
15802013-11-03 Marek Polacek <polacek@redhat.com>
1581
1582 * c-ubsan.c: Don't include hash-table.h.
1583 (ubsan_instrument_vla): New function.
1584 * c-ubsan.h: Declare it.
1585
5e20cdc9
DM
15862013-10-31 David Malcolm <dmalcolm@redhat.com>
1587
1588 Automated part of renaming of symtab_node_base to symtab_node.
1589
1590 Patch autogenerated by rename_symtab.py from
1591 https://github.com/davidmalcolm/gcc-refactoring-scripts
1592 revision 58bb219cc090b2f4516a9297d868c245495ee622
1593
1594 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1595 symtab_node_base to symtab_node.
1596
7057e645
ESR
15972013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1598
1599 Implement C++14 digit separators.
1600 * c-lex.c (interpret_float): Remove digit separators from scratch string
1601 before building real literal.
1602
193ea7bc
JJ
16032013-10-30 Jakub Jelinek <jakub@redhat.com>
1604
1605 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1606
939b37da
BI
16072013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1608
1609 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1610 fields.
1611 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1612 enabled.
1613 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1614 (insert_cilk_frame): New prototype.
1615 (cilk_init_builtins): Likewise.
1616 (gimplify_cilk_spawn): Likewise.
1617 (c_cilk_install_body_w_frame_cleanup): Likewise.
1618 (cilk_detect_spawn_and_unwrap): Likewise.
1619 (cilk_set_spawn_marker): Likewise.
1620 (build_cilk_sync): Likewise.
1621 (build_cilk_spawn): Likewise.
1622 * cilk.c: New file.
1623
67348ccc
DM
16242013-10-29 David Malcolm <dmalcolm@redhat.com>
1625
1626 Patch autogenerated by refactor_symtab.py from
1627 https://github.com/davidmalcolm/gcc-refactoring-scripts
1628 revision 58bb219cc090b2f4516a9297d868c245495ee622
1629
1630 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1631 to a true class hierarchy.
1632 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1633
d570872d
RS
16342013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1635
1636 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1637
98906124
JL
16382013-10-26 Jeff Law <law@redhat.com>
1639
adfac8df
JJ
1640 * c-common.c (c_define_builtins): Remove mudflap support.
1641 * c.opt: Ignore and warn for mudflap options.
98906124 1642
d73749df 16432013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1644
1645 PR other/33426
1646 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1647 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1648
3f04b1bb
JM
16492013-10-23 Jason Merrill <jason@redhat.com>
1650
1651 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1652
acf0174b
JJ
16532013-10-11 Jakub Jelinek <jakub@redhat.com>
1654
acd15a28
JJ
1655 * c-common.h (omp_clause_mask::operator !=): New method.
1656 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1657 instead of if (mask & something) tests everywhere.
1658
acf0174b
JJ
1659 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1660 201307 instead of 201107.
1661 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1662 (c_common_attribute_table): Add "omp declare target" and
1663 "omp declare simd" attributes.
1664 (handle_omp_declare_target_attribute,
1665 handle_omp_declare_simd_attribute): New functions.
1666 * c-omp.c: Include c-pragma.h.
1667 (c_finish_omp_taskgroup): New function.
1668 (c_finish_omp_atomic): Add swapped argument, if true,
1669 build the operation first with rhs, lhs arguments and use NOP_EXPR
1670 build_modify_expr.
1671 (c_finish_omp_for): Add code argument, pass it down to make_code.
1672 (c_omp_split_clauses): New function.
1673 (c_split_parallel_clauses): Removed.
1674 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1675 c_omp_declare_simd_clauses_to_decls): New functions.
1676 * c-common.h (omp_clause_mask): New type.
1677 (OMP_CLAUSE_MASK_1): Define.
1678 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1679 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1680 omp_clause_mask::operator |, omp_clause_mask::operator &,
1681 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1682 omp_clause_mask::operator ==): New methods.
1683 (enum c_omp_clause_split): New.
1684 (c_finish_omp_taskgroup): New prototype.
1685 (c_finish_omp_atomic): Add swapped argument.
1686 (c_finish_omp_for): Add code argument.
1687 (c_omp_split_clauses): New prototype.
1688 (c_split_parallel_clauses): Removed.
1689 (c_omp_declare_simd_clauses_to_numbers,
1690 c_omp_declare_simd_clauses_to_decls): New prototypes.
1691 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1692 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1693 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1694 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1695 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1696 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1697 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1698 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1699 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1700 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1701 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1702 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1703 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1704 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1705 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1706 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1707 PRAGMA_OMP_CLAUSE_UNIFORM.
1708
826cacfe
MG
17092013-10-09 Marc Glisse <marc.glisse@inria.fr>
1710
1711 PR tree-optimization/20318
1712 * c-common.c (handle_returns_nonnull_attribute): New function.
1713 (c_common_attribute_table): Add returns_nonnull.
1714
2284b034
MG
17152013-10-03 Marc Glisse <marc.glisse@inria.fr>
1716
1717 PR c++/19476
1718 * c.opt (fcheck-new): Move to common.opt.
1719
b56e9788
MP
17202013-09-25 Marek Polacek <polacek@redhat.com>
1721 Jakub Jelinek <jakub@redhat.com>
1722
1723 PR sanitizer/58413
1724 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1725 an expression if we can prove it is correct.
1726 (ubsan_instrument_division): Likewise. Remove unnecessary
1727 check.
1728
ce6923c5
MP
17292013-09-18 Marek Polacek <polacek@redhat.com>
1730
1731 PR sanitizer/58411
1732 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1733 Declare it.
1734 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1735
fb5610fb
IS
17362013-09-14 Iain Sandoe <iain@codesourcery.com>
1737
1738 PR target/48094
1739 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1740 fobjc-gc, freplace-objc-classes): Accept for LTO.
1741
88b0e79e
JC
17422013-09-13 Jacek Caban <jacek@codeweavers.com>
1743
1744 * c-target.def: New hook
1745
c9b0866a
PC
17462013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1747
1748 PR c++/43452
1749 * c.opt (Wdelete-incomplete): Add.
1750
0af94e6f
JR
17512013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1752
1753 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1754 (vector_types_compatible_elements_p): New function.
1755 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1756 declaration.
1757 (vector_types_compatible_elements_p): Declare.
1758
7c26172c
GDR
17592013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1760
1761 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1762 a virtual member function.
1763 (pp_simple_type_specifier): Remove.
1764 (pp_c_type_specifier): Likewise.
1765 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1766 Rename from pp_c_type_specifier. Adjust.
1767 (c_pretty_printer::c_pretty_printer): Do not assign to
1768 simple_type_specifier.
1769
20059c8b
GDR
17702013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1771
1772 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1773 member function.
1774 (c_pretty_printer::storage_class_specifier): Likewise.
1775 (c_pretty_printer::initializer): Likewise.
1776 (pp_declaration): Remove.
1777 (pp_declaration_specifiers): Likewise.
1778 (pp_abstract_declarator): Likewise.
1779 (pp_declarator): Likewise.
1780 (pp_type_id): Likewise.
1781 (pp_statement): Likewise.
1782 (pp_constant): Likewise.
1783 (pp_id_expression): Likewise.
1784 (pp_primary_expression): Likewise.
1785 (pp_unary_expression): Likewise.
1786 (pp_multiplicative_expression): Likewise.
1787 (pp_conditional_expression): Likewise.
1788 (pp_assignment_expression): Likewise.
1789 (pp_expression): Likewise.
1790 (pp_c_type_id): Likewise.
1791 (pp_c_storage_class_specifier): Likewise.
1792 * c-pretty-print.c (pp_c_type_cast): Tidy.
1793 (pp_c_pointer): Likewise.
1794 (pp_c_type_specifier): Likewise.
1795 (pp_c_parameter_type_list): Likewise.
1796 (pp_c_function_definition): Likewise.
1797 (pp_c_init_declarator): Likewise.
1798 (pp_c_initializer_list): Likewise.
1799 (pp_c_constructor_elts): Likewise.
1800 (c_pretty_printer::direct_abstract_declarator): Likewise.
1801 (c_pretty_printer::declaration_specifiers): Likewise.
1802 (c_pretty_printer::primary_expression): Likewise.
1803 (c_pretty_printer::postfix_expression): Likewise.
1804 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1805 (c_pretty_printer::storage_class_specifier): Rename from
1806 pp_c_storage_class_specifier.
1807 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1808 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1809 storage_class_specifier, initializer, offset_list, flags.
1810
de5a5fa1
MP
18112013-08-30 Marek Polacek <polacek@redhat.com>
1812
1813 * c-ubsan.c: New file.
1814 * c-ubsan.h: New file.
1815
8f0e4d72
GDR
18162013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1817
1818 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1819 member function.
1820 (c_pretty_printer::declaration_specifiers): Likewise.
1821 (c_pretty_printer::declarator): Likewise.
1822 (c_pretty_printer::abstract_declarator): Likewise.
1823 (c_pretty_printer::direct_abstract_declarator): Likewise.
1824 (c_pretty_printer::direct_declarator): Likewise.
1825 (c_pretty_printer::function_specifier): Likewise.
1826 (pp_declaration): Adjust.
1827 (pp_declaration_specifiers): Likewise.
1828 (pp_abstract_declarator): Likewise.
1829 (pp_direct_declarator): Likewise.
1830 (pp_function_specifier): Likewise.
1831 (pp_direct_abstract_declarator): Remove as unused.
1832 (pp_c_declaration): Remove.
1833 (pp_c_declaration_specifiers): Likewise.
1834 (pp_c_declarator): Likewise.
1835 (pp_c_direct_declarator): Likewise.
1836 (pp_c_function_specifier): Likewise.
1837 (pp_c_direct_abstract_declarator): Likewise.
1838 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1839 from pp_c_abstract_declarator. Adjust.
1840 (c_pretty_printer::direct_abstract_declarator): Rename from
1841 pp_c_direct_abstract_declarator. Adjust.
1842 (c_pretty_printer::function_specifier): Rename from
1843 pp_c_function_specifier. Adjust.
1844 (c_pretty_printer::declaration_specifiers): Rename from
1845 pp_c_declaration_specifiers. Adjust.
1846 (c_pretty_printer::direct_declarator): Rename from
1847 pp_c_direct_declarator. Adjust.
1848 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1849 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1850 (c_pretty_printer::c_pretty_printer): Do not assign to
1851 declaration, declaration_specifiers, declarator,
1852 direct_declarator, direct_abstract_declarator, function_specifier.
1853
00d34d3a
GDR
18542013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1855
1856 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1857 virtual member function.
1858 (c_pretty_printer::multiplicative_expression): Likewise.
1859 (c_pretty_printer::conditional_expression): Likewise.
1860 (c_pretty_printer::assignment_expression): Likewise.
1861 (c_pretty_printer::expression): Likewise.
1862 (pp_unary_expression): Adjust.
1863 (pp_multiplicative_expression): Likewise.
1864 (pp_assignment_expression): Likewise.
1865 (pp_conditional_expression): Likewise.
1866 (pp_expression): Likewise.
1867 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1868 from pp_c_unary_expression. Adjust.
1869 (c_pretty_printer::multiplicative_expression): Rename from
1870 pp_c_multiplicative_expression. Adjust.
1871 (c_pretty_printer::conditional_expression): Rename from
1872 pp_c_conditional_expression. Adjust.
1873 (c_pretty_printer::assignment_expression): Rename from
1874 pp_c_assignment_expression. Adjust.
1875 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1876 (c_pretty_printer::c_pretty_printer): Do not assign to
1877 unary_expression, multiplicative_expression,
1878 conditional_expression, expression.
1879
fb22178f
GDR
18802013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1881
1882 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1883 virtual member function.
1884 (pp_postfix_expression): Adjust.
1885 (pp_c_postfix_expression): Remove.
1886 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1887 from pp_c_postfix_expression. Adjust.
1888 (c_pretty_printer::c_pretty_printer): Do not assign to
1889 postfix_expression.
1890
7ecc2600
GDR
18912013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1892
1893 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1894 virtua member function.
1895 (pp_primary_expression): Adjust.
1896 (pp_c_primary_expression): Remove.
1897 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1898 from pp_c_primary_expression. Adjust.
1899 (pp_c_initializer_list): Use pp_primary_expression.
1900 (c_pretty_printer::c_pretty_printer): Do not assign to
1901 primary_expression.
1902
0691175f
GDR
19032013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1904
1905 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1906 * c-pretty-print.c (M_): Remove.
1907 (c_pretty_printer::translate_string): Define.
1908 (pp_c_type_specifier): Use it.
1909 (pp_c_primary_expression): Likewise.
1910 (pp_c_expression): Likewise.
1911
66dfe4c4
GDR
19122013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1913
1914 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1915 virtual function.
1916 (pp_c_id_expression): Remove.
1917 (pp_id_expression): Adjust.
1918 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1919 pp_c_id_expression. Adjust.
1920 (pp_c_postfix_expression): Use pp_id_expression.
1921 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1922
ca43e9d5
GDR
19232013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1924
1925 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1926 member function.
1927 (pp_constant): Adjust.
1928 (pp_c_constant): Remove.
1929 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1930 pp_c_constant. Adjust.
1931 (pp_c_constant)
1932 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1933 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1934
da6ca2b5
GDR
19352013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1936
1937 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1938 (c_pretty_printer::c_pretty_printer): Declare.
1939 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1940 c_pretty_printer_init. Adjust.
1941 (print_c_tree): Do not call c_pretty_printer_init.
1942 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1943
65a372f4
AC
19442013-08-09 Arnaud Charlet <charlet@adacore.com>
1945
1946 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1947
fd9b0f32
PC
19482013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1949
1950 PR c++/58080
1951 * c-common.c (pointer_int_sum): Add bool parameter.
1952 * c-common.h (pointer_int_sum): Adjust declaration.
1953
e0aec1e9
GDR
19542013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1955
1956 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1957 c_pretty_printer variable.
1958
b066401f
GDR
19592013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1960
1961 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1962 (pp_base): Remove.
1963 (pp_c_base): Likewise. Adjust users.
1964 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1965 (pp_c_whitespace): Do not call pp_base.
1966 (pp_c_left_paren): Likewise.
1967 (pp_c_right_paren): Likewise.
1968 (pp_c_left_brace): Likewise.
1969 (pp_c_right_brace): Likewise.
1970 (pp_c_left_bracket): Likewise.
1971 (pp_c_right_bracket): Likewise.
1972 (pp_c_dot): Likewise.
1973 (pp_c_ampersand): Likewise.
1974 (pp_c_star): Likewise.
1975 (pp_c_arrow): Likewise.
1976 (pp_c_semicolon): Likewise.
1977 (pp_c_complement): Likewise.
1978 (pp_c_exclamation): Likewise.
1979 (pp_c_direct_declarator): Likewise.
1980 (pp_c_ws_string): Likewise.
1981 (pp_c_identifier): Likewise.
1982 (pp_c_statement): Likewise.
1983 (print_c_tree): Likewise.
1984
65e5a578
ESR
19852013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1986
1987 PR c++/58072
1988 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1989 provide useful error strings.
1990
137a1a27
GDR
19912013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1992
1993 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1994 printer functions instead of pp_string or operators and punctuators.
1995 (dump_generic_ada_node): Likewise.
1996 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1997 (pp_c_relational_expression): Likewise.
1998 (pp_c_logical_or_expression): Likewise.
1999
07838b13
GDR
20002013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2001
2002 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2003 functions instead of pp_character.
2004 (pp_ada_tree_identifier): Likewise.
2005 (dump_ada_double_name): Likewise.
2006 (dump_ada_function_declaration): Likewise.
2007 (dump_ada_array_domains): Likewise.
2008 (dump_template_types): Likewise.
2009 (dump_generic_ada_node): Likewise.
2010 (print_ada_declaration): Likewise.
2011 (print_ada_struct_decl): Likewise.
2012 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2013
433cc7b0
TT
20142013-07-23 Tom Tromey <tromey@redhat.com>
2015
2016 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2017 * c-common.c (c_common_reswords): Add _Generic.
2018
688010ba
OB
20192013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2020
2021 * c-common.c: Fix typos.
2022 * c-common.h: Likewise.
2023
2a99e5e6
LL
20242013-07-13 Lubos Lunak <l.lunak@suse.cz>
2025
2026 PR c++/55203
2027 * c-common.c (c_common_attribute_table): Add warn_unused.
2028 (handle_warn_unused_attribute): New.
2029
c26302d5
JJ
20302013-07-10 Jakub Jelinek <jakub@redhat.com>
2031
2032 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2033 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2034
dfeadaa0
PC
20352013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2036
2037 PR c++/57869
2038 * c.opt: Add Wconditionally-supported.
2039
6a2fa4b2
GS
20402013-07-08 Graham Stott <graham.stott@btinternet.com>
2041
adfac8df 2042 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2043 unused variables l_length and l_node.
2044
ecdbd01a 20452013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2046
2047 PR c/57821
2048 * c-common.c (complete_array_type): Delay folding first index
2049 like other indices. When folding, check for index overflow.
2050
bedc293e
MG
20512013-06-27 Marc Glisse <marc.glisse@inria.fr>
2052
2053 PR c++/57509
2054 * c-common.h (c_build_vec_perm_expr): New complain argument.
2055 * c-common.c (c_build_vec_perm_expr): Likewise.
2056 Use save_expr also in C++.
2057
604b2bfc
GDR
20582013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2059
2060 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2061 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2062 * c-opts.c (c_common_post_options): Likewise.
2063
dfeadaa0 20642013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2065
2066 * array-notation-common.c (length_mismatch_in_expr): Changed the
2067 parameter type's from a dynamic array to a vec_tree. Also removed
2068 the size parameters.
2069 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2070 the change above.
2071
2ce86d2e
BI
20722013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2073
2074 * c-common.h (struct cilkplus_an_parts): New structure.
2075 (struct cilkplus_an_loop_parts): Likewise.
2076 (cilkplus_extract_an_triplets): New prototype.
2077 (fix_sec_implicit_args): Likewise.
2078 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2079 (fix_sec_implicit_args): Likewise.
604b2bfc 2080
07a6825b
BI
20812013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2082
2083 * array-notation-common.c (find_inv_trees): Removed an unwanted
2084 typecasting.
2085 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2086 enum rid to enum tree_code.
2087
08346abd
JH
20882013-06-11 Jan Hubicka <jh@suse.cz>
2089
2090 * c-common.c (handle_alias_ifunc_attribute): Do not set
2091 DECL_EXTERNAL for weakref variables.
2092 * c-pragma.c (handle_pragma_weak): Make sure aliases
2093 are not declared as external.
2094
d60f1706
BI
20952013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2096
2097 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2098 function from c/c-array-notation.c.
2099 (is_cilkplus_reduce_builtin): Likewise.
2100 (find_rank): Likewise.
2101 (extract_array_notation_exprs): Likewise.
2102 (replace_array_notations): Likewise.
2103 (find_inv_trees): Likewise.
2104 (replace_inv_trees): Likewise.
2105 (contains_array_notation_expr): Likewise.
2106 (find_correct_array_notation_type): Likewise.
2107 * c-common.h (struct inv_list): Moved this struct from the file
2108 c/c-array-notation.c and added a new field called additional tcodes.
2109 (length_mismatch_in_expr_p): New prototype.
2110 (is_cilkplus_reduce_builtin): Likewise.
2111 (find_rank): Likewise.
2112 (extract_array_notation_exprs): Likewise.
2113 (replace_array_notation): Likewise.
2114 (find_inv_trees): Likewise.
2115 (replace_inv_trees): Likewise.
2116 (find_correct_array_notation_type): Likewise.
dfeadaa0 2117
36536d79
BI
21182013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2119
2120 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2121 function array_notation_init_builtins is called.
2122 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2123 * c-common.def (ARRAY_NOTATION_REF): New tree.
2124 * c-common.h (build_array_notation_expr): New function declaration.
2125 (build_array_notation_ref): Likewise.
2126 (extract_sec_implicit_index_arg): New extern declaration.
2127 (is_sec_implicit_index_fn): Likewise.
2128 (ARRAY_NOTATION_CHECK): New define.
2129 (ARRAY_NOTATION_ARRAY): Likewise.
2130 (ARRAY_NOTATION_START): Likewise.
2131 (ARRAY_NOTATION_LENGTH): Likewise.
2132 (ARRAY_NOTATION_STRIDE): Likewise.
2133 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2134 ARRAY_NOTATION_REF.
2135 (pp_c_expression): Likewise.
2136 * c.opt (flag_enable_cilkplus): New flag.
2137 * array-notation-common.c: New file.
2138
f7716d57
JJ
21392013-05-14 Jakub Jelinek <jakub@redhat.com>
2140
2141 PR c++/57274
2142 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2143
a5e0cd1d
MG
21442013-05-10 Marc Glisse <marc.glisse@inria.fr>
2145
2146 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2147 vectors.
2148
f6bc1c4a
HS
21492013-05-07 Han Shen <shenhan@google.com>
2150
2151 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2152
3f12f6e9
SKS
21532013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2154
2155 * c-common.c (check_user_alignment): Emit error for negative values.
2156
61949153
PC
21572013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2158
2159 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2160
e93e18e9
PC
21612013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2162
2163 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2164 __GXX_EXPERIMENTAL_CXX1Y__.
2165
44d90fe1
PC
21662013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2167 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2168
2169 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2170 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2171 to simply use OPT_Wpointer_arith.
2172 (c_sizeof_or_alignof_type): Likewise.
2173
13f39b2e
PC
21742013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2175
2176 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2177
4b84d650
JJ
21782013-04-12 Jakub Jelinek <jakub@redhat.com>
2179
2180 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2181 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2182 specifiers.
2183
fb037b5d
SB
21842013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2185
2186 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2187
4e856798
PC
21882013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2189
2190 * c-common.c (pointer_int_sum): Remove dead code.
2191
4b1baac8
RS
21922013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2193
2194 PR middle-end/56524
2195 * c-common.c (handle_optimize_attribute): Don't call
2196 save_optabs_if_changed.
2197
0b50e654
JJ
21982013-03-05 Jakub Jelinek <jakub@redhat.com>
2199
2200 PR middle-end/56461
2201 * c-pch.c (pch_init): Free target_validity at the end.
2202
48c41403
JJ
22032013-03-04 Jakub Jelinek <jakub@redhat.com>
2204
2205 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2206
e664c61c
KS
22072013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2208 Jakub Jelinek <jakub@redhat.com>
2209
2210 PR sanitizer/56454
2211 * c-common.c (handle_no_sanitize_address_attribute): New function.
2212 (c_common_attribute_table): Add no_sanitize_address attribute.
2213 (handle_no_address_safety_analysis_attribute): Add
2214 no_sanitize_address attribute, not no_address_safety_analysis
2215 attribute.
2216
a475fd3d 22172013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2218
2219 PR target/52555
2220 * c-common.c (handle_optimize_attribute): Call
2221 save_optabs_if_changed.
2222
f6007d99
JJ
22232013-02-18 Jakub Jelinek <jakub@redhat.com>
2224 Steven Bosscher <steven@gcc.gnu.org>
2225
2226 PR pch/54117
2227 * c-opts.c (c_common_post_options): If debug info is enabled
2228 and non-dwarf*, refuse to load PCH files and when writing PCH
2229 file warn.
2230
cf35e2b1
JJ
22312013-02-05 Jakub Jelinek <jakub@redhat.com>
2232
2233 PR middle-end/56167
2234 * c-common.c (handle_error_attribute): Fix condition.
2235
32887460
JJ
22362013-01-30 Jakub Jelinek <jakub@redhat.com>
2237
2238 PR c++/55742
2239 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2240
5af057d8
JM
22412013-01-18 Jason Merrill <jason@redhat.com>
2242
2243 PR target/54908
2244 * c.opt (-fextern-tls-init): New.
2245 * c-opts.c (c_common_post_options): Handle it.
2246
cc83c823
JJ
22472013-01-09 Jakub Jelinek <jakub@redhat.com>
2248
2249 PR c/48418
2250 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2251 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2252 and is either negative or bigger or equal to type precision
2253 of the first operand.
2254
a859517f
MP
22552012-12-03 Marek Polacek <polacek@redhat.com>
2256
2257 PR c/55570
2258 * c-common.c (check_user_alignment): Swap order of tests,
2259 check TREE_CODE first.
2260
2d7aa578
ESR
22612012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2262
2263 PR c++/52654
2264 * c-common.h (overflow_type): New enum.
2265 (build_userdef_literal): Add overflow_type argument.
2266 (tree_userdef_literal): Add overflow_type.
2267 (USERDEF_LITERAL_OVERFLOW): New access macro.
2268 * c-common.c (build_userdef_literal): Add overflow_type
2269 argument.
2270 * c-lex.c (c_lex_with_flags): Add overflow_type to
2271 build_userdef_literal calls.
2272 (interpret_integer, interpret_float): Add overflow_type argument.
2273
cc3c4f62
RB
22742012-11-28 Richard Biener <rguenther@suse.de>
2275
2276 PR c/35634
2277 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2278 here and use a type with proper overflow behavior for types that would
2279 need to be promoted for the arithmetic.
2280
77bc5132
JJ
22812012-11-23 Jakub Jelinek <jakub@redhat.com>
2282
2283 PR sanitizer/55435
2284 * c-common.c (handle_no_address_safety_analysis_attribute): New
2285 function.
2286 (c_common_attribute_table): Add no_address_safety_analysis.
2287
5dc99c46
SB
22882012-11-16 Simon Baldwin <simonb@google.com>
2289
2290 * c.opt: Add f[no-]canonical-system-headers.
2291 * c-opts.c (c_common_handle_option): Handle
2292 OPT_fcanonical_system_headers.
2293
a4a0016d
ESR
22942012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2295
2296 PR c++/54413
2297 * c-opts.c (c_common_handle_option): Set new flags.
2298 * c.opt: Describe new flags.
2299
7dbb85a7
JM
23002012-11-09 Jason Merrill <jason@redhat.com>
2301
2302 * c.opt (Wabi-tag): New.
2303
ad7bac31
AK
23042012-11-09 Andi Kleen <ak@linux.intel.com>
2305
2306 PR 55139
2307 * c-common.c (get_atomic_generic_size): Mask with
2308 MEMMODEL_MASK
2309
7332899a
MLI
23102012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2311
2312 PR c/53063
2313 * c.opt (Wformat): Make it Alias Wformat=1.
2314 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2315 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2316 LangEnabledBy.
2317 (Wformat=): RejectNegative. Use LangEnabledBy.
2318 (Wnonnull): Use LangEnabledBy.
2319 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2320 * c-format.c (set_Wformat): Delete.
2321 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2322 (maybe_read_dollar_number): Likewise.
2323 (avoid_dollar_number): Likewise.
2324 (finish_dollar_format_checking): Likewise.
2325 (check_format_info): Likewise.
2326 (check_format_info_main): Likewise.
2327 (check_format_types): Likewise.
2328 (format_type_warning): Likewise.
2329 * c-common.c (int): Likewise.
2330 (check_function_sentinel): Likewise.
2331 * c-common.h (warn_format,set_Wformat): Do not declare here.
2332
34a180a6
MLI
23332012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2334
2335 PR c/53063
2336 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2337 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2338 Use LangEnabledBy.
2339 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2340 common.opt.
2341 (Wvariadic-macros): Init(1).
2342 * c-opts.c (c_common_handle_option): Do not handle them
2343 explicitly.
2344 (c_common_post_options): Likewise.
2345 (sanitize_cpp_opts): warn_unused_macros is now
2346 cpp_warn_unused_macros.
2347 (push_command_line_include): Likewise.
2348 * c-common.c (warn_unknown_pragmas): Do not define.
2349 * c-common.h (warn_unknown_pragmas): Do not declare.
2350
3f46d6a5
MLI
23512012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2352
2353 PR c/51294
2354 * c-common.c (conversion_warning): Handle conditional expressions.
2355
880661a4
JW
23562012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2357
2358 PR c++/54930
2359 * c.opt (Wreturn_local_addr): Define new option.
2360
4514a96b
JM
23612012-10-25 Jason Merrill <jason@redhat.com>
2362
f14edc1a
JM
2363 * c.opt (Wvirtual-move-assign): New.
2364
4514a96b
JM
2365 * c.opt (Winherited-variadic-ctor): New.
2366
93100c6b
MG
23672012-10-25 Marc Glisse <marc.glisse@inria.fr>
2368
2369 PR c++/54427
2370 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2371
1efcb8c6
JM
23722012-10-23 Joseph Myers <joseph@codesourcery.com>
2373
2374 * c-common.h (pch_cpp_save_state): Declare.
2375 * c-target.def (c_preinclude): New hook.
2376 * c-opts.c (done_preinclude): New.
2377 (push_command_line_include): Handle default preincluded header.
2378 (cb_file_change): Call pch_cpp_save_state when calling
2379 push_command_line_include.
2380 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2381 (pch_cpp_save_state): New.
2382 (pch_init): Call pch_cpp_save_state conditionally, instead of
2383 calling cpp_save_state.
2384
4a0ae68e
MLI
23852012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2386
2387 PR c/53063
2388 PR c/40989
2389 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2390 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2391 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2392 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2393 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2394 * c-opts.c (c_common_handle_option): Remove explicit handling from
2395 here.
2396 (c_common_post_options): Likewise.
2397
67e4210b
EB
23982012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2399
2400 * c-ada-spec.c (LOCATION_COL): Delete.
2401 (compare_location): New function.
2402 (compare_node): Use it.
2403 (compare_comment): Likewise.
2404
65d4f2cd
MLI
24052012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2406
2407 PR c/53063
2408 PR c/40989
2409 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2410 * c-opts.c (c_common_handle_option): Do not set them here. Add
2411 comment.
2412 (c_common_post_options): Likewise.
2413
909881cb
EB
24142012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2415
2416 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2417 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2418 Remove POINTER_TYPE handling, add large unsigned handling and use
2419 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2420
3a785c97
JJ
24212012-10-12 Jakub Jelinek <jakub@redhat.com>
2422
2423 PR c/54381
2424 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2425 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2426 locs and array of 3 trees instead of just single loc and single
2427 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2428 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2429 For *cmp* builtins that take two sources strings report warnings
2430 about first and second source, not about destination and source.
2431
5e54f81d
MG
24322012-10-12 Marc Glisse <marc.glisse@inria.fr>
2433
2434 PR c++/53055
2435 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2436
f5b02f1e
EB
24372012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2438
2439 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2440 declaring something coming from another file.
2441
b46dbc6c
AC
24422012-10-10 Arnaud Charlet <charlet@adacore.com>
2443
f5b02f1e 2444 PR ada/54845
b46dbc6c
AC
2445 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2446
5d9de0d0
PC
24472012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2448
2449 PR c++/54194
2450 * c-common.c (warn_about_parentheses): Add location_t parameter;
2451 use EXPR_LOC_OR_LOC.
2452 * c-common.h: Update declaration.
2453
a212e43f
MG
24542012-10-09 Marc Glisse <marc.glisse@inria.fr>
2455
2456 PR c++/54427
2457 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2458 more operations. Make error messages optional.
2459 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2460 (scalar_to_vector): Declare.
2461
b1db7f91
JM
24622012-10-08 Jason Merrill <jason@redhat.com>
2463
2464 * c-common.c (c_common_reswords): Add thread_local.
2465
e28d52cf
DS
24662012-10-08 Dodji Seketeli <dodji@redhat.com>
2467
2468 PR c++/53528 C++11 attribute support
2469 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2470 new functions.
2471 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2472 static function.
2473 (handle_aligned_attribute): In choose strictest alignment
2474 among many. Use new check_cxx_fundamental_alignment_constraints.
2475 (handle_transparent_union_attribute): In c++11 attribute syntax,
2476 don't look through typedefs.
2477
3b78de56
AC
24782012-10-04 Arnaud Charlet <charlet@adacore.com>
2479
2480 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2481 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2482 out of dumpfile.h.
2483
6040bb5f
DC
24842012-09-25 Dehao Chen <dehao@google.com>
2485
2486 PR middle-end/54645
3b78de56 2487 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2488 map when read in the pch.
2489
0b07a57e
AC
24902012-09-18 Arnaud Charlet <charlet@adacore.com>
2491
2492 * c-ada-spec.c: Style fixes.
2493
da5182be
TQ
24942012-09-18 Thomas Quinot <quinot@adacore.com>
2495
2496 * c.opt (-fada-spec-parent): Define new command line switch.
2497 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2498 is specified, generate binding spec as a child of the specified unit.
2499
0ccb505d
PC
25002012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2501 Manuel López-Ibáñez <manu@gcc.gnu.org>
2502
2503 PR c++/53210
2504 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2505
c583af79
AC
25062012-08-23 Arnaud Charlet <charlet@adacore.com>
2507
2508 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2509 for pointers, and add missing Convention C pragma.
2510 (print_ada_struct_decl): Add missing aliased keyword.
2511 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2512
1a4049e7
JJ
25132012-08-17 Jakub Jelinek <jakub@redhat.com>
2514
2515 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2516 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2517 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2518 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2519 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2520
70b5e7dc
RG
25212012-08-10 Richard Guenther <rguenther@suse.de>
2522
2523 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2524
f8923f7e
SB
25252012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2526
2527 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2528 instead of separate pp_newline and pp_flush.
2529 (print_c_tree): Likewise.
2530
e45abe1f
RH
25312012-07-26 Richard Henderson <rth@redhat.com>
2532
2533 * c-common.c (handle_hot_attribute): Allow labels.
2534 (handle_cold_attribute): Likewise.
2535
332f1d24
JJ
25362012-07-20 Jakub Jelinek <jakub@redhat.com>
2537
2538 PR c++/28656
2539 * c-common.c (check_function_nonnull): Handle multiple nonnull
2540 attributes properly.
2541
7ee2468b
SB
25422012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2543
2544 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2545 * c-ada-spec.c: Likewise.
2546 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2547
ee7b28eb
SB
25482012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2549
2550 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2551 Remove code conditional on it.
2552
6bdf3519
SB
25532012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2554
2555 * c-gimplify.c: Do not include basic-block.h.
2556 * c-common.c: Do not include linfuncs.h.
2557
532aafad
SB
25582012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2559
2560 * c-common.h: Include tree.h.
2561
8d0d1915
JM
25622012-07-02 Jason Merrill <jason@redhat.com>
2563
2564 PR c++/53524
2565 * c-common.c (get_priority): Call default_conversion.
2566
fbc873ad
UB
25672012-07-01 Uros Bizjak <ubizjak@gmail.com>
2568
2569 * c-pch.c (c_common_write_pch): Remove unused variables.
2570
d4a10d0a
SB
25712012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2572
2573 * cppspec.c: Moved from gcc/ to here.
2574
6f3a2e23
KT
25752012-06-27 Kai Tietz <ktietz@redhat.com>
2576
2577 PR preprocessor/37215
2578 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2579
8ca92d04
SB
25802012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2581
2582 * c-common.h (c_common_print_pch_checksum): Remove.
2583 * c-pch.c: Do not include output.h.
2584 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2585 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2586 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2587 (struct c_pch_header): Remove.
2588 (get_ident): Update gpch version.
2589 (pch_init): Do not print executable_checksum to asm_out_file.
2590 Do not fail if there is no asm_out_file to read back from. Set
2591 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2592 (c_common_write_pch): Verify that nothing was written to asm_out_file
2593 since pch_init was called. Do not write a c_pch_header, and do not
2594 copy from asm_out_file to the PCH.
2595 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2596 the content of asm_out_file from the PCH.
2597 (c_common_print_pch_checksum): Remove.
2598 * c-opts.c (c_common_init): Print out executable_checksum directly.
2599
70f42967
SB
26002012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2601
2602 * c-target.def (objc_declare_unresolved_class_reference,
2603 objc_declare_class_definition): Add new hooks.
2604
a8781821
SB
26052012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2606
2607 * c-lex.c: Do not include output.h.
2608 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2609 Remove uses of ASM_OUTPUT_IDENT.
2610
9e1a8dd1
RR
26112012-06-15 Marc Glisse <marc.glisse@inria.fr>
2612
2613 PR c++/51033
2614 * c-common.h (c_build_vec_perm_expr): Move decl here.
2615 * c-common.c (c_build_vec_perm_expr): Move definition
2616 here.
2617
6f07a821
SB
26182012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2619
2620 * c.opt (fconserve-space): Turn into a no-op.
2621
9faeb493 26222012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2623
2624 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2625 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2626 both the start and end of the function.
2627
a4b7d13c
SB
26282012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2629
2630 * c-common.c: Do not include output.h.
2631 * c-pragma.c: Likewise.
2632
c265f413
SA
26332012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2634
2635 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2636 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2637 (lang_decl_name): Handle namespace decls.
2638
be7a421e
SB
26392012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2640
2641 * c-ada-spec.c: Do not include output.h.
2642 * c-semantics.c: Likewise.
2643
65de6659
JM
26442012-05-29 Joseph Myers <joseph@codesourcery.com>
2645
2646 * c-common.c: Fix typo.
2647
ca5f4331
MM
26482012-05-29 Michael Matz <matz@suse.de>
2649
2650 * c-common.h (c_expand_decl): Remove prototype.
2651
4f7f7aca
MLI
26522012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2653
2654 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2655 * c-opts.c (c_common_handle_option): Remove code handling
2656 warn_missing_braces.
2657
4a792f9b
PC
26582012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2659
2660 PR c++/25137
2661 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2662 -Wmissing_braces.
2663
650dc14a
DS
26642012-05-22 Dodji Seketeli <dodji@redhat.com>
2665
2666 PR c++/53322
2667 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2668
9b095bf1
MLI
26692012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2670
2671 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2672 * c-opts.c (c_common_handle_option): Do not handle explicitly
2673 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2674
0b2c4be5
DS
26752012-05-16 Dodji Seketeli <dodji@redhat.com>
2676
2677 PR preprocessor/7263
2678 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2679 to cpp_classify_number. For diagnostics, use the precise location
2680 instead of the global input_location.
2681
a1bde5af
PC
26822012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2683
d02924ef 2684 PR c++/11856
a1bde5af
PC
2685 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2686
d1ede5f4
BS
26872012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2688
a1bde5af 2689 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2690
f2bc201f
MLI
26912012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2692
2693 PR 53063
2694 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2695 Wreorder): Use LangEnabledBy.
2696 * c-opts.c (c_common_handle_option): Do not enable them
2697 explicitly. Call lang-specific generated functions.
2698 (c_common_post_options): Do not set them here.
2699
95744782
MLI
27002012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2701
2702 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2703 Wmissing-field-initializers,Wmissing-parameter-type,
2704 Wold-style-declaration,Woverride-init): Use EnabledBy.
2705 * c-opts.c (c_common_post_options): Do not set here explicitly.
2706
7d5a5747
MLI
27072012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2708
2709 PR 53063
2710 * c-opts.c (c_common_handle_option): Use handle_generated_option
2711 to enable sub-options.
2712
5a3c9cf2
PC
27132012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2714
2715 PR c++/53158
2716 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2717
3ac8781c
RG
27182012-05-10 Richard Guenther <rguenther@suse.de>
2719
2720 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2721 adjust commentary about TYPE_IS_SIZETYPE types.
2722
1e537948
MLI
27232012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2724
2725 PR c++/53261
2726 * c-common.c (warn_logical_operator): Check that argument of
2727 integer_zerop is not NULL.
2728
f2c4a785
MLI
27292012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2730
2731 PR c/43772
2732 * c-common.c (warn_logical_operator): Do not warn if either side
2733 is already true or false.
2734
50f305ca
MLI
27352012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2736
2737 PR c/51712
2738 * c-common.c (expr_original_type): New.
2739 (shorten_compare): Do not warn for enumeration types.
2740
0c3641b0
MLI
27412012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2742
2743 * c.opt (fpermissive): Add Var(flag_permissive).
2744
7edaa4d2
MG
27452012-04-30 Marc Glisse <marc.glisse@inria.fr>
2746
2747 PR c++/51033
2748 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2749 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2750
b9c8da34
DS
27512012-04-30 Dodji Seketeli <dodji@redhat.com>
2752
2753 Add -Wvarargs option
2754 * c.opt (Wvarargs): Define new option.
2755
e6c69da0
MLI
27562012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2757
2758 * c-common.c (check_function_arguments): Replace
2759 Wmissing-format-attribute with Wsuggest-attribute=format.
2760
90137d8f
MLI
27612012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2762
2763 * c.opt (Wsuggest-attribute=format): New. Alias of
2764 Wmissing-format-attribute.
2765 * c-format.c (decode_format_type): Replace
2766 Wmissing-format-attribute with Wsuggest-attribute=format.
2767 (check_function_format): Likewise.
2768
9faeb493 27692012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2770
2771 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2772 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2773 * c.opt: Add Wliteral-suffix.
2774
c1771a20
MLI
27752012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2776
2777 PR c/44774
2778 * c.opt (Wpedantic): New.
2779 (pedantic): Alias Wpedantic.
2780 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2781 (c_common_post_options): Likewise.
2782 (sanitize_cpp_opts): Likewise.
2783 * c-lex.c (interpret_float): Likewise.
2784 * c-format.c (check_format_types): Likewise.
2785 * c-common.c (pointer_int_sum): Likewise.
2786 (c_sizeof_or_alignof_type): Likewise.
2787 (c_add_case_label): Likewise.
2788 (c_do_switch_warnings): Likewise.
2789 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2790
04b391c1
JM
27912012-04-15 Jason Merrill <jason@redhat.com>
2792
2793 PR c++/52818
2794 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2795 (C_STD_NAME): Distinguish between C++98 and C++11.
2796
ac868f29
EB
27972012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2798
2799 PR target/52624
2800 * c-common.h (uint16_type_node): Rename into...
2801 (c_uint16_type_node): ...this.
2802 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2803 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2804
fd4116f4
MLI
28052012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2806
2807 * c-common.c (warn_if_unused_value): Move definition to here.
2808 * c-common.h (warn_if_unused_value): Move declaration to here.
2809
573ac65e
WB
28102012-03-23 William Bader <williambader@hotmail.com>
2811
2812 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2813
552b8185
JM
28142012-03-20 Jason Merrill <jason@redhat.com>
2815
2816 * c-common.h (enum cxx_dialect): Add cxx1y.
2817 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2818 test.
2819 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2820 * c-opts.c (c_common_post_options): Likewise.
2821 (set_std_cxx1y): New.
2822 (c_common_handle_option): Call it.
2823 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2824
04398fa8
PC
28252012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2826
2827 PR c++/14710
2828 * c.opt ([Wuseless-cast]): Add.
2829
d2a12ae7
RG
28302012-03-16 Richard Guenther <rguenther@suse.de>
2831
2832 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2833
a12bf402
MLI
28342012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2835
2836 PR c++/44783
2837 * c.opt (ftemplate-backtrace-limit) Add.
2838
5c30094f
RO
28392012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2840
2841 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2842 handling.
2843 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2844 (init_pragma): Don't register extern_prefix.
2845
21fa2faf
RG
28462012-03-12 Richard Guenther <rguenther@suse.de>
2847
2848 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2849 (builtin_type_for_size): Likewise.
2850
e3793c6f
JJ
28512012-02-13 Jakub Jelinek <jakub@redhat.com>
2852
2853 PR c++/52215
2854 * c-common.c (sync_resolve_params): Don't decide whether to convert
2855 or not based on TYPE_SIZE comparison, convert whenever arg_type
2856 is unsigned INTEGER_TYPE.
2857
93286335
PC
28582012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2859
2860 PR c/52118
2861 * c.opt ([Wunused-local-typedefs]): Fix description.
2862
7a421706
MS
28632012-01-24 Mike Stump <mikestump@comcast.net>
2864
2865 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2866 exactly.
2867
ba9b1f11
RG
28682012-01-18 Richard Guenther <rguenther@suse.de>
2869
2870 * c-opts.c (c_common_post_options): Reset LTO flags if
2871 we are about to generate a PCH.
2872
465406be
PC
28732012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2874
2875 PR c++/51777
2876 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2877 use pp_unsigned_wide_integer.
2878
aee15221
RG
28792012-01-10 Richard Guenther <rguenther@suse.de>
2880
2881 PR middle-end/51806
2882 * c-opts.c (c_common_handle_option): Move -Werror handling
2883 to language independent code.
2884
5720c0dc
RG
28852012-01-05 Richard Guenther <rguenther@suse.de>
2886
2887 PR middle-end/51764
2888 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2889 from common.opt.
2890
73ac190a
PC
28912011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2892
2893 PR c++/51316
2894 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2895 of array types with an unknown bound.
2896
48b0b196
JM
28972011-12-20 Joseph Myers <joseph@codesourcery.com>
2898
2899 * c-common.c (flag_isoc99): Update comment to refer to C11.
2900 (flag_isoc1x): Change to flag_isoc11.
2901 * c-common.h (flag_isoc99): Update comment to refer to C11.
2902 (flag_isoc1x): Change to flag_isoc11.
2903 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2904 C11.
2905 * c-opts.c (set_std_c1x): Change to set_std_c11.
2906 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2907 Call set_std_c11.
2908 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2909 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2910 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2911 standard.
2912 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2913 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2914 (std=gnu1x): Make alias of std=gnu11.
2915
d58d6eb5
JM
29162011-12-19 Jason Merrill <jason@redhat.com>
2917
2918 PR c++/51228
2919 * c-common.c (handle_transparent_union_attribute): Check the first
2920 field if the type is complete.
2921
b3908fcc
JW
29222011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2923
2924 PR libstdc++/51365
2925 * c-common.c (RID_IS_FINAL): Add.
2926 * c-common.h (RID_IS_FINAL): Add.
2927
fea3ca91
IS
29282011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2929
2930 * c.opt (fgnu-runtime): Provide full description.
2931 (fnext-runtime): Likewise.
2932 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2933
62bad7cd
AM
29342011-11-28 Andrew MacLeod <amacleod@redhat.com>
2935
2936 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2937 predefines in one place. Add LOCK_FREE predefines.
2938 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2939 new func.
2940
c466c4ff
AM
29412011-11-24 Andrew MacLeod <amacleod@redhat.com>
2942
2943 PR c/51256
9faeb493 2944 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2945 conditions
9faeb493
UB
2946 (resolve_overloaded_atomic_exchange,
2947 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2948 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2949 error_mark_node for error conditions.
9faeb493 2950
a5952633
RG
29512011-11-08 Richard Guenther <rguenther@suse.de>
2952
2953 PR middle-end/51010
2954 c-family/
2955
0a35513e
AH
29562011-11-07 Richard Henderson <rth@redhat.com>
2957 Aldy Hernandez <aldyh@redhat.com>
2958 Torvald Riegel <triegel@redhat.com>
2959
2960 Merged from transactional-memory.
2961
2962 * c-common.c (handle_tm_wrap_attribute,
2963 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2964 (struct c_common_reswords): Added __transaction* keywords.
2965 (struct c_common_attribute_table): Added transaction* and tm_regparm
2966 attributes.
2967 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2968 masks.
2969 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2970 find_tm_attribute): Declare.
2971
6d87092d
JM
29722011-11-07 Jason Merrill <jason@redhat.com>
2973
2974 PR c++/35688
2975 * c-common.c, c-common.h: Revert yesterday's changes.
2976
8e7860a1
JM
29772011-11-06 Jason Merrill <jason@redhat.com>
2978
2979 PR c++/35688
2980 * c-common.c (decl_has_visibility_attr): Split out from...
2981 (c_determine_visibility): ...here.
2982 * c-common.h: Declare it.
2983
d19fa6b5
JM
29842011-11-06 Joseph Myers <joseph@codesourcery.com>
2985
2986 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2987 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2988 type.
2989 (check_user_alignment): New. Split out of
2990 handle_aligned_attribute. Disallow integer constants with
2991 noninteger types. Conditionally allow zero.
2992 (handle_aligned_attribute): Use check_user_alignment.
2993 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2994
86951993
AM
29952011-11-06 Andrew MacLeod <amacleod@redhat.com>
2996 Richard Henderson <rth@redhat.com>
2997
2998 Merged from cxx-mem-model.
2999
3000 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3001 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3002 parameters that are the same type size.
3003 (get_atomic_generic_size): New. Find size of generic
3004 atomic function parameters and do typechecking.
3005 (add_atomic_size_parameter): New. Insert size into parameter list.
3006 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3007 either __atomic_exchange_n or external library call.
9faeb493 3008 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3009 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3010 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3011 __atomic_load_n or an external library call.
3012 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3013 __atomic_store_n or an external library call.
3014 (resolve_overloaded_builtin): Handle new __atomic builtins.
3015
cf9e9959
EB
30162011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3017
3018 PR c++/50608
3019 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3020 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3021 <INDIRECT_REF>: Return the argument.
3022 <ARRAY_REF>: Remove special code for negative offset.
3023 Call fold_build_pointer_plus instead of size_binop.
3024 (fold_offsetof): Remove STOP_REF argument and adjust.
3025 * c-common.h (fold_offsetof_1): Declare.
3026 (fold_offsetof): Remove STOP_REF argument.
3027
25339f10
JM
30282011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3029
3030 PR c++/50810
3031 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3032 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3033 Wnarrowing for C++0x and C++98.
3034 * c.opt ([Wnarrowing]): Update.
3035
89401152
PC
30362011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3037
3038 PR c++/44277
3039 * c.opt: Add Wzero-as-null-pointer-constant.
3040
97e3ad20
JM
30412011-10-31 Jason Merrill <jason@redhat.com>
3042
15694fdd
JM
3043 * c.opt (-fdeduce-init-list): Off by default.
3044
97e3ad20
JM
3045 PR c++/50920
3046 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3047 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3048 and -Wc++11-compat.
3049 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3050
fb9120e3
RAV
30512011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3052
3053 PR c++/30066
3054 * c.opt (fvisibility-inlines-hidden): Description change.
3055
3ce4f9e4
ESR
30562011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3057
3058 Implement C++11 user-defined literals.
3059 * c-common.c (build_userdef_literal): New.
3060 * c-common.def: New tree code.
3061 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3062 * c-lex.c (interpret_float): Add suffix parm.
3063 (c_lex_with_flags): Build literal tokens.
3064
5f53c243
PC
30652011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3066
3067 PR c++/50841
3068 Revert:
3069 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3070
3071 PR c++/50810
3072 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3073 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3074 Wnarrowing for C++0x and C++98.
3075 * c.opt ([Wnarrowing]): Update.
3076
263734e1
PC
30772011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3078
3079 PR c++/50810
3080 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3081 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3082 Wnarrowing for C++0x and C++98.
3083 * c.opt ([Wnarrowing]): Update.
3084
d2e312d7
PC
30852011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3086
3087 PR c++/45385
3088 * c-common.c (conversion_warning): Remove code looking for
3089 artificial operands.
3090
d17687f6
DS
30912011-10-18 Dodji Seketeli <dodji@redhat.com>
3092
3093 PR bootstrap/50760
3094 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3095 !NO_IMPLICIT_EXTERN_C.
d17687f6 3096
fc8396e9
PC
30972011-10-17 Michael Spertus <mike_spertus@symantec.com>
3098
3099 * c-common.c (c_common_reswords): Add __bases,
3100 __direct_bases.
3101 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3102
31032011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3104
3105 PR c++/50757
3106 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3107
847e697a
TT
31082011-10-15 Tom Tromey <tromey@redhat.com>
3109 Dodji Seketeli <dodji@redhat.com>
3110
3111 * c.opt (fdebug-cpp): New option.
3112 * c-opts.c (c_common_handle_option): Handle the option.
3113 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3114 output stream in parameter. Factorized from ...
3115 (maybe_print_line): ... this. Dump location debug information when
3116 -fdebug-cpp is in effect.
3117 (print_line_1): New static function. Takes an output stream in
3118 parameter. Factorized from ...
3119 (print_line): ... here. Dump location information when -fdebug-cpp
3120 is in effect.
3121 (scan_translation_unit): Dump location information when
3122 -fdebug-cpp is in effect.
3123
92582b75
TT
31242011-10-15 Tom Tromey <tromey@redhat.com>
3125 Dodji Seketeli <dodji@redhat.com>
3126
3127 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3128 without argument.
3129 * c-opts.c (c_common_handle_option)<case
3130 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3131 cases. Handle -ftrack-macro-expansion with and without argument.
3132
46427374
TT
31332011-10-15 Tom Tromey <tromey@redhat.com>
3134 Dodji Seketeli <dodji@redhat.com>
3135
3136 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3137 (print_line, cb_define, do_line_change): Adjust to avoid touching
3138 the internals of struct line_map. Use the public API instead.
3139 * c-pch.c (c_common_read_pch): Likewise.
3140 * c-lex.c (fe_file_change): Likewise.
3141
fc8396e9
PC
31422011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3143
3144 PR c++/17212
3145 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3146
31472011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3148
3149 PR c++/33067
3150 * c-pretty-print.c (pp_c_floating_constant): Output
3151 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3152
e79983f4
MM
31532011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3154
3155 * c-common.c (def_builtin_1): Delete old interface with two
3156 parallel arrays to hold standard builtin declarations, and replace
3157 it with a function based interface that can support creating
3158 builtins on the fly in the future. Change all uses, and poison
3159 the old names. Make sure 0 is not a legitimate builtin index.
3160 * c-omp.c (c_finish_omp_barrier): Ditto.
3161 (c_finish_omp_taskwait): Ditto.
3162 (c_finish_omp_flush): Ditto.
3163
6637388f
TG
31642011-10-11 Tristan Gingold <gingold@adacore.com>
3165
3166 * c.opt: (fallow-parameterless-variadic-functions): New.
3167
3797cb21
DS
31682011-09-08 Dodji Seketeli <dodji@redhat.com>
3169
3170 PR c++/33255 - Support -Wunused-local-typedefs warning
3171 * c-common.h (struct c_language_function::local_typedefs): New
3172 field.
9faeb493
UB
3173 (record_locally_defined_typedef, maybe_record_typedef_use)
3174 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3175 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3176 (maybe_record_typedef_use)
3177 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3178 * c.opt: Declare new -Wunused-local-typedefs flag.
3179
693ddb1b
EB
31802011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3181
3182 PR middle-end/50266
3183 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3184 computations.
3185
830c740f
RG
31862011-09-05 Richard Guenther <rguenther@suse.de>
3187
3188 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3189 of integer_minus_one_node for empty array upper bounds.
3190
892a371f
DS
31912011-08-28 Dodji Seketeli <dodji@redhat.com>
3192
3193 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3194 it's the first time it's being called on this main TU.
3195
0e3fdb48
RB
31962011-08-24 Richard Guenther <rguenther@suse.de>
3197
3198 PR c/49396
3199 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3200
32012011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3202
3203 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3204 defined in cpp_init_builtins and c_cpp_builtins.
3205
d4a83c10
JM
32062011-08-19 Joseph Myers <joseph@codesourcery.com>
3207
3208 * c-common.c (c_common_reswords): Add __builtin_complex.
3209 * c-common.h (RID_BUILTIN_COMPLEX): New.
3210
bbceee64
JM
32112011-08-18 Joseph Myers <joseph@codesourcery.com>
3212
3213 * c-common.c (c_common_reswords): Add _Noreturn.
3214 (keyword_is_function_specifier): Handle RID_NORETURN.
3215 * c-common.h (RID_NORETURN): New.
3216
0e3a99ae
AS
32172011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3218
3219 * c-common.c (unsafe_conversion_p): New function. Check if it is
3220 unsafe to convert an expression to the type.
3221 (conversion_warning): Adjust, use unsafe_conversion_p.
3222 * c-common.h (unsafe_conversion_p): New function declaration.
3223
20906c66
JJ
32242011-08-02 Jakub Jelinek <jakub@redhat.com>
3225
3226 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3227 (c_finish_omp_taskyield): New prototype.
3228 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3229 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3230 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3231 or RHS1 have side-effects, evaluate those too in the right spot,
3232 if it is a decl and LHS is also a decl, error out if they
3233 aren't the same.
3234 (c_finish_omp_taskyield): New function.
3235 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3236 * c-pragma.c (omp_pragmas): Add taskyield.
3237 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3238 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3239 PRAGMA_OMP_CLAUSE_MERGEABLE.
3240
770e5a2e
DS
32412011-07-25 Dodji Seketeli <dodji@redhat.com>
3242
3243 * c-common.h (set_underlying_type): Remove parm name from
3244 declaration.
3245
1baae426
RG
32462011-07-25 Romain Geissler <romain.geissler@gmail.com>
3247
3248 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3249
fcb21722
JM
32502011-07-22 Jason Merrill <jason@redhat.com>
3251
76f86d00
JM
3252 PR c++/49793
3253 * c.opt (Wnarrowing): New.
3254
3a636414
JM
3255 PR c++/30112
3256 * c-common.h: Declare c_linkage_bindings.
3257 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3258
fcb21722
JM
3259 PR c++/49813
3260 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3261 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3262 as flag_isoc99 for 'restrict'.
3263 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3264
02614448
ILT
32652011-07-21 Ian Lance Taylor <iant@google.com>
3266
3267 PR middle-end/49705
3268 * c-common.c (c_disable_warnings): New static function.
3269 (c_enable_warnings): New static function.
3270 (c_fully_fold_internal): Change local unused_p to bool. Call
3271 c_disable_warnings and c_enable_warnings rather than change
3272 c_inhibit_evaluation_warnings.
3273
34429675
JM
32742011-07-20 Jason Merrill <jason@redhat.com>
3275
3276 PR c++/6709 (DR 743)
3277 PR c++/42603 (DR 950)
3278 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3279 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3280 (CPP_DECLTYPE): New.
3281 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3282
5d49b6a7
RG
32832011-07-19 Richard Guenther <rguenther@suse.de>
3284
3285 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3286 * c-omp.c (c_finish_omp_for): Likewise.
3287
e84a58ff
EB
32882011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3289
3290 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3291 body on the next line.
3292
329af3c7
JM
32932011-07-08 Jason Merrill <jason@redhat.com>
3294
4063e61b
JM
3295 PR c++/45437
3296 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3297
329af3c7
JM
3298 PR c++/49673
3299 * c-common.c (c_apply_type_quals_to_decl): Don't check
3300 TYPE_NEEDS_CONSTRUCTING.
3301
1a072294
RG
33022011-07-06 Richard Guenther <rguenther@suse.de>
3303
3304 * c-common.c (c_common_nodes_and_builtins):
3305 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3306
fce5dddd
RG
33072011-07-05 Richard Guenther <rguenther@suse.de>
3308
3309 * c-common.c (c_common_nodes_and_builtins): Build all common
3310 tree nodes first.
3311
45d439ac
JJ
33122011-06-27 Jakub Jelinek <jakub@redhat.com>
3313
56300785
JJ
3314 * c-common.h (c_tree_chain_next): New static inline function.
3315
45d439ac
JJ
3316 * c-common.c (check_builtin_function_arguments): Handle
3317 BUILT_IN_ASSUME_ALIGNED.
3318
e0a8ecf2
AM
33192011-06-21 Andrew MacLeod <amacleod@redhat.com>
3320
3321 * c-common.c: Add sync_ or SYNC__ to builtin names.
3322 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3323
33242011-06-20 Pierre Vittet <piervit@pvittet.com>
3325
3326 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3327 handler.
3328 (gen_pragma_handler): New union.
3329 (internal_pragma_handler): New type.
3330 (c_register_pragma_with_data)
3331 (c_register_pragma_with_expansion_and_data): New functions.
3332
3333 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3334 (c_register_pragma, c_register_pragma_with_expansion)
3335 (c_invoke_pragma_handler): Changed to work with
3336 internal_pragma_handler.
3337 (c_register_pragma_with_data)
3338 (c_register_pragma_with_expansion_and_data): New functions.
3339
677f3fa8
JM
33402011-06-14 Joseph Myers <joseph@codesourcery.com>
3341
3342 * c-common.c: Include common/common-target.h.
3343 (handle_section_attribute): Use
3344 targetm_common.have_named_sections.
3345 * c-cppbuiltin.c: Include common/common-target.h.
3346 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3347
d7fc8c14
RG
33482011-06-10 Richard Guenther <rguenther@suse.de>
3349
3350 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3351 to print a IDENTIFIER_NODE.
3352
10e48e39
RO
33532011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3354 Joseph Myers <joseph@codesourcery.com>
3355
3356 * c.opt (fbuilding-libgcc): New option.
3357 * c-cppbuiltin.c (c_cpp_builtins): Define
3358 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3359
6976ae51
JM
33602011-06-07 Jason Merrill <jason@redhat.com>
3361
3ff60975
JM
3362 * c-common.c (max_tinst_depth): Lower default to 900.
3363
6976ae51
JM
3364 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3365
009db074
RG
33662011-06-07 Richard Guenther <rguenther@suse.de>
3367
3368 * c-common.c (c_common_nodes_and_builtins): Do not set
3369 size_type_node or call set_sizetype.
3370
b4592b92
DS
33712011-06-07 Dodji Seketeli <dodji@redhat.com>
3372
3373 PR debug/49130
3374 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3375 type when using pointer comparison to compare types.
b4592b92 3376
014ab419
JW
33772011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3378
3379 * c.opt: Add -Wdelete-non-virtual-dtor.
3380 * c-opts.c (c_common_handle_option): Include it in -Wall.
3381
4f60111f
NF
33822011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3383
3384 PR bootstrap/49190
3385
3386 Revert:
3387 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3388
3389 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3390 not tree_common.
3391
4cc4f2f4
JJ
33922011-05-27 Jakub Jelinek <jakub@redhat.com>
3393
3394 PR c++/49165
3395 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3396 C++ don't call c_common_truthvalue_conversion on void type arms.
3397
38e01f9e
NF
33982011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3399
3400 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3401 (stmt_list_stack): Define.
3402 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3403 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3404
92e948a8
NF
34052011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3406
3407 * c-common.c (warning_candidate_p): Check for BLOCKs.
3408
a2fc3e63
NF
34092011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3410
3411 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3412 not tree_common.
3413
0957c029
JJ
34142011-05-25 Jakub Jelinek <jakub@redhat.com>
3415
3416 * c-common.c (def_fn_type): Remove extra va_end.
3417
828fb3ba
JM
34182011-05-23 Jason Merrill <jason@redhat.com>
3419
3420 PR c++/48106
3421 * c-common.c (c_common_get_narrower): New.
3422 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3423
dde05067
NF
34242011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3425
3426 * c-common.h (check_function_arguments): Tweak prototype of
3427 check_function_arguments.
3428 * c-common.c (check_function_arguments): Likewise. Adjust
3429 calls to check_function_nonnull, check_function_format, and
3430 check_function_sentinel.
3431 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3432 separate attributes and typelist arguments. Use
3433 FOREACH_FUNCTION_ARGS to iterate over argument types.
3434
3c0d13bf
PC
34352011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3436
3437 * c-common.c (c_common_reswords): Reorder.
3438 * c-common.h (rid): Likewise.
3439
8242dd04
NF
34402011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3441
3442 * c-common.c (def_fn_type): Don't call build_function_type, call
3443 build_function_type_array or build_varargs_function_type_array
3444 instead.
3445 (c_common_nodes_and_builtins): Likewise.
3446
3d528853
NF
34472011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3448
3449 * c-common.c (c_add_case_label): Omit the loc argument to
3450 build_case_label.
3451 * c-common.h (build_case_label): Remove.
3452 * c-semantics.c (build_case_label): Remove.
3453
a04a722b
JM
34542011-05-05 Joseph Myers <joseph@codesourcery.com>
3455
3456 * c-objc.h (objc_start_method_definition): Update prototype.
3457 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3458
e19a18d4
NF
34592011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3460
3461 * c-common.c (check_main_parameter_types): Reindent. Don't use
3462 TYPE_ARG_TYPES directly.
3463 (handle_nonnull_attribute): Likewise.
3464 (sync_resolve_params): Likewise.
3465 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3466 to check_format_string.
3467 (handle_format_attribute): Likewise.
3468 (check_format_string): Take a function type to examine instead of
3469 a type list. Use a function_arg_iterator to step through argument
3470 types.
3471
c62c040f
RG
34722011-05-04 Richard Guenther <rguenther@suse.de>
3473
3474 * c-common.c (fix_string_type): Use size_int for index type bounds.
3475 (start_fname_decls): Do not pass NULL to build_int_cst.
3476 (c_init_attributes): Likewise.
3477 * c-lex.c (c_lex_with_flags): Likewise.
3478
c12ff9d8
JM
34792011-04-27 Jason Merrill <jason@redhat.com>
3480
3481 * c-common.c (make_tree_vector_from_list): New.
3482 * c-common.h: Declare it.
3483
304dfbe3
RG
34842011-04-26 Richard Guenther <rguenther@suse.de>
3485
3486 PR preprocessor/48248
3487 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3488 for output size with -P.
3489
3c0d13bf
PC
34902011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3491
3492 * c-common.c (struct c_common_resword): Add __underlying_type.
3493 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3494
04695783
JM
34952011-04-20 Jim Meyering <meyering@redhat.com>
3496
3497 * c-format.c (init_dollar_format_checking): Remove useless
3498 if-before-free.
3499
0dc33c3c
NP
35002011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3501
3502 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3503 (objc_detect_field_duplicates): New.
0dc33c3c 3504 * stub-objc.c: Likewise.
3c0d13bf 3505
c59633d9
NP
35062011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3507
3508 * stub-objc.c (objc_declare_protocols): Renamed to
3509 objc_declare_protocol.
3510 * c-objc.h: Likewise.
3c0d13bf 3511
32dabdaf
NP
35122011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3513
3514 * stub-objc.c (objc_declare_class): Updated argument name.
3515
81f653d6
NF
35162011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3517
3518 * c-common.h (c_common_init_ts): Declare.
3519 * c-common.c (c_common_init_ts): Define.
3520
eb345401
NP
35212011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3522
3523 * c-objc.h (objc_build_message_expr): Updated prototype.
3524 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3525
a358e188
MJ
35262011-04-12 Martin Jambor <mjambor@suse.cz>
3527
3528 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3529 of cgraph_node.
3530
e6313a78
RG
35312011-04-11 Richard Guenther <rguenther@suse.de>
3532
3533 * c-common.c (complete_array_type): Build a range type of
3534 proper type.
3535
dcf0c47e
NF
35362011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3537
3538 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3539 (handle_type_generic_attribute): Likewise.
3540
1ee44b26
JM
35412011-04-07 Jason Merrill <jason@redhat.com>
3542
3543 PR c++/48450
3544 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3545 conversion from C++0x scoped enum.
3546
acce4e77
JM
35472011-04-06 Joseph Myers <joseph@codesourcery.com>
3548
3549 * c-target-def.h: New file.
3550 * c-target.def: New file.
3551 * c-target.h: New file.
3552 * c-common.c (targetcm): Don't define here.
3553 * c-common.h (default_handle_c_option): Declare.
3554 * c-format.c: Include c-target.h instead of target.h.
3555 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3556 include tm.h.
3557 (default_handle_c_option): Move from targhooks.c.
3558
e2eefb55
JJ
35592011-03-29 Jakub Jelinek <jakub@redhat.com>
3560
3561 PR preprocessor/48248
3562 * c-ppoutput.c (print): Add src_file field.
3563 (init_pp_output): Initialize it.
3564 (maybe_print_line): Don't optimize by adding up to 8 newlines
3565 if map->to_file and print.src_file are different file.
3566 (print_line): Update print.src_file.
3567
ba78087b
KT
35682011-03-25 Kai Tietz <ktietz@redhat.com>
3569
3570 * c-ada-spec.c (compare_comment): Use filename_cmp
3571 instead of strcmp for filename.
3572
0edf1bb2
JL
35732011-03-25 Jeff Law <law@redhat.com>
3574
adfac8df 3575 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 3576
c7dc8804
JM
35772011-03-25 Jason Merrill <jason@redhat.com>
3578
3579 * c.opt: Add -std=c++03.
3580
d1d879b1
EB
35812011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3582
3583 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3584
62d784f7
KT
35852011-03-17 Kai Tietz
3586
3587 PR target/12171
5050afdf
KT
3588 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3589 Display allowed attributes for function pointer types.
3590 (pp_c_attributes_display): New function to display
3591 attributes having affects_type_identity flag set to true.
3592 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3593
62d784f7
KT
3594 * c-common.c (c_common_attribute_table):
3595 Add new element.
3596 (c_common_format_attribute_table): Likewise.
3597
82d37118
JM
35982011-03-18 Jason Merrill <jason@redhat.com>
3599
49a000c3
JM
3600 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3601 * c-common.h: Don't declare it here.
3602 * c-common.c: Or define it here.
3603 * c-opts.c (c_common_handle_option): Or set it here.
3604
82d37118
JM
3605 PR c++/35315
3606 * c-common.c (handle_transparent_union_attribute): Don't
3607 make a duplicate type in C++.
3608
17bc631c
JM
36092011-03-15 Jason Merrill <jason@redhat.com>
3610
3611 * c-common.c (max_constexpr_depth): New.
3612 * c-common.h: Declare it.
3613 * c-opts.c (c_common_handle_option): Set it.
3614 * c.opt (fconstexpr-depth): New option.
3615
1b9b91a6
JM
36162011-03-11 Jason Merrill <jason@redhat.com>
3617
f231b5ff
JM
3618 * c-common.c (attribute_takes_identifier_p): Add missing const.
3619
1b9b91a6
JM
3620 PR c++/46803
3621 * c-common.c (attribute_takes_identifier_p): Assume that an
3622 unknown attribute takes an identifier.
3623
a19e4d44
NF
36242011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3625
3626 PR c/47786
3627 * c-common.c (c_type_hash): Call list_length instead of iterating
3628 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3629
982d62f6
JJ
36302011-02-19 Jakub Jelinek <jakub@redhat.com>
3631
3632 PR c/47809
3633 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3634
0a256240
NP
36352011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3636
3637 * c.opt (fobjc-abi-version=) New.
3638 (fobjc-nilcheck): New.
3639
ba9e6dd5
NF
36402011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3641
3642 PR c++/46890
3643 * c-common.h (keyword_is_decl_specifier): Declare.
3644 * c-common.c (keyword_is_decl_specifier): Define.
3645 (keyword_is_function_specifier): New function.
3646
7273813a
JJ
36472011-01-26 Jakub Jelinek <jakub@redhat.com>
3648
3649 PR c/47473
3650 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3651 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3652 REAL_TYPE.
3653
908ef79b
AC
36542011-01-26 Arnaud Charlet <charlet@adacore.com>
3655
3656 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3657
237e9384
JJ
36582011-01-26 Jakub Jelinek <jakub@redhat.com>
3659
3660 PR pch/47430
3661 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3662 after init_c_lex if pch_file is set.
3663
47ea1edf
DK
36642011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3665
d4dba752 3666 PR c++/43601
47ea1edf
DK
3667 * c.opt (-fkeep-inline-dllexport): New switch.
3668
2aa9c6ae
RG
36692011-01-12 Richard Guenther <rguenther@suse.de>
3670
3671 PR middle-end/32511
3672 * c-common.c (handle_weak_attribute): Warn instead of error
3673 on declaring an inline function weak.
3674
7bd11157
TT
36752011-01-05 Tom Tromey <tromey@redhat.com>
3676
3677 * c-common.h (lvalue_error): Update.
3678 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3679 not error.
3680
0e66e494 36812010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3682
b4f588c4
NP
3683 PR objc/47075
3684 * c-objc.h (objc_finish_message_expr): Added argument to
3685 prototype.
3686
f4da8dce
NF
36872010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3688
3689 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3690 Use prototype_p.
3691
46270f14
NP
36922010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3693
3694 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3695 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3696
4816c593
NF
36972010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3698
3699 * c-common.h (readonly_error): Declare.
3700 * c-common.c (readonly_error): Define.
3701
7a6daeb0
NF
37022010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3703
3704 * c-common.h (invalid_indirection_error): Declare.
3705 * c-common.c (invalid_indirection_error): Define.
3706
892f6119
RG
37072010-12-03 Richard Guenther <rguenther@suse.de>
3708
3709 PR c/46745
3710 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3711 (pp_c_unary_expression): Likewise.
3712 (pp_c_expression): Likewise.
3713
6c39e757
NP
37142010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3715
3716 * c-common.h (objc_finish_function): New.
3717 (objc_non_volatilized_type): Removed.
3718 (objc_type_quals_match): Removed.
3719 * stub-objc.c (objc_finish_function): New.
3720 (objc_non_volatilized_type): Removed.
3721 (objc_type_quals_match): Removed.
9faeb493 3722
7c475d11
JM
37232010-11-30 Joseph Myers <joseph@codesourcery.com>
3724
3725 * c-common.h (parse_optimize_options): Declare.
3726 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3727 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3728
71f3e391
JM
37292010-11-29 Joseph Myers <joseph@codesourcery.com>
3730
3731 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3732 GET_ENVIRONMENT.
3733 * c-pch.c (O_BINARY): Don't define here.
3734 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3735
d5fabb58
JM
37362010-11-25 Joseph Myers <joseph@codesourcery.com>
3737
3738 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3739 targetm.except_unwind_info.
3740
299404a1
JM
37412010-11-23 Joseph Myers <joseph@codesourcery.com>
3742
3743 * c-opts.c (c_common_handle_option): Pass location to
3744 set_struct_debug_option.
3745
c98cd5bf
JM
37462010-11-23 Joseph Myers <joseph@codesourcery.com>
3747
3748 * c-common.c (visibility_options): Move from ../opts.c.
3749 * c-common.h (struct visibility_flags, visibility_options):
3750 Declare here.
3751 * c-opts.c (finish_options): Rename to c_finish_options.
3752 (c_common_init): Update call to finish_options.
3753
a9546771
NP
37542010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3755
3756 PR objc/34033
3757 * c-lex.c (lex_string): Check that each string in an Objective-C
3758 string concat sequence starts with either one or zero '@', and
3759 that there are no spurious '@' signs at the end.
3760
24a57808
JM
37612010-11-20 Joseph Myers <joseph@codesourcery.com>
3762
3763 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3764 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3765 HANDLE_PRAGMA_VISIBILITY.
3766 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3767 HANDLE_PRAGMA_VISIBILITY): Don't define.
3768 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3769
a9aa2c3a
NF
37702010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3771
3772 PR c++/16189
3773 PR c++/36888
3774 PR c++/45331
3775 * c-common.h (keyword_begins_type_specifier): Declare.
3776 (keyword_is_storage_class_specifier): Declare.
3777 (keyword_is_type_qualifier): Declare.
3778 * c-common.c (keyword_begins_type_specifier): New function.
3779 (keyword_is_storage_class_specifier): New function.
3780 (keyword_is_type_qualifier): Declare.
3781
5386338c
JM
37822010-11-19 Joseph Myers <joseph@codesourcery.com>
3783
3784 PR c/46547
3785 * c-common.c (in_late_binary_op): Define.
3786 (c_common_truthvalue_conversion): Check in_late_binary_op before
3787 calling c_save_expr.
3788 * c-common.h (in_late_binary_op): Declare.
3789
69ccdddb
JM
37902010-11-19 Joseph Myers <joseph@codesourcery.com>
3791
3792 * c-opts.c (c_common_handle_option): Update calls to
3793 set_struct_debug_option.
3794
6b192a09
NP
37952010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3796
3797 * c-common.h (objc_declare_protocols): Added additional argument.
3798 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3799
fb52b50a
NF
38002010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3801
3802 PR c/33193
3803 * c-common.h (build_real_imag_expr): Declare.
3804 * c-semantics.c (build_real_imag_expr): Define.
3805
b37421c6
JM
38062010-11-17 Joseph Myers <joseph@codesourcery.com>
3807
3808 * c-opts.c (c_common_parse_file): Take no arguments.
3809 * c-common.h (c_common_parse_file): Update prototype.
3810
07078664
JJ
38112010-11-16 Jakub Jelinek <jakub@redhat.com>
3812
3813 PR c++/46401
3814 * c-common.c (warning_candidate_p): Don't track non-const calls
3815 or STRING_CSTs.
3816
c6a13190
ILT
38172010-11-15 Ian Lance Taylor <iant@google.com>
3818
3819 * c-lex.c (init_c_lex): Set macro debug callbacks if
3820 flag_dump_go_spec is set.
3821
925e8657
NP
38222010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3823
3824 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3825 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3826
bb0a9581
NF
38272010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3828
3829 PR preprocessor/45038
3830 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3831 dialects.
3832
c5fa0890
JM
38332010-11-12 Joseph Myers <joseph@codesourcery.com>
3834
3835 * c-common.h (c_family_lang_mask): Declare.
3836 * c-opts.c (c_family_lang_mask): Make extern.
3837 * c-pragma.c (handle_pragma_diagnostic): Use
3838 control_warning_option.
3839
a4d8c676
JM
38402010-11-12 Joseph Myers <joseph@codesourcery.com>
3841
3842 * c-common.c (parse_optimize_options): Update call to
3843 decode_options.
3844 * c-common.h (c_common_handle_option): Update prototype.
3845 * c-opts.c (c_common_handle_option): Take location_t parameter and
3846 pass it to other functions.
3847
f954bd2c
JM
38482010-11-11 Joseph Myers <joseph@codesourcery.com>
3849
3850 * c-opts.c (warning_as_error_callback): Remove.
3851 (c_common_initialize_diagnostics): Don't call
3852 register_warning_as_error_callback.
3853 (c_common_handle_option): Handle -Werror=normalized= here.
3854
d8a07487
JM
38552010-11-10 Joseph Myers <joseph@codesourcery.com>
3856
3857 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3858 in diagnostic.
3859 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3860 letter.
3861 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3862 Remove trailing '.' from diagnostics.
3863 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3864
d5478783
JM
38652010-11-10 Joseph Myers <joseph@codesourcery.com>
3866
3867 * c-common.c (parse_optimize_options): Pass global_dc to
3868 decode_options.
3869 * c-opts.c (c_common_handle_option): Pass &global_options to
3870 set_Wstrict_aliasing.
3871 * c.opt (v): Don't mark Common or document here.
3872
91ebb981
IS
38732010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3874
3875 PR target/44981
3876 * c-format.c (format_type): New type gcc_objc_string_format_type.
3877 (valid_stringptr_type_p): New.
3878 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3879 (check_format_string): Pass expected type, use
91ebb981
IS
3880 valid_stringptr_type_p (), check that the format string types are
3881 consistent with the format specification.
3882 (decode_format_attr): Warn if NSString is used outside objective-c.
3883 (format_types_orig): Add NSString.
3884 (format_name): New.
3885 (format_flags): New.
3886 (check_format_arg): Handle format strings requiring an external parser.
3887 first_target_format_type: New variable.
3888 (handle_format_attribute): Set up first_target_format_type, pass the
3889 expected format arg string type to check_format_string().
3890 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3891 * stub-objc.c (objc_string_ref_type_p): New.
3892 (objc_check_format_arg): New.
3893
bede2adc
NP
38942010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3895
9faeb493 3896 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3897 * c-common.h (objc_build_class_component_ref): New.
3898 * stub-objc.c (objc_build_class_component_ref): New.
3899
9a179d01
NP
39002010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3901
3902 * c.opt (Wproperty-assign-default): New option.
3903
22d8d616
NP
39042010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3905
3906 Implemented -fobjc-std=objc1 flag.
3907 * c.opt (fobjc-std=objc1): New option.
3908
2debdb4f
NP
39092010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3910
3911 Implemented format and noreturn attributes for Objective-C methods.
3912 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3913 attribute for Objective-C methods.
3914
ec52b111
JM
39152010-10-31 Jason Merrill <jason@redhat.com>
3916
3917 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3918 EXPR_LOC_OR_HERE.
3919
46a88c12
NP
39202010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3921
3922 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3923 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3924 (objc_add_property_declaration): Removed arguments for copies and
3925 ivar.
3926 (objc_build_getter_call): Renamed to
3927 objc_maybe_build_component_ref.
3928 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3929 (objc_is_property_ref): New.
3930 * c-common.c (c_common_reswords): Removed copies and ivar.
3931 * stub-objc.c (objc_add_property_declaration): Removed arguments
3932 for copies and ivar.
3933 (objc_build_getter_call): Renamed to
3934 objc_maybe_build_component_ref.
3935 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3936 (objc_is_property_ref): New.
9faeb493 3937
1e4bf85b
AC
39382010-10-29 Arnaud Charlet <charlet@adacore.com>
3939 Matthew Gingell <gingell@adacore.com>
3940
3941 * c-ada-spec.c (separate_class_package): New function.
3942 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3943 name of their enclosing package.
3944 (print_ada_declaration): Use separate_class_package.
3945
81f0bab2
JM
39462010-10-27 Jason Merrill <jason@redhat.com>
3947
2b08f2c5
JM
3948 * c-common.c (c_common_reswords): Add __is_literal_type.
3949 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3950
81f0bab2
JM
3951 * c-common.c (check_case_value): Remove special C++ code.
3952
200290f2
NP
39532010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3954
3955 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3956 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3957 and RID_LAST_PATTR.
3958 (objc_add_property_declaration): Added additional arguments.
3959 (objc_property_attribute_kind): Removed.
3960 (objc_set_property_attr): Removed.
3961 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3962 copy and nonatomic.
3963 * stub-objc.c (objc_add_property_declaration): Added additional
3964 arguments.
3965 (objc_set_property_attr): Removed.
9faeb493 3966
f614132b
NP
39672010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3968
3969 * c-common.h (objc_add_property_variable): Renamed to
3970 objc_add_property_declaration. Added location argument.
3971 * stub-objc.c (objc_add_property_variable): Same change.
3972
b8a18805
NP
39732010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3974
3975 * c-common.h (objc_maybe_printable_name): New.
3976 * stub-objc.c (objc_maybe_printable_name): New.
3977
30cd1c5d
AS
39782010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3979 Andrew Pinski <pinskia@gmail.com>
3980
3981 * c-common.h (c_common_mark_addressable_vec): Declare.
3982 * c-common.c (c_common_mark_addressable_vec): New function.
3983
249a82c4
NP
39842010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3985
3986 * c-common.h (objc_set_method_type): Removed.
3987 (objc_add_method_declaration): Added boolean argument.
3988 (objc_start_method_definition): Same change.
3989 (objc_build_method_signature): Same change.
3990 * stub-objc.c (objc_set_method_type): Removed.
3991 (objc_add_method_declaration): Added boolean argument.
3992 (objc_start_method_definition): Same change.
3993 (objc_build_method_signature): Same change.
3994
977e30bc
NP
39952010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3996
3997 * c-common.h (finish_file): Removed.
3998 (objc_write_global_declarations): New.
3999 * c-opts.c (c_common_parse_file): Do not call finish_file.
4000 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4001
da57d1b9
NP
40022010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4003
4004 Implemented parsing @synthesize and @dynamic for
4005 Objective-C/Objective-C++.
4006 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4007 (objc_add_synthesize_declaration): New.
4008 (objc_add_dynamic_declaration): New.
4009 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4010 * stub-objc.c (objc_add_synthesize_declaration): New.
4011 (objc_add_dynamic_declaration): New.
9faeb493 4012
0069111f
MM
40132010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4014
4015 PR target/46041
4016 * c-cppbuiltin.c (mode_has_fma): Move function here from
4017 builtins.c. Don't use the fma optab, instead just use the
4018 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4019 using -save-temps.
4020
e426b47b
NP
40212010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4022
4023 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4024
e426b47b
NP
4025 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4026
9faeb493 4027 Radar 4330422
e426b47b
NP
4028 * c-common.h (objc_non_volatilized_type): New declaration
4029 * stub-objc.c (objc_non_volatilized_type): New stub.
4030
90fbfdc3
NP
40312010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4032
e426b47b 4033 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4034
4035 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4036
9faeb493 4037 Radar 4133425
90fbfdc3 4038 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4039 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4040
c37d8c30
IS
40412010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4042
4043 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4044 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4045 (objc_ivar_visibility_kind): New enum.
4046 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4047 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4048 visibility enum.
4049
1b1562a5
MM
40502010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4051
4052 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4053 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4054 has the appropriate fma builtins.
4055 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4056
668ea4b1
IS
40572010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4058
1b1562a5 4059 merge from FSF apple 'trunk' branch.
668ea4b1 4060 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4061
668ea4b1
IS
4062 Radars 4436866, 4505126, 4506903, 4517826
4063 * c-common.c (c_common_resword): Define @property and its attributes.
4064 * c-common.h: Define property attribute enum entries.
4065 (OBJC_IS_PATTR_KEYWORD): New.
4066 (objc_property_attribute_kind): New enum.
4067 Declare objc_set_property_attr (), objc_add_property_variable (),
4068 objc_build_getter_call () and objc_build_setter_call ().
4069 * stub-objc.c (objc_set_property_attr): New stub.
4070 (objc_add_property_variable): Likewise.
4071 (objc_build_getter_call): Likewise.
4072 (objc_build_setter_call) Likewise.
1b1562a5 4073
a1178b30
IS
40742010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4075
1b1562a5 4076 merge from FSF apple 'trunk' branch.
a1178b30
IS
4077 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4078
4079 Radar 3803157 (method attributes)
4080 * c-common.c (handle_deprecated_attribute): Recognize
4081 objc methods as valid declarations.
4082 * c-common.h: Declare objc_method_decl ().
1b1562a5 4083 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4084
a75bfaa6
JM
40852010-10-08 Joseph Myers <joseph@codesourcery.com>
4086
4087 * c-common.c (parse_optimize_options): Call
4088 decode_cmdline_options_to_array_default_mask before
4089 decode_options. Update arguments to decode_options.
4090 * c-common.h (c_common_init_options_struct): Declare.
4091 * c-opts.c (c_common_init_options_struct): New. Split out from
4092 c_common_init_options.
4093
f05b9d93
NP
40942010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4095
4096 Implemented fast enumeration for Objective-C.
4097 * c-common.h (objc_finish_foreach_loop): New.
4098 * stub-objc.c (objc_finish_foreach_loop): New.
4099
1ebe4b4f
JM
41002010-10-05 Joseph Myers <joseph@codesourcery.com>
4101
4102 * c-common.h (struct diagnostic_context): Don't declare here.
4103 (c_common_initialize_diagnostics): Declare using
4104 diagnostic_context typedef.
4105 * c-opts.c (c_common_handle_option): Pass global_dc to
4106 handle_generated_option.
4107
d4d24ba4
JM
41082010-10-04 Joseph Myers <joseph@codesourcery.com>
4109
4110 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4111 handle_generated_option.
4112
478a1c5b
ILT
41132010-10-03 Ian Lance Taylor <iant@google.com>
4114
4115 * c.opt (-fplan9-extensions): New option.
4116
82a1c2fe
FXC
41172010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4118
4119 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4120 Remove.
4121 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4122 of duplicating code.
4123
92902b1b
IS
41242010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4125
4126 * c-common.c: Add two new entries for @optional
4127 and @required keywords.
4128
4129 merge from FSF 'apple/trunk' branch.
4130 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4131
4132 Radar 4386773
4133 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4134 objective-c keywords.
4135 (objc_set_method_opt): New declaration.
4136 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4137
46625112
JM
41382010-09-30 Joseph Myers <joseph@codesourcery.com>
4139
4140 * c-common.c (handle_optimize_attribute): Pass &global_options to
4141 cl_optimization_save and cl_optimization_restore.
4142 * c-opts.c (c_common_handle_option): Pass &global_options to
4143 handle_generated_option.
4144 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4145 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4146 &global_options to cl_optimization_restore.
4147
49b91f05
NP
41482010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4149
4150 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4151 Objective-C/Objective-C++ keywords.
4152
13ed556f 41532010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4154
9faeb493
UB
4155 Merge from 'apple/trunk' branch on FSF servers.
4156
a6341d57
NP
4157 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4158
4159 Radar 4281748
4160 * c-common.h (objc_check_global_decl): New declaration.
4161 * stub-objc.c (objc_check_global_decl): New stub.
4162
f0036cca
JM
41632010-09-29 Joseph Myers <joseph@codesourcery.com>
4164
4165 * c.opt: Don't use VarExists.
4166
e3339d0f
JM
41672010-09-29 Joseph Myers <joseph@codesourcery.com>
4168
4169 * c-common.c (c_cpp_error): Update names of diagnostic_context
4170 members.
4171 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4172 cl_optimization members.
4173 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4174 sanitize_cpp_opts, finish_options): Update names of cpp_options
4175 members.
4176
1973201f
NP
41772010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4178
4179 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4180 (objc_is_reserved_word): Removed.
4181 * c-common.c: Updated comments.
4182 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4183 objc_is_reserved_word.
4184 * stub-objc.c (objc_is_reserved_word): Removed.
4185
f7e71da5
IS
41862010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4187
9faeb493 4188 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4189 include attributes.
4190 (objc_start_method_definition): Likewise.
4191 (objc_build_keyword_decl): Likewise.
4192 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4193 (objc_start_method_definition): Likewise.
4194 (objc_build_keyword_decl): Likewise.
4195
c165dca7
IS
41962010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4197
4198 * c-common.h (objc_start_class_interface): Adjust prototype.
4199 (objc_start_category_interface): Likewise.
4200 (objc_start_protocol): Likewise.
4201 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4202 (objc_start_class_interface): Likewise.
4203 (objc_start_category_interface): Likewise.
4204
7458026b
ILT
42052010-09-27 Ian Lance Taylor <iant@google.com>
4206
4207 * c-common.c (c_common_attribute_table): Add no_split_stack.
4208 (handle_no_split_stack_attribute): New static function.
4209
b581b85b
NP
42102010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4211
9faeb493 4212 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4213
4214 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4215
9faeb493 4216 Radar 4229905
b581b85b
NP
4217 * c-common.h (objc_have_common_type): New declaration.
4218 * stub-objc.c (objc_have_common_type): New stub.
4219
4220 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4221
4222 Radar 4154928
4223 * c-common.h (objc_common_type): New prototype.
9faeb493 4224 * stub-objc.c (objc_common_type): New stub.
b581b85b 4225
46a4da10
JH
42262010-09-24 Jan Hubicka <jh@suse.cz>
4227
4228 * c-common.c (handle_leaf_attribute): New function.
4229 (struct attribute_spec c_common_att): Add leaf.
4230
e200444e
JM
42312010-09-22 Joseph Myers <joseph@codesourcery.com>
4232
4233 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4234 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4235 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4236 -include-barrier, -include-directory, -include-directory=,
4237 -include-directory-after, -include-directory-after=,
4238 -include-prefix, -include-prefix=, -include-with-prefix,
4239 -include-with-prefix=, -include-with-prefix-after,
4240 -include-with-prefix-after=, -include-with-prefix-before,
4241 -include-with-prefix-before=, -no-integrated-cpp,
4242 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4243 -output=, -pedantic, -pedantic-errors, -preprocess,
4244 -print-missing-file-dependencies, -trace-includes, -traditional,
4245 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4246 -user-dependencies, -verbose, -write-dependencies,
4247 -write-user-dependencies, no-integrated-cpp, traditional): New.
4248
29a80ea6
NP
42492010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4250
4251 PR objc/23710
ac1fc2fc
NP
4252 * c-common.h (objc_start_method_definition): Return bool instead
4253 of void.
4254 * stub-objc.c (objc_start_method_definition): Return bool instead
4255 of void.
4256
42572010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4258
4259 PR objc/25965
4260 * c-common.h (objc_get_interface_ivars): New declaration.
4261 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4262
de621752
ILT
42632010-09-15 Ian Lance Taylor <iant@google.com>
4264
4265 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4266 messages. Remove period at end of warning message.
de621752 4267
ba885ec5
NS
42682010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4269
4270 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4271 (handle_alias_attribute): ... here.
4272 (handle_ifunc_attribute): New.
4273
c5ee1358
MM
42742010-09-06 Mark Mitchell <mark@codesourcery.com>
4275
4276 * c-common.h (do_warn_double_promotion): Declare.
4277 * c-common.c (do_warn_double_promotion): Define.
4278
0a0b3574
MM
42792010-09-05 Mark Mitchell <mark@codesourcery.com>
4280
4281 * c.opt (Wdouble-promotion): New.
4282
d1779886
JM
42832010-09-02 Joseph Myers <joseph@codesourcery.com>
4284
4285 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4286 fvtable-thunks, fxref): Mark no longer supported in help text.
4287
2d2bd949
JM
42882010-09-02 Joseph Myers <joseph@codesourcery.com>
4289
4290 * c.opt (Wimport, fall-virtual, falt-external-templates,
4291 fdefault-inline, fenum-int-equiv, fexternal-templates,
4292 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4293 fname-mangling-version-, fnew-abi, fnonnull-objects,
4294 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4295 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4296 applicable.
4297 (fhandle-exceptions): Mark with Alias and Warn.
4298 * c-opts.c (c_common_handle_option): Don't handle options marked
4299 as ignored.
4300
5de8299c
JM
43012010-09-02 Joseph Myers <joseph@codesourcery.com>
4302
4303 * c.opt (Wcomments, Werror-implicit-function-declaration,
4304 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4305 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4306 aliases.
4307 * c-common.c (option_codes): Use OPT_Wcomment instead of
4308 OPT_Wcomments.
4309 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4310 Don't handle options marked as aliases.
4311
0ceb0201
RG
43122010-08-25 Richard Guenther <rguenther@suse.de>
4313
4314 * c-common.c (c_common_get_alias_set): Remove special
4315 handling for pointers.
4316
ac47786e
NF
43172010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4318
4319 * c-common.c: Use FOR_EACH_VEC_ELT.
4320 * c-gimplify.c: Likewise.
4321 * c-pragma.c: Likewise.
4322
c878765b
JM
43232010-08-16 Joseph Myers <joseph@codesourcery.com>
4324
4325 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4326 RejectDriver.
4327 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4328 RejectDriver.
4329 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4330 instead of OPT_MDX and OPT_MMDX.
4331
603349bf
JM
43322010-08-16 Joseph Myers <joseph@codesourcery.com>
4333
4334 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4335
644fa7ac
JM
43362010-08-12 Joseph Myers <joseph@codesourcery.com>
4337
4338 * c.opt (MD, MMD): Change to MDX and MMDX.
4339 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4340
481e1176
JM
43412010-08-11 Joseph Myers <joseph@codesourcery.com>
4342
4343 * c-opts.c (c_common_handle_option): Call handle_generated_option
4344 instead of handle_option.
4345
ac8dc9f7
NF
43462010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4347
4348 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4349 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4350
4f8c876d
NF
43512010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4352
4353 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4354 (pending_redefine_extname): Change type to a VEC.
4355 (add_to_renaming_pragma_list): Update for new type of
4356 pending_redefine_extname.
ac8dc9f7 4357 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4358
3b0c690e
AC
43592010-08-04 Arnaud Charlet <charlet@adacore.com>
4360
4361 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4362 visited.
4363 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4364 decide whether a type has already been declared/seen.
4365 Do not go to the original type.
4366 (dump_nested_types): New parameter forward.
4367 Generate forward declaration if needed and mark type as visited.
4368 (print_ada_declaration): Call dump_nested_types if not already done.
4369 Mark types as visited.
4370
1890bccc
JM
43712010-08-03 Joseph Myers <joseph@codesourcery.com>
4372
4373 * c.opt (-print-pch-checksum): Remove option.
4374 * c-opts.c (c_common_handle_option): Don't handle
4375 OPT_print_pch_checksum.
4376
5f20c657
JM
43772010-07-27 Joseph Myers <joseph@codesourcery.com>
4378
4379 * c-common.h (c_common_handle_option): Update prototype and return
4380 value type.
4381 * c-opts.c (c_common_handle_option): Update prototype and return
4382 value type. Update calls to handle_option and
4383 enable_warning_as_error.
4384
f551f80c
JJ
43852010-07-27 Jakub Jelinek <jakub@redhat.com>
4386
4387 PR c/45079
4388 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4389
61ff2bdc
JM
43902010-07-27 Joseph Myers <joseph@codesourcery.com>
4391
4392 * c-common.h (c_common_missing_argument): Remove.
4393 * c-opts.c (c_common_missing_argument): Remove.
4394 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4395 idirafter, imacros, include, isysroot, isystem, iquote): Add
4396 MissingArgError.
4397 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4398
7a9bf9a4
JM
43992010-07-27 Joseph Myers <joseph@codesourcery.com>
4400
4401 * c-common.h (c_common_option_lang_mask,
4402 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4403 New.
4404 (c_common_init_options): Update prototype.
4405 * c-opts.c (c_common_option_lang_mask): New.
4406 (c_common_initialize_diagnostics): Split out of
4407 c_common_init_options.
4408 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4409 New.
4410 (c_common_init_options): Update prototype. Use decoded options in
4411 search for -lang-asm.
4412
910ad8de
NF
44132010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4414
4415 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4416 * c-format.c: Likewise.
4417
718f9c0f
MLI
44182010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4419
4420 * c-common.h: Include diagnostic-core.h. Error if already
4421 included.
4422 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4423
4d451982
MLI
44242010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4425
adfac8df 4426 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
4427 Do not include expr.h
4428 (vector_mode_valid_p): Move here.
4429
119fe915
SB
44302010-06-21 DJ Delorie <dj@redhat.com>
4431
4432 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4433 allow these pragmas anywhere.
4434
44352010-06-14 Jakub Jelinek <jakub@redhat.com>
4436
4437 PR bootstrap/44509
4438 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4439 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4440 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4441 ggc_strdup instead of xstrdup.
4442
44432010-06-10 Jakub Jelinek <jakub@redhat.com>
4444
4445 * c-cppbuiltin.c: Include cpp-id-data.h.
4446 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4447 (lazy_hex_fp_value): New function.
4448 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4449
6662d794
MLI
44502010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4451
4452 * c-gimplify.c: Do not include tree-flow.h
4453
38f8b050
JR
44542010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4455
4456 PR other/44034
4457 * c-common.c: Rename targetm member:
4458 targetm.enum_va_list -> targetm.enum_va_list_p
4459
9589f23e
AS
44602010-06-28 Anatoly Sokolov <aesok@post.ru>
4461
4462 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4463
3b06d379
SB
44642010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4465
4466 * c-cppbuiltin.c: Do not include except.h.
4467
d166d4c3
AK
44682010-06-24 Andi Kleen <ak@linux.intel.com>
4469
9faeb493
UB
4470 * c-common.c (warn_for_omitted_condop): New.
4471 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4472
70cb8be6
JM
44732010-06-21 Joseph Myers <joseph@codesourcery.com>
4474
4475 * c.opt (lang-objc): Remove.
4476 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4477
a4c97feb
JR
44782010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4479
4480 * c-opts.c: Include "tm_p.h".
4481
6e2f1956
JM
44822010-06-20 Joseph Myers <joseph@codesourcery.com>
4483
4484 * c-common.c (parse_optimize_options): Update call to
4485 decode_options.
4486
bc87224e
NF
44872010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4488
4489 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4490 new type of types_used_by_cur_var_decl.
4491
b49cf425
JR
44922010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4493
4494 PR bootstrap/44512
4495 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4496 for C++ standard compliance.
4497
59f9c2ed
JM
44982010-06-16 Jason Merrill <jason@redhat.com>
4499
4500 * c.opt: Add -Wnoexcept.
4501
33766b66
RG
45022010-06-16 Richard Guenther <rguenther@suse.de>
4503
4504 PR c/44555
4505 * c-common.c (c_common_truthvalue_conversion): Remove
4506 premature and wrong optimization concering ADDR_EXPRs.
4507
eff7e30c
AC
45082010-06-15 Arnaud Charlet <charlet@adacore.com>
4509
4510 * c-ada-spec.c (dump_sloc): Remove column info.
4511 (is_simple_enum): New function.
4512 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4513 enum types when relevant.
4514
6312e84d
MLI
45152010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4516
9faeb493 4517 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4518 location.
4519
1cb42611
JM
45202010-06-10 Joseph Myers <joseph@codesourcery.com>
4521
4522 * c-opts.c (c_common_handle_option): Don't handle
4523 OPT_fshow_column.
4524
a9429e29
LB
45252010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4526
4527 * c-pragma.c (push_alignment): Use typed GC allocation.
4528 (handle_pragma_push_options): Likewise.
4529
4530 * c-common.c (parse_optimize_options): Likewise.
4531
4532 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4533 option.
4534
5498f011
JM
45352010-06-07 Joseph Myers <joseph@codesourcery.com>
4536
4537 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4538 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4539 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4540 flag_signed_bitfields, warn_strict_null_sentinel,
4541 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4542 flag_gen_declaration, flag_no_gnu_keywords,
4543 flag_implement_inlines, flag_implicit_templates,
4544 flag_implicit_inline_templates, flag_optional_diags,
4545 flag_elide_constructors, flag_default_inline, flag_rtti,
4546 flag_conserve_space, flag_access_control, flag_check_new,
4547 flag_new_for_scope, flag_weak, flag_working_directory,
4548 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4549 flag_enforce_eh_specs, flag_threadsafe_statics,
4550 flag_pretty_templates): Remove.
4551 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4552 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4553 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4554 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4555 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4556 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4557 flag_no_gnu_keywords, flag_implement_inlines,
4558 flag_implicit_templates, flag_implicit_inline_templates,
4559 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4560 flag_rtti, flag_conserve_space, flag_access_control,
4561 flag_check_new, flag_new_for_scope, flag_weak,
4562 flag_working_directory, flag_use_cxa_atexit,
4563 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4564 flag_threadsafe_statics, flag_pretty_templates,
4565 warn_strict_null_sentinel): Remove.
4566 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4567 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4568 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4569 fimplicit-inline-templates, fimplicit-templates,
4570 flax-vector-conversions, fms-extensions, fnil-receivers,
4571 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4572 frtti, fshort-double, fshort-enums, fshort-wchar,
4573 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4574 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4575 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4576 gen-decls, undef): Use Var.
4577 (fdefault-inline, foptional-diags): Document as doing nothing.
4578 * c-opts.c (c_common_handle_option): Remove cases for options now
4579 using Var. Mark ignored options as such.
4580
39dabefd
SB
45812010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4582
9faeb493 4583 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4584 * c-common.def: Likewise.
4585 * c-common.h: Likewise.
4586 * c-cppbuiltin.c: Likewise.
4587 * c-dump.c: Likewise.
4588 * c-format.c: Likewise.
4589 * c-format.h : Likewise.
4590 * c-gimplify.c: Likewise.
4591 * c-lex.c: Likewise.
4592 * c-omp.c: Likewise.
4593 * c.opt: Likewise.
4594 * c-opts.c: Likewise.
4595 * c-pch.c: Likewise.
4596 * c-ppoutput.c: Likewise.
4597 * c-pragma.c: Likewise.
4598 * c-pragma.h: Likewise.
4599 * c-pretty-print.c: Likewise.
4600 * c-pretty-print.h: Likewise.
4601 * c-semantics.c: Likewise.
4602 * stub-objc.c: Likewise.
4603
4604 * c-common.c: Include gt-c-family-c-common.h.
4605 * c-pragma.c: Include gt-c-family-c-pragma.h.
4606\f
5624e564 4607Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
4608
4609Copying and distribution of this file, with or without modification,
4610are permitted in any medium without royalty provided the copyright
4611notice and this notice are preserved.
This page took 1.62368 seconds and 5 git commands to generate.