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