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