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