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