]>
Commit | Line | Data |
---|---|---|
eefe499f GA |
1 | 2020-12-16 Martin Liska <mliska@suse.cz> |
2 | ||
3 | * c.opt: Remove usage of Report. | |
4 | ||
d52945ce GA |
5 | 2020-12-14 Martin Sebor <msebor@redhat.com> |
6 | ||
7 | PR middle-end/98166 | |
8 | PR c++/57111 | |
9 | PR middle-end/98160 | |
10 | * c-attribs.c (maybe_add_noinline): New function. | |
11 | (handle_malloc_attribute): Call it. Use ATTR_FLAG_INTERNAL. | |
12 | Implicitly add attribute noinline to functions not declared inline | |
13 | and warn on those. | |
14 | ||
ca2bd949 GA |
15 | 2020-12-09 Tobias Burnus <tobias@codesourcery.com> |
16 | ||
17 | * c-pragma.c (omp_pragmas): Add 'allocate'. | |
18 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE. | |
19 | ||
f6e8e279 GA |
20 | 2020-12-08 Jakub Jelinek <jakub@redhat.com> |
21 | ||
22 | PR c++/98187 | |
23 | * c-pragma.c (omp_pragmas): Remove "master". | |
24 | (omp_pragmas_simd): Add "master". | |
25 | ||
bc8a7013 GA |
26 | 2020-12-07 Marek Polacek <polacek@redhat.com> |
27 | ||
28 | PR c++/98126 | |
29 | * c-common.c (verify_tree_lim_r): New function. | |
30 | (verify_sequence_points): Use it. Use nullptr instead of 0. | |
31 | ||
b8dd0ef7 GA |
32 | 2020-12-03 Martin Sebor <msebor@redhat.com> |
33 | ||
34 | PR c++/90629 | |
35 | PR middle-end/94527 | |
36 | * c-attribs.c (handle_dealloc_attribute): New function. | |
37 | (handle_malloc_attribute): Handle argument forms of attribute. | |
38 | * c.opt (-Wmismatched-dealloc): New option. | |
39 | (-Wmismatched-new-delete): New option. | |
40 | ||
41 | 2020-12-03 Jakub Jelinek <jakub@redhat.com> | |
42 | ||
43 | PR libstdc++/93121 | |
44 | * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST. | |
45 | * c-common.c (c_common_reswords): Add __builtin_bit_cast. | |
46 | ||
e0f5e792 GA |
47 | 2020-12-01 JeanHeyd Meneide <phdofthehouse@gmail.com> |
48 | ||
49 | * c-cppbuiltin.c (c_cpp_builtins): Add predefined | |
50 | {__GNUC_EXECUTION_CHARSET_NAME} and | |
51 | _WIDE_EXECUTION_CHARSET_NAME} macros. | |
52 | ||
53 | 2020-12-01 Nathan Sidwell <nathan@acm.org> | |
54 | ||
55 | * c-common.c (module, import, export): New internal tokens (with | |
56 | trailing space). | |
57 | * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate | |
58 | them. | |
59 | (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them. | |
60 | * c-cppbuiltin.c (c_cpp_builtins): Feature macro. | |
61 | ||
62 | 2020-12-01 Nathan Sidwell <nathan@acm.org> | |
63 | ||
64 | * c-opts.c (c_common_init_options): Ask for module dependencies. | |
65 | (c_common_handle_option): Handle -Mmodules -Mno-modules. | |
66 | * c-pch.c (c_common_valid_pch): ... does not play with C++ | |
67 | modules. | |
68 | * c.opt (Mmodules, Mno-modules): New preprocessor dependency | |
69 | options. | |
70 | (fmodules-ts, fmodule-header, fmodule-implicit-inline) | |
71 | (fmodule-only, fmodule-mapper, fmodule-lazy) | |
72 | (fmodule-version-ignore, Winvalid-imported-macros) | |
73 | (flang-info-include-translate, flang-info-include-translate-not): | |
74 | New options | |
75 | ||
5fbf0ecb GA |
76 | 2020-11-28 Eric Botcazou <ebotcazou@adacore.com> |
77 | ||
78 | * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code. | |
79 | (dump_ada_structure): Also deal with convention, unchecked union and | |
80 | bit-field for nested types. In the latter case, print an Alignment | |
81 | aspect along with the Pack aspect. | |
82 | ||
360258da GA |
83 | 2020-11-25 Martin Sebor <msebor@redhat.com> |
84 | ||
85 | PR bootstrap/94982 | |
86 | * c-attribs.c (handle_patchable_function_entry_attribute): Avoid | |
87 | -Wformat-diag. | |
88 | ||
1e2c9a27 GA |
89 | 2020-11-24 Martin Sebor <msebor@redhat.com> |
90 | ||
91 | * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations. | |
92 | ||
8e6198d0 GA |
93 | 2020-11-23 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
94 | ||
95 | * c-attribs.c (handle_special_var_sec_attribute): New. | |
96 | (handle_noinit_attribute): Remove. | |
97 | (attr_noinit_exclusions): Rename to... | |
98 | (attr_section_exclusions): ...this, and add "persistent" attribute | |
99 | exclusion. | |
100 | (c_common_attribute_table): Add "persistent" attribute. | |
101 | ||
7a97e2fc GA |
102 | 2020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com> |
103 | ||
104 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
105 | Treat opaque types like other types. | |
106 | (c_pretty_printer::direct_abstract_declarator): Opaque types are | |
107 | supported types. | |
108 | ||
82e5048e GA |
109 | 2020-11-20 Martin Sebor <msebor@redhat.com> |
110 | ||
111 | * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations | |
112 | with fewer arguments. | |
113 | ||
114 | 2020-11-20 Martin Sebor <msebor@redhat.com> | |
115 | ||
116 | PR middle-end/97879 | |
117 | * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL. | |
118 | Error out on invalid modes. | |
119 | ||
120 | 2020-11-20 Jakub Jelinek <jakub@redhat.com> | |
121 | ||
122 | PR libstdc++/88101 | |
123 | * c-common.c (check_builtin_function_arguments): Handle | |
124 | BUILT_IN_CLEAR_PADDING. | |
125 | ||
25bb75f8 GA |
126 | 2020-11-18 Nathan Sidwell <nathan@acm.org> |
127 | ||
128 | * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen. | |
129 | ||
4dabb037 GA |
130 | 2020-11-17 Nathan Sidwell <nathan@acm.org> |
131 | ||
132 | * c-common.h (enum c_tree_index): Reorder to place lazy fields | |
133 | after newly-added CTI_MODULE_HWM. | |
134 | ||
135 | 2020-11-17 Joseph Myers <joseph@codesourcery.com> | |
136 | ||
137 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
138 | "*_IS_IEC_60559__" macros. | |
139 | ||
140 | 2020-11-17 Nathan Sidwell <nathan@acm.org> | |
141 | ||
142 | * c-lex.c: #include "langhooks.h". | |
143 | (cb_undef): Maybe call preprocess_undef lang hook. | |
144 | * c-opts.c (c_common_post_options): Maybe call preprocess_options | |
145 | lang hook. | |
146 | (push_command_line_include): Maybe call preprocess_main_file lang | |
147 | hook. | |
148 | (cb_file_change): Likewise. | |
149 | * c-ppoutput.c: #include "langhooks.h. | |
150 | (scan_translation_unit): Maybe call preprocess_token lang hook. | |
151 | (class do_streamer): New, derive from token_streamer. | |
152 | (directives_only_cb): Data pointer is do_streamer, call | |
153 | preprocess_token lang hook. | |
154 | (scan_translation_unit_directives_only): Use do_streamer. | |
155 | (print_line_1): Move src_line recording to after string output. | |
156 | (cb_undef): Maybe call preprocess_undef lang hook. | |
157 | ||
158 | 2020-11-17 Nathan Sidwell <nathan@acm.org> | |
159 | ||
160 | * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove | |
161 | code duplicating that functionality. | |
162 | ||
163 | 2020-11-17 Jakub Jelinek <jakub@redhat.com> | |
164 | ||
165 | PR c/90628 | |
166 | * c-common.c (check_builtin_function_arguments) | |
167 | <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer | |
168 | to _Atomic. For the TYPE_READONLY case, adjust message to be usable | |
169 | for more builtins and argument positions. | |
170 | ||
29c5d9ce GA |
171 | 2020-11-16 Iain Sandoe <iain@sandoe.co.uk> |
172 | ||
173 | PR objc/97854 | |
174 | * stub-objc.c: Include c-common.h to declare enum rid. | |
175 | ||
77f67db2 GA |
176 | 2020-11-13 Jakub Jelinek <jakub@redhat.com> |
177 | ||
178 | PR c++/63287 | |
179 | * c-cppbuiltin.c: Include configargs.h. | |
180 | (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not | |
181 | defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is | |
182 | "single". | |
183 | ||
184 | 2020-11-13 Gergö Barany <gergo@codesourcery.com> | |
185 | Thomas Schwinge <thomas@codesourcery.com> | |
186 | ||
187 | * c.opt (fopenacc-kernels): Add. | |
188 | ||
189 | 2020-11-13 Jason Merrill <jason@redhat.com> | |
190 | ||
191 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum. | |
192 | ||
193 | 2020-11-13 Piotr H. Dabrowski <phd@phd.re> | |
194 | ||
195 | PR c++/91318 | |
196 | * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused() | |
197 | ||
198 | 2020-11-13 Martin Liska <mliska@suse.cz> | |
199 | ||
200 | * c-attribs.c (build_attr_access_from_parms): Format properly. | |
201 | ||
202 | 2020-11-13 Iain Sandoe <iain@sandoe.co.uk> | |
203 | ||
204 | PR objc/90707 | |
205 | * c-common.c (c_common_reswords): null_unspecified, nullable, | |
206 | nonnull, null_resettable: New keywords. | |
207 | * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE, | |
208 | RID_NONNULL, RID_NULL_RESETTABLE: New. | |
209 | (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the | |
210 | ranges accepted for property attributes. | |
211 | * c-attribs.c (handle_objc_nullability_attribute): New. | |
212 | * c-objc.h (enum objc_property_attribute_group): Add | |
213 | OBJC_PROPATTR_GROUP_NULLABLE. | |
214 | (enum objc_property_attribute_kind):Add | |
215 | OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE, | |
216 | OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE. | |
217 | ||
218 | 2020-11-13 Iain Sandoe <iain@sandoe.co.uk> | |
219 | ||
220 | PR objc/77404 | |
221 | * c-attribs.c (handle_objc_root_class_attribute): New | |
222 | * c-objc.h (objc_start_class_interface): Add a location | |
223 | value for the position of the class name. | |
224 | * c.opt: Add Wobjc-root-class. | |
225 | * stub-objc.c (objc_start_class_interface): Add a location | |
226 | value for the position of the class name. | |
227 | ||
a5a11525 GA |
228 | 2020-11-12 Joseph Myers <joseph@codesourcery.com> |
229 | ||
230 | * c-lex.c (c_common_has_attribute): Take argument std_syntax. | |
231 | Allow scope for C. Handle standard attributes for C. Do not | |
232 | accept unscoped attributes if std_syntax and not handled as | |
233 | standard attributes. | |
234 | * c-common.h (c_common_has_attribute): Update prototype. | |
235 | ||
236 | 2020-11-12 Nicholas Guriev <guriev-ns@ya.ru> | |
237 | ||
238 | PR pch/86674 | |
239 | * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH | |
240 | reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches. | |
241 | ||
0f5f9ed5 GA |
242 | 2020-11-11 Patrick Palka <ppalka@redhat.com> |
243 | ||
244 | PR c++/88115 | |
245 | * c-opts.c (c_common_post_options): Update latest_abi_version. | |
246 | ||
bb622641 GA |
247 | 2020-11-10 Jakub Jelinek <jakub@redhat.com> |
248 | ||
249 | PR c/97748 | |
250 | * c-common.h (warn_if_unused_value): Add quiet argument defaulted | |
251 | to false. | |
252 | * c-warn.c (warn_if_unused_value): Likewise. Pass it down | |
253 | recursively and just return true instead of warning if it is true. | |
254 | Handle COMPLEX_EXPR. | |
255 | ||
256 | 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com> | |
257 | ||
258 | * c-common.h (c_omp_adjust_map_clauses): New declaration. | |
259 | * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses. | |
260 | (c_omp_adjust_map_clauses): New function. | |
261 | ||
2bee28dd GA |
262 | 2020-11-09 Marek Polacek <polacek@redhat.com> |
263 | ||
264 | DR 1914 | |
265 | * c-common.c (attribute_fallthrough_p): Tweak the warning | |
266 | message. | |
267 | ||
268 | 2020-11-09 Patrick Palka <ppalka@redhat.com> | |
269 | ||
270 | * c-pragma.c (handle_pragma_diagnostic): Split the | |
271 | unknown-option -Wpragmas diagnostic into a warning and a | |
272 | subsequent note containing a spelling suggestion. Avoid | |
273 | computing the suggestion if -Wpragmas warnings are being | |
274 | suppressed. | |
275 | ||
276 | 2020-11-09 Patrick Palka <ppalka@redhat.com> | |
277 | ||
278 | PR testsuite/97117 | |
279 | * c-indentation.c (get_visual_column): Remove location_t | |
280 | parameter. Move the column-tracking diagnostic code from here | |
281 | to ... | |
282 | (should_warn_for_misleading_indentation): ... here, before the | |
283 | early exit for when the loci are not all distinct. Don't pass a | |
284 | location_t argument to get_visual_column. | |
285 | (assert_get_visual_column_succeeds): Don't pass a location_t | |
286 | argument to get_visual_column. | |
287 | (assert_get_visual_column_fails): Likewise. | |
288 | ||
fb95de7a GA |
289 | 2020-11-08 Iain Sandoe <iain@sandoe.co.uk> |
290 | ||
291 | * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list | |
292 | of keywords accepted in @property attribute contexts. | |
293 | * c-objc.h (enum objc_property_attribute_group): Add | |
294 | OBJC_PROPATTR_GROUP_CLASS. | |
295 | (enum objc_property_attribute_kind): Add | |
296 | OBJC_PROPERTY_ATTR_CLASS. | |
297 | ||
2da7ee05 GA |
298 | 2020-11-07 Iain Sandoe <iain@sandoe.co.uk> |
299 | ||
300 | * c-common.c (c_common_reswords): Add 'atomic' property | |
301 | attribute. | |
302 | * c-common.h (enum rid): Add RID_PROPATOMIC for atomic | |
303 | property attributes. | |
304 | ||
305 | 2020-11-07 Iain Sandoe <iain@sandoe.co.uk> | |
306 | ||
307 | * c-attribs.c (handle_nsobject_attribute): New. | |
308 | * c.opt: Add WNSObject-attribute. | |
309 | ||
44cab2d8 GA |
310 | 2020-11-06 Iain Sandoe <iain@sandoe.co.uk> |
311 | ||
312 | * c-objc.h (enum objc_property_attribute_group): New | |
313 | (enum objc_property_attribute_kind): New. | |
314 | (OBJC_PROPATTR_GROUP_MASK): New. | |
315 | (struct property_attribute_info): Small class encapsulating | |
316 | parser output from property attributes. | |
317 | (objc_prop_attr_kind_for_rid): New | |
318 | (objc_add_property_declaration): Simplify interface. | |
319 | * stub-objc.c (enum rid): Dummy type. | |
320 | (objc_add_property_declaration): Simplify interface. | |
321 | (objc_prop_attr_kind_for_rid): New. | |
322 | ||
323 | 2020-11-06 Nathan Sidwell <nathan@acm.org> | |
324 | ||
325 | * c-ada-spec.c (collect_ada_nodes): Rename | |
326 | DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. | |
327 | (collect_ada_node): Likewise. | |
328 | (dump_forward_type): Likewise. | |
329 | * c-common.c (set_underlying_type): Rename | |
330 | DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. | |
331 | (user_facing_original_type, c_common_finalize_early_debug): Likewise. | |
332 | ||
333 | 2020-11-06 Jakub Jelinek <jakub@redhat.com> | |
334 | ||
335 | * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION. | |
336 | ||
0cfd9109 GA |
337 | 2020-11-05 Marek Polacek <polacek@redhat.com> |
338 | ||
339 | PR c++/97675 | |
340 | * c.opt (Wexceptions): New option. | |
341 | ||
342 | 2020-11-05 Marek Polacek <polacek@redhat.com> | |
343 | ||
344 | PR c++/25814 | |
345 | * c.opt (Wvexing-parse): New option. | |
346 | ||
35c125cb GA |
347 | 2020-11-04 Jakub Jelinek <jakub@redhat.com> |
348 | ||
349 | PR c++/97670 | |
350 | * c-omp.c (c_omp_split_clauses): Look through array reductions to find | |
351 | underlying decl to clear in the allocate_head bitmap. | |
352 | ||
353 | 2020-11-04 Iain Sandoe <iain@sandoe.co.uk> | |
354 | ||
355 | * c-objc.h (objc_non_constant_expr_p): New. | |
356 | * stub-objc.c (objc_non_constant_expr_p): New. | |
357 | ||
fd2325ea GA |
358 | 2020-11-03 Nathan Sidwell <nathan@acm.org> |
359 | ||
360 | * c.opt (MQ,MT): Reword description to be make-agnostic. | |
361 | ||
88ce3d5f GA |
362 | 2020-11-02 Nathan Sidwell <nathan@acm.org> |
363 | ||
364 | * c-opts.c (c_common_post_options): Move var decl to its | |
365 | initialization point. | |
366 | ||
367 | 2020-11-01 Iain Sandoe <iain@sandoe.co.uk> | |
368 | ||
369 | * c-lex.c (c_lex_with_flags): When combining '@' with a | |
370 | keyword for Objective-C, combine the location ranges too. | |
371 | ||
372 | 2020-10-30 Qing Zhao <qing.zhao@oracle.com> | |
373 | H.J.Lu <hjl.tools@gmail.com> | |
374 | ||
375 | * c-attribs.c (c_common_attribute_table): Add new attribute | |
376 | zero_call_used_regs. | |
377 | (handle_zero_call_used_regs_attribute): New function. | |
378 | ||
e93aae4a GA |
379 | 2020-10-28 Marek Polacek <polacek@redhat.com> |
380 | ||
381 | PR c++/97573 | |
382 | * c-opts.c (c_common_post_options): In C++20, turn on | |
383 | -Wdeprecated-enum-enum-conversion and | |
384 | -Wdeprecated-enum-float-conversion. | |
385 | * c.opt (Wdeprecated-enum-enum-conversion, | |
386 | Wdeprecated-enum-float-conversion): New options. | |
387 | (Wenum-conversion): Allow for C++ too. | |
388 | ||
389 | 2020-10-28 Jakub Jelinek <jakub@redhat.com> | |
390 | ||
391 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE. | |
392 | * c-omp.c: Include bitmap.h. | |
393 | (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE. | |
394 | ||
f19e7c8d GA |
395 | 2020-10-26 Ville Voutilainen <ville.voutilainen@gmail.com> |
396 | ||
397 | * c-common.c (__is_nothrow_assignable): New. | |
398 | (__is_nothrow_constructible): Likewise. | |
399 | * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New. | |
400 | (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise. | |
401 | ||
efe71fcc GA |
402 | 2020-10-23 Jan Hubicka <hubicka@ucw.cz> |
403 | ||
404 | * c-common.c (c_common_finalize_early_debug): Update for new thunk api. | |
405 | ||
406 | 2020-10-23 Marek Polacek <polacek@redhat.com> | |
407 | ||
408 | PR c++/91741 | |
409 | * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR. | |
410 | (c_common_init_ts): Likewise. | |
411 | * c-common.def (PAREN_SIZEOF_EXPR): New tree code. | |
412 | * c-common.h (maybe_warn_sizeof_array_div): Declare. | |
413 | * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs. | |
414 | (maybe_warn_sizeof_array_div): New function. | |
415 | * c.opt (Wsizeof-array-div): New option. | |
416 | ||
417 | 2020-10-23 Martin Sebor <msebor@redhat.com> | |
418 | ||
419 | PR c/97463 | |
420 | * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier. | |
421 | ||
56ddd5e2 GA |
422 | 2020-10-22 Martin Liska <mliska@suse.cz> |
423 | ||
424 | PR c/94722 | |
425 | * c-attribs.c (handle_no_stack_protect_function_attribute): New. | |
426 | (handle_stack_protect_attribute): Add error message for a | |
427 | no_stack_protector function. | |
428 | ||
429 | 2020-10-22 Martin Liska <mliska@suse.cz> | |
430 | ||
431 | * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum. | |
432 | ||
433 | 2020-10-22 Jan Hubicka <hubicka@ucw.cz> | |
434 | ||
435 | * c-gimplify.c: Include tree-nested.h | |
436 | (c_genericize): Update for new nested function info. | |
437 | ||
b2698c21 GA |
438 | 2020-10-14 Martin Sebor <msebor@redhat.com> |
439 | ||
440 | PR c/97413 | |
441 | * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA | |
442 | bounds in an extra list. | |
443 | ||
7e9282ae GA |
444 | 2020-10-05 Richard Biener <rguenther@suse.de> |
445 | Jakub Jelinek <jakub@redhat.com> | |
446 | ||
447 | PR c++/97197 | |
448 | * c-pretty-print.c: Include langhooks.h. | |
449 | (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as | |
450 | expression. | |
451 | (c_pretty_printer::expression): Handle TARGET_MEM_REF as | |
452 | unary_expression. | |
453 | (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF. | |
454 | ||
660bfe61 GA |
455 | 2020-09-30 Martin Sebor <msebor@redhat.com> |
456 | ||
457 | PR middle-end/97189 | |
458 | * c-attribs.c (append_access_attr): Use the function declaration | |
459 | location for a warning about an attribute access argument. | |
460 | ||
93bca37c GA |
461 | 2020-09-29 Marek Polacek <polacek@redhat.com> |
462 | ||
463 | PR c++/94695 | |
464 | * c.opt (Wrange-loop-construct): New option. | |
465 | ||
82b77dee GA |
466 | 2020-09-23 Martin Sebor <msebor@redhat.com> |
467 | ||
468 | PR c/97131 | |
469 | * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input. | |
470 | ||
471 | 2020-09-23 Marek Polacek <polacek@redhat.com> | |
472 | ||
473 | PR c/97125 | |
474 | * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r | |
475 | after loops and other structured control constructs have been lowered. | |
476 | ||
521d2711 GA |
477 | 2020-09-22 Jakub Jelinek <jakub@redhat.com> |
478 | ||
479 | * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name: | |
480 | warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch. | |
481 | ||
44135373 GA |
482 | 2020-09-21 Marek Polacek <polacek@redhat.com> |
483 | ||
484 | * c.opt (Wctad-maybe-unsupported): New option. | |
485 | ||
2fe5b7d1 GA |
486 | 2020-09-19 Martin Sebor <msebor@redhat.com> |
487 | ||
488 | PR c/50584 | |
489 | * c-common.h (warn_parm_array_mismatch): Declare new function. | |
490 | (has_attribute): Move declaration of an existing function. | |
491 | (build_attr_access_from_parms): Declare new function. | |
492 | * c-warn.c (parm_array_as_string): Define new function. | |
493 | (plus_one): Define new function. | |
494 | (warn_parm_ptrarray_mismatch): Define new function. | |
495 | (warn_parm_array_mismatch): Define new function. | |
496 | (vla_bound_parm_decl): New function. | |
497 | * c.opt (-Warray-parameter, -Wvla-parameter): New options. | |
498 | * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type | |
499 | qualifiers here... | |
500 | (c_pretty_printer::direct_abstract_declarator): ...but instead print | |
501 | them in brackets here. Also print [static]. Strip extraneous | |
502 | expressions from VLA bounds. | |
503 | ||
504 | 2020-09-19 Martin Sebor <msebor@redhat.com> | |
505 | ||
506 | PR c/50584 | |
507 | * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute. | |
508 | (handle_argspec_attribute): New function. | |
509 | (get_argument, get_argument_type): New functions. | |
510 | (append_access_attrs): Add overload. Handle internal attribute | |
511 | representation in addition to external. | |
512 | (handle_access_attribute): Handle internal attribute representation | |
513 | in addition to external. | |
514 | (build_attr_access_from_parms): New function. | |
515 | ||
516 | 2020-09-19 Sandra Loosemore <sandra@codesourcery.com> | |
517 | ||
518 | * c-gimplify.c (genericize_c_loop): Rewrite to match | |
519 | c_finish_loop in c-typeck.c. | |
520 | ||
521 | 2020-09-19 Sandra Loosemore <sandra@codesourcery.com> | |
522 | ||
523 | * c-common.c (c_block_may_fallthrough): New, split from | |
524 | cxx_block_may_fallthrough in the cp front end. | |
525 | (c_common_init_ts): Move handling of loop and switch-related | |
526 | statements here from the cp front end. | |
527 | * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from | |
528 | cp front end. | |
529 | (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise. | |
530 | * c-common.h (c_block_may_fallthru): Declare. | |
531 | (bc_state_t): Move here from cp front end. | |
532 | (save_bc_state, restore_bc_state): Declare. | |
533 | (c_genericize_control_stmt): Declare. | |
534 | (WHILE_COND, WHILE_BODY): Likewise. | |
535 | (DO_COND, DO_BODY): Likewise. | |
536 | (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise. | |
537 | (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise. | |
538 | (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise. | |
539 | (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise. | |
540 | (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise. | |
541 | * c-dump.c (dump_stmt): Copy from cp front end. | |
542 | (c_dump_tree): Move code to handle structured loop and switch | |
543 | tree nodes here from cp front end. | |
544 | * c-gimplify.c: Adjust includes. | |
545 | (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from | |
546 | cp front end. | |
547 | (save_bc_state, restore_bc_state): New functions using old code | |
548 | from cp front end. | |
549 | (get_bc_label, expr_loc_or_loc): Move from cp front end. | |
550 | (genericize_c_loop): Move from cp front end. | |
551 | (genericize_for_stmt, genericize_while_stmt): Likewise. | |
552 | (genericize_do_stmt, genericize_switch_stmt): Likewise. | |
553 | (genericize_continue_stmt, genericize_break_stmt): Likewise. | |
554 | (genericize_omp_for_stmt): Likewise. | |
555 | (c_genericize_control_stmt): New function using code split from | |
556 | cp front end. | |
557 | (c_genericize_control_r): New. | |
558 | (c_genericize): Call walk_tree with c_genericize_control_r. | |
559 | * c-pretty-print.c (c_pretty_printer::statement): Move code to handle | |
560 | structured loop and switch tree nodes here from cp front end. | |
561 | ||
2aad20c0 GA |
562 | 2020-09-17 Patrick Palka <ppalka@redhat.com> |
563 | ||
564 | PR c/80076 | |
565 | * c-indentation.c (should_warn_for_misleading_indentation): Move | |
566 | declarations of local variables closer to their first use. | |
567 | Handle virtual token locations by resolving them to their | |
568 | respective macro expansion points. If all three tokens are | |
569 | produced from the same macro expansion, then instead use their | |
570 | loci within the macro definition. | |
571 | ||
ecde1b0a GA |
572 | 2020-09-16 Martin Sebor <msebor@redhat.com> |
573 | ||
574 | PR c/78666 | |
575 | PR c/96126 | |
576 | * c-attribs.c (validate_attr_args): New function. | |
577 | (validate_attr_arg): Same. | |
578 | (handle_section_attribute): Call it. Introduce a local variable. | |
579 | (handle_alloc_size_attribute): Same. | |
580 | (handle_alloc_align_attribute): Same. | |
581 | ||
50a71cd0 GA |
582 | 2020-09-14 Jakub Jelinek <jakub@redhat.com> |
583 | ||
584 | * c-attribs.c (handle_optimize_attribute): Adjust | |
585 | cl_optimization_save, cl_optimization_restore and | |
586 | build_optimization_node callers. | |
587 | * c-pragma.c (handle_pragma_optimize): Adjust | |
588 | build_optimization_node caller. | |
589 | (handle_pragma_push_options): Adjust | |
590 | build_optimization_node and build_target_option_node callers. | |
591 | (handle_pragma_pop_options, handle_pragma_reset_options): | |
592 | Adjust cl_optimization_restore callers. | |
593 | ||
8f7ea26a GA |
594 | 2020-08-28 Martin Sebor <msebor@redhat.com> |
595 | ||
596 | * c.opt (Wstringop-overread): New option. | |
597 | ||
a6493809 GA |
598 | 2020-08-11 Jakub Jelinek <jakub@redhat.com> |
599 | ||
600 | PR c/96545 | |
601 | * c-common.c (get_atomic_generic_size): Require that first argument's | |
602 | type points to a complete type and use tree_fits_uhwi_p instead of | |
603 | just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT. | |
604 | ||
48cc2e46 GA |
605 | 2020-07-31 Martin Sebor <msebor@redhat.com> |
606 | ||
607 | PR c++/96003 | |
608 | * c-common.c (check_function_arguments_recurse): Return early when | |
609 | no-warning bit is set. | |
610 | ||
611 | 2020-07-31 Richard Biener <rguenther@suse.de> | |
612 | ||
613 | PR debug/96383 | |
614 | * c-common.h (c_common_finalize_early_debug): Declare. | |
615 | * c-common.c: Include debug.h. | |
616 | (c_common_finalize_early_debug): finalize_early_debug langhook | |
617 | implementation generating debug for extern declarations. | |
618 | ||
e71dab87 GA |
619 | 2020-07-27 Nathan Sidwell <nathan@acm.org> |
620 | ||
621 | * c-common.c (try_to_locate_new_include_insertion_point): Use | |
622 | strcmp, not pointer equality. | |
623 | ||
ae2e0bc1 GA |
624 | 2020-07-25 Martin Sebor <msebor@redhat.com> |
625 | ||
626 | PR c++/96310 | |
627 | * c-common.c (check_nonnull_arg): Print note only when warning was | |
628 | issued. | |
629 | ||
3ea9abca GA |
630 | 2020-07-22 Tobias Burnus <tobias@codesourcery.com> |
631 | ||
632 | * c-omp.c (c_finish_omp_critical): Check for no name but | |
633 | nonzero hint provided. | |
634 | ||
0933f508 GA |
635 | 2020-07-20 Jason Merrill <jason@redhat.com> |
636 | ||
637 | * c-cppbuiltin.c (c_cpp_builtins): Update | |
638 | __cpp_nontype_template_args for C++20. | |
639 | ||
640 | 2020-07-20 Martin Sebor <msebor@redhat.com> | |
641 | ||
642 | PR c/96249 | |
643 | * c.opt: Remove stray text. | |
644 | ||
8ca07a30 GA |
645 | 2020-07-14 Lewis Hyatt <lhyatt@gmail.com> |
646 | ||
647 | PR other/86904 | |
648 | * c-indentation.c (should_warn_for_misleading_indentation): Get | |
649 | global tabstop from the new source. | |
650 | * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which | |
651 | is now a common option. | |
652 | * c.opt: Likewise. | |
653 | ||
a82c4c4c | 654 | 2020-07-08 Eric Botcazou <ebotcazou@adacore.com> |
50873cc5 GA |
655 | |
656 | * c.opt (Wscalar-storage-order): Add explicit variable. | |
657 | ||
f60ee68d GA |
658 | 2020-07-07 Nathan Sidwell <nathan@acm.org> |
659 | ||
660 | * c-opts.c (c_common_post_options): Add 'injecting' arg to | |
661 | cpp_read_main_file. | |
662 | (c_finish_options): Add linemap_line_start calls for builtin and cmd | |
663 | maps. Force token position to line_table's highest line. | |
664 | * c-ppoutput.c (print_line_1): Refactor, print line zero. | |
665 | (cb_define): Always increment source line. | |
666 | ||
4077d74c GA |
667 | 2020-07-06 Martin Sebor <msebor@redhat.com> |
668 | ||
669 | PR c++/95984 | |
670 | * c-common.c (check_function_nonnull): Avoid checking syntesized calls | |
671 | to stub lambda objects with null this pointer. | |
672 | (check_nonnull_arg): Handle C++ nullptr. | |
673 | ||
b5f24739 GA |
674 | 2020-07-02 Jason Merrill <jason@redhat.com> |
675 | Jakub Jelinek <jakub@redhat.com> | |
676 | ||
677 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval. | |
678 | ||
46fbb6c6 GA |
679 | 2020-06-30 Jakub Jelinek <jakub@redhat.com> |
680 | ||
681 | PR c++/95963 | |
682 | * c-common.c (check_function_arguments_recurse): Don't crash on | |
683 | calls to internal functions. | |
684 | ||
69273534 GA |
685 | 2020-06-28 Martin Sebor <msebor@redhat.com> |
686 | ||
687 | PR c++/86568 | |
688 | * c-common.c (struct nonnull_arg_ctx): Add members. | |
689 | (check_function_nonnull): Use nonnull_arg_ctx as argument. Handle | |
690 | C++ member functions specially. Consider the this pointer implicitly | |
691 | nonnull. | |
692 | (check_nonnull_arg): Use location of argument when available. | |
693 | (check_function_arguments): Use nonnull_arg_ctx as argument. | |
694 | ||
9a33c41f GA |
695 | 2020-06-27 Jakub Jelinek <jakub@redhat.com> |
696 | ||
697 | PR middle-end/95903 | |
698 | * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of | |
699 | !TYPE_UNSIGNED check to see if we can apply distributive law and handle | |
700 | smaller precision intop operands separately. | |
701 | ||
c9c05f73 GA |
702 | 2020-06-26 Marek Polacek <polacek@redhat.com> |
703 | ||
704 | * c-opts.c (c_common_init_options): Default to gnu++17. | |
705 | ||
aff95ee7 GA |
706 | 2020-06-17 Jonathan Wakely <jwakely@redhat.com> |
707 | ||
bd0a89dc | 708 | PR c/95378 |
aff95ee7 GA |
709 | * c-common.c (get_atomic_generic_size): Check cv-qualifiers in |
710 | pointer arguments. | |
711 | ||
56638b9b GA |
712 | 2020-06-16 Jakub Jelinek <jakub@redhat.com> |
713 | ||
714 | * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument. | |
715 | * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and | |
716 | idx members. | |
717 | (c_omp_is_loop_iterator): New function. | |
718 | (c_omp_check_loop_iv_r): Use it. Add support for silent scanning | |
719 | if outer loop iterator is present. Perform duplicate checking through | |
720 | hash_set in the function rather than expecting caller to do that. | |
721 | Pass NULL instead of d->ppset to walk_tree_1. | |
722 | (c_omp_check_nonrect_loop_iv): New function. | |
723 | (c_omp_check_loop_iv): Use it. Fill in new members, allow | |
724 | non-rectangular loop forms, diagnose multiple associated loops with | |
725 | the same iterator. Pass NULL instead of &pset to walk_tree_1. | |
726 | (c_omp_check_loop_iv_exprs): Likewise. | |
727 | ||
ec6ffbb9 GA |
728 | 2020-06-10 Martin Liska <mliska@suse.cz> |
729 | ||
730 | PR tree-optimization/92860 | |
731 | * c-attribs.c (handle_optimize_attribute): | |
732 | Save global options and compare it after parsing of function | |
733 | attribute. | |
734 | * c-pragma.c (opt_stack::saved_global_options): New field. | |
735 | (handle_pragma_push_options): Save global_options. | |
736 | (handle_pragma_pop_options): Compare them after pop. | |
737 | ||
b952c2cf GA |
738 | 2020-06-09 Jakub Jelinek <jakub@redhat.com> |
739 | ||
740 | PR c/95580 | |
741 | * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the | |
742 | case when MEM_REF's first argument has type pointer to incomplete type. | |
743 | ||
1a59f3db GA |
744 | 2020-06-05 Jason Merrill <jason@redhat.com> |
745 | ||
746 | * c-pretty-print.c (pp_c_additive_expression): Handle negative | |
747 | operand to POINTER_PLUS_EXPR. | |
748 | ||
3add3425 GA |
749 | 2020-06-04 Martin Sebor <msebor@redhat.com> |
750 | ||
751 | PR middle-end/10138 | |
752 | PR middle-end/95136 | |
753 | * c-attribs.c (append_access_attrs): Handle attr_access::none. | |
754 | (handle_access_attribute): Same. | |
755 | ||
9a5b7438 GA |
756 | 2020-06-03 Mark Wielaard <mark@klomp.org> |
757 | ||
758 | * known-headers.cc (get_cp_stdlib_header_for_string_macro_name): | |
759 | New function. | |
760 | * known-headers.h (get_cp_stdlib_header_for_string_macro_name): | |
761 | New function declaration. | |
762 | ||
763 | 2020-06-03 Mark Wielaard <mark@klomp.org> | |
764 | ||
765 | * known-headers.cc (get_string_macro_hint): New function. | |
766 | (get_stdlib_header_for_name): Use get_string_macro_hint. | |
767 | (get_c_stdlib_header_for_string_macro_name): New function. | |
768 | * known-headers.h (get_c_stdlib_header_for_string_macro_name): | |
769 | New function declaration. | |
770 | ||
771 | 2020-06-03 Tobias Burnus <tobias@codesourcery.com> | |
772 | ||
773 | * c-common.h (c_omp_predetermined_mapping): Declare. | |
774 | * c-omp.c (c_omp_predetermined_mapping): New. | |
775 | ||
af114c38 MW |
776 | 2020-05-22 Mark Wielaard <mark@klomp.org> |
777 | ||
778 | * known-headers.cc (get_stdlib_header_for_name): Add a new | |
779 | stdlib_hint array for stdbool and stdint. | |
780 | ||
45c50b6a MW |
781 | 2020-05-22 Mark Wielaard <mark@klomp.org> |
782 | ||
783 | * known-headers.cc (get_stdlib_header_for_name): Return | |
784 | "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and | |
785 | flag_isoc99. | |
786 | ||
c22027a0 NS |
787 | 2020-05-20 Nathan Sidwell <nathan@acm.org> |
788 | ||
38a4db21 NS |
789 | * c-common.c (try_to_locate_new_include_insertion_point): Revert change. |
790 | ||
c22027a0 NS |
791 | * c-common.c (try_to_locate_new_include_insertion_point): Use |
792 | strcmp to compare filenames. | |
793 | * c-lex.c (init_c_lex): Move declaration to initialization. | |
794 | * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into | |
795 | deferred count loop. | |
796 | ||
29f0e90d JM |
797 | 2020-05-15 Jason Merrill <jason@redhat.com> |
798 | ||
799 | * c-opts.c (set_std_cxx20): Set flag_coroutines. | |
800 | ||
b04445d4 JM |
801 | 2020-05-13 Jason Merrill <jason@redhat.com> |
802 | ||
803 | * c.opt (std=c++20): Make c++2a the alias. | |
804 | (std=gnu++20): Likewise. | |
805 | * c-common.h (cxx_dialect): Change cxx2a to cxx20. | |
806 | * c-opts.c: Adjust. | |
807 | * c-cppbuiltin.c: Adjust. | |
808 | * c-ubsan.c: Adjust. | |
809 | * c-warn.c: Adjust. | |
810 | ||
11dd3be5 EB |
811 | 2020-05-12 Eric Botcazou <ebotcazou@adacore.com> |
812 | ||
813 | * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry. | |
814 | ||
b224c376 NS |
815 | 2020-05-08 Nathan Sidwell <nathan@acm.org> |
816 | ||
817 | Reimplement directives only processing. | |
818 | * c-ppoutput.c (token_streamer): Ne. | |
819 | (directives_only_cb): New. Swallow ... | |
820 | (print_lines_directives_only): ... this. | |
821 | (scan_translation_unit_directives_only): Reimplment using the | |
822 | published interface. | |
823 | ||
f1d94677 MP |
824 | 2020-05-07 Marek Polacek <polacek@redhat.com> |
825 | ||
826 | * c-format.c (badwords): Add "nonstatic". | |
827 | ||
9b95bb52 JJ |
828 | 202-05-07 Jakub Jelinek <jakub@redhat.com> |
829 | ||
830 | PR c/94968 | |
831 | * c-common.c (speculation_safe_value_resolve_params): Return false if | |
832 | error_operand_p (val2). | |
833 | (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>: | |
834 | Remove extraneous semicolon. | |
835 | ||
530b4409 | 836 | 2020-05-06 qing zhao <qing.zhao@oracle.com> |
837 | ||
838 | PR c/94230 | |
839 | * c-indentation.c (get_visual_column): Add a hint to use the new | |
840 | -flarge-source-files option. | |
841 | ||
b776bdca SSF |
842 | 2020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com> |
843 | ||
844 | * c-attribs.c (handle_vector_size_attribute): Add attribute | |
845 | nonnull for argument args in order to silence warning of | |
846 | uninitialized variable usage. Since this is local to the | |
847 | compilation unit and thus cannot be checked at call sides by the | |
848 | compiler, added an assert statement in order to verify this. | |
849 | ||
6607bdd9 L |
850 | 2020-05-01 H.J. Lu <hongjiu.lu@intel.com> |
851 | ||
852 | PR target/93492 | |
853 | * c-attribs.c (handle_patchable_function_entry_attribute): Limit | |
854 | value to USHRT_MAX (65535). | |
855 | ||
691eeb65 JJ |
856 | 2020-04-29 Jakub Jelinek <jakub@redhat.com> |
857 | ||
858 | * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}. | |
859 | ||
26d76be7 JJ |
860 | 2020-04-27 Jakub Jelinek <jakub@redhat.com> |
861 | ||
862 | PR c/94755 | |
863 | * c-common.c (resolve_overloaded_builtin): Return error_mark_node for | |
864 | fncode == BUILT_IN_NONE before initialization of first_param. | |
865 | ||
7291b2ed MP |
866 | 2020-04-23 Marek Polacek <polacek@redhat.com> |
867 | ||
868 | PR c++/94733 | |
869 | * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of | |
870 | TREE_PURPOSE. | |
871 | ||
58a29af8 PP |
872 | 2020-04-14 Patrick Palka <ppalka@redhat.com> |
873 | ||
874 | PR c++/85278 | |
875 | * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double | |
876 | ampersand if it's an rvalue reference type. | |
877 | ||
09f04139 MS |
878 | 2020-04-13 Martin Sebor <msebor@redhat.com> |
879 | ||
880 | PR c/92326 | |
881 | * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid | |
882 | printing array bound for flexible array members. | |
883 | ||
ee26baf4 IS |
884 | 2020-04-13 Iain Sandoe <iain@sandoe.co.uk> |
885 | ||
886 | * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin | |
887 | define, per n4861. | |
888 | ||
75efe9cb RB |
889 | 2020-04-02 Richard Biener <rguenther@suse.de> |
890 | ||
891 | PR c/94392 | |
892 | * c-opts.c (c_common_post_options): Enable -ffinite-loops | |
893 | for -O2 and C++11 or newer. | |
894 | ||
75defde9 PP |
895 | 2020-03-28 Patrick Palka <ppalka@redhat.com> |
896 | ||
897 | * c.opt: Add -fconcepts-diagnostics-depth. | |
898 | ||
52f24a9e MS |
899 | 2020-03-27 Martin Sebor <msebor@redhat.com> |
900 | ||
901 | PR c++/94346 | |
902 | * c-attribs.c (handle_copy_attribute): Avoid passing expressions | |
903 | to decl_attributes. Make handling of different kinds of entities | |
904 | more robust. | |
905 | ||
ccacf77b MS |
906 | 2020-03-27 Martin Sebor <msebor@redhat.com> |
907 | ||
908 | PR c++/94098 | |
909 | * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES | |
910 | here. | |
911 | ||
ca6c7225 JJ |
912 | 2020-03-23 Jakub Jelinek <jakub@redhat.com> |
913 | ||
914 | PR c++/91993 | |
915 | * c-warn.c (warnings_for_convert_and_check): For expr and/or | |
916 | result being COMPOUND_EXPRs, skip to ultimate rhs. | |
917 | ||
1aa22b19 RS |
918 | 2020-03-20 Richard Sandiford <richard.sandiford@arm.com> |
919 | ||
920 | PR middle-end/94072 | |
921 | * c-common.c (c_common_type_for_mode): Before using a registered | |
922 | built-in type, check that the vectorness of the type matches | |
923 | the vectorness of the mode. | |
924 | ||
700d4cb0 JJ |
925 | 2020-03-17 Jakub Jelinek <jakub@redhat.com> |
926 | ||
927 | * c-common.c (resolve_overloaded_builtin): Fix up duplicated word | |
928 | issue in a diagnostic message. | |
929 | ||
b408e010 LH |
930 | 2020-03-15 Lewis Hyatt <lhyatt@gmail.com> |
931 | ||
932 | * c.opt: Avoid redundancy in the help text. | |
933 | ||
e78e50d5 MP |
934 | 2020-03-02 Marek Polacek <polacek@redhat.com> |
935 | ||
936 | PR c++/93958 - add missing -std=gnu++20. | |
937 | * c.opt: Add -std=gnu++20. | |
938 | ||
649e1741 MS |
939 | 2020-03-01 Martin Sebor <msebor@redhat.com> |
940 | ||
941 | PR c++/92721 | |
942 | * c-attribs.c (append_access_attrs): Correctly handle attribute. | |
943 | (handle_access_attribute): Same. | |
944 | ||
7b60f3ba JJ |
945 | 2020-02-25 Jakub Jelinek <jakub@redhat.com> |
946 | ||
947 | PR c/93858 | |
948 | * c-pragma.c (handle_pragma_diagnostic): Add missing ? after | |
949 | "did you mean" hint in diagnostics. | |
950 | ||
fb260504 JM |
951 | 2020-02-15 Jason Merrill <jason@redhat.com> |
952 | ||
953 | * c.opt: Add -std=c++20. | |
954 | ||
1d757b09 EB |
955 | 2020-02-14 Eric Botcazou <ebotcazou@adacore.com> |
956 | ||
957 | * c-ada-spec.c: Include bitmap.h. | |
958 | (dump_ada_double_name): Rename into... | |
959 | (dump_anonymous_type_name): ...this. Always use the TYPE_UID. | |
960 | (dump_ada_array_type): Adjust to above renaming. Robustify. | |
961 | (dump_nested_types_1): New function copied from... Add dumped_types | |
962 | parameter and pass it down to dump_nested_type. | |
963 | (dump_nested_types): ...this. Remove parent parameter. Just call | |
964 | dump_nested_types_1 on an automatic bitmap. | |
965 | (dump_nested_type): Add dumped_types parameter. | |
966 | <ARRAY_TYPE>: Do not dump it if already present in dumped_types. | |
967 | Adjust recursive calls and adjust to above renaming. | |
968 | (dump_ada_declaration): Adjust call to dump_nested_types. | |
969 | Tidy up and adjust to above renaming. | |
970 | (dump_ada_specs): Initialize and release bitmap obstack. | |
971 | ||
0cc575e4 MS |
972 | 2020-02-10 Martin Sebor <msebor@redhat.com> |
973 | ||
974 | PR c/93640 | |
975 | * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes. | |
976 | ||
a59aa302 JJ |
977 | 2020-02-10 Jakub Jelinek <jakub@redhat.com> |
978 | ||
979 | PR other/93641 | |
980 | * c-format.c (check_plain): Fix up last argument of strncasecmp. | |
981 | Remove useless extra test. | |
982 | ||
e464fc90 TB |
983 | 2020-02-03 Julian Brown <julian@codesourcery.com> |
984 | Tobias Burnus <tobias@codesourcery.com> | |
985 | ||
986 | * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711. | |
987 | ||
e3b6c052 JM |
988 | 2020-01-29 Jason Merrill <jason@redhat.com> |
989 | ||
990 | PR c++/89357 | |
991 | * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove. | |
992 | ||
6d00f052 JM |
993 | 2020-01-23 Jason Merrill <jason@redhat.com> |
994 | ||
995 | * c-warn.c (conversion_warning): Change -Wsign-conversion handling. | |
996 | ||
8a990ffa MS |
997 | 2020-01-23 Martin Sebor <msebor@redhat.com> |
998 | ||
999 | PR c/84919 | |
1000 | * c-common.c (check_function_arguments): Avoid overlap checking | |
1001 | of sprintf functions. | |
1002 | ||
55b7df8b JM |
1003 | 2020-01-22 Jason Merrill <jason@redhat.com> |
1004 | ||
1005 | PR testsuite/93391 - PR 40752 test fails with unsigned plain char. | |
1006 | PR c++/40752 | |
1007 | * c-warn.c (conversion_warning): Check operands only after checking | |
1008 | the whole expression. Don't check second operand of + for sign. | |
1009 | ||
c77074d0 JM |
1010 | 2020-01-21 Jason Merrill <jason@redhat.com> |
1011 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
1012 | ||
1013 | PR c++/40752 - useless -Wconversion with short +=. | |
1014 | * c.opt (-Warith-conversion): New. | |
1015 | * c-warn.c (conversion_warning): Recurse for operands of | |
1016 | operators. Only warn about the whole expression with | |
1017 | -Warith-conversion. | |
1018 | ||
731dbfc3 JM |
1019 | 2020-01-21 Jason Merrill <jason@redhat.com> |
1020 | ||
1021 | * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN. | |
1022 | * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN. | |
1023 | ||
ad1a3914 NS |
1024 | 2020-01-20 Nathan Sidwell <nathan@acm.org> |
1025 | ||
1026 | PR preprocessor/80005 | |
1027 | * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}. | |
1028 | ||
49789fd0 IS |
1029 | 2020-01-18 Iain Sandoe <iain@sandoe.co.uk> |
1030 | ||
1031 | * c-common.c (co_await, co_yield, co_return): New. | |
1032 | * c-common.h (RID_CO_AWAIT, RID_CO_YIELD, | |
1033 | RID_CO_RETURN): New enumeration values. | |
1034 | (D_CXX_COROUTINES): Bit to identify coroutines are active. | |
1035 | (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords. | |
1036 | * c-cppbuiltin.c (__cpp_coroutines): New cpp define. | |
1037 | * c.opt (fcoroutines): New command-line switch. | |
1038 | ||
4bc1899b DM |
1039 | 2020-01-10 David Malcolm <dmalcolm@redhat.com> |
1040 | ||
1041 | * c-format.c (local_event_ptr_node): New. | |
1042 | (PP_FORMAT_CHAR_TABLE): Add entry for "%@". | |
1043 | (init_dynamic_diag_info): Initialize local_event_ptr_node. | |
1044 | * c-format.h (T_EVENT_PTR): New define. | |
1045 | ||
f25e33fa MS |
1046 | 2020-01-10 Martin Sebor <msebor@redhat.com> |
1047 | ||
1048 | PR c/93132 | |
1049 | * c-attribs.c (append_access_attrs): Validate against the translated | |
1050 | access string rather than the human-readable representation. | |
1051 | ||
8d9254fc JJ |
1052 | 2020-01-01 Jakub Jelinek <jakub@redhat.com> |
1053 | ||
1054 | Update copyright years. | |
1055 | ||
39292e25 EB |
1056 | 2019-12-20 Eric Botcazou <ebotcazou@adacore.com> |
1057 | ||
1058 | * c-ada-spec.h (decl_sloc): Delete. | |
1059 | * c-ada-spec.c (decl_sloc): Make static. | |
1060 | ||
519d7496 JB |
1061 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
1062 | ||
1063 | * c-common.h (c_omp_map_clause_name): Add prototype. | |
1064 | * c-omp.c (c_omp_map_clause_name): New function. | |
1065 | * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and | |
1066 | PRAGMA_OACC_CLAUSE_DETACH. | |
1067 | ||
a6163563 JB |
1068 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
1069 | Maciej W. Rozycki <macro@codesourcery.com> | |
1070 | Tobias Burnus <tobias@codesourcery.com> | |
1071 | Thomas Schwinge <thomas@codesourcery.com> | |
1072 | ||
1073 | * c-pragma.h (pragma_omp_clause): Add | |
1074 | PRAGMA_OACC_CLAUSE_NO_CREATE. | |
1075 | ||
e8f1ade2 MS |
1076 | 2019-12-17 Martin Sebor <msebor@redhat.com> |
1077 | ||
1078 | PR c++/61339 | |
1079 | * c.opt (-Wmismatched-tags, -Wredundant-tags): New options. | |
1080 | ||
368877a1 DM |
1081 | 2019-12-11 David Malcolm <dmalcolm@redhat.com> |
1082 | ||
1083 | * c-pretty-print.c (c_pretty_printer::clone): New vfunc | |
1084 | implementation. | |
1085 | * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl. | |
1086 | ||
d68f5d45 DM |
1087 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
1088 | ||
1089 | * c-format.c (range_label_for_format_type_mismatch::get_text): | |
1090 | Replace label_text ctor called with true with label_text::take. | |
1091 | ||
d3e28653 DM |
1092 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
1093 | ||
1094 | * c-format.c (selftest::test_type_mismatch_range_labels): Remove | |
1095 | initial newline from expected outputs. | |
1096 | * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before | |
1097 | call to diagnostic_show_locus. | |
1098 | ||
abd6d8cc JJ |
1099 | 2019-12-06 Jakub Jelinek <jakub@redhat.com> |
1100 | ||
1101 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for | |
1102 | now. | |
1103 | ||
7906797e MP |
1104 | 2019-12-05 Marek Polacek <polacek@redhat.com> |
1105 | Jakub Jelinek <jakub@redhat.com> | |
1106 | ||
1107 | PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts. | |
1108 | * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr. | |
1109 | ||
5c04da88 MP |
1110 | 2019-12-05 Marek Polacek <polacek@redhat.com> |
1111 | ||
1112 | PR c++/92271 - make __is_same alias for __is_same_as. | |
1113 | * c-common.c: Add __is_same, an alias for __is_same_as. | |
1114 | ||
43aae289 MP |
1115 | 2019-12-03 Marek Polacek <polacek@redhat.com> |
1116 | ||
1117 | PR c++/91363 - P0960R3: Parenthesized initialization of aggregates. | |
1118 | * c-cppbuiltin.c (c_cpp_builtins): Predefine | |
1119 | __cpp_aggregate_paren_init=201902 for -std=c++2a. | |
1120 | ||
d7ddfbcb JH |
1121 | 2019-11-30 Jan Hubicka <hubicka@ucw.cz> |
1122 | ||
1123 | * c-attribs.c (handle_symver_attribute): New function | |
1124 | (c_common_attributes): Add symver. | |
1125 | ||
65ef05d0 RS |
1126 | 2019-11-30 Richard Sandiford <richard.sandiford@arm.com> |
1127 | ||
1128 | * c-common.c (pointer_int_sum): Use verify_type_context to check | |
1129 | whether the target allows pointer arithmetic for the types involved. | |
1130 | (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context | |
1131 | to check whether the target allows sizeof and alignof operations | |
1132 | for the types involved. | |
1133 | ||
1a291106 JM |
1134 | 2019-11-27 Jason Merrill <jason@redhat.com> |
1135 | ||
1136 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. | |
1137 | ||
05d6cb1a JJ |
1138 | 2019-11-26 Jakub Jelinek <jakub@redhat.com> |
1139 | ||
1140 | PR c++/61414 | |
1141 | * c-attribs.c (handle_mode_attribute): Add mode attribute to | |
1142 | ENUMERAL_TYPEs. | |
1143 | ||
5b8d9367 JM |
1144 | 2019-11-25 Joseph Myers <joseph@codesourcery.com> |
1145 | ||
1146 | PR c/91985 | |
1147 | * c-common.c (c_common_type_for_mode): Handle decimal | |
1148 | floating-point types being NULL_TREE. | |
1149 | * c-format.c (get_format_for_type_1): Handle specified types being | |
1150 | NULL_TREE. | |
1151 | * c-lex.c (interpret_float): Give an error for decimal | |
1152 | floating-point constants when decimal floating-point not | |
1153 | supported. | |
1154 | ||
1fbf51cb JJ |
1155 | 2019-11-23 Jakub Jelinek <jakub@redhat.com> |
1156 | ||
1157 | PR middle-end/83859 | |
1158 | * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid | |
1159 | memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to | |
1160 | group warning with inform together. | |
1161 | (handle_access_attribute): Formatting fix. | |
1162 | ||
761df906 JJ |
1163 | 2019-11-22 Jakub Jelinek <jakub@redhat.com> |
1164 | ||
bdaf8be1 JJ |
1165 | PR c/90677 |
1166 | * c-common.h (identifier_global_tag): Declare. | |
1167 | * c-format.c (get_pointer_to_named_type): Renamed to ... | |
1168 | (get_named_type): ... this. Use identifier_global_tag instead of | |
1169 | identifier_global_value, handle the return value being a TYPE_P. | |
1170 | (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers | |
1171 | to call get_named_type instead. Formatting fixes. | |
1172 | ||
c2ecce6d | 1173 | Implement P1902R1, Missing feature-test macros 2017-2019. |
761df906 JJ |
1174 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures |
1175 | and __cpp_generic_lambdas for -std=c++2a. Define | |
1176 | __cpp_designated_initializers, __cpp_constexpr_in_decltype and | |
1177 | __cpp_consteval for -std=c++2a. Remove a FIXME comment about | |
1178 | __cpp_concepts for -std=c++2a. | |
1179 | ||
54aa6b58 MS |
1180 | 2019-11-22 Martin Sebor <msebor@redhat.com> |
1181 | ||
1182 | PR middle-end/83859 | |
1183 | * c-attribs.c (handle_access_attribute): New function. | |
1184 | (c_common_attribute_table): Add new attribute. | |
1185 | (get_argument_type): New function. | |
1186 | (append_access_attrs): New function. | |
1187 | (get_nonnull_operand): Rename... | |
1188 | (get_attribute_operand): ...to this. | |
1189 | * c-common.c (get_nonnull_operand): Rename... | |
1190 | (get_attribute_operand): ...to this. | |
1191 | ||
6c80b1b5 JM |
1192 | 2019-11-21 Joseph Myers <joseph@codesourcery.com> |
1193 | ||
1194 | * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead | |
1195 | of warning. | |
1196 | ||
192961ff JM |
1197 | 2019-11-19 Joseph Myers <joseph@codesourcery.com> |
1198 | ||
1199 | * c-common.c (attribute_fallthrough_p): In C, use pedwarn not | |
1200 | warning for standard attributes mixed with fallthrough attributes. | |
1201 | ||
f8aea5e3 JM |
1202 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1203 | ||
1204 | * c-attribs.c (handle_fallthrough_attribute): Remove static. | |
1205 | * c-common.h (handle_fallthrough_attribute): Declare. | |
1206 | ||
2cc94aa8 JM |
1207 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1208 | ||
1209 | * c-attribs.c (handle_deprecated_attribute): Remove static. | |
1210 | * c-common.h (handle_deprecated_attribute): Declare. | |
1211 | ||
7c5890cc JM |
1212 | 2019-11-14 Joseph Myers <joseph@codesourcery.com> |
1213 | ||
1214 | * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned | |
1215 | char for C. | |
1216 | ||
b2417b59 JJ |
1217 | 2019-11-14 Jakub Jelinek <jakub@redhat.com> |
1218 | ||
d0ec7c93 JJ |
1219 | * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of |
1220 | valid vendors. | |
1221 | ||
b2417b59 JJ |
1222 | * c-omp.c (c_omp_check_context_selector): Handle name lists |
1223 | containing string literals. Don't diagnose atomic_default_mem_order | |
1224 | with multiple props. | |
1225 | ||
00be2a5f JM |
1226 | 2019-11-13 Joseph Myers <joseph@codesourcery.com> |
1227 | ||
1228 | * c-cppbuiltin.c (builtin_define_float_constants): Also define | |
1229 | NORM_MAX constants. Update call to get_max_float. | |
1230 | (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX | |
1231 | constants. | |
1232 | ||
2dbad62d EB |
1233 | 2019-11-13 Eric Botcazou <ebotcazou@adacore.com> |
1234 | ||
1235 | * c-ada-spec.c (get_underlying_decl): Do not look through typedefs. | |
1236 | (dump_forward_type): Do not generate a declaration for function types. | |
1237 | (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration | |
1238 | of the component type if it is declared in another file. | |
1239 | ||
6ed76044 ML |
1240 | 2019-11-12 Martin Liska <mliska@suse.cz> |
1241 | ||
1242 | * c-opts.c (c_common_post_options): | |
1243 | Use SET_OPTION_IF_UNSET. | |
1244 | ||
62aee289 MR |
1245 | 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com> |
1246 | Frederik Harwath <frederik@codesourcery.com> | |
1247 | ||
1248 | gcc/c-family/ | |
1249 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration | |
1250 | constant. | |
1251 | * c-pragma.c (oacc_pragmas): Add "serial" entry. | |
1252 | ||
f486280c RS |
1253 | 2019-11-08 Richard Sandiford <richard.sandiford@arm.com> |
1254 | ||
1255 | * c-common.h (gnu_vector_type_p): New function. | |
1256 | * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle | |
1257 | vectors to satisfy gnu_vector_type_p. | |
1258 | (c_build_vec_convert): Likewise __builtin_convertvector. | |
1259 | (convert_vector_to_array_for_subscript): Likewise when applying | |
1260 | implicit vector to array conversion. | |
1261 | (scalar_to_vector): Likewise when converting vector-scalar | |
1262 | operations to vector-vector operations. | |
1263 | ||
017c6491 JM |
1264 | 2019-11-08 Joseph Myers <joseph@codesourcery.com> |
1265 | ||
1266 | * c.opt (Wold-style-definition): Initialize to -1. | |
1267 | * c-opts.c (c_common_post_options): Set warn_old_style_definition | |
1268 | to flag_isoc2x if not set explicitly. | |
1269 | ||
c01bd174 JM |
1270 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
1271 | ||
1272 | * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes. | |
1273 | ||
0df65305 JM |
1274 | 2019-11-05 Jason Merrill <jason@redhat.com> |
1275 | ||
1276 | * c-opts.c (c_common_post_options): -fconcepts-ts implies | |
1277 | -fconcepts. | |
1278 | ||
e0c866dd KK |
1279 | 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com> |
1280 | ||
1281 | * c-opts.c (c_common_post_options): Update | |
1282 | latest_abi_version. | |
1283 | ||
f968ef9b JJ |
1284 | 2019-11-02 Jakub Jelinek <jakub@redhat.com> |
1285 | ||
d0c464d2 JJ |
1286 | * c-common.h (c_omp_get_context_selector): Remove. |
1287 | * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c | |
1288 | and renamed to omp_get_context_selector. | |
1289 | ||
917dd789 JJ |
1290 | * c-omp.c (c_omp_mark_declare_variant): Use |
1291 | omp_context_selector_set_compare. | |
1292 | ||
f968ef9b JJ |
1293 | PR c++/88335 - Implement P1073R3: Immediate functions |
1294 | * c-common.h (enum rid): Add RID_CONSTEVAL. | |
1295 | * c-common.c (c_common_reswords): Add consteval. | |
1296 | ||
5f6705b7 JJ |
1297 | 2019-11-01 Martin Sebor <msebor@redhat.com> |
1298 | ||
1299 | PR middle-end/91679 | |
1300 | PR middle-end/91647 | |
1301 | PR middle-end/91463 | |
1302 | PR middle-end/92312 | |
1303 | * c-pretty-print.c (direct_abstract_declarator): Print | |
1304 | bound in zero-length arrays. | |
1305 | * c.opt (-Wzero-length-bounds): New option. | |
1306 | ||
43f1814c NS |
1307 | 2019-10-30 Nathan Sidwell <nathan@acm.org> |
1308 | ||
1309 | * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature | |
1310 | macros. | |
1311 | ||
ad1539d5 MS |
1312 | 2019-10-28 Martin Sebor <msebor@redhat.com> |
1313 | ||
1314 | PR c/66970 | |
1315 | * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins | |
1316 | even when only preprocessing. | |
1317 | * c-common.h (names_builtin_p): Declare new function. | |
1318 | * c-lex.c (init_c_lex): Set has_builtin. | |
1319 | (c_common_has_builtin): Define a new function. | |
1320 | * c-ppoutput.c (init_pp_output): Set has_builtin. | |
1321 | ||
135df52c JJ |
1322 | 2019-10-24 Jakub Jelinek <jakub@redhat.com> |
1323 | ||
1324 | * c-common.h (c_omp_context_selector_matches): Remove. | |
1325 | * c-omp.c (c_omp_context_selector_matches): Remove. | |
1326 | * c-attribs.c (c_common_attribute_table): Add | |
1327 | "omp declare target {host,nohost,block}" attributes. | |
1328 | ||
8ad0c477 JM |
1329 | 2019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com> |
1330 | ||
1331 | * c-lex.c (c_common_has_attribute): Update nodiscard value. | |
1332 | ||
56898e43 RS |
1333 | 2019-10-14 Richard Sandiford <richard.sandiford@arm.com> |
1334 | ||
1335 | * c-common.h (user_facing_original_type_p): Declare. | |
1336 | * c-common.c: Include c-spellcheck.h. | |
1337 | (user_facing_original_type_p): New function. | |
1338 | ||
20de9568 JJ |
1339 | 2019-10-12 Jakub Jelinek <jakub@redhat.com> |
1340 | ||
1341 | * c-common.h (c_omp_mark_declare_variant, | |
1342 | c_omp_context_selector_matches): Declare. | |
1343 | * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h | |
1344 | and hsa-common.h. | |
1345 | (c_omp_get_context_selector): Support second argument NULL. | |
1346 | (c_omp_mark_declare_variant, c_omp_context_selector_matches): New | |
1347 | functions. | |
1348 | * c-attribs.c (c_common_attribute_table): Remove "omp declare variant" | |
1349 | attribute, add "omp declare variant base" and | |
1350 | "omp declare variant variant" attributes. | |
1351 | ||
175a85b2 JM |
1352 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
1353 | ||
1354 | * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat) | |
1355 | CppReason(CPP_W_C11_C2X_COMPAT). | |
1356 | ||
fe2bc27c JM |
1357 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
1358 | ||
1359 | * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32, | |
1360 | _Decimal64 and _Decimal128. | |
1361 | ||
27dfdc0f JM |
1362 | 2019-10-10 Joseph Myers <joseph@codesourcery.com> |
1363 | ||
1364 | * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP | |
1365 | types if DFP not supported. | |
1366 | ||
94e7f906 JJ |
1367 | 2019-10-10 Jakub Jelinek <jakub@redhat.com> |
1368 | ||
1369 | * c-common.h (c_omp_check_context_selector, | |
1370 | c_omp_get_context_selector): Declare. | |
1371 | * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling | |
1372 | in diagnostic message. | |
1373 | (c_omp_check_context_selector, c_omp_get_context_selector): New | |
1374 | functions. | |
1375 | * c-attribs.c (c_common_attribute_table): Add "omp declare variant" | |
1376 | attribute. | |
1377 | (handle_omp_declare_variant_attribute): New function. | |
1378 | ||
a7160771 MS |
1379 | 2019-10-09 Martin Sebor <msebor@redhat.com> |
1380 | ||
1381 | PR tree-optimization/90879 | |
1382 | * c.opt (-Wstring-compare): New option. | |
1383 | ||
cb57504a JM |
1384 | 2019-10-08 Andrew Sutton <asutton@lock3software.com> |
1385 | Jason Merrill <jason@redhat.com> | |
1386 | ||
1387 | Update the concepts implementation to conform to the C++20 | |
1388 | specification, improve compile times, and generally clean up | |
1389 | the implementation. | |
1390 | ||
1391 | * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for | |
1392 | concepts when -std=c++2a. Bump __cpp_concepts to 201907. | |
1393 | * c.opt: Add -Wconcepts-ts. | |
1394 | * c-opts.c (c_common_post_options): Warn when -fconcepts is used | |
1395 | with -std=c++2a. Disable warning for -fconcepts in C++20 mode. | |
1396 | (set_std_cxx2a): Enable concepts by default. | |
1397 | ||
fbb2a6dc JM |
1398 | 2019-10-08 Joseph Myers <joseph@codesourcery.com> |
1399 | ||
1400 | * c-opts.c (c_common_post_options): Set | |
1401 | -fno-fp-int-builtin-inexact for C2X. | |
1402 | ||
8e007055 JJ |
1403 | 2019-10-05 Jakub Jelinek <jakub@redhat.com> |
1404 | ||
1405 | PR c++/91369 - Implement P0784R7: constexpr new | |
1406 | * c-cppbuiltin.c (c_cpp_builtins): Predefine | |
1407 | __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a. | |
1408 | ||
843f104d JM |
1409 | 2019-10-04 Joseph Myers <joseph@codesourcery.com> |
1410 | ||
1411 | PR c/82752 | |
1412 | * c-format.c (C_STD_VER): Handle C2x. | |
1413 | (C_STD_NAME): Likewise. | |
1414 | (strftime_flag_specs): Add 'O' modifier with 'p' flag. | |
1415 | (time_char_table): Use separate entry for 'B' and 'b', with 'O' | |
1416 | modifier allowed and 'p' flag. | |
1417 | * c-format.h (enum format_std_version): Add STD_C2X. | |
1418 | (struct format_char_info): Mention 'p' in comment on flags2. | |
1419 | ||
e9c9a142 DM |
1420 | 2019-10-01 David Malcolm <dmalcolm@redhat.com> |
1421 | ||
1422 | * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when | |
1423 | calling diagnostic_show_locus, rather than destroying it afterwards. | |
1424 | ||
7552c36a JJ |
1425 | 2019-10-01 Jakub Jelinek <jakub@redhat.com> |
1426 | ||
1427 | PR c++/91925 | |
1428 | * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs | |
1429 | with NULL DECL_FIELD_OFFSET. | |
1430 | ||
8209db25 RS |
1431 | 2019-10-01 Richard Sandiford <richard.sandiford@arm.com> |
1432 | ||
1433 | * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type | |
1434 | has a type name, use it in preference to the __vector syntax. | |
1435 | ||
9343bf99 RS |
1436 | 2019-09-30 Richard Sandiford <richard.sandiford@arm.com> |
1437 | ||
1438 | * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing | |
1439 | two spaces between a comma and "...". | |
1440 | ||
59bc434a JJ |
1441 | 2019-09-27 Jakub Jelinek <jakub@redhat.com> |
1442 | ||
1443 | PR c++/88203 | |
1444 | * c-common.h (c_omp_predefined_variable): Declare. | |
1445 | * c-omp.c (c_omp_predefined_variable): New function. | |
1446 | (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED | |
1447 | for predefined variables. | |
1448 | ||
c6447c20 RS |
1449 | 2019-09-27 Richard Sandiford <richard.sandiford@arm.com> |
1450 | ||
1451 | * c-common.h (build_function_call_vec): Take the original | |
1452 | function decl as an optional final parameter. | |
1453 | (check_builtin_function_arguments): Take the original function decl. | |
1454 | * c-common.c (check_builtin_function_arguments): Likewise. | |
1455 | Handle all built-in functions, not just BUILT_IN_NORMAL ones. | |
1456 | Use targetm.check_builtin_call to check BUILT_IN_MD functions. | |
1457 | ||
c4438114 JM |
1458 | 2019-09-15 Jason Merrill <jason@redhat.com> |
1459 | ||
1460 | * c-warn.c (warn_logical_operator): Strip location wrappers. Don't | |
1461 | fold_for_warn in "|| mask" warning. | |
1462 | ||
68a57628 ML |
1463 | 2019-09-10 Martin Liska <mliska@suse.cz> |
1464 | ||
1465 | * c.opt: Use newly added WarnRemoved. | |
1466 | ||
f48ef52e ML |
1467 | 2019-09-09 Martin Liska <mliska@suse.cz> |
1468 | ||
1469 | * c.opt: Update comment of removed | |
1470 | options that are preserved only for backward | |
1471 | compatibility. | |
1472 | ||
67f6e649 ML |
1473 | 2019-09-06 Martin Liska <mliska@suse.cz> |
1474 | ||
1475 | PR c++/91125 | |
1476 | * c-common.c: Remove definition of flag_use_repository. | |
1477 | * c-common.h: Likewise. | |
1478 | * c-opts.c (c_common_handle_option): | |
1479 | Do not handle OPT_frepo option. | |
1480 | * c.opt: Mark the option with Deprecated. | |
1481 | ||
db9d2274 MP |
1482 | 2019-09-04 Marek Polacek <polacek@redhat.com> |
1483 | ||
1484 | * c.opt (fdeduce-init-list): Ignored. | |
1485 | ||
68e2c199 PK |
1486 | 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
1487 | ||
1488 | PR c/78736 | |
1489 | * c.opt (Wenum-conversion): New option. | |
1490 | ||
7a4418a5 JL |
1491 | 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
1492 | ||
1493 | * c-attribs.c (handle_section_attribute): Call the | |
1494 | handle_generic_attribute target hook after performing target | |
1495 | independent processing. | |
1496 | (handle_noinit_attribute): Likewise. | |
1497 | ||
5f76ab15 ILT |
1498 | 2019-09-03 Ian Lance Taylor <iant@golang.org> |
1499 | ||
1500 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand | |
1501 | when using -fgo-dump-spec. | |
1502 | ||
ae0d3f6a ML |
1503 | 2019-09-02 Martin Liska <mliska@suse.cz> |
1504 | ||
1505 | PR c++/91155 | |
1506 | * c-common.c (fname_as_string): Use cxx_printable_name for | |
1507 | __PRETTY_FUNCTION__ same as was used before r265711. | |
1508 | ||
8a902edb MP |
1509 | 2019-08-28 Marek Polacek <polacek@redhat.com> |
1510 | ||
1511 | Implement P1152R4: Deprecating some uses of volatile. | |
1512 | PR c++/91361 | |
1513 | * c-opts.c (c_common_post_options): Enable -Wvolatile by | |
1514 | default for C++2a, unless -Wno-deprecated. | |
1515 | * c.opt (Wvolatile): New warning. | |
1516 | ||
4742dbe7 MP |
1517 | 2019-08-28 Marek Polacek <polacek@redhat.com> |
1518 | ||
1519 | PR c++/91360 - Implement C++20 P1143R2: constinit. | |
1520 | * c-common.c (c_common_reswords): Add constinit and __constinit. | |
1521 | (keyword_is_decl_specifier): Handle RID_CONSTINIT. | |
1522 | * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and | |
1523 | RID_LAST_CXX20. | |
1524 | (D_CXX20): Define. | |
1525 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit. | |
1526 | * c-format.c (cxx_keywords): Add "constinit". | |
1527 | * c.opt (Wc++2a-compat, Wc++20-compat): New options. | |
1528 | ||
6a074892 JJ |
1529 | 2019-08-27 Jakub Jelinek <jakub@redhat.com> |
1530 | ||
1531 | PR c++/91415 | |
1532 | * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR, | |
1533 | COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it | |
1534 | like COMPOUND_EXPR rather than normal expression. | |
1535 | ||
22f8849d IS |
1536 | 2019-08-23 Iain Sandoe <iain@sandoe.co.uk> |
1537 | ||
1538 | PR pch/61250 | |
1539 | * c-lex.c (c_lex_with_flags): Don't call | |
1540 | c_common_no_more_pch () from here. | |
1541 | ||
df375b03 JJ |
1542 | 2019-08-23 Jakub Jelinek <jakub@redhat.com> |
1543 | ||
1544 | PR middle-end/91283 | |
1545 | * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision | |
1546 | instead of flag_excess_precision_cmdline. | |
1547 | * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise. | |
1548 | * c-opts.c (c_common_post_options): Likewise. | |
1549 | ||
14b7950f MS |
1550 | 2019-08-22 Martin Sebor <msebor@redhat.com> |
1551 | ||
1552 | PR middle-end/91490 | |
1553 | * c-common.c (braced_list_to_string): Add argument and overload. | |
1554 | Handle flexible length arrays and unions. | |
1555 | ||
8bb2ee59 EB |
1556 | 2019-08-21 Eric Botcazou <ebotcazou@adacore.com> |
1557 | ||
1558 | * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken | |
1559 | function declarations where arguments are missing. Rename variables. | |
1560 | ||
21c1e205 RB |
1561 | 2019-08-15 Richard Biener <rguenther@suse.de> |
1562 | ||
1563 | * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is | |
1564 | enabled, define __SIZETYPE__. | |
1565 | ||
f0033821 CL |
1566 | 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org> |
1567 | ||
1568 | * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add | |
1569 | exclusion with "section" attribute. | |
1570 | (attr_noinit_exclusions): New table. | |
1571 | (handle_noinit_attribute): New function. | |
1572 | ||
4d732405 RS |
1573 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
1574 | ||
1575 | PR middle-end/91421 | |
1576 | * c-common.c (resolve_overloaded_builtin): Use | |
1577 | copy_decl_built_in_function. | |
1578 | ||
51ad8481 MS |
1579 | 2019-08-13 Martin Sebor <msebor@redhat.com> |
1580 | ||
1581 | PR c/80619 | |
1582 | * c-format.c (printf_length_specs): Set FMT_LEN_w for "w". | |
1583 | (asm_fprintf_length_spec): Same. | |
1584 | * c-format.h (format_lengths): Add FMT_LEN_w. | |
1585 | ||
77eb117f JJ |
1586 | 2019-08-10 Jakub Jelinek <jakub@redhat.com> |
1587 | ||
1588 | * c-pragma.h (enum pragma_omp_clause): Add | |
1589 | PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
1590 | ||
398e3feb JJ |
1591 | 2019-08-07 Jakub Jelinek <jakub@redhat.com> |
1592 | ||
1593 | * c-pragma.h (enum pragma_omp_clause): Add | |
1594 | PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE | |
1595 | equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate | |
1596 | enumeration value. | |
1597 | ||
ab574db6 MP |
1598 | 2019-08-05 Marek Polacek <polacek@redhat.com> |
1599 | ||
1600 | PR c++/91338 - Implement P1161R3: Deprecate a[b,c]. | |
1601 | * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by | |
1602 | default for C++2a, unless -Wno-deprecated. | |
1603 | * c.opt (Wcomma-subscript): New warning. | |
1604 | ||
554a530f JJ |
1605 | 2019-07-20 Jakub Jelinek <jakub@redhat.com> |
1606 | ||
1607 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP. | |
1608 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND. | |
1609 | * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry. | |
1610 | * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP. | |
1611 | * c-omp.c (c_omp_split_clauses): Add support for 4 new combined | |
1612 | constructs with the loop construct. | |
1613 | ||
1a888209 JJ |
1614 | 2019-07-13 Jakub Jelinek <jakub@redhat.com> |
1615 | ||
1616 | PR c/91149 | |
1617 | * c-omp.c (c_omp_split_clauses): Fix a pasto in | |
1618 | OMP_CLAUSE_REDUCTION_TASK handling. | |
1619 | ||
1fdd6f04 JJ |
1620 | 2019-07-12 Jakub Jelinek <jakub@redhat.com> |
1621 | ||
1622 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER. | |
1623 | * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER. | |
1624 | ||
99b1c316 MS |
1625 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
1626 | ||
1627 | PR c++/61339 | |
1fdd6f04 | 1628 | * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct |
99b1c316 MS |
1629 | and others to class. |
1630 | * c-pretty-print.h: Same. | |
1631 | ||
6c1dae73 MS |
1632 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
1633 | ||
1634 | PR c++/61339 | |
1635 | * c-format.c (check_argument_type): Change class-key from class to | |
1636 | struct and vice versa to match convention and avoid -Wclass-is-pod | |
1637 | and -Wstruct-no-pod. | |
1638 | * c-pretty-print.h: Same. | |
1639 | ||
8ba6ea87 ML |
1640 | 2019-07-03 Martin Liska <mliska@suse.cz> |
1641 | ||
1642 | * c-common.c (try_to_locate_new_include_insertion_point): Remove | |
1643 | dead assignemts. | |
1644 | ||
83eb9522 JJ |
1645 | 2019-07-03 Jakub Jelinek <jakub@redhat.com> |
1646 | ||
1647 | * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN | |
1648 | clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined | |
1649 | with OMP_PARALLEL. | |
1650 | ||
1c6ffbab QZ |
1651 | 2019-07-02 qing zhao <qing.zhao@oracle.com> |
1652 | ||
1653 | PR preprocessor/90581 | |
1654 | * c-opts.c (c_common_handle_option): Handle -fmax-include-depth. | |
1655 | * c.opt: Add new option -fmax-include-depth. | |
1656 | ||
7ffc7de5 JM |
1657 | 2019-06-26 Jason Merrill <jason@redhat.com> |
1658 | ||
1659 | PR c++/55442 - memory-hog with highly recursive constexpr. | |
1660 | * c.opt (fconstexpr-loop-limit): New. | |
1661 | ||
361af3e4 JJ |
1662 | 2019-06-25 Jakub Jelinek <jakub@redhat.com> |
1663 | ||
1664 | PR sanitizer/90954 | |
1665 | * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition | |
1666 | to SAVE_EXPR in first operand of a COMPOUND_EXPR. | |
1667 | ||
ab20d992 JJ |
1668 | 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
1669 | ||
1670 | * c-common.c (c_common_nodes_and_builtins): Define | |
1671 | alternate "__intN__" name for "__intN" types. | |
1672 | ||
f4af4019 JH |
1673 | 2019-06-24 Jan Hubicka <jh@suse.cz> |
1674 | ||
1675 | * c-common.c (braced_lists_to_strings): Check that | |
1676 | type is array or integer prior checking string flag. | |
1677 | ||
da9e9b57 MB |
1678 | 2019-06-21 Matthew Beliveau <mbelivea@redhat.com> |
1679 | ||
1680 | PR c++/90875 - added -Wswitch-outside-range option | |
1681 | * c.opt (Wswitch-outside-range): Added new option. | |
1682 | * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range. | |
1683 | ||
3f3d6a6f MP |
1684 | 2019-06-21 Marek Polacek <polacek@redhat.com> |
1685 | ||
1686 | PR c++/90953 - ICE with -Wmissing-format-attribute. | |
1687 | * c-common.c (check_function_arguments_recurse): Use | |
1688 | get_attribute_name. | |
1689 | (check_missing_format_attribute): Likewise. | |
1690 | ||
1bf32c11 MP |
1691 | 2019-06-19 Marek Polacek <polacek@redhat.com> |
1692 | ||
1693 | PR c++/60364 - noreturn after first decl not diagnosed. | |
1694 | * c-attribs.c (handle_noreturn_attribute): No longer static. | |
1695 | * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions): | |
1696 | Declare. | |
1697 | * c-format.c (check_function_format): Use get_attribute_name. | |
1698 | ||
a04c0734 MS |
1699 | 2019-06-19 Martin Sebor <msebor@redhat.com> |
1700 | ||
1701 | PR translation/90156 | |
1702 | * c-format.c (function_format_info::format_type): Adjust type. | |
1703 | (function_format_info::is_raw): New member. | |
1704 | (decode_format_type): Adjust signature. Handle "raw" diag attributes. | |
1705 | (decode_format_attr): Adjust call to decode_format_type. | |
1706 | Avoid a redundant call to convert_format_name_to_system_name. | |
1707 | Avoid abbreviating the word "arguments" in a diagnostic. | |
1708 | (format_warning_substr): New function. | |
1709 | (avoid_dollar_number): Quote dollar sign in a diagnostic. | |
1710 | (finish_dollar_format_checking): Same. | |
1711 | (check_format_info): Same. | |
1712 | (struct baltoks_t): New. | |
1713 | (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays. | |
1714 | (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New | |
1715 | functions. | |
1716 | (check_format_info_main): Call check_plain. Use baltoks_t. Call | |
1717 | maybe_diag_unbalanced_tokens. | |
1718 | (handle_format_attribute): Spell out the word "arguments" in | |
1719 | a diagnostic. | |
1720 | ||
d3786ebb MB |
1721 | 2019-06-11 Matthew Beliveau <mbelivea@redhat.com> |
1722 | ||
1723 | PR c++/90449 - add -Winaccessible-base option. | |
1724 | * c.opt (Winaccessible-base): New option. | |
1725 | ||
bf38f7e9 JJ |
1726 | 2019-06-10 Jakub Jelinek <jakub@redhat.com> |
1727 | ||
1728 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN. | |
1729 | * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan. | |
1730 | * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on | |
1731 | combined/composite constructs where it is not allowed. Copy over | |
1732 | OMP_CLAUSE_REDUCTION_INSCAN. | |
1733 | ||
0ecf545c MS |
1734 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
1735 | ||
1736 | * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation. | |
1737 | (handle_alias_ifunc_attribute): Same. | |
1738 | (handle_copy_attribute): Same. | |
1739 | (handle_weakref_attribute): Same. | |
1740 | (handle_nonnull_attribute): Same. | |
1741 | * c-warn.c (warn_for_sign_compare): Same. | |
1742 | (warn_for_restrict): Same. | |
1743 | * c.opt: Same. | |
1744 | ||
36b34127 MS |
1745 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
1746 | ||
1747 | * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic. | |
1748 | * c.opt (-Wformat-diag): Remove a spurious period. | |
1749 | ||
357a352f JJ |
1750 | 2019-05-29 Jakub Jelinek <jakub@redhat.com> |
1751 | ||
1752 | PR c/90628 | |
1753 | * c-common.c (check_builtin_function_arguments) | |
1754 | <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer | |
1755 | as last argument. | |
1756 | ||
2b8235ea EB |
1757 | 2019-05-23 Eric Botcazou <ebotcazou@adacore.com> |
1758 | ||
1759 | * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort. | |
1760 | ||
6d86ddc4 ML |
1761 | 2019-05-22 Martin Liska <mliska@suse.cz> |
1762 | ||
1763 | PR lto/90500 | |
1764 | * c-attribs.c (handle_copy_attribute): Do not copy | |
1765 | target_clones attribute. | |
1766 | ||
419ba5b9 EB |
1767 | 2019-05-21 Eric Botcazou <ebotcazou@adacore.com> |
1768 | ||
1769 | * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR. | |
1770 | * c-ada-spec.c (print_assignment_operator): New function. | |
1771 | (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy | |
1772 | assignment operators declared as methods and filter out the others. | |
1773 | ||
e03436e7 TS |
1774 | 2019-05-17 Thomas Schwinge <thomas@codesourcery.com> |
1775 | ||
1776 | PR c/89433 | |
1777 | * c-attribs.c (c_common_attribute_table): Set min_len to -1 for | |
1778 | "omp declare target". | |
1779 | ||
a9c697b8 MS |
1780 | 2019-05-16 Martin Sebor <msebor@redhat.com> |
1781 | ||
ab20d992 JJ |
1782 | * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers, |
1783 | keywords, operators, and types in diagnostics. | |
1784 | (handle_scalar_storage_order_attribute): Same. | |
1785 | (handle_mode_attribute): Same. | |
1786 | (handle_visibility_attribute): Same. | |
1787 | (handle_assume_aligned_attribute): Same. | |
1788 | (handle_no_split_stack_attribute): Same. | |
1789 | * c-common.c (shorten_compare): Same. | |
1790 | (c_common_truthvalue_conversion): Same. | |
1791 | (cb_get_source_date_epoch): Same. | |
1792 | * c-lex.c (cb_def_pragma): Quote keywords, operators, and types | |
1793 | in diagnostics. | |
1794 | (interpret_float): Same. | |
1795 | * c-omp.c (c_finish_omp_for): Same. | |
1796 | * c-opts.c (c_common_post_options): Same. | |
1797 | * c-pch.c (c_common_pch_pragma): Same. | |
1798 | * c-pragma.c (pop_alignment): Same. | |
1799 | (handle_pragma_pack): Same. | |
1800 | (apply_pragma_weak): Same. | |
1801 | (handle_pragma_weak): Same. | |
1802 | (handle_pragma_scalar_storage_order): Same. | |
1803 | (handle_pragma_redefine_extname): Same. | |
1804 | (add_to_renaming_pragma_list): Same. | |
1805 | (maybe_apply_renaming_pragma): Same. | |
1806 | (push_visibility): Same. | |
1807 | (handle_pragma_visibility): Same. | |
1808 | (handle_pragma_optimize): Same. | |
1809 | (handle_pragma_message): Same. | |
1810 | * c-warn.c (warn_for_omitted_condop): Same. | |
1811 | (lvalue_error): Same. | |
a9c697b8 | 1812 | |
6b943512 RB |
1813 | 2019-05-15 Richard Biener <rguenther@suse.de> |
1814 | ||
1815 | PR c/90474 | |
1816 | * c-common.c (c_common_mark_addressable_vec): Also mark | |
1817 | a COMPOUND_LITERAL_EXPR_DECL addressable similar to | |
1818 | c_mark_addressable. | |
ab20d992 | 1819 | |
b744fc85 NS |
1820 | 2019-05-06 Nathan Sidwell <nathan@acm.org> |
1821 | ||
1822 | * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps. | |
1823 | ||
598f50d7 NS |
1824 | 2019-04-30 Nathan Sidwell <nathan@acm.org> |
1825 | ||
1826 | * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR. | |
1827 | ||
5bcc5a3b ML |
1828 | 2019-04-30 Martin Liska <mliska@suse.cz> |
1829 | ||
1830 | * c-pragma.c (handle_pragma_diagnostic): Provide hints | |
1831 | for unknown options. | |
1832 | ||
e78a87f7 RS |
1833 | 2019-04-26 Richard Sandiford <richard.sandiford@arm.com> |
1834 | ||
1835 | * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to | |
1836 | the pointer target rather than the pointer itself. | |
1837 | ||
c280b7ee JJ |
1838 | 2019-04-19 Jakub Jelinek <jakub@redhat.com> |
1839 | ||
1840 | PR c/89888 | |
1841 | * c-common.h (c_add_case_label): Remove orig_type and outside_range_p | |
1842 | arguments. | |
1843 | (c_do_switch_warnings): Remove outside_range_p argument. | |
1844 | * c-common.c (check_case_bounds): Removed. | |
1845 | (c_add_case_label): Remove orig_type and outside_range_p arguments. | |
1846 | Don't call check_case_bounds. Fold low_value as well as high_value. | |
1847 | * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument. | |
1848 | Check for case labels outside of range of original type here and | |
1849 | adjust them. | |
1850 | ||
8e8225e6 JJ |
1851 | 2019-04-12 Jakub Jelinek <jakub@redhat.com> |
1852 | ||
63b8a166 JJ |
1853 | PR translation/90041 |
1854 | * c.opt (-fhandle-exceptions): Use %< and %> around option names | |
1855 | in the Warn diagnostics. | |
1856 | ||
8e8225e6 JJ |
1857 | PR c/89946 |
1858 | * c-attribs.c (handle_patchable_function_entry_attribute): Add | |
1859 | function comment. Warn if arguments of the attribute are not positive | |
1860 | integer constants. | |
1861 | ||
53a3f614 EB |
1862 | 2019-04-09 Eric Botcazou <ebotcazou@adacore.com> |
1863 | ||
1864 | * c-ada-spec.c (print_destructor): Deal with deleting destructors. | |
1865 | (dump_ada_declaration) <FUNCTION_DECL>: Likewise. | |
1866 | ||
22be5873 EB |
1867 | 2019-04-07 Eric Botcazou <ebotcazou@adacore.com> |
1868 | ||
1869 | * c-ada-spec.c (is_float128): New predicate extracted from... | |
1870 | (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128. | |
1871 | <REAL_TYPE>: ...here. Call it. | |
1872 | ||
34facf20 DM |
1873 | 2019-04-05 David Malcolm <dmalcolm@redhat.com> |
1874 | ||
1875 | PR c/89985 | |
1876 | * c-warn.c (check_address_or_pointer_of_packed_member): Add | |
1877 | auto_diagnostic_group. Guard inform calls by result of | |
1878 | warning_at call. | |
1879 | ||
05564120 MP |
1880 | 2019-04-05 Marek Polacek <polacek@redhat.com> |
1881 | ||
ab20d992 | 1882 | PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion. |
05564120 MP |
1883 | * c-warn.c (check_address_or_pointer_of_packed_member): Check the type |
1884 | of RHS. | |
1885 | ||
7a506c3c JM |
1886 | 2019-04-03 Jason Merrill <jason@redhat.com> |
1887 | ||
1888 | PR c++/86586 - -fcompare-debug=-Wsign-compare. | |
1889 | * c-warn.c (warn_for_sign_compare): Call fold_for_warn. | |
1890 | ||
ddeae8c8 MS |
1891 | 2019-04-01 Martin Sebor <msebor@redhat.com> |
1892 | ||
1893 | PR c/89685 | |
1894 | * c-attribs.c (handle_copy_attribute): Handle references and | |
1895 | non-constant expressions. | |
1896 | ||
a15ffa22 JJ |
1897 | 2019-03-22 Jakub Jelinek <jakub@redhat.com> |
1898 | ||
1899 | PR c++/87481 | |
1900 | * c.opt (-fconstexpr-ops-limit=): New option. | |
1901 | ||
36a3a7a3 JJ |
1902 | 2019-03-21 Jakub Jelinek <jakub@redhat.com> |
1903 | ||
1904 | * c-common.c (per_file_includes_t): Use false as Lazy in hash_set | |
1905 | template param. | |
1906 | ||
bec1da64 MS |
1907 | 2019-03-19 Martin Sebor <msebor@redhat.com> |
1908 | ||
1909 | PR tree-optimization/89688 | |
1910 | * c-common.c (braced_list_to_string): Make static. | |
1911 | (braced_lists_to_strings): Define new function. | |
1912 | * c-common.h (braced_list_to_string): Remove. | |
1913 | (braced_lists_to_strings): Declare. | |
1914 | ||
1fe61adf ML |
1915 | 2019-03-12 Martin Liska <mliska@suse.cz> |
1916 | ||
1917 | * c-opts.c (c_common_handle_option): Wrap option with %< and %>. | |
1918 | ||
93964ebd ML |
1919 | 2019-03-11 Martin Liska <mliska@suse.cz> |
1920 | ||
1921 | * c-opts.c (c_common_post_options): Wrap apostrophes | |
1922 | in gcc internal format with %'. | |
1923 | ||
a3f9f006 ML |
1924 | 2019-03-11 Martin Liska <mliska@suse.cz> |
1925 | ||
1926 | * c-attribs.c (handle_nocf_check_attribute): Wrap an option name | |
1927 | in a string format message and fix GNU coding style. | |
1928 | * c-common.c (vector_types_convertible_p): Likewise. | |
1929 | (c_build_vec_perm_expr): Likewise. | |
1930 | * c-indentation.c (get_visual_column): Likewise. | |
1931 | * c-opts.c (c_common_handle_option): Likewise. | |
1932 | (c_common_post_options): Likewise. | |
1933 | (sanitize_cpp_opts): Likewise. | |
1934 | * c-pch.c (c_common_pch_pragma): Likewise. | |
1935 | * c-pragma.c (handle_pragma_pack): Likewise. | |
1936 | ||
1db01ff9 JJ |
1937 | 2019-03-08 Jakub Jelinek <jakub@redhat.com> |
1938 | ||
1939 | PR tree-optimization/89550 | |
1940 | * c-common.c (c_common_truthvalue_conversion): Only set | |
1941 | TREE_NO_WARNING if warning_at returned true. | |
1942 | * c-warn.c (overflow_warning, warn_logical_operator): Likewise. | |
1943 | ||
ba790e6f JJ |
1944 | 2019-02-25 Sandra Loosemore <sandra@codesourcery.com> |
1945 | Martin Sebor <msebor@gmail.com> | |
1946 | ||
1947 | * c.opt (Wmissing-attributes): Clean up doc string. | |
1948 | ||
7da73ba7 JJ |
1949 | 2019-02-25 Jakub Jelinek <jakub@redhat.com> |
1950 | ||
1951 | PR c/89495 | |
1952 | * c-format.c (maybe_read_dollar_number): Compute nargnum in | |
1953 | HOST_WIDE_INT type to avoid overflows and change overflow_flag | |
1954 | checking. | |
1955 | ||
921bb9d1 RB |
1956 | 2019-02-22 Richard Biener <rguenther@suse.de> |
1957 | ||
1958 | * c-pch.c (no_checksum): Remove. | |
1959 | (pch_init): Remove assertion that executable_checksum is not | |
1960 | all zero. | |
1961 | (c_common_valid_pch): Likewise. | |
1962 | ||
e2ebb05c MS |
1963 | 2019-02-18 Martin Sebor <msebor@redhat.com> |
1964 | ||
1965 | PR middle-end/89294 | |
1966 | * c-common.c (invalid_array_size_error): Handle cst_size_not_constant. | |
1967 | ||
3fe53000 DM |
1968 | 2019-02-16 David Malcolm <dmalcolm@redhat.com> |
1969 | ||
1970 | PR c++/88680 | |
1971 | * c-common.c (shorten_compare): Call fold_for_warn on op0 when | |
1972 | implementing -Wtype-limits. | |
1973 | ||
28a8cef1 MS |
1974 | 2019-02-11 Martin Sebor <msebor@redhat.com> |
1975 | ||
1976 | PR c++/87996 | |
1977 | * c-common.c (invalid_array_size_error): New function. | |
1978 | (valid_array_size_p): Call it. Handle size as well as type. | |
1979 | * c-common.h (valid_constant_size_p): New function. | |
1980 | (enum cst_size_error): New type. | |
1981 | ||
ec2be203 DM |
1982 | 2019-01-31 David Malcolm <dmalcolm@redhat.com> |
1983 | ||
1984 | PR c/89122 | |
1985 | * known-headers.cc (get_stdlib_header_for_name): Add | |
1986 | {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array. | |
1987 | ||
8936f047 JJ |
1988 | 2019-01-31 Jakub Jelinek <jakub@redhat.com> |
1989 | ||
1990 | PR libstdc++/88170 | |
1991 | * c-pretty-print.c (pp_c_enumeration_constant): Print always as | |
1992 | a C cast in pp_c_flag_gnu_v3 mode. | |
1993 | ||
6a335b96 JJ |
1994 | 2019-01-29 Jakub Jelinek <jakub@redhat.com> |
1995 | ||
1996 | PR c/86125 | |
1997 | * c-common.c (c_common_nodes_and_builtins): Build type variants for | |
1998 | builtin_structptr_types types even for C. | |
1999 | ||
2a06eba5 BE |
2000 | 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2001 | ||
2002 | * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case | |
2003 | when rhs is of array type correctly. Fix handling of nested structures. | |
2004 | Fix handling of indirect_ref together with nop_expr and/or addr_expr. | |
2005 | (check_and_warn_address_or_pointer_of_packed_member): Fix handling of | |
2006 | type casts within nested compound expressions. | |
2007 | ||
18a23298 JJ |
2008 | 2019-01-22 Jakub Jelinek <jakub@redhat.com> |
2009 | ||
2010 | PR middle-end/88968 | |
2011 | * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type | |
2012 | variable after using BIT_FIELD_REF. | |
2013 | ||
420183d9 L |
2014 | 2019-01-18 H.J. Lu <hongjiu.lu@intel.com> |
2015 | ||
2016 | PR c/51628 | |
2017 | PR c/88664 | |
2018 | * c-common.h (warn_for_address_or_pointer_of_packed_member): | |
2019 | Remove the boolean argument. | |
2020 | * c-warn.c (check_address_of_packed_member): Renamed to ... | |
2021 | (check_address_or_pointer_of_packed_member): This. Also | |
2022 | warn pointer conversion. | |
2023 | (check_and_warn_address_of_packed_member): Renamed to ... | |
2024 | (check_and_warn_address_or_pointer_of_packed_member): This. | |
2025 | Also warn pointer conversion. | |
2026 | (warn_for_address_or_pointer_of_packed_member): Remove the | |
2027 | boolean argument. Don't check pointer conversion here. | |
2028 | ||
99063eee RS |
2029 | 2019-01-15 Richard Sandiford <richard.sandiford@arm.com> |
2030 | ||
2031 | PR inline-asm/52813 | |
2032 | * c.opt (Wdeprecated): Move documentation and variable to common.opt. | |
2033 | ||
a30d0196 JJ |
2034 | 2019-01-14 Jakub Jelinek <jakub@redhat.com> |
2035 | ||
2036 | * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision | |
2037 | and __cpp_nontype_template_parameter_auto. Add a comment that | |
2038 | __cpp_template_auto is deprecated. | |
2039 | ||
2d91f79d TH |
2040 | 2019-01-14 Tom Honermann <tom@honermann.net> |
2041 | ||
2042 | Implement P0482R5, char8_t: A type for UTF-8 characters and strings | |
2043 | * c-common.c (c_common_reswords): Add char8_t. | |
2044 | (fix_string_type): Use char8_t for the type of u8 string literals. | |
2045 | (c_common_get_alias_set): char8_t doesn't alias. | |
2046 | (c_common_nodes_and_builtins): Define char8_t as a builtin type in | |
2047 | C++. | |
2048 | (c_stddef_cpp_builtins): Add __CHAR8_TYPE__. | |
2049 | (keyword_begins_type_specifier): Add RID_CHAR8. | |
2050 | * c-common.h (rid): Add RID_CHAR8. | |
2051 | (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE. | |
2052 | Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS. | |
2053 | Define char8_type_node and char8_array_type_node. | |
2054 | * c-cppbuiltin.c (cpp_atomic_builtins): Predefine | |
2055 | __GCC_ATOMIC_CHAR8_T_LOCK_FREE. | |
2056 | (c_cpp_builtins): Predefine __cpp_char8_t. | |
2057 | * c-lex.c (lex_string): Use char8_array_type_node as the type of | |
2058 | CPP_UTF8STRING. | |
2059 | (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR. | |
2060 | * c-opts.c: If not otherwise specified, enable -fchar8_t when | |
2061 | targeting C++2a. | |
2062 | * c.opt: Add the -fchar8_t command line option. | |
2063 | ||
23db6ced MS |
2064 | 2019-01-14 Martin Sebor <msebor@redhat.com> |
2065 | ||
2066 | PR target/88638 | |
2067 | * c-attribs.c (positional_argument): Call valid_format_string_type_p | |
2068 | and issue errors if it fails. | |
2069 | * c-common.h (valid_format_string_type_p): Declare. | |
2070 | * c-format.c (valid_stringptr_type_p): Rename... | |
2071 | (valid_format_string_type_p): ...to this and make extern. | |
2072 | (handle_format_arg_attribute): Adjust to new name. | |
2073 | (check_format_string): Same. | |
2074 | ||
234c3818 L |
2075 | 2019-01-13 H.J. Lu <hongjiu.lu@intel.com> |
2076 | ||
2077 | * c-warn.c (warn_for_address_or_pointer_of_packed_member): | |
2078 | Replace "may may" with "may" in warning message. | |
2079 | ||
d8fcab68 JJ |
2080 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
2081 | ||
2082 | PR c++/85052 | |
2083 | * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR. | |
2084 | (c_build_vec_convert): Declare. | |
2085 | * c-common.c (c_build_vec_convert): New function. | |
2086 | ||
29d24852 MS |
2087 | 2019-01-04 Martin Sebor <msebor@redhat.com> |
2088 | ||
2089 | PR c/88546 | |
2090 | * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf. | |
2091 | Handle C++ empty throw specification and C11 _Noreturn. | |
2092 | (has_attribute): Also handle C11 _Noreturn. | |
2093 | ||
9069a4c9 MS |
2094 | 2019-01-04 Martin Sebor <msebor@redhat.com> |
2095 | ||
2096 | PR c/88363 | |
2097 | * c-attribs.c (positional_argument): Also accept enumerated types. | |
2098 | ||
a5544970 JJ |
2099 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
2100 | ||
2101 | Update copyright years. | |
2102 | ||
da77eace L |
2103 | 2018-12-20 H.J. Lu <hongjiu.lu@intel.com> |
2104 | ||
2105 | PR c/51628 | |
2106 | * c-common.h (warn_for_address_or_pointer_of_packed_member): New. | |
2107 | * c-warn.c (check_alignment_of_packed_member): New function. | |
2108 | (check_address_of_packed_member): Likewise. | |
2109 | (check_and_warn_address_of_packed_member): Likewise. | |
2110 | (warn_for_address_or_pointer_of_packed_member): Likewise. | |
2111 | * c.opt: Add -Wno-address-of-packed-member. | |
2112 | ||
573767d4 DM |
2113 | 2018-12-20 David Malcolm <dmalcolm@redhat.com> |
2114 | ||
2115 | PR c++/87504 | |
2116 | * c-warn.c (get_outermost_macro_expansion): New function. | |
2117 | (spelled_the_same_p): Use it to unwind the macro expansions, and | |
2118 | compare the outermost macro in each nested expansion, rather than | |
2119 | the innermost. | |
2120 | ||
a14feb3c DM |
2121 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
2122 | ||
2123 | PR c++/87504 | |
2124 | * c-common.h (warn_tautological_cmp): Convert 1st param from | |
2125 | location_t to const op_location_t &. | |
2126 | * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn | |
2127 | when testing for INTEGER_CST. | |
2128 | (warn_tautological_bitwise_comparison): Convert 1st param from | |
2129 | location_t to const op_location_t &; use it to build a | |
2130 | binary_op_rich_location, and use this. | |
2131 | (spelled_the_same_p): New function. | |
2132 | (warn_tautological_cmp): Convert 1st param from location_t to | |
2133 | const op_location_t &. Warn for macro expansions if | |
2134 | spelled_the_same_p. Use binary_op_rich_location. | |
2135 | ||
dfd7fdca DM |
2136 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
2137 | ||
2138 | PR c++/43064 | |
2139 | PR c++/43486 | |
2140 | * c-common.c (unsafe_conversion_p): Fold any location wrapper. | |
2141 | (verify_tree): Handle location wrappers. | |
2142 | (c_common_truthvalue_conversion): Strip any location wrapper. | |
2143 | Handle CONST_DECL. | |
2144 | (fold_offsetof): Strip any location wrapper. | |
2145 | (complete_array_type): Likewise for initial_value. | |
2146 | (convert_vector_to_array_for_subscript): Call fold_for_warn on the | |
2147 | index before checking for INTEGER_CST. | |
2148 | * c-pretty-print.c (c_pretty_printer::primary_expression): Don't | |
2149 | print parentheses around location wrappers. | |
2150 | * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right | |
2151 | before checking for INTEGER_CST. | |
2152 | (warn_tautological_bitwise_comparison): Call | |
2153 | tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand | |
2154 | before checking for INTEGER_CST. | |
2155 | (readonly_error): Strip any location wrapper. | |
2156 | (warn_array_subscript_with_type_char): Strip location wrappers | |
2157 | before checking for INTEGER_CST. Use the location of the index if | |
2158 | available. | |
2159 | ||
5c8b3702 JM |
2160 | 2018-12-06 Jason Merrill <jason@redhat.com> |
2161 | ||
2162 | PR c++/88136 - -Wdeprecated-copy false positives | |
2163 | * c.opt (Wdeprecated-copy-dtor): New. | |
2164 | (Wdeprecated-copy): Move to -Wextra. | |
2165 | ||
673670da MS |
2166 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
2167 | ||
2168 | PR c/88172 | |
2169 | PR testsuite/88208 | |
2170 | * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting | |
2171 | alignments to values less than the target requires. | |
2172 | (has_attribute): For attribute aligned consider both the attribute | |
2173 | and the alignment bits. | |
2174 | * c-common.c (c_init_attributes): Optionally issue a warning for | |
2175 | zero alignment. | |
2176 | ||
04864ec8 MS |
2177 | 2018-11-28 Martin Sebor <msebor@redhat.com> |
2178 | ||
2179 | PR c/88065 | |
2180 | PR c/87297 | |
2181 | * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source | |
2182 | or destination is an error. | |
2183 | ||
ace83db0 JJ |
2184 | 2018-11-28 Jakub Jelinek <jakub@redhat.com> |
2185 | ||
2186 | PR c++/88215 | |
2187 | * c-ubsan.c: Include langhooks.h. | |
2188 | (ubsan_instrument_division): Change gcc_assert that main variants | |
2189 | of op0 and op1 types are equal to gcc_checking_assert that the | |
2190 | main variants are compatible types. | |
2191 | ||
da193a27 EB |
2192 | 2018-11-27 Eric Botcazou <ebotcazou@adacore.com> |
2193 | ||
2194 | * c-ada-spec.c: Include stringpool.h. | |
2195 | (has_static_fields): Return false for incomplete types. | |
2196 | (is_tagged_type): Likewise. | |
2197 | (has_nontrivial_methods): Likewise. | |
2198 | (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128. | |
2199 | (struct overloaded_name_hash): New structure. | |
2200 | (struct overloaded_name_hasher): Likewise. | |
2201 | (overloaded_names): New global variable. | |
2202 | (init_overloaded_names): New static function. | |
2203 | (overloaded_name_p): New predicate. | |
2204 | (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED | |
2205 | on the TYPE_STUB_DECL of the original type of a typedef, if any. | |
2206 | <FUNCTION_DECL>: Bail out for an unsupported overloaded name. | |
2207 | Remove always-true condition and dump forward types. | |
2208 | (dump_ada_specs): Delete overloaded_names. | |
2209 | ||
98f08eb8 MS |
2210 | 2018-11-20 Martin Sebor <msebor@redhat.com> |
2211 | ||
2212 | * c-attribs.c (type_for_vector_size): New function. | |
2213 | (type_valid_for_vector_size): Same. | |
2214 | (handle_vector_size_attribute): Move code to the functions above | |
2215 | and call them. | |
2216 | (validate_attribute, has_attribute): New functions. | |
2217 | * c-common.h (has_attribute): Declare. | |
2218 | (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION. | |
2219 | * c-common.c (c_common_resword): Same. | |
2220 | ||
2674fa47 JM |
2221 | 2018-11-16 Jason Merrill <jason@redhat.com> |
2222 | ||
2223 | * c-lex.c (c_common_has_attribute): Handle likely/unlikely. | |
2224 | * c-attribs.c (attr_cold_hot_exclusions): Make public. | |
2225 | ||
258b3854 JJ |
2226 | 2018-11-16 Jakub Jelinek <jakub@redhat.com> |
2227 | ||
2228 | PR middle-end/87854 | |
2229 | * c-common.c (fix_string_type): Reject string literals larger than | |
2230 | TYPE_MAX_VALUE (ssizetype) bytes. | |
2231 | ||
1d249509 MS |
2232 | 2018-11-15 Martin Sebor <msebor@redhat.com> |
2233 | ||
2234 | PR c++/87541 | |
2235 | PR c++/87542 | |
2236 | * c-attribs.c (positional_argument): New function. | |
2237 | (handle_alloc_size_attribute): Use it and simplify. | |
2238 | (handle_alloc_align_attribute): Same. | |
2239 | (handle_assume_aligned_attribute): Same. | |
2240 | (handle_nonnull_attribute): Same. | |
2241 | * c-common.c (check_function_arguments): Pass fntype to | |
2242 | check_function_format. | |
2243 | * c-common.h (check_function_format): Add an argument. | |
2244 | (PosArgFlags, positional_argument): Declare new type and function. | |
2245 | * c-format.c (decode_format_attr): Add arguments. | |
2246 | (check_format_string, get_constant): Same. | |
2247 | (convert_format_name_to_system_name): Adjust. | |
2248 | ||
478dd60d DM |
2249 | 2018-11-15 David Malcolm <dmalcolm@redhat.com> |
2250 | ||
2251 | PR other/19165 | |
2252 | * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param. | |
2253 | ||
8cca0163 JJ |
2254 | 2018-11-14 Jakub Jelinek <jakub@redhat.com> |
2255 | ||
8ee09943 JJ |
2256 | P1236R1 - Signed integers are two's complement |
2257 | * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a. | |
2258 | * c-ubsan.c (ubsan_instrument_shift): Make signed shifts | |
2259 | with in-range second operand well defined for -std=c++2a. | |
2260 | ||
8cca0163 JJ |
2261 | PR other/88007 |
2262 | * c-common.c (parse_optimize_options): Allocate option string from | |
2263 | opts_obstack rather than as GC memory. Move the allocation after | |
2264 | warning for invalid option. | |
2265 | ||
620e594b DM |
2266 | 2018-11-13 David Malcolm <dmalcolm@redhat.com> |
2267 | ||
2268 | * c-common.c (c_get_substring_location): Update for renaming of | |
2269 | get_source_location_for_substring to get_location_within_string. | |
2270 | * c-lex.c: Replace "source_location" with "location_t". | |
2271 | * c-opts.c: Likewise. | |
2272 | * c-ppoutput.c: Likewise. | |
2273 | ||
f9731de3 MS |
2274 | 2018-11-13 Martin Sebor <msebor@redhat.com> |
2275 | ||
2276 | PR middle-end/81824 | |
2277 | * c-attribs.c (handle_copy_attribute): Exclude inlining attributes. | |
2278 | (handle_tls_model_attribute): Improve diagnostics. | |
2279 | ||
e4bd6d5e JM |
2280 | 2018-11-12 Jason Merrill <jason@redhat.com> |
2281 | ||
a6bb6b07 JM |
2282 | * c-cppbuiltin.c (c_cpp_builtins): Define |
2283 | __cpp_impl_destroying_delete. | |
2284 | ||
e4bd6d5e JM |
2285 | * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to |
2286 | __cpp_conditional_explicit. | |
2287 | ||
79a2c428 MS |
2288 | 2018-11-09 Martin Sebor <msebor@redhat.com> |
2289 | ||
2290 | PR middle-end/81824 | |
2291 | * c-attribs.c (handle_copy_attribute): New function. | |
2292 | ||
4c7bd361 MS |
2293 | 2018-11-09 Martin Sebor <msebor@redhat.com> |
2294 | ||
2295 | PR c/87795 | |
2296 | * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT. | |
2297 | ||
28567c40 JJ |
2298 | 2018-11-08 Jakub Jelinek <jakub@redhat.com> |
2299 | ||
2300 | * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument. | |
2301 | (c_finish_omp_atomic): Replace bool SEQ_CST argument with | |
2302 | enum omp_memory_order MEMORY_ORDER. | |
2303 | (c_finish_omp_flush): Add MO argument. | |
2304 | (c_omp_depend_t_p, c_finish_omp_depobj): Declare. | |
2305 | (c_finish_omp_for): Add FINAL_P argument. | |
2306 | * c-omp.c: Include memmodel.h. | |
2307 | (c_finish_omp_taskgroup): Add CLAUSES argument. Set | |
2308 | OMP_TASKGROUP_CLAUSES to it. | |
2309 | (c_finish_omp_atomic): Replace bool SEQ_CST argument with | |
2310 | enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER | |
2311 | instead of OMP_ATOMIC_SEQ_CST. | |
2312 | (c_omp_depend_t_p, c_finish_omp_depobj): New functions. | |
2313 | (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit | |
2314 | __atomic_thread_fence call with the given value. | |
2315 | (check_omp_for_incr_expr): Formatting fixes. | |
2316 | (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR | |
2317 | even in OpenMP loops, diagnose if NE_EXPR and incr expression | |
2318 | is not constant expression 1 or -1. Transform NE_EXPR loops | |
2319 | with iterators pointers to VLA into LT_EXPR or GT_EXPR loops. | |
2320 | (c_omp_check_loop_iv_r): Look for orig decl of C++ range for | |
2321 | loops too. | |
2322 | (c_omp_split_clauses): Add support for combined | |
2323 | #pragma omp parallel master and | |
2324 | #pragma omp {,parallel }master taskloop{, simd} constructs. | |
2325 | Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK. | |
2326 | Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF | |
2327 | also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL. | |
2328 | (c_omp_predetermined_sharing): Don't return | |
2329 | OMP_CLAUSE_DEFAULT_SHARED for const qualified decls. | |
2330 | * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and | |
2331 | PRAGMA_OMP_REQUIRES. | |
2332 | * c-pragma.h (enum pragma_kind): Likewise. | |
2333 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL | |
2334 | and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
2335 | ||
204839e7 DM |
2336 | 2018-11-08 David Malcolm <dmalcolm@redhat.com> |
2337 | ||
2338 | * c-format.c (gcc_dump_printf_char_table): Add entry for %f. | |
2339 | ||
d8010ee4 DM |
2340 | 2018-11-08 David Malcolm <dmalcolm@redhat.com> |
2341 | ||
2342 | * c-format.c (local_cgraph_node_ptr_node): New variable. | |
2343 | (gcc_dump_printf_char_table): Add entry for %C. | |
2344 | (get_pointer_to_named_type): New function, taken from the handling | |
2345 | code for "gimple *" from... | |
2346 | (init_dynamic_diag_info): ...here. Add handling for | |
2347 | "cgraph_node *". | |
2348 | * c-format.h (T_CGRAPH_NODE): New. | |
2349 | ||
4be5c72c JM |
2350 | 2018-10-19 Jason Merrill <jason@redhat.com> |
2351 | ||
2352 | * c-cppbuiltin.c (c_cpp_builtins): Add | |
2353 | __cpp_nontype_template_parameter_class. | |
2354 | ||
f3f6029d NS |
2355 | 2018-10-31 Nathan Sidwell <nathan@acm.org> |
2356 | ||
ab5324fb NS |
2357 | * c-opts.c (c_finish_options): Force command line macro |
2358 | location. Refactor to avoid repeating main debug hook. | |
2359 | (push_command_line_include): Clarify comment. | |
2360 | ||
f3f6029d NS |
2361 | * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call. |
2362 | ||
91e3ec29 MS |
2363 | 2018-10-30 Martin Sebor <msebor@redhat.com> |
2364 | ||
2365 | PR middle-end/87041 | |
2366 | * c-format.c (check_format_types): Avoid diagnosing null pointer | |
2367 | arguments to printf-family of functions. | |
2368 | ||
b5ff4f5c MP |
2369 | 2018-10-30 Marek Polacek <polacek@redhat.com> |
2370 | ||
2371 | Implement P0892R2, explicit(bool). | |
2372 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool. | |
2373 | ||
7e2de6df DM |
2374 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
2375 | ||
2376 | * name-hint.h (name_hint::take_deferred): New member function. | |
2377 | ||
b2bf438c DM |
2378 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
2379 | ||
2380 | PR c++/56856 | |
2381 | * c-common.c (check_function_sentinel): Call fold_for_warn on the | |
2382 | argument. | |
2383 | (check_function_restrict): Rename param "argarray" to | |
2384 | "unfolded_argarray", and make a copy named "argarray", calling | |
2385 | fold_for_warn on each argument. | |
2386 | (check_function_arguments): Add note about responsibility for | |
2387 | folding the arguments. | |
2388 | ||
9f936c86 JM |
2389 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
2390 | ||
2391 | * c-common.c (flag_isoc2x): New variable. | |
2392 | * c-common.h (clk_c): Update comment to reference C2X. | |
2393 | (flag_isoc99, flag_isoc11): Update comments to reference future | |
2394 | standard versions in general. | |
2395 | (flag_isoc2x): Declare. | |
2396 | * c-opts.c (set_std_c2x): New function. | |
2397 | (c_common_handle_option): Handle -std=c2x and -std=gnu2x. | |
2398 | (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set | |
2399 | flag_isoc2x to 0. | |
2400 | * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options. | |
2401 | ||
7a8a92c4 JM |
2402 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
2403 | ||
2404 | * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017) | |
2405 | (std=iso9899:2018): Document C17 as published in 2018. | |
2406 | ||
4dc003ff CL |
2407 | 2018-10-12 Christophe Lyon <christophe.lyon@linaro.org> |
2408 | ||
2409 | PR c++/87364 | |
2410 | * c-pretty-print.c (c_pretty_printer::constant): Fix typo. | |
2411 | ||
79371671 WW |
2412 | 2018-10-11 Will Wray <wjwray@gmail.com> |
2413 | ||
2414 | PR c++/87364 | |
2415 | * c-pretty-print.h (pp_c_type_cast): Prototype. | |
2416 | (pp_c_integer_constant): Likewise. | |
2417 | * c-pretty-print.c (pp_c_type_cast): No longer static. | |
2418 | (pp_c_integer_constant): Likewise. | |
2419 | (pp_c_enumeration_constant): Fix loop termination when finding | |
2420 | name of constant. No longer returns a value. Call | |
2421 | pp_c_integer_constant. | |
2422 | (c_pretty_printer::constant): Update for changes to | |
2423 | pp_c_enumeration_constant. | |
2424 | ||
46c62690 JJ |
2425 | 2018-10-11 Jakub Jelinek <jakub@redhat.com> |
2426 | ||
2427 | * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312 | |
2428 | for no_unique_address. | |
2429 | ||
c24300ba DM |
2430 | 2018-10-09 David Malcolm <dmalcolm@redhat.com> |
2431 | ||
2432 | * c-common.c (c_option_controlling_cpp_error): Rename to... | |
2433 | (c_option_controlling_cpp_diagnostic): ...this, and convert | |
2434 | "reason" from int to enum. | |
2435 | (c_cpp_error): Rename to... | |
2436 | (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
2437 | * c-common.h (c_cpp_error): Rename to... | |
2438 | (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
2439 | * c-opts.c (c_common_init_options): Update for renaming. | |
2440 | ||
8656dafa RS |
2441 | 2018-10-08 Richard Sandiford <richard.sandiford@arm.com> |
2442 | ||
2443 | PR c/87286 | |
2444 | * c-common.c (vector_types_compatible_elements_p): Use | |
2445 | INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE. | |
2446 | ||
8cff0652 VK |
2447 | 2018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com> |
2448 | ||
2449 | * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor | |
2450 | to generate constructor destructor priority warning. | |
2451 | * c.opt (-Wprio-ctor-dtor): New option. | |
2452 | ||
bedf03a2 JM |
2453 | 2018-10-01 Jason Merrill <jason@redhat.com> |
2454 | ||
2455 | * c-lex.c (c_common_has_attribute): Add no_unique_address. | |
2456 | ||
6cc430c1 EB |
2457 | 2018-10-01 Eric Botcazou <ebotcazou@adacore.com> |
2458 | ||
2459 | * c-ada-spec.c (get_underlying_decl): Get to the main type variant. | |
2460 | (dump_ada_node): Add const keyword. | |
2461 | ||
87677ac7 ML |
2462 | 2018-09-25 Martin Liska <mliska@suse.cz> |
2463 | ||
2464 | * c-common.c (c_common_truthvalue_conversion): | |
2465 | Remove Pascal from documentation. | |
2466 | ||
518196cb EB |
2467 | 2018-09-21 Eric Botcazou <ebotcazou@adacore.com> |
2468 | ||
2469 | * c-ada-spec.c: Include diagnostic.h. | |
2470 | (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout. | |
2471 | ||
a599af84 MP |
2472 | 2018-09-19 Marek Polacek <polacek@redhat.com> |
2473 | ||
2474 | * c.opt (Wclass-conversion): New. | |
2475 | ||
9c4a4b3c DM |
2476 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
2477 | ||
2478 | * c-format.c (range_label_for_format_type_mismatch::get_text): | |
2479 | Update for new param. | |
2480 | ||
c896ecfe DM |
2481 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
2482 | ||
2483 | * c-format.c (format_warning_at_char): Update for introduction of | |
2484 | format_string_diagnostic_t. | |
2485 | (format_type_warning): Likewise. | |
2486 | ||
80c6d1f4 MJ |
2487 | 2018-09-17 Martin Jambor <mjambor@suse.cz> |
2488 | ||
2489 | PR c/63886 | |
2490 | * c.opt (Wabsolute-value): New. | |
2491 | ||
6d900107 BE |
2492 | 2018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2493 | ||
2494 | * c-common.c (complete_flexible_array_elts): New helper function. | |
2495 | * c-common.h (complete_flexible_array_elts): Declare. | |
2496 | ||
b5764229 BE |
2497 | 2018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2498 | ||
2499 | * c-common.c (braced_list_to_string): Remove eval parameter. | |
2500 | Add some more checks. Always create zero-terminated STRING_CST. | |
2501 | * c-common.h (braced_list_to_string): Adjust prototype. | |
2502 | ||
85204e23 DM |
2503 | 2018-08-27 David Malcolm <dmalcolm@redhat.com> |
2504 | ||
2505 | PR 87091 | |
2506 | * c-common.c (c_cpp_error): Update for conversion of show_caret_p | |
2507 | to a tri-state. | |
2508 | (maybe_suggest_missing_token_insertion): Likewise. | |
2509 | (maybe_add_include_fixit): Add param "override_location". If set, | |
2510 | and source-printing is enabled, then override the rich_location's | |
2511 | primary location with that of the insertion point for the fix-it | |
2512 | hint, marking it with SHOW_LINES_WITHOUT_RANGE. | |
2513 | * c-common.h (extern void maybe_add_include_fixit): Add bool | |
2514 | param. | |
2515 | * c-format.c (selftest::test_type_mismatch_range_labels): Update | |
2516 | for conversion of show_caret_p to a tri-state. | |
2517 | * c-warn.c (warn_for_restrict): Likewise. | |
2518 | * known-headers.cc | |
2519 | (suggest_missing_header::~suggest_missing_header): Update call to | |
2520 | maybe_add_include_fixit to suggest overriding the location, as it | |
2521 | is for a note. | |
2522 | ||
3d78e008 ML |
2523 | 2018-08-27 Martin Liska <mliska@suse.cz> |
2524 | ||
2525 | * c-common.c (check_function_restrict): Use new function | |
92a285c1 ML |
2526 | fndecl_built_in_p and remove check for FUNCTION_DECL if |
2527 | possible. | |
3d78e008 ML |
2528 | (check_builtin_function_arguments): Likewise. |
2529 | (reject_gcc_builtin): Likewise. | |
2530 | * c-warn.c (sizeof_pointer_memaccess_warning): Likewise. | |
2531 | ||
b5be6d0c MP |
2532 | 2018-08-26 Marek Polacek <polacek@redhat.com> |
2533 | ||
2534 | PR c++/87029, Implement -Wredundant-move. | |
2535 | * c.opt (Wredundant-move): New option. | |
2536 | ||
79ca9c35 MP |
2537 | 2018-08-21 Marek Polacek <polacek@redhat.com> |
2538 | ||
2539 | PR c++/86981, Implement -Wpessimizing-move. | |
2540 | * c.opt (Wpessimizing-move): New option. | |
2541 | ||
097f82ec DM |
2542 | 2018-08-20 David Malcolm <dmalcolm@redhat.com> |
2543 | ||
2544 | PR other/84889 | |
2545 | * c-attribs.c (common_handle_aligned_attribute): Add | |
2546 | auto_diagnostic_group instance. | |
2547 | * c-indentation.c (warn_for_misleading_indentation): Likewise. | |
2548 | * c-opts.c (c_common_post_options): Likewise. | |
2549 | * c-warn.c (warn_logical_not_parentheses): Likewise. | |
2550 | (warn_duplicated_cond_add_or_warn): Likewise. | |
2551 | (warn_for_multistatement_macros): Likewise. | |
2552 | ||
3fb558b1 NS |
2553 | 2018-08-20 Nathan Sidwell <nathan@acm.org> |
2554 | ||
2555 | * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm | |
2556 | access. | |
2557 | ||
800c0e98 NS |
2558 | 2018-08-17 Nathan Sidwell <nathan@acm.org> |
2559 | ||
2560 | * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro | |
2561 | field. | |
2562 | (laxy_hex_fp_value_count): Make unsigned. | |
2563 | (lazy_hex_fp_value): Provided with macro & lazy number. Directly | |
2564 | manipulate the macro. | |
2565 | (builtin_defin_with_hex_fp_value): Adjust callback name, use | |
2566 | cpp_define_lazily. | |
2567 | ||
6f795a92 DM |
2568 | 2018-08-17 David Malcolm <dmalcolm@redhat.com> |
2569 | ||
2570 | * c-format.c (enum format_type): Add gcc_dump_printf_format_type. | |
2571 | (gcc_dump_printf_length_specs): New. | |
2572 | (gcc_dump_printf_flag_pairs): New. | |
2573 | (gcc_dump_printf_flag_specs): New. | |
2574 | (gcc_dump_printf_char_table): New. | |
2575 | (format_types_orig): Add entry for "gcc_dump_printf". | |
2576 | (init_dynamic_diag_info): Set up length_char_specs and | |
2577 | conversion_specs for gcc_dump_printf_format_type. | |
2578 | (handle_format_attribute): Handle gcc_dump_printf_format_type. | |
2579 | ||
c5d725c0 NS |
2580 | 2018-08-17 Nathan Sidwell <nathan@acm.org> |
2581 | ||
10f04917 NS |
2582 | * c-ada-spec.c (macro_length, dump_ada_macros): Constify. |
2583 | ||
c5d725c0 NS |
2584 | * c-ada-spec.c: Don't #include "cpp-id-data.h" |
2585 | * c-cppbuiltin.c: Likewise. | |
2586 | ||
c0c12356 ML |
2587 | 2018-08-17 Martin Liska <mliska@suse.cz> |
2588 | ||
2589 | * c.opt: Remove Warn, Init and Report for options with | |
92a285c1 ML |
2590 | Ignore/Deprecated flag. Warning is done automatically for |
2591 | Deprecated flags. | |
c0c12356 | 2592 | |
10fcc142 DM |
2593 | 2018-08-16 David Malcolm <dmalcolm@redhat.com> |
2594 | ||
2595 | PR c++/70693 | |
2596 | * c-common.c (selftest::c_family_tests): Call | |
2597 | selftest::c_indentation_c_tests. | |
2598 | * c-common.h (selftest::c_indentation_c_tests): New decl. | |
2599 | * c-indentation.c: Include "selftest.h". | |
2600 | (next_tab_stop): Add "tab_width" param, rather than accessing | |
2601 | cpp_opts. | |
2602 | (get_visual_column): Likewise. Clarify comment. Bulletproof | |
2603 | against reading past the end of the line. | |
2604 | (get_first_nws_vis_column): Add "tab_width" param. | |
2605 | (detect_intervening_unindent): Likewise. | |
2606 | (should_warn_for_misleading_indentation): Read tab width from | |
2607 | cpp_opts and pass around. | |
2608 | (selftest::test_next_tab_stop): New test. | |
2609 | (selftest::assert_get_visual_column_succeeds): New function. | |
2610 | (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro. | |
2611 | (selftest::assert_get_visual_column_fails): New function. | |
2612 | (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro. | |
2613 | (selftest::test_get_visual_column): New test. | |
2614 | (selftest::c_indentation_c_tests): New function. | |
2615 | ||
3f6677f4 NS |
2616 | 2018-08-16 Nathan Sidwell <nathan@acm.org> |
2617 | ||
2618 | * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p. | |
2619 | (store_ada_macro): Likewise. | |
2620 | * c-ppoutput.c (cb_used_define, dump_macro): Likewise. | |
2621 | * c-spellcheck.cc (should-suggest_as_macro_p): Likewise, | |
2622 | ||
96e6ae57 DM |
2623 | 2018-08-15 David Malcolm <dmalcolm@redhat.com> |
2624 | ||
2625 | * c-format.c: Include "selftest-diagnostic.h" and | |
2626 | "gcc-rich-location.h". | |
2627 | (format_warning_at_char): Pass NULL for new label params of | |
2628 | format_warning_va. | |
2629 | (class indirection_suffix): New class. | |
2630 | (class range_label_for_format_type_mismatch): New class. | |
2631 | (format_type_warning): Move logic for generating "*" suffix to | |
2632 | class indirection_suffix. Create "fmt_label" and "param_label" | |
2633 | to show their types, and pass them to the | |
2634 | format_warning_at_substring calls. | |
2635 | (selftest::test_type_mismatch_range_labels): New test. | |
2636 | (selftest::c_format_c_tests): Call it. | |
2637 | ||
23aa9f7c MS |
2638 | 2018-08-13 Martin Sebor <msebor@redhat.com> |
2639 | ||
2640 | PR tree-optimization/71625 | |
2641 | * c-common.c (braced_list_to_string): New function. | |
2642 | * c-common.h (braced_list_to_string): Declare it. | |
2643 | ||
f10a9135 NS |
2644 | 2018-08-08 Nathan Sidwell <nathan@acm.org> |
2645 | ||
2646 | * c-common.c (try_to_locate_new_include_inertion_point): Use | |
2647 | linemap_included_from_linemap. | |
2648 | * c-lex.c (fe_file_change): Use linemap_included_from. | |
2649 | * c-ppoutput.c (pp_file_change): Likewise. | |
2650 | ||
8a45b051 MS |
2651 | 2018-08-01 Martin Sebor <msebor@redhat.com> |
2652 | ||
2653 | PR tree-optimization/86650 | |
ab20d992 | 2654 | * c-format.c (gcc_tdiag_char_table): Update comment for "%G". |
8a45b051 MS |
2655 | (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same. |
2656 | (init_dynamic_diag_info): Update from "gcall *" to "gimple *". | |
2657 | * c-format.h (T89_G): Update to be "gimple *" rather than | |
2658 | "gcall *". | |
2659 | (local_gcall_ptr_node): Rename... | |
2660 | (local_gimple_ptr_node): ...to this. | |
2661 | ||
e540ccc0 DM |
2662 | 2018-07-31 David Malcolm <dmalcolm@redhat.com> |
2663 | ||
2664 | * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing | |
2665 | table entries for gcc_diag_char_table, and the 'Z' entry from | |
2666 | gcc_tdiag_char_table, changing the "chain" entry for 'Z' from | |
2667 | &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0]. | |
2668 | (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly | |
2669 | adding missing "Z" for this table. Remove erroneous "G" and "K" | |
2670 | entries. | |
2671 | (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
2672 | (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE. | |
2673 | (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
2674 | ||
425fc685 RE |
2675 | 2018-07-31 Richard Earnshaw <rearnsha@arm.com> |
2676 | ||
2677 | * c-common.c (speculation_safe_resolve_call): New function. | |
2678 | (speculation_safe_resolve_params): New function. | |
2679 | (speculation_safe_resolve_return): New function. | |
2680 | (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value. | |
2681 | * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for | |
2682 | __HAVE_SPECULATION_SAFE_VALUE. | |
2683 | ||
181463c2 DM |
2684 | 2018-07-20 David Malcolm <dmalcolm@redhat.com> |
2685 | ||
2686 | * c-common.c (c_cpp_error): Remove redundant "line_table" | |
2687 | parameter from call to rich_location::set_range. | |
2688 | (maybe_suggest_missing_token_insertion): Likewise. | |
2689 | ||
0d7f9065 MS |
2690 | 2018-07-20 Martin Sebor <msebor@redhat.com> |
2691 | ||
2692 | PR middle-end/82063 | |
ab20d992 | 2693 | * c.opt (-Warray-bounds): Remove redundant -Wall. |
0d7f9065 | 2694 | |
00abf86c MS |
2695 | 2018-07-20 Martin Sebor <msebor@redhat.com> |
2696 | ||
2697 | PR middle-end/82063 | |
2698 | * c-common.h (c_common_handle_option): Change function argument | |
2699 | to HOST_WIDE_INT. | |
2700 | * c-opts.c (c_common_init_options): Same. | |
2701 | (c_common_handle_option): Same. Remove special handling of | |
2702 | OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_. | |
2703 | * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change | |
2704 | options to take a HOST_WIDE_INT argument and accept a byte-size | |
2705 | suffix. Initialize. | |
2706 | (-Wvla-larger-than): Same. | |
2707 | (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New. | |
2708 | (-Wno-vla-larger-than): Same. | |
2709 | ||
9b452033 JJ |
2710 | 2018-07-12 Jakub Jelinek <jakub@redhat.com> |
2711 | ||
2712 | * c-attribs.c (c_common_attribute_table): Add | |
2713 | "omp declare target implicit" attribute. | |
2714 | ||
cd0762f3 RB |
2715 | 2018-07-12 Richard Biener <rguenther@suse.de> |
2716 | ||
2717 | PR c/86453 | |
2718 | * c-attribs.c (handle_packed_attribute): Do not build a variant | |
2719 | type with TYPE_PACKED, instead ignore the attribute if we may | |
2720 | not apply to the original type. | |
2721 | ||
0b27c3ed JJ |
2722 | 2018-07-10 Jakub Jelinek <jakub@redhat.com> |
2723 | ||
2724 | PR c++/86443 | |
2725 | * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv | |
2726 | to contain TREE_LIST for both the original class iterator and the | |
2727 | "last" helper var. | |
2728 | ||
e730a0ef EB |
2729 | 2018-07-07 Eric Botcazou <ebotcazou@adacore.com> |
2730 | ||
2731 | * c-ada-spec.c (to_ada_name): Remove index parameter. | |
2732 | (pp_ada_tree_identifier): Likewise. | |
2733 | (dump_ada_macros): Adjust call to to_ada_name. | |
2734 | (struct overloaded_name_hash): Delete. | |
2735 | (struct overloaded_name_hasher): Likewise. | |
2736 | (overloaded_names): Likewise. | |
2737 | (compute_overloading_index): Likewise. | |
2738 | (dump_ada_decl_name): Do not call compute_overloading_index and | |
2739 | adjust calls to pp_ada_tree_identifier. | |
2740 | (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. | |
2741 | (dump_ada_import): Add spc parameter and switch to aspect syntax. | |
2742 | (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier. | |
2743 | (dump_ada_enum_type): Remove type and display_convention parameters. | |
2744 | Adjust calls to pp_ada_tree_identifier. | |
2745 | (dump_ada_node): Likewise and for dump_ada_structure. | |
2746 | (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type | |
2747 | and tidy up. | |
2748 | <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect | |
2749 | syntax. | |
2750 | (print_constructor): Adjust call to pp_ada_tree_identifier. | |
2751 | (print_destructor): Likewise. | |
2752 | (dump_ada_declaration): Switch to aspect syntax. | |
2753 | (dump_ada_structure): Likewise and tidy up. Replace display_convention | |
2754 | parameter with nested parameter. | |
2755 | (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005. | |
2756 | (dump_ada_specs): Do not delete overloaded_names table. | |
2757 | ||
8de583fc PB |
2758 | 2018-07-06 Peter Bergner <bergner@linux.ibm.com> |
2759 | ||
2760 | PR target/86324 | |
e730a0ef | 2761 | * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute |
8de583fc PB |
2762 | target hook. |
2763 | ||
09cff37b NS |
2764 | 2018-07-05 Nathan Sidwell <nathan@acm.org> |
2765 | ||
2766 | * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not | |
2767 | NO_IMPLICIT_EXTERN_C. | |
2768 | ||
98086b2b ML |
2769 | 2018-06-28 Martin Liska <mliska@suse.cz> |
2770 | ||
2771 | * cppspec.c: Include opt-suggestions.h. | |
2772 | ||
ab20d992 JJ |
2773 | 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com> |
2774 | Thomas Schwinge <thomas@codesourcery.com> | |
829c6349 CLT |
2775 | Cesar Philippidis <cesar@codesourcery.com> |
2776 | ||
2777 | * c-pragma.h (enum pragma_omp_clause): Add | |
2778 | PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove | |
2779 | PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}. | |
2780 | ||
f41b7612 JJ |
2781 | 2018-06-20 Jakub Jelinek <jakub@redhat.com> |
2782 | ||
2783 | PR c++/86210 | |
2784 | * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete | |
2785 | comment. | |
2786 | ||
4252ccd7 MS |
2787 | 2018-06-18 Martin Sebor <msebor@redhat.com> |
2788 | ||
2789 | PR middle-end/85602 | |
2790 | * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute | |
2791 | nonstring. | |
2792 | ||
e197e64e KV |
2793 | 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org> |
2794 | ||
2795 | * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR. | |
2796 | ||
34a7a230 JM |
2797 | 2018-06-13 Jason Merrill <jason@redhat.com> |
2798 | ||
5cef3733 JM |
2799 | * c-opts.c (c_common_post_options): Warn about useless -Wabi. |
2800 | (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version | |
2801 | handling. | |
2802 | ||
34a7a230 JM |
2803 | PR c++/86094 - wrong code with defaulted move ctor. |
2804 | * c-opts.c (c_common_post_options): Bump the current ABI version to | |
2805 | 13. Set warn_abi_version and flag_abi_compat_version to the current | |
2806 | version rather than 0. Fix defaulting flag_abi_compat_version from | |
2807 | warn_abi_version. | |
2808 | ||
bb0f14ae MS |
2809 | 2018-06-12 Martin Sebor <msebor@redhat.com> |
2810 | ||
2811 | PR c/85931 | |
2812 | * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when | |
2813 | sizeof source and destination yields the same value. | |
2814 | ||
3713f2e2 ML |
2815 | 2018-06-12 Martin Liska <mliska@suse.cz> |
2816 | ||
2817 | * c.opt: Make MPX-related options as Deprecated. | |
2818 | ||
4af78ef8 DM |
2819 | 2018-06-08 David Malcolm <dmalcolm@redhat.com> |
2820 | ||
2821 | * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE | |
2822 | rather than 0. | |
2823 | ||
31db0fe0 ML |
2824 | 2018-06-08 Martin Liska <mliska@suse.cz> |
2825 | ||
2826 | * c-attribs.c (handle_bnd_variable_size_attribute): Remove support | |
2827 | for MPX (macros, related functions, fields in cgraph_node, ...). | |
2828 | (handle_bnd_legacy): Likewise. | |
2829 | (handle_bnd_instrument): Likewise. | |
2830 | * c.opt: Likewise. | |
2831 | ||
fe16acf2 JJ |
2832 | 2018-06-06 Jakub Jelinek <jakub@redhat.com> |
2833 | ||
2834 | PR c++/86068 | |
2835 | * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set | |
2836 | __cpp_transactional_memory to 201500 instead of 210500. | |
2837 | ||
4dbdb49b JM |
2838 | 2018-06-06 Jason Merrill <jason@redhat.com> |
2839 | ||
2840 | PR c++/85710 - ICE with -Wmemset-elt-size. | |
2841 | * c-warn.c (warn_for_memset): Don't crash on incomplete element type. | |
2842 | ||
f8ad043f JM |
2843 | 2018-06-01 Jason Merrill <jason@redhat.com> |
2844 | ||
2845 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to | |
2846 | 201703. | |
2847 | ||
abc24d93 EB |
2848 | 2018-06-01 Eric Botcazou <ebotcazou@adacore.com> |
2849 | ||
2850 | * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward | |
2851 | declaration for a typedef independently of whether the declaration of | |
2852 | the subtype is generated. | |
2853 | ||
d258f4aa MS |
2854 | 2018-05-31 Martin Sebor <msebor@redhat.com> |
2855 | ||
2856 | PR c/82063 | |
2857 | * c.opt (-Wno-alloc-size-larger-than): New option. | |
2858 | ||
b67b9225 DP |
2859 | 2018-04-22 David Pagan <dave.pagan@oracle.com> |
2860 | ||
2861 | PR c/55976 | |
2862 | * c-opts.c (c_common_post_options): Set default for warn_return_type | |
ab20d992 | 2863 | for C++/C++ with ObjC extensions only. For C, makes it possible to |
b67b9225 DP |
2864 | differentiate between default (no option), -Wreturn-type, and |
2865 | -Wno-return-type. | |
2866 | ||
04eb9c55 JM |
2867 | 2018-05-29 Jason Merrill <jason@redhat.com> |
2868 | ||
2869 | * c.opt (Winit-list-lifetime): New flag. | |
2870 | ||
b0c31bc6 BE |
2871 | 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2872 | ||
2873 | * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and | |
2874 | splay_tree_delete_pointers. | |
2875 | ||
44284983 JJ |
2876 | 2018-05-26 Jakub Jelinek <jakub@redhat.com> |
2877 | ||
2878 | PR bootstrap/85921 | |
2879 | * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary | |
2880 | noinline variable to workaround broken kernel headers. | |
2881 | ||
b46b715d JM |
2882 | 2018-05-18 Jason Merrill <jason@redhat.com> |
2883 | ||
2884 | * c.opt (Wdeprecated-copy): New flag. | |
2885 | ||
40659769 ML |
2886 | 2018-05-17 Martin Liska <mliska@suse.cz> |
2887 | ||
2888 | * c-warn.c (overflow_warning): Do not use | |
2889 | space in between 'G_' and '('. | |
2890 | ||
403962ea JM |
2891 | 2018-05-09 Jason Merrill <jason@redhat.com> |
2892 | ||
2893 | * c-common.c (valid_array_size_p): Add complain parameter. | |
2894 | * c-common.h: ...which defaults to true. | |
2895 | ||
1c9ee609 JJ |
2896 | 2018-05-11 Jakub Jelinek <jakub@redhat.com> |
2897 | ||
2898 | PR c/85696 | |
2899 | * c-omp.c (c_omp_predetermined_sharing): Return | |
2900 | OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type. | |
2901 | ||
19916065 ML |
2902 | 2018-05-11 Martin Liska <mliska@suse.cz> |
2903 | ||
92a285c1 | 2904 | PR sanitizer/85556 |
19916065 ML |
2905 | * c-attribs.c (handle_no_sanitize_attribute): Iterate all |
2906 | TREE_LIST values. | |
2907 | ||
79e7b1fe JJ |
2908 | 2018-05-10 Jakub Jelinek <jakub@redhat.com> |
2909 | ||
2910 | PR c++/85662 | |
2911 | * c-common.h (fold_offsetof_1): Removed. | |
2912 | (fold_offsetof): Add TYPE argument defaulted to size_type_node and | |
2913 | CTX argument defaulted to ERROR_MARK. | |
2914 | * c-common.c (fold_offsetof_1): Renamed to ... | |
2915 | (fold_offsetof): ... this. Remove wrapper function. Add TYPE | |
2916 | argument, convert the pointer constant to TYPE and use size_binop | |
2917 | with PLUS_EXPR instead of fold_build_pointer_plus if type is not | |
2918 | a pointer type. Adjust recursive calls. | |
2919 | ||
86c12f76 EB |
2920 | 2018-05-10 Eric Botcazou <ebotcazou@adacore.com> |
2921 | ||
2922 | PR c++/85400 | |
2923 | * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs. | |
2924 | ||
ee336e84 NS |
2925 | 2018-05-07 Nathan Sidwell <nathan@acm.org> |
2926 | ||
2927 | * c.opt (ffor-scope): Remove functionality, issue warning. | |
2928 | ||
6c072e21 NS |
2929 | 2018-05-03 Nathan Sidwell <nathan@acm.org> |
2930 | ||
2931 | * c.opt (ffriend-injection): Remove functionality, issue warning. | |
2932 | ||
2cc7d3a7 DM |
2933 | 2018-05-01 David Malcolm <dmalcolm@redhat.com> |
2934 | ||
2935 | PR c/84258 | |
2936 | * c-format.c (struct format_check_results): Add field | |
2937 | "number_non_char". | |
2938 | (check_format_info): Initialize it, and warn if encountered. | |
2939 | (check_format_arg): Distinguish between wide char and | |
2940 | everything else when detecting arrays of non-char. | |
2941 | ||
7761dfbe DM |
2942 | 2018-04-30 David Malcolm <dmalcolm@redhat.com> |
2943 | ||
2944 | * c-format.c (get_corrected_substring): Update for | |
2945 | location_get_source_line returning a char_span. Use a char_span | |
2946 | when handling the prefix of the correction. | |
2947 | * c-indentation.c (get_visual_column): Update for | |
2948 | location_get_source_line returning a char_span. | |
2949 | (get_first_nws_vis_column): Likewise. | |
2950 | ||
62e98ef1 DM |
2951 | 2018-03-29 David Malcolm <dmalcolm@redhat.com> |
2952 | ||
2953 | PR c++/84269 | |
2954 | * known-headers.cc (get_stdlib_header_for_name): Add various names | |
2955 | from <assert.h>, <string.h>, and <memory.h>; add more names from | |
2956 | <stdio.h>. | |
2957 | ||
a7dea617 JJ |
2958 | 2018-03-27 Jakub Jelinek <jakub@redhat.com> |
2959 | ||
2960 | PR c++/85061 | |
2961 | * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that | |
2962 | get_base_address of the second operand is a VAR_P, rather than the | |
2963 | operand itself, and use gcc_checking_assert instead of gcc_assert. | |
2964 | ||
889a3a30 MP |
2965 | 2018-03-23 Marek Polacek <polacek@redhat.com> |
2966 | ||
2967 | PR c++/85045 | |
2968 | * c-pretty-print.c (c_pretty_printer::multiplicative_expression) | |
2969 | <case RDIV_EXPR>: Tweak condition. | |
2970 | ||
452154b9 EB |
2971 | 2018-03-20 Eric Botcazou <ebotcazou@adacore.com> |
2972 | ||
2973 | * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool. | |
2974 | ||
63ecb626 JJ |
2975 | 2018-03-16 Jakub Jelinek <jakub@redhat.com> |
2976 | ||
ce811fc4 JJ |
2977 | PR c/84909 |
2978 | * c-warn.c (conversion_warning): Replace "to to" with "to" in | |
2979 | diagnostics. | |
2980 | ||
63ecb626 JJ |
2981 | PR c/84910 |
2982 | * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from | |
2983 | diagnostics. | |
2984 | ||
a1295eec RB |
2985 | 2018-03-16 Richard Biener <rguenther@suse.de> |
2986 | ||
2987 | PR c/84873 | |
2988 | * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead | |
2989 | unshare the possibly folded expression. | |
2990 | ||
919674fb RB |
2991 | 2018-03-15 Richard Biener <rguenther@suse.de> |
2992 | ||
2993 | PR c/84873 | |
2994 | * c-gimplify.c (c_gimplify_expr): Do not fold expressions. | |
2995 | ||
f99309b2 MS |
2996 | 2018-03-13 Martin Sebor <msebor@redhat.com> |
2997 | ||
2998 | PR tree-optimization/84725 | |
2999 | * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring | |
3000 | with all three narrow character types, including their qualified forms. | |
3001 | ||
e9b9fa4c MS |
3002 | 2018-03-12 Martin Sebor <msebor@redhat.com> |
3003 | ||
3004 | PR tree-optimization/83456 | |
ab20d992 | 3005 | * c-common.c (check_function_restrict): Return bool. |
e9b9fa4c MS |
3006 | Restore checking of bounded built-in functions. |
3007 | (check_function_arguments): Also return the result | |
3008 | of warn_for_restrict. | |
ab20d992 JJ |
3009 | * c-common.c (check_function_restrict): Return bool. |
3010 | * c-warn.c (warn_for_restrict): Return bool. | |
e9b9fa4c | 3011 | |
0805d020 MP |
3012 | 2018-03-02 Marek Polacek <polacek@redhat.com> |
3013 | ||
3014 | PR c++/84171 | |
3015 | * c-warn.c (warn_for_sign_compare): Bail out if any of the operands | |
3016 | is erroneous. | |
3017 | ||
ed2a2f08 TS |
3018 | 2018-03-02 Thomas Schwinge <thomas@codesourcery.com> |
3019 | ||
3020 | * c-attribs.c (c_common_attribute_table): Remove "cilk simd | |
3021 | function". | |
3022 | ||
90abdde0 MP |
3023 | 2018-03-01 Marek Polacek <polacek@redhat.com> |
3024 | ||
3025 | PR c++/84639 | |
3026 | * c-attribs.c (common_handle_aligned_attribute): Don't use invalid | |
3027 | alignment in computation. | |
3028 | ||
c6db43fa EB |
3029 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
3030 | ||
3031 | * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case. | |
3032 | <REAL_TYPE>: Deal specifically with _Float128/__float128. | |
3033 | ||
9e25c7ed EB |
3034 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
3035 | ||
3036 | * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case. | |
3037 | (is_char_array): Take a type instead of a declaration. | |
3038 | (dump_ada_array_type): Likewise. | |
3039 | (is_simple_enum): Minor tweak. | |
3040 | (dump_ada_enum_type): New function extracted from... | |
3041 | (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it. | |
3042 | <INTEGER_TYPE>: Remove unreachable code. | |
3043 | <RECORD_TYPE>: Likewise. Minor tweaks. | |
3044 | (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes. | |
3045 | <ENUMERAL_TYPE>: New case. | |
3046 | <RECORD_TYPE>: Factor out common code. | |
3047 | (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes. | |
3048 | Minor tweaks. Deal with enumeral types. | |
3049 | (dump_ada_structure): Minor tweaks. | |
3050 | ||
09de3550 EB |
3051 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
3052 | ||
3053 | * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic | |
3054 | address for incomplete structures. | |
3055 | (dump_forward_type): Do not bail out for incomplete structures. | |
3056 | (dump_ada_declaration): Do not special-case incomplete structures | |
3057 | for subtypes. Dump them as null records for types. | |
3058 | ||
095d8d4b EB |
3059 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
3060 | ||
3061 | * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting. | |
3062 | (is_char_array): Fix formatting. | |
3063 | (dump_template_types): Likewise. | |
3064 | (dump_generic_ada_node): Rename into... | |
3065 | (dump_ada_node): ...this. | |
3066 | <POINTER_TYPE>: Remove superfluous space. Use generic address for | |
3067 | incomplete structures and not for empty structures. Do not use it | |
3068 | when forward declarations are needed. | |
3069 | (dump_forward_type): New function. | |
3070 | (dump_nested_types): Remove FORWARD parameter. Do not consider | |
3071 | TREE_VISITED and do not generate a forward declaration. Only dump | |
3072 | original nested types for nested declaration. | |
3073 | (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type. | |
3074 | <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer. | |
3075 | <RECORD_TYPE>: Do not consider TREE_VISITED. | |
3076 | (dump_ada_declaration): Use booleans and fix formatting throughout. | |
3077 | <TYPE_DECL>: Skip incomplete structures and not empty structures. | |
3078 | Call dump_forward_type instead of dump_nested_types for a typedef. | |
3079 | Remove superfluous check and adjust call to dump_nested_types. | |
3080 | <POINTER_TYPE>: Call dump_forward_type and fall through. | |
3081 | (dump_ada_struct_decl): Rename into... | |
3082 | (dump_ada_structure): ...this. Do not special-case empty structures. | |
3083 | ||
d4cfd486 MS |
3084 | 2018-02-27 Martin Sebor <msebor@redhat.com> |
3085 | ||
3086 | PR c++/83871 | |
3087 | * c.opt (-Wmissing-attributes): New option. | |
3088 | ||
b22dbd03 ML |
3089 | 2018-02-21 Martin Liska <mliska@suse.cz> |
3090 | ||
3091 | * c.opt (Wcatch-value=): Add IntegerRange. | |
3092 | ||
883dfe2a JM |
3093 | 2018-02-15 Jason Merrill <jason@redhat.com> |
3094 | ||
3095 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. | |
3096 | ||
0444aa9c NS |
3097 | 2018-02-09 Nathan Sidwell <nathan@acm.org> |
3098 | ||
3099 | PR c/84293 | |
3100 | * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC | |
3101 | arg. | |
3102 | * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC | |
3103 | arg. Adjust. | |
3104 | ||
cea71f0a MS |
3105 | 2018-02-09 Martin Sebor <msebor@redhat.com> |
3106 | ||
3107 | PR lto/84212 | |
3108 | * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO. | |
3109 | (-Walloc-size-larger-than, -Wformat-truncation=): Same. | |
3110 | (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same. | |
3111 | (-Wstrict-overflow, -Wsuggest-attribute): Same. | |
3112 | (-Wuninitialized): Same. | |
3113 | ||
8c8b7be5 EB |
3114 | 2018-02-09 Eric Botcazou <ebotcazou@adacore.com> |
3115 | ||
3116 | * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant' | |
3117 | keyword for components. | |
3118 | ||
7c30b12a PC |
3119 | 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> |
3120 | ||
3121 | * c-common.h (DECL_UNNAMED_BIT_FIELD): New. | |
3122 | ||
eece7fe5 JK |
3123 | 2018-02-02 Julia Koval <julia.koval@intel.com> |
3124 | ||
3125 | * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h. | |
3126 | ||
7d07a93a MP |
3127 | 2018-01-29 Marek Polacek <polacek@redhat.com> |
3128 | ||
3129 | PR c/83966 | |
3130 | * c-format.c (check_function_format): Check current_function_decl. | |
3131 | ||
53723269 JJ |
3132 | 2018-01-27 Jakub Jelinek <jakub@redhat.com> |
3133 | ||
3134 | * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix | |
3135 | argument. | |
3136 | (LAZY_HEX_FP_VALUES_CNT): Define. | |
3137 | (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp | |
3138 | values rather than just 12. | |
3139 | (builtin_define_with_hex_fp_value): Likewise. | |
3140 | ||
7365279f BK |
3141 | 2018-01-18 Boris Kolpackov <boris@codesynthesis.com> |
3142 | ||
92a285c1 ML |
3143 | PR other/70268 |
3144 | * c.opt (-fmacro-prefix-map): New option. | |
3145 | * c-opts.c (c_common_handle_option): Handle it. | |
3146 | * c-lex.c (init_c_lex): Set remap_filename cpp callback. | |
3147 | * c-ppoutput.c (init_pp_output): Likewise. | |
7365279f | 3148 | |
bb9869d5 DM |
3149 | 2018-01-17 David Malcolm <dmalcolm@redhat.com> |
3150 | ||
3151 | PR c++/83814 | |
3152 | * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c. | |
3153 | ||
68dc87c3 EB |
3154 | 2018-01-10 Eric Botcazou <ebotcazou@adacore.com> |
3155 | ||
3156 | * c-ada-spec.c (dump_number): Add FLOAT_P parameter. | |
3157 | Skip 'f' and 'F' characters if it is true. | |
3158 | (store_ada_macro): Minor tweak. | |
3159 | (dump_ada_macros) <CPP_COMMENT>: Likewise. | |
3160 | <CPP_WSTRING>: Likewise. | |
3161 | <CPP_STRING>: Output '&' in the buffer if not the first string. | |
3162 | <CPP_NUMBER>: Adjust calls to dump_number. | |
3163 | ||
9a004410 DM |
3164 | 2018-01-10 David Malcolm <dmalcolm@redhat.com> |
3165 | ||
3166 | PR c++/43486 | |
3167 | * c-common.c: Include "selftest.h". | |
3168 | (get_atomic_generic_size): Perform the test for integral type | |
3169 | before the range test for any integer constant, fixing indentation | |
3170 | of braces. Call fold_for_warn before testing for an INTEGER_CST. | |
3171 | (reject_gcc_builtin): Strip any location wrapper from EXPR. | |
3172 | (selftest::test_fold_for_warn): New function. | |
3173 | (selftest::c_common_c_tests): New function. | |
3174 | (selftest::c_family_tests): Call it, and | |
3175 | selftest::c_pretty_print_c_tests. | |
3176 | * c-common.h (selftest::c_pretty_print_c_tests): New decl. | |
3177 | * c-format.c (check_format_arg): Convert VAR_P check to a | |
3178 | fold_for_warn. | |
3179 | * c-pretty-print.c: Include "selftest.h". | |
3180 | (pp_c_cast_expression): Don't print casts for location wrappers. | |
3181 | (selftest::assert_c_pretty_printer_output): New function. | |
3182 | (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro. | |
3183 | (selftest::test_location_wrappers): New function. | |
3184 | (selftest::c_pretty_print_c_tests): New function. | |
3185 | * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments. | |
3186 | ||
5c0caeb3 RS |
3187 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
3188 | Alan Hayward <alan.hayward@arm.com> | |
3189 | David Sherwood <david.sherwood@arm.com> | |
3190 | ||
3191 | * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL. | |
3192 | ||
73a699ae RS |
3193 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
3194 | Alan Hayward <alan.hayward@arm.com> | |
3195 | David Sherwood <david.sherwood@arm.com> | |
3196 | ||
3197 | * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE | |
3198 | as polynomial. | |
3199 | ||
928686b1 RS |
3200 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
3201 | Alan Hayward <alan.hayward@arm.com> | |
3202 | David Sherwood <david.sherwood@arm.com> | |
3203 | ||
3204 | * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr) | |
3205 | (convert_vector_to_array_for_subscript): Handle polynomial | |
3206 | TYPE_VECTOR_SUBPARTS. | |
3207 | (c_common_type_for_mode): Check valid_vector_subparts_p. | |
3208 | * c-pretty-print.c (pp_c_initializer_list): Handle polynomial | |
3209 | VECTOR_CST_NELTS. | |
3210 | ||
85ec4feb JJ |
3211 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
3212 | ||
3213 | Update copyright years. | |
3214 | ||
170a8bd6 | 3215 | 2017-12-22 Mike Stump <mikestump@comcast.net> |
92a285c1 | 3216 | Eric Botcazou <ebotcazou@adacore.com> |
170a8bd6 EB |
3217 | |
3218 | * c-pragma.c (init_pragma): Register pragma GCC unroll. | |
3219 | * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL. | |
3220 | ||
ab20d992 | 3221 | 2017-12-22 Alexandre Oliva <aoliva@redhat.com> |
18408e96 AO |
3222 | |
3223 | PR debug/83527 | |
3224 | PR debug/83419 | |
3225 | * c-semantics.c (only_debug_stmts_after_p): New. | |
3226 | (pop_stmt_list): Clear side effects in debug-only stmt list. | |
3227 | Check for single nondebug stmt followed by debug stmts only. | |
3228 | ||
c12d20d4 AO |
3229 | 2017-12-21 Alexandre Oliva <aoliva@redhat.com> |
3230 | ||
3231 | PR debug/83419 | |
3232 | * c-semantics.c (pop_stmt_list): Propagate side effects from | |
3233 | single nondebug stmt to container list. | |
3234 | ||
01512446 JJ |
3235 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
3236 | ||
3237 | * known-headers.cc (get_stdlib_header_for_name): Replace Yoda | |
3238 | conditions with typical order conditions. | |
3239 | ||
82cfbd01 MP |
3240 | 2017-12-18 Marek Polacek <polacek@redhat.com> |
3241 | ||
3242 | * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is | |
3243 | not in effect. | |
3244 | ||
99da11ec MS |
3245 | 2017-12-17 Martin Sebor <msebor@redhat.com> |
3246 | ||
3247 | * c-attribs.c (common_handle_aligned_attribute): Avoid issuing | |
3248 | an error for attribute warn_if_not_aligned. | |
3249 | ||
cc8bea0a MS |
3250 | 2017-12-16 Martin Sebor <msebor@redhat.com> |
3251 | ||
3252 | PR tree-optimization/78918 | |
3253 | * c-common.c (check_function_restrict): Avoid checking built-ins. | |
3254 | * c.opt (-Wrestrict): Include in -Wall. | |
3255 | ||
4849deb1 JJ |
3256 | 2017-12-15 Jakub Jelinek <jakub@redhat.com> |
3257 | ||
3258 | * c-attribs.c (c_common_attribute_table, | |
3259 | c_common_format_attribute_table): Swap affects_type_identity | |
3260 | and handler fields, adjust comments. | |
3261 | ||
c65e18d3 BE |
3262 | 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3263 | ||
3264 | * c.opt (Wcast-function-type): New warning option. | |
3265 | * c-lex.c (get_fileinfo): Avoid warning. | |
3266 | * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast. | |
3267 | ||
2004617a QZ |
3268 | 2017-12-14 Qing Zhao <qing.zhao@oracle.com> |
3269 | ||
7365279f | 3270 | PR middle_end/79538 |
2004617a QZ |
3271 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): |
3272 | Adjust the size of buf1 and buf2, add a new buf to avoid | |
3273 | format-overflow warning. | |
3274 | ||
ab20d992 | 3275 | 2017-12-12 Alexandre Oliva <aoliva@redhat.com> |
96a95ac1 AO |
3276 | |
3277 | * c-semantics.c (pop_stmt_list): Move begin stmt marker into | |
3278 | subsequent statement list. | |
3279 | ||
5d9ae53d MS |
3280 | 2017-12-07 Martin Sebor <msebor@redhat.com> |
3281 | ||
3282 | PR c/81544 | |
3283 | PR c/81566 | |
3284 | * c-attribs.c (attr_aligned_exclusions): New array. | |
3285 | (attr_alloc_exclusions, attr_cold_hot_exclusions): Same. | |
3286 | (attr_common_exclusions, attr_const_pure_exclusions): Same. | |
3287 | (attr_gnu_inline_exclusions, attr_inline_exclusions): Same. | |
3288 | (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same. | |
3289 | (attr_warn_unused_result_exclusions): Same. | |
3290 | (handle_hot_attribute, handle_cold_attribute): Simplify. | |
3291 | (handle_const_attribute): Warn on function returning void. | |
3292 | (handle_pure_attribute): Same. | |
3293 | (handle_aligned_attribute): Diagnose conflicting attribute | |
3294 | specifications. | |
3295 | * c-warn.c (diagnose_mismatched_attributes): Simplify. | |
3296 | ||
c79144f8 DM |
3297 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
3298 | ||
3299 | PR c/83236 | |
3300 | * c-common.c (selftest::c_family_tests): Call | |
3301 | selftest::c_spellcheck_cc_tests. | |
3302 | * c-common.h (selftest::c_spellcheck_cc_tests): New decl. | |
3303 | * c-spellcheck.cc: Include "selftest.h". | |
3304 | (name_reserved_for_implementation_p): New function. | |
3305 | (should_suggest_as_macro_p): New function. | |
3306 | (find_closest_macro_cpp_cb): Move the check for NT_MACRO to | |
3307 | should_suggest_as_macro_p and call it. | |
3308 | (selftest::test_name_reserved_for_implementation_p): New function. | |
3309 | (selftest::c_spellcheck_cc_tests): New function. | |
3310 | * c-spellcheck.h (name_reserved_for_implementation_p): New decl. | |
3311 | ||
613bc14f DM |
3312 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
3313 | ||
3314 | * c-spellcheck.cc: New file, taken from macro-handling code in | |
3315 | spellcheck-tree.c. | |
3316 | * c-spellcheck.h: New file, taken from macro-handling code in | |
3317 | spellcheck-tree.h. | |
3318 | ||
e76c7157 JJ |
3319 | 2017-12-01 Jakub Jelinek <jakub@redhat.com> |
3320 | ||
3321 | * c-attribs.c (c_common_attribute_table): Remove "cilk simd function" | |
3322 | attribute. | |
3323 | (handle_simd_attribute): Don't check for "cilk simd function" | |
3324 | attribute. Reindent, formatting changes. | |
3325 | ||
b0da4034 JK |
3326 | 2017-11-30 Julia Koval <julia.koval@intel.com> |
3327 | ||
3328 | * c-common.h (inv_list): Remove. | |
3329 | ||
058f0b9e JJ |
3330 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
3331 | ||
3332 | PR sanitizer/81275 | |
3333 | * c-common.c (c_switch_covers_all_cases_p_1, | |
3334 | c_switch_covers_all_cases_p): New functions. | |
3335 | * c-common.h (c_switch_covers_all_cases_p): Declare. | |
3336 | ||
5e9d6aa4 | 3337 | 2017-11-28 Julia Koval <julia.koval@intel.com> |
92a285c1 | 3338 | Sebastian Peryt <sebastian.peryt@intel.com> |
5e9d6aa4 JK |
3339 | |
3340 | * array-notation-common.c: Delete. | |
3341 | * c-cilkplus.c: Ditto. | |
3342 | * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove. | |
3343 | * c-common.def (ARRAY_NOTATION_REF): Remove. | |
3344 | * c-common.h (RID_CILK_SPAWN, build_array_notation_expr, | |
3345 | build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop, | |
3346 | c_validate_cilk_plus_loop, cilkplus_an_parts, | |
3347 | cilk_ignorable_spawn_rhs_op, | |
3348 | cilk_recognize_spawn): Remove. | |
3349 | * c-gimplify.c (CILK_SPAWN_STMT): Remove. | |
3350 | * c-omp.c: Remove CILK_SIMD check. | |
3351 | * c-pragma.c: Ditto. | |
3352 | * c-pragma.h: Remove CILK related pragmas. | |
3353 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove | |
3354 | ARRAY_NOTATION_REF condition. | |
3355 | (c_pretty_printer::expression): Ditto. | |
3356 | * c.opt (fcilkplus): Remove. | |
3357 | * cilk.c: Delete. | |
3358 | ||
1af4ebf5 MG |
3359 | 2017-11-21 Marc Glisse <marc.glisse@inria.fr> |
3360 | ||
3361 | * c-pretty-print.c (pp_c_additive_expression, | |
3362 | c_pretty_printer::expression): Handle POINTER_DIFF_EXPR. | |
3363 | ||
d44ed508 JJ |
3364 | 2017-11-21 Jakub Jelinek <jakub@redhat.com> |
3365 | ||
7d2f0f9b JJ |
3366 | * c-common.c (get_nonnull_operand): Use tree_to_uhwi. |
3367 | ||
d44ed508 JJ |
3368 | PR c++/83059 |
3369 | * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW | |
3370 | instead of tree_to_uhwi, formatting fix. | |
3371 | ||
26edace6 DM |
3372 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3373 | ||
3374 | PR c/81404 | |
3375 | * known-headers.cc: New file, based on material from c/c-decl.c. | |
3376 | (suggest_missing_header): Copied as-is. | |
3377 | (get_stdlib_header_for_name): New, based on get_c_name_hint but | |
3378 | heavily edited to add C++ support. Add some knowledge about | |
3379 | <limits.h>, <stdint.h>, and <wchar.h>. | |
3380 | * known-headers.h: Likewise. | |
3381 | ||
6c7a259b DM |
3382 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3383 | ||
3384 | * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h. | |
3385 | (lookup_name_fuzzy): Likewise. Convert return type from | |
3386 | const char * to name_hint. Add location_t param. | |
3387 | * name-hint.h: New header. | |
3388 | ||
f9c59f7e JJ |
3389 | 2017-11-19 Jakub Jelinek <jakub@redhat.com> |
3390 | ||
3391 | PR c/66618 | |
3392 | PR c/69960 | |
3393 | * c-common.h (c_fully_fold): Add LVAL argument defaulted to false. | |
3394 | ||
1e39313a JM |
3395 | 2017-11-16 Joseph Myers <joseph@codesourcery.com> |
3396 | ||
3397 | * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018 | |
3398 | expected publication date of C17. | |
3399 | (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases. | |
3400 | ||
3ca0dc60 JM |
3401 | 2017-11-15 Joseph Myers <joseph@codesourcery.com> |
3402 | ||
3403 | PR c/81156 | |
3404 | * c-common.c (c_common_reswords): Add __builtin_tgmath. | |
3405 | * c-common.h (enum rid): Add RID_BUILTIN_TGMATH. | |
3406 | ||
025d57f0 MS |
3407 | 2017-11-10 Martin Sebor <msebor@redhat.com> |
3408 | ||
3409 | PR c/81117 | |
3410 | * c-common.c (catenate_strings): Use memcpy instead of strncpy. | |
3411 | * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays. | |
3412 | * c.opt (-Wstringop-truncation): New option. | |
3413 | ||
1b6fa695 ML |
3414 | 2017-11-06 Martin Liska <mliska@suse.cz> |
3415 | ||
3416 | PR middle-end/82404 | |
3417 | * c-opts.c (c_common_post_options): Set -Wreturn-type for C++ | |
3418 | FE. | |
3419 | * c.opt: Set default value of warn_return_type. | |
3420 | ||
64a5912c DM |
3421 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
3422 | ||
3423 | * c-common.c (binary_op_error): Update for renaming of | |
3424 | error_at_rich_loc. | |
3425 | (c_parse_error): Likewise. | |
3426 | * c-warn.c (warn_logical_not_parentheses): Likewise for | |
3427 | renaming of inform_at_rich_loc. | |
3428 | (warn_for_restrict): Likewise for renaming of | |
3429 | warning_at_rich_loc_n. | |
3430 | ||
c76dc9c3 JM |
3431 | 2017-10-30 Joseph Myers <joseph@codesourcery.com> |
3432 | ||
3433 | * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options. | |
3434 | * c-opts.c (set_std_c17): New function. | |
3435 | (c_common_init_options): Use gnu17 as default C version. | |
3436 | (c_common_handle_option): Handle -std=c17 and -std=gnu17. | |
3437 | ||
ee5fd23a MM |
3438 | 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> |
3439 | ||
3440 | * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode. | |
3441 | (c_cpp_builtins): If a machine has a fast fma _Float<N> and | |
3442 | _Float<N>X variant, define __FP_FAST_FMA<N> and/or | |
3443 | __FP_FAST_FMA<N>X. | |
3444 | ||
d1047465 MP |
3445 | 2017-10-23 Marek Polacek <polacek@redhat.com> |
3446 | ||
3447 | PR c/82681 | |
3448 | * c-warn.c (warnings_for_convert_and_check): Fix typos. | |
3449 | ||
9e878cf1 EB |
3450 | 2017-10-19 Eric Botcazou <ebotcazou@adacore.com> |
3451 | ||
3452 | * c-common.c (check_builtin_function_arguments): Also check arguments | |
3453 | of __builtin_alloca_with_align_and_max. | |
3454 | ||
89b6abbb DM |
3455 | 2017-10-17 David Malcolm <dmalcolm@redhat.com> |
3456 | ||
3457 | * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION | |
3458 | rather than NULL to format_warning_va. | |
3459 | (check_format_types): Likewise when calling format_type_warning. | |
3460 | Remove code to extract source_ranges and source_range * in favor | |
3461 | of just a location_t. | |
3462 | (format_type_warning): Convert source_range * param to a | |
3463 | location_t. | |
3464 | ||
39382c09 JJ |
3465 | 2017-10-13 Jakub Jelinek <jakub@redhat.com> |
3466 | ||
3467 | * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like | |
3468 | [LR]SHIFT_EXPR. | |
3469 | ||
62e1c678 DM |
3470 | 2017-10-12 David Malcolm <dmalcolm@redhat.com> |
3471 | ||
3472 | * c-common.c (enum missing_token_insertion_kind): New enum. | |
3473 | (get_missing_token_insertion_kind): New function. | |
3474 | (maybe_suggest_missing_token_insertion): New function. | |
3475 | * c-common.h (maybe_suggest_missing_token_insertion): New decl. | |
3476 | ||
b90c9338 NS |
3477 | 2017-10-11 Nathan Sidwell <nathan@acm.org> |
3478 | ||
3479 | * c-opts.c (add_prefixed_path): Change chain to incpath_kind. | |
3480 | (c_common_handle_option): Update incpath_kind names. | |
3481 | ||
3a266bcd ML |
3482 | 2017-10-11 Martin Liska <mliska@suse.cz> |
3483 | ||
3484 | PR sanitizer/82490 | |
3485 | * c-attribs.c (handle_no_sanitize_attribute): Report directly | |
3486 | Wattributes warning. | |
3487 | ||
8e6cdc90 RS |
3488 | 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org> |
3489 | ||
3490 | * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when | |
3491 | operating on trees as wide_ints. | |
3492 | * c-common.c (pointer_int_sum): Likewise. | |
3493 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
3494 | * c-warn.c (match_case_to_enum_1): Likewise. | |
3495 | (c_do_switch_warnings): Likewise. | |
3496 | (maybe_warn_shift_overflow): Likewise. | |
3497 | ||
802b38c9 JJ |
3498 | 2017-10-10 Jakub Jelinek <jakub@redhat.com> |
3499 | ||
3500 | PR c/82437 | |
3501 | * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide | |
3502 | instead of wide_int::from. | |
3503 | ||
4e34b338 JJ |
3504 | 2017-10-06 Jakub Jelinek <jakub@redhat.com> |
3505 | ||
3506 | PR c/82437 | |
3507 | * c-warn.c (warn_tautological_bitwise_comparison): Instead of | |
3508 | using to_widest use wide_int with the larger of the two precisions. | |
3509 | ||
4bc4b2b4 BE |
3510 | 2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3511 | ||
3512 | * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic | |
3513 | functions. | |
3514 | ||
a1488398 RS |
3515 | 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org> |
3516 | ||
3517 | * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest | |
3518 | when combining the original unconverted comparison operands. | |
3519 | ||
01c9fb68 JJ |
3520 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
3521 | ||
3522 | * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect" | |
3523 | attribute. | |
3524 | ||
6e3e8419 EB |
3525 | 2017-09-29 Eric Botcazou <ebotcazou@adacore.com> |
3526 | ||
3527 | * c-ada-spec.c (to_ada_name): Add index parameter. | |
3528 | (pp_ada_tree_identifier): Likewise. | |
3529 | (dump_ada_macros): Adjust call to to_ada_name. | |
3530 | (struct overloaded_name_hash): New type. | |
3531 | (struct overloaded_name_hasher): Likewise. | |
3532 | (overloaded_names): New hash table. | |
3533 | (compute_overloading_index): New function. | |
3534 | (dump_ada_decl_name): Call it and pass the result to | |
3535 | pp_ada_tree_identifier. | |
3536 | (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. | |
3537 | (dump_ada_function_declaration): Likewise. | |
3538 | (dump_generic_ada_node): Likewise. | |
3539 | (print_constructor): Likewise. | |
3540 | (print_destructor): Likewise. | |
3541 | (dump_ada_specs): Delete overloaded_names table. | |
3542 | ||
79310774 EB |
3543 | 2017-09-29 Eric Botcazou <ebotcazou@adacore.com> |
3544 | ||
3545 | * c-ada-spec.c (max_ada_macros): Move around. | |
3546 | (store_ada_macro_index): Likewise. | |
3547 | (source_file): Rename into... | |
3548 | (macro_source_file): ...this. | |
3549 | (count_ada_macro): Move around. | |
3550 | (store_ada_macro): Likewise. | |
3551 | (compare_macro): Likewise. | |
3552 | (print_ada_macros): Merge in... | |
3553 | (dump_ada_macros): ...this. | |
3554 | (source_file_base): Rename into... | |
3555 | (current_source_file): ...this. | |
3556 | (print_comment): Move around. | |
3557 | (dump_ada_nodes): Call dump_ada_declaration directly. | |
3558 | (struct with): Change type of limited field to bool. | |
3559 | (append_withs): Change type of limited_access parameter to bool. | |
3560 | (pp_ada_tree_identifie): Likewise. | |
3561 | (dump_ada_decl_nam): Likewise. | |
3562 | (dump_generic_ada_node): Likewise. Do not print the return type. | |
3563 | (to_ada_name): Change type of space_found parameter to bool. | |
3564 | (dump_ada_function_declaration): Return void and change type of | |
3565 | parameters to bool. Also print the return type for a function. | |
3566 | (print_ada_methods): Rename into... | |
3567 | (dump_ada_methods): ...this. | |
3568 | (print_ada_declaration): Rename into ... | |
3569 | (dump_ada_declaration): ...this. Do not print the return type. | |
3570 | (print_ada_struct_decl): Rename into... | |
3571 | (dump_ada_struct_decl): ...this. | |
3572 | ||
7d386d45 JJ |
3573 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
3574 | ||
3575 | * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD | |
3576 | rather than DECL_INITIAL. | |
3577 | (common_handle_aligned_attribute): Likewise. | |
3578 | ||
ab20d992 | 3579 | 2017-09-20 Alexandre Oliva <aoliva@redhat.com> |
9ed32e27 AO |
3580 | |
3581 | * c.opt (gen-decls): Add RejectNegative. | |
3582 | ||
026a79f7 AS |
3583 | 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com> |
3584 | Jakub Jelinek <jakub@redhat.com> | |
3585 | ||
3586 | Add support for -std=c++2a. | |
3587 | * c-common.h (cxx_dialect): Add cxx2a as a dialect. | |
3588 | * opt.c: Add options for -std=c++2a and -std=gnu++2a. | |
3589 | * c-opts.c (set_std_cxx2a): New. | |
3590 | (c_common_handle_option): Set options when -std=c++2a is enabled. | |
3591 | (c_common_post_options): Adjust comments. | |
3592 | (set_std_cxx14, set_std_cxx17): Likewise. | |
3593 | ||
4a8ca690 EB |
3594 | 2017-09-15 Eric Botcazou <ebotcazou@adacore.com> |
3595 | ||
3596 | * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error | |
3597 | message for non-uniform endianness and issue a warning in C++. | |
3598 | ||
7b936140 JJ |
3599 | 2017-09-15 Jakub Jelinek <jakub@redhat.com> |
3600 | ||
3601 | * c.opt (Wc++1z-compat): Change from option to undocumented alias. | |
3602 | (Wc++17-compat): Change from undocumented alias to option. | |
3603 | (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat, | |
3604 | change C++1z to C++17 in description. | |
3605 | (std=c++1z, std=gnu++1z): Change from option to undocumented | |
3606 | deprecated alias. | |
3607 | (std=c++17, std=gnu++17): Change from undocumented alias to option. | |
3608 | Adjust description. | |
3609 | * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17. | |
3610 | * c-opts.c (set_std_cxx1z): Rename to ... | |
3611 | (set_std_cxx17): ... this. | |
3612 | (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17 | |
3613 | and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z | |
7365279f | 3614 | caller. |
7b936140 JJ |
3615 | (c_common_post_options): Use cxx17 instead of cxx1z. Adjust |
3616 | comments. | |
3617 | ||
12263f13 L |
3618 | 2017-09-12 H.J. Lu <hongjiu.lu@intel.com> |
3619 | ||
3620 | * c-attribs.c (common_handle_aligned_attribute): Don't warn | |
3621 | function alignment if warn_if_not_aligned_p is true. | |
3622 | ||
6836632e NS |
3623 | 2017-09-12 Nathan Sidwell <nathan@acm.org> |
3624 | ||
3625 | * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp, | |
3626 | resort_sorted_fields): Move to c/c-decl.c. | |
3627 | * c-common.h (field_decl_cmp, resort_sorted_fields): Delete. | |
3628 | (struct sorted_fields_type): Move to c/c-lang.h. | |
3629 | ||
019bf9ad JW |
3630 | 2017-09-09 Jonathan Wakely <jwakely@redhat.com> |
3631 | ||
3632 | PR c++/81852 | |
3633 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init. | |
3634 | ||
bc7fe952 MP |
3635 | 2017-09-04 Marek Polacek <polacek@redhat.com> |
3636 | ||
3637 | PR c/81783 | |
3638 | * c-warn.c (warn_tautological_bitwise_comparison): New function. | |
3639 | (warn_tautological_cmp): Call it. | |
3640 | ||
ab20d992 | 3641 | 2017-09-01 Boris Kolpackov <boris@codesynthesis.com> |
de7c2c6a BK |
3642 | |
3643 | * c-opts.c (c_common_finish): Write dependency information even if | |
3644 | there are errors. | |
3645 | ||
d2e05fcb JJ |
3646 | 2017-09-01 Jakub Jelinek <jakub@redhat.com> |
3647 | ||
3648 | PR c/81887 | |
3649 | * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ... | |
3650 | (omp_pragmas_simd): ... here. | |
3651 | * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone, | |
3652 | create new clauses list containing just simd clause. | |
3653 | ||
18e2a8b8 RS |
3654 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3655 | Alan Hayward <alan.hayward@arm.com> | |
3656 | David Sherwood <david.sherwood@arm.com> | |
3657 | ||
3658 | * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call | |
3659 | into scalar_mode_supported_p call. | |
3660 | (handle_mode_attribute): Update call to scalar_mode_supported_p. | |
3661 | ||
16d22000 RS |
3662 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3663 | Alan Hayward <alan.hayward@arm.com> | |
3664 | David Sherwood <david.sherwood@arm.com> | |
3665 | ||
3666 | * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode | |
3667 | for the mode iterator. | |
3668 | ||
b397965c RS |
3669 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3670 | Alan Hayward <alan.hayward@arm.com> | |
3671 | David Sherwood <david.sherwood@arm.com> | |
3672 | ||
3673 | * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE. | |
3674 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
3675 | ||
357b7604 RS |
3676 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3677 | Alan Hayward <alan.hayward@arm.com> | |
3678 | David Sherwood <david.sherwood@arm.com> | |
3679 | ||
3680 | * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>. | |
3681 | ||
e05c94ba RS |
3682 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3683 | Alan Hayward <alan.hayward@arm.com> | |
3684 | David Sherwood <david.sherwood@arm.com> | |
3685 | ||
3686 | * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode | |
3687 | before calling targetm.addr_space.valid_pointer_mode. | |
3688 | ||
5c20c4af RS |
3689 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3690 | Alan Hayward <alan.hayward@arm.com> | |
3691 | David Sherwood <david.sherwood@arm.com> | |
3692 | ||
3693 | * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode. | |
3694 | ||
c94843d2 | 3695 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
92a285c1 ML |
3696 | Alan Hayward <alan.hayward@arm.com> |
3697 | David Sherwood <david.sherwood@arm.com> | |
c94843d2 RS |
3698 | |
3699 | * c-common.c (c_common_fixed_point_type_for_size): Use new mode | |
3700 | iterators. | |
3701 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
3702 | ||
4e10a5a7 RS |
3703 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3704 | Alan Hayward <alan.hayward@arm.com> | |
3705 | David Sherwood <david.sherwood@arm.com> | |
3706 | ||
3707 | * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in | |
3708 | case statements. | |
3709 | ||
130fcab0 ML |
3710 | 2017-08-29 Martin Liska <mliska@suse.cz> |
3711 | ||
3712 | PR other/39851 | |
3713 | * c-common.c (parse_optimize_options): Add argument to function | |
3714 | call. | |
3715 | * c-pragma.c (handle_pragma_diagnostic): Likewise. | |
3716 | ||
14e18d71 DM |
3717 | 2017-08-24 David Malcolm <dmalcolm@redhat.com> |
3718 | ||
3719 | * c-lex.c (interpret_float): Use token location | |
3720 | when building an EXCESS_PRECISION_EXPR. | |
3721 | ||
2f687306 DM |
3722 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
3723 | ||
3724 | * c-common.c (check_function_arguments): Add "arglogs" param; pass | |
3725 | it to check_function_format. | |
3726 | * c-common.h (check_function_arguments): Add vec<location_t> * | |
3727 | param. | |
3728 | (check_function_format): Likewise. | |
3729 | * c-format.c (struct format_check_context): Add field "arglocs". | |
3730 | (check_function_format): Add param "arglocs"; pass it to | |
3731 | check_format_info. | |
ab20d992 | 3732 | (check_format_info): Add param "arglocs"; use it to initialize |
2f687306 DM |
3733 | new field of format_ctx. |
3734 | (check_format_arg): Pass format_ctx->arglocs to new param of | |
3735 | check_format_info_main. | |
3736 | (class argument_parser): New field "arglocs". | |
3737 | (argument_parser::argument_parser): Add "arglocs_" param and use | |
3738 | it to initialize new field. | |
3739 | (argument_parser::check_argument_type): Pass new arglocs field to | |
3740 | check_format_types. | |
3741 | (check_format_info_main): Add param "arglocs", and use it when | |
3742 | constructing arg_parser. | |
3743 | (check_format_types): Add param "arglocs"; use it if non-NULL when | |
3744 | !EXPR_HAS_LOCATION (cur_param) to get at location information. | |
3745 | ||
00aa1fa2 L |
3746 | 2017-08-18 H.J. Lu <hongjiu.lu@intel.com> |
3747 | ||
3748 | PR c/53037 | |
3749 | * c-attribs.c (handle_warn_if_not_aligned_attribute): New. | |
3750 | (c_common_attribute_table): Add warn_if_not_aligned. | |
3751 | (handle_aligned_attribute): Renamed to ... | |
3752 | (common_handle_aligned_attribute): Remove argument, name, and add | |
3753 | argument, warn_if_not_aligned. Handle warn_if_not_aligned. | |
3754 | (handle_aligned_attribute): New. | |
3755 | * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned. | |
3756 | ||
27be025d MS |
3757 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
3758 | ||
3759 | PR c/81117 | |
3760 | * c-attribs.c (c_common_attribute_table): Add nonstring entry. | |
3761 | (handle_nonstring_attribute): New function. | |
3762 | ||
da67acb9 MS |
3763 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
3764 | ||
3765 | PR c/81117 | |
3766 | * c-format.h (T89_G): New macro. | |
3767 | * c-format.c (local_gcall_ptr_node): New variable. | |
3768 | (init_dynamic_diag_info): Initialize it. | |
3769 | ||
a8b522b4 ML |
3770 | 2017-08-11 Martin Liska <mliska@suse.cz> |
3771 | ||
3772 | * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with | |
3773 | TARGET_SUPPORTS_ALIASES. | |
3774 | ||
32129a17 DM |
3775 | 2017-08-10 David Malcolm <dmalcolm@redhat.com> |
3776 | ||
3777 | * c-common.c (c_parse_error): Add rich_location * param, using it | |
3778 | rather implicitly using input_location. | |
3779 | * c-common.h (c_parse_error): Add rich_location * param. | |
3780 | ||
30af3a2b MP |
3781 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
3782 | ||
3783 | * c-common.c (pointer_int_sum): Use true/false instead of 1/0. | |
3784 | (c_common_truthvalue_conversion): Likewise. | |
3785 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
3786 | * c-common.h (build_binary_op): Update declaration. | |
3787 | ||
314e6352 ML |
3788 | 2017-08-08 Martin Liska <mliska@suse.cz> |
3789 | ||
3790 | * c-ada-spec.c: Include header files. | |
3791 | * c-ubsan.c: Likewise. | |
3792 | * c-warn.c: Likewise. | |
3793 | ||
56b5041c JJ |
3794 | 2017-08-07 Jakub Jelinek <jakub@redhat.com> |
3795 | ||
3796 | PR c/69389 | |
3797 | * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields. | |
3798 | ||
db440138 EB |
3799 | 2017-08-07 Eric Botcazou <ebotcazou@adacore.com> |
3800 | ||
3801 | * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL. | |
3802 | (print_ada_methods): Likewise. | |
3803 | (print_ada_declaration): Likewise. | |
3804 | ||
577eec56 ML |
3805 | 2017-08-07 Martin Liska <mliska@suse.cz> |
3806 | ||
3807 | * array-notation-common.c: Add new includes. | |
3808 | * c-format.c( handle_format_attribute): Canonicalize a format | |
3809 | function name. | |
3810 | * c-lex.c (c_common_has_attribute): Canonicalize name of an | |
3811 | attribute. | |
3812 | * c-pretty-print.c: Add new include. | |
3813 | ||
b854df3c EB |
3814 | 2017-08-05 Eric Botcazou <ebotcazou@adacore.com> |
3815 | ||
3816 | * c-ada-spec.c (has_static_fields): Look only into variables. | |
3817 | (print_constructor): Add TYPE parameter and use it for the name. | |
3818 | (print_destructor): Likewise. | |
3819 | (print_ada_declaration): Adjust to new constructor/destructor names. | |
3820 | Adjust calls to print_constructor and print_destructor. | |
3821 | (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL. | |
3822 | Look only into variables in the final loop. | |
3823 | ||
9f2cb25e EB |
3824 | 2017-08-01 Eric Botcazou <ebotcazou@adacore.com> |
3825 | ||
3826 | * c-ada-spec.c (has_static_fields): Look only into fields. | |
3827 | (dump_generic_ada_node): Small tweak. | |
3828 | (dump_nested_types): Look only into fields. | |
3829 | (print_ada_declaration): Look only into methods. Small tweak. | |
3830 | (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P. | |
3831 | ||
f4bcd9eb EB |
3832 | 2017-08-01 Eric Botcazou <ebotcazou@adacore.com> |
3833 | ||
3834 | * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant. | |
3835 | (dump_ada_function_declaration): Likewise. | |
3836 | (dump_generic_ada_node): Likewise. | |
3837 | (print_ada_declaration): Add support for const-qualified variables. | |
3838 | ||
f34ebeb2 ML |
3839 | 2017-07-31 Martin Liska <mliska@suse.cz> |
3840 | ||
3841 | PR sanitize/81530 | |
3842 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): | |
3843 | Guard condition with flag_sanitize_p also with current_function_decl | |
3844 | non-null equality. | |
3845 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
3846 | ||
218e5d04 UB |
3847 | 2017-07-30 Uros Bizjak <ubizjak@gmail.com> |
3848 | ||
3849 | * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars. | |
3850 | ||
942047f2 EB |
3851 | 2017-07-29 Eric Botcazou <ebotcazou@adacore.com> |
3852 | ||
3853 | * c-ada-spec.c (dump_generic_ada_node): Take into account signedness | |
3854 | for enumeral types. | |
3855 | (print_ada_declaration): Add missing guard for record types. | |
3856 | ||
a40ff0ae JJ |
3857 | 2017-07-27 Jakub Jelinek <jakub@redhat.com> |
3858 | ||
3859 | PR c/45784 | |
3860 | * c-omp.c (c_finish_omp_for): If the condition is wrapped in | |
3861 | rhs of COMPOUND_EXPR(s), skip them and readd their lhs into | |
3862 | new COMPOUND_EXPRs around the rhs of the comparison. | |
3863 | ||
06bd22f6 MP |
3864 | 2017-07-27 Marek Polacek <polacek@redhat.com> |
3865 | ||
3866 | PR c/81417 | |
3867 | * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print | |
3868 | the types. | |
3869 | ||
036ea399 JJ |
3870 | 2017-07-27 Jakub Jelinek <jakub@redhat.com> |
3871 | ||
3872 | * c-attribs.c (c_common_attribute_table): Add noipa attribute. | |
3873 | (handle_noipa_attribute): New function. | |
3874 | ||
417ca011 TD |
3875 | 2017-07-07 Torsten Duwe <duwe@suse.de> |
3876 | ||
3877 | * c-attribs.c (c_common_attribute_table): Add entry for | |
3878 | "patchable_function_entry". | |
3879 | ||
5aaa8fb4 NS |
3880 | 2017-07-20 Nathan Sidwell <nathan@acm.org> |
3881 | ||
3882 | Remove TYPE_METHODS. | |
3883 | * c-ada-spec.c (is_tagged_type, has_nontrivial_methods, | |
3884 | dump_ada_template, print_ada_methods, | |
3885 | print_ada_declaration): Member fns are on TYPE_FIELDS. | |
3886 | ||
ff22eb12 NS |
3887 | 2017-07-18 Nathan Sidwell <nathan@acm.org> |
3888 | ||
3889 | * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE. | |
3890 | ||
eea77d1f DM |
3891 | 2017-07-14 David Malcolm <dmalcolm@redhat.com> |
3892 | ||
3893 | * c-common.c (try_to_locate_new_include_insertion_point): New | |
3894 | function. | |
3895 | (per_file_includes_t): New typedef. | |
3896 | (added_includes_t): New typedef. | |
3897 | (added_includes): New variable. | |
3898 | (maybe_add_include_fixit): New function. | |
3899 | * c-common.h (maybe_add_include_fixit): New decl. | |
3900 | ||
281ac396 MS |
3901 | 2017-07-10 Martin Sebor <msebor@redhat.com> |
3902 | ||
3903 | PR other/81345 | |
3904 | * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy. | |
3905 | ||
b6f43128 DM |
3906 | 2017-07-06 David Malcolm <dmalcolm@redhat.com> |
3907 | ||
3908 | * c-common.c (selftest::c_family_tests): New. | |
3909 | * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h. | |
3910 | (selftest::c_family_tests): New decl. | |
3911 | ||
efbf55b0 MP |
3912 | 2017-07-04 Marek Polacek <polacek@redhat.com> |
3913 | ||
3914 | PR c/81231 | |
3915 | * c-common.c (sync_resolve_size): Give error for pointers to incomplete | |
3916 | types. | |
3917 | ||
6c86bd88 MP |
3918 | 2017-07-04 Marek Polacek <polacek@redhat.com> |
3919 | ||
3920 | * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling. | |
3921 | ||
17a7218b ML |
3922 | 2017-06-28 Martin Liska <mliska@suse.cz> |
3923 | ||
3924 | PR ipa/81128 | |
3925 | * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias | |
3926 | to a function declaration. | |
3927 | ||
63010089 ML |
3928 | 2017-06-28 Martin Liska <mliska@suse.cz> |
3929 | ||
3930 | PR driver/79659 | |
3931 | * c.opt: Add IntegerRange to various options. | |
3932 | ||
3e2becc4 MP |
3933 | 2017-06-26 Marek Polacek <polacek@redhat.com> |
3934 | ||
3935 | PR c/80116 | |
3936 | * c-common.h (warn_for_multistatement_macros): Declare. | |
3937 | * c-warn.c: Include "c-family/c-indentation.h". | |
3938 | (warn_for_multistatement_macros): New function. | |
3939 | * c.opt (Wmultistatement-macros): New option. | |
3940 | * c-indentation.c (guard_tinfo_to_string): No longer static. | |
3941 | Change the parameter type to "enum rid". Handle RID_SWITCH. | |
3942 | * c-indentation.h (guard_tinfo_to_string): Declare. | |
3943 | ||
2db9b7cd MG |
3944 | 2017-06-23 Marc Glisse <marc.glisse@inria.fr> |
3945 | ||
3946 | * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types. | |
3947 | ||
c3684b7b MS |
3948 | 2017-06-15 Martin Sebor <msebor@redhat.com> |
3949 | ||
3950 | PR c++/80560 | |
3951 | * c.opt (-Wclass-memaccess): New option. | |
3952 | ||
e72c4afd BK |
3953 | 2017-06-14 Boris Kolpackov <boris@codesynthesis.com> |
3954 | ||
3955 | * c-opts.c (c_common_finish): Handle '-' special value to -MF. | |
3956 | ||
8a516588 MP |
3957 | 2017-06-13 Marek Polacek <polacek@redhat.com> |
3958 | ||
3959 | PR objc/80949 | |
3960 | * c-warn.c (do_warn_duplicated_branches): Return if any of the | |
3961 | branches is null. | |
3962 | ||
45b2222a ML |
3963 | 2017-06-13 Martin Liska <mliska@suse.cz> |
3964 | ||
3965 | PR sanitize/78204 | |
3966 | * c-attribs.c (add_no_sanitize_value): New function. | |
3967 | (handle_no_sanitize_attribute): Likewise. | |
3968 | (handle_no_sanitize_address_attribute): Use the function. | |
3969 | (handle_no_sanitize_thread_attribute): New function. | |
3970 | (handle_no_address_safety_analysis_attribute): Use | |
3971 | add_no_sanitize_value. | |
3972 | (handle_no_sanitize_undefined_attribute): Likewise. | |
3973 | * c-common.h: Declare new functions. | |
3974 | * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p. | |
3975 | (ubsan_instrument_shift): Likewise. | |
3976 | (ubsan_instrument_bounds): Likewise. | |
3977 | (ubsan_maybe_instrument_array_ref): Likewise. | |
3978 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
3979 | ||
a01f151f JM |
3980 | 2017-06-11 Jason Merrill <jason@redhat.com> |
3981 | ||
3982 | * c-ada-spec.c, c-pragma.c: Use id_equal. | |
3983 | ||
3de4ac6d MP |
3984 | 2017-06-04 Marek Polacek <polacek@redhat.com> |
3985 | ||
3986 | PR c/80919 | |
3987 | * c-format.c (matching_type_p): Return false if any of the types | |
3988 | requires structural equality. | |
3989 | ||
2474f48f MS |
3990 | 2017-06-02 Martin Sebor <msebor@redhat.com> |
3991 | ||
3992 | PR c/80892 | |
3993 | * c-warn.c (conversion_warning): Use -Wconversion for integer | |
3994 | conversion and -Wfloat-conversion for floating one. | |
3995 | ||
40ffd95f BE |
3996 | 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3997 | ||
3998 | * c.opt (Wsizeof-pointer-div): New warning option. | |
3999 | ||
3fa4634c VR |
4000 | 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de> |
4001 | ||
4002 | * c.opt (Wcatch-value): New shortcut for Wcatch-value=1. | |
4003 | (Wcatch-value=1): Enable by -Wall. | |
4004 | ||
f012c8ef DM |
4005 | 2017-05-30 David Malcolm <dmalcolm@redhat.com> |
4006 | ||
4007 | * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to | |
4008 | format_chars. | |
4009 | * c.opt (fdiagnostics-show-template-tree): New option. | |
4010 | (felide-type): New option. | |
4011 | ||
63dbcd13 VR |
4012 | 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de> |
4013 | ||
4014 | * c.opt (Wcatch-value=): New C++ warning flag. | |
4015 | ||
be136b5c NS |
4016 | 2017-05-24 Nathan Sidwell <nathan@acm.org> |
4017 | ||
4018 | * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T | |
4019 | const casts to avoid warning. | |
4020 | ||
3cd211af MS |
4021 | 2017-05-24 Martin Sebor <msebor@redhat.com> |
4022 | ||
4023 | PR c/80731 | |
4024 | * c-common.h (unsafe_conversion_p): Add a function argument. | |
4025 | * c-common.c (unsafe_conversion_p): Same. | |
4026 | Add type names and values to diagnostics. | |
4027 | (scalar_to_vector): Adjust. | |
4028 | * c-warn.c (constant_expression_error): Add a function argument. | |
4029 | Add type names and values to diagnostics. | |
4030 | (conversion_warning): Add a function argument. | |
4031 | Add type names and values to diagnostics. | |
4032 | (warnings_for_convert_and_check): Same. | |
4033 | ||
1ff7be5a JM |
4034 | 2017-05-19 Jason Merrill <jason@redhat.com> |
4035 | ||
4036 | * c-warn.c (match_case_to_enum_1): Don't warn about enums with no | |
4037 | enumerators. | |
4038 | ||
ff502317 BE |
4039 | 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4040 | ||
4041 | * c-format.c (locus): Move out of function scope, | |
4042 | add GTY attribute. | |
4043 | ||
2a8a8d7b NS |
4044 | 2017-05-19 Nathan Sidwell <nathan@acm.org> |
4045 | ||
4046 | * c-opts.c (class_dump_file, class_dump_flags): Delete. | |
4047 | (c_common_parse_file): Remove class dump handling. | |
4048 | (get_dump_info): Likewise. | |
4049 | ||
39aac208 RB |
4050 | 2017-05-19 Richard Biener <rguenther@suse.de> |
4051 | ||
4052 | PR c++/80593 | |
4053 | * c-warn.c (strict_aliasing_warning): Do not warn for accesses | |
4054 | to alias-set zero memory. | |
4055 | ||
6ecd2339 BE |
4056 | 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4057 | ||
4058 | * c-format.c (local_tree_type_node): Add GTY attribute. | |
4059 | ||
6574d78e MP |
4060 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
4061 | ||
4062 | * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0. | |
4063 | (c_common_fixed_point_type_for_size): Likewise. | |
4064 | (c_common_type_for_mode): Likewise. | |
4065 | (shorten_compare): Likewise. | |
4066 | (c_promoting_integer_type_p): Use false/true instead of 0/1. | |
4067 | * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0. | |
4068 | ||
e3455240 MP |
4069 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
4070 | ||
4071 | * c-common.c (self_promoting_args_p): Change the return type to bool. | |
4072 | Use false/true instead of 0/1. | |
4073 | * c-common.h (self_promoting_args_p): Update. | |
4074 | ||
3fa8871b MP |
4075 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
4076 | ||
4077 | * c-common.c: Use NULL_TREE instead of 0 where appropriate. | |
4078 | * c-warn.c: Likewise. | |
4079 | ||
b42cc3ca VV |
4080 | 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com> |
4081 | ||
4082 | Implement new C++ intrinsics __is_assignable and __is_constructible. | |
4083 | * c-common.c (__is_assignable, __is_constructible): New. | |
4084 | * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise. | |
4085 | ||
1a817418 ML |
4086 | 2017-05-17 Martin Liska <mliska@suse.cz> |
4087 | ||
4088 | * c-common.h: Introduce dump_flags_t type and | |
4089 | use it instead of int type. | |
4090 | * c-gimplify.c (c_genericize): Likewise. | |
4091 | * c-opts.c: Likewise. | |
4092 | ||
b2fa0a8b MP |
4093 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
4094 | ||
4095 | * c-common.c (c_save_expr): Remove. | |
4096 | (c_common_truthvalue_conversion): Remove a call to c_save_expr. | |
4097 | * c-common.h (c_save_expr): Remove declaration. | |
4098 | ||
31c2d57d VR |
4099 | 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de> |
4100 | ||
4101 | PR c/35441 | |
4102 | * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR, | |
4103 | MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR. | |
4104 | (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR. | |
4105 | (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR, | |
4106 | RDIV_EXPR. | |
4107 | (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR. | |
4108 | ||
684f84de MP |
4109 | 2017-05-09 Marek Polacek <polacek@redhat.com> |
4110 | ||
4111 | PR c/80525 | |
4112 | * c-warn.c (unwrap_c_maybe_const): New. | |
4113 | (warn_logical_operator): Call it. | |
4114 | ||
641da50a NS |
4115 | 2017-05-09 Nathan Sidwell <nathan@acm.org> |
4116 | ||
4117 | * c-common.c (c_register_builtin_type): Use pushdecl lang_hook. | |
4118 | * c-common.h (pushdecl_top_level, pushdecl): Don't declare here. | |
4119 | ||
631238ac MS |
4120 | 2017-05-08 Martin Sebor <msebor@redhat.com> |
4121 | ||
4122 | PR translation/80280 | |
4123 | * c-format.h (struct format_flag_spec): Add new member. | |
4124 | (T89_T): New macro. | |
4125 | * c-format.c (local_tree_type_node): New global. | |
4126 | (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data. | |
4127 | (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto. | |
4128 | (strfmon_flag_specs): Likewise. | |
4129 | (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers | |
4130 | with distinct quoting properties. | |
4131 | (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same. | |
4132 | (flag_chars_t::validate): Add argument and handle bad quoting. | |
4133 | (check_format_info_main): Handle quoting problems. | |
4134 | (init_dynamic_diag_info): Simplify. | |
4135 | ||
49f0c04c JM |
4136 | 2017-05-08 Jason Merrill <jason@redhat.com> |
4137 | ||
4138 | * c-opts.c (c_common_post_options): Update defaults for | |
4139 | flag_abi_version and flag_abi_compat_version. | |
4140 | ||
56d35585 DM |
4141 | 2017-05-05 David Malcolm <dmalcolm@redhat.com> |
4142 | ||
4143 | * c-common.c (c_cpp_error): Replace report_diagnostic | |
4144 | with diagnostic_report_diagnostic. | |
4145 | ||
0f2c4a8f MS |
4146 | 2017-05-04 Martin Sebor <msebor@redhat.com> |
4147 | ||
4148 | PR translation/80280 | |
4149 | * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive. | |
4150 | (handle_weakref_attribute): Same. | |
4151 | ||
6fe63fb4 NS |
4152 | 2017-05-03 Nathan Sidwell <nathan@acm.org> |
4153 | ||
4154 | Canonicalize canonical type hashing | |
4155 | * c-common.c (complete_array_type): Use type_hash_canon. | |
4156 | ||
815d9cc6 XR |
4157 | 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> |
4158 | ||
92a285c1 | 4159 | PR c++/80038 |
815d9cc6 XR |
4160 | * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove |
4161 | prototype. | |
4162 | (cilk_install_body_pedigree_operations): Likewise. | |
4163 | * cilk.c (cilk_set_spawn_marker): Mark functions that should be | |
4164 | detatched. | |
4165 | (cilk_gimplify_call_params_in_spawned_fn): Remove. | |
4166 | (cilk_install_body_pedigree_operations): Likewise. | |
4167 | (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR | |
4168 | unwrapping. | |
4169 | ||
f8a36447 JJ |
4170 | 2017-04-27 Jakub Jelinek <jakub@redhat.com> |
4171 | ||
4172 | PR c++/80534 | |
4173 | * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE | |
4174 | flag on non-aggregate element types. | |
4175 | ||
7c145456 BE |
4176 | 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4177 | ||
4178 | * c-common.c (c_type_hasher, type_hash_table): Remove. | |
4179 | (c_common_get_alias_set): Remove unreachable code. | |
4180 | * c-opts.c (c_common_post_options): Make sure cc1 takes only one file. | |
4181 | ||
c3cbcd45 VR |
4182 | 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de> |
4183 | ||
4184 | * c.opt (Wextra-semi): New C++ warning flag. | |
4185 | ||
8a59d466 JJ |
4186 | 2017-04-20 Jakub Jelinek <jakub@redhat.com> |
4187 | ||
4188 | PR middle-end/80423 | |
4189 | * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE. | |
4190 | ||
8487c9a5 JJ |
4191 | 2017-04-18 Jakub Jelinek <jakub@redhat.com> |
4192 | ||
4193 | PR middle-end/79788 | |
4194 | PR middle-end/80375 | |
4195 | * c-common.c (c_common_type_for_mode): Don't handle | |
4196 | widest_*_literal_type_node here. | |
4197 | c_common_signed_or_unsigned_type): Likewise. | |
4198 | (c_common_nodes_and_builtins): Set widest_*_literal_type_node | |
4199 | to *intTI_type_node or *intDI_type_node depending on whether | |
4200 | TImode is supported by the target or not. | |
4201 | ||
3ee0fb02 ML |
4202 | 2017-04-10 Martin Liska <mliska@suse.cz> |
4203 | ||
4204 | PR sanitizer/80350 | |
4205 | * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before | |
4206 | doing an UBSAN check. | |
4207 | ||
5764ee3c JW |
4208 | 2017-04-03 Jonathan Wakely <jwakely@redhat.com> |
4209 | ||
4210 | * c-warn.c (do_warn_double_promotion): Fix typo in comment. | |
4211 | ||
6f3af356 JJ |
4212 | 2017-03-31 Jakub Jelinek <jakub@redhat.com> |
4213 | ||
4214 | PR c++/79572 | |
4215 | * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to | |
4216 | tree *. | |
4217 | * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle | |
4218 | not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with | |
4219 | REFERENCE_TYPE. | |
4220 | ||
f6a7a9d5 DM |
4221 | 2017-03-31 David Malcolm <dmalcolm@redhat.com> |
4222 | ||
4223 | PR documentation/78732 | |
4224 | * c.opt (Wendif-labels): Fix description to refer to | |
4225 | #else rather than #elif. | |
4226 | ||
af88f557 JJ |
4227 | 2017-03-31 Jakub Jelinek <jakub@redhat.com> |
4228 | ||
4229 | PR libstdc++/80251 | |
4230 | * c-common.h (enum rid): Add RID_IS_AGGREGATE. | |
4231 | * c-common.c (c_common_reswords): Add __is_aggregate trait. | |
4232 | ||
a9e4a1a5 JJ |
4233 | 2017-03-27 Jakub Jelinek <jakub@redhat.com> |
4234 | ||
4235 | PR middle-end/80162 | |
4236 | * c-common.c (c_common_mark_addressable_vec): Don't set | |
4237 | TREE_ADDRESSABLE on DECL_HARD_REGISTER. | |
4238 | ||
3f01b620 MS |
4239 | 2017-03-21 Martin Sebor <msebor@redhat.com> |
4240 | ||
4241 | PR c++/79548 | |
4242 | * c-common.c (set_underlying_type): Mark type used only when | |
4243 | original del is declared unused. | |
4244 | ||
2f6f187a DM |
4245 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
4246 | ||
4247 | PR translation/79848 | |
4248 | * c-format.c (check_format_string): Simplify uses of "%<%s%>" to | |
4249 | "%qs". | |
4250 | ||
a02fa805 DM |
4251 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
4252 | ||
4253 | PR c/79921 | |
4254 | * c-indentation.c (warn_for_misleading_indentation): Remove parens | |
4255 | from inform's message, so that xgettext can locate it. | |
4256 | ||
822a132c MP |
4257 | 2017-03-09 Marek Polacek <polacek@redhat.com> |
4258 | ||
4259 | PR c++/79962 | |
4260 | PR c++/79984 | |
4261 | * c-attribs.c (handle_nonnull_attribute): Save the result of default | |
4262 | conversion to the attribute list. | |
4263 | ||
bba81f1c ML |
4264 | 2017-03-09 Martin Liska <mliska@suse.cz> |
4265 | ||
4266 | * c-ada-spec.c (macro_length): Increment value instead of a pointer. | |
4267 | ||
108154ff JM |
4268 | 2017-03-03 Jason Merrill <jason@redhat.com> |
4269 | ||
4270 | * c.opt (Wnoexcept-type): New. | |
4271 | ||
eb0e7c34 RB |
4272 | 2017-03-02 Richard Biener <rguenther@suse.de> |
4273 | ||
4274 | PR c/79756 | |
4275 | * c-common.c (c_common_mark_addressable_vec): Look through | |
4276 | C_MAYBE_CONST_EXPR. | |
4277 | ||
9453ba0a ML |
4278 | 2017-02-28 Martin Liska <mliska@suse.cz> |
4279 | ||
4280 | * c.opt: Replace space with tabular for options of <number> | |
4281 | type. | |
4282 | ||
6a825afe ML |
4283 | 2017-02-28 Martin Liska <mliska@suse.cz> |
4284 | ||
4285 | * c.opt: Fix --help=option -Q for options which are of | |
4286 | an enum type. | |
4287 | ||
4227c9ad JJ |
4288 | 2017-02-24 Jakub Jelinek <jakub@redhat.com> |
4289 | ||
4290 | PR c++/79588 | |
4291 | * c-common.c (check_function_restrict): New function. | |
4292 | (check_function_arguments): Add FNDECL argument. Call | |
4293 | check_function_restrict if -Wrestrict. | |
4294 | * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY | |
4295 | and NARGS. Use auto_vec for ARG_POSITIONS, simplify. | |
4296 | * c-common.h (check_function_arguments): Add FNDECL argument. | |
4297 | (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS. | |
4298 | ||
59909673 EB |
4299 | 2017-02-24 Eric Botcazou <ebotcazou@adacore.com> |
4300 | ||
4301 | * c-ada-spec.c (dump_ada_function_declaration): Add comment about the | |
4302 | treatment of parameters with pointer-to-tagged type and tidy up. | |
4303 | (print_ada_methods): Remove the special treatment of C++ static member | |
4304 | functions. | |
4305 | ||
54dcd526 ML |
4306 | 2017-02-22 Martin Liska <mliska@suse.cz> |
4307 | ||
4308 | * c.opt: Replace inequality signs with square brackets | |
4309 | for -Wnornalized. | |
4310 | ||
00bc9de3 JJ |
4311 | 2017-02-21 Jakub Jelinek <jakub@redhat.com> |
4312 | ||
4313 | PR c++/79641 | |
4314 | * c-attribs.c (handle_mode_attribute): Use build_qualified_type to | |
4315 | preserve quals. | |
4316 | ||
97fcf744 JM |
4317 | 2017-02-17 Joseph Myers <joseph@codesourcery.com> |
4318 | ||
4319 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
4320 | __DECIMAL_DIG__ to the value for long double. | |
4321 | ||
c7545f1c MP |
4322 | 2017-02-15 Marek Polacek <polacek@redhat.com> |
4323 | ||
4324 | PR c/79515 | |
4325 | * c-warn.c (do_warn_double_promotion): Don't warn if an invalid | |
4326 | conversion has occured. | |
4327 | ||
c2e84327 DM |
4328 | 2017-01-24 David Malcolm <dmalcolm@redhat.com> |
4329 | ||
4330 | * c-common.c (c_common_reswords): Add "__RTL". | |
4331 | * c-common.h (enum rid): Add RID_RTL. | |
4332 | ||
2ebd93e1 MP |
4333 | 2017-01-20 Marek Polacek <polacek@redhat.com> |
4334 | ||
4335 | PR c/64279 | |
4336 | * c-common.h (do_warn_duplicated_branches_r): Declare. | |
4337 | * c-gimplify.c (c_genericize): Walk the function tree calling | |
4338 | do_warn_duplicated_branches_r. | |
4339 | * c-warn.c (expr_from_macro_expansion_r): New. | |
4340 | (do_warn_duplicated_branches): New. | |
4341 | (do_warn_duplicated_branches_r): New. | |
4342 | * c.opt (Wduplicated-branches): New option. | |
4343 | ||
0d80ab91 DM |
4344 | 2017-01-17 David Malcolm <dmalcolm@redhat.com> |
4345 | ||
4346 | PR c++/71497 | |
4347 | * c-indentation.c (warn_for_misleading_indentation): Use the past | |
4348 | subjunctive in the note. | |
4349 | ||
7f991c36 AH |
4350 | 2017-01-17 Aldy Hernandez <aldyh@redhat.com> |
4351 | ||
4352 | PR c/79116 | |
4353 | * array-notation-common.c (cilkplus_extract_an_triplets): Convert | |
4354 | start type to integer_type. | |
4355 | ||
1c70261c JJ |
4356 | 2017-01-16 Jakub Jelinek <jakub@redhat.com> |
4357 | ||
4358 | PR driver/49726 | |
4359 | * c.opt (gen-decls): Add Driver flag. | |
4360 | ||
1ddca3f3 PC |
4361 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
4362 | ||
4363 | Revert: | |
4364 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> | |
4365 | ||
4366 | PR c++/71737 | |
4367 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
4368 | ||
7d2f3f1d PC |
4369 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
4370 | ||
4371 | PR c++/71737 | |
4372 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
4373 | ||
bce6f760 MS |
4374 | 2017-01-12 Martin Sebor <msebor@redhat.com> |
4375 | ||
4376 | (-Wformat-overflow): ...to this. | |
4377 | ||
bf5fbf46 MS |
4378 | 2017-01-11 Martin Sebor <msebor@redhat.com> |
4379 | ||
4380 | PR c/78768 | |
4381 | * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation): | |
4382 | Also enable for LTO. | |
4383 | ||
e363df3f JM |
4384 | 2017-01-10 Jason Merrill <jason@redhat.com> |
4385 | ||
4386 | Implement P0195R2, C++17 variadic using. | |
4387 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using. | |
4388 | ||
bd2c6270 JJ |
4389 | 2017-01-09 Jakub Jelinek <jakub@redhat.com> |
4390 | ||
4391 | PR translation/79019 | |
4392 | PR translation/79020 | |
4393 | * c.opt (Wnormalized=): Fix typo in description. | |
4394 | ||
efcc8d38 MS |
4395 | 2017-01-08 Martin Sebor <msebor@redhat.com> |
4396 | ||
4397 | PR middle-end/77708 | |
4398 | * c.opt (-Wformat-truncation): New option. | |
4399 | ||
ab20d992 | 4400 | 2017-01-06 Alexandre Oliva <aoliva@redhat.com> |
435f3f7a AO |
4401 | |
4402 | * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit | |
4403 | value to unsigned short to fit in 4 hex digits without | |
4404 | warnings. | |
4405 | ||
4e89adf9 EB |
4406 | 2017-01-05 Eric Botcazou <ebotcazou@adacore.com> |
4407 | ||
4408 | * c.opt (fsso-struct): Add 'native' value. | |
4409 | ||
cd445b54 ML |
4410 | 2017-01-05 Martin Liska <mliska@suse.cz> |
4411 | ||
4412 | PR pch/78970 | |
4413 | * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled | |
4414 | header. | |
4415 | ||
a9342885 MP |
4416 | 2017-01-04 Marek Polacek <polacek@redhat.com> |
4417 | ||
4418 | PR c++/64767 | |
4419 | * c.opt (Wpointer-compare): New option. | |
4420 | ||
fc73e60c JJ |
4421 | 2017-01-04 Jakub Jelinek <jakub@redhat.com> |
4422 | ||
4423 | PR driver/78957 | |
4424 | * c.opt (fsso-struct=): Add RejectNegative. | |
4425 | ||
cbe34bb5 JJ |
4426 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
4427 | ||
4428 | Update copyright years. | |
4429 | ||
d4a6c0ea ML |
4430 | 2016-12-29 Martin Liska <mliska@suse.cz> |
4431 | ||
4432 | PR c/78933 | |
4433 | * c.opt (strong-eval-order): Add RejectNegative keyword. | |
4434 | ||
67a5ad7c JM |
4435 | 2016-12-22 Jason Merrill <jason@redhat.com> |
4436 | ||
4437 | Implement P0522R0, matching of template template arguments. | |
4438 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
4439 | __cpp_template_template_args. | |
4440 | ||
0dba7960 JJ |
4441 | 2016-12-21 Jakub Jelinek <jakub@redhat.com> |
4442 | ||
4443 | PR bootstrap/78817 | |
4444 | * c-common.c (struct nonnull_arg_ctx): New type. | |
4445 | (check_function_nonnull): Return bool instead of void. Use | |
4446 | nonnull_arg_ctx as context rather than just location_t. | |
4447 | (check_nonnull_arg): Adjust for the new context type, set | |
4448 | warned_p to true if a warning has been diagnosed. | |
4449 | (check_function_arguments): Return bool instead of void. | |
4450 | * c-common.h (check_function_arguments): Adjust prototype. | |
4451 | ||
31bfc9b9 JM |
4452 | 2016-12-21 Jason Merrill <jason@redhat.com> |
4453 | ||
4454 | * c.opt (-fnew-ttp-matching): New flag. | |
4455 | * c-opts.c (c_common_post_options): Default on if -std=c++1z. | |
4456 | ||
629b3d75 MJ |
4457 | 2016-12-14 Martin Jambor <mjambor@suse.cz> |
4458 | ||
4459 | * c-omp.c: Include omp-general.h instead of omp-low.h. | |
4460 | (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new | |
4461 | name. | |
4462 | ||
474da67e MS |
4463 | 2016-12-14 Martin Sebor <msebor@redhat.com> |
4464 | ||
4465 | PR c/17308 | |
4466 | * c-common.c (check_nonnull_arg): Disable when optimization | |
4467 | is enabled. | |
4468 | ||
fe366b87 MP |
4469 | 2016-12-12 Marek Polacek <polacek@redhat.com> |
4470 | ||
4471 | PR c++/78647 | |
4472 | * c-common.c (attribute_fallthrough_p): Return false for | |
4473 | error_mark_node. | |
4474 | ||
8bd9f164 MS |
4475 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
4476 | ||
4477 | PR c/78284 | |
4478 | * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options. | |
4479 | ||
060162e0 MS |
4480 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
4481 | ||
4482 | PR c/78165 | |
92a285c1 ML |
4483 | * c-pretty-print (pp_c_integer_constant): Avoid formatting type |
4484 | suffix. | |
060162e0 | 4485 | |
ee92e7ba MS |
4486 | 2016-12-07 Martin Sebor <msebor@redhat.com> |
4487 | ||
4488 | PR c/53562 | |
4489 | PR middle-end/77784 | |
4490 | PR middle-end/78149 | |
4491 | PR middle-end/78138 | |
4492 | * c.opt (-Wstringop-overflow): New option. | |
4493 | ||
84b0769e MO |
4494 | 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com> |
4495 | ||
4496 | * c-attribs.c (asan odr indicator): New attribute. | |
4497 | (handle_asan_odr_indicator_attribute): New function. | |
4498 | ||
7fa6a965 PK |
4499 | 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4500 | ||
4501 | * c-common.c (c_common_nodes_and_builtins): Remove initialization of | |
4502 | ptrdiff_type_node; | |
4503 | ||
56d8ffc1 JG |
4504 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
4505 | ||
4506 | * c-common.c (excess_precision_mode_join): New. | |
4507 | (c_ts18661_flt_eval_method): New. | |
4508 | (c_c11_flt_eval_method): Likewise. | |
4509 | (c_flt_eval_method): Likewise. | |
4510 | * c-common.h (excess_precision_mode_join): New. | |
4511 | (c_flt_eval_method): Likewise. | |
4512 | * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New. | |
4513 | (cpp_iec_559_value): Call it. | |
4514 | (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__, | |
4515 | call c_flt_eval_method to set __FLT_EVAL_METHOD__ and | |
4516 | __FLT_EVAL_METHOD_TS_18661_3__. | |
4517 | ||
04f0fcf7 JG |
4518 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
4519 | ||
4520 | * c-opts.c (c_common_post_options): Add logic to handle the default | |
4521 | case for -fpermitted-flt-eval-methods. | |
4522 | ||
fb2675cb PB |
4523 | 2016-11-23 Paolo Bonzini <bonzini@gnu.org> |
4524 | ||
4525 | * c.opt (Wexpansion-to-defined): New. | |
4526 | ||
ec1c5694 JJ |
4527 | 2016-11-23 Jakub Jelinek <jakub@redhat.com> |
4528 | ||
4529 | PR target/78451 | |
4530 | * c-pragma.c (handle_pragma_target): Don't replace | |
4531 | current_target_pragma, but chainon the new args to the current one. | |
4532 | ||
730c9e75 NS |
4533 | 2016-11-22 Nathan Sidwell <nathan@acm.org> |
4534 | ||
4535 | * array-notation-common.c (cilkplus_extract_an_trplets): Fix | |
cacd29be | 4536 | indentation and formatting. |
730c9e75 | 4537 | |
89990732 MS |
4538 | 2016-11-21 Martin Sebor <msebor@redhat.com> |
4539 | ||
4540 | * c.opt (-fprintf-return-value): Enable by default. | |
4541 | ||
48330c93 BE |
4542 | 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4543 | ||
4544 | PR c++/71973 | |
4545 | * c.opt (-Wbuiltin-declaration-mismatch): New warning. | |
4546 | * c-common.c (c_common_nodes_and_builtins): Initialize | |
4547 | const_tm_ptr_type_node. | |
4548 | ||
0d939c95 MP |
4549 | 2016-11-16 Marek Polacek <polacek@redhat.com> |
4550 | ||
4551 | PR c/78285 | |
4552 | * c-common.c (c_add_case_label): Turn error_at calls into inform. | |
4553 | ||
8e745a17 JJ |
4554 | 2016-11-14 Jakub Jelinek <jakub@redhat.com> |
4555 | ||
4556 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings. | |
4557 | ||
1ee62b92 | 4558 | 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> |
8e745a17 JJ |
4559 | Richard Biener <rguenther@suse.de> |
4560 | ||
4561 | * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types. | |
4562 | * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI. | |
4563 | * c.opt (fgimple): New option. | |
1ee62b92 | 4564 | |
22b15758 UB |
4565 | 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4566 | ||
4567 | PR c/35503 | |
4568 | * c-common.h (warn_for_restrict): Declare. | |
4569 | * c-warn.c: Include gcc-rich-location.h. | |
4570 | (warn_for_restrict): New function. | |
4571 | * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier. | |
4572 | (gcc_cdiag_char_table): Likewise. | |
4573 | (gcc_cxxdiag_char_table): Likewise. | |
4574 | * c.opt (Wrestrict): New option. | |
4575 | ||
4be719cd EB |
4576 | 2016-11-13 Eric Botcazou <ebotcazou@adacore.com> |
4577 | ||
4578 | * c-ada-spec.c (print_ada_declaration): For typedef declarations, look | |
4579 | for nested types only if the type is a record or union and dump SLOC. | |
4580 | ||
4a826ca6 JM |
4581 | 2016-11-09 Jason Merrill <jason@redhat.com> |
4582 | ||
4583 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto. | |
4584 | ||
2e955d50 JJ |
4585 | 2016-11-09 Jakub Jelinek <jakub@redhat.com> |
4586 | ||
4587 | * c-ubsan.c (ubsan_instrument_shift): Handle split | |
4588 | -fsanitize=shift-base and -fsanitize=shift-exponent. | |
4589 | ||
51dc6603 JM |
4590 | 2016-11-07 Jason Merrill <jason@redhat.com> |
4591 | ||
4592 | * c.opt (Wc++1z-compat): New. | |
4593 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type. | |
4594 | ||
6dc4a604 ML |
4595 | 2016-11-07 Martin Liska <mliska@suse.cz> |
4596 | ||
4597 | * c-warn.c (warn_for_unused_label): Save all labels used | |
4598 | in goto or in &label. | |
4599 | ||
b302001e JM |
4600 | 2016-11-03 Jason Merrill <jason@redhat.com> |
4601 | ||
4602 | * c-cppbuiltin.c (c_cpp_builtins): Correct | |
4603 | __cpp_inheriting_constructors. | |
4604 | ||
31f7f784 JM |
4605 | 2016-11-01 Jason Merrill <jason@redhat.com> |
4606 | ||
2bc78e3c JM |
4607 | * c-cppbuiltin.c (c_cpp_builtins): Update |
4608 | __cpp_inheriting_constructors. | |
4609 | ||
31f7f784 JM |
4610 | * c.opt (-fnew-inheriting-ctors): New. |
4611 | * c-opts.c: Default to on for ABI 11+. | |
4612 | ||
dcb466ec JJ |
4613 | 2016-10-31 Jakub Jelinek <jakub@redhat.com> |
4614 | ||
4615 | PR c++/77948 | |
4616 | * c.opt (fext-numeric-literals): Add Var and Init. | |
4617 | * c-opts.c (c_common_handle_option): Don't clear | |
4618 | cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}. | |
4619 | (c_common_post_options): Clear it here if not set | |
4620 | explicitly. | |
4621 | ||
52e1b91e AH |
4622 | 2016-10-28 Aldy Hernandez <aldyh@redhat.com> |
4623 | ||
4624 | PR debug/77773 | |
4625 | * c-pretty-print.c (simple_type_specifier): Do not dereference `t' | |
4626 | if NULL. | |
4627 | ||
e16f1cc7 JJ |
4628 | 2016-10-25 Jakub Jelinek <jakub@redhat.com> |
4629 | ||
4630 | * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER. | |
4631 | * c-common.c (c_common_reswords): Add __builtin_launder. | |
4632 | ||
f8348061 BE |
4633 | 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4634 | ||
4635 | * c-common.c (c_common_truthvalue_conversion): Warn for | |
4636 | multiplications in boolean context. Fix the quoting of '<<' and '<' | |
4637 | in the shift warning. | |
4638 | ||
eff89e01 BE |
4639 | 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4640 | ||
4641 | * c-common.c (c_common_truthvalue_conversion): Fix the comment. | |
4642 | ||
24bc7bf4 JM |
4643 | 2016-10-20 Jason Merrill <jason@redhat.com> |
4644 | ||
4645 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value. | |
4646 | ||
4c712374 BE |
4647 | 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4648 | ||
4649 | * c-common.c (c_common_truthvalue_conversion): Warn only for signed | |
4650 | integer shift ops in boolean context. | |
4651 | ||
4652 | 2016-10-18 Aldy Hernandez <aldyh@redhat.com> | |
adc577c5 AH |
4653 | |
4654 | * c.opt (Walloca): New. | |
4655 | (Walloca-larger-than=): New. | |
4656 | (Wvla-larger-than=): New. | |
4657 | ||
8fa18c06 MP |
4658 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
4659 | ||
4660 | * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names. | |
4661 | Return immediately when finding a match. | |
4662 | (warn_tautological_cmp): Remove a boolean variable that is no longer | |
4663 | needed. | |
4664 | ||
b12b1915 MP |
4665 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
4666 | ||
4667 | * c-attribs.c: New file. | |
4668 | * c-common.c: Move attributes handling to c-attribs.c. | |
4669 | (get_nonnull_operand): No longer static. | |
4670 | * c-common.h: Move the declarations from c-attribs.c to its own section. | |
4671 | ||
2045acd9 JM |
4672 | 2016-10-14 Jason Merrill <jason@redhat.com> |
4673 | ||
4674 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases | |
4675 | and __cpp_deduction_guides. | |
4676 | ||
14a2c9aa JM |
4677 | 2016-10-13 Jason Merrill <jason@redhat.com> |
4678 | ||
4679 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables. | |
4680 | ||
4d0cdd0c TP |
4681 | 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
4682 | ||
4683 | * c-cppbuiltin.c: Include memmodel.h. | |
4684 | * c-opts.c: Likewise. | |
4685 | * c-pragma.c: Likewise. | |
4686 | * c-warn.c: Likewise. | |
4687 | ||
70f6d5e1 JJ |
4688 | 2016-10-12 Jakub Jelinek <jakub@redhat.com> |
4689 | ||
4690 | * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option. | |
4691 | (Wimplicit-fallthrough=): Enable for these languages by -Wextra. | |
4692 | * c-opts.c (sanitize_cpp_opts): Initialize | |
4693 | cpp_opts->cpp_warn_implicit_fallthrough. | |
4694 | ||
78f61294 MP |
4695 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
4696 | ||
4697 | * c-common.c (warning_candidate_p): Change the return type to bool | |
4698 | and return true/false instead of 1/0. | |
4699 | (vector_mode_valid_p): Likewise. | |
4700 | ||
038b5cc0 MP |
4701 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
4702 | ||
4703 | * c-common.c (fold_for_warn): No longer static. | |
4704 | (bool_promoted_to_int_p): Likewise. | |
4705 | (c_common_get_narrower): Likewise. | |
4706 | (constant_expression_warning): Move to c-warn.c. | |
4707 | (constant_expression_error): Likewise. | |
4708 | (overflow_warning): Likewise. | |
4709 | (warn_logical_operator): Likewise. | |
4710 | (find_array_ref_with_const_idx_r): Likewise. | |
4711 | (warn_tautological_cmp): Likewise. | |
4712 | (expr_has_boolean_operands_p): Likewise. | |
4713 | (warn_logical_not_parentheses): Likewise. | |
4714 | (warn_if_unused_value): Likewise. | |
4715 | (strict_aliasing_warning): Likewise. | |
4716 | (sizeof_pointer_memaccess_warning): Likewise. | |
4717 | (check_main_parameter_types): Likewise. | |
4718 | (conversion_warning): Likewise. | |
4719 | (warnings_for_convert_and_check): Likewise. | |
4720 | (match_case_to_enum_1): Likewise. | |
4721 | (match_case_to_enum): Likewise. | |
4722 | (c_do_switch_warnings): Likewise. | |
4723 | (warn_for_omitted_condop): Likewise. | |
4724 | (readonly_error): Likewise. | |
4725 | (lvalue_error): Likewise. | |
4726 | (invalid_indirection_error): Likewise. | |
4727 | (warn_array_subscript_with_type_char): Likewise. | |
4728 | (warn_about_parentheses): Likewise. | |
4729 | (warn_for_unused_label): Likewise. | |
4730 | (warn_for_div_by_zero): Likewise. | |
4731 | (warn_for_memset): Likewise. | |
4732 | (warn_for_sign_compare): Likewise. | |
4733 | (do_warn_double_promotion): Likewise. | |
4734 | (do_warn_unused_parameter): Likewise. | |
4735 | (record_locally_defined_typedef): Likewise. | |
4736 | (maybe_record_typedef_use): Likewise. | |
4737 | (maybe_warn_unused_local_typedefs): Likewise. | |
4738 | (maybe_warn_bool_compare): Likewise. | |
4739 | (maybe_warn_shift_overflow): Likewise. | |
4740 | (warn_duplicated_cond_add_or_warn): Likewise. | |
4741 | (diagnose_mismatched_attributes): Likewise. | |
4742 | * c-common.h: Move the declarations from c-warn.c to its own section. | |
4743 | * c-warn.c: New file. | |
4744 | ||
627be19f JM |
4745 | 2016-10-08 Jason Merrill <jason@redhat.com> |
4746 | ||
4747 | * c-common.c (c_common_truthvalue_conversion): Don't distribute | |
4748 | into COND_EXPR in C++. | |
4749 | ||
7bad794a JJ |
4750 | 2016-10-08 Jakub Jelinek <jakub@redhat.com> |
4751 | ||
4752 | * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT | |
4753 | token with PREV_FALLTHROUGH, skip all following CPP_PADDING and | |
4754 | CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards. | |
4755 | ||
be845b04 JJ |
4756 | 2016-10-07 Jakub Jelinek <jakub@redhat.com> |
4757 | ||
4758 | Implement LWG2296 helper intrinsic | |
4759 | * c-common.h (enum rid): Add RID_ADDRESSOF. | |
4760 | * c-common.c (c_common_reswords): Add __builtin_addressof. | |
4761 | ||
c09c4992 BE |
4762 | 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4763 | ||
4764 | PR c++/77700 | |
4765 | * c-common.c (c_common_truthvalue_conversion): Warn also for | |
4766 | suspicious enum values in boolean context. | |
4767 | ||
342cfb3e JJ |
4768 | 2016-10-06 Jakub Jelinek <jakub@redhat.com> |
4769 | ||
4770 | Implement P0258R2 - helper for C++17 | |
4771 | std::has_unique_object_representations trait | |
4772 | * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS. | |
4773 | * c-common.c (c_common_reswords): Add | |
4774 | __has_unique_object_representations. | |
4775 | ||
2e69f143 JJ |
4776 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
4777 | ||
4778 | PR sanitizer/66343 | |
4779 | * c-ubsan.c (ubsan_instrument_return): Don't call | |
4780 | initialize_sanitizer_builtins here. | |
4781 | ||
700fff34 BE |
4782 | 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4783 | ||
4784 | * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious | |
4785 | conditional expression in boolean context when only one arm is | |
4786 | non-boolean. | |
4787 | ||
9563bfcd JJ |
4788 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
4789 | ||
04a32443 JJ |
4790 | PR sanitizer/77823 |
4791 | * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0 | |
4792 | is not integral. | |
4793 | ||
9563bfcd JJ |
4794 | * c-common.c (c_common_reswords): Update comment for C++11. |
4795 | ||
f1644724 JM |
4796 | 2016-10-04 Jason Merrill <jason@redhat.com> |
4797 | ||
4798 | * c-common.c (make_tree_vector_from_ctor): New. | |
4799 | * c-common.h: Declare it. | |
4800 | ||
5a79befb JJ |
4801 | 2016-10-04 Jakub Jelinek <jakub@redhat.com> |
4802 | ||
4803 | * c-cppbuiltin.c (c_cpp_builtins): Don't define | |
4804 | __LIBGCC_JCR_SECTION_NAME__. | |
4805 | ||
1633d3b9 BE |
4806 | 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4807 | ||
4808 | * c-common.c (c_common_truthvalue_conversion): Warn for suspicious | |
4809 | left shift in boolean context. | |
4810 | ||
a2c6e7f2 JJ |
4811 | 2016-09-29 Jakub Jelinek <jakub@redhat.com> |
4812 | ||
4813 | Implement P0001R1 - C++17 removal of register storage class specifier | |
4814 | * c.opt (Wregister): New warning. | |
4815 | * c-opts.c (c_common_post_options): Enable -Wregister by | |
4816 | default for C++17. | |
4817 | ||
75304c87 JG |
4818 | 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com> |
4819 | ||
4820 | * c-opts.c (c_common_post_options): Remove special case for | |
4821 | TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard | |
4822 | in C++. | |
4823 | ||
bbfac6da JJ |
4824 | 2016-09-27 Jakub Jelinek <jakub@redhat.com> |
4825 | ||
6e39060a JJ |
4826 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for |
4827 | -std=c++1z. | |
4828 | ||
bbfac6da JJ |
4829 | * c-ada-spec.c (print_ada_declaration): Remove break after return. |
4830 | ||
e73cf9a2 TP |
4831 | 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com> |
4832 | ||
4833 | * c-common.c: Include memmodel.h. | |
4834 | ||
c6147dc4 MP |
4835 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
4836 | ||
4837 | * c-lex.c (c_common_has_attribute): Handle attribute fallthrough. | |
4838 | ||
81fea426 MP |
4839 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
4840 | ||
4841 | PR c/7652 | |
4842 | * c-common.c (c_common_attribute_table): Add fallthrough attribute. | |
4843 | (handle_fallthrough_attribute): New function. | |
4844 | (attribute_fallthrough_p): New function. | |
4845 | * c-common.h (attribute_fallthrough_p): Declare. | |
4846 | ||
9a2300e9 MP |
4847 | 2016-09-24 Marek Polacek <polacek@redhat.com> |
4848 | ||
4849 | PR c/77490 | |
4850 | * c.opt (Wbool-operation): New. | |
4851 | ||
a09e9e35 BE |
4852 | 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4853 | ||
4854 | * c-common.c (c_common_truthvalue_conversion): Inhibit | |
4855 | Wint-in-bool-context warning with from_macro_definition_at. | |
4856 | Mention the expression will always evaluate to true. | |
4857 | ||
d43b4ccc MS |
4858 | 2016-09-21 Martin Sebor <msebor@redhat.com> |
4859 | ||
4860 | PR bootstrap/77676 | |
4861 | * c.opt (fprintf-return-value): Temporarily initialize to zero | |
4862 | to unblock bootstrap failures. | |
4863 | ||
2e1c20b1 JJ |
4864 | 2016-09-21 Jakub Jelinek <jakub@redhat.com> |
4865 | ||
4866 | PR c++/77651 | |
4867 | * c.opt (Waligned-new=): Add RejectNegative. | |
4868 | (faligned-new=): Likewise. Spelling fix - change | |
4869 | aligned_new_threshhold to aligned_new_threshold. | |
4870 | * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold | |
4871 | to aligned_new_threshold. | |
4872 | ||
88d0c3f0 MS |
4873 | 2016-09-20 Martin Sebor <msebor@redhat.com> |
4874 | ||
4875 | PR middle-end/49905 | |
4876 | * c.opt: Add -Wformat-length and -fprintf-return-value. | |
4877 | ||
144a96e4 BE |
4878 | 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4879 | ||
4880 | PR c++/77434 | |
4881 | * c.opt (Wint-in-bool-context): New warning. | |
4882 | * c-common.c (c_common_truthvalue_conversion): Warn on integer | |
4883 | constants in boolean context. | |
4884 | ||
63012d9a JM |
4885 | 2016-09-19 Joseph Myers <joseph@codesourcery.com> |
4886 | ||
4887 | * c-common.c (max_align_t_align): Also consider alignment of | |
4888 | float128_type_node. | |
4889 | ||
931388ce JM |
4890 | 2016-09-15 Jason Merrill <jason@redhat.com> |
4891 | ||
4892 | * c-common.c (check_cxx_fundamental_alignment_constraints): Check | |
4893 | DECL_EXTERNAL. | |
4894 | ||
38711381 JM |
4895 | 2016-09-14 Jason Merrill <jason@redhat.com> |
4896 | ||
4897 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
4898 | limit FIELD_DECL, either. | |
4899 | ||
e51fbec3 MP |
4900 | 2016-09-14 Marek Polacek <polacek@redhat.com> |
4901 | ||
4902 | * c-common.c (c_common_truthvalue_conversion): Use false instead of 0. | |
4903 | * c-common.h (build_unary_op): Change nonconvert parameter type to bool. | |
4904 | * c-omp.c (c_finish_omp_atomic): Use false instead of 0. | |
4905 | ||
254830ba DM |
4906 | 2016-09-13 David Malcolm <dmalcolm@redhat.com> |
4907 | ||
4908 | * c-common.c (warn_logical_not_parentheses): Replace | |
4909 | rich_location::add_fixit_insert calls with add_fixit_insert_before | |
4910 | and add_fixit_insert_after, eliminating the "next_loc" calculation. | |
4911 | ||
42763690 JM |
4912 | 2016-09-13 Jason Merrill <jason@redhat.com> |
4913 | Tom de Vries <tom@codesourcery.com> | |
4914 | ||
4915 | PR c++/77427 | |
4916 | * c-common.c (set_underlying_type): Don't treat array as builtin type. | |
4917 | ||
9453eee9 JM |
4918 | 2016-09-13 Jason Merrill <jason@redhat.com> |
4919 | ||
4920 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
4921 | limit types at all. | |
4922 | ||
e96809e3 JM |
4923 | 2016-09-12 Jason Merrill <jason@redhat.com> |
4924 | ||
4925 | * c-common.c (check_cxx_fundamental_alignment_constraints): Fix | |
4926 | bit/byte confusion, allow large alignment for types. | |
4927 | ||
54dcdb88 BE |
4928 | 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4929 | ||
4930 | PR c++/77496 | |
4931 | * c-common.c (warn_for_omitted_condop): Also warn for boolean data. | |
4932 | ||
d1463eb9 DM |
4933 | 2016-09-12 David Malcolm <dmalcolm@redhat.com> |
4934 | ||
4935 | PR c/72858 | |
4936 | * c-format.c (argument_parser::check_argument_type): Add params | |
4937 | "type_start" and "conversion_char". Use the former to generate | |
4938 | offset_to_type_start and pass it and conversion_char to | |
4939 | check_format_types. | |
4940 | (check_format_info_main): Capture the start of the type | |
4941 | information as "type_start", and pass it an format_char | |
4942 | to arg_parser.check_argument_type. | |
4943 | (check_format_types): Provide an example in the leading comment. | |
4944 | Add params "offset_to_type_start" and "conversion_char"; pass | |
4945 | them to format_type_warning calls. | |
4946 | (test_get_modifier_for_format_len): Likewise. | |
4947 | (matching_type_p): New function. | |
4948 | (get_format_for_type): Add param "conversion_char" and move | |
4949 | implementation into... | |
4950 | (get_format_for_type_1): ...new function, called twice. | |
4951 | Use new function matching_type_p rather than checking for | |
4952 | TYPE_CANONICAL equality. | |
4953 | (get_corrected_substring): New function. | |
4954 | (format_type_warning): Provide an example in the leading comment. | |
4955 | Add params "offset_to_type_start" and "conversion_char". Replace | |
4956 | call to get_format_for_type with call to get_corrected_substring | |
4957 | and move rejection of hints for widths/precisions there. | |
4958 | (assert_format_for_type_streq): Add param "conversion_char". | |
4959 | (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR. | |
4960 | (test_get_format_for_type_printf): Add conversion chars to the | |
4961 | tests, adding coverage for various combinations of integer | |
4962 | vs double conversions, and for preserving octal and hexadecimal | |
4963 | conversions. | |
4964 | (test_get_format_for_type_scanf): Add conversion chars to the | |
4965 | tests. | |
4966 | ||
5b28efbb TV |
4967 | 2016-09-10 Tom de Vries <tom@codesourcery.com> |
4968 | ||
4969 | PR C/71602 | |
4970 | * c-common.c (build_va_arg): Handle more strict | |
4971 | targetm.canonical_va_list_type. Replace first argument type error with | |
4972 | assert. | |
4973 | ||
3f0177e7 MS |
4974 | 2016-09-09 Martin Sebor <msebor@redhat.com> |
4975 | ||
4976 | PR c/77520 | |
4977 | PR c/77521 | |
4978 | * c-format.c (argument_parser::find_format_char_info): Use %qc | |
4979 | format directive unconditionally. | |
4980 | ||
af63ba4b JM |
4981 | 2016-09-09 Jason Merrill <jason@redhat.com> |
4982 | ||
4983 | Implement C++17 new of over-aligned types. | |
4984 | * c.opt: Add -faligned-new and -Waligned-new. | |
4985 | * c-common.c (max_align_t_align): Split out from... | |
4986 | (cxx_fundamental_alignment_p): ...here. | |
4987 | * c-common.h: Declare it. | |
4988 | * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new. | |
4989 | ||
c65248cb JM |
4990 | 2016-09-09 Joseph Myers <joseph@codesourcery.com> |
4991 | ||
4992 | * c-cppbuiltin.c (builtin_define_type_width): New function. | |
4993 | (builtin_define_stdint_macros, c_cpp_builtins): Define type width | |
4994 | macros. | |
4995 | ||
e5106e27 DM |
4996 | 2016-09-07 David Malcolm <dmalcolm@redhat.com> |
4997 | ||
4998 | * c-common.c (get_cpp_ttype_from_string_type): Handle being passed | |
4999 | a POINTER_TYPE. | |
5000 | (substring_loc::get_location): Move to substring-locations.c, | |
5001 | keeping implementation as... | |
5002 | (c_get_substring_location): New function, from the above, reworked | |
5003 | to use accessors rather than member lookup. | |
5004 | * c-common.h (class substring_loc): Move to substring-locations.h, | |
5005 | replacing with a forward decl. | |
5006 | (c_get_substring_location): New decl. | |
5007 | * c-format.c: Include "substring-locations.h". | |
5008 | (format_warning_va): Move to substring-locations.c. | |
5009 | (format_warning_at_substring): Likewise. | |
5010 | ||
ab20d992 | 5011 | 2016-09-06 Martin Sebor <msebor@redhat.com> |
a42e7952 MS |
5012 | |
5013 | PR c/77336 | |
5014 | * c-format.c (check_function_format): Avoid issuing warnings for | |
5015 | functions unless they call format functions with non-constant | |
5016 | format strings. | |
5017 | ||
b772a565 RB |
5018 | 2016-09-06 Richard Biener <rguenther@suse.de> |
5019 | ||
5020 | PR c/77450 | |
5021 | * c-common.c (c_common_mark_addressable_vec): Handle | |
5022 | COMPOUND_LITERAL_EXPR. | |
5023 | ||
25ff5dd3 MP |
5024 | 2016-09-05 Marek Polacek <polacek@redhat.com> |
5025 | ||
5026 | PR c/77423 | |
5027 | * c-common.c (bool_promoted_to_int_p): New function. | |
5028 | (expr_has_boolean_operands_p): New function. | |
5029 | (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p. | |
5030 | (maybe_warn_bool_compare): Use bool_promoted_to_int_p. | |
5031 | ||
21234eb5 TV |
5032 | 2016-09-04 Tom de Vries <tom@codesourcery.com> |
5033 | ||
5034 | revert: | |
5035 | 2016-08-29 Tom de Vries <tom@codesourcery.com> | |
5036 | ||
5037 | * c-common.c (build_va_arg): Replace first argument type error | |
5038 | with assert. | |
5039 | ||
9dc5773f JJ |
5040 | 2016-09-02 Jakub Jelinek <jakub@redhat.com> |
5041 | ||
5042 | PR c/65467 | |
5043 | * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions. | |
5044 | (c_finish_omp_for): Reject _Atomic qualified iterators. | |
5045 | ||
5046 | 2016-09-01 Martin Sebor <msebor@redhat.com> | |
3d7b83b6 MS |
5047 | |
5048 | * c-ada-spec.c (dump_ada_function_declaration): Increase buffer | |
5049 | size to guarantee it fits the output of the formatted function | |
5050 | regardless of its arguments. | |
5051 | ||
295844f6 MP |
5052 | 2016-09-01 Marek Polacek <polacek@redhat.com> |
5053 | ||
5054 | PR c/7652 | |
5055 | * c-common.c (resolve_overloaded_builtin): Fix formatting. Add | |
5056 | FALLTHRU comments. | |
5057 | ||
3d06b6f2 MP |
5058 | 2016-08-29 Marek Polacek <polacek@redhat.com> |
5059 | ||
5060 | PR c/77292 | |
5061 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
5062 | a comparison or a logical operator. | |
5063 | ||
34cedad5 TV |
5064 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
5065 | ||
5066 | * c-common.c (build_va_arg): Fix type comparison assert. | |
5067 | ||
f162d717 TV |
5068 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
5069 | ||
5070 | * c-common.c (build_va_arg): Replace first argument type error | |
5071 | with assert. | |
5072 | ||
ba9bbd6f TV |
5073 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
5074 | ||
5075 | PR c/77398 | |
5076 | * c-common.c (build_va_arg): Add first argument error. Build va_arg | |
5077 | with error_mark_node as va_list instead of with illegal va_list. | |
5078 | ||
ebef225f MP |
5079 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
5080 | David Malcolm <dmalcolm@redhat.com> | |
5081 | ||
5082 | * c-common.c (warn_logical_not_parentheses): Print fixit hints. | |
5083 | * c-common.h (warn_logical_not_parentheses): Update declaration. | |
5084 | ||
b00e6e75 MP |
5085 | 2016-08-22 Marek Polacek <polacek@redhat.com> |
5086 | ||
5087 | PR c++/77321 | |
5088 | * c-common.c (warn_for_memset): Check type for null. | |
5089 | ||
6dc198e3 JM |
5090 | 2016-08-22 Joseph Myers <joseph@codesourcery.com> |
5091 | ||
14ec014e | 5092 | * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and |
6dc198e3 JM |
5093 | _FloatNx types for suffixes for built-in functions. |
5094 | ||
c65699ef JM |
5095 | 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
5096 | ||
5097 | PR c/32187 | |
5098 | * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32) | |
5099 | (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X) | |
5100 | (RID_FLOAT128X): New enum rid values. | |
5101 | (CASE_RID_FLOATN_NX): New macro. | |
5102 | * c-common.c (c_common_reswords): Add _FloatN and _FloatNx | |
5103 | keywords. | |
5104 | (c_common_type_for_mode): Check for _FloatN and _FloatNx and | |
5105 | corresponding complex types. | |
5106 | (c_common_nodes_and_builtins): For non-C++, register _FloatN and | |
5107 | _FloatNx and corresponding complex types. | |
5108 | (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX. | |
5109 | * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN | |
5110 | and _FloatNx types for the widest type for determining | |
5111 | DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as | |
5112 | __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL. | |
5113 | (c_cpp_builtins): Call builtin_define_float_constants for _FloatN | |
5114 | and _FloatNx types. | |
5115 | * c-lex.c (interpret_float): Handle _FloatN and _FloatNx | |
5116 | constants. | |
5117 | * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and | |
5118 | _FloatNx types. | |
5119 | ||
cc015f3a DM |
5120 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
5121 | ||
5122 | * c-opts.c (c_diagnostic_finalizer): Update for change to | |
5123 | diagnostic_show_locus. | |
5124 | ||
cb18fd07 DM |
5125 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
5126 | ||
5127 | * c-common.c: Include "spellcheck.h". | |
5128 | (cb_get_suggestion): New function. | |
5129 | * c-common.h (cb_get_suggestion): New decl. | |
5130 | * c-lex.c (init_c_lex): Initialize cb->get_suggestion to | |
5131 | cb_get_suggestion. | |
5132 | ||
a76989dc MP |
5133 | 2016-08-18 Marek Polacek <polacek@redhat.com> |
5134 | ||
5135 | PR c/71514 | |
5136 | * c-common.c (get_atomic_generic_size): Disallow pointer-to-function | |
5137 | and pointer-to-VLA. | |
5138 | ||
65e736c0 DM |
5139 | 2016-08-16 David Malcolm <dmalcolm@redhat.com> |
5140 | ||
5141 | PR c/72857 | |
5142 | * c-common.c (substring_loc::get_range): Rename to... | |
5143 | (substring_loc::get_location): ...this, converting param from a | |
5144 | source_range * to a location_t *. Call | |
5145 | get_source_location_for_substring rather than | |
5146 | get_source_range_for_substring, and pass in m_caret_idx. | |
5147 | * c-common.h (substring_loc::substring_loc): Add param "caret_idx". | |
5148 | (substring_loc::get_range): Replace with... | |
5149 | (substring_loc::get_location): ...this. | |
5150 | (substring_loc::set_caret_index): New method. | |
5151 | (substring_loc): Add field m_caret_idx. | |
5152 | * c-format.c (format_warning_va): Update for above changes. | |
5153 | Rename local "substring_loc" to "fmt_substring_loc" to avoid | |
5154 | clashing with type name. | |
5155 | (format_warning_at_char): Add caret_idx param to substring_loc ctor. | |
5156 | (check_argument_type): Likewise. | |
5157 | (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc" | |
5158 | Use a copy when emitting warnings, setting the caret index from TYPE. | |
5159 | ||
7e1dde14 | 5160 | 2016-08-16 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 5161 | Arnaud Charlet <charlet@adacore.com> |
7e1dde14 EB |
5162 | |
5163 | * c-ada-spec.c (dump_number): New function. | |
5164 | (handle_escape_character): Likewise. | |
5165 | (print_ada_macros): Add handling of constant integers and strings. | |
5166 | ||
191816a3 MP |
5167 | 2016-08-12 Marek Polacek <polacek@redhat.com> |
5168 | ||
5169 | PR c/7652 | |
5170 | * c-common.c (scalar_to_vector): Adjust fall through comment. | |
5171 | * c-opts.c (c_common_handle_option): Likewise. | |
5172 | * c-pragma.c (handle_pragma_pack): Add FALLTHRU. | |
5173 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust | |
5174 | fall through comment. | |
5175 | * cilk.c (extract_free_variables): Add FALLTHRU. | |
5176 | ||
452df4a4 JM |
5177 | 2016-08-10 Jason Merrill <jason@redhat.com> |
5178 | ||
5179 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr. | |
5180 | ||
f3365c12 JM |
5181 | 2016-08-09 Jason Merrill <jason@redhat.com> |
5182 | ||
5183 | * c-common.c (c_common_attribute_table): vector_size affects type | |
5184 | identity. | |
5185 | ||
f0bc3323 MP |
5186 | 2016-08-09 Marek Polacek <polacek@redhat.com> |
5187 | ||
5188 | PR c/7652 | |
5189 | * c-ada-spec.c (dump_generic_ada_node): Add return. | |
5190 | ||
98e5a19a JM |
5191 | 2016-08-09 Jason Merrill <jason@redhat.com> |
5192 | ||
5193 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for | |
5194 | C++17 constexpr lambdas. | |
5195 | ||
895aa8e1 DM |
5196 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
5197 | ||
5198 | PR c/64955 | |
5199 | * c-common.h (selftest::c_format_c_tests): New declaration. | |
5200 | (selftest::run_c_tests): New declaration. | |
5201 | * c-format.c: Include "selftest.h. | |
5202 | (format_warning_va): Add param "corrected_substring" and use | |
5203 | it to add a replacement fix-it hint. | |
5204 | (format_warning_at_substring): Likewise. | |
5205 | (format_warning_at_char): Update for new param of | |
5206 | format_warning_va. | |
5207 | (argument_parser::check_argument_type): Pass "fki" to | |
5208 | check_format_types. | |
5209 | (check_format_types): Add param "fki" and pass it to | |
5210 | format_type_warning. | |
5211 | (deref_n_times): New function. | |
5212 | (get_modifier_for_format_len): New function. | |
5213 | (selftest::test_get_modifier_for_format_len): New function. | |
5214 | (get_format_for_type): New function. | |
5215 | (format_type_warning): Add param "fki" and use it to attempt | |
5216 | to provide hints for argument types when calling | |
5217 | format_warning_at_substring. | |
5218 | (selftest::get_info): New function. | |
5219 | (selftest::assert_format_for_type_streq): New function. | |
5220 | (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro. | |
5221 | (selftest::test_get_format_for_type_printf): New function. | |
5222 | (selftest::test_get_format_for_type_scanf): New function. | |
5223 | (selftest::c_format_c_tests): New function. | |
5224 | ||
e52ed3fe DM |
5225 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
5226 | ||
5227 | PR c/52952 | |
5228 | * c-format.c: Include "diagnostic.h". | |
5229 | (location_column_from_byte_offset): Delete. | |
5230 | (location_from_offset): Delete. | |
5231 | (format_warning_va): New function. | |
5232 | (format_warning_at_substring): New function. | |
5233 | (format_warning_at_char): New function. | |
5234 | (check_format_arg): Capture location of format_tree and pass to | |
5235 | check_format_info_main. | |
5236 | (argument_parser): Add fields "start_of_this_format" and | |
5237 | "format_string_cst". | |
5238 | (flag_chars_t::validate): Add param "format_string_cst". Convert | |
5239 | warning_at call using location_from_offset to call to | |
5240 | format_warning_at_char. | |
5241 | (argument_parser::argument_parser): Add param "format_string_cst_" | |
5242 | and use use it to initialize field "format_string_cst". | |
5243 | Initialize new field "start_of_this_format". | |
5244 | (argument_parser::read_format_flags): Convert warning_at call | |
5245 | using location_from_offset to a call to format_warning_at_char. | |
5246 | (argument_parser::read_any_format_left_precision): Likewise. | |
5247 | (argument_parser::read_any_format_precision): Likewise. | |
5248 | (argument_parser::read_any_other_modifier): Likewise. | |
5249 | (argument_parser::find_format_char_info): Likewise, in three places. | |
5250 | (argument_parser::parse_any_scan_set): Likewise, in one place. | |
5251 | (argument_parser::handle_conversions): Likewise, in two places. | |
5252 | (argument_parser::check_argument_type): Add param "fmt_param_loc" | |
5253 | and use it to make a substring_loc. Pass the latter to | |
5254 | check_format_types. | |
5255 | (check_format_info_main): Add params "fmt_param_loc" and | |
5256 | "format_string_cst". Convert warning_at calls using | |
5257 | location_from_offset to calls to format_warning_at_char. Pass the | |
5258 | new params to the arg_parser ctor. Pass "format_string_cst" to | |
5259 | flag_chars.validate. Pass "fmt_param_loc" to | |
5260 | arg_parser.check_argument_type. | |
5261 | (check_format_types): Convert first param from a location_t | |
5262 | to a const substring_loc & and rename to "fmt_loc". Attempt | |
5263 | to extract the range of the relevant parameter and pass it | |
5264 | to format_type_warning. | |
5265 | (format_type_warning): Convert first param from a location_t | |
5266 | to a const substring_loc & and rename to "fmt_loc". Add | |
5267 | params "param_range" and "type". Replace calls to warning_at | |
5268 | with calls to format_warning_at_substring. | |
5269 | ||
1c4d457e DM |
5270 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
5271 | ||
5272 | * c-format.c (class flag_chars_t): New class. | |
5273 | (struct length_modifier): New struct. | |
5274 | (class argument_parser): New class. | |
5275 | (flag_chars_t::flag_chars_t): New ctor. | |
5276 | (flag_chars_t::has_char_p): New method. | |
5277 | (flag_chars_t::add_char): New method. | |
5278 | (flag_chars_t::validate): New method. | |
5279 | (flag_chars_t::get_alloc_flag): New method. | |
5280 | (flag_chars_t::assignment_suppression_p): New method. | |
5281 | (argument_parser::argument_parser): New ctor. | |
5282 | (argument_parser::read_any_dollar): New method. | |
5283 | (argument_parser::read_format_flags): New method. | |
5284 | (argument_parser::read_any_format_width): New method. | |
5285 | (argument_parser::read_any_format_left_precision): New method. | |
5286 | (argument_parser::read_any_format_precision): New method. | |
5287 | (argument_parser::handle_alloc_chars): New method. | |
5288 | (argument_parser::read_any_length_modifier): New method. | |
5289 | (argument_parser::read_any_other_modifier): New method. | |
5290 | (argument_parser::find_format_char_info): New method. | |
5291 | (argument_parser::validate_flag_pairs): New method. | |
5292 | (argument_parser::give_y2k_warnings): New method. | |
5293 | (argument_parser::parse_any_scan_set): New method. | |
5294 | (argument_parser::handle_conversions): New method. | |
5295 | (argument_parser::check_argument_type): New method. | |
5296 | (check_format_info_main): Introduce classes argument_parser | |
5297 | and flag_chars_t, moving the code within the loop into methods | |
5298 | of these classes. Make various locals "const". | |
5299 | ||
88fa5555 DM |
5300 | 2016-08-05 David Malcolm <dmalcolm@redhat.com> |
5301 | ||
5302 | * c-common.c: Include "substring-locations.h". | |
5303 | (get_cpp_ttype_from_string_type): New function. | |
5304 | (g_string_concat_db): New global. | |
5305 | (substring_loc::get_range): New method. | |
5306 | * c-common.h (g_string_concat_db): New declaration. | |
5307 | (class substring_loc): New class. | |
5308 | * c-lex.c (lex_string): When concatenating strings, capture the | |
5309 | locations of all tokens using a new obstack, and record the | |
5310 | concatenation locations within g_string_concat_db. | |
5311 | * c-opts.c (c_common_init_options): Construct g_string_concat_db | |
5312 | on the ggc-heap. | |
5313 | ||
78169471 MP |
5314 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
5315 | ||
638fc14f MP |
5316 | PR c/71926 |
5317 | * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the | |
5318 | parentheses warning. | |
5319 | ||
78169471 MP |
5320 | PR c/71574 |
5321 | * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL. | |
5322 | ||
1225d6b1 ML |
5323 | 2016-07-28 Martin Liska <mliska@suse.cz> |
5324 | ||
5325 | PR gcov-profile/68025 | |
5326 | * c-common.c (handle_no_profile_instrument_function_attribute): | |
5327 | ||
ec1e2a40 BE |
5328 | 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5329 | ||
5330 | * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of | |
5331 | BITS_PER_UNIT_LOG. | |
5332 | ||
5ec2cd9f JM |
5333 | 2016-07-25 Jason Merrill <jason@redhat.com> |
5334 | ||
5335 | PR c++/65970 | |
5336 | * c.opt (fconstexpr-loop-limit): New. | |
5337 | ||
9dc5773f | 5338 | 2016-07-22 Martin Sebor <msebor@redhat.com> |
2e6b45af MS |
5339 | |
5340 | PR c++/71675 | |
5341 | * c-common.c (resolve_overloaded_builtin): Avoid converting | |
5342 | __atomic_compare_exchange_n return type to that of what its | |
5343 | first argument points to. | |
5344 | ||
e3fe09c1 UB |
5345 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
5346 | ||
5347 | * c-common.c: Use HOST_WIDE_INT_M1U instead of | |
5348 | ~(unsigned HOST_WIDE_INT) 0. | |
5349 | ||
bc91c436 ML |
5350 | 2016-07-22 Martin Liska <mliska@suse.cz> |
5351 | ||
5352 | PR gcov-profile/69028 | |
5353 | PR gcov-profile/62047 | |
5354 | * cilk.c (create_cilk_helper_decl): Set location of a new decl | |
5355 | to the current_function_decl. | |
5356 | ||
451dcc66 JM |
5357 | 2016-07-21 Jason Merrill <jason@redhat.com> |
5358 | ||
5359 | PR c++/65168 | |
5360 | * c-common.c (c_common_truthvalue_conversion): Check | |
5361 | c_inhibit_evaluation_warnings for warning about address of | |
5362 | reference. | |
5363 | ||
de6a69ee DM |
5364 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
5365 | ||
5366 | * c-common.h (lookup_name_fuzzy): Convert return type from tree to | |
5367 | const char *. | |
5368 | ||
d022c55a JM |
5369 | 2016-07-15 Jason Merrill <jason@redhat.com> |
5370 | ||
5371 | * c-opts.c (c_common_post_options): Update -fabi-version default to 11. | |
5372 | ||
ddbbcb19 JJ |
5373 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
5374 | ||
5375 | PR c/71858 | |
5376 | * c-common.h (enum lookup_name_fuzzy_kind): Add | |
5377 | FUZZY_LOOKUP_FUNCTION_NAME. | |
5378 | ||
d0cf395a JM |
5379 | 2016-07-08 Jason Merrill <jason@redhat.com> |
5380 | ||
5381 | P0145: Refining Expression Order for C++. | |
5382 | * c.opts (-fargs-in-order): Rename to -fstrong-eval-order. | |
5383 | * c-opts.c: Adjust. | |
5384 | ||
98d44e93 MT |
5385 | 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de> |
5386 | ||
5387 | PR c++/71214 | |
5388 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references. | |
5389 | ||
f9d8d994 TS |
5390 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
5391 | ||
5392 | * c-pragma.h (enum pragma_kind): Rename | |
5393 | PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all | |
5394 | users. | |
5395 | ||
4aa83879 RB |
5396 | 2016-06-29 Richard Biener <rguenther@suse.de> |
5397 | ||
5398 | PR middle-end/71002 | |
5399 | * c-common.c (c_common_get_alias_set): Remove union type punning case. | |
5400 | ||
a25bd9e6 JM |
5401 | 2016-06-24 Jason Merrill <jason@redhat.com> |
5402 | ||
5403 | P0145R2: Refining Expression Order for C++. | |
5404 | * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of | |
5405 | MODIFY_EXPR. | |
5406 | ||
a86451b9 JJ |
5407 | 2016-06-24 Jakub Jelinek <jakub@redhat.com> |
5408 | ||
5409 | * c-common.c (check_builtin_function_arguments): Require last | |
5410 | argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type. | |
5411 | Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW | |
5412 | if the last argument is pointer to enumerated or boolean type. | |
5413 | ||
1a4f11c8 DM |
5414 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
5415 | ||
5416 | PR c/70339 | |
5417 | * c-common.h (enum lookup_name_fuzzy_kind): New enum. | |
5418 | (lookup_name_fuzzy): New prototype. | |
5419 | ||
fe55692c JDA |
5420 | 2016-06-21 John David Anglin <danglin@gcc.gnu.org> |
5421 | ||
5422 | * c-common.c (get_source_date_epoch): Use int64_t instead of long long. | |
5423 | ||
4eb24e01 JM |
5424 | 2016-06-14 Jason Merrill <jason@redhat.com> |
5425 | ||
5426 | P0145R2: Refining Expression Order for C++. | |
5427 | * c.opt (fargs-in-order): New. | |
5428 | * c-opts.c (c_common_post_options): Adjust flag_args_in_order. | |
5429 | ||
ef7cf206 JJ |
5430 | 2016-06-13 Jakub Jelinek <jakub@redhat.com> |
5431 | ||
0dda258b JJ |
5432 | PR sanitizer/71498 |
5433 | * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on | |
5434 | all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY. | |
5435 | ||
ef7cf206 JJ |
5436 | PR preprocessor/71183 |
5437 | * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch | |
5438 | to cb_get_source_date_epoch. | |
5439 | ||
50b15873 JJ |
5440 | 2016-06-10 Jakub Jelinek <jakub@redhat.com> |
5441 | ||
5442 | PR c/68657 | |
5443 | * c.opt (Wpsabi): Add Warning flag. | |
5444 | ||
4d926e34 MS |
5445 | 2016-06-10 Martin Sebor <msebor@redhat.com> |
5446 | ||
5447 | PR c/71392 | |
14ec014e | 5448 | * c-common.c (handle_nonnull_attribute): Accept |
4d926e34 MS |
5449 | the nonnull attribute in type-generic builtins. |
5450 | ||
e01b4e16 MS |
5451 | 2016-06-09 Martin Sebor <msebor@redhat.com> |
5452 | ||
5453 | PR c/70883 | |
5454 | * c-common.c (builtin_function_validate_nargs): Make text of error | |
5455 | message consistent with others like it. | |
5456 | ||
44a845ca MS |
5457 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
5458 | Jakub Jelinek <jakub@redhat.com> | |
5459 | ||
5460 | PR c++/70507 | |
5461 | PR c/68120 | |
5462 | * c-common.c (check_builtin_function_arguments): Handle | |
5463 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
5464 | ||
a80a7051 RB |
5465 | 2016-06-08 Richard Biener <rguenther@suse.de> |
5466 | ||
5467 | * c-common.c (parse_optimize_options): Improve diagnostic messages. | |
5468 | ||
bfd67b47 RB |
5469 | 2016-06-07 Richard Biener <rguenther@suse.de> |
5470 | ||
5471 | PR c/61564 | |
5472 | * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION | |
5473 | options and warn about others. | |
5474 | ||
15c98b2e ES |
5475 | 2016-06-01 Eduard Sanou <dhole@openmailbox.org> |
5476 | ||
5477 | * c-common.c (get_source_date_epoch): Rename to | |
5478 | cb_get_source_date_epoch. | |
5479 | * c-common.c (cb_get_source_date_epoch): Use a single generic erorr | |
5480 | message when the parsing fails. Use error_at instead of fatal_error. | |
5481 | * c-common.h (get_source_date_epoch): Rename to | |
5482 | cb_get_source_date_epoch. | |
5483 | * c-common.h (cb_get_source_date_epoch): Prototype. | |
5484 | * c-common.h (MAX_SOURCE_DATE_EPOCH): Define. | |
5485 | * c-common.h (c_omp_region_type): Remove trailing comma. | |
5486 | * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback. | |
5487 | * c-lex.c (c_lex_with_flags): Remove initialization of | |
5488 | pfile->source_date_epoch. | |
5489 | ||
00631022 JJ |
5490 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
5491 | ||
5492 | PR c++/71349 | |
5493 | * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to | |
5494 | C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to | |
5495 | C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct, | |
5496 | instead of C_OMP_CLAUSE_SPLIT_FOR. | |
5497 | ||
f17a223d RB |
5498 | 2016-05-24 Richard Biener <rguenther@suse.de> |
5499 | ||
5500 | PR middle-end/70434 | |
5501 | PR c/69504 | |
5502 | * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ... | |
5503 | (convert_vector_to_array_for_subscript): ... this. | |
5504 | * c-common.c (convert_vector_to_pointer_for_subscript): Use a | |
5505 | VIEW_CONVERT_EXPR to an array type. Rename to ... | |
5506 | (convert_vector_to_array_for_subscript): ... this. | |
5507 | ||
4f2e1536 MP |
5508 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
5509 | ||
5510 | PR c/70756 | |
5511 | * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of | |
5512 | size_in_bytes and pass LOC to it. | |
5513 | ||
d6e83a8d MM |
5514 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
5515 | ||
5516 | PR c/43651 | |
5517 | * c.opt (Wduplicate-decl-specifier): New option. | |
5518 | ||
5c3a10fb MP |
5519 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
5520 | ||
5521 | PR c++/71024 | |
5522 | * c-common.c (diagnose_mismatched_attributes): New function. | |
5523 | * c-common.h (diagnose_mismatched_attributes): Declare. | |
5524 | ||
deef7113 MP |
5525 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
5526 | ||
5527 | * c.opt (Wdangling-else): New option. | |
5528 | ||
79ce98bc MP |
5529 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
5530 | ||
5531 | PR c/70859 | |
5532 | * c-common.c (builtin_function_validate_nargs): Add location | |
5533 | parameter. Use it. | |
5534 | (check_builtin_function_arguments): Add location and arguments | |
5535 | parameters. Use them. | |
5536 | * c-common.h (check_builtin_function_arguments): Update declaration. | |
5537 | ||
381cdae4 RB |
5538 | 2016-05-03 Richard Biener <rguenther@suse.de> |
5539 | ||
5540 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not | |
5541 | allow call args to gimplify to SSA names. | |
5542 | ||
1d793c34 MP |
5543 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
5544 | ||
5545 | * c-common.h (enum c_omp_region_type): Remove stray comma. | |
5546 | ||
77886428 CP |
5547 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
5548 | ||
5549 | * c-common.h (enum c_omp_region_type): Define. | |
5550 | ||
697e0b28 RS |
5551 | 2016-05-02 Richard Sandiford <richard.sandiford@arm.com> |
5552 | ||
5553 | * c-common.c (shorten_compare): Use wi::to_wide. | |
5554 | ||
e7ff0319 CP |
5555 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
5556 | ||
5557 | PR middle-end/70626 | |
5558 | * c-common.h (c_oacc_split_loop_clauses): Add boolean argument. | |
5559 | * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate | |
5560 | reduction clauses in acc parallel loops. | |
5561 | ||
2fff3db8 MP |
5562 | 2016-04-29 Marek Polacek <polacek@redhat.com> |
5563 | ||
5564 | PR c/70852 | |
5565 | * c-common.c (warn_for_memset): Check domain before accessing it. | |
5566 | ||
509063eb DV |
5567 | 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com> |
5568 | ||
5569 | PR/69089 | |
5570 | * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the | |
5571 | "aligned" attribute. | |
5572 | ||
b632761d JM |
5573 | 2016-04-28 Jason Merrill <jason@redhat.com> |
5574 | ||
5575 | * c-lex.c (c_common_has_attribute): Handle nodiscard. | |
5576 | ||
174f6622 ES |
5577 | 2016-04-28 Eduard Sanou <dhole@openmailbox.org> |
5578 | Matthias Klose <doko@debian.org> | |
5579 | ||
5580 | * c-common.c (get_source_date_epoch): New function, gets the environment | |
7365279f | 5581 | variable SOURCE_DATE_EPOCH and parses it as long long with error |
174f6622 ES |
5582 | handling. |
5583 | * c-common.h (get_source_date_epoch): Prototype. | |
5584 | * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch. | |
5585 | ||
6bc2bb18 RB |
5586 | 2015-04-27 Ryan Burn <contact@rnburn.com> |
5587 | ||
5588 | PR c++/69024 | |
5589 | PR c++/68997 | |
5590 | * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage. | |
5591 | (cilk_recognize_spawn): Renamed from recognize_spawn and change to | |
5592 | external linkage. | |
5593 | (cilk_detect_and_unwrap): Corresponding changes. | |
5594 | (extract_free_variables): Don't extract free variables from | |
5595 | AGGR_INIT_EXPR slot. | |
5596 | * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype. | |
5597 | (cilk_recognize_spawn): Likewise. | |
5598 | ||
c1e1f433 BS |
5599 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
5600 | ||
5601 | * c.opt (Wmemset-elt-size): New option. | |
5602 | * c-common.c (warn_for_memset): New function. | |
5603 | * c-common.h (warn_for_memset): Declare. | |
5604 | ||
d067e05f JM |
5605 | 2016-04-25 Jason Merrill <jason@redhat.com> |
5606 | ||
5607 | * c-common.c (handle_unused_attribute): Accept CONST_DECL. | |
5608 | No longer static. | |
5609 | * c-common.h: Declare it. | |
5610 | * c-lex.c (c_common_has_attribute): Add maybe_unused. | |
5611 | ||
9aa36ae5 JM |
5612 | 2016-04-22 Jason Merrill <jason@redhat.com> |
5613 | ||
5614 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for. | |
5615 | ||
477d4906 IV |
5616 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
5617 | ||
5618 | PR c++/69363 | |
5619 | * c-cilkplus.c (c_finish_cilk_clauses): Remove function. | |
5620 | * c-common.h (c_finish_cilk_clauses): Remove declaration. | |
5621 | ||
fe37c7af MM |
5622 | 2016-04-18 Michael Matz <matz@suse.de> |
5623 | ||
5624 | * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN | |
5625 | and SET_DECL_ALIGN. | |
5626 | ||
23f2660f EB |
5627 | 2016-04-17 Eric Botcazou <ebotcazou@adacore.com> |
5628 | ||
5629 | * c-ada-spec.c (get_underlying_decl): Return the typedef, if any. | |
5630 | (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access | |
5631 | to incomplete types. | |
5632 | (dump_nested_type): Remove redundant tests and tidy up. | |
5633 | (print_ada_declaration): Also set TREE_VISITED on the declaration of | |
5634 | a type which is the typedef of an original type. | |
5635 | ||
1e77281b MP |
5636 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
5637 | ||
5638 | PR c/70651 | |
5639 | * c-common.c (build_va_arg): Change two asserts into errors and return | |
5640 | error_mark_node. | |
5641 | ||
b3a77f21 MP |
5642 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
5643 | ||
5644 | PR c++/70639 | |
5645 | * c-indentation.c (should_warn_for_misleading_indentation): Bail out | |
5646 | for switch statements, too. | |
5647 | ||
322b8466 JM |
5648 | 2016-03-28 Jason Merrill <jason@redhat.com> |
5649 | ||
5650 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for. | |
5651 | ||
fbdb6baf MP |
5652 | 2016-03-23 Marek Polacek <polacek@redhat.com> |
5653 | ||
5654 | PR c++/69884 | |
5655 | * c.opt (Wignored-attributes): New option. | |
5656 | ||
5c240f4d DM |
5657 | 2016-03-22 David Malcolm <dmalcolm@redhat.com> |
5658 | ||
5659 | PR c/69993 | |
5660 | * c-indentation.c (warn_for_misleading_indentation): Rewrite the | |
5661 | diagnostic text, reversing the order of the warning and note so | |
5662 | that they appear in source order. | |
5663 | ||
14ba7b28 MP |
5664 | 2016-03-17 Marek Polacek <polacek@redhat.com> |
5665 | ||
5666 | PR c/69407 | |
5667 | * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch | |
5668 | operations. | |
5669 | ||
08a1cadc JM |
5670 | 2016-03-14 Jason Merrill <jason@redhat.com> |
5671 | ||
2aaeea19 JM |
5672 | * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float. |
5673 | ||
08a1cadc JM |
5674 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for. |
5675 | ||
c06d25bb RB |
5676 | 2016-03-09 Richard Biener <rguenther@suse.de> |
5677 | ||
5678 | PR c/70143 | |
5679 | * c-common.c (strict_aliasing_warning): Add back | |
5680 | alias_sets_conflict_p check. | |
5681 | ||
80aac5c8 JM |
5682 | 2016-03-08 Jason Merrill <jason@redhat.com> |
5683 | ||
5684 | * c-opts.c (set_std_cxx1z): Don't enable concepts. | |
5685 | ||
64b23c13 DM |
5686 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
5687 | ||
5688 | PR c/68187 | |
5689 | * c-indentation.c (get_visual_column): Move code to determine next | |
5690 | tab stop to... | |
5691 | (next_tab_stop): ...this new function. | |
5692 | (line_contains_hash_if): Delete function. | |
5693 | (detect_preprocessor_logic): Delete function. | |
5694 | (get_first_nws_vis_column): New function. | |
5695 | (detect_intervening_unindent): New function. | |
5696 | (should_warn_for_misleading_indentation): Replace call to | |
5697 | detect_preprocessor_logic with a call to | |
5698 | detect_intervening_unindent. | |
5699 | ||
729526f5 DM |
5700 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
5701 | ||
5702 | PR c/68187 | |
5703 | * c-indentation.c (should_warn_for_misleading_indentation): When | |
5704 | suppressing warnings about cases where the guard and body are on | |
5705 | the same column, only use the first non-whitespace column in place | |
5706 | of the guard token column when dealing with "else" clauses. | |
5707 | When rejecting aligned BODY and NEXT, loosen the requirement | |
5708 | from equality with the first non-whitespace of guard to simply | |
5709 | that they not be indented relative to it. | |
5710 | ||
e9a35493 RB |
5711 | 2016-03-04 Richard Biener <rguenther@suse.de> |
5712 | ||
5713 | PR c++/70054 | |
5714 | * c-common.c (strict_aliasing_warning): Use alias_set_subset_of | |
5715 | instead of alias_sets_conflict_p. | |
5716 | ||
1be56bc5 MP |
5717 | 2016-03-01 Marek Polacek <polacek@redhat.com> |
5718 | ||
5719 | PR c++/69795 | |
5720 | * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than | |
5721 | any DECL. | |
5722 | ||
35886f0b MS |
5723 | 2016-02-22 Martin Sebor <msebor@redhat.com> |
5724 | ||
5725 | PR middle-end/69780 | |
5726 | * c-common.c (check_builtin_function_arguments): Validate and | |
5727 | reject invalid arguments to __builtin_alloca_with_align. | |
5728 | ||
4246c8da MW |
5729 | 2016-02-20 Mark Wielaard <mjw@redhat.com> |
5730 | ||
5731 | PR c/28901 | |
5732 | * c.opt (Wunused-const-variable): Turn into Alias for... | |
5733 | (Wunused-const-variable=): New option. | |
5734 | ||
268be88c BE |
5735 | 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5736 | ||
5737 | PR c++/69865 | |
5738 | * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from | |
5739 | here... | |
5740 | (c_common_init_options): ...to here. | |
5741 | (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99. | |
5742 | ||
871b3f47 JJ |
5743 | 2016-02-19 Jakub Jelinek <jakub@redhat.com> |
5744 | ||
5745 | PR c++/69826 | |
5746 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE. | |
5747 | (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for | |
5748 | flag_preprocess_only. | |
5749 | ||
bf14eba2 JJ |
5750 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
5751 | ||
5752 | PR c/69835 | |
5753 | * c.opt (Wnonnull-compare): Enable for -Wall. | |
5754 | ||
ba6b3795 JJ |
5755 | 2016-02-15 Jakub Jelinek <jakub@redhat.com> |
5756 | ||
5757 | PR c++/69797 | |
5758 | * c-common.c (sync_resolve_size): Diagnose too few arguments | |
5759 | even when params is non-NULL empty vector. | |
5760 | ||
a011cd92 BS |
5761 | 2016-02-08 Bernd Schmidt <bschmidt@redhat.com> |
5762 | ||
5763 | PR target/60410 | |
5764 | * c.opt (fshort-double): Remove. | |
5765 | ||
46cb9332 MS |
5766 | 2016-02-05 Martin Sebor <msebor@redhat.com> |
5767 | ||
5768 | PR c++/69662 | |
5769 | * c.opt (Warning options): Update -Wplacement-new to take | |
5770 | an optional argument. | |
5771 | ||
e1b81f2b JJ |
5772 | 2016-02-01 Jakub Jelinek <jakub@redhat.com> |
5773 | ||
5774 | PR preprocessor/69543 | |
5775 | PR c/69558 | |
5776 | * c-pragma.c (handle_pragma_diagnostic): Pass input_location | |
5777 | instead of loc to control_warning_option. | |
5778 | ||
b6adbb9f NS |
5779 | 2016-02-01 Nathan Sidwell <nathan@codesourcery.com> |
5780 | ||
5781 | * c.opt (fopenacc-dim=): New option. | |
5782 | ||
5d70666e RB |
5783 | 2016-01-27 Ryan Burn <contact@rnburn.com> |
5784 | ||
5785 | PR cilkplus/69267 | |
5786 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use | |
5787 | gimplify_arg. Removed superfluous post_p argument. | |
5788 | * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed | |
5789 | superfluous post_p argument. | |
5790 | * c-gimplify.c (c_gimplify_expr): Likewise. | |
5791 | ||
01e1dea3 DM |
5792 | 2016-01-26 David Malcolm <dmalcolm@redhat.com> |
5793 | ||
5794 | PR other/69006 | |
5795 | * c-opts.c (c_diagnostic_finalizer): Replace invocation of | |
5796 | pp_newline_and_flush with pp_flush. | |
5797 | ||
9f04a53e MS |
5798 | 2016-01-20 Martin Sebor <msebor@redhat.com> |
5799 | ||
5800 | PR c/69405 | |
5801 | * c-common.c (sync_resolve_size): Avoid printing diagnostic about | |
5802 | an incompatible argument when the argument isn't a valid tree node. | |
5803 | ||
7f26f7df JM |
5804 | 2016-01-18 Jason Merrill <jason@redhat.com> |
5805 | ||
5806 | PR c++/68767 | |
5807 | * c-common.c (check_function_arguments_recurse): Fold the whole | |
5808 | COND_EXPR, not just the condition. | |
5809 | ||
f62bf092 TV |
5810 | 2016-01-18 Tom de Vries <tom@codesourcery.com> |
5811 | ||
5812 | * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION, | |
5813 | classify as loop clause. | |
5814 | ||
e0a575ff JJ |
5815 | 2016-01-15 Jakub Jelinek <jakub@redhat.com> |
5816 | ||
5817 | PR bootstrap/68271 | |
5818 | * c-pragma.c (c_register_pragma_1): Adjust comment to note that | |
5819 | C++ FE no longer has limit on number of pragmas. | |
5820 | ||
5821 | 2015-01-14 Ryan Burn <contact@rnburn.com> | |
b6e3db06 RB |
5822 | |
5823 | PR c++/69048 | |
5824 | * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr | |
c47eaca6 | 5825 | to add missing cleanup point. |
b6e3db06 | 5826 | |
c7df95d8 DM |
5827 | 2016-01-14 David Malcolm <dmalcolm@redhat.com> |
5828 | ||
5829 | PR c++/68819 | |
5830 | * c-indentation.c (get_visual_column): Add location_t param. | |
5831 | Handle the column number being zero by effectively disabling the | |
5832 | warning, with an "inform". | |
5833 | (should_warn_for_misleading_indentation): Add location_t argument | |
5834 | for all uses of get_visual_column. | |
5835 | ||
21efdd80 PP |
5836 | 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org> |
5837 | ||
5838 | PR c++/69029 | |
5839 | * c-indentation.c (should_warn_for_misleading_indentation): | |
5840 | Don't warn about do-while statements. | |
5841 | ||
7a127fa7 MS |
5842 | 2016-01-07 Martin Sebor <msebor@redhat.com> |
5843 | ||
5844 | PR c/68966 | |
5845 | * c-common.c (sync_resolve_size): Reject first argument when it's | |
5846 | a pointer to _Bool. | |
5847 | ||
c589e975 DM |
5848 | 2016-01-05 David Malcolm <dmalcolm@redhat.com> |
5849 | ||
5850 | PR c/69122 | |
5851 | * c-indentation.c (get_visual_column): Remove default argument. | |
5852 | (should_warn_for_misleading_indentation): For the multiline case, | |
5853 | update call to get_visual_column for next_stmt_exploc so that it | |
5854 | captures the location of the first non-whitespace character in the | |
5855 | relevant line. Don't issue warnings if there is non-whitespace | |
5856 | before the next statement. | |
5857 | ||
818ab71a JJ |
5858 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
5859 | ||
5860 | Update copyright years. | |
5861 | ||
745e411d DM |
5862 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
5863 | ||
5864 | * c-common.c (binary_op_error): Convert first param from | |
5865 | location_t to rich_location * and use it when emitting an error. | |
5866 | * c-common.h (binary_op_error): Convert first param from | |
5867 | location_t to rich_location *. | |
5868 | ||
de67c4c3 DM |
5869 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5870 | ||
5871 | * c-common.h (conflict_marker_get_final_tok_kind): New prototype. | |
5872 | * c-lex.c (conflict_marker_get_final_tok_kind): New function. | |
5873 | ||
4a38b02b IV |
5874 | 2015-12-15 Ilya Verbin <ilya.verbin@intel.com> |
5875 | ||
5876 | * c-common.c (c_common_attribute_table): Handle "omp declare target | |
5877 | link" attribute. | |
5878 | ||
54d62f51 JJ |
5879 | 2015-12-14 Jakub Jelinek <jakub@redhat.com> |
5880 | ||
5881 | PR c/68833 | |
5882 | * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option. | |
5883 | ||
8d4227c8 TB |
5884 | 2014-12-12 Tobias Burnus <burnus@net-b.de> |
5885 | ||
5886 | PR fortran/68815 | |
5887 | * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining | |
5888 | specifiers (%d, %i,%u and %c). | |
5889 | ||
f6069ccc DM |
5890 | 2015-12-10 David Malcolm <dmalcolm@redhat.com> |
5891 | ||
5892 | * c.opt (Wmisleading-indentation): Add to -Wall for C and C++. | |
5893 | ||
63bbf46d JJ |
5894 | 2015-12-08 Jakub Jelinek <jakub@redhat.com> |
5895 | ||
5896 | PR c/48088 | |
5897 | PR c/68657 | |
5898 | * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning. | |
5899 | * c-pragma.c (handle_pragma_diagnostic): Adjust | |
5900 | control_warning_option caller. | |
5901 | ||
f79520bb DM |
5902 | 2015-12-07 David Malcolm <dmalcolm@redhat.com> |
5903 | ||
5904 | * c-common.c (c_cpp_error): Update for change to | |
5905 | rich_location::set_range. | |
5906 | ||
b3d5bc62 JJ |
5907 | 2015-12-04 Paolo Bonzini <bonzini@gnu.org> |
5908 | ||
5909 | * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if | |
5910 | shifting 1 out of the sign bit. | |
5911 | ||
5912 | 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com> | |
5913 | ||
5914 | * c-common.c (c_common_attribute_table[]): Update max arguments | |
5915 | count for "simd" attribute. | |
5916 | (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments. | |
5917 | ||
6eb4a537 JJ |
5918 | 2015-12-03 Jakub Jelinek <jakub@redhat.com> |
5919 | ||
5920 | PR preprocessor/57580 | |
5921 | * c-ppoutput.c (print): Change printed field to bool. | |
5922 | Move src_file last for smaller padding. | |
5923 | (init_pp_output): Set print.printed to false instead of 0. | |
5924 | (scan_translation_unit): Fix up formatting. Set print.printed | |
5925 | to true after printing something other than newline. | |
5926 | (scan_translation_unit_trad): Set print.printed to true instead of 1. | |
5927 | (maybe_print_line_1): Set print.printed to false instead of 0. | |
5928 | (print_line_1): Likewise. | |
5929 | (do_line_change): Set print.printed to true instead of 1. | |
5930 | (cb_define, dump_queued_macros, cb_include, cb_def_pragma, | |
5931 | dump_macro): Set print.printed to false after printing newline. | |
5932 | ||
4250754e JM |
5933 | 2015-12-02 Jason Merrill <jason@redhat.com> |
5934 | ||
f479b43d JM |
5935 | * c-common.c (fold_for_warn): New. |
5936 | (warn_logical_operator, warn_tautological_cmp) | |
5937 | (check_function_arguments_recurse, maybe_warn_bool_compare): Use it. | |
5938 | ||
4250754e JM |
5939 | * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold) |
5940 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
5941 | Move to c/c-fold.c. | |
5942 | * c-common.h: Don't declare decl_constant_value_for_optimization. | |
5943 | ||
e9e32ee6 JM |
5944 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
5945 | ||
5946 | PR c/68162 | |
5947 | * c-common.h (c_build_qualified_type): Add extra default | |
5948 | arguments. | |
5949 | ||
37d5ad46 JB |
5950 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
5951 | Cesar Philippidis <cesar@codesourcery.com> | |
5952 | James Norris <James_Norris@mentor.com> | |
5953 | ||
5954 | * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA. | |
5955 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA. | |
5956 | (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE. | |
5957 | ||
f07862c7 EB |
5958 | 2015-11-30 Eric Botcazou <ebotcazou@adacore.com> |
5959 | ||
5960 | * c-ada-spec.c (print_ada_macros): Remove redundant blank line. | |
5961 | (decl_sloc_common): Delete and move bulk of processing to... | |
5962 | (decl_sloc): ...here. | |
5963 | (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE. | |
5964 | (dump_ada_double_name): Remove S parameter and compute the suffix. | |
5965 | (dump_ada_array_type): Add PARENT parameter. Simplify computation of | |
5966 | element type and deal with an anonymous one. | |
5967 | (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro. | |
5968 | (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type | |
5969 | and remove reference to QUAL_UNION_TYPE. | |
5970 | (dump_nested_types): Make 2 passes on the fields and move bulk to... | |
5971 | (dump_nested_type): ...here. New function extracted from above. | |
5972 | Generate a full declaration for anonymous element type of arrays. | |
5973 | (print_ada_declaration): Really skip anonymous declarations. Remove | |
5974 | references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type. | |
5975 | Clean up processing of declarations of array types and objects. | |
5976 | (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE. | |
5977 | Remove obsolete code and tidy up. | |
5978 | ||
75c8aac3 JH |
5979 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
5980 | ||
5981 | PR c/67581 | |
5982 | * c-common.c (handle_transparent_union_attribute): Update | |
5983 | also type variants. | |
5984 | ||
b58d3df2 ML |
5985 | 2015-11-27 Martin Liska <mliska@suse.cz> |
5986 | ||
5987 | PR c++/68312 | |
5988 | * array-notation-common.c (cilkplus_extract_an_triplets): | |
5989 | Release vector of vectors. | |
5990 | * cilk.c (gimplify_cilk_spawn): Free allocated memory. | |
5991 | ||
89a01fcf EB |
5992 | 2015-11-26 Eric Botcazou <ebotcazou@adacore.com> |
5993 | ||
5994 | PR c++/68527 | |
5995 | * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node. | |
5996 | (print_ada_struct_decl): Likewise. | |
5997 | ||
cc5c5226 IZ |
5998 | 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com> |
5999 | ||
6000 | PR c++/68001 | |
6001 | * c-gimplify.c (c_gimplify_expr): Stop the process if see an error. | |
6002 | * cilk.c (recognize_spawn): Determine location in a more precise | |
6003 | way. | |
6004 | ||
269adb9d JM |
6005 | 2015-11-19 Jason Merrill <jason@redhat.com> |
6006 | ||
6007 | * c-common.c (shorten_compare): But look through macros from | |
6008 | system headers. | |
6009 | ||
d0eccfcd JM |
6010 | 2015-11-18 Jason Merrill <jason@redhat.com> |
6011 | ||
6012 | * c-common.c (shorten_compare): Don't -Wtype-limits if the | |
6013 | non-constant operand comes from a macro. | |
6014 | ||
3e44547c JM |
6015 | 2015-11-17 Jason Merrill <jason@redhat.com> |
6016 | ||
6017 | PR bootstrap/68346 | |
6018 | * c-common.c (warn_tautological_cmp): Fold before checking for | |
6019 | constants. | |
6020 | ||
0f62c7a0 MP |
6021 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
6022 | ||
6023 | PR c++/68362 | |
6024 | * c-common.c (check_case_bounds): Fold low and high cases. | |
6025 | ||
a868811e MP |
6026 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
6027 | ||
6028 | * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P. | |
6029 | * c-common.c (c_common_get_alias_set): Likewise. | |
6030 | (handle_visibility_attribute): Likewise. | |
6031 | ||
fff77217 KY |
6032 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
6033 | ||
6034 | * c-common.c (handle_simd_attribute): New. | |
6035 | (struct attribute_spec): Add entry for "simd". | |
6036 | (handle_simd_attribute): New. | |
6037 | ||
269e63b7 KT |
6038 | 2015-11-13 Kai Tietz <ktietz70@googlemail.com> |
6039 | ||
6040 | * c-lex.c (interpret_float): Use fold_convert. | |
6041 | ||
ebedc9a3 DM |
6042 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
6043 | ||
6044 | * c-common.c (c_fully_fold_internal): Capture existing souce_range, | |
6045 | and store it on the result. | |
6046 | * c-opts.c (c_common_init_options): Set | |
6047 | global_dc->colorize_source_p. | |
6048 | ||
6e232ba4 JN |
6049 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
6050 | Joseph Myers <joseph@codesourcery.com> | |
6051 | ||
7365279f | 6052 | * c-pragma.c (oacc_pragmas): Add entry for declare directive. |
6e232ba4 JN |
6053 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE. |
6054 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and | |
6055 | PRAGMA_OACC_CLAUSE_LINK. | |
6056 | ||
e78bede6 MP |
6057 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
6058 | ||
6059 | PR c/68107 | |
6060 | PR c++/68266 | |
6061 | * c-common.c (valid_array_size_p): New function. | |
6062 | * c-common.h (valid_array_size_p): Declare. | |
6063 | ||
3f8257db | 6064 | 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr> |
4ac93c7c DH |
6065 | |
6066 | PR bootstrap/68271 | |
6067 | * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256. | |
6068 | ||
69f293c9 AM |
6069 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
6070 | ||
6071 | * array-notation-common.c: Remove unused header files. | |
6072 | * c-ada-spec.c: Likewise. | |
6073 | * c-cilkplus.c: Likewise. | |
6074 | * c-common.c: Likewise. | |
6075 | * c-cppbuiltin.c: Likewise. | |
6076 | * c-dump.c: Likewise. | |
6077 | * c-format.c: Likewise. | |
6078 | * c-gimplify.c: Likewise. | |
6079 | * c-indentation.c: Likewise. | |
6080 | * c-lex.c: Likewise. | |
6081 | * c-omp.c: Likewise. | |
6082 | * c-opts.c: Likewise. | |
6083 | * c-pch.c: Likewise. | |
6084 | * c-ppoutput.c: Likewise. | |
6085 | * c-pragma.c: Likewise. | |
6086 | * c-pretty-print.c: Likewise. | |
6087 | * c-semantics.c: Likewise. | |
6088 | * c-ubsan.c: Likewise. | |
6089 | * cilk.c: Likewise. | |
6090 | * stub-objc.c: Likewise. | |
6091 | ||
3a40d81d NS |
6092 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
6093 | Cesar Philippidis <cesar@codesourcery.com> | |
6094 | James Norris <jnorris@codesourcery.com> | |
6095 | Julian Brown <julian@codesourcery.com> | |
6096 | Nathan Sidwell <nathan@codesourcery.com> | |
6097 | ||
6098 | * c-pragma.c (oacc_pragmas): Add "routine". | |
6099 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE. | |
6100 | ||
ee45a32d EB |
6101 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
6102 | ||
6103 | * c-common.c (c_common_attributes): Add scalar_storage_order. | |
6104 | (handle_scalar_storage_order_attribute): New function. | |
6105 | * c-pragma.c (global_sso): New variable. | |
6106 | (maybe_apply_pragma_scalar_storage_order): New function. | |
6107 | (handle_pragma_scalar_storage_order): Likewise. | |
6108 | (init_pragma): Register scalar_storage_order. | |
6109 | * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare. | |
6110 | * c.opt (Wscalar-storage-order): New warning. | |
6111 | (fsso-struct=): New option. | |
6112 | ||
eb11eb15 MS |
6113 | 2015-11-08 Martin Sebor <msebor@redhat.com> |
6114 | ||
6115 | * c.opt (Wplacement-new): Add a period to the end of a sentence. | |
6116 | ||
0aad0198 RS |
6117 | 2015-11-07 Richard Sandiford <richard.sandiford@arm.com> |
6118 | ||
6119 | * c-common.c: Don't undef DEF_BUILTIN. | |
6120 | ||
8a645150 DM |
6121 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
6122 | ||
6123 | * c-common.c (c_cpp_error): Convert parameter from location_t to | |
6124 | rich_location *. Eliminate the "column_override" parameter and | |
6125 | the call to diagnostic_override_column. | |
6126 | Update the "done_lexing" clause to set range 0 | |
6127 | on the rich_location, rather than overwriting a location_t. | |
6128 | * c-common.h (c_cpp_error): Convert parameter from location_t to | |
6129 | rich_location *. Eliminate the "column_override" parameter. | |
6130 | ||
7a5e4956 CP |
6131 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
6132 | Thomas Schwinge <thomas@codesourcery.com> | |
6133 | James Norris <jnorris@codesourcery.com> | |
6134 | ||
6135 | * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR, | |
6136 | AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION | |
6137 | clauses with parallel and kernels and loops. | |
6138 | * c-pragma.h (enum pragma_omp_clause): Add entries for | |
6139 | PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}. | |
6140 | * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS, | |
6141 | NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO, | |
6142 | INDEPENDENT,SEQ}. | |
6143 | (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}. | |
6144 | ||
e2f5cc96 MS |
6145 | 2015-11-05 Martin Sebor <msebor@redhat.com> |
6146 | ||
6147 | PR c++/67942 | |
6148 | * c.opt (-Wplacement-new): New option. | |
6149 | ||
e01d41e5 JJ |
6150 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
6151 | ||
6152 | * c-common.h (c_finish_omp_atomic): Add TEST argument. | |
6153 | (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes. | |
6154 | * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call | |
6155 | save_expr or create_tmp_var* if TEST is true. | |
6156 | (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always. | |
6157 | Don't call add_stmt here. | |
6158 | (struct c_omp_check_loop_iv_data): New type. | |
6159 | (c_omp_check_loop_iv_r, c_omp_check_loop_iv, | |
6160 | c_omp_check_loop_iv_exprs): New functions. | |
6161 | (c_omp_split_clauses): Adjust for lastprivate being allowed on | |
6162 | distribute. | |
6163 | (c_omp_declare_simd_clauses_to_numbers): Change | |
6164 | OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers. | |
6165 | (c_omp_declare_simd_clauses_to_decls): Similarly change those | |
6166 | from numbers to PARM_DECLs. | |
6167 | ||
595278be MM |
6168 | 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com> |
6169 | ||
6170 | * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use | |
6171 | flag_checking. | |
6172 | ||
3f8257db | 6173 | 2015-11-03 Bernd Schmidt <bschmidt@redhat.com> |
c85158de MS |
6174 | |
6175 | PR c++-common/67882 | |
b3d5bc62 JJ |
6176 | * c-common.h (fold_offsetof_1): Add argument. |
6177 | * c-common.c (fold_offsetof_1): Diagnose more invalid | |
c85158de MS |
6178 | offsetof expressions that reference elements past the end of |
6179 | an array. | |
6180 | ||
4bf9e5a8 TS |
6181 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
6182 | Chung-Lin Tang <cltang@codesourcery.com> | |
6183 | ||
6184 | * c-pragma.c (oacc_pragmas): Add "atomic". | |
6185 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC. | |
6186 | ||
3b1661a9 ES |
6187 | 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com> |
6188 | ||
6189 | * c-common.c (handle_target_clones_attribute): New. | |
6190 | (c_common_attribute_table): Add handle_target_clones_attribute. | |
6191 | (handle_always_inline_attribute): Add check on target_clones attribute. | |
6192 | (handle_target_attribute): Ditto. | |
6193 | ||
2adfab87 AM |
6194 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
6195 | ||
6196 | * array-notation-common.c: Reorder #include's and remove duplicates. | |
6197 | * c-ada-spec.c: Likewise. | |
6198 | * c-cilkplus.c: Likewise. | |
6199 | * c-common.c: Likewise. | |
6200 | * c-cppbuiltin.c: Likewise. | |
6201 | * c-dump.c: Likewise. | |
6202 | * c-format.c: Likewise. | |
6203 | * c-gimplify.c: Likewise. | |
6204 | * c-indentation.c: Likewise. | |
6205 | * c-lex.c: Likewise. | |
6206 | * c-omp.c: Likewise. | |
6207 | * c-opts.c: Likewise. | |
6208 | * c-pch.c: Likewise. | |
6209 | * c-ppoutput.c: Likewise. | |
6210 | * c-pragma.c: Likewise. | |
6211 | * c-pretty-print.c: Likewise. | |
6212 | * c-semantics.c: Likewise. | |
6213 | * c-ubsan.c: Likewise. | |
6214 | * cilk.c: Likewise. | |
6215 | * stub-objc.c: Likewise. | |
6216 | ||
d90ec4f2 JM |
6217 | 2015-10-28 Jason Merrill <jason@redhat.com> |
6218 | ||
6219 | * c-common.c (pointer_int_sum): Fold the MULT_EXPR. | |
6220 | ||
88bae6f4 TS |
6221 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
6222 | James Norris <jnorris@codesourcery.com> | |
6223 | Cesar Philippidis <cesar@codesourcery.com> | |
6224 | ||
6225 | PR c/64765 | |
6226 | PR c/64880 | |
6227 | * c-common.h (c_oacc_split_loop_clauses): Declare function. | |
6228 | * c-omp.c (c_oacc_split_loop_clauses): New function. | |
6229 | ||
b1726d6c MS |
6230 | 2015-10-21 Martin Sebor <msebor@redhat.com> |
6231 | ||
6232 | PR driver/68043 | |
6233 | * c.opt: End each sentence that describes an option with a period. | |
6234 | ||
fa60eeb9 MP |
6235 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
6236 | ||
6237 | * array-notation-common.c (is_cilkplus_vector_p): Define. | |
6238 | * c-common.h (is_cilkplus_vector_p): Declare. | |
6239 | ||
95979049 MP |
6240 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
6241 | ||
6242 | * c.opt (std=gnu++11): Do not describe as experimental. | |
6243 | (std=gnu++14): Likewise. | |
6244 | ||
2a9fb712 JM |
6245 | 2015-10-19 Jason Merrill <jason@redhat.com> |
6246 | ||
6247 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
6248 | __cpp_nontype_template_args. | |
6249 | ||
13b380a3 JM |
6250 | 2015-10-19 Jason Merrill <jason@redhat.com> |
6251 | ||
6252 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
6253 | __cpp_enumerator_attributes, __cpp_fold_expressions, | |
6254 | __cpp_unicode_characters. | |
6255 | ||
d9a6bd32 JJ |
6256 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
6257 | Aldy Hernandez <aldyh@redhat.com> | |
6258 | ||
6259 | * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9, | |
6260 | DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11. | |
6261 | (c_define_builtins): Likewise. | |
6262 | * c-common.h (enum c_omp_clause_split): Add | |
6263 | C_OMP_CLAUSE_SPLIT_TASKLOOP. | |
6264 | (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument. | |
6265 | (c_finish_omp_for): Add ORIG_DECLV argument. | |
6266 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as | |
6267 | 201511 instead of 201307. | |
6268 | * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set | |
6269 | OMP_CRITICAL_CLAUSES to it. | |
6270 | (c_finish_omp_ordered): Add CLAUSES argument, set | |
6271 | OMP_ORDERED_CLAUSES to it. | |
6272 | (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS | |
6273 | to it if OMP_FOR. Clear DECL_INITIAL on the IVs. | |
6274 | (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite | |
6275 | constructs and new OpenMP 4.5 clauses. Clear | |
6276 | OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add | |
6277 | verification code. | |
6278 | * c-pragma.c (omp_pragmas_simd): Add taskloop. | |
6279 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP. | |
6280 | (enum pragma_omp_clause): Add | |
6281 | PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR} | |
6282 | and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}. | |
6283 | ||
624d31fe RS |
6284 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
6285 | ||
6286 | * c-lex.c (interpret_float): Use real_equal instead of | |
6287 | REAL_VALUES_EQUAL. | |
6288 | ||
b8fd7909 JM |
6289 | 2015-10-04 Jason Merrill <jason@redhat.com> |
6290 | ||
6291 | Implement N4514, C++ Extensions for Transactional Memory. | |
6292 | * c-common.c (c_common_reswords): Add C++ TM TS keywords. | |
6293 | (c_common_attribute_table): Add transaction_safe_dynamic. | |
6294 | transaction_safe now affects type identity. | |
6295 | (handle_tm_attribute): Handle transaction_safe_dynamic. | |
6296 | * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT, | |
6297 | RID_ATOMIC_CANCEL, RID_SYNCHRONIZED. | |
6298 | (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED. | |
6299 | (D_TRANSMEM): New. | |
6300 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory. | |
6301 | * c-pretty-print.c (pp_c_attributes_display): Don't print | |
6302 | transaction_safe in C++. | |
6303 | ||
12651878 MP |
6304 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
6305 | ||
6306 | * c.opt (Wduplicated-cond): Don't enable by -Wall anymore. | |
6307 | ||
3e3b8d63 MP |
6308 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
6309 | ||
6310 | PR c/64249 | |
6311 | * c-common.c (warn_duplicated_cond_add_or_warn): New function. | |
6312 | * c-common.h (warn_duplicated_cond_add_or_warn): Declare. | |
6313 | * c.opt (Wduplicated-cond): New option. | |
6314 | ||
0d1a8f75 JM |
6315 | 2015-10-01 Joseph Myers <joseph@codesourcery.com> |
6316 | ||
6317 | * c.opt (std=c11): Do not describe as experimental. | |
6318 | (std=gnu11): Likewise. | |
6319 | (std=iso9899:2011): Likewise. | |
6320 | ||
3e32ee19 NS |
6321 | 2015-09-28 Nathan Sidwell <nathan@codesourcery.com> |
6322 | ||
6323 | * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New. | |
6324 | (DEF_FUNCTION_TYPE_VAR_11): Delete. | |
6325 | ||
974348ee MP |
6326 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
6327 | ||
6328 | * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code. | |
6329 | (ubsan_instrument_shift): Likewise. | |
6330 | ||
15dbc1a6 MP |
6331 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
6332 | ||
6333 | PR sanitizer/64906 | |
6334 | * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1. | |
6335 | ||
6b95d7cc PP |
6336 | 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org> |
6337 | ||
6338 | * c-indentation.c (should_warn_for_misleading_indentation): | |
6339 | Compare next_stmt_vis_column with guard_line_first_nws instead | |
6340 | of with guard_line_vis_column. | |
6341 | ||
c1822f9c MLI |
6342 | 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6343 | ||
6344 | PR c/49654 | |
6345 | PR c/49655 | |
6346 | * c-pragma.c (handle_pragma_diagnostic): Detect non-warning | |
6347 | options and options not valid for the current language. | |
6348 | ||
d5398058 PP |
6349 | 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org> |
6350 | ||
6351 | * c-indentation.c (should_warn_for_misleading_indentation): | |
6352 | Float out and consolidate the calls to get_visual_column that | |
6353 | are passed guard_exploc as an argument. Compare | |
6354 | next_stmt_vis_column with guard_line_first_nws instead of with | |
6355 | body_line_first_nws. | |
6356 | ||
6b333269 NS |
6357 | 2015-09-22 Nathan Sidwell <nathan@codesourcery.com> |
6358 | ||
6359 | * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates, | |
6360 | Wnamespaces): New C++ warnings. | |
6361 | ||
a75f1574 JM |
6362 | 2015-09-22 Jason Merrill <jason@redhat.com> |
6363 | ||
6364 | * c-common.h (abi_compat_version_crosses): New. | |
6365 | (warn_abi_version): Declare. | |
6366 | * c-common.c: Define it. | |
6367 | * c-opts.c (c_common_post_options): Handle it. | |
6368 | flag_abi_compat_version defaults to 8. | |
6369 | ||
bdaaa8b7 VV |
6370 | 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com> |
6371 | ||
6372 | Complete the implementation of N4230, Nested namespace definition. | |
6373 | * c-cppbuiltin.c: Add __cpp_namespace_attributes and | |
6374 | __cpp_nested_namespace_definitions. | |
6375 | ||
eaa797e8 MLI |
6376 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6377 | ||
6378 | * c-pragma.c (handle_pragma_diagnostic): Fix wrong return. | |
6379 | ||
c4914de6 MLI |
6380 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6381 | ||
6382 | * c-pragma.c (handle_pragma_diagnostic): Use explicit location | |
6383 | when warning. | |
6384 | * c-pragma.h (pragma_lex): Add optional loc argument. | |
6385 | ||
fcb87c50 MM |
6386 | 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com> |
6387 | ||
6388 | * c-format.c (check_format_arg): Adjust to use common block size in all | |
6389 | object pools. | |
6390 | ||
31bdd08a DM |
6391 | 2015-09-15 David Malcolm <dmalcolm@redhat.com> |
6392 | ||
6393 | * c-format.c (location_from_offset): Update for change in | |
6394 | signature of location_get_source_line. | |
6395 | * c-indentation.c (get_visual_column): Likewise. | |
6396 | (line_contains_hash_if): Likewise. | |
6397 | ||
aa9f4b4c MP |
6398 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
6399 | ||
6400 | * c-opts.c (c_common_post_options): Set C++ standard earlier, before | |
6401 | setting various warnings. | |
6402 | ||
aa256c4a MP |
6403 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
6404 | ||
6405 | * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting | |
6406 | a negative value. | |
6407 | ||
0f876f22 MW |
6408 | 2015-09-11 Mark Wielaard <mjw@redhat.com> |
6409 | ||
6410 | PR c/28901 | |
6411 | * c.opt (Wunused-variable): Option from common.opt. | |
6412 | (Wunused-const-variable): New option. | |
6413 | ||
273aa49e PC |
6414 | 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
6415 | ||
6416 | PR c++/53184 | |
6417 | * c.opt ([Wsubobject-linkage]): Add. | |
6418 | ||
1807ffc1 MS |
6419 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
6420 | ||
6421 | PR c/66516 | |
6422 | * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new | |
6423 | functions. | |
6424 | * c-common.c (reject_gcc_builtin): Define. | |
6425 | ||
38942840 BI |
6426 | 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com> |
6427 | ||
6428 | PR middle-end/60586 | |
6429 | * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New | |
6430 | prototype. | |
6431 | * c-gimplify.c (c_gimplify_expr): Added a call to the function | |
6432 | cilk_gimplify_call_params_in_spawned_fn. | |
6433 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function. | |
6434 | (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR | |
6435 | unwrapping. | |
6436 | ||
c316b5e4 MP |
6437 | 2015-08-25 Marek Polacek <polacek@redhat.com> |
6438 | ||
6439 | PR middle-end/67330 | |
6440 | * c-common.c (handle_weak_attribute): Don't check whether the | |
6441 | visibility can be changed here. | |
6442 | ||
584a7c46 MLI |
6443 | 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6444 | ||
6445 | * c-lex.c (c_lex_with_flags): Use explicit locations. | |
6446 | ||
a79683d5 TS |
6447 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
6448 | ||
6449 | * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h, | |
6450 | c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless | |
6451 | ||
61717a45 FXC |
6452 | 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
6453 | ||
6454 | PR middle-end/36757 | |
6455 | * c-common.c (check_builtin_function_arguments): Add check | |
6456 | for BUILT_IN_SIGNBIT argument. | |
6457 | ||
329524f5 PC |
6458 | 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com> |
6459 | ||
6460 | PR c++/67160 | |
6461 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value | |
6462 | in c++1z mode. | |
6463 | ||
4ee55665 MP |
6464 | 2015-08-17 Marek Polacek <polacek@redhat.com> |
6465 | ||
6466 | * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing | |
6467 | with whitespaces before qualifier names. | |
6468 | ||
b893e375 MP |
6469 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
6470 | ||
6471 | PR c++/55095 | |
6472 | * c-common.c (maybe_warn_shift_overflow): Properly handle | |
6473 | left-shifting 1 into the sign bit. | |
6474 | ||
c2d89095 MLI |
6475 | 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6476 | ||
6477 | * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy. | |
6478 | ||
971e17ff AS |
6479 | 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com> |
6480 | Braden Obrzut <admin@maniacsvault.net> | |
6481 | Jason Merrill <jason@redhat.com> | |
6482 | ||
6483 | Add C++ Concepts TS support. | |
6484 | * c-common.c (c_common_reswords): Add __is_same_as, concept, requires. | |
6485 | * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES. | |
6486 | (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New. | |
6487 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts. | |
6488 | * c-opts.c (set_std_cxx1z): Set flag_concepts. | |
6489 | * c.opt (fconcepts): New. | |
6490 | ||
b3d5bc62 JJ |
6491 | 2015-08-02 Martin Sebor <msebor@redhat.com> |
6492 | ||
6493 | * c.opt (-Wframe-address): New warning option. | |
6494 | ||
8ebca419 PP |
6495 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
6496 | ||
6497 | * c-indentation.c (should_warn_for_misleading_indentation): | |
6498 | Improve heuristics. | |
6499 | ||
1a1e101f PP |
6500 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
6501 | ||
6502 | * c-indentation.c (get_visual_column): Add parameter first_nws, | |
6503 | use it. Update comment documenting the function. | |
6504 | (is_first_nonwhitespace_on_line): Remove. | |
6505 | (should_warn_for_misleading_indentation): Replace usage of | |
6506 | of is_first_nonwhitespace_on_line with get_visual_column. | |
6507 | ||
992118a1 PP |
6508 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
6509 | ||
6510 | * c-indentation.h (struct token_indent_info): Define. | |
6511 | (get_token_indent_info): Define. | |
6512 | (warn_for_misleading_information): Declare. | |
6513 | * c-common.h (warn_for_misleading_information): Remove. | |
6514 | * c-identation.c (warn_for_misleading_indentation): | |
6515 | Change declaration to take three token_indent_infos. Adjust | |
6516 | accordingly. | |
6517 | * c-identation.c (should_warn_for_misleading_indentation): | |
6518 | Likewise. Bail out early if the body is a compound statement. | |
6519 | (guard_tinfo_to_string): Define. | |
6520 | ||
e8fa3817 JM |
6521 | 2015-07-30 Jason Merrill <jason@redhat.com> |
6522 | ||
6523 | * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print | |
6524 | '*' for reference decay. | |
6525 | ||
173864e8 MP |
6526 | 2015-07-30 Marek Polacek <polacek@redhat.com> |
6527 | ||
6528 | * c-common.c (warn_tautological_cmp): Bail for float types. | |
6529 | ||
f2afe6dd MP |
6530 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
6531 | ||
6532 | PR bootstrap/67030 | |
6533 | * c-common.c (warn_tautological_cmp): Don't warn for macro expansion. | |
6534 | ||
05b28fd6 MP |
6535 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
6536 | ||
6537 | PR c++/66555 | |
6538 | PR c/54979 | |
6539 | * c-common.c (find_array_ref_with_const_idx_r): New function. | |
6540 | (warn_tautological_cmp): New function. | |
6541 | * c-common.h (warn_tautological_cmp): Declare. | |
6542 | * c.opt (Wtautological-compare): New option. | |
6543 | ||
5a5062b8 MP |
6544 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
6545 | ||
6546 | * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout. | |
6547 | (ubsan_instrument_shift): Likewise. | |
6548 | ||
dc891fe7 MP |
6549 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
6550 | ||
6551 | PR sanitizer/66908 | |
6552 | * c-ubsan.c: Include gimplify.h. | |
6553 | (ubsan_instrument_division): Unshare OP0 and OP1. | |
6554 | (ubsan_instrument_shift): Likewise. | |
6555 | ||
451b5e48 MP |
6556 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
6557 | Richard Sandiford <richard.sandiford@arm.com> | |
6558 | ||
6559 | PR c++/55095 | |
6560 | * c-common.c (c_fully_fold_internal): Warn about left shift overflows. | |
6561 | Use EXPR_LOC_OR_LOC. | |
6562 | (maybe_warn_shift_overflow): New function. | |
6563 | * c-common.h (maybe_warn_shift_overflow): Declare. | |
6564 | * c-opts.c (c_common_post_options): Set warn_shift_overflow. | |
6565 | * c.opt (Wshift-overflow): New option. | |
6566 | ||
fb0b2914 ML |
6567 | 2015-07-16 Martin Liska <mliska@suse.cz> |
6568 | ||
6569 | * c-format.c (static void check_format_info_main): Use | |
6570 | object_allocator instead of pool_allocator. | |
6571 | (check_format_arg): Likewise. | |
6572 | (check_format_info_main): Likewise. | |
6573 | ||
903f5c23 AM |
6574 | 2015-07-15 Andrew MacLeod <amacleod@redhat.com> |
6575 | ||
6576 | * c-opts.c: Remove multiline #include comment. | |
6577 | ||
026c3cfd AH |
6578 | 2015-07-12 Aldy Hernandez <aldyh@redhat.com> |
6579 | ||
6580 | * c-common.c: Fix double word typos. | |
6581 | ||
bb49ee66 EB |
6582 | 2015-07-10 Eric Botcazou <ebotcazou@adacore.com> |
6583 | ||
6584 | * c-ada-spec.h (cpp_operation): Revert latest change. | |
6585 | * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit | |
6586 | constructors and destructors. | |
6587 | ||
1916bcb5 AM |
6588 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
6589 | ||
6590 | * c-common.h: Adjust includes for flags.h changes. | |
6591 | * stub-objc.c: Likewise. | |
026c3cfd | 6592 | |
a9dcd529 EB |
6593 | 2015-07-08 Eric Botcazou <ebotcazou@adacore.com> |
6594 | ||
6595 | * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR. | |
6596 | * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors. | |
6597 | ||
b03b462f JJ |
6598 | 2015-07-08 Jakub Jelinek <jakub@redhat.com> |
6599 | ||
6600 | * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses | |
6601 | are to be removed, return NULL rather than original clauses list. | |
6602 | ||
c7131fb2 AM |
6603 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
6604 | ||
6605 | * array-notation-common.c: Adjust includes. | |
6606 | * c-ada-spec.c: Likewise. | |
6607 | * c-cilkplus.c: Likewise. | |
6608 | * c-common.h: Likewise. | |
6609 | * c-cppbuiltin.c: Likewise. | |
6610 | * c-dump.c: Likewise. | |
6611 | * c-format.c: Likewise. | |
6612 | * c-gimplify.c: Likewise. | |
6613 | * c-indentation.c: Likewise. | |
6614 | * c-lex.c: Likewise. | |
6615 | * c-omp.c: Likewise. | |
6616 | * c-opts.c: Likewise. | |
6617 | * c-pch.c: Likewise. | |
6618 | * c-ppoutput.c: Likewise. | |
6619 | * c-pragma.c: Likewise. | |
6620 | * c-pretty-print.c: Likewise. | |
6621 | * c-semantics.c: Likewise. | |
6622 | * c-ubsan.c: Likewise. | |
6623 | * cilk.c: Likewise. | |
6624 | * stub-objc.c: Likewise. | |
6625 | ||
2a7fb83f EB |
6626 | 2015-07-07 Eric Botcazou <ebotcazou@adacore.com> |
6627 | ||
6628 | * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR. | |
6629 | * c-ada-spec.c (print_ada_declaration): Skip move constructors. | |
6630 | ||
a03c9bf1 JM |
6631 | 2015-07-01 Jason Merrill <jason@redhat.com> |
6632 | ||
36a85135 JM |
6633 | * c-common.h (D_CXX11): Rename from D_CXX0X. |
6634 | (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X. | |
6635 | * c-common.c: Adjust. | |
6636 | ||
e7fa68d5 JM |
6637 | * c-opts.c (c_common_post_options): Default to C++14. |
6638 | ||
a03c9bf1 JM |
6639 | * c-opts.c (c_common_post_options): Highest ABI level is now 10. |
6640 | ||
fe95b036 ESR |
6641 | 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net> |
6642 | ||
6643 | Implement N4197 - Adding u8 character literals | |
b3d5bc62 | 6644 | * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like |
a64be36b | 6645 | CPP_CHAR. |
b3d5bc62 | 6646 | * c-common.c (c_parse_error): Print CPP_UTF8CHAR and |
a64be36b | 6647 | CPP_UTF8CHAR_USERDEF tokens. |
b3d5bc62 | 6648 | * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF |
a64be36b EB |
6649 | and CPP_UTF8CHAR tokens. |
6650 | (lex_charconst): Treat CPP_UTF8CHAR token. | |
fe95b036 | 6651 | |
da2e71c9 MLI |
6652 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6653 | ||
6654 | PR fortran/66605 | |
6655 | * c-common.c (do_warn_unused_parameter): Move here. | |
6656 | * c-common.h (do_warn_unused_parameter): Declare. | |
6657 | ||
b155cfd9 MP |
6658 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
6659 | ||
6660 | PR c/66322 | |
6661 | * c-common.c (check_case_bounds): Add bool * parameter. Set | |
6662 | OUTSIDE_RANGE_P. | |
6663 | (c_add_case_label): Add bool * parameter. Pass it down to | |
6664 | check_case_bounds. | |
6665 | (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool | |
6666 | warning here. | |
6667 | * c-common.h (c_add_case_label, c_do_switch_warnings): Update | |
6668 | declarations. | |
6669 | ||
31521951 MP |
6670 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
6671 | ||
6672 | * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P | |
6673 | or VECTOR_INTEGER_TYPE_P throughout. | |
6674 | * c-gimplify.c: Likewise. | |
6675 | ||
22d03525 MP |
6676 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
6677 | ||
6678 | * array-notation-common.c (find_rank): Use INDIRECT_REF_P. | |
6679 | * c-common.c (c_fully_fold_internal): Likewise. | |
6680 | (c_alignof_expr): Likewise. | |
6681 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise. | |
6682 | * c-ubsan.c (ubsan_instrument_bounds): Likewise. | |
b1726d6c | 6683 | * cilk.c (create_parm_list): Likewise. |
22d03525 | 6684 | |
af05e6e5 MP |
6685 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
6686 | ||
6687 | * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P. | |
6688 | ||
f0889939 AM |
6689 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
6690 | ||
6691 | * c-common.c: Remove ipa-ref.h and plugin-api.h from include list. | |
6692 | * c-gimplify.c: Likewise. | |
6693 | * c-pragma.c: Likewise. | |
6694 | * c-ubsan.c: Likewise. | |
6695 | * cilk.c: Likewise. | |
6696 | ||
ca752f39 RS |
6697 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
6698 | ||
6699 | * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than | |
6700 | ggc_hasher. | |
6701 | ||
16a16ec7 AM |
6702 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
6703 | ||
6704 | * cilk.c: Move calls.h after tm.h in the include chain. | |
6705 | ||
0ae9bd27 MP |
6706 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
6707 | ||
6708 | * array-notation-common.c: Use VAR_P throughout. | |
6709 | * c-ada-spec.c: Likewise. | |
6710 | * c-common.c: Likewise. | |
6711 | * c-format.c: Likewise. | |
6712 | * c-gimplify.c: Likewise. | |
6713 | * c-omp.c: Likewise. | |
6714 | * c-pragma.c: Likewise. | |
6715 | * c-pretty-print.c: Likewise. | |
6716 | * cilk.c: Likewise. | |
6717 | ||
62f9079a MP |
6718 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
6719 | ||
6720 | * cilk.c (extract_free_variables): Use is_global_var. | |
6721 | ||
0fa16060 RS |
6722 | 2015-06-23 Richard Sandiford <richard.sandiford@arm.com> |
6723 | ||
6724 | * c-common.c: Don't include target-def.h. | |
6725 | ||
a68ae2e1 MP |
6726 | 2015-06-23 Marek Polacek <polacek@redhat.com> |
6727 | ||
6728 | * c-common.c (warn_logical_operator): Use tree_int_cst_equal | |
6729 | when comparing INTEGER_CSTs. | |
6730 | ||
c6a2f2d9 PMR |
6731 | 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com> |
6732 | ||
6733 | * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS. | |
6734 | * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL | |
6735 | (dump_ada_template): Skip partially specialized types. | |
6736 | ||
6b4db501 MM |
6737 | 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com> |
6738 | ||
6739 | * c-common.c (scalar_to_vector): Use std::swap instead of manually | |
6740 | swapping. | |
6741 | ||
abb226c9 AM |
6742 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
6743 | ||
6744 | * array-notation-common.c: Do not include input.h, line-map.h or is-a.h. | |
6745 | * c-ada-spec.c: Likewise. | |
6746 | * c-cilkplus.c: Likewise. | |
6747 | * c-common.c: Likewise. | |
6748 | * c-common.h: Likewise. | |
6749 | * c-cppbuiltin.c: Likewise. | |
6750 | * c-dump.c: Likewise. | |
6751 | * c-format.c: Likewise. | |
6752 | * c-gimplify.c: Likewise. | |
6753 | * c-indentation.c: Likewise. | |
6754 | * c-lex.c: Likewise. | |
6755 | * c-omp.c: Likewise. | |
6756 | * c-opts.c: Likewise. | |
6757 | * c-pch.c: Likewise. | |
6758 | * c-ppoutput.c: Likewise. | |
6759 | * c-pragma.c: Likewise. | |
6760 | * c-pretty-print.c: Likewise. | |
6761 | * c-semantics.c: Likewise. | |
6762 | * c-ubsan.c: Likewise. | |
6763 | * cilk.c: Likewise. | |
6764 | * stub-objc.c: Likewise. | |
6765 | ||
076fecad PP |
6766 | 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org> |
6767 | ||
6768 | PR c++/65168 | |
6769 | * c-common.c (c_common_truthvalue_conversion): Warn when | |
6770 | converting an address of a reference to a truth value. | |
6771 | ||
13fdf2e2 AM |
6772 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
6773 | ||
6774 | * array-notation-common.c : Adjust include files. | |
6775 | * c-ada-spec.c : Likewise. | |
6776 | * c-cilkplus.c : Likewise. | |
6777 | * c-common.c : Likewise. | |
6778 | * c-common.h : Likewise. | |
6779 | * c-cppbuiltin.c : Likewise. | |
6780 | * c-dump.c : Likewise. | |
6781 | * c-format.c : Likewise. | |
6782 | * c-gimplify.c : Likewise. | |
6783 | * c-indentation.c : Likewise. | |
6784 | * c-lex.c : Likewise. | |
6785 | * c-omp.c : Likewise. | |
6786 | * c-opts.c : Likewise. | |
6787 | * c-pch.c : Likewise. | |
6788 | * c-ppoutput.c : Likewise. | |
6789 | * c-pragma.c : Likewise. | |
6790 | * c-pretty-print.c : Likewise. | |
6791 | * c-semantics.c : Likewise. | |
6792 | * c-ubsan.c : Likewise. | |
6793 | * cilk.c : Likewise. | |
6794 | * stub-objc.c : Likewise. | |
6795 | ||
a1661b90 MP |
6796 | 2015-06-08 Marek Polacek <polacek@redhat.com> |
6797 | ||
6798 | PR c/66415 | |
6799 | * c-format.c (location_from_offset): Return LOC if LINE is null. | |
6800 | ||
d7438551 AH |
6801 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
6802 | ||
6803 | * c-common.h (c_parse_final_cleanups): New prototype. | |
6804 | * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups. | |
6805 | ||
b3d5bc62 JJ |
6806 | 2015-06-04 Sriraman Tallam <tmsriram@google.com> |
6807 | ||
6808 | * c-common.c (noplt): New attribute. | |
6809 | (handle_noplt_attribute): New handler. | |
6810 | ||
ecb9f223 AM |
6811 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
6812 | ||
6813 | * array-notation-common.c: Adjust includes for restructured coretypes.h. | |
6814 | * c-ada-spec.c: Likewise. | |
6815 | * c-cilkplus.c: Likewise. | |
6816 | * c-common.c: Likewise. | |
6817 | * c-common.h: Likewise. | |
6818 | * c-cppbuiltin.c: Likewise. | |
6819 | * c-dump.c: Likewise. | |
6820 | * c-format.c: Likewise. | |
6821 | * c-gimplify.c: Likewise. | |
6822 | * c-indentation.c: Likewise. | |
6823 | * c-lex.c: Likewise. | |
6824 | * c-omp.c: Likewise. | |
6825 | * c-opts.c: Likewise. | |
6826 | * c-pch.c: Likewise. | |
6827 | * c-ppoutput.c: Likewise. | |
6828 | * c-pragma.c: Likewise. | |
6829 | * c-pretty-print.c: Likewise. | |
6830 | * c-semantics.c: Likewise. | |
6831 | * c-ubsan.c: Likewise. | |
6832 | * cilk.c: Likewise. | |
6833 | * stub-objc.c: Likewise. | |
6834 | ||
6ac48155 DM |
6835 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
6836 | ||
6837 | PR c/66220: | |
6838 | * c-indentation.c (should_warn_for_misleading_indentation): Use | |
6839 | expand_location rather than expand_location_to_spelling_point. | |
6840 | Don't warn if the guarding statement is more indented than the | |
6841 | next/body stmts. | |
6842 | ||
773ce42e DM |
6843 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
6844 | ||
6845 | * c-indentation.c (warn_for_misleading_indentation): Bail out | |
6846 | immediately if -Wmisleading-indentation isn't enabled. | |
6847 | ||
4fef8379 ML |
6848 | 2015-06-01 Martin Liska <mliska@suse.cz> |
6849 | ||
6850 | * c-format.c (check_format_arg):Use new type-based pool allocator. | |
6851 | (check_format_info_main) Likewise. | |
6852 | ||
1edfb384 EB |
6853 | 2015-05-31 Eric Botcazou <ebotcazou@adacore.com> |
6854 | ||
6855 | * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant. | |
6856 | (has_nontrivial_methods): Likewise. | |
6857 | ||
9677ef52 MP |
6858 | 2015-05-25 Marek Polacek <polacek@redhat.com> |
6859 | ||
6860 | * c-ubsan.c (ubsan_instrument_shift): Use type0. | |
6861 | ||
fd5c817a MP |
6862 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
6863 | ||
6864 | PR c/47043 | |
6865 | * c-common.c (handle_deprecated_attribute): Allow CONST_DECL. | |
6866 | ||
a2f45fe6 | 6867 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
581edfa3 TS |
6868 | |
6869 | * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with | |
6870 | STACK_GROWS_DOWNWARD. | |
6871 | ||
a2f45fe6 | 6872 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
62f9f30b TS |
6873 | |
6874 | * c-cppbuiltin.c (c_cpp_builtins): Check the value of | |
6875 | STACK_GROWS_DOWNWARD rather than if it is defined. | |
6876 | ||
0fee2ac2 | 6877 | 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
b1726d6c | 6878 | |
0fee2ac2 MLI |
6879 | PR c/52952 |
6880 | * c-format.c (location_column_from_byte_offset): New. | |
6881 | (location_from_offset): New. | |
6882 | (struct format_wanted_type): Add offset_loc field. | |
6883 | (check_format_info): Move handling of location for extra arguments | |
6884 | closer to the point of warning. | |
6885 | (check_format_info_main): Pass the result of location_from_offset | |
6886 | to warning_at. | |
6887 | (format_type_warning): Pass the result of location_from_offset | |
6888 | to warning_at. | |
6889 | ||
cf4ef6f7 MP |
6890 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
6891 | ||
6892 | * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P. | |
6893 | ||
3a65ee74 MP |
6894 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
6895 | ||
6896 | * c-ada-spec.c (dump_sloc): Use DECL_P. | |
6897 | ||
21b634ae MP |
6898 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
6899 | ||
6900 | * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
6901 | * c-common.c: Likewise. | |
6902 | ||
0e50b624 DM |
6903 | 2015-05-19 David Malcolm <dmalcolm@redhat.com> |
6904 | ||
6905 | * c-common.h (fe_file_change): Strengthen param from | |
6906 | const line_map * to const line_map_ordinary *. | |
6907 | (pp_file_change): Likewise. | |
6908 | * c-lex.c (fe_file_change): Likewise. | |
6909 | (cb_define): Use linemap_check_ordinary when invoking | |
6910 | SOURCE_LINE. | |
6911 | (cb_undef): Likewise. | |
6912 | * c-opts.c (c_finish_options): Use linemap_check_ordinary when | |
6913 | invoking cb_file_change. | |
6914 | (c_finish_options): Likewise. | |
6915 | (push_command_line_include): Likewise. | |
6916 | (cb_file_change): Strengthen param "new_map" from | |
6917 | const line_map * to const line_map_ordinary *. | |
6918 | * c-ppoutput.c (cb_define): Likewise for local "map". | |
6919 | (pp_file_change): Likewise for param "map" and local "from". | |
6920 | ||
fab27f52 MM |
6921 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
6922 | ||
6923 | * c-common.c (shorten_compare): Use std::swap instead of explicit swaps. | |
6924 | ||
2fe1d762 TV |
6925 | 2015-05-18 Tom de Vries <tom@codesourcery.com> |
6926 | ||
6927 | * c-common.c (build_va_arg_1): New function. | |
6928 | (build_va_arg): Add address operator to va_list operand if necessary. | |
6929 | ||
7a37fa90 MM |
6930 | 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com> |
6931 | ||
6932 | PR c/48956 | |
6933 | * c-common.c (int_safely_convertible_to_real_p): Define. | |
6934 | (unsafe_conversion_p): Check conversions involving complex types. | |
6935 | (conversion_warning): Add new warning message for conversions which | |
6936 | discard imaginary component. | |
6937 | * c-common.h: (enum conversion_safety): Add new enumerator for such | |
6938 | conversions. | |
6939 | ||
3aa3c9fc MP |
6940 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
6941 | ||
6942 | PR c/66066 | |
6943 | PR c/66127 | |
6944 | * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal. | |
6945 | (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with | |
6946 | C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and | |
6947 | use it. If FOR_INT_CONST, require that all evaluated operands be | |
6948 | INTEGER_CSTs. | |
6949 | ||
c3388e62 DM |
6950 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
6951 | ||
6952 | * c-common.h (warn_for_misleading_indentation): New prototype. | |
6953 | * c-indentation.c: New file. | |
6954 | * c.opt (Wmisleading-indentation): New option. | |
6955 | ||
c7b38fd5 TV |
6956 | 2015-05-12 Tom de Vries <tom@codesourcery.com> |
6957 | ||
6958 | PR tree-optimization/66010 | |
6959 | * c-common.c (build_va_arg): Don't mark ap addressable unless necessary. | |
6960 | ||
381bf11e JM |
6961 | 2015-05-09 Jason Merrill <jason@redhat.com> |
6962 | ||
edff0c06 JM |
6963 | * c-opts.c (c_common_post_options): Also clear |
6964 | cpp_opts->cpp_warn_cxx11_compat. | |
6965 | ||
129211bc JM |
6966 | * c-common.h (enum cxx_dialect): Add cxx_unset. |
6967 | * c-common.c (cxx_dialect): Initialize to cxx_unset. | |
6968 | * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset. | |
6969 | ||
381bf11e JM |
6970 | * c.opt (std=c++14): Remove Undocumented flag and experimental warning. |
6971 | (std=gnu++0x): Mark as Undocumented. | |
6972 | (std=gnu++1y): Add deprecated message. | |
6973 | ||
fe191308 JM |
6974 | 2015-05-08 Jason Merrill <jason@redhat.com> |
6975 | ||
765189ff JM |
6976 | * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat. |
6977 | * c-opts.c: Adjust. | |
6978 | ||
fe191308 JM |
6979 | * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat. |
6980 | ||
755e528f MP |
6981 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
6982 | ||
6983 | PR c/64918 | |
6984 | * c.opt (Woverride-init-side-effects): New option. | |
6985 | ||
0173bd2a MP |
6986 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
6987 | ||
6988 | PR c/65179 | |
6989 | * c-common.c (c_fully_fold_internal): Warn when left shifting a | |
6990 | negative value. | |
6991 | * c.opt (Wshift-negative-value): New option. | |
6992 | * c-opts.c (c_common_post_options): Set warn_shift_negative_value | |
6993 | when -Wextra and C99/C++11 mode. | |
6994 | ||
e0f0d3b9 MP |
6995 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
6996 | Martin Uecker <uecker@eecs.berkeley.edu> | |
6997 | ||
6998 | * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting | |
6999 | flexible member array-like members if SANITIZE_BOUNDS_STRICT. | |
7000 | ||
8243e2a9 JM |
7001 | 2015-05-05 Jason Merrill <jason@redhat.com> |
7002 | ||
7003 | * c.opt (Wterminate): New. | |
7004 | ||
577cd070 MP |
7005 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
7006 | ||
7007 | * c-common.c (maybe_warn_bool_compare): When comparing with 0/1, | |
7008 | require that the non-constant be of a boolean type. | |
7009 | ||
0373796b JT |
7010 | 2015-04-29 Josh Triplett <josh@joshtriplett.org> |
7011 | ||
e0f0d3b9 MP |
7012 | * c-common.c (handle_section_attribute): Refactor to reduce |
7013 | nesting and distinguish between error cases. | |
0373796b | 7014 | |
716c0ba6 MP |
7015 | 2015-04-29 Marek Polacek <polacek@redhat.com> |
7016 | ||
7017 | PR c/64610 | |
7018 | * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean | |
7019 | with 0/1. | |
7020 | ||
8848828b JJ |
7021 | 2015-04-29 Jakub Jelinek <jakub@redhat.com> |
7022 | ||
7023 | * c-common.h (omp_clause_mask): Unconditionally define as a class. | |
7024 | Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of | |
7025 | HOST_BITS_PER_WIDE_INT. | |
7026 | ||
ecd0e562 TV |
7027 | 2015-04-28 Tom de Vries <tom@codesourcery.com> |
7028 | ||
7029 | PR tree-optimization/65887 | |
7030 | * c-common.c (build_va_arg): Mark va_arg ap argument as addressable. | |
7031 | ||
2a877204 | 7032 | 2015-04-28 Eric Botcazou <ebotcazou@adacore.com> |
e0f0d3b9 | 7033 | Pierre-Marie de Rodat <derodat@adacore.com> |
2a877204 EB |
7034 | |
7035 | * c-ada-spec.c (in_function): Delete. | |
7036 | (dump_generic_ada_node): Do not change in_function and remove the | |
7037 | redundant code dealing with it. | |
7038 | (print_ada_declaration): Do not change in_function. Use INDENT_INCR. | |
7039 | (print_ada_methods): Output the static member functions in a nested | |
7040 | package after the regular methods as well as associated renamings. | |
7041 | ||
4853031e MP |
7042 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
7043 | ||
7044 | PR c/65830 | |
7045 | * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative | |
7046 | and OPT_Wshift_count_overflow. | |
7047 | ||
8c2b7f79 MP |
7048 | PR c/63357 |
7049 | * c-common.c (warn_logical_operator): Warn if the operands have the | |
7050 | same expressions. | |
7051 | ||
b8787813 MP |
7052 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
7053 | ||
7054 | PR c/61534 | |
7055 | * c-common.c (warn_logical_operator): Bail if either operand comes | |
7056 | from a macro expansion. | |
7057 | ||
8fba1830 BRF |
7058 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
7059 | ||
7060 | PR target/55143 | |
7061 | * c-common.c (c_default_pointer_mode): Add definition. | |
7062 | * c-common.h (c_default_pointer_mode): Add declaration. | |
7063 | ||
17958621 JJ |
7064 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
7065 | ||
7066 | * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup | |
7067 | on record_builtin_type argument. | |
7068 | ||
7ccb1a11 JJ |
7069 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
7070 | ||
7071 | PR c/65120 | |
7072 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
7073 | !x == 0 or !x != 0. | |
7074 | ||
04fd785e MP |
7075 | 2015-03-07 Marek Polacek <polacek@redhat.com> |
7076 | ||
7077 | PR sanitizer/65280 | |
7078 | * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF | |
7079 | before trying to figure out whether we have a flexible array member. | |
7080 | ||
a4e26206 | 7081 | 2015-03-06 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 7082 | Jonathan Wakely <jwakely.gcc@gmail.com> |
a4e26206 EB |
7083 | |
7084 | * c-ada-spec.c (dump_ada_double_name): Fix pasto. | |
7085 | ||
0d2489f4 EB |
7086 | 2015-03-05 Eric Botcazou <ebotcazou@adacore.com> |
7087 | ||
7088 | PR ada/65319 | |
7089 | * c-ada-spec.c (print_destructor): Remove obsolete code. | |
7090 | ||
83ed54d7 EB |
7091 | 2015-03-01 Eric Botcazou <ebotcazou@adacore.com> |
7092 | ||
7093 | * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX. | |
7094 | (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and | |
7095 | DECL_TEMPLATE_RESULT emulations. | |
7096 | (dump_ada_template)): Add guard for TYPE_METHODS. | |
7097 | ||
7631f0e2 MP |
7098 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
7099 | ||
7100 | PR c/65040 | |
7101 | * c.opt (Wformat-signedness): Don't enable by -Wformat=2. | |
7102 | ||
d1783ae5 KT |
7103 | 2015-02-27 Kai Tietz <ktietz@redhat.com> |
7104 | ||
7105 | PR c/35330 | |
7106 | * c-pragma.c (handle_pragma_weak): Do not try to create | |
7107 | weak/alias of declarations not being function, or variable | |
7108 | declarations. | |
7109 | ||
56a9f6bc TS |
7110 | 2015-02-24 Thomas Schwinge <thomas@codesourcery.com> |
7111 | ||
7112 | PR libgomp/64625 | |
7113 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
7114 | Remove macros. | |
7115 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
7116 | ||
3d5cb23d MP |
7117 | 2015-02-16 Marek Polacek <polacek@redhat.com> |
7118 | ||
7119 | PR c/65066 | |
7120 | * c-format.c (check_format_types): Handle null param. | |
7121 | ||
fa008882 MP |
7122 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
7123 | ||
7124 | PR c/65040 | |
7125 | * c-format.c (check_format_types): Don't warn about different | |
7126 | signedness if the original value is in the range of WANTED_TYPE. | |
7127 | ||
785f21af JM |
7128 | 2015-02-12 Jason Merrill <jason@redhat.com> |
7129 | ||
7130 | PR c++/64956 | |
7131 | * c-opts.c (c_common_post_options): Change flag_abi_version from 0 | |
7132 | to the current highest version. | |
7133 | * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0. | |
7134 | ||
4886ec8e JJ |
7135 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
7136 | ||
7137 | PR c/64824 | |
7138 | PR c/64868 | |
7139 | * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR | |
7140 | instead of RDIV_EXPR. Use build_binary_op instead of | |
7141 | build2_loc. | |
7142 | ||
40fecdd6 JM |
7143 | 2015-01-30 Joseph Myers <joseph@codesourcery.com> |
7144 | ||
7145 | * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed | |
7146 | to pass input_location as first argument. | |
7147 | ||
a0c88d06 TV |
7148 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
7149 | ||
7150 | PR libgomp/64672 | |
7151 | * c.opt (fopenacc): Mark as LTO option. | |
7152 | ||
1506ae0e TV |
7153 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
7154 | ||
7155 | PR libgomp/64707 | |
7156 | * c.opt (fopenmp): Mark as LTO option. | |
7157 | ||
31be63ab JJ |
7158 | 2015-01-21 Jakub Jelinek <jakub@redhat.com> |
7159 | ||
7160 | PR c/63307 | |
b1726d6c | 7161 | * cilk.c (fill_decls_vec): Only put decls into vector v. |
31be63ab JJ |
7162 | (compare_decls): Fix up formatting. |
7163 | ||
7164 | 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com> | |
7165 | ||
7166 | PR c/63307 | |
7167 | * cilk.c: Include vec.h. | |
7168 | (struct cilk_decls): New structure. | |
7169 | (wrapper_parm_cb): Split this function to... | |
7170 | (fill_decls_vec): ...this... | |
7171 | (create_parm_list): ...and this. | |
7172 | (compare_decls): New function. | |
7173 | (for_local_cb): Remove. | |
7174 | (wrapper_local_cb): Ditto. | |
7175 | (build_wrapper_type): For now first traverse and fill vector of | |
7176 | declarations then sort it and then deal with sorted vector. | |
7177 | (cilk_outline): Ditto. | |
7178 | (declare_one_free_variable): Ditto. | |
7179 | ||
6875457f JM |
7180 | 2015-01-21 Jason Merrill <jason@redhat.com> |
7181 | ||
7182 | PR c++/64629 | |
7183 | * c-format.c (check_format_arg): Call decl_constant_value. | |
7184 | ||
185c9e56 ML |
7185 | 2015-01-19 Martin Liska <mliska@suse.cz> |
7186 | ||
7187 | * c-common.c (handle_noicf_attribute): New function. | |
7188 | ||
41dbbb37 TS |
7189 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
7190 | Bernd Schmidt <bernds@codesourcery.com> | |
7191 | James Norris <jnorris@codesourcery.com> | |
7192 | Cesar Philippidis <cesar@codesourcery.com> | |
7193 | Ilmir Usmanov <i.usmanov@samsung.com> | |
7194 | Jakub Jelinek <jakub@redhat.com> | |
7195 | ||
7196 | * c.opt (fopenacc): New option. | |
7197 | * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC. | |
7198 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
7199 | New macros. | |
7200 | * c-common.h (c_finish_oacc_wait): New prototype. | |
7201 | * c-omp.c: Include "omp-low.h" and "gomp-constants.h". | |
7202 | (c_finish_oacc_wait): New function. | |
7203 | * c-pragma.c (oacc_pragmas): New variable. | |
7204 | (c_pp_lookup_pragma, init_pragma): Handle it. | |
7205 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE, | |
7206 | PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA, | |
7207 | PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL, | |
7208 | PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT. | |
7209 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC, | |
7210 | PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE, | |
7211 | PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN, | |
7212 | PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE, | |
7213 | PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE, | |
7214 | PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE, | |
7215 | PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST, | |
7216 | PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS, | |
7217 | PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT, | |
7218 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY, | |
7219 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN, | |
7220 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT, | |
7221 | PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE, | |
7222 | PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF, | |
7223 | PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR, | |
7224 | PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT, | |
7225 | PRAGMA_OACC_CLAUSE_WORKER. | |
7226 | ||
3f8257db | 7227 | 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com> |
5434dc07 MD |
7228 | |
7229 | * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__ | |
7230 | for the new option fstack-protector_explicit. | |
7231 | * c-common.c (c_common_attribute_table): Add stack_protect attribute. | |
7232 | (handle_stack_protect_attribute): New function. | |
7233 | ||
3f8257db | 7234 | 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu> |
de1b5c17 MU |
7235 | |
7236 | * c.opt: New option -Warray-bounds=. | |
7237 | ||
adfac8df JJ |
7238 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
7239 | ||
7240 | * array-notation-common.c: Include hash-set.h, machmode.h, | |
7241 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7242 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
7243 | * c-ada-spec.c: Ditto. | |
7244 | * c-cilkplus.c: Ditto. | |
7245 | * c-common.c: Include input.h due to flattening of tree.h. | |
7246 | Define macro GCC_C_COMMON_C. | |
7247 | * c-common.h: Flatten tree.h header files into c-common.h. | |
7248 | Remove include of tree-core.h. | |
7249 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
7250 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7251 | fold-const.h, wide-int.h, and inchash.h due to | |
7252 | flattening of tree.h. | |
7253 | * c-dump.c: Ditto. | |
7254 | * c-format.c: Flatten tree.h header files into c-common.h. | |
7255 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
7256 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7257 | fold-const.h, wide-int.h, and inchash.h due to | |
7258 | flattening of tree.h. | |
7259 | * c-dump.c: Include hash-set.h, machmode.h, | |
7260 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7261 | fold-const.h, wide-int.h, and inchash.h due to | |
7262 | flattening of tree.h. | |
7263 | * c-format.c: Include hash-set.h, machmode.h, | |
7264 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7265 | fold-const.h, wide-int.h, inchash.h and real.h due to | |
7266 | flattening of tree.h. | |
7267 | * c-gimplify.c: Include hash-set.h, machmode.h, | |
7268 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
7269 | fold-const.h, wide-int.h, and inchash.h due to | |
7270 | flattening of tree.h. | |
7271 | * cilk.c: Ditto. | |
7272 | * c-lex.c: Ditto. | |
7273 | * c-omp.c: Ditto. | |
7274 | * c-opts.c: Ditto. | |
7275 | * c-pch.c: Ditto. | |
7276 | * c-ppoutput.c: Ditto. | |
7277 | * c-pragma.c: Ditto. | |
7278 | * c-pretty-print.c: Ditto. | |
7279 | * c-semantics.c: Ditto. | |
7280 | * c-ubsan.c: Ditto. | |
7281 | * stub-objc.c: Ditto. | |
7282 | ||
f5481fc4 JM |
7283 | 2015-01-08 Jason Merrill <jason@redhat.com> |
7284 | ||
7285 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use | |
7286 | do_ubsan_in_current_function. | |
7287 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
7288 | * c-ubsan.h: Declare it. | |
7289 | ||
de35aa66 MS |
7290 | 2015-01-08 Mike Stump <mikestump@comcast.net> |
7291 | ||
7292 | * c-common.c (c_common_attribute_table): Add no_sanitize_thread. | |
7293 | ||
4a9a42ab MP |
7294 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
7295 | ||
7296 | PR c/64440 | |
7297 | * c-common.c (c_fully_fold_internal): Warn for division and modulo | |
7298 | if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero. | |
7299 | ||
2f42e5de TS |
7300 | 2015-01-05 Trevor Saunders <tsaunders@mozilla.com> |
7301 | ||
7302 | PR c++/31397 | |
7303 | * c.opt (Wsuggest-override): New option. | |
7304 | ||
5624e564 JJ |
7305 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
7306 | ||
7307 | Update copyright years. | |
7308 | ||
5bd012f8 MP |
7309 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
7310 | ||
7311 | PR c/64423 | |
7312 | * c-common.c (warn_array_subscript_with_type_char): Add location_t | |
7313 | parameter. Use it. | |
7314 | * c-common.h (warn_array_subscript_with_type_char): Update | |
7315 | declaration. | |
7316 | ||
a7fa8d18 ESR |
7317 | 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net> |
7318 | ||
7319 | * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro. | |
7320 | Control macro with flag_sized_deallocation. | |
7321 | ||
3f8257db | 7322 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
768952be MU |
7323 | |
7324 | * c.opt (Wdiscarded-array-qualifiers): New option. | |
7325 | ||
1f8d3e84 JJ |
7326 | 2014-12-19 Jakub Jelinek <jakub@redhat.com> |
7327 | ||
7328 | PR preprocessor/63831 | |
7329 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute | |
7330 | and __has_cpp_attribute here. | |
7331 | * c-ppoutput.c (init_pp_output): Set cb->has_attribute to | |
7332 | c_common_has_attribute. | |
7333 | * c-common.h (c_common_has_attribute): New prototype. | |
7334 | * c-lex.c (init_c_lex): Set cb->has_attribute to | |
7335 | c_common_has_attribute instead of cb_has_attribute. | |
7336 | (get_token_no_padding): New function. | |
7337 | (cb_has_attribute): Renamed to ... | |
7338 | (c_common_has_attribute): ... this. No longer static. Use | |
7339 | get_token_no_padding, require ()s, don't build TREE_LIST | |
7340 | unnecessarily, fix up formatting, adjust diagnostics, call | |
7341 | init_attributes. | |
7342 | ||
20b06add JM |
7343 | 2014-12-15 Jason Merrill <jason@redhat.com> |
7344 | ||
7345 | * c.opt (-fsized-deallocation, -Wc++14-compat): New. | |
7346 | (-Wsized-deallocation): New. | |
7347 | * c-opts.c (c_common_post_options): -fsized-deallocation defaults | |
7348 | to on in C++14 and up. | |
7349 | ||
94a073b2 JM |
7350 | 2014-12-11 Jason Merrill <jason@redhat.com> |
7351 | ||
acaa5911 JM |
7352 | * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr. |
7353 | ||
94a073b2 JM |
7354 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if |
7355 | we aren't complaining about VLAs. | |
7356 | ||
7fb66c15 MP |
7357 | 2014-12-06 Marek Polacek <polacek@redhat.com> |
7358 | ||
7359 | PR tree-optimization/64183 | |
7360 | * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a | |
7361 | shift-expression if it is integer_type_node. Use types_compatible_p. | |
7362 | ||
b731b390 JJ |
7363 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
7364 | ||
7365 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL | |
7366 | last argument from create_tmp_var_raw and create_tmp_var calls. | |
7367 | * cilk.c (gimplify_cilk_spawn): Likewise. | |
7368 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
7369 | ||
6a4da643 MP |
7370 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
7371 | ||
7372 | * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR | |
7373 | instead of unsigned_type_node. | |
7374 | ||
541e35a6 MP |
7375 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
7376 | ||
7377 | PR c/63862 | |
7378 | * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR | |
7379 | to op1_utype. | |
7380 | * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift | |
7381 | expression to unsigned_type_node. | |
7382 | ||
dcc97066 MW |
7383 | 2014-11-20 Mark Wielaard <mjw@redhat.com> |
7384 | ||
7385 | PR debug/38757 | |
7386 | * c-opts.c (set_std_c89): Set lang_hooks.name. | |
7387 | (set_std_c99): Likewise. | |
7388 | (set_std_c11): Likewise. | |
7389 | (set_std_cxx98): Likewise. | |
7390 | (set_std_cxx11): Likewise. | |
7391 | (set_std_cxx14): Likewise. | |
7392 | (set_std_cxx1z): Likewise. | |
7393 | ||
aa7da51a JJ |
7394 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
7395 | ||
7396 | PR target/63764 | |
7397 | * c-common.h (convert_vector_to_pointer_for_subscript): Change | |
7398 | return type to bool. | |
009a3480 | 7399 | * c-common.c: Include gimple-expr.h. |
aa7da51a JJ |
7400 | (convert_vector_to_pointer_for_subscript): Change return type to |
7401 | bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true | |
7402 | and copy it into a TARGET_EXPR and use that instead of *vecp | |
7403 | directly. | |
7404 | ||
538dd0b7 DM |
7405 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
7406 | ||
7407 | Merger of git branch "gimple-classes-v2-option-3". | |
7408 | * ChangeLog.gimple-classes: New. | |
7409 | * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack" | |
7410 | from being just a vec<gimple> to a vec<gbind *>. | |
7411 | ||
c39a5e99 JJ |
7412 | 2014-11-18 Jakub Jelinek <jakub@redhat.com> |
7413 | ||
7414 | PR sanitizer/63813 | |
7415 | * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type | |
7416 | argument to ptype, set type to TREE_TYPE (ptype). Don't call | |
7417 | get_pointer_alignment for non-pointers. Use ptype, or if it is | |
7418 | reference type, corresponding pointer type, as type of kind | |
7419 | argument. | |
7420 | (ubsan_maybe_instrument_reference, | |
7421 | ubsan_maybe_instrument_member_call): Adjust callers. | |
7422 | ||
8537a4a9 MP |
7423 | 2014-11-15 Marek Polacek <polacek@redhat.com> |
7424 | ||
7425 | PR middle-end/63884 | |
7426 | * array-notation-common.c (is_sec_implicit_index_fn): Return false | |
7427 | for NULL fndecl. | |
7428 | (extract_array_notation_exprs): Return for NULL node. | |
7429 | ||
2079956a JM |
7430 | 2014-11-12 Joseph Myers <joseph@codesourcery.com> |
7431 | ||
7432 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and | |
7433 | undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state. | |
7434 | ||
1304953e JJ |
7435 | 2014-11-12 Jakub Jelinek <jakub@redhat.com> |
7436 | ||
7437 | PR c/59708 | |
7438 | * c-common.c (check_builtin_function_arguments): Handle | |
7439 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW. | |
7440 | ||
e5e44252 AK |
7441 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
7442 | ||
7443 | PR c/60804 | |
7444 | * c-common.h (check_no_cilk): Declare. | |
7445 | * cilk.c (get_error_location): New function. | |
7446 | (check_no_cilk): Dito. | |
7447 | ||
e64b984d AK |
7448 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
7449 | ||
7450 | * cilk.c (recognize_spawn): Use expression location | |
7451 | for error message. | |
7452 | ||
13c21655 PC |
7453 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
7454 | ||
7455 | * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add. | |
7456 | ||
42fd12b1 ESR |
7457 | 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
7458 | ||
7459 | * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros; | |
7460 | (__cpp_rtti, __cpp_exceptions): New macros for C++98; | |
7461 | (__cpp_range_based_for, __cpp_initializer_lists, | |
7462 | __cpp_delegating_constructors, __cpp_nsdmi, | |
7463 | __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros | |
7464 | for C++11; (__cpp_attribute_deprecated): Remove in favor of | |
7465 | __has_cpp_attribute. | |
7466 | * c-lex.c (cb_has_attribute): New callback CPP function; | |
7467 | (init_c_lex): Set has_attribute callback. | |
7468 | ||
6f450181 RB |
7469 | 2014-11-04 Richard Biener <rguenther@suse.de> |
7470 | ||
7471 | * c-common.c (shorten_compare): Do not shorten mixed | |
7472 | DFP and non-DFP compares. | |
7473 | ||
26f0e1d6 ESR |
7474 | 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
7475 | ||
7476 | * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests. | |
7477 | * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test. | |
7478 | Commentary and rearrangement of tests. | |
7479 | * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test. | |
7480 | Commentary and rearrangement of tests. | |
ab20d992 | 7481 | * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto. |
26f0e1d6 ESR |
7482 | * g++.dg/cpp1y/feat-cxx98.C: Commentary. |
7483 | ||
ef4bddc2 RS |
7484 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
7485 | ||
7486 | * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant | |
7487 | enum from machine_mode. | |
7488 | ||
c582198b AM |
7489 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
7490 | ||
adfac8df JJ |
7491 | * c-common.c: Adjust include files. |
7492 | * c-gimplify.c: Ditto. | |
7493 | * cilk.c: Ditto. | |
7494 | * c-pragma.c: Ditto. | |
7495 | * c-ubsan.c: Ditto. | |
c582198b | 7496 | |
60393bbc AM |
7497 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
7498 | ||
7499 | * c-gimplify.c: Adjust include files. | |
7500 | ||
d723bb7c MLI |
7501 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7502 | ||
7503 | PR c++/53061 | |
7504 | * c-opts.c (c_common_diagnostics_set_defaults): Renamed from | |
7505 | c_common_initialize_diagnostics. | |
7506 | * c-common.h: Likewise. | |
7507 | ||
90f3520e MP |
7508 | 2014-10-24 Marek Polacek <polacek@redhat.com> |
7509 | ||
7510 | PR c/56980 | |
7511 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't | |
7512 | print "struct"/"union"/"enum" for typedefed names. | |
7513 | ||
59d7607a MP |
7514 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
7515 | ||
7516 | * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR | |
7517 | in unsigned type. | |
7518 | ||
d95a2703 JJ |
7519 | 2014-10-22 Jakub Jelinek <jakub@redhat.com> |
7520 | Yury Gribov <y.gribov@samsung.com> | |
7521 | ||
7522 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
7523 | ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask | |
7524 | instead of flag_sanitize_recover as bool flag. | |
7525 | ||
8e6ef852 KY |
7526 | 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com> |
7527 | ||
7528 | * cilk.c: Revert previous change. | |
7529 | ||
948cf550 IZ |
7530 | 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com> |
7531 | ||
7532 | PR c/63307 | |
7533 | * cilk.c: Include vec.h. | |
7534 | (struct cilk_decls): New structure. | |
7535 | (wrapper_parm_cb): Split this function to... | |
7536 | (fill_decls_vec): ...this... | |
7537 | (create_parm_list): ...and this. | |
7538 | (compare_decls): New function. | |
7539 | (for_local_cb): Remove. | |
7540 | (wrapper_local_cb): Ditto. | |
7541 | (build_wrapper_type): For now first traverse and fill vector of | |
7542 | declarations then sort it and then deal with sorted vector. | |
7543 | (cilk_outline): Ditto. | |
7544 | (declare_one_free_variable): Ditto. | |
7545 | ||
92574c7c MP |
7546 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
7547 | ||
7548 | * c-opts.c (c_common_post_options): Set warn_implicit_int. | |
7549 | * c.opt (Wimplicit-int): Initialize to -1. | |
7550 | ||
83685514 AM |
7551 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
7552 | ||
7553 | * c-pragma.c: Adjust include files. | |
7554 | * c-semantics.c: Likewise. | |
7555 | ||
5b8300ea DD |
7556 | 2014-10-16 DJ Delorie <dj@redhat.com> |
7557 | ||
7558 | * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are | |
7559 | multiples of bytes. | |
7560 | ||
5f83e90b JM |
7561 | 2014-10-14 Jason Merrill <jason@redhat.com> |
7562 | ||
7563 | PR c++/63455 | |
7564 | * c-common.h (CPP_PREPARSED_EXPR): New. | |
7565 | (N_CP_TTYPES): Adjust. | |
7566 | ||
d73326ca MP |
7567 | 2014-10-15 Marek Polacek <polacek@redhat.com> |
7568 | ||
7569 | * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C. | |
7570 | ||
78a7c317 DD |
7571 | 2014-10-14 DJ Delorie <dj@redhat.com> |
7572 | ||
7573 | * c-pretty-print.c (pp_c_integer_constant): Check for all __intN | |
7574 | types, not just __int128. | |
7575 | * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN | |
7576 | types, not just __int128. | |
7577 | (cpp_atomic_builtins): Round pointer sizes up. | |
7578 | (type_suffix): Use type precision, not specific types. | |
7579 | * c-common.c (c_common_reswords): Remove __int128 special case. | |
7580 | (c_common_type_for_size): Check for all __intN types, not just | |
7581 | __int128. | |
7582 | (c_common_type_for_mode): Likewise. | |
7583 | (c_common_signed_or_unsigned_type): Likewise. | |
7584 | (c_build_bitfield_integer_type): Likewise. | |
7585 | (c_common_nodes_and_builtins): Likewise. | |
7586 | (keyword_begins_type_specifier): Likewise. | |
7587 | * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all | |
7588 | __intN variants. | |
7589 | ||
2a22f99c TS |
7590 | 2014-10-12 Trevor Saunders <tsaunders@mozilla.com> |
7591 | ||
7592 | * c-common.c: Use hash_table instead of hashtab. | |
7593 | ||
2a8ef767 ESR |
7594 | 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net> |
7595 | ||
adfac8df | 7596 | * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the |
2a8ef767 ESR |
7597 | C++11 section. |
7598 | ||
3c9aabbd MG |
7599 | 2014-10-03 Marc Glisse <marc.glisse@inria.fr> |
7600 | ||
7601 | PR c++/54427 | |
7602 | PR c++/57198 | |
7603 | PR c++/58845 | |
7604 | * c-common.c (warn_logical_operator): Punt for vectors. | |
7605 | ||
a15f7cb8 ESR |
7606 | 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
7607 | ||
7608 | Implement SD-6: SG10 Feature Test Recommendations | |
7609 | * c-cppbuiltin.c (c_cpp_builtins()): Define language feature | |
7610 | macros and the __has_header macro. | |
7611 | ||
8d0cf15e JM |
7612 | 2014-09-30 Jason Merrill <jason@redhat.com> |
7613 | ||
dd5d5481 JM |
7614 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and |
7615 | RID_IS_TRIVIALLY_CONSTRUCTIBLE. | |
7616 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
7617 | ||
b752325e JM |
7618 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE. |
7619 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
7620 | ||
8d0cf15e JM |
7621 | * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO. |
7622 | * c-common.c (c_common_reswords): Remove __is_convertible_to. | |
7623 | ||
083e891e MP |
7624 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
7625 | ||
7626 | PR c/61405 | |
7627 | PR c/53874 | |
7628 | * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD. | |
7629 | ||
7861b648 AK |
7630 | 2014-09-23 Andi Kleen <ak@linux.intel.com> |
7631 | ||
7632 | * c-common.c (handle_no_reorder_attribute): New function. | |
7633 | (c_common_attribute_table): Add no_reorder attribute. | |
7634 | ||
9a79452d JM |
7635 | 2014-09-22 Joseph Myers <joseph@codesourcery.com> |
7636 | ||
7637 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
7638 | __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point | |
7639 | modes. | |
7640 | ||
dd69f047 JM |
7641 | 2014-09-18 Joseph Myers <joseph@codesourcery.com> |
7642 | ||
7643 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__ | |
7644 | for supported floating-point modes. | |
7645 | ||
737a4826 MLI |
7646 | 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7647 | ||
7648 | * c.opt (Wpsabi): Use LangEnabledBy. | |
7649 | * c-opts.c (c_common_handle_option): Do not handle here. | |
7650 | ||
8cc4b7a2 JM |
7651 | 2014-09-12 Joseph Myers <joseph@codesourcery.com> |
7652 | ||
7653 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__ | |
7654 | macros for floating-point modes. | |
7655 | ||
179b5a55 MG |
7656 | 2014-09-11 Marc Glisse <marc.glisse@inria.fr> |
7657 | ||
7658 | PR target/58757 | |
7659 | * c-cppbuiltin.c (builtin_define_float_constants): Correct | |
7660 | __*_DENORM_MIN__ without denormals. | |
7661 | ||
570a11fe JJ |
7662 | 2014-09-10 Jakub Jelinek <jakub@redhat.com> |
7663 | ||
7664 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
7665 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
7666 | ubsan_create_data callers. | |
7667 | (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if | |
7668 | index is constant or BIT_AND_EXPR with constant mask and is | |
7669 | small enough for the bound. | |
7670 | * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of | |
7671 | ARRAY_REF, make sure the inner ARRAY_REF is not walked again. | |
7672 | ||
b559c810 MLI |
7673 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7674 | ||
7675 | * c.opt: Add CppReason to various flags. | |
7676 | (Wdate-time): Re-sort. | |
7677 | * c-common.c: Include c-common.h earlier. | |
7678 | (struct reason_option_codes_t): Delete. | |
7679 | (c_option_controlling_cpp_error): Prefix global type and struct | |
7680 | with cpp_. | |
7681 | ||
1ef33fd4 MLI |
7682 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7683 | ||
7684 | * c.opt (Wnormalized): New. | |
7685 | (Wnormalized=): Use Enum and Reject Negative. | |
7686 | * c-opts.c (c_common_handle_option): Do not handle Wnormalized here. | |
7687 | ||
66bb34c0 JM |
7688 | 2014-09-08 Joseph Myers <joseph@codesourcery.com> |
7689 | ||
7690 | * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa | |
7691 | digits of floating-point modes if -fbuilding-libgcc. | |
7692 | ||
53d68b9f JM |
7693 | 2014-09-05 Joseph Myers <joseph@codesourcery.com> |
7694 | ||
7695 | * c-cppbuiltin.c (c_cpp_builtins): Also define | |
7696 | __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__, | |
7697 | __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__, | |
7698 | __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__, | |
7699 | __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__, | |
7700 | __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__, | |
7701 | __LIBGCC_STACK_GROWS_DOWNWARD__, | |
7702 | __LIBGCC_DONT_USE_BUILTIN_SETJMP__, | |
7703 | __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__, | |
7704 | __LIBGCC_DWARF_FRAME_REGISTERS__, | |
7705 | __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__, | |
7706 | __LIBGCC_STACK_POINTER_REGNUM__ and | |
7707 | __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc. | |
7708 | (builtin_define_with_value): Handle backslash-escaping in string | |
7709 | macro values. | |
7710 | ||
f65586dc RB |
7711 | 2014-09-05 Richard Biener <rguenther@suse.de> |
7712 | ||
7713 | PR middle-end/63148 | |
7714 | * c-format.c (check_format_arg): Properly handle | |
7715 | effectively signed POINTER_PLUS_EXPR offset. | |
7716 | ||
2b71f4a4 MLI |
7717 | 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7718 | ||
7719 | * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels, | |
7720 | Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic, | |
7721 | (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var | |
7722 | and Init. | |
7723 | * c-opts.c (c_common_handle_option): Do not handle here. | |
7724 | (sanitize_cpp_opts): Likewise. | |
7725 | * c-common.c (struct reason_option_codes_t): Handle | |
7726 | CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. | |
7727 | ||
d2e4feca MP |
7728 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
7729 | ||
7730 | * c.opt (Wlogical-not-parentheses): Enable by -Wall. | |
7731 | ||
9a771876 JJ |
7732 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
7733 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
7734 | Igor Zamyatin <igor.zamyatin@intel.com> | |
7735 | ||
7736 | * c-cilkplus.c (cilk_for_number_of_iterations): New function. | |
7737 | * c-common.c (c_common_reswords): Added _Cilk_for. | |
7738 | * c-common.h (enum rid): Added RID_CILK_FOR. | |
7739 | (cilk_for_number_of_iterations): Add declaration. | |
7740 | * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and | |
7741 | CILK_FOR. | |
7742 | * c-pragma.c (init_pragma): Register "grainsize" pragma. | |
7743 | * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE. | |
7744 | ||
81b5d104 MLI |
7745 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7746 | ||
7747 | * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels, | |
7748 | Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs, | |
7749 | Wundef): Use CPP, Var and Init. | |
7750 | * c-opts.c (c_common_handle_option): Do not handle the above flags here. | |
7751 | ||
b753b37b MLI |
7752 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7753 | ||
7754 | * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init. | |
7755 | * c-opts.c (c_common_handle_option): Do not handle here. | |
7756 | ||
028aee17 JM |
7757 | 2014-08-25 Jason Merrill <jason@redhat.com> |
7758 | ||
7759 | * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for | |
7760 | -std=c++14 and -std=gnu++14, rather than the reverse. | |
7761 | * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and | |
7762 | OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14. | |
7763 | * c-common.h (cxx_dialect): Remove cxx1y. | |
7764 | ||
e4276ba5 ESR |
7765 | 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net> |
7766 | ||
7767 | * c-common.h (enum cxx_dialect): Add cxx14. | |
7768 | * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14. | |
7769 | * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from | |
7770 | cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11. | |
7771 | ||
a545cacd JM |
7772 | 2014-08-22 Jason Merrill <jason@redhat.com> |
7773 | ||
7774 | * c.opt (std=gnu++17): Fix alias. | |
7775 | ||
59ea0364 MP |
7776 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
7777 | ||
7778 | PR c++/62199 | |
7779 | * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't | |
7780 | check for vector types. Drop LHS argument. | |
7781 | * c-common.h (warn_logical_not_parentheses): Adjust. | |
7782 | ||
596e808c MLI |
7783 | 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7784 | ||
7785 | * c.opt (Wcomment): Use CPP, Var and LangEnabledBy. | |
7786 | (Wmultichar): Likewise. | |
7787 | (Wdate-time): Use C-family languages instead of Common. Use CPP | |
7788 | and Var. | |
7789 | * c-opts.c (c_common_handle_option): Do not handle the above | |
7790 | options here. | |
7791 | (sanitize_cpp_opts): Likewise. | |
7792 | ||
18767f65 MLI |
7793 | 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7794 | ||
7795 | PR fortran/44054 | |
7796 | * c-opts.c: Include tree-diagnostics.h. | |
7797 | (c_diagnostic_finalizer): New. | |
7798 | (c_common_initialize_diagnostics): Use it. | |
7799 | ||
b4413594 MLI |
7800 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7801 | ||
7802 | PR preprocessor/51303 | |
7803 | * c-common.c (struct reason_option_codes_t option_codes): | |
7804 | Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically. | |
7805 | ||
43f9a13c MLI |
7806 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7807 | ||
7808 | PR c/60975 | |
7809 | PR c/53063 | |
7810 | * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy. | |
7811 | * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto. | |
7812 | (c_common_post_options): Call init_global_opts_from_cpp. | |
7813 | (sanitize_cpp_opts): Do not handle Wvariadic-macros here. | |
7814 | ||
04159acf MP |
7815 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
7816 | ||
7817 | PR c++/62153 | |
7818 | * c-common.c (maybe_warn_bool_compare): New function. | |
7819 | * c-common.h (maybe_warn_bool_compare): Declare. | |
7820 | * c.opt (Wbool-compare): New option. | |
7821 | ||
35aff4fb MP |
7822 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
7823 | ||
7824 | * c.opt (Wc99-c11-compat): New option. | |
7825 | ||
177cce46 MP |
7826 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
7827 | ||
7828 | * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according | |
7829 | to warn_c90_c99_compat. | |
7830 | * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize | |
7831 | to -1. | |
7832 | ||
6ae9194f MLI |
7833 | 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7834 | Steven Bosscher <steven@gcc.gnu.org> | |
7835 | ||
7836 | PR c/52952 | |
7837 | * c-format.c: Add extra_arg_loc and format_string_loc to struct | |
7838 | format_check_results. | |
7839 | (check_function_format): Use true and add comment for boolean | |
7840 | argument. | |
7841 | (finish_dollar_format_checking): Use explicit location when warning. | |
7842 | (check_format_info): Likewise. | |
7843 | (check_format_arg): Set extra_arg_loc and format_string_loc. | |
7844 | (check_format_info_main): Use explicit location when warning. | |
7845 | (check_format_types): Pass explicit location. | |
7846 | (format_type_warning): Likewise. | |
7847 | ||
8e54f6d3 MLI |
7848 | 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7849 | ||
7850 | PR fortran/44054 | |
7851 | * c-format.c: Handle Fortran flags. | |
7852 | ||
cd4e76fc IZ |
7853 | 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com> |
7854 | ||
7855 | PR other/61962 | |
7856 | * array-notation-common.c (find_rank): Added handling for other | |
7857 | types of references. | |
7858 | ||
f3bede71 MP |
7859 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
7860 | ||
7861 | PR c/51849 | |
7862 | * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp. | |
7863 | * c.opt (Wc90-c99-compat): Add option. | |
7864 | ||
9f25a338 TS |
7865 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
7866 | ||
7867 | * c-gimplify.c, cilk.c: Remove includes of pointer-set.h. | |
7868 | ||
62e4eb35 MP |
7869 | 2014-08-03 Marek Polacek <polacek@redhat.com> |
7870 | ||
ab20d992 | 7871 | * c-common.c (check_case_value): Add location_t parameter. Use it. |
62e4eb35 MP |
7872 | (c_add_case_label): Pass loc to check_case_value. |
7873 | ||
b787e7a2 TS |
7874 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
7875 | ||
7876 | * cilk.c: Use hash_map instead of pointer_map. | |
7877 | ||
6e2830c3 TS |
7878 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
7879 | ||
7880 | * c-gimplify.c: Use hash_set instead of pointer_set. | |
7881 | ||
a7ee52fb IZ |
7882 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
7883 | ||
7884 | PR middle-end/61455 | |
7885 | * array-notation-common.c (extract_array_notation_exprs): Handling | |
7886 | of DECL_EXPR added. | |
7887 | ||
944fa280 JJ |
7888 | 2014-08-01 Jakub Jelinek <jakub@redhat.com> |
7889 | ||
7890 | * c-common.h (min_align_of_type): Removed prototype. | |
7891 | * c-common.c (min_align_of_type): Removed. | |
7892 | * c-ubsan.h (ubsan_maybe_instrument_reference, | |
7893 | ubsan_maybe_instrument_member_call): New prototypes. | |
7894 | * c-ubsan.c: Include stor-layout.h and builtins.h. | |
7895 | (ubsan_maybe_instrument_reference_or_call, | |
7896 | ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New | |
7897 | functions. | |
7898 | ||
b4dfdc11 MG |
7899 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
7900 | ||
7901 | PR c++/60517 | |
7902 | * c.opt (-Wreturn-local-addr): Move to common.opt. | |
7903 | ||
a41844e5 JM |
7904 | 2014-07-30 Jason Merrill <jason@redhat.com> |
7905 | ||
7906 | PR c++/61659 | |
7907 | PR c++/61687 | |
7908 | Revert: | |
7909 | * c.opt (-fuse-all-virtuals): New. | |
7910 | ||
976d5a22 TT |
7911 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
7912 | ||
7913 | PR c/59855 | |
7914 | * c.opt (Wdesignated-init): New option. | |
7915 | * c-common.c (c_common_attribute_table): Add "designated_init". | |
7916 | (handle_designated_init): New function. | |
7917 | ||
cdc94aca MP |
7918 | 2014-07-24 Marek Polacek <polacek@redhat.com> |
7919 | ||
7920 | PR c/57653 | |
7921 | * c-opts.c (c_finish_options): If -imacros is in effect, return. | |
7922 | ||
f41373b6 DS |
7923 | 2014-07-16 Dodji Seketeli <dodji@redhat.com> |
7924 | ||
7925 | PR preprocessor/60723 - missing system-ness marks for macro tokens | |
7926 | * c-ppoutput.c (struct print::prev_was_system_token): New data | |
7927 | member. | |
7928 | (init_pp_output): Initialize it. | |
7929 | (maybe_print_line_1, maybe_print_line, print_line_1, print_line) | |
7930 | (do_line_change): Return a flag saying if a line marker was | |
7931 | emitted or not. | |
7932 | (scan_translation_unit): Detect if the system-ness of the token we | |
7933 | are about to emit is different from the one of the previously | |
7934 | emitted token. If so, emit a line marker. Avoid emitting useless | |
7935 | adjacent line markers. Avoid emitting line markers for tokens | |
7936 | originating from the expansion of built-in macros. | |
7937 | (scan_translation_unit_directives_only): Adjust. | |
7938 | ||
4d661eaa MP |
7939 | 2014-07-15 Marek Polacek <polacek@redhat.com> |
7940 | ||
7941 | * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if | |
7942 | TYPE_MAX_VALUE is NULL. | |
7943 | ||
b108f48f JJ |
7944 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
7945 | ||
7946 | PR middle-end/61294 | |
7947 | * c.opt (Wmemset-transposed-args): New warning. | |
7948 | ||
c0221884 JM |
7949 | 2014-07-10 Jason Merrill <jason@redhat.com> |
7950 | ||
7951 | PR c++/61659 | |
7952 | PR c++/61687 | |
7953 | * c.opt (-fuse-all-virtuals): New. | |
7954 | ||
63dfbb95 RB |
7955 | 2014-07-09 Richard Biener <rguenther@suse.de> |
7956 | ||
7957 | PR c-family/61741 | |
7958 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
7959 | using unsigned arithmetic if overflow does not wrap instead of | |
7960 | if overflow is undefined. | |
7961 | ||
773ec47f MP |
7962 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
7963 | ||
7964 | PR c/6940 | |
7965 | * c.opt (Wsizeof-array-argument): New option. | |
7966 | ||
00a7ba58 JJ |
7967 | 2014-07-03 Jakub Jelinek <jakub@redhat.com> |
7968 | ||
b1726d6c | 7969 | * c-ada-spec.c (dump_ada_nodes): Don't call qsort if |
00a7ba58 JJ |
7970 | comments->count <= 1, as comments->entries might be NULL. |
7971 | ||
52ec0ea3 MP |
7972 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
7973 | ||
7974 | * c.opt (Wint-conversion): New option. | |
7975 | ||
d5c3d343 MP |
7976 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
7977 | ||
7978 | PR c/58286 | |
7979 | * c.opt (Wincompatible-pointer-types): New option. | |
7980 | ||
6e7ceb17 PC |
7981 | 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com> |
7982 | ||
7983 | PR c++/51400 | |
7984 | * c-common.c (handle_noreturn_attribute, handle_const_attribute): | |
7985 | Do not discard TYPE_QUALS of type. | |
7986 | ||
da73100b JM |
7987 | 2014-06-26 Jason Merrill <jason@redhat.com> |
7988 | ||
7989 | * c-common.h (enum cxx_dialect): Add cxx1z. | |
7990 | * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New. | |
7991 | * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it. | |
7992 | ||
08eedf75 TJ |
7993 | 2014-06-26 Teresa Johnson <tejohnson@google.com> |
7994 | ||
7995 | * c-common.h (get_dump_info): Declare. | |
7996 | * c-gimplify.c (c_genericize): Use saved dump files. | |
7997 | * c-opts.c (c_common_parse_file): Begin and end dumps | |
7998 | once around parsing invocation. | |
7999 | (get_dump_info): New function. | |
8000 | ||
7b56b2f8 MP |
8001 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
8002 | Andrew MacLeod <amacleod@redhat.com> | |
8003 | ||
8004 | PR c/61553 | |
8005 | * c-common.c (get_atomic_generic_size): Don't segfault if the | |
8006 | type doesn't have a size. | |
8007 | ||
0e37a2f3 MP |
8008 | 2014-06-20 Marek Polacek <polacek@redhat.com> |
8009 | ||
8010 | * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h". | |
8011 | (ubsan_walk_array_refs_r): New function. | |
8012 | (c_genericize): Instrument array bounds. | |
8013 | * c-ubsan.c: Include "internal-fn.h". | |
8014 | (ubsan_instrument_division): Mark instrumented arrays as having | |
8015 | side effects. Adjust ubsan_type_descriptor call. | |
8016 | (ubsan_instrument_shift): Likewise. | |
8017 | (ubsan_instrument_vla): Adjust ubsan_type_descriptor call. | |
8018 | (ubsan_instrument_bounds): New function. | |
8019 | (ubsan_array_ref_instrumented_p): New function. | |
8020 | (ubsan_maybe_instrument_array_ref): New function. | |
8021 | * c-ubsan.h (ubsan_instrument_bounds): Declare. | |
8022 | (ubsan_array_ref_instrumented_p): Declare. | |
8023 | (ubsan_maybe_instrument_array_ref): Declare. | |
8024 | ||
8025 | 2014-06-20 Hale Wang <hale.wang@arm.com> | |
dd6fe7d4 HW |
8026 | |
8027 | PR lto/61123 | |
8028 | * c.opt (fshort-enums): Add to LTO. | |
8029 | * c.opt (fshort-wchar): Likewise. | |
8030 | ||
5c3d09f7 MP |
8031 | 2014-06-16 Marek Polacek <polacek@redhat.com> |
8032 | ||
8033 | PR c/60439 | |
8034 | * c.opt (Wswitch-bool): Add Var. | |
8035 | ||
9cf32741 JJ |
8036 | 2014-06-12 Jakub Jelinek <jakub@redhat.com> |
8037 | ||
8038 | PR middle-end/61486 | |
8039 | * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in | |
8040 | #pragma omp target teams or | |
8041 | #pragma omp {,target }teams distribute simd. | |
8042 | ||
62984918 JM |
8043 | 2014-06-12 Jason Merrill <jason@redhat.com> |
8044 | ||
8045 | * c.opt (Wabi=, fabi-compat-version): New. | |
8046 | * c-opts.c (c_common_handle_option): Handle -Wabi=. | |
8047 | (c_common_post_options): Handle flag_abi_compat_version default. | |
8048 | Disallow -fabi-compat-version=1. | |
8049 | * c-common.h (abi_version_crosses): New. | |
8050 | ||
f961457f JH |
8051 | 2014-06-11 Jan Hubicka <hubicka@ucw.cz> |
8052 | ||
adfac8df | 8053 | * c-common.c (handle_section_attribute): Update handling for |
f961457f JH |
8054 | section names that are no longer trees. |
8055 | ||
92d28cbb JJ |
8056 | 2014-06-10 Jakub Jelinek <jakub@redhat.com> |
8057 | ||
8058 | PR fortran/60928 | |
8059 | * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK... | |
8060 | (omp_pragmas): ... back here. | |
8061 | ||
742938c9 MP |
8062 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
8063 | ||
8064 | PR c/49706 | |
8065 | * c-common.c (warn_logical_not_parentheses): New function. | |
8066 | * c-common.h (warn_logical_not_parentheses): Declare. | |
8067 | * c.opt (Wlogical-not-parentheses): New option. | |
8068 | ||
9d548dfb MP |
8069 | 2014-06-04 Marek Polacek <polacek@redhat.com> |
8070 | ||
8071 | PR c/30020 | |
8072 | * c-common.c (check_case_bounds): Add location parameter. | |
8073 | Use it. | |
8074 | (c_add_case_label): Pass loc to check_case_bounds. | |
8075 | ||
fedfecef MP |
8076 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
8077 | ||
8078 | PR c/60439 | |
8079 | * c.opt (Wswitch-bool): New option. | |
8080 | ||
f6a7cffc TS |
8081 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
8082 | ||
040d18b6 TS |
8083 | * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl): |
8084 | Remove prototypes. | |
8085 | (record_types_used_by_current_var_decl): Move prototype to where | |
8086 | it belongs. | |
8087 | ||
f6a7cffc TS |
8088 | * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6) |
8089 | (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8) | |
8090 | (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes. | |
8091 | ||
632f2871 RS |
8092 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
8093 | ||
8094 | * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete. | |
8095 | * c-common.c (c_common_nodes_and_builtins): Don't initialize | |
8096 | void_zero_node. | |
8097 | * c-pretty-print.c (pp_c_void_constant): New function. | |
8098 | (c_pretty_printer::constant, c_pretty_printer::primary_expression) | |
8099 | (c_pretty_printer::expression): Handle VOID_CST. | |
8100 | * cilk.c (extract_free_variables): Likewise. | |
8101 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift) | |
8102 | (ubsan_instrument_vla): Use void_node instead of void_zero_node. | |
8103 | ||
766090c2 TS |
8104 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
8105 | ||
8106 | * c-common.h (sorted_fields_type): Remove variable_size GTY attribute. | |
8107 | * c-pragma.c (push_alignment): Adjust. | |
8108 | (handle_pragma_push_options): Likewise. | |
8109 | ||
661a0813 MP |
8110 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
8111 | ||
8112 | PR c/50459 | |
8113 | * c-common.c (check_user_alignment): Return -1 if alignment is error | |
8114 | node. | |
8115 | (handle_aligned_attribute): Don't call default_conversion on | |
8116 | FUNCTION_DECLs. | |
8117 | (handle_vector_size_attribute): Likewise. | |
8118 | (handle_tm_wrap_attribute): Handle case when wrap_decl is error node. | |
8119 | (handle_sentinel_attribute): Call default_conversion and allow even | |
8120 | integral types as an argument. | |
8121 | ||
2793eeab MP |
8122 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
8123 | ||
8124 | PR c/61053 | |
8125 | * c-common.c (min_align_of_type): New function factored out from... | |
8126 | (c_sizeof_or_alignof_type): ...here. | |
8127 | * c-common.h (min_align_of_type): Declare. | |
8128 | ||
f827930a MP |
8129 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
8130 | ||
8131 | PR c/61077 | |
8132 | * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified | |
8133 | parameter type of main. | |
8134 | ||
ca49b74e DD |
8135 | 2014-05-07 DJ Delorie <dj@redhat.com> |
8136 | ||
8137 | * c-cppbuiltin.c (print_bits_of_hex): New. | |
8138 | (builtin_define_type_minmax): Print values using hex so as not to | |
8139 | require a pre-computed list of string values. | |
8140 | ||
1d60af08 KZ |
8141 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
8142 | Mike Stump <mikestump@comcast.net> | |
8143 | Richard Sandiford <rdsandiford@googlemail.com> | |
8144 | ||
8145 | * c-ada-spec.c: Include wide-int.h. | |
8146 | (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove. | |
8147 | (dump_generic_ada_node): Use wide-int interfaces. | |
8148 | * c-common.c: Include wide-int-print.h. | |
8149 | (shorten_compare): Use wide-int interfaces and tree_int_cst_lt. | |
8150 | (pointer_int_sum): Use wide-int interfaces. | |
8151 | (c_common_nodes_and_builtins): Use make_int_cst. | |
8152 | (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p. | |
8153 | (handle_alloc_size_attribute): Use wide-int interfaces. | |
8154 | (get_nonnull_operand): Likewise. | |
8155 | * c-format.c (get_constant): Use tree_fits_uhwi_p. | |
8156 | * c-lex.c: Include wide-int.h. | |
8157 | (narrowest_unsigned_type): Take a widest_int rather than two | |
8158 | HOST_WIDE_INTs. | |
8159 | (narrowest_signed_type): Likewise. | |
8160 | (interpret_integer): Update accordingly. Use wide-int interfaces. | |
8161 | (lex_charconst): Use wide-int interfaces. | |
8162 | * c-pretty-print.c: Include wide-int.h. | |
8163 | (pp_c_integer_constant): Use wide-int interfaces. | |
8164 | * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of | |
8165 | INT_CST_LT_UNSIGNED. | |
8166 | ||
b15458be RB |
8167 | 2014-05-06 Richard Biener <rguenther@suse.de> |
8168 | ||
8169 | * c-opts.c (c_common_post_options): For -freestanding, | |
8170 | -fno-hosted and -fno-builtin disable pattern recognition | |
8171 | if not enabled explicitely. | |
8172 | ||
6577374e MP |
8173 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
8174 | ||
8175 | * c.opt (Wsizeof-pointer-memaccess): Describe option. | |
8176 | ||
d00887e8 MP |
8177 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
8178 | ||
8179 | PR c/43245 | |
8180 | * c.opt (Wdiscarded-qualifiers): Add. | |
8181 | ||
f8ed5150 MP |
8182 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
8183 | ||
8184 | * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform | |
8185 | INT_MIN / -1 sanitization only for integer types. | |
8186 | ||
45484dcf MP |
8187 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
8188 | ||
8189 | PR c/18079 | |
8190 | * c-common.c (handle_noinline_attribute): Warn if the attribute | |
8191 | conflicts with always_inline attribute. | |
8192 | (handle_always_inline_attribute): Warn if the attribute conflicts | |
8193 | with noinline attribute. | |
8194 | ||
38e514c0 MP |
8195 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
8196 | ||
8197 | PR c/60156 | |
8198 | * c-common.c (check_main_parameter_types): Warn about variadic main. | |
8199 | ||
44875f92 MS |
8200 | 2014-04-24 Mike Stump <mikestump@comcast.net> |
8201 | ||
8202 | * c.opt (Wshadow-ivar): Default to on. | |
8203 | ||
dcaaa5a0 DP |
8204 | 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com> |
8205 | ||
8206 | * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add. | |
8207 | ||
c07d7c02 MP |
8208 | 2014-04-23 Marek Polacek <polacek@redhat.com> |
8209 | ||
8210 | * c-common.c (handle_tm_wrap_attribute): Tweak error message. | |
8211 | ||
1c33c9b7 JJ |
8212 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
8213 | ||
8214 | PR sanitizer/60275 | |
8215 | * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap () | |
8216 | if flag_sanitize_undefined_trap_on_error. | |
8217 | (ubsan_instrument_division, ubsan_instrument_shift, | |
8218 | ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort () | |
8219 | if !flag_sanitize_recover. | |
8220 | ||
793c625f MG |
8221 | 2014-04-22 Marc Glisse <marc.glisse@inria.fr> |
8222 | ||
8223 | PR libstdc++/43622 | |
8224 | * c-common.c (registered_builtin_types): Make non-static. | |
8225 | * c-common.h (registered_builtin_types): Declare. | |
8226 | ||
b0f1bf36 | 8227 | 2014-04-14 Richard Biener <rguenther@suse.de> |
ab20d992 | 8228 | Marc Glisse <marc.glisse@inria.fr> |
b0f1bf36 RB |
8229 | |
8230 | PR c/60819 | |
8231 | * c-common.c (convert_vector_to_pointer_for_subscript): Properly | |
8232 | apply may-alias the scalar pointer type when applicable. | |
8233 | ||
3b07fa4a IZ |
8234 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
8235 | ||
8236 | PR middle-end/60467 | |
8237 | * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL | |
8238 | as possible argument for Cilk_spawn. | |
8239 | ||
cbbd2b1c TB |
8240 | 2014-04-11 Tobias Burnus <burnus@net-b.de> |
8241 | ||
8242 | PR c/60194 | |
8243 | * c.opt (Wformat-signedness): Add | |
8244 | * c-format.c(check_format_types): Use it. | |
8245 | ||
6415bd5d JM |
8246 | 2014-04-11 Jason Merrill <jason@redhat.com> |
8247 | ||
8248 | PR c++/57926 | |
8249 | * c-common.c (sync_resolve_size, get_atomic_generic_size): Call | |
8250 | default_conversion for an array argument. | |
8251 | ||
6525783a MP |
8252 | 2014-04-08 Marek Polacek <polacek@redhat.com> |
8253 | ||
8254 | PR sanitizer/60745 | |
8255 | * c-ubsan.c: Include asan.h. | |
8256 | (ubsan_instrument_return): Call initialize_sanitizer_builtins. | |
8257 | ||
880a467b NS |
8258 | 2014-04-03 Nathan Sidwell <nathan@codesourcery.com> |
8259 | ||
8260 | * c.opt (Wnon-virtual-dtor): Auto set when Weffc++. | |
8261 | ||
7b59ff2d MP |
8262 | 2014-04-02 Marek Polacek <polacek@redhat.com> |
8263 | ||
8264 | * c-common.h (c_expand_expr): Remove declaration. | |
8265 | ||
8edbfaa6 JJ |
8266 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
8267 | ||
8268 | PR c++/60689 | |
8269 | * c-common.c (add_atomic_size_parameter): When creating new | |
8270 | params vector, push the size argument first. | |
8271 | ||
07d72e1d JJ |
8272 | 2014-03-26 Jakub Jelinek <jakub@redhat.com> |
8273 | ||
8274 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
8275 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
8276 | ubsan_create_data callers. | |
8277 | ||
b35e0fa0 JJ |
8278 | 2014-03-22 Jakub Jelinek <jakub@redhat.com> |
8279 | ||
8280 | PR debug/60603 | |
8281 | * c-opts.c (c_finish_options): Restore cb_file_change call to | |
8282 | <built-in>. | |
8283 | ||
39a1ebb3 JJ |
8284 | 2014-03-13 Jakub Jelinek <jakub@redhat.com> |
8285 | ||
8286 | PR middle-end/36282 | |
8287 | * c-pragma.c (apply_pragma_weak): Only look at | |
8288 | TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if | |
8289 | DECL_ASSEMBLER_NAME_SET_P (decl). | |
8290 | (maybe_apply_pending_pragma_weaks): Exit early if | |
8291 | vec_safe_is_empty (pending_weaks) rather than only when | |
8292 | !pending_weaks. | |
8293 | (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P, | |
8294 | set assembler name back to NULL afterwards. | |
8295 | ||
a07f6ed2 JM |
8296 | 2014-03-11 Jason Merrill <jason@redhat.com> |
8297 | ||
8298 | * c.opt: Add -std=gnu++14. | |
8299 | ||
75b107f5 IB |
8300 | 2014-03-11 Ian Bolton <ian.bolton@arm.com> |
8301 | ||
8302 | * c-opts.c (c_common_post_options): Don't override | |
8303 | -ffp-contract=fast if unsafe-math-optimizations is on. | |
8304 | ||
f42c637e PM |
8305 | 2014-03-08 Paulo Matos <paulo@matos-sorge.com> |
8306 | ||
22b15758 | 8307 | * c.opt: Enable LTO FE for fshort-double. |
f42c637e | 8308 | |
70e24808 JM |
8309 | 2014-03-07 Jason Merrill <jason@redhat.com> |
8310 | ||
8311 | * c.opt: Add -std=c++14. | |
8312 | ||
3af9c5e9 MP |
8313 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
8314 | ||
8315 | PR c/60197 | |
8316 | * cilk.c (contains_cilk_spawn_stmt): New function. | |
8317 | (contains_cilk_spawn_stmt_walker): Likewise. | |
8318 | (recognize_spawn): Give error on invalid use of _Cilk_spawn. | |
8319 | * c-common.h (contains_cilk_spawn_stmt): Add declaration. | |
8320 | ||
b3bdf019 JJ |
8321 | 2014-03-03 Jakub Jelinek <jakub@redhat.com> |
8322 | ||
8323 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD. | |
8324 | (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD | |
8325 | even when flag_preprocess_only. | |
8326 | ||
ca7e759d JM |
8327 | 2014-02-26 Jason Merrill <jason@redhat.com> |
8328 | ||
8329 | PR c++/59231 | |
8330 | PR c++/11586 | |
8331 | * c-common.c (shorten_compare): Don't check | |
8332 | c_inhibit_evaluation_warnings. | |
8333 | ||
28e41874 JJ |
8334 | 2014-02-19 Jakub Jelinek <jakub@redhat.com> |
8335 | ||
cca615af JJ |
8336 | PR c/37743 |
8337 | * c-common.c (c_common_nodes_and_builtins): When initializing | |
8338 | c_uint{16,32,64}_type_node, also set corresponding | |
8339 | uint{16,32,64}_type_node to the same value. | |
8340 | ||
28e41874 JJ |
8341 | PR c++/60267 |
8342 | * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma | |
8343 | for PRAGMA_IVDEP if flag_preprocess_only. | |
8344 | ||
c2bf53a1 JJ |
8345 | 2014-02-12 Jakub Jelinek <jakub@redhat.com> |
8346 | ||
8347 | PR c/60101 | |
8348 | * c-common.c (merge_tlist): If copy is true, call new_tlist, | |
8349 | if false, add ADD itself, rather than vice versa. | |
8350 | (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero | |
8351 | copy. For SAVE_EXPR, only call merge_tlist once. | |
8352 | ||
8fcbce72 JJ |
8353 | 2014-02-08 Jakub Jelinek <jakub@redhat.com> |
8354 | ||
8355 | PR middle-end/60092 | |
8356 | * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p | |
8357 | and tree_to_uhwi. | |
8358 | (handle_alloc_align_attribute, handle_assume_aligned_attribute): New | |
8359 | functions. | |
8360 | (c_common_attribute_table): Add alloc_align and assume_aligned | |
8361 | attributes. | |
8362 | ||
0a756a3f MP |
8363 | 2014-02-06 Marek Polacek <polacek@redhat.com> |
8364 | ||
8365 | PR c/60087 | |
8366 | * c-common.c (warn_for_sign_compare): Call warning_at with location | |
8367 | instead of warning. | |
8368 | ||
7ec4847a MP |
8369 | 2014-02-05 Marek Polacek <polacek@redhat.com> |
8370 | ||
8371 | PR c/53123 | |
8372 | * c-omp.c (c_finish_omp_atomic): Remove unreachable return | |
8373 | statement. | |
8374 | ||
66f20604 MP |
8375 | 2014-02-04 Marek Polacek <polacek@redhat.com> |
8376 | ||
8377 | PR c/60036 | |
8378 | * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or | |
8379 | SAVE_EXPR. | |
8380 | ||
5d77fb19 MG |
8381 | 2014-02-03 Marc Glisse <marc.glisse@inria.fr> |
8382 | ||
8383 | PR c++/53017 | |
8384 | PR c++/59211 | |
8385 | * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute, | |
8386 | handle_vector_size_attribute, handle_nonnull_attribute): Call | |
8387 | default_conversion on the attribute argument. | |
8388 | (handle_nonnull_attribute): Increment the argument number. | |
8389 | ||
81e5eca8 MP |
8390 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
8391 | ||
8392 | PR c/59963 | |
8393 | * c-common.c (add_atomic_size_parameter): Pass vNULL to | |
8394 | build_function_call_vec. | |
8395 | (resolve_overloaded_builtin): Likewise. | |
8396 | * c-common.h (build_function_call_vec): Adjust declaration. | |
8397 | ||
68fca595 MP |
8398 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
8399 | ||
8400 | PR c/59940 | |
8401 | * c-common.h (unsafe_conversion_p): Adjust declaration. | |
8402 | (warnings_for_convert_and_check): Likewise. | |
8403 | (convert_and_check): Likewise. | |
8404 | * c-common.c (unsafe_conversion_p): Add location parameter. Call | |
8405 | expansion_point_location_if_in_system_header on it. | |
8406 | (warnings_for_convert_and_check): Add location parameter. Call | |
8407 | expansion_point_location_if_in_system_header on it. Use it. | |
8408 | (convert_and_check): Add location parameter. Use it. | |
8409 | (conversion_warning): Likewise. | |
8410 | (c_add_case_label): Adjust convert_and_check calls. | |
8411 | (scalar_to_vector): Adjust unsafe_conversion_p calls. | |
8412 | ||
b72271b9 BI |
8413 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8414 | ||
8415 | * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with | |
8416 | flag_cilkplus. | |
8417 | * c-pragma.c (init_pragma): Likewise. | |
8418 | * c.opt: Likewise. | |
8419 | ||
393e8e8b MP |
8420 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
8421 | ||
8422 | PR c/59846 | |
8423 | * c-common.c (shorten_compare): Add location_t parameter. | |
8424 | * c-common.h (shorten_binary_op): Adjust declaration. | |
8425 | ||
f04dda30 MP |
8426 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
8427 | ||
8428 | PR c/58346 | |
8429 | * c-common.c (pointer_to_zero_sized_aggr_p): New function. | |
8430 | * c-common.h: Declare it. | |
8431 | ||
621955cb EB |
8432 | 2014-01-20 Eric Botcazou <ebotcazou@adacore.com> |
8433 | ||
8434 | * c-ada-spec.h (dump_ada_specs): Revert prototype change. | |
8435 | * c-ada-spec.c (dump_ads): Likewise. | |
8436 | (cpp_check): Likewise. | |
8437 | (dump_ada_specs): Likewise. | |
8438 | ||
8439 | 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com> | |
67bf2939 LA |
8440 | |
8441 | PR c++/49718 | |
8442 | * c-common.c (handle_no_instrument_function_attribute): Allow | |
8443 | no_instrument_function attribute in class member | |
8444 | definition/declaration. | |
8445 | ||
241f845a JJ |
8446 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
8447 | ||
8448 | PR c/58943 | |
8449 | * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around | |
8450 | build_modify_expr with non-NOP_EXPR opcode. Handle return from it | |
8451 | being COMPOUND_EXPR. | |
8452 | (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first | |
8453 | operand a SAVE_EXPR and second MODIFY_EXPR. | |
8454 | ||
e83b8e2e JJ |
8455 | 2014-01-09 Jakub Jelinek <jakub@redhat.com> |
8456 | ||
8457 | PR target/58115 | |
8458 | * c-pch.c (c_common_write_pch): Call | |
8459 | prepare_target_option_nodes_for_pch. | |
8460 | ||
23a5b65a RS |
8461 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
8462 | ||
8463 | Update copyright years | |
8464 | ||
f9030485 RS |
8465 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
8466 | ||
8467 | * array-notation-common.c, c-cilkplus.c: Use the standard form for | |
8468 | the copyright notice. | |
8469 | ||
f2aa696b EB |
8470 | 2013-12-28 Eric Botcazou <ebotcazou@adacore.com> |
8471 | ||
8472 | * c-ada-spec.c (print_constructor): New function. | |
8473 | (print_destructor): Retrieve the origin of the destructor. | |
8474 | (print_ada_declaration): Revamp handling of constructors/destructors. | |
8475 | ||
3f8257db | 8476 | 2013-12-23 Stuart Hastings <stuart@apple.com> |
1f26ac87 JM |
8477 | Bill Maddox <maddox@google.com> |
8478 | Jason Merrill <jason@redhat.com> | |
8479 | ||
8480 | * c.opt: Add -fdeclone-ctor-dtor. | |
8481 | * c-opts.c (c_common_post_options): Default to on iff -Os. | |
8482 | ||
41958c28 BI |
8483 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8484 | ||
8485 | * c-common.c (c_common_attribute_table): Added "cilk simd function" | |
8486 | attribute. | |
8487 | * c-pragma.h (enum pragma_cilk_clause): Remove. | |
ab20d992 | 8488 | (enum pragma_omp_clause): Added the following fields: |
41958c28 BI |
8489 | PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK, |
8490 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE, | |
8491 | PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE, | |
8492 | PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE, | |
8493 | PRAGMA_CILK_CLAUSE_UNIFORM. | |
8494 | ||
b1726d6c | 8495 | |
12893402 BI |
8496 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8497 | ||
8498 | * cilk.c (cilk_outline): Made this function non-static. | |
8499 | (gimplify_cilk_spawn): Removed pre_p and post_p arguments. | |
8500 | (create_cilk_wrapper): Added a new parameter: a function pointer. | |
8501 | (c_install_body_w_frame_cleanup): Remove | |
8502 | (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case. | |
8503 | * c-common.h (cilk_outline): New prototype. | |
8504 | (gimplify_cilk_spawn): Removed two parameters. | |
8505 | (cilk_install_body_with_frame_cleanup): New prototype. | |
8506 | * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and | |
8507 | CILK_SPAWN_STMT case. | |
8508 | ||
085b42ed BS |
8509 | 2013-12-11 Bernd Schmidt <bernds@codesourcery.com> |
8510 | ||
2ce064c3 BS |
8511 | * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR. |
8512 | ||
085b42ed BS |
8513 | * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE. |
8514 | (int_array_type_node): Remove. | |
8515 | * c-common.c (c_common_nodes_and_builtins): Don't build it. | |
8516 | ||
9e36c9ed MP |
8517 | 2013-12-05 Marek Polacek <polacek@redhat.com> |
8518 | ||
8519 | PR c/52023 | |
8520 | * c-common.c (c_sizeof_or_alignof_type): Move a declaration into | |
8521 | [ADJUST_FIELD_ALIGN]. | |
8522 | ||
296674db JM |
8523 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
8524 | ||
8525 | PR c/52023 | |
8526 | * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof | |
8527 | and check field alignment if set. | |
8528 | * c-common.h (c_sizeof_or_alignof_type): Update prototype. | |
8529 | (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type. | |
8530 | ||
b1726d6c | 8531 | 2013-12-04 Jakub Jelinek <jakub@redhat.com> |
31e071ae MP |
8532 | Marek Polacek <polacek@redhat.com> |
8533 | ||
8534 | * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow | |
8535 | sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS. | |
8536 | ||
d7947e19 L |
8537 | 2013-11-29 H.J. Lu <hongjiu.lu@intel.com> |
8538 | ||
8539 | PR c/59309 | |
8540 | * cilk.c (gimplify_cilk_spawn): Properly handle function without | |
8541 | arguments. | |
8542 | ||
fad7652e JJ |
8543 | 2013-11-29 Jakub Jelinek <jakub@redhat.com> |
8544 | ||
8545 | PR c/59280 | |
8546 | * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE, | |
8547 | goto invalid. If it is error_mark_node, don't issue further | |
8548 | diagnostics. | |
8549 | ||
8b5e1202 SO |
8550 | 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com> |
8551 | ||
8552 | * c.opt (Wopenmp-simd): New. | |
8553 | ||
0a508bb6 JJ |
8554 | 2013-11-22 Jakub Jelinek <jakub@redhat.com> |
8555 | ||
8556 | * c-ubsan.h (ubsan_instrument_return): New prototype. | |
8557 | * c-ubsan.c (ubsan_instrument_return): New function. | |
8558 | ||
2fb9a547 AM |
8559 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
8560 | ||
8561 | * c-common.c: Add required include files from gimple.h. | |
ab20d992 JJ |
8562 | * c-gimplify.c: Likewise. |
8563 | * cilk.c: Likewise. | |
2fb9a547 | 8564 | |
8400e75e DM |
8565 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
8566 | ||
8567 | * c-common.c (unsafe_conversion_p): Remove use of | |
8568 | EXPR_LOC_OR_HERE macro. | |
8569 | (conversion_warning): Likewise. | |
8570 | (warnings_for_convert_and_check): Likewise. | |
8571 | (warn_for_collisions_1): Likewise. | |
8572 | (shorten_compare): Likewise, and remove use of in_system_header | |
8573 | macro, using the location from the former. | |
8574 | * c-lex.c (dump_one_header): Remove use of input_filename macro. | |
8575 | (cb_def_pragma): Remove use of in_system_header macro. | |
8576 | (lex_string): Likewise. | |
8577 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
8578 | ||
eb1ce453 KZ |
8579 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
8580 | Mike Stump <mikestump@comcast.net> | |
8581 | Richard Sandiford <rdsandiford@googlemail.com> | |
8582 | ||
8583 | * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi | |
8584 | instead of TREE_INT_CST_LOW, in cases where there is a protecting | |
8585 | tree_fits_shwi_p or tree_fits_uhwi_p. | |
8586 | (dump_generic_ada_node): Likewise. | |
8587 | * c-format.c (check_format_arg): Likewise. | |
8588 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
8589 | ||
6b3b8c27 KZ |
8590 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
8591 | ||
8592 | * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi. | |
8593 | ||
49b0aa18 JC |
8594 | 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com> |
8595 | ||
8596 | PR c/53001 | |
8597 | * c-common.c (unsafe_conversion_p): Make this function | |
8598 | return an enumeration with more detail. | |
8599 | (conversion_warning): Use the new return type of | |
8600 | unsafe_conversion_p to separately warn either about conversions | |
8601 | that lower floating point number precision or about the other | |
8602 | kinds of conversions. | |
8603 | * c-common.h (enum conversion_safety): New enumeration. | |
8e745a17 JJ |
8604 | (unsafe_conversion_p): switching return type to |
8605 | conversion_safety enumeration. | |
49b0aa18 JC |
8606 | * c.opt: Adding new warning -Wfloat-conversion and |
8607 | enabling it with -Wconversion. | |
8608 | ||
b826515a BS |
8609 | 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net> |
8610 | ||
8e745a17 JJ |
8611 | * c-opts.c: Include plugin.h. |
8612 | (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE. | |
b826515a | 8613 | |
b9a55b13 MP |
8614 | 2013-11-19 Marek Polacek <polacek@redhat.com> |
8615 | ||
8616 | * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data | |
8617 | call. | |
8618 | (ubsan_instrument_shift): Likewise. | |
8619 | (ubsan_instrument_vla): Likewise. | |
8620 | ||
7d362f6c RS |
8621 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8622 | ||
8623 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove | |
8624 | cast to unsigned type. | |
8625 | ||
386b1f1f RS |
8626 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8627 | ||
8628 | * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than | |
8629 | tree_low_cst. | |
8630 | (complete_array_type): Update comment to refer to tree_to_[su]hwi | |
8631 | rather than tree_low_cst. | |
8632 | ||
ae7e9ddd RS |
8633 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8634 | ||
8635 | * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with | |
8636 | tree_to_uhwi throughout. | |
8637 | ||
9439e9a1 RS |
8638 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8639 | ||
8640 | * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace | |
8641 | tree_low_cst (..., 0) with tree_to_shwi throughout. | |
8642 | ||
cc269bb6 RS |
8643 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8644 | ||
8645 | * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace | |
8646 | host_integerp (..., 1) with tree_fits_uhwi_p throughout. | |
8647 | ||
9541ffee RS |
8648 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8649 | ||
8650 | * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace | |
8651 | host_integerp (..., 0) with tree_fits_shwi_p throughout. | |
8652 | ||
c02065fc AH |
8653 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
8654 | ||
8655 | * c-cilkplus.c: New file. | |
8656 | * c-common.c (readonly_error): Add location argument. | |
8657 | * c-common.h (readonly_error): Same. | |
8658 | (c_finish_cilk_clauses): Protoize. | |
8659 | (c_check_cilk_loop): Same. | |
8660 | c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes. | |
8661 | Do not fail on error_mark_node. | |
8662 | Abstract increment canonicalization to here... | |
8663 | (c_omp_for_incr_canonicalize_ptr): New. | |
8664 | c-pragma.c (init_pragma): Register "simd" pragma. | |
8665 | c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD. | |
8666 | (enum pragma_cilk_clause): New. | |
8667 | ||
9cc65f15 RS |
8668 | 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com> |
8669 | ||
8670 | * c-pretty-print.c (pp_c_character_constant): Remove unnecessary | |
8671 | wchar_type and host_integerp checks. | |
8672 | ||
18f429e2 AM |
8673 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
8674 | ||
8675 | * c-common.c: Likewise. | |
8676 | * c-gimplify.c: Likewise. | |
8677 | * cilk.c: Likewise. | |
8678 | ||
d8a2d370 DN |
8679 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
8680 | ||
8681 | * c-common.c: Include fold-const.h. | |
8682 | Include stor-layout.h. | |
8683 | Include calls.h. | |
8684 | Include stringpool.h. | |
8685 | Include attribs.h. | |
8686 | Include varasm.h. | |
8687 | Include trans-mem.h. | |
8688 | * c-cppbuiltin.c: Include stor-layout.h. | |
8689 | Include stringpool.h. | |
8690 | * c-format.c: Include stringpool.h. | |
8691 | * c-lex.c: Include stringpool.h. | |
8692 | Include stor-layout.h. | |
8693 | * c-pragma.c: Include stringpool.h. | |
8694 | Include attribs.h. | |
8695 | Include varasm.h. | |
8696 | Include gcc-symtab.h. | |
8697 | * c-pretty-print.c: Include stor-layout.h. | |
8698 | Include attribs.h. | |
8699 | * cilk.c: Include stringpool.h. | |
8700 | Include calls.h. | |
8701 | ||
38b7bc7f JM |
8702 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
8703 | ||
8704 | * c-common.h (enum rid): Add RID_AUTO_TYPE. | |
8705 | * c-common.c (c_common_reswords): Add __auto_type. | |
8706 | (keyword_begins_type_specifier): Handle RID_AUTO_TYPE. | |
8707 | ||
45b0be94 AM |
8708 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
8709 | ||
18f429e2 AM |
8710 | * c-common.c: Include gimplify.h. |
8711 | * c-gimplify.c: Likewise. | |
8712 | * cilk.c: Likewise. | |
8713 | * c-omp.c: Include gimple-expr.h instead of gimple.h. | |
8714 | * c-ubsan.c: Don't include gimple.h. | |
45b0be94 | 8715 | |
582d9b50 JM |
8716 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
8717 | ||
8718 | * c-common.c (c_common_reswords): Add _Thread_local. | |
8719 | ||
6b28e197 JM |
8720 | 2013-11-09 Joseph Myers <joseph@codesourcery.com> |
8721 | ||
8722 | * c-common.c (atomic_size_supported_p): New function. | |
8723 | (resolve_overloaded_atomic_exchange) | |
8724 | (resolve_overloaded_atomic_compare_exchange) | |
8725 | (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): | |
8726 | Use it instead of comparing size with a local list of sizes. | |
8727 | ||
267bac10 JM |
8728 | 2013-11-07 Andrew MacLeod <amacleod@redhat.com> |
8729 | Joseph Myers <joseph@codesourcery.com> | |
8730 | ||
8731 | * c-common.h (enum rid): Add RID_ATOMIC. | |
8732 | * c-common.c (c_common_reswords): Add _Atomic. | |
8733 | (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument. | |
8734 | (keyword_is_type_qualifier): Accept RID_ATOMIC. | |
8735 | * c-format.c (check_format_types): Check for extra _Atomic | |
8736 | qualifiers in format argument. | |
8737 | * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier. | |
8738 | (pp_c_type_qualifier_list): Mention _Atomic in comment. | |
8739 | ||
5157b91e TB |
8740 | 2013-11-06 Tobias Burnus <burnus@net-b.de> |
8741 | ||
8742 | * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME. | |
8743 | ||
6dbe0958 JM |
8744 | 2013-11-06 Joseph Myers <joseph@codesourcery.com> |
8745 | ||
8746 | * c-opts.c (c_common_post_options): Set -ffp-contract=off in C | |
8747 | standards modes. | |
8748 | * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast | |
8749 | to mean lack of IEEE 754 support. | |
8750 | ||
e8ff5196 TB |
8751 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
8752 | ||
8753 | * c.opt (-Wdate-time): New option | |
8754 | * c-opts.c (sanitize_cpp_opts): Pass on to libcpp. | |
8755 | ||
254a0760 JM |
8756 | 2013-11-05 Joseph Myers <joseph@codesourcery.com> |
8757 | ||
8758 | * c-cppbuiltin.c (cpp_iec_559_value): Test | |
8759 | flag_excess_precision_cmdline not flag_excess_precision. | |
8760 | ||
6d7f7e0a TB |
8761 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
8762 | ||
8763 | * c.opt (fopenmp-simd): New option. | |
8764 | * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ... | |
8765 | (omp_pragmas): ... this new struct. | |
8766 | (c_pp_lookup_pragma): Also walk omp_pragmas. | |
8767 | (init_pragma): Init pragmas for -fopenmp-simd. | |
8768 | ||
55a7f02f MP |
8769 | 2013-11-04 Marek Polacek <polacek@redhat.com> |
8770 | ||
8771 | PR c++/58979 | |
8772 | * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case. | |
8773 | ||
9193fb05 JM |
8774 | 2013-11-04 Joseph Myers <joseph@codesourcery.com> |
8775 | ||
8776 | * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value): | |
8777 | New functions. | |
8778 | (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX. | |
8779 | ||
94159ecf EB |
8780 | 2013-11-04 Eric Botcazou <ebotcazou@adacore.com> |
8781 | ||
8782 | * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL. | |
8783 | (dump_ada_specs): Adjust prototype of second callback. | |
8784 | * c-ada-spec.c (cpp_check): New global variable. | |
8785 | (dump_ada_nodes): Remove cpp_check parameter and do not pass it down. | |
8786 | (print_generic_ada_decl): Likewise. | |
8787 | (has_static_fields): Change return type to bool and add guard. | |
8788 | (has_nontrivial_methods): New predicate. | |
8789 | (is_tagged_type): Change return type to bool. | |
8790 | (separate_class_package): Call has_nontrivial_methods. | |
8791 | (pp_ada_tree_identifier): Minor tweaks. | |
8792 | (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node. | |
8793 | (dump_ada_array_domains): Likewise. | |
8794 | (dump_ada_array_type): Likewise. | |
8795 | (dump_template_types): Remove cpp_check parameter and do not pass it to | |
8796 | dump_generic_ada_node. | |
8797 | (dump_ada_template): Likewise. | |
8798 | (dump_generic_ada_node): Remove cpp_check parameter and do not pass it | |
8799 | recursively. | |
8800 | (print_ada_methods): Change return type to integer. Remove cpp_check | |
8801 | parameter and do not pass it down. | |
8802 | (dump_nested_types): Remove cpp_check parameter and do not pass it to | |
8803 | dump_generic_ada_node. | |
8804 | (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before | |
8805 | accessing methods. | |
8806 | (print_ada_struct_decl): Remove cpp_check parameter and do not pass it | |
8807 | down. Use has_nontrivial_methods to recognize C++ classes. Use return | |
8808 | value of print_ada_methods. | |
8809 | (dump_ads): Rename cpp_check parameter to check and adjust prototype. | |
8810 | Set cpp_check to it before invoking dump_ada_nodes. | |
8811 | (dump_ada_specs): Likewise. | |
8812 | ||
b906f4ca MP |
8813 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
8814 | ||
8815 | * c-ubsan.c: Don't include hash-table.h. | |
8816 | (ubsan_instrument_vla): New function. | |
8817 | * c-ubsan.h: Declare it. | |
8818 | ||
5e20cdc9 DM |
8819 | 2013-10-31 David Malcolm <dmalcolm@redhat.com> |
8820 | ||
8821 | Automated part of renaming of symtab_node_base to symtab_node. | |
8822 | ||
8823 | Patch autogenerated by rename_symtab.py from | |
8824 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
8825 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
8826 | ||
8827 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename | |
8828 | symtab_node_base to symtab_node. | |
8829 | ||
7057e645 ESR |
8830 | 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net> |
8831 | ||
8e745a17 | 8832 | Implement C++14 digit separators. |
7057e645 ESR |
8833 | * c-lex.c (interpret_float): Remove digit separators from scratch string |
8834 | before building real literal. | |
8835 | ||
193ea7bc JJ |
8836 | 2013-10-30 Jakub Jelinek <jakub@redhat.com> |
8837 | ||
8838 | * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC. | |
8839 | ||
939b37da BI |
8840 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8841 | ||
8842 | * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync | |
8843 | fields. | |
8844 | (c_define_builtins): Called cilk_init_builtins if Cilk Plus is | |
8845 | enabled. | |
8846 | * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC. | |
8847 | (insert_cilk_frame): New prototype. | |
8848 | (cilk_init_builtins): Likewise. | |
8849 | (gimplify_cilk_spawn): Likewise. | |
8850 | (c_cilk_install_body_w_frame_cleanup): Likewise. | |
8851 | (cilk_detect_spawn_and_unwrap): Likewise. | |
8852 | (cilk_set_spawn_marker): Likewise. | |
8853 | (build_cilk_sync): Likewise. | |
8854 | (build_cilk_spawn): Likewise. | |
8855 | * cilk.c: New file. | |
8856 | ||
67348ccc DM |
8857 | 2013-10-29 David Malcolm <dmalcolm@redhat.com> |
8858 | ||
8859 | Patch autogenerated by refactor_symtab.py from | |
8860 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
8861 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
8862 | ||
8863 | * c-gimplify.c (c_genericize): Update for conversion of symtab types | |
8864 | to a true class hierarchy. | |
8865 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise. | |
8866 | ||
d570872d RS |
8867 | 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com> |
8868 | ||
8869 | * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend. | |
8870 | ||
98906124 JL |
8871 | 2013-10-26 Jeff Law <law@redhat.com> |
8872 | ||
adfac8df JJ |
8873 | * c-common.c (c_define_builtins): Remove mudflap support. |
8874 | * c.opt: Ignore and warn for mudflap options. | |
98906124 | 8875 | |
d73749df | 8876 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
8877 | |
8878 | PR other/33426 | |
8879 | * c-pragma.c (init_pragma) Add #pragma ivdep handling. | |
8880 | * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP. | |
8881 | ||
3f04b1bb JM |
8882 | 2013-10-23 Jason Merrill <jason@redhat.com> |
8883 | ||
8884 | * c-format.c (gcc_cxxdiag_char_table): Add %X. | |
8885 | ||
acf0174b JJ |
8886 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
8887 | ||
acd15a28 JJ |
8888 | * c-common.h (omp_clause_mask::operator !=): New method. |
8889 | * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0) | |
8890 | instead of if (mask & something) tests everywhere. | |
8891 | ||
acf0174b JJ |
8892 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to |
8893 | 201307 instead of 201107. | |
8894 | * c-common.c (DEF_FUNCTION_TYPE_8): Define. | |
8895 | (c_common_attribute_table): Add "omp declare target" and | |
8896 | "omp declare simd" attributes. | |
8897 | (handle_omp_declare_target_attribute, | |
8898 | handle_omp_declare_simd_attribute): New functions. | |
8899 | * c-omp.c: Include c-pragma.h. | |
8900 | (c_finish_omp_taskgroup): New function. | |
8901 | (c_finish_omp_atomic): Add swapped argument, if true, | |
8902 | build the operation first with rhs, lhs arguments and use NOP_EXPR | |
8903 | build_modify_expr. | |
8904 | (c_finish_omp_for): Add code argument, pass it down to make_code. | |
8905 | (c_omp_split_clauses): New function. | |
8906 | (c_split_parallel_clauses): Removed. | |
8907 | (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers, | |
8908 | c_omp_declare_simd_clauses_to_decls): New functions. | |
8909 | * c-common.h (omp_clause_mask): New type. | |
8910 | (OMP_CLAUSE_MASK_1): Define. | |
8911 | (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=, | |
8912 | omp_clause_mask::operator |=, omp_clause_mask::operator ~, | |
8913 | omp_clause_mask::operator |, omp_clause_mask::operator &, | |
8914 | omp_clause_mask::operator <<, omp_clause_mask::operator >>, | |
8915 | omp_clause_mask::operator ==): New methods. | |
8916 | (enum c_omp_clause_split): New. | |
8917 | (c_finish_omp_taskgroup): New prototype. | |
8918 | (c_finish_omp_atomic): Add swapped argument. | |
8919 | (c_finish_omp_for): Add code argument. | |
8920 | (c_omp_split_clauses): New prototype. | |
8921 | (c_split_parallel_clauses): Removed. | |
8922 | (c_omp_declare_simd_clauses_to_numbers, | |
8923 | c_omp_declare_simd_clauses_to_decls): New prototypes. | |
8924 | * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs. | |
8925 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL, | |
8926 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION, | |
8927 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD, | |
8928 | PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS. | |
8929 | Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS. | |
8930 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED, | |
8931 | PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE, | |
8932 | PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR, | |
8933 | PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH, | |
8934 | PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP, | |
8935 | PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS, | |
8936 | PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND, | |
8937 | PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS, | |
8938 | PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP, | |
8939 | PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and | |
8940 | PRAGMA_OMP_CLAUSE_UNIFORM. | |
8941 | ||
826cacfe MG |
8942 | 2013-10-09 Marc Glisse <marc.glisse@inria.fr> |
8943 | ||
8944 | PR tree-optimization/20318 | |
8945 | * c-common.c (handle_returns_nonnull_attribute): New function. | |
8946 | (c_common_attribute_table): Add returns_nonnull. | |
8947 | ||
2284b034 MG |
8948 | 2013-10-03 Marc Glisse <marc.glisse@inria.fr> |
8949 | ||
8950 | PR c++/19476 | |
8951 | * c.opt (fcheck-new): Move to common.opt. | |
8952 | ||
b56e9788 MP |
8953 | 2013-09-25 Marek Polacek <polacek@redhat.com> |
8954 | Jakub Jelinek <jakub@redhat.com> | |
8955 | ||
8956 | PR sanitizer/58413 | |
8957 | * c-ubsan.c (ubsan_instrument_shift): Don't instrument | |
8958 | an expression if we can prove it is correct. | |
8959 | (ubsan_instrument_division): Likewise. Remove unnecessary | |
8960 | check. | |
8961 | ||
ce6923c5 MP |
8962 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
8963 | ||
8964 | PR sanitizer/58411 | |
8965 | * c-common.c (handle_no_sanitize_undefined_attribute): New function. | |
8966 | Declare it. | |
8967 | (struct attribute_spec c_common_att): Add no_sanitize_undefined. | |
8968 | ||
fb5610fb IS |
8969 | 2013-09-14 Iain Sandoe <iain@codesourcery.com> |
8970 | ||
8971 | PR target/48094 | |
8972 | * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version, | |
8973 | fobjc-gc, freplace-objc-classes): Accept for LTO. | |
8974 | ||
88b0e79e JC |
8975 | 2013-09-13 Jacek Caban <jacek@codeweavers.com> |
8976 | ||
8977 | * c-target.def: New hook | |
8978 | ||
c9b0866a PC |
8979 | 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
8980 | ||
8981 | PR c++/43452 | |
8982 | * c.opt (Wdelete-incomplete): Add. | |
8983 | ||
0af94e6f JR |
8984 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
8985 | ||
8986 | * c-common.c (same_scalar_type_ignoring_signedness): Delete. | |
8987 | (vector_types_compatible_elements_p): New function. | |
8988 | * c-common.h: (same_scalar_type_ignoring_signedness): Delete | |
8989 | declaration. | |
8990 | (vector_types_compatible_elements_p): Declare. | |
8991 | ||
7c26172c GDR |
8992 | 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8993 | ||
8994 | * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now | |
8995 | a virtual member function. | |
8996 | (pp_simple_type_specifier): Remove. | |
8997 | (pp_c_type_specifier): Likewise. | |
8998 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
8999 | Rename from pp_c_type_specifier. Adjust. | |
9000 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9001 | simple_type_specifier. | |
9002 | ||
20059c8b GDR |
9003 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9004 | ||
9005 | * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual | |
9006 | member function. | |
9007 | (c_pretty_printer::storage_class_specifier): Likewise. | |
9008 | (c_pretty_printer::initializer): Likewise. | |
9009 | (pp_declaration): Remove. | |
9010 | (pp_declaration_specifiers): Likewise. | |
9011 | (pp_abstract_declarator): Likewise. | |
9012 | (pp_declarator): Likewise. | |
9013 | (pp_type_id): Likewise. | |
9014 | (pp_statement): Likewise. | |
9015 | (pp_constant): Likewise. | |
9016 | (pp_id_expression): Likewise. | |
9017 | (pp_primary_expression): Likewise. | |
9018 | (pp_unary_expression): Likewise. | |
9019 | (pp_multiplicative_expression): Likewise. | |
9020 | (pp_conditional_expression): Likewise. | |
9021 | (pp_assignment_expression): Likewise. | |
9022 | (pp_expression): Likewise. | |
9023 | (pp_c_type_id): Likewise. | |
9024 | (pp_c_storage_class_specifier): Likewise. | |
9025 | * c-pretty-print.c (pp_c_type_cast): Tidy. | |
9026 | (pp_c_pointer): Likewise. | |
9027 | (pp_c_type_specifier): Likewise. | |
9028 | (pp_c_parameter_type_list): Likewise. | |
9029 | (pp_c_function_definition): Likewise. | |
9030 | (pp_c_init_declarator): Likewise. | |
9031 | (pp_c_initializer_list): Likewise. | |
9032 | (pp_c_constructor_elts): Likewise. | |
9033 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
9034 | (c_pretty_printer::declaration_specifiers): Likewise. | |
9035 | (c_pretty_printer::primary_expression): Likewise. | |
9036 | (c_pretty_printer::postfix_expression): Likewise. | |
9037 | (c_pretty_printer::type_id): Rename from pp_c_type_id. | |
9038 | (c_pretty_printer::storage_class_specifier): Rename from | |
9039 | pp_c_storage_class_specifier. | |
9040 | (c_pretty_printer::initializer): Rename from pp_c_initializer. | |
9041 | (c_pretty_printer::c_pretty_printer): Do not assign to type_id, | |
9042 | storage_class_specifier, initializer, offset_list, flags. | |
9043 | ||
de5a5fa1 MP |
9044 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
9045 | ||
9046 | * c-ubsan.c: New file. | |
9047 | * c-ubsan.h: New file. | |
9048 | ||
8f0e4d72 GDR |
9049 | 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9050 | ||
9051 | * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual | |
9052 | member function. | |
9053 | (c_pretty_printer::declaration_specifiers): Likewise. | |
9054 | (c_pretty_printer::declarator): Likewise. | |
9055 | (c_pretty_printer::abstract_declarator): Likewise. | |
9056 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
9057 | (c_pretty_printer::direct_declarator): Likewise. | |
9058 | (c_pretty_printer::function_specifier): Likewise. | |
9059 | (pp_declaration): Adjust. | |
9060 | (pp_declaration_specifiers): Likewise. | |
9061 | (pp_abstract_declarator): Likewise. | |
9062 | (pp_direct_declarator): Likewise. | |
9063 | (pp_function_specifier): Likewise. | |
9064 | (pp_direct_abstract_declarator): Remove as unused. | |
9065 | (pp_c_declaration): Remove. | |
9066 | (pp_c_declaration_specifiers): Likewise. | |
9067 | (pp_c_declarator): Likewise. | |
9068 | (pp_c_direct_declarator): Likewise. | |
9069 | (pp_c_function_specifier): Likewise. | |
9070 | (pp_c_direct_abstract_declarator): Likewise. | |
9071 | * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename | |
9072 | from pp_c_abstract_declarator. Adjust. | |
ab20d992 | 9073 | (c_pretty_printer::direct_abstract_declarator): Rename from |
8f0e4d72 GDR |
9074 | pp_c_direct_abstract_declarator. Adjust. |
9075 | (c_pretty_printer::function_specifier): Rename from | |
9076 | pp_c_function_specifier. Adjust. | |
9077 | (c_pretty_printer::declaration_specifiers): Rename from | |
9078 | pp_c_declaration_specifiers. Adjust. | |
9079 | (c_pretty_printer::direct_declarator): Rename from | |
9080 | pp_c_direct_declarator. Adjust. | |
9081 | (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. | |
9082 | (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. | |
9083 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9084 | declaration, declaration_specifiers, declarator, | |
9085 | direct_declarator, direct_abstract_declarator, function_specifier. | |
9086 | ||
00d34d3a GDR |
9087 | 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net> |
9088 | ||
9089 | * c-pretty-print.h (c_pretty_printer::unary_expression): Now a | |
9090 | virtual member function. | |
9091 | (c_pretty_printer::multiplicative_expression): Likewise. | |
9092 | (c_pretty_printer::conditional_expression): Likewise. | |
9093 | (c_pretty_printer::assignment_expression): Likewise. | |
9094 | (c_pretty_printer::expression): Likewise. | |
9095 | (pp_unary_expression): Adjust. | |
9096 | (pp_multiplicative_expression): Likewise. | |
9097 | (pp_assignment_expression): Likewise. | |
9098 | (pp_conditional_expression): Likewise. | |
9099 | (pp_expression): Likewise. | |
9100 | * c-pretty-print.c (c_pretty_printer::unary_expression): Rename | |
9101 | from pp_c_unary_expression. Adjust. | |
9102 | (c_pretty_printer::multiplicative_expression): Rename from | |
9103 | pp_c_multiplicative_expression. Adjust. | |
9104 | (c_pretty_printer::conditional_expression): Rename from | |
9105 | pp_c_conditional_expression. Adjust. | |
9106 | (c_pretty_printer::assignment_expression): Rename from | |
9107 | pp_c_assignment_expression. Adjust. | |
9108 | (c_pretty_printer::expression): Rename from pp_c_expression. Adjust. | |
9109 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9110 | unary_expression, multiplicative_expression, | |
9111 | conditional_expression, expression. | |
9112 | ||
fb22178f GDR |
9113 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9114 | ||
9115 | * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a | |
9116 | virtual member function. | |
9117 | (pp_postfix_expression): Adjust. | |
9118 | (pp_c_postfix_expression): Remove. | |
9119 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename | |
9120 | from pp_c_postfix_expression. Adjust. | |
9121 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9122 | postfix_expression. | |
9123 | ||
7ecc2600 GDR |
9124 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9125 | ||
9126 | * c-pretty-print.h (c_pretty_printer::primary_expression): Now a | |
9127 | virtua member function. | |
9128 | (pp_primary_expression): Adjust. | |
9129 | (pp_c_primary_expression): Remove. | |
9130 | * c-pretty-print.c (c_pretty_printer::primary_expression): Rename | |
9131 | from pp_c_primary_expression. Adjust. | |
9132 | (pp_c_initializer_list): Use pp_primary_expression. | |
9133 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
9134 | primary_expression. | |
9135 | ||
0691175f GDR |
9136 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9137 | ||
9138 | * c-pretty-print.h (c_pretty_printer::translate_string): Declare. | |
9139 | * c-pretty-print.c (M_): Remove. | |
9140 | (c_pretty_printer::translate_string): Define. | |
9141 | (pp_c_type_specifier): Use it. | |
9142 | (pp_c_primary_expression): Likewise. | |
9143 | (pp_c_expression): Likewise. | |
9144 | ||
66dfe4c4 GDR |
9145 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9146 | ||
9147 | * c-pretty-print.h (c_pretty_printer::id_expression): Now a | |
9148 | virtual function. | |
9149 | (pp_c_id_expression): Remove. | |
9150 | (pp_id_expression): Adjust. | |
9151 | * c-pretty-print.c (c_pretty_printer::id_expression): Rename from | |
9152 | pp_c_id_expression. Adjust. | |
9153 | (pp_c_postfix_expression): Use pp_id_expression. | |
9154 | (c_pretty_printer::c_pretty_printer): Do not assign to id_expression. | |
9155 | ||
ca43e9d5 GDR |
9156 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9157 | ||
9158 | * c-pretty-print.h (c_pretty_printer::constant): Now a virtual | |
9159 | member function. | |
9160 | (pp_constant): Adjust. | |
9161 | (pp_c_constant): Remove. | |
9162 | * c-pretty-print.c (c_pretty_printer::constant): Rename from | |
9163 | pp_c_constant. Adjust. | |
9164 | (pp_c_constant) | |
9165 | (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. | |
9166 | (c_pretty_printer::c_pretty_printer): Remove assignment to constant. | |
9167 | ||
da6ca2b5 GDR |
9168 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9169 | ||
9170 | * c-pretty-print.h (pp_c_pretty_printer_init): Remove. | |
9171 | (c_pretty_printer::c_pretty_printer): Declare. | |
9172 | * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from | |
9173 | c_pretty_printer_init. Adjust. | |
9174 | (print_c_tree): Do not call c_pretty_printer_init. | |
9175 | * c-ada-spec.c (dump_ads): Remove call to pp_construct. | |
9176 | ||
65a372f4 AC |
9177 | 2013-08-09 Arnaud Charlet <charlet@adacore.com> |
9178 | ||
9179 | * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name | |
9180 | ||
fd9b0f32 PC |
9181 | 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com> |
9182 | ||
9183 | PR c++/58080 | |
9184 | * c-common.c (pointer_int_sum): Add bool parameter. | |
9185 | * c-common.h (pointer_int_sum): Adjust declaration. | |
9186 | ||
e0aec1e9 GDR |
9187 | 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9188 | ||
9189 | * c-pretty-print.c (print_c_tree): Simplify. Use non-static local | |
9190 | c_pretty_printer variable. | |
9191 | ||
b066401f GDR |
9192 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9193 | ||
9194 | * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. | |
9195 | (pp_base): Remove. | |
9196 | (pp_c_base): Likewise. Adjust users. | |
9197 | * c-pretty-print.c (pp_c_maybe_whitespace): Adjust. | |
9198 | (pp_c_whitespace): Do not call pp_base. | |
9199 | (pp_c_left_paren): Likewise. | |
9200 | (pp_c_right_paren): Likewise. | |
9201 | (pp_c_left_brace): Likewise. | |
9202 | (pp_c_right_brace): Likewise. | |
9203 | (pp_c_left_bracket): Likewise. | |
9204 | (pp_c_right_bracket): Likewise. | |
9205 | (pp_c_dot): Likewise. | |
9206 | (pp_c_ampersand): Likewise. | |
9207 | (pp_c_star): Likewise. | |
9208 | (pp_c_arrow): Likewise. | |
9209 | (pp_c_semicolon): Likewise. | |
9210 | (pp_c_complement): Likewise. | |
9211 | (pp_c_exclamation): Likewise. | |
9212 | (pp_c_direct_declarator): Likewise. | |
9213 | (pp_c_ws_string): Likewise. | |
9214 | (pp_c_identifier): Likewise. | |
9215 | (pp_c_statement): Likewise. | |
9216 | (print_c_tree): Likewise. | |
9217 | ||
65e5a578 ESR |
9218 | 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net> |
9219 | ||
9220 | PR c++/58072 | |
9221 | * c-common.c (c_parse_error): Catch user-defined literal tokens and | |
9222 | provide useful error strings. | |
9223 | ||
137a1a27 GDR |
9224 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9225 | ||
9226 | * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty | |
9227 | printer functions instead of pp_string or operators and punctuators. | |
9228 | (dump_generic_ada_node): Likewise. | |
9229 | * c-pretty-print.c (pp_c_type_specifier): Likewise. | |
9230 | (pp_c_relational_expression): Likewise. | |
9231 | (pp_c_logical_or_expression): Likewise. | |
9232 | ||
07838b13 GDR |
9233 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9234 | ||
9235 | * c-ada-spec.c (print_ada_macros): Use specialized pretty printer | |
9236 | functions instead of pp_character. | |
9237 | (pp_ada_tree_identifier): Likewise. | |
9238 | (dump_ada_double_name): Likewise. | |
9239 | (dump_ada_function_declaration): Likewise. | |
9240 | (dump_ada_array_domains): Likewise. | |
9241 | (dump_template_types): Likewise. | |
9242 | (dump_generic_ada_node): Likewise. | |
9243 | (print_ada_declaration): Likewise. | |
9244 | (print_ada_struct_decl): Likewise. | |
9245 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
9246 | ||
433cc7b0 TT |
9247 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
9248 | ||
9249 | * c-common.h (enum rid) <RID_GENERIC>: New constant. | |
9250 | * c-common.c (c_common_reswords): Add _Generic. | |
9251 | ||
688010ba OB |
9252 | 2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz> |
9253 | ||
9254 | * c-common.c: Fix typos. | |
9255 | * c-common.h: Likewise. | |
9256 | ||
2a99e5e6 LL |
9257 | 2013-07-13 Lubos Lunak <l.lunak@suse.cz> |
9258 | ||
9259 | PR c++/55203 | |
9260 | * c-common.c (c_common_attribute_table): Add warn_unused. | |
9261 | (handle_warn_unused_attribute): New. | |
9262 | ||
c26302d5 JJ |
9263 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
9264 | ||
9265 | * c-ppoutput.c (scan_translation_unit): Call account_for_newlines | |
9266 | for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. | |
9267 | ||
dfeadaa0 PC |
9268 | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> |
9269 | ||
9270 | PR c++/57869 | |
9271 | * c.opt: Add Wconditionally-supported. | |
9272 | ||
6a2fa4b2 GS |
9273 | 2013-07-08 Graham Stott <graham.stott@btinternet.com> |
9274 | ||
adfac8df | 9275 | * array-notation-common.c (length_mismatch_in_expr_p): Delete |
6a2fa4b2 GS |
9276 | unused variables l_length and l_node. |
9277 | ||
ecdbd01a | 9278 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
9279 | |
9280 | PR c/57821 | |
9281 | * c-common.c (complete_array_type): Delay folding first index | |
9282 | like other indices. When folding, check for index overflow. | |
9283 | ||
bedc293e MG |
9284 | 2013-06-27 Marc Glisse <marc.glisse@inria.fr> |
9285 | ||
9286 | PR c++/57509 | |
9287 | * c-common.h (c_build_vec_perm_expr): New complain argument. | |
9288 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
9289 | Use save_expr also in C++. | |
9290 | ||
604b2bfc GDR |
9291 | 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
9292 | ||
9293 | * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. | |
9294 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
9295 | * c-opts.c (c_common_post_options): Likewise. | |
9296 | ||
dfeadaa0 | 9297 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
713b46fa BI |
9298 | |
9299 | * array-notation-common.c (length_mismatch_in_expr): Changed the | |
9300 | parameter type's from a dynamic array to a vec_tree. Also removed | |
9301 | the size parameters. | |
9302 | * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per | |
9303 | the change above. | |
9304 | ||
2ce86d2e BI |
9305 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9306 | ||
9307 | * c-common.h (struct cilkplus_an_parts): New structure. | |
9308 | (struct cilkplus_an_loop_parts): Likewise. | |
9309 | (cilkplus_extract_an_triplets): New prototype. | |
9310 | (fix_sec_implicit_args): Likewise. | |
9311 | * array-notation-common.c (cilkplus_extract_an_triplets): New function. | |
9312 | (fix_sec_implicit_args): Likewise. | |
604b2bfc | 9313 | |
07a6825b BI |
9314 | 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9315 | ||
9316 | * array-notation-common.c (find_inv_trees): Removed an unwanted | |
9317 | typecasting. | |
9318 | * c-common.h (struct inv_list::additional_tcodes): Changed type from | |
9319 | enum rid to enum tree_code. | |
9320 | ||
08346abd JH |
9321 | 2013-06-11 Jan Hubicka <jh@suse.cz> |
9322 | ||
9323 | * c-common.c (handle_alias_ifunc_attribute): Do not set | |
9324 | DECL_EXTERNAL for weakref variables. | |
9325 | * c-pragma.c (handle_pragma_weak): Make sure aliases | |
9326 | are not declared as external. | |
9327 | ||
d60f1706 BI |
9328 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9329 | ||
9330 | * array-notation-common.c (length_mismatch_in_expr_p): Moved this | |
9331 | function from c/c-array-notation.c. | |
9332 | (is_cilkplus_reduce_builtin): Likewise. | |
9333 | (find_rank): Likewise. | |
9334 | (extract_array_notation_exprs): Likewise. | |
9335 | (replace_array_notations): Likewise. | |
9336 | (find_inv_trees): Likewise. | |
9337 | (replace_inv_trees): Likewise. | |
9338 | (contains_array_notation_expr): Likewise. | |
9339 | (find_correct_array_notation_type): Likewise. | |
9340 | * c-common.h (struct inv_list): Moved this struct from the file | |
9341 | c/c-array-notation.c and added a new field called additional tcodes. | |
9342 | (length_mismatch_in_expr_p): New prototype. | |
9343 | (is_cilkplus_reduce_builtin): Likewise. | |
9344 | (find_rank): Likewise. | |
9345 | (extract_array_notation_exprs): Likewise. | |
9346 | (replace_array_notation): Likewise. | |
9347 | (find_inv_trees): Likewise. | |
9348 | (replace_inv_trees): Likewise. | |
9349 | (find_correct_array_notation_type): Likewise. | |
dfeadaa0 | 9350 | |
36536d79 BI |
9351 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9352 | ||
9353 | * c-common.c (c_define_builtins): When cilkplus is enabled, the | |
9354 | function array_notation_init_builtins is called. | |
9355 | (c_common_init_ts): Added ARRAY_NOTATION_REF as typed. | |
9356 | * c-common.def (ARRAY_NOTATION_REF): New tree. | |
9357 | * c-common.h (build_array_notation_expr): New function declaration. | |
9358 | (build_array_notation_ref): Likewise. | |
9359 | (extract_sec_implicit_index_arg): New extern declaration. | |
9360 | (is_sec_implicit_index_fn): Likewise. | |
9361 | (ARRAY_NOTATION_CHECK): New define. | |
9362 | (ARRAY_NOTATION_ARRAY): Likewise. | |
9363 | (ARRAY_NOTATION_START): Likewise. | |
9364 | (ARRAY_NOTATION_LENGTH): Likewise. | |
9365 | (ARRAY_NOTATION_STRIDE): Likewise. | |
9366 | * c-pretty-print.c (pp_c_postifix_expression): Added a new case for | |
9367 | ARRAY_NOTATION_REF. | |
9368 | (pp_c_expression): Likewise. | |
9369 | * c.opt (flag_enable_cilkplus): New flag. | |
9370 | * array-notation-common.c: New file. | |
9371 | ||
f7716d57 JJ |
9372 | 2013-05-14 Jakub Jelinek <jakub@redhat.com> |
9373 | ||
9374 | PR c++/57274 | |
9375 | * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. | |
9376 | ||
a5e0cd1d MG |
9377 | 2013-05-10 Marc Glisse <marc.glisse@inria.fr> |
9378 | ||
9379 | * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for | |
9380 | vectors. | |
9381 | ||
f6bc1c4a HS |
9382 | 2013-05-07 Han Shen <shenhan@google.com> |
9383 | ||
9384 | * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". | |
9385 | ||
3f12f6e9 SKS |
9386 | 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
9387 | ||
9388 | * c-common.c (check_user_alignment): Emit error for negative values. | |
9389 | ||
61949153 PC |
9390 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
9391 | ||
9392 | * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. | |
9393 | ||
e93e18e9 PC |
9394 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
9395 | ||
9396 | * c-cppbuiltin.c (c_cpp_builtins): Do not define | |
9397 | __GXX_EXPERIMENTAL_CXX1Y__. | |
9398 | ||
44d90fe1 | 9399 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
8e745a17 | 9400 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
44d90fe1 PC |
9401 | |
9402 | * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. | |
9403 | * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns | |
9404 | to simply use OPT_Wpointer_arith. | |
9405 | (c_sizeof_or_alignof_type): Likewise. | |
9406 | ||
13f39b2e PC |
9407 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
9408 | ||
9409 | * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. | |
9410 | ||
4b84d650 JJ |
9411 | 2013-04-12 Jakub Jelinek <jakub@redhat.com> |
9412 | ||
9413 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
9414 | gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format | |
9415 | specifiers. | |
9416 | ||
fb037b5d SB |
9417 | 2013-04-07 Steven Bosscher <steven@gcc.gnu.org> |
9418 | ||
9419 | * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. | |
9420 | ||
4e856798 PC |
9421 | 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> |
9422 | ||
9423 | * c-common.c (pointer_int_sum): Remove dead code. | |
9424 | ||
4b1baac8 RS |
9425 | 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> |
9426 | ||
9427 | PR middle-end/56524 | |
9428 | * c-common.c (handle_optimize_attribute): Don't call | |
9429 | save_optabs_if_changed. | |
9430 | ||
0b50e654 JJ |
9431 | 2013-03-05 Jakub Jelinek <jakub@redhat.com> |
9432 | ||
9433 | PR middle-end/56461 | |
9434 | * c-pch.c (pch_init): Free target_validity at the end. | |
9435 | ||
48c41403 JJ |
9436 | 2013-03-04 Jakub Jelinek <jakub@redhat.com> |
9437 | ||
9438 | * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. | |
9439 | ||
e664c61c KS |
9440 | 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> |
9441 | Jakub Jelinek <jakub@redhat.com> | |
9442 | ||
9443 | PR sanitizer/56454 | |
9444 | * c-common.c (handle_no_sanitize_address_attribute): New function. | |
9445 | (c_common_attribute_table): Add no_sanitize_address attribute. | |
9446 | (handle_no_address_safety_analysis_attribute): Add | |
9447 | no_sanitize_address attribute, not no_address_safety_analysis | |
9448 | attribute. | |
9449 | ||
a475fd3d | 9450 | 2013-02-18 Aldy Hernandez <aldyh@redhat.com> |
135204dd AH |
9451 | |
9452 | PR target/52555 | |
9453 | * c-common.c (handle_optimize_attribute): Call | |
9454 | save_optabs_if_changed. | |
9455 | ||
f6007d99 JJ |
9456 | 2013-02-18 Jakub Jelinek <jakub@redhat.com> |
9457 | Steven Bosscher <steven@gcc.gnu.org> | |
9458 | ||
9459 | PR pch/54117 | |
9460 | * c-opts.c (c_common_post_options): If debug info is enabled | |
9461 | and non-dwarf*, refuse to load PCH files and when writing PCH | |
9462 | file warn. | |
9463 | ||
cf35e2b1 JJ |
9464 | 2013-02-05 Jakub Jelinek <jakub@redhat.com> |
9465 | ||
9466 | PR middle-end/56167 | |
9467 | * c-common.c (handle_error_attribute): Fix condition. | |
9468 | ||
32887460 JJ |
9469 | 2013-01-30 Jakub Jelinek <jakub@redhat.com> |
9470 | ||
9471 | PR c++/55742 | |
9472 | * c-common.c (handle_target_attribute): Revert 2012-12-26 change. | |
9473 | ||
5af057d8 JM |
9474 | 2013-01-18 Jason Merrill <jason@redhat.com> |
9475 | ||
9476 | PR target/54908 | |
9477 | * c.opt (-fextern-tls-init): New. | |
9478 | * c-opts.c (c_common_post_options): Handle it. | |
9479 | ||
cc83c823 JJ |
9480 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
9481 | ||
9482 | PR c/48418 | |
9483 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
9484 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
9485 | and is either negative or bigger or equal to type precision | |
9486 | of the first operand. | |
9487 | ||
a859517f MP |
9488 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
9489 | ||
9490 | PR c/55570 | |
9491 | * c-common.c (check_user_alignment): Swap order of tests, | |
9492 | check TREE_CODE first. | |
9493 | ||
2d7aa578 ESR |
9494 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
9495 | ||
9496 | PR c++/52654 | |
9497 | * c-common.h (overflow_type): New enum. | |
9498 | (build_userdef_literal): Add overflow_type argument. | |
9499 | (tree_userdef_literal): Add overflow_type. | |
9500 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
9501 | * c-common.c (build_userdef_literal): Add overflow_type | |
9502 | argument. | |
9503 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
9504 | build_userdef_literal calls. | |
9505 | (interpret_integer, interpret_float): Add overflow_type argument. | |
9506 | ||
cc3c4f62 RB |
9507 | 2012-11-28 Richard Biener <rguenther@suse.de> |
9508 | ||
9509 | PR c/35634 | |
9510 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
9511 | here and use a type with proper overflow behavior for types that would | |
9512 | need to be promoted for the arithmetic. | |
9513 | ||
77bc5132 JJ |
9514 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
9515 | ||
9516 | PR sanitizer/55435 | |
9517 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
9518 | function. | |
9519 | (c_common_attribute_table): Add no_address_safety_analysis. | |
9520 | ||
5dc99c46 SB |
9521 | 2012-11-16 Simon Baldwin <simonb@google.com> |
9522 | ||
9523 | * c.opt: Add f[no-]canonical-system-headers. | |
9524 | * c-opts.c (c_common_handle_option): Handle | |
9525 | OPT_fcanonical_system_headers. | |
9526 | ||
a4a0016d ESR |
9527 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
9528 | ||
9529 | PR c++/54413 | |
9530 | * c-opts.c (c_common_handle_option): Set new flags. | |
9531 | * c.opt: Describe new flags. | |
9532 | ||
7dbb85a7 JM |
9533 | 2012-11-09 Jason Merrill <jason@redhat.com> |
9534 | ||
9535 | * c.opt (Wabi-tag): New. | |
9536 | ||
ad7bac31 AK |
9537 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
9538 | ||
9539 | PR 55139 | |
9540 | * c-common.c (get_atomic_generic_size): Mask with | |
8e745a17 | 9541 | MEMMODEL_MASK |
ad7bac31 | 9542 | |
7332899a MLI |
9543 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9544 | ||
9545 | PR c/53063 | |
9546 | * c.opt (Wformat): Make it Alias Wformat=1. | |
9547 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
9548 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
9549 | LangEnabledBy. | |
9550 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
9551 | (Wnonnull): Use LangEnabledBy. | |
9552 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
9553 | * c-format.c (set_Wformat): Delete. | |
9554 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
ab20d992 JJ |
9555 | (maybe_read_dollar_number): Likewise. |
9556 | (avoid_dollar_number): Likewise. | |
9557 | (finish_dollar_format_checking): Likewise. | |
9558 | (check_format_info): Likewise. | |
9559 | (check_format_info_main): Likewise. | |
9560 | (check_format_types): Likewise. | |
9561 | (format_type_warning): Likewise. | |
9562 | * c-common.c (int): Likewise. | |
9563 | (check_function_sentinel): Likewise. | |
8e745a17 | 9564 | * c-common.h (warn_format,set_Wformat): Do not declare here. |
7332899a | 9565 | |
34a180a6 MLI |
9566 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9567 | ||
9568 | PR c/53063 | |
9569 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
9570 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
9571 | Use LangEnabledBy. | |
9572 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
9573 | common.opt. | |
9574 | (Wvariadic-macros): Init(1). | |
9575 | * c-opts.c (c_common_handle_option): Do not handle them | |
9576 | explicitly. | |
9577 | (c_common_post_options): Likewise. | |
9578 | (sanitize_cpp_opts): warn_unused_macros is now | |
9579 | cpp_warn_unused_macros. | |
9580 | (push_command_line_include): Likewise. | |
9581 | * c-common.c (warn_unknown_pragmas): Do not define. | |
9582 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
9583 | ||
3f46d6a5 MLI |
9584 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9585 | ||
9586 | PR c/51294 | |
9587 | * c-common.c (conversion_warning): Handle conditional expressions. | |
9588 | ||
880661a4 JW |
9589 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
9590 | ||
9591 | PR c++/54930 | |
9592 | * c.opt (Wreturn_local_addr): Define new option. | |
9593 | ||
4514a96b JM |
9594 | 2012-10-25 Jason Merrill <jason@redhat.com> |
9595 | ||
f14edc1a JM |
9596 | * c.opt (Wvirtual-move-assign): New. |
9597 | ||
4514a96b JM |
9598 | * c.opt (Winherited-variadic-ctor): New. |
9599 | ||
93100c6b MG |
9600 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
9601 | ||
9602 | PR c++/54427 | |
9603 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
9604 | ||
1efcb8c6 JM |
9605 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
9606 | ||
9607 | * c-common.h (pch_cpp_save_state): Declare. | |
9608 | * c-target.def (c_preinclude): New hook. | |
9609 | * c-opts.c (done_preinclude): New. | |
9610 | (push_command_line_include): Handle default preincluded header. | |
9611 | (cb_file_change): Call pch_cpp_save_state when calling | |
9612 | push_command_line_include. | |
9613 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
9614 | (pch_cpp_save_state): New. | |
9615 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
9616 | calling cpp_save_state. | |
9617 | ||
4a0ae68e MLI |
9618 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9619 | ||
9620 | PR c/53063 | |
9621 | PR c/40989 | |
9622 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
9623 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
9624 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
9625 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
9626 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
9627 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
9628 | here. | |
9629 | (c_common_post_options): Likewise. | |
9630 | ||
67e4210b EB |
9631 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
9632 | ||
9633 | * c-ada-spec.c (LOCATION_COL): Delete. | |
9634 | (compare_location): New function. | |
9635 | (compare_node): Use it. | |
9636 | (compare_comment): Likewise. | |
9637 | ||
65d4f2cd MLI |
9638 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9639 | ||
9640 | PR c/53063 | |
9641 | PR c/40989 | |
9642 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
9643 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
9644 | comment. | |
9645 | (c_common_post_options): Likewise. | |
9646 | ||
909881cb EB |
9647 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
9648 | ||
9649 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
9650 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
9651 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
9652 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
9653 | ||
3a785c97 JJ |
9654 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
9655 | ||
9656 | PR c/54381 | |
9657 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
9658 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
9659 | locs and array of 3 trees instead of just single loc and single | |
9660 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
9661 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
9662 | For *cmp* builtins that take two sources strings report warnings | |
9663 | about first and second source, not about destination and source. | |
9664 | ||
5e54f81d MG |
9665 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
9666 | ||
9667 | PR c++/53055 | |
9668 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
9669 | ||
f5b02f1e EB |
9670 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
9671 | ||
9672 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
9673 | declaring something coming from another file. | |
9674 | ||
b46dbc6c AC |
9675 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
9676 | ||
f5b02f1e | 9677 | PR ada/54845 |
b46dbc6c AC |
9678 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
9679 | ||
5d9de0d0 PC |
9680 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
9681 | ||
9682 | PR c++/54194 | |
9683 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
9684 | use EXPR_LOC_OR_LOC. | |
9685 | * c-common.h: Update declaration. | |
9686 | ||
a212e43f MG |
9687 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
9688 | ||
9689 | PR c++/54427 | |
9690 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
9691 | more operations. Make error messages optional. | |
9692 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
9693 | (scalar_to_vector): Declare. | |
9694 | ||
b1db7f91 JM |
9695 | 2012-10-08 Jason Merrill <jason@redhat.com> |
9696 | ||
9697 | * c-common.c (c_common_reswords): Add thread_local. | |
9698 | ||
e28d52cf DS |
9699 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
9700 | ||
9701 | PR c++/53528 C++11 attribute support | |
9702 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
9703 | new functions. | |
9704 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
9705 | static function. | |
9706 | (handle_aligned_attribute): In choose strictest alignment | |
9707 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
9708 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
9709 | don't look through typedefs. | |
9710 | ||
3b78de56 AC |
9711 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
9712 | ||
9713 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
9714 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
9715 | out of dumpfile.h. | |
9716 | ||
6040bb5f DC |
9717 | 2012-09-25 Dehao Chen <dehao@google.com> |
9718 | ||
9719 | PR middle-end/54645 | |
3b78de56 | 9720 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
6040bb5f DC |
9721 | map when read in the pch. |
9722 | ||
3f8257db | 9723 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
0b07a57e AC |
9724 | |
9725 | * c-ada-spec.c: Style fixes. | |
9726 | ||
3f8257db | 9727 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
da5182be TQ |
9728 | |
9729 | * c.opt (-fada-spec-parent): Define new command line switch. | |
9730 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
9731 | is specified, generate binding spec as a child of the specified unit. | |
9732 | ||
0ccb505d PC |
9733 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
9734 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
9735 | ||
9736 | PR c++/53210 | |
9737 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
9738 | ||
c583af79 AC |
9739 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
9740 | ||
9741 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
9742 | for pointers, and add missing Convention C pragma. | |
9743 | (print_ada_struct_decl): Add missing aliased keyword. | |
9744 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
9745 | ||
1a4049e7 JJ |
9746 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
9747 | ||
9748 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
9749 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
9750 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
9751 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
9752 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
9753 | ||
70b5e7dc RG |
9754 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
9755 | ||
9756 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
9757 | ||
f8923f7e SB |
9758 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
9759 | ||
9760 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
9761 | instead of separate pp_newline and pp_flush. | |
9762 | (print_c_tree): Likewise. | |
9763 | ||
e45abe1f RH |
9764 | 2012-07-26 Richard Henderson <rth@redhat.com> |
9765 | ||
9766 | * c-common.c (handle_hot_attribute): Allow labels. | |
9767 | (handle_cold_attribute): Likewise. | |
9768 | ||
332f1d24 JJ |
9769 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
9770 | ||
9771 | PR c++/28656 | |
9772 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
9773 | attributes properly. | |
9774 | ||
7ee2468b SB |
9775 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
9776 | ||
9777 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
9778 | * c-ada-spec.c: Likewise. | |
9779 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
9780 | ||
ee7b28eb SB |
9781 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
9782 | ||
9783 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
9784 | Remove code conditional on it. | |
9785 | ||
6bdf3519 SB |
9786 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
9787 | ||
9788 | * c-gimplify.c: Do not include basic-block.h. | |
9789 | * c-common.c: Do not include linfuncs.h. | |
9790 | ||
532aafad SB |
9791 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
9792 | ||
9793 | * c-common.h: Include tree.h. | |
9794 | ||
8d0d1915 JM |
9795 | 2012-07-02 Jason Merrill <jason@redhat.com> |
9796 | ||
9797 | PR c++/53524 | |
9798 | * c-common.c (get_priority): Call default_conversion. | |
9799 | ||
fbc873ad UB |
9800 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
9801 | ||
9802 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
9803 | ||
d4a10d0a SB |
9804 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
9805 | ||
9806 | * cppspec.c: Moved from gcc/ to here. | |
9807 | ||
6f3a2e23 KT |
9808 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
9809 | ||
9810 | PR preprocessor/37215 | |
9811 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
9812 | ||
8ca92d04 SB |
9813 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
9814 | ||
9815 | * c-common.h (c_common_print_pch_checksum): Remove. | |
9816 | * c-pch.c: Do not include output.h. | |
9817 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
9818 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
9819 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
9820 | (struct c_pch_header): Remove. | |
9821 | (get_ident): Update gpch version. | |
9822 | (pch_init): Do not print executable_checksum to asm_out_file. | |
9823 | Do not fail if there is no asm_out_file to read back from. Set | |
9824 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
9825 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
9826 | since pch_init was called. Do not write a c_pch_header, and do not | |
9827 | copy from asm_out_file to the PCH. | |
9828 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
9829 | the content of asm_out_file from the PCH. | |
9830 | (c_common_print_pch_checksum): Remove. | |
9831 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
9832 | ||
70f42967 SB |
9833 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
9834 | ||
9835 | * c-target.def (objc_declare_unresolved_class_reference, | |
9836 | objc_declare_class_definition): Add new hooks. | |
9837 | ||
a8781821 SB |
9838 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
9839 | ||
9840 | * c-lex.c: Do not include output.h. | |
9841 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
9842 | Remove uses of ASM_OUTPUT_IDENT. | |
9843 | ||
9e1a8dd1 RR |
9844 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
9845 | ||
9846 | PR c++/51033 | |
9847 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
9848 | * c-common.c (c_build_vec_perm_expr): Move definition | |
9849 | here. | |
9850 | ||
6f07a821 SB |
9851 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
9852 | ||
9853 | * c.opt (fconserve-space): Turn into a no-op. | |
9854 | ||
9faeb493 | 9855 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
c265f413 SA |
9856 | |
9857 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
9858 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
9859 | both the start and end of the function. | |
9860 | ||
a4b7d13c SB |
9861 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
9862 | ||
9863 | * c-common.c: Do not include output.h. | |
9864 | * c-pragma.c: Likewise. | |
9865 | ||
c265f413 SA |
9866 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
9867 | ||
9868 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
9869 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
9870 | (lang_decl_name): Handle namespace decls. | |
9871 | ||
be7a421e SB |
9872 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
9873 | ||
9874 | * c-ada-spec.c: Do not include output.h. | |
9875 | * c-semantics.c: Likewise. | |
9876 | ||
65de6659 JM |
9877 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
9878 | ||
9879 | * c-common.c: Fix typo. | |
9880 | ||
ca5f4331 MM |
9881 | 2012-05-29 Michael Matz <matz@suse.de> |
9882 | ||
9883 | * c-common.h (c_expand_decl): Remove prototype. | |
9884 | ||
4f7f7aca MLI |
9885 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9886 | ||
9887 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
9888 | * c-opts.c (c_common_handle_option): Remove code handling | |
9889 | warn_missing_braces. | |
9890 | ||
4a792f9b PC |
9891 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
9892 | ||
9893 | PR c++/25137 | |
9894 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
9895 | -Wmissing_braces. | |
9896 | ||
650dc14a DS |
9897 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
9898 | ||
9899 | PR c++/53322 | |
9900 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
9901 | ||
9b095bf1 MLI |
9902 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9903 | ||
9904 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
9905 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
9906 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
9907 | ||
0b2c4be5 DS |
9908 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
9909 | ||
9910 | PR preprocessor/7263 | |
ab20d992 | 9911 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call |
0b2c4be5 DS |
9912 | to cpp_classify_number. For diagnostics, use the precise location |
9913 | instead of the global input_location. | |
9914 | ||
a1bde5af PC |
9915 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
9916 | ||
d02924ef | 9917 | PR c++/11856 |
a1bde5af PC |
9918 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
9919 | ||
d1ede5f4 BS |
9920 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
9921 | ||
a1bde5af | 9922 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
d1ede5f4 | 9923 | |
f2bc201f MLI |
9924 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9925 | ||
9926 | PR 53063 | |
9927 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
9928 | Wreorder): Use LangEnabledBy. | |
9929 | * c-opts.c (c_common_handle_option): Do not enable them | |
9930 | explicitly. Call lang-specific generated functions. | |
9931 | (c_common_post_options): Do not set them here. | |
9932 | ||
95744782 MLI |
9933 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9934 | ||
9935 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
9936 | Wmissing-field-initializers,Wmissing-parameter-type, | |
9937 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
9938 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
9939 | ||
7d5a5747 MLI |
9940 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9941 | ||
9942 | PR 53063 | |
9943 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
9944 | to enable sub-options. | |
9945 | ||
5a3c9cf2 PC |
9946 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
9947 | ||
9948 | PR c++/53158 | |
9949 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
9950 | ||
3ac8781c RG |
9951 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
9952 | ||
9953 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
9954 | adjust commentary about TYPE_IS_SIZETYPE types. | |
9955 | ||
1e537948 MLI |
9956 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9957 | ||
9958 | PR c++/53261 | |
9959 | * c-common.c (warn_logical_operator): Check that argument of | |
9960 | integer_zerop is not NULL. | |
9961 | ||
f2c4a785 MLI |
9962 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9963 | ||
9964 | PR c/43772 | |
9965 | * c-common.c (warn_logical_operator): Do not warn if either side | |
9966 | is already true or false. | |
9967 | ||
50f305ca MLI |
9968 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9969 | ||
9970 | PR c/51712 | |
9971 | * c-common.c (expr_original_type): New. | |
9972 | (shorten_compare): Do not warn for enumeration types. | |
9973 | ||
0c3641b0 MLI |
9974 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9975 | ||
9976 | * c.opt (fpermissive): Add Var(flag_permissive). | |
9977 | ||
7edaa4d2 MG |
9978 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
9979 | ||
9980 | PR c++/51033 | |
9981 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
9982 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
9983 | ||
b9c8da34 DS |
9984 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
9985 | ||
9986 | Add -Wvarargs option | |
ab20d992 | 9987 | * c.opt (Wvarargs): Define new option. |
b9c8da34 | 9988 | |
e6c69da0 MLI |
9989 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9990 | ||
9991 | * c-common.c (check_function_arguments): Replace | |
9992 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
9993 | ||
90137d8f MLI |
9994 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9995 | ||
9996 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
9997 | Wmissing-format-attribute. | |
9998 | * c-format.c (decode_format_type): Replace | |
9999 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
10000 | (check_function_format): Likewise. | |
10001 | ||
9faeb493 | 10002 | 2012-04-27 Ollie Wild <aaw@google.com> |
7f5f5f98 OW |
10003 | |
10004 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
10005 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
10006 | * c.opt: Add Wliteral-suffix. | |
10007 | ||
c1771a20 MLI |
10008 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10009 | ||
10010 | PR c/44774 | |
10011 | * c.opt (Wpedantic): New. | |
10012 | (pedantic): Alias Wpedantic. | |
10013 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
10014 | (c_common_post_options): Likewise. | |
10015 | (sanitize_cpp_opts): Likewise. | |
10016 | * c-lex.c (interpret_float): Likewise. | |
10017 | * c-format.c (check_format_types): Likewise. | |
10018 | * c-common.c (pointer_int_sum): Likewise. | |
10019 | (c_sizeof_or_alignof_type): Likewise. | |
10020 | (c_add_case_label): Likewise. | |
10021 | (c_do_switch_warnings): Likewise. | |
10022 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
10023 | ||
04b391c1 JM |
10024 | 2012-04-15 Jason Merrill <jason@redhat.com> |
10025 | ||
10026 | PR c++/52818 | |
10027 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
10028 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
10029 | ||
ac868f29 EB |
10030 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
10031 | ||
10032 | PR target/52624 | |
10033 | * c-common.h (uint16_type_node): Rename into... | |
10034 | (c_uint16_type_node): ...this. | |
10035 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
10036 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
10037 | ||
fd4116f4 MLI |
10038 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10039 | ||
10040 | * c-common.c (warn_if_unused_value): Move definition to here. | |
10041 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
10042 | ||
573ac65e WB |
10043 | 2012-03-23 William Bader <williambader@hotmail.com> |
10044 | ||
10045 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
10046 | ||
552b8185 JM |
10047 | 2012-03-20 Jason Merrill <jason@redhat.com> |
10048 | ||
10049 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
10050 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
10051 | test. | |
10052 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
10053 | * c-opts.c (c_common_post_options): Likewise. | |
10054 | (set_std_cxx1y): New. | |
10055 | (c_common_handle_option): Call it. | |
10056 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
10057 | ||
04398fa8 PC |
10058 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
10059 | ||
10060 | PR c++/14710 | |
10061 | * c.opt ([Wuseless-cast]): Add. | |
10062 | ||
d2a12ae7 RG |
10063 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
10064 | ||
10065 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
10066 | ||
a12bf402 MLI |
10067 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10068 | ||
10069 | PR c++/44783 | |
10070 | * c.opt (ftemplate-backtrace-limit) Add. | |
10071 | ||
5c30094f RO |
10072 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
10073 | ||
10074 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
10075 | handling. | |
10076 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
10077 | (init_pragma): Don't register extern_prefix. | |
10078 | ||
21fa2faf RG |
10079 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
10080 | ||
10081 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
10082 | (builtin_type_for_size): Likewise. | |
10083 | ||
e3793c6f JJ |
10084 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
10085 | ||
10086 | PR c++/52215 | |
10087 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
10088 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
10089 | is unsigned INTEGER_TYPE. | |
10090 | ||
93286335 PC |
10091 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
10092 | ||
10093 | PR c/52118 | |
10094 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
10095 | ||
7a421706 MS |
10096 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
10097 | ||
10098 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
10099 | exactly. | |
10100 | ||
ba9b1f11 RG |
10101 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
10102 | ||
10103 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
10104 | we are about to generate a PCH. | |
10105 | ||
465406be PC |
10106 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
10107 | ||
10108 | PR c++/51777 | |
10109 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
10110 | use pp_unsigned_wide_integer. | |
10111 | ||
aee15221 RG |
10112 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
10113 | ||
10114 | PR middle-end/51806 | |
10115 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
10116 | to language independent code. | |
10117 | ||
5720c0dc RG |
10118 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
10119 | ||
10120 | PR middle-end/51764 | |
10121 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
10122 | from common.opt. | |
10123 | ||
73ac190a PC |
10124 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
10125 | ||
10126 | PR c++/51316 | |
10127 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
10128 | of array types with an unknown bound. | |
10129 | ||
48b0b196 JM |
10130 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
10131 | ||
10132 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
10133 | (flag_isoc1x): Change to flag_isoc11. | |
10134 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
10135 | (flag_isoc1x): Change to flag_isoc11. | |
10136 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
10137 | C11. | |
10138 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
10139 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
10140 | Call set_std_c11. | |
10141 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
10142 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
10143 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
10144 | standard. | |
10145 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
10146 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
10147 | (std=gnu1x): Make alias of std=gnu11. | |
10148 | ||
d58d6eb5 JM |
10149 | 2011-12-19 Jason Merrill <jason@redhat.com> |
10150 | ||
10151 | PR c++/51228 | |
10152 | * c-common.c (handle_transparent_union_attribute): Check the first | |
10153 | field if the type is complete. | |
10154 | ||
b3908fcc JW |
10155 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
10156 | ||
10157 | PR libstdc++/51365 | |
10158 | * c-common.c (RID_IS_FINAL): Add. | |
10159 | * c-common.h (RID_IS_FINAL): Add. | |
10160 | ||
fea3ca91 IS |
10161 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
10162 | ||
10163 | * c.opt (fgnu-runtime): Provide full description. | |
10164 | (fnext-runtime): Likewise. | |
10165 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
10166 | ||
62bad7cd AM |
10167 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
10168 | ||
10169 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
10170 | predefines in one place. Add LOCK_FREE predefines. | |
10171 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
10172 | new func. | |
10173 | ||
c466c4ff AM |
10174 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
10175 | ||
10176 | PR c/51256 | |
9faeb493 | 10177 | * c-common.c (get_atomic_generic_size): Check for various error |
c466c4ff | 10178 | conditions |
9faeb493 UB |
10179 | (resolve_overloaded_atomic_exchange, |
10180 | resolve_overloaded_atomic_compare_exchange, | |
c466c4ff AM |
10181 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
10182 | error_mark_node for error conditions. | |
9faeb493 | 10183 | |
a5952633 RG |
10184 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
10185 | ||
10186 | PR middle-end/51010 | |
ab20d992 | 10187 | * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs. |
a5952633 | 10188 | |
0a35513e AH |
10189 | 2011-11-07 Richard Henderson <rth@redhat.com> |
10190 | Aldy Hernandez <aldyh@redhat.com> | |
10191 | Torvald Riegel <triegel@redhat.com> | |
10192 | ||
10193 | Merged from transactional-memory. | |
10194 | ||
10195 | * c-common.c (handle_tm_wrap_attribute, | |
10196 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
10197 | (struct c_common_reswords): Added __transaction* keywords. | |
10198 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
10199 | attributes. | |
10200 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
10201 | masks. | |
10202 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
10203 | find_tm_attribute): Declare. | |
10204 | ||
6d87092d JM |
10205 | 2011-11-07 Jason Merrill <jason@redhat.com> |
10206 | ||
10207 | PR c++/35688 | |
10208 | * c-common.c, c-common.h: Revert yesterday's changes. | |
10209 | ||
8e7860a1 JM |
10210 | 2011-11-06 Jason Merrill <jason@redhat.com> |
10211 | ||
10212 | PR c++/35688 | |
10213 | * c-common.c (decl_has_visibility_attr): Split out from... | |
10214 | (c_determine_visibility): ...here. | |
10215 | * c-common.h: Declare it. | |
10216 | ||
d19fa6b5 JM |
10217 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
10218 | ||
10219 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
10220 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
10221 | type. | |
10222 | (check_user_alignment): New. Split out of | |
10223 | handle_aligned_attribute. Disallow integer constants with | |
10224 | noninteger types. Conditionally allow zero. | |
10225 | (handle_aligned_attribute): Use check_user_alignment. | |
10226 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
10227 | ||
86951993 AM |
10228 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
10229 | Richard Henderson <rth@redhat.com> | |
10230 | ||
10231 | Merged from cxx-mem-model. | |
10232 | ||
10233 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
9faeb493 | 10234 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
86951993 AM |
10235 | parameters that are the same type size. |
10236 | (get_atomic_generic_size): New. Find size of generic | |
10237 | atomic function parameters and do typechecking. | |
10238 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
10239 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
10240 | either __atomic_exchange_n or external library call. | |
9faeb493 | 10241 | (resolve_overloaded_atomic_compare_exchange): Restructure |
86951993 | 10242 | __atomic_compare_exchange to either _n variant or external library call. |
9faeb493 | 10243 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
86951993 AM |
10244 | __atomic_load_n or an external library call. |
10245 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
10246 | __atomic_store_n or an external library call. | |
10247 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
10248 | ||
cf9e9959 EB |
10249 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
10250 | ||
10251 | PR c++/50608 | |
10252 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
10253 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
10254 | <INDIRECT_REF>: Return the argument. | |
10255 | <ARRAY_REF>: Remove special code for negative offset. | |
10256 | Call fold_build_pointer_plus instead of size_binop. | |
10257 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
10258 | * c-common.h (fold_offsetof_1): Declare. | |
10259 | (fold_offsetof): Remove STOP_REF argument. | |
10260 | ||
25339f10 JM |
10261 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
10262 | ||
10263 | PR c++/50810 | |
10264 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
10265 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
10266 | Wnarrowing for C++0x and C++98. | |
10267 | * c.opt ([Wnarrowing]): Update. | |
10268 | ||
89401152 PC |
10269 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
10270 | ||
10271 | PR c++/44277 | |
10272 | * c.opt: Add Wzero-as-null-pointer-constant. | |
10273 | ||
97e3ad20 JM |
10274 | 2011-10-31 Jason Merrill <jason@redhat.com> |
10275 | ||
15694fdd JM |
10276 | * c.opt (-fdeduce-init-list): Off by default. |
10277 | ||
97e3ad20 JM |
10278 | PR c++/50920 |
10279 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
10280 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
10281 | and -Wc++11-compat. | |
10282 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
10283 | ||
fb9120e3 RAV |
10284 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
10285 | ||
10286 | PR c++/30066 | |
10287 | * c.opt (fvisibility-inlines-hidden): Description change. | |
10288 | ||
3ce4f9e4 ESR |
10289 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
10290 | ||
10291 | Implement C++11 user-defined literals. | |
10292 | * c-common.c (build_userdef_literal): New. | |
10293 | * c-common.def: New tree code. | |
10294 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
10295 | * c-lex.c (interpret_float): Add suffix parm. | |
10296 | (c_lex_with_flags): Build literal tokens. | |
10297 | ||
5f53c243 PC |
10298 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
10299 | ||
10300 | PR c++/50841 | |
10301 | Revert: | |
10302 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
10303 | ||
10304 | PR c++/50810 | |
10305 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
10306 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
10307 | Wnarrowing for C++0x and C++98. | |
10308 | * c.opt ([Wnarrowing]): Update. | |
10309 | ||
263734e1 PC |
10310 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
10311 | ||
10312 | PR c++/50810 | |
10313 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
10314 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
10315 | Wnarrowing for C++0x and C++98. | |
10316 | * c.opt ([Wnarrowing]): Update. | |
10317 | ||
d2e312d7 PC |
10318 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
10319 | ||
10320 | PR c++/45385 | |
10321 | * c-common.c (conversion_warning): Remove code looking for | |
10322 | artificial operands. | |
10323 | ||
d17687f6 DS |
10324 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
10325 | ||
10326 | PR bootstrap/50760 | |
10327 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
9faeb493 | 10328 | !NO_IMPLICIT_EXTERN_C. |
d17687f6 | 10329 | |
fc8396e9 PC |
10330 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
10331 | ||
10332 | * c-common.c (c_common_reswords): Add __bases, | |
10333 | __direct_bases. | |
10334 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
10335 | ||
10336 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
10337 | ||
10338 | PR c++/50757 | |
10339 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
10340 | ||
847e697a TT |
10341 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
10342 | Dodji Seketeli <dodji@redhat.com> | |
10343 | ||
10344 | * c.opt (fdebug-cpp): New option. | |
10345 | * c-opts.c (c_common_handle_option): Handle the option. | |
10346 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
10347 | output stream in parameter. Factorized from ... | |
10348 | (maybe_print_line): ... this. Dump location debug information when | |
10349 | -fdebug-cpp is in effect. | |
10350 | (print_line_1): New static function. Takes an output stream in | |
10351 | parameter. Factorized from ... | |
10352 | (print_line): ... here. Dump location information when -fdebug-cpp | |
10353 | is in effect. | |
10354 | (scan_translation_unit): Dump location information when | |
10355 | -fdebug-cpp is in effect. | |
10356 | ||
92582b75 TT |
10357 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
10358 | Dodji Seketeli <dodji@redhat.com> | |
10359 | ||
10360 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
10361 | without argument. | |
10362 | * c-opts.c (c_common_handle_option)<case | |
10363 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
10364 | cases. Handle -ftrack-macro-expansion with and without argument. | |
10365 | ||
46427374 TT |
10366 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
10367 | Dodji Seketeli <dodji@redhat.com> | |
10368 | ||
10369 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
10370 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
10371 | the internals of struct line_map. Use the public API instead. | |
10372 | * c-pch.c (c_common_read_pch): Likewise. | |
10373 | * c-lex.c (fe_file_change): Likewise. | |
10374 | ||
fc8396e9 PC |
10375 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
10376 | ||
10377 | PR c++/17212 | |
10378 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
10379 | ||
10380 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
10381 | ||
10382 | PR c++/33067 | |
10383 | * c-pretty-print.c (pp_c_floating_constant): Output | |
10384 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
10385 | ||
e79983f4 MM |
10386 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
10387 | ||
10388 | * c-common.c (def_builtin_1): Delete old interface with two | |
10389 | parallel arrays to hold standard builtin declarations, and replace | |
10390 | it with a function based interface that can support creating | |
10391 | builtins on the fly in the future. Change all uses, and poison | |
10392 | the old names. Make sure 0 is not a legitimate builtin index. | |
10393 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
10394 | (c_finish_omp_taskwait): Ditto. | |
10395 | (c_finish_omp_flush): Ditto. | |
10396 | ||
6637388f TG |
10397 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
10398 | ||
10399 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
10400 | ||
3797cb21 DS |
10401 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
10402 | ||
10403 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
10404 | * c-common.h (struct c_language_function::local_typedefs): New | |
10405 | field. | |
9faeb493 UB |
10406 | (record_locally_defined_typedef, maybe_record_typedef_use) |
10407 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
3797cb21 | 10408 | * c-common.c (record_locally_defined_typedef) |
9faeb493 UB |
10409 | (maybe_record_typedef_use) |
10410 | (maybe_warn_unused_local_typedefs): Define new functions. | |
3797cb21 DS |
10411 | * c.opt: Declare new -Wunused-local-typedefs flag. |
10412 | ||
693ddb1b EB |
10413 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
10414 | ||
10415 | PR middle-end/50266 | |
10416 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
10417 | computations. | |
10418 | ||
830c740f RG |
10419 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
10420 | ||
10421 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
10422 | of integer_minus_one_node for empty array upper bounds. | |
10423 | ||
892a371f DS |
10424 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
10425 | ||
10426 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
10427 | it's the first time it's being called on this main TU. | |
10428 | ||
0e3fdb48 RB |
10429 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
10430 | ||
10431 | PR c/49396 | |
10432 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
10433 | ||
10434 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
e3dfef44 GC |
10435 | |
10436 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
10437 | defined in cpp_init_builtins and c_cpp_builtins. | |
10438 | ||
d4a83c10 JM |
10439 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
10440 | ||
10441 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
10442 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
10443 | ||
bbceee64 JM |
10444 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
10445 | ||
10446 | * c-common.c (c_common_reswords): Add _Noreturn. | |
10447 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
10448 | * c-common.h (RID_NORETURN): New. | |
10449 | ||
3f8257db | 10450 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
0e3a99ae AS |
10451 | |
10452 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
10453 | unsafe to convert an expression to the type. | |
10454 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
10455 | * c-common.h (unsafe_conversion_p): New function declaration. | |
10456 | ||
20906c66 JJ |
10457 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
10458 | ||
10459 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
10460 | (c_finish_omp_taskyield): New prototype. | |
10461 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
10462 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
10463 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
10464 | or RHS1 have side-effects, evaluate those too in the right spot, | |
10465 | if it is a decl and LHS is also a decl, error out if they | |
10466 | aren't the same. | |
10467 | (c_finish_omp_taskyield): New function. | |
10468 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
10469 | * c-pragma.c (omp_pragmas): Add taskyield. | |
10470 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
10471 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
10472 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
10473 | ||
770e5a2e DS |
10474 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
10475 | ||
10476 | * c-common.h (set_underlying_type): Remove parm name from | |
10477 | declaration. | |
10478 | ||
1baae426 RG |
10479 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
10480 | ||
10481 | * c-pretty-print.h: Search c-common.h in c-family. | |
9faeb493 | 10482 | |
fcb21722 JM |
10483 | 2011-07-22 Jason Merrill <jason@redhat.com> |
10484 | ||
76f86d00 JM |
10485 | PR c++/49793 |
10486 | * c.opt (Wnarrowing): New. | |
10487 | ||
3a636414 JM |
10488 | PR c++/30112 |
10489 | * c-common.h: Declare c_linkage_bindings. | |
10490 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
10491 | ||
fcb21722 JM |
10492 | PR c++/49813 |
10493 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
10494 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
10495 | as flag_isoc99 for 'restrict'. | |
10496 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
10497 | ||
02614448 ILT |
10498 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
10499 | ||
10500 | PR middle-end/49705 | |
10501 | * c-common.c (c_disable_warnings): New static function. | |
10502 | (c_enable_warnings): New static function. | |
10503 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
10504 | c_disable_warnings and c_enable_warnings rather than change | |
10505 | c_inhibit_evaluation_warnings. | |
10506 | ||
34429675 JM |
10507 | 2011-07-20 Jason Merrill <jason@redhat.com> |
10508 | ||
10509 | PR c++/6709 (DR 743) | |
10510 | PR c++/42603 (DR 950) | |
10511 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
10512 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
10513 | (CPP_DECLTYPE): New. | |
10514 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
10515 | ||
5d49b6a7 RG |
10516 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
10517 | ||
10518 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
10519 | * c-omp.c (c_finish_omp_for): Likewise. | |
10520 | ||
e84a58ff EB |
10521 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
10522 | ||
10523 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
10524 | body on the next line. | |
10525 | ||
329af3c7 JM |
10526 | 2011-07-08 Jason Merrill <jason@redhat.com> |
10527 | ||
4063e61b JM |
10528 | PR c++/45437 |
10529 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
10530 | ||
329af3c7 JM |
10531 | PR c++/49673 |
10532 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
10533 | TYPE_NEEDS_CONSTRUCTING. | |
10534 | ||
1a072294 RG |
10535 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
10536 | ||
10537 | * c-common.c (c_common_nodes_and_builtins): | |
10538 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
10539 | ||
fce5dddd RG |
10540 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
10541 | ||
10542 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
10543 | tree nodes first. | |
10544 | ||
45d439ac JJ |
10545 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
10546 | ||
56300785 JJ |
10547 | * c-common.h (c_tree_chain_next): New static inline function. |
10548 | ||
45d439ac JJ |
10549 | * c-common.c (check_builtin_function_arguments): Handle |
10550 | BUILT_IN_ASSUME_ALIGNED. | |
10551 | ||
e0a8ecf2 AM |
10552 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
10553 | ||
10554 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
10555 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
dfb43cd5 PV |
10556 | |
10557 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
10558 | ||
10559 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
10560 | handler. | |
10561 | (gen_pragma_handler): New union. | |
10562 | (internal_pragma_handler): New type. | |
10563 | (c_register_pragma_with_data) | |
10564 | (c_register_pragma_with_expansion_and_data): New functions. | |
10565 | ||
10566 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
10567 | (c_register_pragma, c_register_pragma_with_expansion) | |
10568 | (c_invoke_pragma_handler): Changed to work with | |
10569 | internal_pragma_handler. | |
10570 | (c_register_pragma_with_data) | |
10571 | (c_register_pragma_with_expansion_and_data): New functions. | |
10572 | ||
677f3fa8 JM |
10573 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
10574 | ||
10575 | * c-common.c: Include common/common-target.h. | |
10576 | (handle_section_attribute): Use | |
10577 | targetm_common.have_named_sections. | |
10578 | * c-cppbuiltin.c: Include common/common-target.h. | |
10579 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
10580 | ||
d7fc8c14 RG |
10581 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
10582 | ||
10583 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
10584 | to print a IDENTIFIER_NODE. | |
10585 | ||
10e48e39 RO |
10586 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
10587 | Joseph Myers <joseph@codesourcery.com> | |
10588 | ||
10589 | * c.opt (fbuilding-libgcc): New option. | |
10590 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
10591 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
10592 | ||
6976ae51 JM |
10593 | 2011-06-07 Jason Merrill <jason@redhat.com> |
10594 | ||
3ff60975 JM |
10595 | * c-common.c (max_tinst_depth): Lower default to 900. |
10596 | ||
6976ae51 JM |
10597 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
10598 | ||
009db074 RG |
10599 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
10600 | ||
10601 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
10602 | size_type_node or call set_sizetype. | |
10603 | ||
b4592b92 DS |
10604 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
10605 | ||
10606 | PR debug/49130 | |
10607 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
9faeb493 | 10608 | type when using pointer comparison to compare types. |
b4592b92 | 10609 | |
014ab419 JW |
10610 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
10611 | ||
10612 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
10613 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
10614 | ||
4f60111f NF |
10615 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
10616 | ||
10617 | PR bootstrap/49190 | |
10618 | ||
10619 | Revert: | |
10620 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
10621 | ||
10622 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
10623 | not tree_common. | |
10624 | ||
4cc4f2f4 JJ |
10625 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
10626 | ||
10627 | PR c++/49165 | |
10628 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
10629 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
10630 | ||
38e01f9e NF |
10631 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
10632 | ||
10633 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
10634 | (stmt_list_stack): Define. | |
10635 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
10636 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
10637 | ||
92e948a8 NF |
10638 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
10639 | ||
10640 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
10641 | ||
a2fc3e63 NF |
10642 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
10643 | ||
10644 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
10645 | not tree_common. | |
10646 | ||
0957c029 JJ |
10647 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
10648 | ||
10649 | * c-common.c (def_fn_type): Remove extra va_end. | |
10650 | ||
828fb3ba JM |
10651 | 2011-05-23 Jason Merrill <jason@redhat.com> |
10652 | ||
10653 | PR c++/48106 | |
10654 | * c-common.c (c_common_get_narrower): New. | |
10655 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
10656 | ||
dde05067 NF |
10657 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
10658 | ||
10659 | * c-common.h (check_function_arguments): Tweak prototype of | |
10660 | check_function_arguments. | |
10661 | * c-common.c (check_function_arguments): Likewise. Adjust | |
10662 | calls to check_function_nonnull, check_function_format, and | |
10663 | check_function_sentinel. | |
10664 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
10665 | separate attributes and typelist arguments. Use | |
10666 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
10667 | ||
3c0d13bf PC |
10668 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
10669 | ||
10670 | * c-common.c (c_common_reswords): Reorder. | |
10671 | * c-common.h (rid): Likewise. | |
10672 | ||
8242dd04 NF |
10673 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
10674 | ||
10675 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
10676 | build_function_type_array or build_varargs_function_type_array | |
10677 | instead. | |
10678 | (c_common_nodes_and_builtins): Likewise. | |
10679 | ||
3d528853 NF |
10680 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
10681 | ||
10682 | * c-common.c (c_add_case_label): Omit the loc argument to | |
10683 | build_case_label. | |
10684 | * c-common.h (build_case_label): Remove. | |
10685 | * c-semantics.c (build_case_label): Remove. | |
10686 | ||
a04a722b JM |
10687 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
10688 | ||
10689 | * c-objc.h (objc_start_method_definition): Update prototype. | |
10690 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
10691 | ||
e19a18d4 NF |
10692 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
10693 | ||
10694 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
10695 | TYPE_ARG_TYPES directly. | |
10696 | (handle_nonnull_attribute): Likewise. | |
10697 | (sync_resolve_params): Likewise. | |
10698 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
10699 | to check_format_string. | |
10700 | (handle_format_attribute): Likewise. | |
10701 | (check_format_string): Take a function type to examine instead of | |
10702 | a type list. Use a function_arg_iterator to step through argument | |
10703 | types. | |
10704 | ||
c62c040f RG |
10705 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
10706 | ||
10707 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
10708 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
10709 | (c_init_attributes): Likewise. | |
10710 | * c-lex.c (c_lex_with_flags): Likewise. | |
10711 | ||
c12ff9d8 JM |
10712 | 2011-04-27 Jason Merrill <jason@redhat.com> |
10713 | ||
10714 | * c-common.c (make_tree_vector_from_list): New. | |
10715 | * c-common.h: Declare it. | |
10716 | ||
304dfbe3 RG |
10717 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
10718 | ||
10719 | PR preprocessor/48248 | |
10720 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
10721 | for output size with -P. | |
10722 | ||
3c0d13bf PC |
10723 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
10724 | ||
10725 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
10726 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
10727 | ||
04695783 JM |
10728 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
10729 | ||
10730 | * c-format.c (init_dollar_format_checking): Remove useless | |
10731 | if-before-free. | |
10732 | ||
0dc33c3c NP |
10733 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
10734 | ||
10735 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 10736 | (objc_detect_field_duplicates): New. |
0dc33c3c | 10737 | * stub-objc.c: Likewise. |
3c0d13bf | 10738 | |
c59633d9 NP |
10739 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
10740 | ||
10741 | * stub-objc.c (objc_declare_protocols): Renamed to | |
10742 | objc_declare_protocol. | |
10743 | * c-objc.h: Likewise. | |
3c0d13bf | 10744 | |
32dabdaf NP |
10745 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
10746 | ||
10747 | * stub-objc.c (objc_declare_class): Updated argument name. | |
10748 | ||
81f653d6 NF |
10749 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
10750 | ||
10751 | * c-common.h (c_common_init_ts): Declare. | |
10752 | * c-common.c (c_common_init_ts): Define. | |
10753 | ||
eb345401 NP |
10754 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
10755 | ||
10756 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
10757 | * stub-objc.c (objc_build_message_expr): Likewise. | |
9faeb493 | 10758 | |
a358e188 MJ |
10759 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
10760 | ||
10761 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
10762 | of cgraph_node. | |
10763 | ||
e6313a78 RG |
10764 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
10765 | ||
10766 | * c-common.c (complete_array_type): Build a range type of | |
10767 | proper type. | |
10768 | ||
dcf0c47e NF |
10769 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
10770 | ||
10771 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
10772 | (handle_type_generic_attribute): Likewise. | |
10773 | ||
1ee44b26 JM |
10774 | 2011-04-07 Jason Merrill <jason@redhat.com> |
10775 | ||
10776 | PR c++/48450 | |
10777 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
10778 | conversion from C++0x scoped enum. | |
10779 | ||
acce4e77 JM |
10780 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
10781 | ||
10782 | * c-target-def.h: New file. | |
10783 | * c-target.def: New file. | |
10784 | * c-target.h: New file. | |
10785 | * c-common.c (targetcm): Don't define here. | |
10786 | * c-common.h (default_handle_c_option): Declare. | |
10787 | * c-format.c: Include c-target.h instead of target.h. | |
10788 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
10789 | include tm.h. | |
10790 | (default_handle_c_option): Move from targhooks.c. | |
10791 | ||
e2eefb55 JJ |
10792 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
10793 | ||
10794 | PR preprocessor/48248 | |
10795 | * c-ppoutput.c (print): Add src_file field. | |
10796 | (init_pp_output): Initialize it. | |
10797 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
10798 | if map->to_file and print.src_file are different file. | |
10799 | (print_line): Update print.src_file. | |
10800 | ||
ba78087b KT |
10801 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
10802 | ||
10803 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
10804 | instead of strcmp for filename. | |
10805 | ||
0edf1bb2 JL |
10806 | 2011-03-25 Jeff Law <law@redhat.com> |
10807 | ||
adfac8df | 10808 | * c-common.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 10809 | |
c7dc8804 JM |
10810 | 2011-03-25 Jason Merrill <jason@redhat.com> |
10811 | ||
10812 | * c.opt: Add -std=c++03. | |
10813 | ||
d1d879b1 EB |
10814 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
10815 | ||
10816 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
10817 | ||
3f8257db | 10818 | 2011-03-17 Kai Tietz <ktietz@redhat.com> |
62d784f7 KT |
10819 | |
10820 | PR target/12171 | |
5050afdf KT |
10821 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
10822 | Display allowed attributes for function pointer types. | |
10823 | (pp_c_attributes_display): New function to display | |
10824 | attributes having affects_type_identity flag set to true. | |
10825 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
10826 | ||
62d784f7 KT |
10827 | * c-common.c (c_common_attribute_table): |
10828 | Add new element. | |
10829 | (c_common_format_attribute_table): Likewise. | |
10830 | ||
82d37118 JM |
10831 | 2011-03-18 Jason Merrill <jason@redhat.com> |
10832 | ||
49a000c3 JM |
10833 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
10834 | * c-common.h: Don't declare it here. | |
10835 | * c-common.c: Or define it here. | |
10836 | * c-opts.c (c_common_handle_option): Or set it here. | |
10837 | ||
82d37118 JM |
10838 | PR c++/35315 |
10839 | * c-common.c (handle_transparent_union_attribute): Don't | |
10840 | make a duplicate type in C++. | |
10841 | ||
17bc631c JM |
10842 | 2011-03-15 Jason Merrill <jason@redhat.com> |
10843 | ||
10844 | * c-common.c (max_constexpr_depth): New. | |
10845 | * c-common.h: Declare it. | |
10846 | * c-opts.c (c_common_handle_option): Set it. | |
10847 | * c.opt (fconstexpr-depth): New option. | |
10848 | ||
1b9b91a6 JM |
10849 | 2011-03-11 Jason Merrill <jason@redhat.com> |
10850 | ||
f231b5ff JM |
10851 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
10852 | ||
1b9b91a6 JM |
10853 | PR c++/46803 |
10854 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
10855 | unknown attribute takes an identifier. | |
10856 | ||
a19e4d44 NF |
10857 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
10858 | ||
10859 | PR c/47786 | |
10860 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
10861 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
10862 | ||
982d62f6 JJ |
10863 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
10864 | ||
10865 | PR c/47809 | |
10866 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
10867 | ||
0a256240 NP |
10868 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
10869 | ||
10870 | * c.opt (fobjc-abi-version=) New. | |
10871 | (fobjc-nilcheck): New. | |
10872 | ||
ba9e6dd5 NF |
10873 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
10874 | ||
10875 | PR c++/46890 | |
10876 | * c-common.h (keyword_is_decl_specifier): Declare. | |
10877 | * c-common.c (keyword_is_decl_specifier): Define. | |
10878 | (keyword_is_function_specifier): New function. | |
10879 | ||
7273813a JJ |
10880 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
10881 | ||
10882 | PR c/47473 | |
10883 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
10884 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
10885 | REAL_TYPE. | |
10886 | ||
908ef79b AC |
10887 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
10888 | ||
10889 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
10890 | ||
237e9384 JJ |
10891 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
10892 | ||
10893 | PR pch/47430 | |
10894 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
10895 | after init_c_lex if pch_file is set. | |
10896 | ||
47ea1edf DK |
10897 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
10898 | ||
d4dba752 | 10899 | PR c++/43601 |
47ea1edf DK |
10900 | * c.opt (-fkeep-inline-dllexport): New switch. |
10901 | ||
2aa9c6ae RG |
10902 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
10903 | ||
10904 | PR middle-end/32511 | |
10905 | * c-common.c (handle_weak_attribute): Warn instead of error | |
10906 | on declaring an inline function weak. | |
10907 | ||
7bd11157 TT |
10908 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
10909 | ||
10910 | * c-common.h (lvalue_error): Update. | |
10911 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
10912 | not error. | |
10913 | ||
0e66e494 | 10914 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
9faeb493 | 10915 | |
b4f588c4 NP |
10916 | PR objc/47075 |
10917 | * c-objc.h (objc_finish_message_expr): Added argument to | |
10918 | prototype. | |
10919 | ||
f4da8dce NF |
10920 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
10921 | ||
10922 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
10923 | Use prototype_p. | |
10924 | ||
46270f14 NP |
10925 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
10926 | ||
10927 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
9faeb493 | 10928 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
46270f14 | 10929 | |
4816c593 NF |
10930 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
10931 | ||
10932 | * c-common.h (readonly_error): Declare. | |
10933 | * c-common.c (readonly_error): Define. | |
10934 | ||
7a6daeb0 NF |
10935 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
10936 | ||
10937 | * c-common.h (invalid_indirection_error): Declare. | |
10938 | * c-common.c (invalid_indirection_error): Define. | |
10939 | ||
892f6119 RG |
10940 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
10941 | ||
10942 | PR c/46745 | |
10943 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
10944 | (pp_c_unary_expression): Likewise. | |
10945 | (pp_c_expression): Likewise. | |
10946 | ||
6c39e757 NP |
10947 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
10948 | ||
10949 | * c-common.h (objc_finish_function): New. | |
10950 | (objc_non_volatilized_type): Removed. | |
10951 | (objc_type_quals_match): Removed. | |
10952 | * stub-objc.c (objc_finish_function): New. | |
10953 | (objc_non_volatilized_type): Removed. | |
10954 | (objc_type_quals_match): Removed. | |
9faeb493 | 10955 | |
7c475d11 JM |
10956 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
10957 | ||
10958 | * c-common.h (parse_optimize_options): Declare. | |
10959 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
10960 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
10961 | ||
71f3e391 JM |
10962 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
10963 | ||
10964 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
10965 | GET_ENVIRONMENT. | |
10966 | * c-pch.c (O_BINARY): Don't define here. | |
10967 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
10968 | ||
d5fabb58 JM |
10969 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
10970 | ||
10971 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
10972 | targetm.except_unwind_info. | |
10973 | ||
299404a1 JM |
10974 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
10975 | ||
10976 | * c-opts.c (c_common_handle_option): Pass location to | |
10977 | set_struct_debug_option. | |
10978 | ||
c98cd5bf JM |
10979 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
10980 | ||
10981 | * c-common.c (visibility_options): Move from ../opts.c. | |
10982 | * c-common.h (struct visibility_flags, visibility_options): | |
10983 | Declare here. | |
10984 | * c-opts.c (finish_options): Rename to c_finish_options. | |
10985 | (c_common_init): Update call to finish_options. | |
10986 | ||
a9546771 NP |
10987 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
10988 | ||
10989 | PR objc/34033 | |
10990 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
10991 | string concat sequence starts with either one or zero '@', and | |
10992 | that there are no spurious '@' signs at the end. | |
10993 | ||
24a57808 JM |
10994 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
10995 | ||
10996 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
10997 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
10998 | HANDLE_PRAGMA_VISIBILITY. | |
10999 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
11000 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
11001 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
11002 | ||
a9aa2c3a NF |
11003 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
11004 | ||
11005 | PR c++/16189 | |
11006 | PR c++/36888 | |
11007 | PR c++/45331 | |
11008 | * c-common.h (keyword_begins_type_specifier): Declare. | |
11009 | (keyword_is_storage_class_specifier): Declare. | |
11010 | (keyword_is_type_qualifier): Declare. | |
11011 | * c-common.c (keyword_begins_type_specifier): New function. | |
11012 | (keyword_is_storage_class_specifier): New function. | |
11013 | (keyword_is_type_qualifier): Declare. | |
11014 | ||
5386338c JM |
11015 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
11016 | ||
11017 | PR c/46547 | |
11018 | * c-common.c (in_late_binary_op): Define. | |
11019 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
11020 | calling c_save_expr. | |
11021 | * c-common.h (in_late_binary_op): Declare. | |
11022 | ||
69ccdddb JM |
11023 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
11024 | ||
11025 | * c-opts.c (c_common_handle_option): Update calls to | |
11026 | set_struct_debug_option. | |
11027 | ||
6b192a09 NP |
11028 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
11029 | ||
11030 | * c-common.h (objc_declare_protocols): Added additional argument. | |
11031 | * stub-objc.c (objc_declare_protocol): Same change. | |
9faeb493 | 11032 | |
fb52b50a NF |
11033 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
11034 | ||
11035 | PR c/33193 | |
11036 | * c-common.h (build_real_imag_expr): Declare. | |
11037 | * c-semantics.c (build_real_imag_expr): Define. | |
11038 | ||
b37421c6 JM |
11039 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
11040 | ||
11041 | * c-opts.c (c_common_parse_file): Take no arguments. | |
11042 | * c-common.h (c_common_parse_file): Update prototype. | |
11043 | ||
07078664 JJ |
11044 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
11045 | ||
11046 | PR c++/46401 | |
11047 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
11048 | or STRING_CSTs. | |
11049 | ||
c6a13190 ILT |
11050 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
11051 | ||
11052 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
11053 | flag_dump_go_spec is set. | |
11054 | ||
925e8657 NP |
11055 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
11056 | ||
11057 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
11058 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
11059 | ||
bb0a9581 NF |
11060 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
11061 | ||
11062 | PR preprocessor/45038 | |
11063 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
11064 | dialects. | |
11065 | ||
c5fa0890 JM |
11066 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
11067 | ||
11068 | * c-common.h (c_family_lang_mask): Declare. | |
11069 | * c-opts.c (c_family_lang_mask): Make extern. | |
11070 | * c-pragma.c (handle_pragma_diagnostic): Use | |
11071 | control_warning_option. | |
11072 | ||
a4d8c676 JM |
11073 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
11074 | ||
11075 | * c-common.c (parse_optimize_options): Update call to | |
11076 | decode_options. | |
11077 | * c-common.h (c_common_handle_option): Update prototype. | |
11078 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
11079 | pass it to other functions. | |
11080 | ||
f954bd2c JM |
11081 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
11082 | ||
11083 | * c-opts.c (warning_as_error_callback): Remove. | |
11084 | (c_common_initialize_diagnostics): Don't call | |
11085 | register_warning_as_error_callback. | |
11086 | (c_common_handle_option): Handle -Werror=normalized= here. | |
11087 | ||
d8a07487 JM |
11088 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
11089 | ||
11090 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
11091 | in diagnostic. | |
11092 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
11093 | letter. | |
11094 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
11095 | Remove trailing '.' from diagnostics. | |
11096 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
11097 | ||
d5478783 JM |
11098 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
11099 | ||
11100 | * c-common.c (parse_optimize_options): Pass global_dc to | |
11101 | decode_options. | |
11102 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
11103 | set_Wstrict_aliasing. | |
11104 | * c.opt (v): Don't mark Common or document here. | |
11105 | ||
91ebb981 IS |
11106 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
11107 | ||
11108 | PR target/44981 | |
11109 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
11110 | (valid_stringptr_type_p): New. | |
11111 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
9faeb493 | 11112 | (check_format_string): Pass expected type, use |
91ebb981 IS |
11113 | valid_stringptr_type_p (), check that the format string types are |
11114 | consistent with the format specification. | |
11115 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
11116 | (format_types_orig): Add NSString. | |
11117 | (format_name): New. | |
11118 | (format_flags): New. | |
11119 | (check_format_arg): Handle format strings requiring an external parser. | |
11120 | first_target_format_type: New variable. | |
11121 | (handle_format_attribute): Set up first_target_format_type, pass the | |
11122 | expected format arg string type to check_format_string(). | |
ab20d992 | 11123 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. |
91ebb981 IS |
11124 | * stub-objc.c (objc_string_ref_type_p): New. |
11125 | (objc_check_format_arg): New. | |
11126 | ||
bede2adc NP |
11127 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
11128 | ||
9faeb493 | 11129 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
bede2adc NP |
11130 | * c-common.h (objc_build_class_component_ref): New. |
11131 | * stub-objc.c (objc_build_class_component_ref): New. | |
11132 | ||
9a179d01 NP |
11133 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
11134 | ||
11135 | * c.opt (Wproperty-assign-default): New option. | |
11136 | ||
22d8d616 NP |
11137 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
11138 | ||
11139 | Implemented -fobjc-std=objc1 flag. | |
11140 | * c.opt (fobjc-std=objc1): New option. | |
11141 | ||
2debdb4f NP |
11142 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
11143 | ||
11144 | Implemented format and noreturn attributes for Objective-C methods. | |
11145 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
11146 | attribute for Objective-C methods. | |
11147 | ||
ec52b111 JM |
11148 | 2010-10-31 Jason Merrill <jason@redhat.com> |
11149 | ||
11150 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
11151 | EXPR_LOC_OR_HERE. | |
11152 | ||
46a88c12 NP |
11153 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
11154 | ||
11155 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
11156 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
11157 | (objc_add_property_declaration): Removed arguments for copies and | |
11158 | ivar. | |
11159 | (objc_build_getter_call): Renamed to | |
11160 | objc_maybe_build_component_ref. | |
11161 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
11162 | (objc_is_property_ref): New. | |
11163 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
11164 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
11165 | for copies and ivar. | |
11166 | (objc_build_getter_call): Renamed to | |
11167 | objc_maybe_build_component_ref. | |
11168 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
11169 | (objc_is_property_ref): New. | |
9faeb493 | 11170 | |
1e4bf85b AC |
11171 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
11172 | Matthew Gingell <gingell@adacore.com> | |
11173 | ||
11174 | * c-ada-spec.c (separate_class_package): New function. | |
11175 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
11176 | name of their enclosing package. | |
11177 | (print_ada_declaration): Use separate_class_package. | |
11178 | ||
81f0bab2 JM |
11179 | 2010-10-27 Jason Merrill <jason@redhat.com> |
11180 | ||
2b08f2c5 JM |
11181 | * c-common.c (c_common_reswords): Add __is_literal_type. |
11182 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
11183 | ||
81f0bab2 JM |
11184 | * c-common.c (check_case_value): Remove special C++ code. |
11185 | ||
200290f2 NP |
11186 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
11187 | ||
11188 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
11189 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
11190 | and RID_LAST_PATTR. | |
11191 | (objc_add_property_declaration): Added additional arguments. | |
11192 | (objc_property_attribute_kind): Removed. | |
11193 | (objc_set_property_attr): Removed. | |
11194 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
11195 | copy and nonatomic. | |
11196 | * stub-objc.c (objc_add_property_declaration): Added additional | |
11197 | arguments. | |
11198 | (objc_set_property_attr): Removed. | |
9faeb493 | 11199 | |
f614132b NP |
11200 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
11201 | ||
11202 | * c-common.h (objc_add_property_variable): Renamed to | |
11203 | objc_add_property_declaration. Added location argument. | |
11204 | * stub-objc.c (objc_add_property_variable): Same change. | |
b1726d6c | 11205 | |
b8a18805 NP |
11206 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
11207 | ||
11208 | * c-common.h (objc_maybe_printable_name): New. | |
11209 | * stub-objc.c (objc_maybe_printable_name): New. | |
11210 | ||
3f8257db JJ |
11211 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
11212 | Andrew Pinski <pinskia@gmail.com> | |
30cd1c5d AS |
11213 | |
11214 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
11215 | * c-common.c (c_common_mark_addressable_vec): New function. | |
11216 | ||
249a82c4 NP |
11217 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
11218 | ||
11219 | * c-common.h (objc_set_method_type): Removed. | |
11220 | (objc_add_method_declaration): Added boolean argument. | |
11221 | (objc_start_method_definition): Same change. | |
11222 | (objc_build_method_signature): Same change. | |
11223 | * stub-objc.c (objc_set_method_type): Removed. | |
11224 | (objc_add_method_declaration): Added boolean argument. | |
11225 | (objc_start_method_definition): Same change. | |
11226 | (objc_build_method_signature): Same change. | |
11227 | ||
977e30bc NP |
11228 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
11229 | ||
11230 | * c-common.h (finish_file): Removed. | |
11231 | (objc_write_global_declarations): New. | |
11232 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
11233 | * stub-objc.c (objc_write_global_declarations): New. | |
9faeb493 | 11234 | |
da57d1b9 NP |
11235 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
11236 | ||
11237 | Implemented parsing @synthesize and @dynamic for | |
11238 | Objective-C/Objective-C++. | |
11239 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
11240 | (objc_add_synthesize_declaration): New. | |
11241 | (objc_add_dynamic_declaration): New. | |
11242 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
11243 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
11244 | (objc_add_dynamic_declaration): New. | |
9faeb493 | 11245 | |
0069111f MM |
11246 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
11247 | ||
11248 | PR target/46041 | |
11249 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
11250 | builtins.c. Don't use the fma optab, instead just use the | |
11251 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
11252 | using -save-temps. | |
11253 | ||
e426b47b NP |
11254 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
11255 | ||
11256 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 11257 | |
3f8257db | 11258 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
e426b47b | 11259 | |
9faeb493 | 11260 | Radar 4330422 |
e426b47b NP |
11261 | * c-common.h (objc_non_volatilized_type): New declaration |
11262 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
11263 | ||
90fbfdc3 NP |
11264 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
11265 | ||
e426b47b | 11266 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 | 11267 | |
ab20d992 | 11268 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> |
90fbfdc3 | 11269 | |
9faeb493 | 11270 | Radar 4133425 |
90fbfdc3 | 11271 | * c-common.h (objc_diagnose_private_ivar): New decl. |
0069111f | 11272 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 11273 | |
c37d8c30 IS |
11274 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
11275 | ||
11276 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
11277 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
11278 | (objc_ivar_visibility_kind): New enum. | |
11279 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 11280 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
11281 | visibility enum. |
11282 | ||
1b1562a5 MM |
11283 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
11284 | ||
11285 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
11286 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
11287 | has the appropriate fma builtins. | |
11288 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
11289 | ||
668ea4b1 IS |
11290 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
11291 | ||
1b1562a5 | 11292 | merge from FSF apple 'trunk' branch. |
3f8257db | 11293 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 11294 | |
668ea4b1 IS |
11295 | Radars 4436866, 4505126, 4506903, 4517826 |
11296 | * c-common.c (c_common_resword): Define @property and its attributes. | |
11297 | * c-common.h: Define property attribute enum entries. | |
11298 | (OBJC_IS_PATTR_KEYWORD): New. | |
11299 | (objc_property_attribute_kind): New enum. | |
11300 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
11301 | objc_build_getter_call () and objc_build_setter_call (). | |
11302 | * stub-objc.c (objc_set_property_attr): New stub. | |
11303 | (objc_add_property_variable): Likewise. | |
11304 | (objc_build_getter_call): Likewise. | |
11305 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 11306 | |
a1178b30 IS |
11307 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
11308 | ||
1b1562a5 | 11309 | merge from FSF apple 'trunk' branch. |
ab20d992 | 11310 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
a1178b30 IS |
11311 | |
11312 | Radar 3803157 (method attributes) | |
11313 | * c-common.c (handle_deprecated_attribute): Recognize | |
11314 | objc methods as valid declarations. | |
11315 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 11316 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 11317 | |
a75bfaa6 JM |
11318 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
11319 | ||
11320 | * c-common.c (parse_optimize_options): Call | |
11321 | decode_cmdline_options_to_array_default_mask before | |
11322 | decode_options. Update arguments to decode_options. | |
11323 | * c-common.h (c_common_init_options_struct): Declare. | |
11324 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
11325 | c_common_init_options. | |
11326 | ||
f05b9d93 NP |
11327 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
11328 | ||
11329 | Implemented fast enumeration for Objective-C. | |
11330 | * c-common.h (objc_finish_foreach_loop): New. | |
11331 | * stub-objc.c (objc_finish_foreach_loop): New. | |
11332 | ||
1ebe4b4f JM |
11333 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
11334 | ||
11335 | * c-common.h (struct diagnostic_context): Don't declare here. | |
11336 | (c_common_initialize_diagnostics): Declare using | |
11337 | diagnostic_context typedef. | |
11338 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
11339 | handle_generated_option. | |
11340 | ||
d4d24ba4 JM |
11341 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
11342 | ||
11343 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
11344 | handle_generated_option. | |
11345 | ||
478a1c5b ILT |
11346 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
11347 | ||
11348 | * c.opt (-fplan9-extensions): New option. | |
11349 | ||
82a1c2fe FXC |
11350 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
11351 | ||
11352 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
11353 | Remove. | |
11354 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
11355 | of duplicating code. | |
11356 | ||
92902b1b IS |
11357 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
11358 | ||
11359 | * c-common.c: Add two new entries for @optional | |
11360 | and @required keywords. | |
11361 | ||
11362 | merge from FSF 'apple/trunk' branch. | |
3f8257db | 11363 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> |
92902b1b IS |
11364 | |
11365 | Radar 4386773 | |
11366 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
11367 | objective-c keywords. | |
11368 | (objc_set_method_opt): New declaration. | |
11369 | * stub-objc.c (objc_set_method_opt): New stub. | |
9faeb493 | 11370 | |
46625112 JM |
11371 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
11372 | ||
11373 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
11374 | cl_optimization_save and cl_optimization_restore. | |
11375 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
11376 | handle_generated_option. | |
11377 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
11378 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
11379 | &global_options to cl_optimization_restore. | |
11380 | ||
49b91f05 NP |
11381 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
11382 | ||
11383 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
11384 | Objective-C/Objective-C++ keywords. | |
11385 | ||
13ed556f | 11386 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 | 11387 | |
9faeb493 UB |
11388 | Merge from 'apple/trunk' branch on FSF servers. |
11389 | ||
3f8257db | 11390 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
a6341d57 NP |
11391 | |
11392 | Radar 4281748 | |
11393 | * c-common.h (objc_check_global_decl): New declaration. | |
11394 | * stub-objc.c (objc_check_global_decl): New stub. | |
11395 | ||
f0036cca JM |
11396 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
11397 | ||
11398 | * c.opt: Don't use VarExists. | |
11399 | ||
e3339d0f JM |
11400 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
11401 | ||
11402 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
11403 | members. | |
11404 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
11405 | cl_optimization members. | |
11406 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
11407 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
11408 | members. | |
11409 | ||
1973201f NP |
11410 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
11411 | ||
11412 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
11413 | (objc_is_reserved_word): Removed. | |
11414 | * c-common.c: Updated comments. | |
11415 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
11416 | objc_is_reserved_word. | |
11417 | * stub-objc.c (objc_is_reserved_word): Removed. | |
11418 | ||
f7e71da5 IS |
11419 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
11420 | ||
9faeb493 | 11421 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
f7e71da5 IS |
11422 | include attributes. |
11423 | (objc_start_method_definition): Likewise. | |
11424 | (objc_build_keyword_decl): Likewise. | |
11425 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
11426 | (objc_start_method_definition): Likewise. | |
11427 | (objc_build_keyword_decl): Likewise. | |
11428 | ||
c165dca7 IS |
11429 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
11430 | ||
11431 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
11432 | (objc_start_category_interface): Likewise. | |
11433 | (objc_start_protocol): Likewise. | |
11434 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
11435 | (objc_start_class_interface): Likewise. | |
11436 | (objc_start_category_interface): Likewise. | |
11437 | ||
7458026b ILT |
11438 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
11439 | ||
11440 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
11441 | (handle_no_split_stack_attribute): New static function. | |
11442 | ||
b581b85b NP |
11443 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
11444 | ||
9faeb493 | 11445 | Merge from 'apple/trunk' branch on FSF servers. |
b581b85b | 11446 | |
3f8257db | 11447 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> |
b581b85b | 11448 | |
9faeb493 | 11449 | Radar 4229905 |
b581b85b NP |
11450 | * c-common.h (objc_have_common_type): New declaration. |
11451 | * stub-objc.c (objc_have_common_type): New stub. | |
11452 | ||
11453 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
11454 | ||
11455 | Radar 4154928 | |
11456 | * c-common.h (objc_common_type): New prototype. | |
9faeb493 | 11457 | * stub-objc.c (objc_common_type): New stub. |
b581b85b | 11458 | |
46a4da10 JH |
11459 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
11460 | ||
11461 | * c-common.c (handle_leaf_attribute): New function. | |
11462 | (struct attribute_spec c_common_att): Add leaf. | |
11463 | ||
e200444e JM |
11464 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
11465 | ||
11466 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
11467 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
11468 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
11469 | -include-barrier, -include-directory, -include-directory=, | |
11470 | -include-directory-after, -include-directory-after=, | |
11471 | -include-prefix, -include-prefix=, -include-with-prefix, | |
11472 | -include-with-prefix=, -include-with-prefix-after, | |
11473 | -include-with-prefix-after=, -include-with-prefix-before, | |
11474 | -include-with-prefix-before=, -no-integrated-cpp, | |
11475 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
11476 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
11477 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
11478 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
11479 | -user-dependencies, -verbose, -write-dependencies, | |
11480 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
11481 | ||
29a80ea6 NP |
11482 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
11483 | ||
11484 | PR objc/23710 | |
ac1fc2fc NP |
11485 | * c-common.h (objc_start_method_definition): Return bool instead |
11486 | of void. | |
11487 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
11488 | of void. | |
11489 | ||
11490 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
11491 | ||
11492 | PR objc/25965 | |
11493 | * c-common.h (objc_get_interface_ivars): New declaration. | |
11494 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 11495 | |
de621752 ILT |
11496 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
11497 | ||
11498 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 11499 | messages. Remove period at end of warning message. |
de621752 | 11500 | |
ba885ec5 NS |
11501 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
11502 | ||
11503 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
11504 | (handle_alias_attribute): ... here. | |
11505 | (handle_ifunc_attribute): New. | |
11506 | ||
c5ee1358 MM |
11507 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
11508 | ||
11509 | * c-common.h (do_warn_double_promotion): Declare. | |
11510 | * c-common.c (do_warn_double_promotion): Define. | |
11511 | ||
0a0b3574 MM |
11512 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
11513 | ||
11514 | * c.opt (Wdouble-promotion): New. | |
11515 | ||
d1779886 JM |
11516 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
11517 | ||
11518 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
11519 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
11520 | ||
2d2bd949 JM |
11521 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
11522 | ||
11523 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
11524 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
11525 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
11526 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
11527 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
11528 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
11529 | applicable. | |
11530 | (fhandle-exceptions): Mark with Alias and Warn. | |
11531 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
11532 | as ignored. | |
11533 | ||
5de8299c JM |
11534 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
11535 | ||
11536 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
11537 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
11538 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
11539 | aliases. | |
11540 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
11541 | OPT_Wcomments. | |
11542 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
11543 | Don't handle options marked as aliases. | |
11544 | ||
0ceb0201 RG |
11545 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
11546 | ||
11547 | * c-common.c (c_common_get_alias_set): Remove special | |
11548 | handling for pointers. | |
11549 | ||
ac47786e NF |
11550 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
11551 | ||
11552 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
11553 | * c-gimplify.c: Likewise. | |
11554 | * c-pragma.c: Likewise. | |
11555 | ||
c878765b JM |
11556 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
11557 | ||
11558 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
11559 | RejectDriver. | |
11560 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
11561 | RejectDriver. | |
11562 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
11563 | instead of OPT_MDX and OPT_MMDX. | |
11564 | ||
603349bf JM |
11565 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
11566 | ||
11567 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
11568 | ||
644fa7ac JM |
11569 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
11570 | ||
11571 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
11572 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
11573 | ||
481e1176 JM |
11574 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
11575 | ||
11576 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
11577 | instead of handle_option. | |
11578 | ||
ac8dc9f7 NF |
11579 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
11580 | ||
11581 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
11582 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
11583 | ||
4f8c876d NF |
11584 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
11585 | ||
11586 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
11587 | (pending_redefine_extname): Change type to a VEC. | |
11588 | (add_to_renaming_pragma_list): Update for new type of | |
11589 | pending_redefine_extname. | |
ac8dc9f7 | 11590 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 11591 | |
3b0c690e AC |
11592 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
11593 | ||
11594 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
11595 | visited. | |
11596 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
11597 | decide whether a type has already been declared/seen. | |
11598 | Do not go to the original type. | |
11599 | (dump_nested_types): New parameter forward. | |
11600 | Generate forward declaration if needed and mark type as visited. | |
11601 | (print_ada_declaration): Call dump_nested_types if not already done. | |
11602 | Mark types as visited. | |
11603 | ||
1890bccc JM |
11604 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
11605 | ||
11606 | * c.opt (-print-pch-checksum): Remove option. | |
11607 | * c-opts.c (c_common_handle_option): Don't handle | |
11608 | OPT_print_pch_checksum. | |
11609 | ||
5f20c657 JM |
11610 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
11611 | ||
11612 | * c-common.h (c_common_handle_option): Update prototype and return | |
11613 | value type. | |
11614 | * c-opts.c (c_common_handle_option): Update prototype and return | |
11615 | value type. Update calls to handle_option and | |
11616 | enable_warning_as_error. | |
11617 | ||
f551f80c JJ |
11618 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
11619 | ||
11620 | PR c/45079 | |
11621 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
11622 | ||
61ff2bdc JM |
11623 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
11624 | ||
11625 | * c-common.h (c_common_missing_argument): Remove. | |
11626 | * c-opts.c (c_common_missing_argument): Remove. | |
11627 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
11628 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
11629 | MissingArgError. | |
11630 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
11631 | ||
7a9bf9a4 JM |
11632 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
11633 | ||
11634 | * c-common.h (c_common_option_lang_mask, | |
11635 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
11636 | New. | |
11637 | (c_common_init_options): Update prototype. | |
11638 | * c-opts.c (c_common_option_lang_mask): New. | |
11639 | (c_common_initialize_diagnostics): Split out of | |
11640 | c_common_init_options. | |
11641 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
11642 | New. | |
11643 | (c_common_init_options): Update prototype. Use decoded options in | |
11644 | search for -lang-asm. | |
11645 | ||
910ad8de NF |
11646 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
11647 | ||
11648 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
11649 | * c-format.c: Likewise. | |
11650 | ||
718f9c0f MLI |
11651 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
11652 | ||
11653 | * c-common.h: Include diagnostic-core.h. Error if already | |
11654 | included. | |
11655 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
11656 | ||
4d451982 MLI |
11657 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
11658 | ||
adfac8df | 11659 | * c-common.c (IN_GCC_FRONTEND): Do not undef. |
4d451982 MLI |
11660 | Do not include expr.h |
11661 | (vector_mode_valid_p): Move here. | |
11662 | ||
119fe915 SB |
11663 | 2010-06-21 DJ Delorie <dj@redhat.com> |
11664 | ||
11665 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
11666 | allow these pragmas anywhere. | |
11667 | ||
11668 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
11669 | ||
11670 | PR bootstrap/44509 | |
11671 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
11672 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
11673 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
11674 | ggc_strdup instead of xstrdup. | |
11675 | ||
11676 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
11677 | ||
11678 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
11679 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
11680 | (lazy_hex_fp_value): New function. | |
11681 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
11682 | ||
6662d794 MLI |
11683 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
11684 | ||
11685 | * c-gimplify.c: Do not include tree-flow.h | |
11686 | ||
38f8b050 JR |
11687 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
11688 | ||
11689 | PR other/44034 | |
11690 | * c-common.c: Rename targetm member: | |
11691 | targetm.enum_va_list -> targetm.enum_va_list_p | |
11692 | ||
9589f23e AS |
11693 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
11694 | ||
11695 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
11696 | ||
3b06d379 SB |
11697 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
11698 | ||
11699 | * c-cppbuiltin.c: Do not include except.h. | |
11700 | ||
d166d4c3 AK |
11701 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
11702 | ||
9faeb493 UB |
11703 | * c-common.c (warn_for_omitted_condop): New. |
11704 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
d166d4c3 | 11705 | |
70cb8be6 JM |
11706 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
11707 | ||
11708 | * c.opt (lang-objc): Remove. | |
11709 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
11710 | ||
a4c97feb JR |
11711 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
11712 | ||
11713 | * c-opts.c: Include "tm_p.h". | |
11714 | ||
6e2f1956 JM |
11715 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
11716 | ||
11717 | * c-common.c (parse_optimize_options): Update call to | |
11718 | decode_options. | |
11719 | ||
bc87224e NF |
11720 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
11721 | ||
11722 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
11723 | new type of types_used_by_cur_var_decl. | |
11724 | ||
b49cf425 JR |
11725 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
11726 | ||
11727 | PR bootstrap/44512 | |
11728 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
11729 | for C++ standard compliance. | |
11730 | ||
59f9c2ed JM |
11731 | 2010-06-16 Jason Merrill <jason@redhat.com> |
11732 | ||
11733 | * c.opt: Add -Wnoexcept. | |
11734 | ||
33766b66 RG |
11735 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
11736 | ||
11737 | PR c/44555 | |
11738 | * c-common.c (c_common_truthvalue_conversion): Remove | |
11739 | premature and wrong optimization concering ADDR_EXPRs. | |
11740 | ||
eff7e30c AC |
11741 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
11742 | ||
11743 | * c-ada-spec.c (dump_sloc): Remove column info. | |
11744 | (is_simple_enum): New function. | |
11745 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
11746 | enum types when relevant. | |
11747 | ||
6312e84d MLI |
11748 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
11749 | ||
9faeb493 | 11750 | * c-common.c (conversion_warning): Warn at expression |
6312e84d MLI |
11751 | location. |
11752 | ||
1cb42611 JM |
11753 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
11754 | ||
11755 | * c-opts.c (c_common_handle_option): Don't handle | |
11756 | OPT_fshow_column. | |
11757 | ||
a9429e29 LB |
11758 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
11759 | ||
11760 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
11761 | (handle_pragma_push_options): Likewise. | |
11762 | ||
11763 | * c-common.c (parse_optimize_options): Likewise. | |
11764 | ||
11765 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
11766 | option. | |
11767 | ||
5498f011 JM |
11768 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
11769 | ||
11770 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
11771 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
11772 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
11773 | flag_signed_bitfields, warn_strict_null_sentinel, | |
11774 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
11775 | flag_gen_declaration, flag_no_gnu_keywords, | |
11776 | flag_implement_inlines, flag_implicit_templates, | |
11777 | flag_implicit_inline_templates, flag_optional_diags, | |
11778 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
11779 | flag_conserve_space, flag_access_control, flag_check_new, | |
11780 | flag_new_for_scope, flag_weak, flag_working_directory, | |
11781 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
11782 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
11783 | flag_pretty_templates): Remove. | |
11784 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
11785 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
11786 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
11787 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
11788 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
11789 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
11790 | flag_no_gnu_keywords, flag_implement_inlines, | |
11791 | flag_implicit_templates, flag_implicit_inline_templates, | |
11792 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
11793 | flag_rtti, flag_conserve_space, flag_access_control, | |
11794 | flag_check_new, flag_new_for_scope, flag_weak, | |
11795 | flag_working_directory, flag_use_cxa_atexit, | |
11796 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
11797 | flag_threadsafe_statics, flag_pretty_templates, | |
11798 | warn_strict_null_sentinel): Remove. | |
11799 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
11800 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
11801 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
11802 | fimplicit-inline-templates, fimplicit-templates, | |
11803 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
11804 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
11805 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
11806 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
11807 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
11808 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
11809 | gen-decls, undef): Use Var. | |
11810 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
11811 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
11812 | using Var. Mark ignored options as such. | |
11813 | ||
39dabefd SB |
11814 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
11815 | ||
9faeb493 | 11816 | * c-common.c: Moved to here from parent directory. |
39dabefd SB |
11817 | * c-common.def: Likewise. |
11818 | * c-common.h: Likewise. | |
11819 | * c-cppbuiltin.c: Likewise. | |
11820 | * c-dump.c: Likewise. | |
11821 | * c-format.c: Likewise. | |
11822 | * c-format.h : Likewise. | |
11823 | * c-gimplify.c: Likewise. | |
11824 | * c-lex.c: Likewise. | |
11825 | * c-omp.c: Likewise. | |
11826 | * c.opt: Likewise. | |
11827 | * c-opts.c: Likewise. | |
11828 | * c-pch.c: Likewise. | |
11829 | * c-ppoutput.c: Likewise. | |
11830 | * c-pragma.c: Likewise. | |
11831 | * c-pragma.h: Likewise. | |
11832 | * c-pretty-print.c: Likewise. | |
11833 | * c-pretty-print.h: Likewise. | |
11834 | * c-semantics.c: Likewise. | |
11835 | * stub-objc.c: Likewise. | |
11836 | ||
11837 | * c-common.c: Include gt-c-family-c-common.h. | |
11838 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
11839 | \f | |
8d9254fc | 11840 | Copyright (C) 2010-2020 Free Software Foundation, Inc. |
39dabefd SB |
11841 | |
11842 | Copying and distribution of this file, with or without modification, | |
11843 | are permitted in any medium without royalty provided the copyright | |
11844 | notice and this notice are preserved. |