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