]>
Commit | Line | Data |
---|---|---|
0af94e6f JR |
1 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
2 | ||
3 | * c-common.c (same_scalar_type_ignoring_signedness): Delete. | |
4 | (vector_types_compatible_elements_p): New function. | |
5 | * c-common.h: (same_scalar_type_ignoring_signedness): Delete | |
6 | declaration. | |
7 | (vector_types_compatible_elements_p): Declare. | |
8 | ||
7c26172c GDR |
9 | 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
10 | ||
11 | * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now | |
12 | a virtual member function. | |
13 | (pp_simple_type_specifier): Remove. | |
14 | (pp_c_type_specifier): Likewise. | |
15 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
16 | Rename from pp_c_type_specifier. Adjust. | |
17 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
18 | simple_type_specifier. | |
19 | ||
20059c8b GDR |
20 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
21 | ||
22 | * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual | |
23 | member function. | |
24 | (c_pretty_printer::storage_class_specifier): Likewise. | |
25 | (c_pretty_printer::initializer): Likewise. | |
26 | (pp_declaration): Remove. | |
27 | (pp_declaration_specifiers): Likewise. | |
28 | (pp_abstract_declarator): Likewise. | |
29 | (pp_declarator): Likewise. | |
30 | (pp_type_id): Likewise. | |
31 | (pp_statement): Likewise. | |
32 | (pp_constant): Likewise. | |
33 | (pp_id_expression): Likewise. | |
34 | (pp_primary_expression): Likewise. | |
35 | (pp_unary_expression): Likewise. | |
36 | (pp_multiplicative_expression): Likewise. | |
37 | (pp_conditional_expression): Likewise. | |
38 | (pp_assignment_expression): Likewise. | |
39 | (pp_expression): Likewise. | |
40 | (pp_c_type_id): Likewise. | |
41 | (pp_c_storage_class_specifier): Likewise. | |
42 | * c-pretty-print.c (pp_c_type_cast): Tidy. | |
43 | (pp_c_pointer): Likewise. | |
44 | (pp_c_type_specifier): Likewise. | |
45 | (pp_c_parameter_type_list): Likewise. | |
46 | (pp_c_function_definition): Likewise. | |
47 | (pp_c_init_declarator): Likewise. | |
48 | (pp_c_initializer_list): Likewise. | |
49 | (pp_c_constructor_elts): Likewise. | |
50 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
51 | (c_pretty_printer::declaration_specifiers): Likewise. | |
52 | (c_pretty_printer::primary_expression): Likewise. | |
53 | (c_pretty_printer::postfix_expression): Likewise. | |
54 | (c_pretty_printer::type_id): Rename from pp_c_type_id. | |
55 | (c_pretty_printer::storage_class_specifier): Rename from | |
56 | pp_c_storage_class_specifier. | |
57 | (c_pretty_printer::initializer): Rename from pp_c_initializer. | |
58 | (c_pretty_printer::c_pretty_printer): Do not assign to type_id, | |
59 | storage_class_specifier, initializer, offset_list, flags. | |
60 | ||
de5a5fa1 MP |
61 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
62 | ||
63 | * c-ubsan.c: New file. | |
64 | * c-ubsan.h: New file. | |
65 | ||
8f0e4d72 GDR |
66 | 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net> |
67 | ||
68 | * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual | |
69 | member function. | |
70 | (c_pretty_printer::declaration_specifiers): Likewise. | |
71 | (c_pretty_printer::declarator): Likewise. | |
72 | (c_pretty_printer::abstract_declarator): Likewise. | |
73 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
74 | (c_pretty_printer::direct_declarator): Likewise. | |
75 | (c_pretty_printer::function_specifier): Likewise. | |
76 | (pp_declaration): Adjust. | |
77 | (pp_declaration_specifiers): Likewise. | |
78 | (pp_abstract_declarator): Likewise. | |
79 | (pp_direct_declarator): Likewise. | |
80 | (pp_function_specifier): Likewise. | |
81 | (pp_direct_abstract_declarator): Remove as unused. | |
82 | (pp_c_declaration): Remove. | |
83 | (pp_c_declaration_specifiers): Likewise. | |
84 | (pp_c_declarator): Likewise. | |
85 | (pp_c_direct_declarator): Likewise. | |
86 | (pp_c_function_specifier): Likewise. | |
87 | (pp_c_direct_abstract_declarator): Likewise. | |
88 | * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename | |
89 | from pp_c_abstract_declarator. Adjust. | |
90 | (c_pretty_printer::direct_abstract_declarator): Rename from | |
91 | pp_c_direct_abstract_declarator. Adjust. | |
92 | (c_pretty_printer::function_specifier): Rename from | |
93 | pp_c_function_specifier. Adjust. | |
94 | (c_pretty_printer::declaration_specifiers): Rename from | |
95 | pp_c_declaration_specifiers. Adjust. | |
96 | (c_pretty_printer::direct_declarator): Rename from | |
97 | pp_c_direct_declarator. Adjust. | |
98 | (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. | |
99 | (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. | |
100 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
101 | declaration, declaration_specifiers, declarator, | |
102 | direct_declarator, direct_abstract_declarator, function_specifier. | |
103 | ||
00d34d3a GDR |
104 | 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net> |
105 | ||
106 | * c-pretty-print.h (c_pretty_printer::unary_expression): Now a | |
107 | virtual member function. | |
108 | (c_pretty_printer::multiplicative_expression): Likewise. | |
109 | (c_pretty_printer::conditional_expression): Likewise. | |
110 | (c_pretty_printer::assignment_expression): Likewise. | |
111 | (c_pretty_printer::expression): Likewise. | |
112 | (pp_unary_expression): Adjust. | |
113 | (pp_multiplicative_expression): Likewise. | |
114 | (pp_assignment_expression): Likewise. | |
115 | (pp_conditional_expression): Likewise. | |
116 | (pp_expression): Likewise. | |
117 | * c-pretty-print.c (c_pretty_printer::unary_expression): Rename | |
118 | from pp_c_unary_expression. Adjust. | |
119 | (c_pretty_printer::multiplicative_expression): Rename from | |
120 | pp_c_multiplicative_expression. Adjust. | |
121 | (c_pretty_printer::conditional_expression): Rename from | |
122 | pp_c_conditional_expression. Adjust. | |
123 | (c_pretty_printer::assignment_expression): Rename from | |
124 | pp_c_assignment_expression. Adjust. | |
125 | (c_pretty_printer::expression): Rename from pp_c_expression. Adjust. | |
126 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
127 | unary_expression, multiplicative_expression, | |
128 | conditional_expression, expression. | |
129 | ||
fb22178f GDR |
130 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
131 | ||
132 | * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a | |
133 | virtual member function. | |
134 | (pp_postfix_expression): Adjust. | |
135 | (pp_c_postfix_expression): Remove. | |
136 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename | |
137 | from pp_c_postfix_expression. Adjust. | |
138 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
139 | postfix_expression. | |
140 | ||
7ecc2600 GDR |
141 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
142 | ||
143 | * c-pretty-print.h (c_pretty_printer::primary_expression): Now a | |
144 | virtua member function. | |
145 | (pp_primary_expression): Adjust. | |
146 | (pp_c_primary_expression): Remove. | |
147 | * c-pretty-print.c (c_pretty_printer::primary_expression): Rename | |
148 | from pp_c_primary_expression. Adjust. | |
149 | (pp_c_initializer_list): Use pp_primary_expression. | |
150 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
151 | primary_expression. | |
152 | ||
0691175f GDR |
153 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
154 | ||
155 | * c-pretty-print.h (c_pretty_printer::translate_string): Declare. | |
156 | * c-pretty-print.c (M_): Remove. | |
157 | (c_pretty_printer::translate_string): Define. | |
158 | (pp_c_type_specifier): Use it. | |
159 | (pp_c_primary_expression): Likewise. | |
160 | (pp_c_expression): Likewise. | |
161 | ||
66dfe4c4 GDR |
162 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
163 | ||
164 | * c-pretty-print.h (c_pretty_printer::id_expression): Now a | |
165 | virtual function. | |
166 | (pp_c_id_expression): Remove. | |
167 | (pp_id_expression): Adjust. | |
168 | * c-pretty-print.c (c_pretty_printer::id_expression): Rename from | |
169 | pp_c_id_expression. Adjust. | |
170 | (pp_c_postfix_expression): Use pp_id_expression. | |
171 | (c_pretty_printer::c_pretty_printer): Do not assign to id_expression. | |
172 | ||
ca43e9d5 GDR |
173 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
174 | ||
175 | * c-pretty-print.h (c_pretty_printer::constant): Now a virtual | |
176 | member function. | |
177 | (pp_constant): Adjust. | |
178 | (pp_c_constant): Remove. | |
179 | * c-pretty-print.c (c_pretty_printer::constant): Rename from | |
180 | pp_c_constant. Adjust. | |
181 | (pp_c_constant) | |
182 | (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. | |
183 | (c_pretty_printer::c_pretty_printer): Remove assignment to constant. | |
184 | ||
da6ca2b5 GDR |
185 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
186 | ||
187 | * c-pretty-print.h (pp_c_pretty_printer_init): Remove. | |
188 | (c_pretty_printer::c_pretty_printer): Declare. | |
189 | * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from | |
190 | c_pretty_printer_init. Adjust. | |
191 | (print_c_tree): Do not call c_pretty_printer_init. | |
192 | * c-ada-spec.c (dump_ads): Remove call to pp_construct. | |
193 | ||
65a372f4 AC |
194 | 2013-08-09 Arnaud Charlet <charlet@adacore.com> |
195 | ||
196 | * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name | |
197 | ||
fd9b0f32 PC |
198 | 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com> |
199 | ||
200 | PR c++/58080 | |
201 | * c-common.c (pointer_int_sum): Add bool parameter. | |
202 | * c-common.h (pointer_int_sum): Adjust declaration. | |
203 | ||
e0aec1e9 GDR |
204 | 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> |
205 | ||
206 | * c-pretty-print.c (print_c_tree): Simplify. Use non-static local | |
207 | c_pretty_printer variable. | |
208 | ||
b066401f GDR |
209 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
210 | ||
211 | * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. | |
212 | (pp_base): Remove. | |
213 | (pp_c_base): Likewise. Adjust users. | |
214 | * c-pretty-print.c (pp_c_maybe_whitespace): Adjust. | |
215 | (pp_c_whitespace): Do not call pp_base. | |
216 | (pp_c_left_paren): Likewise. | |
217 | (pp_c_right_paren): Likewise. | |
218 | (pp_c_left_brace): Likewise. | |
219 | (pp_c_right_brace): Likewise. | |
220 | (pp_c_left_bracket): Likewise. | |
221 | (pp_c_right_bracket): Likewise. | |
222 | (pp_c_dot): Likewise. | |
223 | (pp_c_ampersand): Likewise. | |
224 | (pp_c_star): Likewise. | |
225 | (pp_c_arrow): Likewise. | |
226 | (pp_c_semicolon): Likewise. | |
227 | (pp_c_complement): Likewise. | |
228 | (pp_c_exclamation): Likewise. | |
229 | (pp_c_direct_declarator): Likewise. | |
230 | (pp_c_ws_string): Likewise. | |
231 | (pp_c_identifier): Likewise. | |
232 | (pp_c_statement): Likewise. | |
233 | (print_c_tree): Likewise. | |
234 | ||
65e5a578 ESR |
235 | 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net> |
236 | ||
237 | PR c++/58072 | |
238 | * c-common.c (c_parse_error): Catch user-defined literal tokens and | |
239 | provide useful error strings. | |
240 | ||
137a1a27 GDR |
241 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
242 | ||
243 | * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty | |
244 | printer functions instead of pp_string or operators and punctuators. | |
245 | (dump_generic_ada_node): Likewise. | |
246 | * c-pretty-print.c (pp_c_type_specifier): Likewise. | |
247 | (pp_c_relational_expression): Likewise. | |
248 | (pp_c_logical_or_expression): Likewise. | |
249 | ||
07838b13 GDR |
250 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
251 | ||
252 | * c-ada-spec.c (print_ada_macros): Use specialized pretty printer | |
253 | functions instead of pp_character. | |
254 | (pp_ada_tree_identifier): Likewise. | |
255 | (dump_ada_double_name): Likewise. | |
256 | (dump_ada_function_declaration): Likewise. | |
257 | (dump_ada_array_domains): Likewise. | |
258 | (dump_template_types): Likewise. | |
259 | (dump_generic_ada_node): Likewise. | |
260 | (print_ada_declaration): Likewise. | |
261 | (print_ada_struct_decl): Likewise. | |
262 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
263 | ||
433cc7b0 TT |
264 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
265 | ||
266 | * c-common.h (enum rid) <RID_GENERIC>: New constant. | |
267 | * c-common.c (c_common_reswords): Add _Generic. | |
268 | ||
688010ba OB |
269 | 2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz> |
270 | ||
271 | * c-common.c: Fix typos. | |
272 | * c-common.h: Likewise. | |
273 | ||
2a99e5e6 LL |
274 | 2013-07-13 Lubos Lunak <l.lunak@suse.cz> |
275 | ||
276 | PR c++/55203 | |
277 | * c-common.c (c_common_attribute_table): Add warn_unused. | |
278 | (handle_warn_unused_attribute): New. | |
279 | ||
c26302d5 JJ |
280 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
281 | ||
282 | * c-ppoutput.c (scan_translation_unit): Call account_for_newlines | |
283 | for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. | |
284 | ||
dfeadaa0 PC |
285 | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> |
286 | ||
287 | PR c++/57869 | |
288 | * c.opt: Add Wconditionally-supported. | |
289 | ||
6a2fa4b2 GS |
290 | 2013-07-08 Graham Stott <graham.stott@btinternet.com> |
291 | ||
292 | * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete | |
293 | unused variables l_length and l_node. | |
294 | ||
40d3d530 JR |
295 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
296 | ||
297 | PR c/57821 | |
298 | * c-common.c (complete_array_type): Delay folding first index | |
299 | like other indices. When folding, check for index overflow. | |
300 | ||
bedc293e MG |
301 | 2013-06-27 Marc Glisse <marc.glisse@inria.fr> |
302 | ||
303 | PR c++/57509 | |
304 | * c-common.h (c_build_vec_perm_expr): New complain argument. | |
305 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
306 | Use save_expr also in C++. | |
307 | ||
604b2bfc GDR |
308 | 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
309 | ||
310 | * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. | |
311 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
312 | * c-opts.c (c_common_post_options): Likewise. | |
313 | ||
dfeadaa0 | 314 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
713b46fa BI |
315 | |
316 | * array-notation-common.c (length_mismatch_in_expr): Changed the | |
317 | parameter type's from a dynamic array to a vec_tree. Also removed | |
318 | the size parameters. | |
319 | * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per | |
320 | the change above. | |
321 | ||
2ce86d2e BI |
322 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
323 | ||
324 | * c-common.h (struct cilkplus_an_parts): New structure. | |
325 | (struct cilkplus_an_loop_parts): Likewise. | |
326 | (cilkplus_extract_an_triplets): New prototype. | |
327 | (fix_sec_implicit_args): Likewise. | |
328 | * array-notation-common.c (cilkplus_extract_an_triplets): New function. | |
329 | (fix_sec_implicit_args): Likewise. | |
604b2bfc | 330 | |
07a6825b BI |
331 | 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> |
332 | ||
333 | * array-notation-common.c (find_inv_trees): Removed an unwanted | |
334 | typecasting. | |
335 | * c-common.h (struct inv_list::additional_tcodes): Changed type from | |
336 | enum rid to enum tree_code. | |
337 | ||
08346abd JH |
338 | 2013-06-11 Jan Hubicka <jh@suse.cz> |
339 | ||
340 | * c-common.c (handle_alias_ifunc_attribute): Do not set | |
341 | DECL_EXTERNAL for weakref variables. | |
342 | * c-pragma.c (handle_pragma_weak): Make sure aliases | |
343 | are not declared as external. | |
344 | ||
d60f1706 BI |
345 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
346 | ||
347 | * array-notation-common.c (length_mismatch_in_expr_p): Moved this | |
348 | function from c/c-array-notation.c. | |
349 | (is_cilkplus_reduce_builtin): Likewise. | |
350 | (find_rank): Likewise. | |
351 | (extract_array_notation_exprs): Likewise. | |
352 | (replace_array_notations): Likewise. | |
353 | (find_inv_trees): Likewise. | |
354 | (replace_inv_trees): Likewise. | |
355 | (contains_array_notation_expr): Likewise. | |
356 | (find_correct_array_notation_type): Likewise. | |
357 | * c-common.h (struct inv_list): Moved this struct from the file | |
358 | c/c-array-notation.c and added a new field called additional tcodes. | |
359 | (length_mismatch_in_expr_p): New prototype. | |
360 | (is_cilkplus_reduce_builtin): Likewise. | |
361 | (find_rank): Likewise. | |
362 | (extract_array_notation_exprs): Likewise. | |
363 | (replace_array_notation): Likewise. | |
364 | (find_inv_trees): Likewise. | |
365 | (replace_inv_trees): Likewise. | |
366 | (find_correct_array_notation_type): Likewise. | |
dfeadaa0 | 367 | |
36536d79 BI |
368 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
369 | ||
370 | * c-common.c (c_define_builtins): When cilkplus is enabled, the | |
371 | function array_notation_init_builtins is called. | |
372 | (c_common_init_ts): Added ARRAY_NOTATION_REF as typed. | |
373 | * c-common.def (ARRAY_NOTATION_REF): New tree. | |
374 | * c-common.h (build_array_notation_expr): New function declaration. | |
375 | (build_array_notation_ref): Likewise. | |
376 | (extract_sec_implicit_index_arg): New extern declaration. | |
377 | (is_sec_implicit_index_fn): Likewise. | |
378 | (ARRAY_NOTATION_CHECK): New define. | |
379 | (ARRAY_NOTATION_ARRAY): Likewise. | |
380 | (ARRAY_NOTATION_START): Likewise. | |
381 | (ARRAY_NOTATION_LENGTH): Likewise. | |
382 | (ARRAY_NOTATION_STRIDE): Likewise. | |
383 | * c-pretty-print.c (pp_c_postifix_expression): Added a new case for | |
384 | ARRAY_NOTATION_REF. | |
385 | (pp_c_expression): Likewise. | |
386 | * c.opt (flag_enable_cilkplus): New flag. | |
387 | * array-notation-common.c: New file. | |
388 | ||
f7716d57 JJ |
389 | 2013-05-14 Jakub Jelinek <jakub@redhat.com> |
390 | ||
391 | PR c++/57274 | |
392 | * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. | |
393 | ||
a5e0cd1d MG |
394 | 2013-05-10 Marc Glisse <marc.glisse@inria.fr> |
395 | ||
396 | * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for | |
397 | vectors. | |
398 | ||
f6bc1c4a HS |
399 | 2013-05-07 Han Shen <shenhan@google.com> |
400 | ||
401 | * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". | |
402 | ||
3f12f6e9 SKS |
403 | 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
404 | ||
405 | * c-common.c (check_user_alignment): Emit error for negative values. | |
406 | ||
61949153 PC |
407 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
408 | ||
409 | * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. | |
410 | ||
e93e18e9 PC |
411 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
412 | ||
413 | * c-cppbuiltin.c (c_cpp_builtins): Do not define | |
414 | __GXX_EXPERIMENTAL_CXX1Y__. | |
415 | ||
44d90fe1 PC |
416 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
417 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> | |
418 | ||
419 | * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. | |
420 | * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns | |
421 | to simply use OPT_Wpointer_arith. | |
422 | (c_sizeof_or_alignof_type): Likewise. | |
423 | ||
13f39b2e PC |
424 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
425 | ||
426 | * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. | |
427 | ||
4b84d650 JJ |
428 | 2013-04-12 Jakub Jelinek <jakub@redhat.com> |
429 | ||
430 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
431 | gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format | |
432 | specifiers. | |
433 | ||
fb037b5d SB |
434 | 2013-04-07 Steven Bosscher <steven@gcc.gnu.org> |
435 | ||
436 | * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. | |
437 | ||
4e856798 PC |
438 | 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> |
439 | ||
440 | * c-common.c (pointer_int_sum): Remove dead code. | |
441 | ||
4b1baac8 RS |
442 | 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> |
443 | ||
444 | PR middle-end/56524 | |
445 | * c-common.c (handle_optimize_attribute): Don't call | |
446 | save_optabs_if_changed. | |
447 | ||
0b50e654 JJ |
448 | 2013-03-05 Jakub Jelinek <jakub@redhat.com> |
449 | ||
450 | PR middle-end/56461 | |
451 | * c-pch.c (pch_init): Free target_validity at the end. | |
452 | ||
48c41403 JJ |
453 | 2013-03-04 Jakub Jelinek <jakub@redhat.com> |
454 | ||
455 | * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. | |
456 | ||
e664c61c KS |
457 | 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> |
458 | Jakub Jelinek <jakub@redhat.com> | |
459 | ||
460 | PR sanitizer/56454 | |
461 | * c-common.c (handle_no_sanitize_address_attribute): New function. | |
462 | (c_common_attribute_table): Add no_sanitize_address attribute. | |
463 | (handle_no_address_safety_analysis_attribute): Add | |
464 | no_sanitize_address attribute, not no_address_safety_analysis | |
465 | attribute. | |
466 | ||
a475fd3d | 467 | 2013-02-18 Aldy Hernandez <aldyh@redhat.com> |
135204dd AH |
468 | |
469 | PR target/52555 | |
470 | * c-common.c (handle_optimize_attribute): Call | |
471 | save_optabs_if_changed. | |
472 | ||
f6007d99 JJ |
473 | 2013-02-18 Jakub Jelinek <jakub@redhat.com> |
474 | Steven Bosscher <steven@gcc.gnu.org> | |
475 | ||
476 | PR pch/54117 | |
477 | * c-opts.c (c_common_post_options): If debug info is enabled | |
478 | and non-dwarf*, refuse to load PCH files and when writing PCH | |
479 | file warn. | |
480 | ||
cf35e2b1 JJ |
481 | 2013-02-05 Jakub Jelinek <jakub@redhat.com> |
482 | ||
483 | PR middle-end/56167 | |
484 | * c-common.c (handle_error_attribute): Fix condition. | |
485 | ||
32887460 JJ |
486 | 2013-01-30 Jakub Jelinek <jakub@redhat.com> |
487 | ||
488 | PR c++/55742 | |
489 | * c-common.c (handle_target_attribute): Revert 2012-12-26 change. | |
490 | ||
5af057d8 JM |
491 | 2013-01-18 Jason Merrill <jason@redhat.com> |
492 | ||
493 | PR target/54908 | |
494 | * c.opt (-fextern-tls-init): New. | |
495 | * c-opts.c (c_common_post_options): Handle it. | |
496 | ||
cc83c823 JJ |
497 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
498 | ||
499 | PR c/48418 | |
500 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
501 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
502 | and is either negative or bigger or equal to type precision | |
503 | of the first operand. | |
504 | ||
a859517f MP |
505 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
506 | ||
507 | PR c/55570 | |
508 | * c-common.c (check_user_alignment): Swap order of tests, | |
509 | check TREE_CODE first. | |
510 | ||
2d7aa578 ESR |
511 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
512 | ||
513 | PR c++/52654 | |
514 | * c-common.h (overflow_type): New enum. | |
515 | (build_userdef_literal): Add overflow_type argument. | |
516 | (tree_userdef_literal): Add overflow_type. | |
517 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
518 | * c-common.c (build_userdef_literal): Add overflow_type | |
519 | argument. | |
520 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
521 | build_userdef_literal calls. | |
522 | (interpret_integer, interpret_float): Add overflow_type argument. | |
523 | ||
cc3c4f62 RB |
524 | 2012-11-28 Richard Biener <rguenther@suse.de> |
525 | ||
526 | PR c/35634 | |
527 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
528 | here and use a type with proper overflow behavior for types that would | |
529 | need to be promoted for the arithmetic. | |
530 | ||
77bc5132 JJ |
531 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
532 | ||
533 | PR sanitizer/55435 | |
534 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
535 | function. | |
536 | (c_common_attribute_table): Add no_address_safety_analysis. | |
537 | ||
5dc99c46 SB |
538 | 2012-11-16 Simon Baldwin <simonb@google.com> |
539 | ||
540 | * c.opt: Add f[no-]canonical-system-headers. | |
541 | * c-opts.c (c_common_handle_option): Handle | |
542 | OPT_fcanonical_system_headers. | |
543 | ||
a4a0016d ESR |
544 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
545 | ||
546 | PR c++/54413 | |
547 | * c-opts.c (c_common_handle_option): Set new flags. | |
548 | * c.opt: Describe new flags. | |
549 | ||
7dbb85a7 JM |
550 | 2012-11-09 Jason Merrill <jason@redhat.com> |
551 | ||
552 | * c.opt (Wabi-tag): New. | |
553 | ||
ad7bac31 AK |
554 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
555 | ||
556 | PR 55139 | |
557 | * c-common.c (get_atomic_generic_size): Mask with | |
558 | MEMMODEL_MASK | |
559 | ||
7332899a MLI |
560 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
561 | ||
562 | PR c/53063 | |
563 | * c.opt (Wformat): Make it Alias Wformat=1. | |
564 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
565 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
566 | LangEnabledBy. | |
567 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
568 | (Wnonnull): Use LangEnabledBy. | |
569 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
570 | * c-format.c (set_Wformat): Delete. | |
571 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
572 | (maybe_read_dollar_number): Likewise. | |
573 | (avoid_dollar_number): Likewise. | |
574 | (finish_dollar_format_checking): Likewise. | |
575 | (check_format_info): Likewise. | |
576 | (check_format_info_main): Likewise. | |
577 | (check_format_types): Likewise. | |
578 | (format_type_warning): Likewise. | |
579 | * c-common.c (int): Likewise. | |
580 | (check_function_sentinel): Likewise. | |
581 | * c-common.h (warn_format,set_Wformat): Do not declare here. | |
582 | ||
34a180a6 MLI |
583 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
584 | ||
585 | PR c/53063 | |
586 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
587 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
588 | Use LangEnabledBy. | |
589 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
590 | common.opt. | |
591 | (Wvariadic-macros): Init(1). | |
592 | * c-opts.c (c_common_handle_option): Do not handle them | |
593 | explicitly. | |
594 | (c_common_post_options): Likewise. | |
595 | (sanitize_cpp_opts): warn_unused_macros is now | |
596 | cpp_warn_unused_macros. | |
597 | (push_command_line_include): Likewise. | |
598 | * c-common.c (warn_unknown_pragmas): Do not define. | |
599 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
600 | ||
3f46d6a5 MLI |
601 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
602 | ||
603 | PR c/51294 | |
604 | * c-common.c (conversion_warning): Handle conditional expressions. | |
605 | ||
880661a4 JW |
606 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
607 | ||
608 | PR c++/54930 | |
609 | * c.opt (Wreturn_local_addr): Define new option. | |
610 | ||
4514a96b JM |
611 | 2012-10-25 Jason Merrill <jason@redhat.com> |
612 | ||
f14edc1a JM |
613 | * c.opt (Wvirtual-move-assign): New. |
614 | ||
4514a96b JM |
615 | * c.opt (Winherited-variadic-ctor): New. |
616 | ||
93100c6b MG |
617 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
618 | ||
619 | PR c++/54427 | |
620 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
621 | ||
1efcb8c6 JM |
622 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
623 | ||
624 | * c-common.h (pch_cpp_save_state): Declare. | |
625 | * c-target.def (c_preinclude): New hook. | |
626 | * c-opts.c (done_preinclude): New. | |
627 | (push_command_line_include): Handle default preincluded header. | |
628 | (cb_file_change): Call pch_cpp_save_state when calling | |
629 | push_command_line_include. | |
630 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
631 | (pch_cpp_save_state): New. | |
632 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
633 | calling cpp_save_state. | |
634 | ||
4a0ae68e MLI |
635 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
636 | ||
637 | PR c/53063 | |
638 | PR c/40989 | |
639 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
640 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
641 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
642 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
643 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
644 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
645 | here. | |
646 | (c_common_post_options): Likewise. | |
647 | ||
67e4210b EB |
648 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
649 | ||
650 | * c-ada-spec.c (LOCATION_COL): Delete. | |
651 | (compare_location): New function. | |
652 | (compare_node): Use it. | |
653 | (compare_comment): Likewise. | |
654 | ||
65d4f2cd MLI |
655 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
656 | ||
657 | PR c/53063 | |
658 | PR c/40989 | |
659 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
660 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
661 | comment. | |
662 | (c_common_post_options): Likewise. | |
663 | ||
909881cb EB |
664 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
665 | ||
666 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
667 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
668 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
669 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
670 | ||
3a785c97 JJ |
671 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
672 | ||
673 | PR c/54381 | |
674 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
675 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
676 | locs and array of 3 trees instead of just single loc and single | |
677 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
678 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
679 | For *cmp* builtins that take two sources strings report warnings | |
680 | about first and second source, not about destination and source. | |
681 | ||
5e54f81d MG |
682 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
683 | ||
684 | PR c++/53055 | |
685 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
686 | ||
f5b02f1e EB |
687 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
688 | ||
689 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
690 | declaring something coming from another file. | |
691 | ||
b46dbc6c AC |
692 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
693 | ||
f5b02f1e | 694 | PR ada/54845 |
b46dbc6c AC |
695 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
696 | ||
5d9de0d0 PC |
697 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
698 | ||
699 | PR c++/54194 | |
700 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
701 | use EXPR_LOC_OR_LOC. | |
702 | * c-common.h: Update declaration. | |
703 | ||
a212e43f MG |
704 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
705 | ||
706 | PR c++/54427 | |
707 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
708 | more operations. Make error messages optional. | |
709 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
710 | (scalar_to_vector): Declare. | |
711 | ||
b1db7f91 JM |
712 | 2012-10-08 Jason Merrill <jason@redhat.com> |
713 | ||
714 | * c-common.c (c_common_reswords): Add thread_local. | |
715 | ||
e28d52cf DS |
716 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
717 | ||
718 | PR c++/53528 C++11 attribute support | |
719 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
720 | new functions. | |
721 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
722 | static function. | |
723 | (handle_aligned_attribute): In choose strictest alignment | |
724 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
725 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
726 | don't look through typedefs. | |
727 | ||
3b78de56 AC |
728 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
729 | ||
730 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
731 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
732 | out of dumpfile.h. | |
733 | ||
6040bb5f DC |
734 | 2012-09-25 Dehao Chen <dehao@google.com> |
735 | ||
736 | PR middle-end/54645 | |
3b78de56 | 737 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
6040bb5f DC |
738 | map when read in the pch. |
739 | ||
0b07a57e AC |
740 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
741 | ||
742 | * c-ada-spec.c: Style fixes. | |
743 | ||
da5182be TQ |
744 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
745 | ||
746 | * c.opt (-fada-spec-parent): Define new command line switch. | |
747 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
748 | is specified, generate binding spec as a child of the specified unit. | |
749 | ||
0ccb505d PC |
750 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
751 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
752 | ||
753 | PR c++/53210 | |
754 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
755 | ||
c583af79 AC |
756 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
757 | ||
758 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
759 | for pointers, and add missing Convention C pragma. | |
760 | (print_ada_struct_decl): Add missing aliased keyword. | |
761 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
762 | ||
1a4049e7 JJ |
763 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
764 | ||
765 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
766 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
767 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
768 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
769 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
770 | ||
70b5e7dc RG |
771 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
772 | ||
773 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
774 | ||
f8923f7e SB |
775 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
776 | ||
777 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
778 | instead of separate pp_newline and pp_flush. | |
779 | (print_c_tree): Likewise. | |
780 | ||
e45abe1f RH |
781 | 2012-07-26 Richard Henderson <rth@redhat.com> |
782 | ||
783 | * c-common.c (handle_hot_attribute): Allow labels. | |
784 | (handle_cold_attribute): Likewise. | |
785 | ||
332f1d24 JJ |
786 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
787 | ||
788 | PR c++/28656 | |
789 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
790 | attributes properly. | |
791 | ||
7ee2468b SB |
792 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
793 | ||
794 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
795 | * c-ada-spec.c: Likewise. | |
796 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
797 | ||
ee7b28eb SB |
798 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
799 | ||
800 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
801 | Remove code conditional on it. | |
802 | ||
6bdf3519 SB |
803 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
804 | ||
805 | * c-gimplify.c: Do not include basic-block.h. | |
806 | * c-common.c: Do not include linfuncs.h. | |
807 | ||
532aafad SB |
808 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
809 | ||
810 | * c-common.h: Include tree.h. | |
811 | ||
8d0d1915 JM |
812 | 2012-07-02 Jason Merrill <jason@redhat.com> |
813 | ||
814 | PR c++/53524 | |
815 | * c-common.c (get_priority): Call default_conversion. | |
816 | ||
fbc873ad UB |
817 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
818 | ||
819 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
820 | ||
d4a10d0a SB |
821 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
822 | ||
823 | * cppspec.c: Moved from gcc/ to here. | |
824 | ||
6f3a2e23 KT |
825 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
826 | ||
827 | PR preprocessor/37215 | |
828 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
829 | ||
8ca92d04 SB |
830 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
831 | ||
832 | * c-common.h (c_common_print_pch_checksum): Remove. | |
833 | * c-pch.c: Do not include output.h. | |
834 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
835 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
836 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
837 | (struct c_pch_header): Remove. | |
838 | (get_ident): Update gpch version. | |
839 | (pch_init): Do not print executable_checksum to asm_out_file. | |
840 | Do not fail if there is no asm_out_file to read back from. Set | |
841 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
842 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
843 | since pch_init was called. Do not write a c_pch_header, and do not | |
844 | copy from asm_out_file to the PCH. | |
845 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
846 | the content of asm_out_file from the PCH. | |
847 | (c_common_print_pch_checksum): Remove. | |
848 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
849 | ||
70f42967 SB |
850 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
851 | ||
852 | * c-target.def (objc_declare_unresolved_class_reference, | |
853 | objc_declare_class_definition): Add new hooks. | |
854 | ||
a8781821 SB |
855 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
856 | ||
857 | * c-lex.c: Do not include output.h. | |
858 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
859 | Remove uses of ASM_OUTPUT_IDENT. | |
860 | ||
9e1a8dd1 RR |
861 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
862 | ||
863 | PR c++/51033 | |
864 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
865 | * c-common.c (c_build_vec_perm_expr): Move definition | |
866 | here. | |
867 | ||
6f07a821 SB |
868 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
869 | ||
870 | * c.opt (fconserve-space): Turn into a no-op. | |
871 | ||
9faeb493 | 872 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
c265f413 SA |
873 | |
874 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
875 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
876 | both the start and end of the function. | |
877 | ||
a4b7d13c SB |
878 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
879 | ||
880 | * c-common.c: Do not include output.h. | |
881 | * c-pragma.c: Likewise. | |
882 | ||
c265f413 SA |
883 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
884 | ||
885 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
886 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
887 | (lang_decl_name): Handle namespace decls. | |
888 | ||
be7a421e SB |
889 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
890 | ||
891 | * c-ada-spec.c: Do not include output.h. | |
892 | * c-semantics.c: Likewise. | |
893 | ||
65de6659 JM |
894 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
895 | ||
896 | * c-common.c: Fix typo. | |
897 | ||
ca5f4331 MM |
898 | 2012-05-29 Michael Matz <matz@suse.de> |
899 | ||
900 | * c-common.h (c_expand_decl): Remove prototype. | |
901 | ||
4f7f7aca MLI |
902 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
903 | ||
904 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
905 | * c-opts.c (c_common_handle_option): Remove code handling | |
906 | warn_missing_braces. | |
907 | ||
4a792f9b PC |
908 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
909 | ||
910 | PR c++/25137 | |
911 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
912 | -Wmissing_braces. | |
913 | ||
650dc14a DS |
914 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
915 | ||
916 | PR c++/53322 | |
917 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
918 | ||
9b095bf1 MLI |
919 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
920 | ||
921 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
922 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
923 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
924 | ||
0b2c4be5 DS |
925 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
926 | ||
927 | PR preprocessor/7263 | |
928 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call | |
929 | to cpp_classify_number. For diagnostics, use the precise location | |
930 | instead of the global input_location. | |
931 | ||
a1bde5af PC |
932 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
933 | ||
d02924ef | 934 | PR c++/11856 |
a1bde5af PC |
935 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
936 | ||
d1ede5f4 BS |
937 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
938 | ||
a1bde5af | 939 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
d1ede5f4 | 940 | |
f2bc201f MLI |
941 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
942 | ||
943 | PR 53063 | |
944 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
945 | Wreorder): Use LangEnabledBy. | |
946 | * c-opts.c (c_common_handle_option): Do not enable them | |
947 | explicitly. Call lang-specific generated functions. | |
948 | (c_common_post_options): Do not set them here. | |
949 | ||
95744782 MLI |
950 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
951 | ||
952 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
953 | Wmissing-field-initializers,Wmissing-parameter-type, | |
954 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
955 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
956 | ||
7d5a5747 MLI |
957 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
958 | ||
959 | PR 53063 | |
960 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
961 | to enable sub-options. | |
962 | ||
5a3c9cf2 PC |
963 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
964 | ||
965 | PR c++/53158 | |
966 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
967 | ||
3ac8781c RG |
968 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
969 | ||
970 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
971 | adjust commentary about TYPE_IS_SIZETYPE types. | |
972 | ||
1e537948 MLI |
973 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
974 | ||
975 | PR c++/53261 | |
976 | * c-common.c (warn_logical_operator): Check that argument of | |
977 | integer_zerop is not NULL. | |
978 | ||
f2c4a785 MLI |
979 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
980 | ||
981 | PR c/43772 | |
982 | * c-common.c (warn_logical_operator): Do not warn if either side | |
983 | is already true or false. | |
984 | ||
50f305ca MLI |
985 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
986 | ||
987 | PR c/51712 | |
988 | * c-common.c (expr_original_type): New. | |
989 | (shorten_compare): Do not warn for enumeration types. | |
990 | ||
0c3641b0 MLI |
991 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
992 | ||
993 | * c.opt (fpermissive): Add Var(flag_permissive). | |
994 | ||
7edaa4d2 MG |
995 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
996 | ||
997 | PR c++/51033 | |
998 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
999 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
1000 | ||
b9c8da34 DS |
1001 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
1002 | ||
1003 | Add -Wvarargs option | |
1004 | * c.opt (Wvarargs): Define new option. | |
1005 | ||
e6c69da0 MLI |
1006 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1007 | ||
1008 | * c-common.c (check_function_arguments): Replace | |
1009 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
1010 | ||
90137d8f MLI |
1011 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1012 | ||
1013 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
1014 | Wmissing-format-attribute. | |
1015 | * c-format.c (decode_format_type): Replace | |
1016 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
1017 | (check_function_format): Likewise. | |
1018 | ||
9faeb493 | 1019 | 2012-04-27 Ollie Wild <aaw@google.com> |
7f5f5f98 OW |
1020 | |
1021 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
1022 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
1023 | * c.opt: Add Wliteral-suffix. | |
1024 | ||
c1771a20 MLI |
1025 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1026 | ||
1027 | PR c/44774 | |
1028 | * c.opt (Wpedantic): New. | |
1029 | (pedantic): Alias Wpedantic. | |
1030 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
1031 | (c_common_post_options): Likewise. | |
1032 | (sanitize_cpp_opts): Likewise. | |
1033 | * c-lex.c (interpret_float): Likewise. | |
1034 | * c-format.c (check_format_types): Likewise. | |
1035 | * c-common.c (pointer_int_sum): Likewise. | |
1036 | (c_sizeof_or_alignof_type): Likewise. | |
1037 | (c_add_case_label): Likewise. | |
1038 | (c_do_switch_warnings): Likewise. | |
1039 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
1040 | ||
04b391c1 JM |
1041 | 2012-04-15 Jason Merrill <jason@redhat.com> |
1042 | ||
1043 | PR c++/52818 | |
1044 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
1045 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
1046 | ||
ac868f29 EB |
1047 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
1048 | ||
1049 | PR target/52624 | |
1050 | * c-common.h (uint16_type_node): Rename into... | |
1051 | (c_uint16_type_node): ...this. | |
1052 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
1053 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
1054 | ||
fd4116f4 MLI |
1055 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1056 | ||
1057 | * c-common.c (warn_if_unused_value): Move definition to here. | |
1058 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
1059 | ||
573ac65e WB |
1060 | 2012-03-23 William Bader <williambader@hotmail.com> |
1061 | ||
1062 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
1063 | ||
552b8185 JM |
1064 | 2012-03-20 Jason Merrill <jason@redhat.com> |
1065 | ||
1066 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
1067 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
1068 | test. | |
1069 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
1070 | * c-opts.c (c_common_post_options): Likewise. | |
1071 | (set_std_cxx1y): New. | |
1072 | (c_common_handle_option): Call it. | |
1073 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
1074 | ||
04398fa8 PC |
1075 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
1076 | ||
1077 | PR c++/14710 | |
1078 | * c.opt ([Wuseless-cast]): Add. | |
1079 | ||
d2a12ae7 RG |
1080 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
1081 | ||
1082 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
1083 | ||
a12bf402 MLI |
1084 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1085 | ||
1086 | PR c++/44783 | |
1087 | * c.opt (ftemplate-backtrace-limit) Add. | |
1088 | ||
5c30094f RO |
1089 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1090 | ||
1091 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
1092 | handling. | |
1093 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
1094 | (init_pragma): Don't register extern_prefix. | |
1095 | ||
21fa2faf RG |
1096 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
1097 | ||
1098 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
1099 | (builtin_type_for_size): Likewise. | |
1100 | ||
e3793c6f JJ |
1101 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
1102 | ||
1103 | PR c++/52215 | |
1104 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
1105 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
1106 | is unsigned INTEGER_TYPE. | |
1107 | ||
93286335 PC |
1108 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
1109 | ||
1110 | PR c/52118 | |
1111 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
1112 | ||
7a421706 MS |
1113 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
1114 | ||
1115 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
1116 | exactly. | |
1117 | ||
ba9b1f11 RG |
1118 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
1119 | ||
1120 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
1121 | we are about to generate a PCH. | |
1122 | ||
465406be PC |
1123 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
1124 | ||
1125 | PR c++/51777 | |
1126 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
1127 | use pp_unsigned_wide_integer. | |
1128 | ||
aee15221 RG |
1129 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
1130 | ||
1131 | PR middle-end/51806 | |
1132 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
1133 | to language independent code. | |
1134 | ||
5720c0dc RG |
1135 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
1136 | ||
1137 | PR middle-end/51764 | |
1138 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
1139 | from common.opt. | |
1140 | ||
73ac190a PC |
1141 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
1142 | ||
1143 | PR c++/51316 | |
1144 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
1145 | of array types with an unknown bound. | |
1146 | ||
48b0b196 JM |
1147 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
1148 | ||
1149 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
1150 | (flag_isoc1x): Change to flag_isoc11. | |
1151 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
1152 | (flag_isoc1x): Change to flag_isoc11. | |
1153 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
1154 | C11. | |
1155 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
1156 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
1157 | Call set_std_c11. | |
1158 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
1159 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
1160 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
1161 | standard. | |
1162 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
1163 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
1164 | (std=gnu1x): Make alias of std=gnu11. | |
1165 | ||
d58d6eb5 JM |
1166 | 2011-12-19 Jason Merrill <jason@redhat.com> |
1167 | ||
1168 | PR c++/51228 | |
1169 | * c-common.c (handle_transparent_union_attribute): Check the first | |
1170 | field if the type is complete. | |
1171 | ||
b3908fcc JW |
1172 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
1173 | ||
1174 | PR libstdc++/51365 | |
1175 | * c-common.c (RID_IS_FINAL): Add. | |
1176 | * c-common.h (RID_IS_FINAL): Add. | |
1177 | ||
fea3ca91 IS |
1178 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
1179 | ||
1180 | * c.opt (fgnu-runtime): Provide full description. | |
1181 | (fnext-runtime): Likewise. | |
1182 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
1183 | ||
62bad7cd AM |
1184 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
1185 | ||
1186 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
1187 | predefines in one place. Add LOCK_FREE predefines. | |
1188 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
1189 | new func. | |
1190 | ||
c466c4ff AM |
1191 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
1192 | ||
1193 | PR c/51256 | |
9faeb493 | 1194 | * c-common.c (get_atomic_generic_size): Check for various error |
c466c4ff | 1195 | conditions |
9faeb493 UB |
1196 | (resolve_overloaded_atomic_exchange, |
1197 | resolve_overloaded_atomic_compare_exchange, | |
c466c4ff AM |
1198 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
1199 | error_mark_node for error conditions. | |
9faeb493 | 1200 | |
a5952633 RG |
1201 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
1202 | ||
1203 | PR middle-end/51010 | |
1204 | c-family/ | |
1205 | ||
0a35513e AH |
1206 | 2011-11-07 Richard Henderson <rth@redhat.com> |
1207 | Aldy Hernandez <aldyh@redhat.com> | |
1208 | Torvald Riegel <triegel@redhat.com> | |
1209 | ||
1210 | Merged from transactional-memory. | |
1211 | ||
1212 | * c-common.c (handle_tm_wrap_attribute, | |
1213 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
1214 | (struct c_common_reswords): Added __transaction* keywords. | |
1215 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
1216 | attributes. | |
1217 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
1218 | masks. | |
1219 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
1220 | find_tm_attribute): Declare. | |
1221 | ||
6d87092d JM |
1222 | 2011-11-07 Jason Merrill <jason@redhat.com> |
1223 | ||
1224 | PR c++/35688 | |
1225 | * c-common.c, c-common.h: Revert yesterday's changes. | |
1226 | ||
8e7860a1 JM |
1227 | 2011-11-06 Jason Merrill <jason@redhat.com> |
1228 | ||
1229 | PR c++/35688 | |
1230 | * c-common.c (decl_has_visibility_attr): Split out from... | |
1231 | (c_determine_visibility): ...here. | |
1232 | * c-common.h: Declare it. | |
1233 | ||
d19fa6b5 JM |
1234 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
1235 | ||
1236 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
1237 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
1238 | type. | |
1239 | (check_user_alignment): New. Split out of | |
1240 | handle_aligned_attribute. Disallow integer constants with | |
1241 | noninteger types. Conditionally allow zero. | |
1242 | (handle_aligned_attribute): Use check_user_alignment. | |
1243 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
1244 | ||
86951993 AM |
1245 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
1246 | Richard Henderson <rth@redhat.com> | |
1247 | ||
1248 | Merged from cxx-mem-model. | |
1249 | ||
1250 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
9faeb493 | 1251 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
86951993 AM |
1252 | parameters that are the same type size. |
1253 | (get_atomic_generic_size): New. Find size of generic | |
1254 | atomic function parameters and do typechecking. | |
1255 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
1256 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
1257 | either __atomic_exchange_n or external library call. | |
9faeb493 | 1258 | (resolve_overloaded_atomic_compare_exchange): Restructure |
86951993 | 1259 | __atomic_compare_exchange to either _n variant or external library call. |
9faeb493 | 1260 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
86951993 AM |
1261 | __atomic_load_n or an external library call. |
1262 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
1263 | __atomic_store_n or an external library call. | |
1264 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
1265 | ||
cf9e9959 EB |
1266 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
1267 | ||
1268 | PR c++/50608 | |
1269 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
1270 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
1271 | <INDIRECT_REF>: Return the argument. | |
1272 | <ARRAY_REF>: Remove special code for negative offset. | |
1273 | Call fold_build_pointer_plus instead of size_binop. | |
1274 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
1275 | * c-common.h (fold_offsetof_1): Declare. | |
1276 | (fold_offsetof): Remove STOP_REF argument. | |
1277 | ||
25339f10 JM |
1278 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
1279 | ||
1280 | PR c++/50810 | |
1281 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
1282 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
1283 | Wnarrowing for C++0x and C++98. | |
1284 | * c.opt ([Wnarrowing]): Update. | |
1285 | ||
89401152 PC |
1286 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
1287 | ||
1288 | PR c++/44277 | |
1289 | * c.opt: Add Wzero-as-null-pointer-constant. | |
1290 | ||
97e3ad20 JM |
1291 | 2011-10-31 Jason Merrill <jason@redhat.com> |
1292 | ||
15694fdd JM |
1293 | * c.opt (-fdeduce-init-list): Off by default. |
1294 | ||
97e3ad20 JM |
1295 | PR c++/50920 |
1296 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
1297 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
1298 | and -Wc++11-compat. | |
1299 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
1300 | ||
fb9120e3 RAV |
1301 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
1302 | ||
1303 | PR c++/30066 | |
1304 | * c.opt (fvisibility-inlines-hidden): Description change. | |
1305 | ||
3ce4f9e4 ESR |
1306 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
1307 | ||
1308 | Implement C++11 user-defined literals. | |
1309 | * c-common.c (build_userdef_literal): New. | |
1310 | * c-common.def: New tree code. | |
1311 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
1312 | * c-lex.c (interpret_float): Add suffix parm. | |
1313 | (c_lex_with_flags): Build literal tokens. | |
1314 | ||
5f53c243 PC |
1315 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
1316 | ||
1317 | PR c++/50841 | |
1318 | Revert: | |
1319 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
1320 | ||
1321 | PR c++/50810 | |
1322 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
1323 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
1324 | Wnarrowing for C++0x and C++98. | |
1325 | * c.opt ([Wnarrowing]): Update. | |
1326 | ||
263734e1 PC |
1327 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
1328 | ||
1329 | PR c++/50810 | |
1330 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
1331 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
1332 | Wnarrowing for C++0x and C++98. | |
1333 | * c.opt ([Wnarrowing]): Update. | |
1334 | ||
d2e312d7 PC |
1335 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
1336 | ||
1337 | PR c++/45385 | |
1338 | * c-common.c (conversion_warning): Remove code looking for | |
1339 | artificial operands. | |
1340 | ||
d17687f6 DS |
1341 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
1342 | ||
1343 | PR bootstrap/50760 | |
1344 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
9faeb493 | 1345 | !NO_IMPLICIT_EXTERN_C. |
d17687f6 | 1346 | |
fc8396e9 PC |
1347 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
1348 | ||
1349 | * c-common.c (c_common_reswords): Add __bases, | |
1350 | __direct_bases. | |
1351 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
1352 | ||
1353 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
1354 | ||
1355 | PR c++/50757 | |
1356 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
1357 | ||
847e697a TT |
1358 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1359 | Dodji Seketeli <dodji@redhat.com> | |
1360 | ||
1361 | * c.opt (fdebug-cpp): New option. | |
1362 | * c-opts.c (c_common_handle_option): Handle the option. | |
1363 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
1364 | output stream in parameter. Factorized from ... | |
1365 | (maybe_print_line): ... this. Dump location debug information when | |
1366 | -fdebug-cpp is in effect. | |
1367 | (print_line_1): New static function. Takes an output stream in | |
1368 | parameter. Factorized from ... | |
1369 | (print_line): ... here. Dump location information when -fdebug-cpp | |
1370 | is in effect. | |
1371 | (scan_translation_unit): Dump location information when | |
1372 | -fdebug-cpp is in effect. | |
1373 | ||
92582b75 TT |
1374 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1375 | Dodji Seketeli <dodji@redhat.com> | |
1376 | ||
1377 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
1378 | without argument. | |
1379 | * c-opts.c (c_common_handle_option)<case | |
1380 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
1381 | cases. Handle -ftrack-macro-expansion with and without argument. | |
1382 | ||
46427374 TT |
1383 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1384 | Dodji Seketeli <dodji@redhat.com> | |
1385 | ||
1386 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
1387 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
1388 | the internals of struct line_map. Use the public API instead. | |
1389 | * c-pch.c (c_common_read_pch): Likewise. | |
1390 | * c-lex.c (fe_file_change): Likewise. | |
1391 | ||
fc8396e9 PC |
1392 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
1393 | ||
1394 | PR c++/17212 | |
1395 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
1396 | ||
1397 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
1398 | ||
1399 | PR c++/33067 | |
1400 | * c-pretty-print.c (pp_c_floating_constant): Output | |
1401 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
1402 | ||
e79983f4 MM |
1403 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
1404 | ||
1405 | * c-common.c (def_builtin_1): Delete old interface with two | |
1406 | parallel arrays to hold standard builtin declarations, and replace | |
1407 | it with a function based interface that can support creating | |
1408 | builtins on the fly in the future. Change all uses, and poison | |
1409 | the old names. Make sure 0 is not a legitimate builtin index. | |
1410 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
1411 | (c_finish_omp_taskwait): Ditto. | |
1412 | (c_finish_omp_flush): Ditto. | |
1413 | ||
6637388f TG |
1414 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
1415 | ||
1416 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
1417 | ||
3797cb21 DS |
1418 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
1419 | ||
1420 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
1421 | * c-common.h (struct c_language_function::local_typedefs): New | |
1422 | field. | |
9faeb493 UB |
1423 | (record_locally_defined_typedef, maybe_record_typedef_use) |
1424 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
3797cb21 | 1425 | * c-common.c (record_locally_defined_typedef) |
9faeb493 UB |
1426 | (maybe_record_typedef_use) |
1427 | (maybe_warn_unused_local_typedefs): Define new functions. | |
3797cb21 DS |
1428 | * c.opt: Declare new -Wunused-local-typedefs flag. |
1429 | ||
693ddb1b EB |
1430 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
1431 | ||
1432 | PR middle-end/50266 | |
1433 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
1434 | computations. | |
1435 | ||
830c740f RG |
1436 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
1437 | ||
1438 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
1439 | of integer_minus_one_node for empty array upper bounds. | |
1440 | ||
892a371f DS |
1441 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
1442 | ||
1443 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
1444 | it's the first time it's being called on this main TU. | |
1445 | ||
0e3fdb48 RB |
1446 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
1447 | ||
1448 | PR c/49396 | |
1449 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
1450 | ||
1451 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
e3dfef44 GC |
1452 | |
1453 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
1454 | defined in cpp_init_builtins and c_cpp_builtins. | |
1455 | ||
d4a83c10 JM |
1456 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
1457 | ||
1458 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
1459 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
1460 | ||
bbceee64 JM |
1461 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
1462 | ||
1463 | * c-common.c (c_common_reswords): Add _Noreturn. | |
1464 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
1465 | * c-common.h (RID_NORETURN): New. | |
1466 | ||
0e3a99ae AS |
1467 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
1468 | ||
1469 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
1470 | unsafe to convert an expression to the type. | |
1471 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
1472 | * c-common.h (unsafe_conversion_p): New function declaration. | |
1473 | ||
20906c66 JJ |
1474 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
1475 | ||
1476 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
1477 | (c_finish_omp_taskyield): New prototype. | |
1478 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
1479 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
1480 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
1481 | or RHS1 have side-effects, evaluate those too in the right spot, | |
1482 | if it is a decl and LHS is also a decl, error out if they | |
1483 | aren't the same. | |
1484 | (c_finish_omp_taskyield): New function. | |
1485 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
1486 | * c-pragma.c (omp_pragmas): Add taskyield. | |
1487 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
1488 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
1489 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
1490 | ||
770e5a2e DS |
1491 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
1492 | ||
1493 | * c-common.h (set_underlying_type): Remove parm name from | |
1494 | declaration. | |
1495 | ||
1baae426 RG |
1496 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
1497 | ||
1498 | * c-pretty-print.h: Search c-common.h in c-family. | |
9faeb493 | 1499 | |
fcb21722 JM |
1500 | 2011-07-22 Jason Merrill <jason@redhat.com> |
1501 | ||
76f86d00 JM |
1502 | PR c++/49793 |
1503 | * c.opt (Wnarrowing): New. | |
1504 | ||
3a636414 JM |
1505 | PR c++/30112 |
1506 | * c-common.h: Declare c_linkage_bindings. | |
1507 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
1508 | ||
fcb21722 JM |
1509 | PR c++/49813 |
1510 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
1511 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
1512 | as flag_isoc99 for 'restrict'. | |
1513 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
1514 | ||
02614448 ILT |
1515 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
1516 | ||
1517 | PR middle-end/49705 | |
1518 | * c-common.c (c_disable_warnings): New static function. | |
1519 | (c_enable_warnings): New static function. | |
1520 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
1521 | c_disable_warnings and c_enable_warnings rather than change | |
1522 | c_inhibit_evaluation_warnings. | |
1523 | ||
34429675 JM |
1524 | 2011-07-20 Jason Merrill <jason@redhat.com> |
1525 | ||
1526 | PR c++/6709 (DR 743) | |
1527 | PR c++/42603 (DR 950) | |
1528 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
1529 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
1530 | (CPP_DECLTYPE): New. | |
1531 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
1532 | ||
5d49b6a7 RG |
1533 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
1534 | ||
1535 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
1536 | * c-omp.c (c_finish_omp_for): Likewise. | |
1537 | ||
e84a58ff EB |
1538 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
1539 | ||
1540 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
1541 | body on the next line. | |
1542 | ||
329af3c7 JM |
1543 | 2011-07-08 Jason Merrill <jason@redhat.com> |
1544 | ||
4063e61b JM |
1545 | PR c++/45437 |
1546 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
1547 | ||
329af3c7 JM |
1548 | PR c++/49673 |
1549 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
1550 | TYPE_NEEDS_CONSTRUCTING. | |
1551 | ||
1a072294 RG |
1552 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
1553 | ||
1554 | * c-common.c (c_common_nodes_and_builtins): | |
1555 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
1556 | ||
fce5dddd RG |
1557 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
1558 | ||
1559 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
1560 | tree nodes first. | |
1561 | ||
45d439ac JJ |
1562 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
1563 | ||
56300785 JJ |
1564 | * c-common.h (c_tree_chain_next): New static inline function. |
1565 | ||
45d439ac JJ |
1566 | * c-common.c (check_builtin_function_arguments): Handle |
1567 | BUILT_IN_ASSUME_ALIGNED. | |
1568 | ||
e0a8ecf2 AM |
1569 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
1570 | ||
1571 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
1572 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
dfb43cd5 PV |
1573 | |
1574 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
1575 | ||
1576 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
1577 | handler. | |
1578 | (gen_pragma_handler): New union. | |
1579 | (internal_pragma_handler): New type. | |
1580 | (c_register_pragma_with_data) | |
1581 | (c_register_pragma_with_expansion_and_data): New functions. | |
1582 | ||
1583 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
1584 | (c_register_pragma, c_register_pragma_with_expansion) | |
1585 | (c_invoke_pragma_handler): Changed to work with | |
1586 | internal_pragma_handler. | |
1587 | (c_register_pragma_with_data) | |
1588 | (c_register_pragma_with_expansion_and_data): New functions. | |
1589 | ||
677f3fa8 JM |
1590 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
1591 | ||
1592 | * c-common.c: Include common/common-target.h. | |
1593 | (handle_section_attribute): Use | |
1594 | targetm_common.have_named_sections. | |
1595 | * c-cppbuiltin.c: Include common/common-target.h. | |
1596 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
1597 | ||
d7fc8c14 RG |
1598 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
1599 | ||
1600 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
1601 | to print a IDENTIFIER_NODE. | |
1602 | ||
10e48e39 RO |
1603 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1604 | Joseph Myers <joseph@codesourcery.com> | |
1605 | ||
1606 | * c.opt (fbuilding-libgcc): New option. | |
1607 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
1608 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
1609 | ||
6976ae51 JM |
1610 | 2011-06-07 Jason Merrill <jason@redhat.com> |
1611 | ||
3ff60975 JM |
1612 | * c-common.c (max_tinst_depth): Lower default to 900. |
1613 | ||
6976ae51 JM |
1614 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
1615 | ||
009db074 RG |
1616 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
1617 | ||
1618 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
1619 | size_type_node or call set_sizetype. | |
1620 | ||
b4592b92 DS |
1621 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
1622 | ||
1623 | PR debug/49130 | |
1624 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
9faeb493 | 1625 | type when using pointer comparison to compare types. |
b4592b92 | 1626 | |
014ab419 JW |
1627 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
1628 | ||
1629 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
1630 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
1631 | ||
4f60111f NF |
1632 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
1633 | ||
1634 | PR bootstrap/49190 | |
1635 | ||
1636 | Revert: | |
1637 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
1638 | ||
1639 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
1640 | not tree_common. | |
1641 | ||
4cc4f2f4 JJ |
1642 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
1643 | ||
1644 | PR c++/49165 | |
1645 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
1646 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
1647 | ||
38e01f9e NF |
1648 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
1649 | ||
1650 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
1651 | (stmt_list_stack): Define. | |
1652 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
1653 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
1654 | ||
92e948a8 NF |
1655 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
1656 | ||
1657 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
1658 | ||
a2fc3e63 NF |
1659 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
1660 | ||
1661 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
1662 | not tree_common. | |
1663 | ||
0957c029 JJ |
1664 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
1665 | ||
1666 | * c-common.c (def_fn_type): Remove extra va_end. | |
1667 | ||
828fb3ba JM |
1668 | 2011-05-23 Jason Merrill <jason@redhat.com> |
1669 | ||
1670 | PR c++/48106 | |
1671 | * c-common.c (c_common_get_narrower): New. | |
1672 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
1673 | ||
dde05067 NF |
1674 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
1675 | ||
1676 | * c-common.h (check_function_arguments): Tweak prototype of | |
1677 | check_function_arguments. | |
1678 | * c-common.c (check_function_arguments): Likewise. Adjust | |
1679 | calls to check_function_nonnull, check_function_format, and | |
1680 | check_function_sentinel. | |
1681 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
1682 | separate attributes and typelist arguments. Use | |
1683 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
1684 | ||
3c0d13bf PC |
1685 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
1686 | ||
1687 | * c-common.c (c_common_reswords): Reorder. | |
1688 | * c-common.h (rid): Likewise. | |
1689 | ||
8242dd04 NF |
1690 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
1691 | ||
1692 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
1693 | build_function_type_array or build_varargs_function_type_array | |
1694 | instead. | |
1695 | (c_common_nodes_and_builtins): Likewise. | |
1696 | ||
3d528853 NF |
1697 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
1698 | ||
1699 | * c-common.c (c_add_case_label): Omit the loc argument to | |
1700 | build_case_label. | |
1701 | * c-common.h (build_case_label): Remove. | |
1702 | * c-semantics.c (build_case_label): Remove. | |
1703 | ||
a04a722b JM |
1704 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
1705 | ||
1706 | * c-objc.h (objc_start_method_definition): Update prototype. | |
1707 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
1708 | ||
e19a18d4 NF |
1709 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
1710 | ||
1711 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
1712 | TYPE_ARG_TYPES directly. | |
1713 | (handle_nonnull_attribute): Likewise. | |
1714 | (sync_resolve_params): Likewise. | |
1715 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
1716 | to check_format_string. | |
1717 | (handle_format_attribute): Likewise. | |
1718 | (check_format_string): Take a function type to examine instead of | |
1719 | a type list. Use a function_arg_iterator to step through argument | |
1720 | types. | |
1721 | ||
c62c040f RG |
1722 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
1723 | ||
1724 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
1725 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
1726 | (c_init_attributes): Likewise. | |
1727 | * c-lex.c (c_lex_with_flags): Likewise. | |
1728 | ||
c12ff9d8 JM |
1729 | 2011-04-27 Jason Merrill <jason@redhat.com> |
1730 | ||
1731 | * c-common.c (make_tree_vector_from_list): New. | |
1732 | * c-common.h: Declare it. | |
1733 | ||
304dfbe3 RG |
1734 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
1735 | ||
1736 | PR preprocessor/48248 | |
1737 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
1738 | for output size with -P. | |
1739 | ||
3c0d13bf PC |
1740 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
1741 | ||
1742 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
1743 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
1744 | ||
04695783 JM |
1745 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
1746 | ||
1747 | * c-format.c (init_dollar_format_checking): Remove useless | |
1748 | if-before-free. | |
1749 | ||
0dc33c3c NP |
1750 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
1751 | ||
1752 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 1753 | (objc_detect_field_duplicates): New. |
0dc33c3c | 1754 | * stub-objc.c: Likewise. |
3c0d13bf | 1755 | |
c59633d9 NP |
1756 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
1757 | ||
1758 | * stub-objc.c (objc_declare_protocols): Renamed to | |
1759 | objc_declare_protocol. | |
1760 | * c-objc.h: Likewise. | |
3c0d13bf | 1761 | |
32dabdaf NP |
1762 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
1763 | ||
1764 | * stub-objc.c (objc_declare_class): Updated argument name. | |
1765 | ||
81f653d6 NF |
1766 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
1767 | ||
1768 | * c-common.h (c_common_init_ts): Declare. | |
1769 | * c-common.c (c_common_init_ts): Define. | |
1770 | ||
eb345401 NP |
1771 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
1772 | ||
1773 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
1774 | * stub-objc.c (objc_build_message_expr): Likewise. | |
9faeb493 | 1775 | |
a358e188 MJ |
1776 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
1777 | ||
1778 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
1779 | of cgraph_node. | |
1780 | ||
e6313a78 RG |
1781 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
1782 | ||
1783 | * c-common.c (complete_array_type): Build a range type of | |
1784 | proper type. | |
1785 | ||
dcf0c47e NF |
1786 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
1787 | ||
1788 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
1789 | (handle_type_generic_attribute): Likewise. | |
1790 | ||
1ee44b26 JM |
1791 | 2011-04-07 Jason Merrill <jason@redhat.com> |
1792 | ||
1793 | PR c++/48450 | |
1794 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
1795 | conversion from C++0x scoped enum. | |
1796 | ||
acce4e77 JM |
1797 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
1798 | ||
1799 | * c-target-def.h: New file. | |
1800 | * c-target.def: New file. | |
1801 | * c-target.h: New file. | |
1802 | * c-common.c (targetcm): Don't define here. | |
1803 | * c-common.h (default_handle_c_option): Declare. | |
1804 | * c-format.c: Include c-target.h instead of target.h. | |
1805 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
1806 | include tm.h. | |
1807 | (default_handle_c_option): Move from targhooks.c. | |
1808 | ||
e2eefb55 JJ |
1809 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
1810 | ||
1811 | PR preprocessor/48248 | |
1812 | * c-ppoutput.c (print): Add src_file field. | |
1813 | (init_pp_output): Initialize it. | |
1814 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
1815 | if map->to_file and print.src_file are different file. | |
1816 | (print_line): Update print.src_file. | |
1817 | ||
ba78087b KT |
1818 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
1819 | ||
1820 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
1821 | instead of strcmp for filename. | |
1822 | ||
0edf1bb2 JL |
1823 | 2011-03-25 Jeff Law <law@redhat.com> |
1824 | ||
1825 | * c-family/c-common.c (def_fn_type): Add missing va_end. | |
1826 | ||
c7dc8804 JM |
1827 | 2011-03-25 Jason Merrill <jason@redhat.com> |
1828 | ||
1829 | * c.opt: Add -std=c++03. | |
1830 | ||
d1d879b1 EB |
1831 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
1832 | ||
1833 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
1834 | ||
62d784f7 KT |
1835 | 2011-03-17 Kai Tietz |
1836 | ||
1837 | PR target/12171 | |
5050afdf KT |
1838 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
1839 | Display allowed attributes for function pointer types. | |
1840 | (pp_c_attributes_display): New function to display | |
1841 | attributes having affects_type_identity flag set to true. | |
1842 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
1843 | ||
62d784f7 KT |
1844 | * c-common.c (c_common_attribute_table): |
1845 | Add new element. | |
1846 | (c_common_format_attribute_table): Likewise. | |
1847 | ||
82d37118 JM |
1848 | 2011-03-18 Jason Merrill <jason@redhat.com> |
1849 | ||
49a000c3 JM |
1850 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
1851 | * c-common.h: Don't declare it here. | |
1852 | * c-common.c: Or define it here. | |
1853 | * c-opts.c (c_common_handle_option): Or set it here. | |
1854 | ||
82d37118 JM |
1855 | PR c++/35315 |
1856 | * c-common.c (handle_transparent_union_attribute): Don't | |
1857 | make a duplicate type in C++. | |
1858 | ||
17bc631c JM |
1859 | 2011-03-15 Jason Merrill <jason@redhat.com> |
1860 | ||
1861 | * c-common.c (max_constexpr_depth): New. | |
1862 | * c-common.h: Declare it. | |
1863 | * c-opts.c (c_common_handle_option): Set it. | |
1864 | * c.opt (fconstexpr-depth): New option. | |
1865 | ||
1b9b91a6 JM |
1866 | 2011-03-11 Jason Merrill <jason@redhat.com> |
1867 | ||
f231b5ff JM |
1868 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
1869 | ||
1b9b91a6 JM |
1870 | PR c++/46803 |
1871 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
1872 | unknown attribute takes an identifier. | |
1873 | ||
a19e4d44 NF |
1874 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
1875 | ||
1876 | PR c/47786 | |
1877 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
1878 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
1879 | ||
982d62f6 JJ |
1880 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
1881 | ||
1882 | PR c/47809 | |
1883 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
1884 | ||
0a256240 NP |
1885 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
1886 | ||
1887 | * c.opt (fobjc-abi-version=) New. | |
1888 | (fobjc-nilcheck): New. | |
1889 | ||
ba9e6dd5 NF |
1890 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
1891 | ||
1892 | PR c++/46890 | |
1893 | * c-common.h (keyword_is_decl_specifier): Declare. | |
1894 | * c-common.c (keyword_is_decl_specifier): Define. | |
1895 | (keyword_is_function_specifier): New function. | |
1896 | ||
7273813a JJ |
1897 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
1898 | ||
1899 | PR c/47473 | |
1900 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
1901 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
1902 | REAL_TYPE. | |
1903 | ||
908ef79b AC |
1904 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
1905 | ||
1906 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
1907 | ||
237e9384 JJ |
1908 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
1909 | ||
1910 | PR pch/47430 | |
1911 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
1912 | after init_c_lex if pch_file is set. | |
1913 | ||
47ea1edf DK |
1914 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
1915 | ||
d4dba752 | 1916 | PR c++/43601 |
47ea1edf DK |
1917 | * c.opt (-fkeep-inline-dllexport): New switch. |
1918 | ||
2aa9c6ae RG |
1919 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
1920 | ||
1921 | PR middle-end/32511 | |
1922 | * c-common.c (handle_weak_attribute): Warn instead of error | |
1923 | on declaring an inline function weak. | |
1924 | ||
7bd11157 TT |
1925 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
1926 | ||
1927 | * c-common.h (lvalue_error): Update. | |
1928 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
1929 | not error. | |
1930 | ||
0e66e494 | 1931 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
9faeb493 | 1932 | |
b4f588c4 NP |
1933 | PR objc/47075 |
1934 | * c-objc.h (objc_finish_message_expr): Added argument to | |
1935 | prototype. | |
1936 | ||
f4da8dce NF |
1937 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
1938 | ||
1939 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
1940 | Use prototype_p. | |
1941 | ||
46270f14 NP |
1942 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1943 | ||
1944 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
9faeb493 | 1945 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
46270f14 | 1946 | |
4816c593 NF |
1947 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
1948 | ||
1949 | * c-common.h (readonly_error): Declare. | |
1950 | * c-common.c (readonly_error): Define. | |
1951 | ||
7a6daeb0 NF |
1952 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
1953 | ||
1954 | * c-common.h (invalid_indirection_error): Declare. | |
1955 | * c-common.c (invalid_indirection_error): Define. | |
1956 | ||
892f6119 RG |
1957 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
1958 | ||
1959 | PR c/46745 | |
1960 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
1961 | (pp_c_unary_expression): Likewise. | |
1962 | (pp_c_expression): Likewise. | |
1963 | ||
6c39e757 NP |
1964 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1965 | ||
1966 | * c-common.h (objc_finish_function): New. | |
1967 | (objc_non_volatilized_type): Removed. | |
1968 | (objc_type_quals_match): Removed. | |
1969 | * stub-objc.c (objc_finish_function): New. | |
1970 | (objc_non_volatilized_type): Removed. | |
1971 | (objc_type_quals_match): Removed. | |
9faeb493 | 1972 | |
7c475d11 JM |
1973 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
1974 | ||
1975 | * c-common.h (parse_optimize_options): Declare. | |
1976 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
1977 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
1978 | ||
71f3e391 JM |
1979 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
1980 | ||
1981 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
1982 | GET_ENVIRONMENT. | |
1983 | * c-pch.c (O_BINARY): Don't define here. | |
1984 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
1985 | ||
d5fabb58 JM |
1986 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
1987 | ||
1988 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
1989 | targetm.except_unwind_info. | |
1990 | ||
299404a1 JM |
1991 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
1992 | ||
1993 | * c-opts.c (c_common_handle_option): Pass location to | |
1994 | set_struct_debug_option. | |
1995 | ||
c98cd5bf JM |
1996 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
1997 | ||
1998 | * c-common.c (visibility_options): Move from ../opts.c. | |
1999 | * c-common.h (struct visibility_flags, visibility_options): | |
2000 | Declare here. | |
2001 | * c-opts.c (finish_options): Rename to c_finish_options. | |
2002 | (c_common_init): Update call to finish_options. | |
2003 | ||
a9546771 NP |
2004 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
2005 | ||
2006 | PR objc/34033 | |
2007 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
2008 | string concat sequence starts with either one or zero '@', and | |
2009 | that there are no spurious '@' signs at the end. | |
2010 | ||
24a57808 JM |
2011 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
2012 | ||
2013 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
2014 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
2015 | HANDLE_PRAGMA_VISIBILITY. | |
2016 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
2017 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
2018 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
2019 | ||
a9aa2c3a NF |
2020 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
2021 | ||
2022 | PR c++/16189 | |
2023 | PR c++/36888 | |
2024 | PR c++/45331 | |
2025 | * c-common.h (keyword_begins_type_specifier): Declare. | |
2026 | (keyword_is_storage_class_specifier): Declare. | |
2027 | (keyword_is_type_qualifier): Declare. | |
2028 | * c-common.c (keyword_begins_type_specifier): New function. | |
2029 | (keyword_is_storage_class_specifier): New function. | |
2030 | (keyword_is_type_qualifier): Declare. | |
2031 | ||
5386338c JM |
2032 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
2033 | ||
2034 | PR c/46547 | |
2035 | * c-common.c (in_late_binary_op): Define. | |
2036 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
2037 | calling c_save_expr. | |
2038 | * c-common.h (in_late_binary_op): Declare. | |
2039 | ||
69ccdddb JM |
2040 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
2041 | ||
2042 | * c-opts.c (c_common_handle_option): Update calls to | |
2043 | set_struct_debug_option. | |
2044 | ||
6b192a09 NP |
2045 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
2046 | ||
2047 | * c-common.h (objc_declare_protocols): Added additional argument. | |
2048 | * stub-objc.c (objc_declare_protocol): Same change. | |
9faeb493 | 2049 | |
fb52b50a NF |
2050 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
2051 | ||
2052 | PR c/33193 | |
2053 | * c-common.h (build_real_imag_expr): Declare. | |
2054 | * c-semantics.c (build_real_imag_expr): Define. | |
2055 | ||
b37421c6 JM |
2056 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
2057 | ||
2058 | * c-opts.c (c_common_parse_file): Take no arguments. | |
2059 | * c-common.h (c_common_parse_file): Update prototype. | |
2060 | ||
07078664 JJ |
2061 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
2062 | ||
2063 | PR c++/46401 | |
2064 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
2065 | or STRING_CSTs. | |
2066 | ||
c6a13190 ILT |
2067 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
2068 | ||
2069 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
2070 | flag_dump_go_spec is set. | |
2071 | ||
925e8657 NP |
2072 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
2073 | ||
2074 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
2075 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
2076 | ||
bb0a9581 NF |
2077 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
2078 | ||
2079 | PR preprocessor/45038 | |
2080 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
2081 | dialects. | |
2082 | ||
c5fa0890 JM |
2083 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
2084 | ||
2085 | * c-common.h (c_family_lang_mask): Declare. | |
2086 | * c-opts.c (c_family_lang_mask): Make extern. | |
2087 | * c-pragma.c (handle_pragma_diagnostic): Use | |
2088 | control_warning_option. | |
2089 | ||
a4d8c676 JM |
2090 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
2091 | ||
2092 | * c-common.c (parse_optimize_options): Update call to | |
2093 | decode_options. | |
2094 | * c-common.h (c_common_handle_option): Update prototype. | |
2095 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
2096 | pass it to other functions. | |
2097 | ||
f954bd2c JM |
2098 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
2099 | ||
2100 | * c-opts.c (warning_as_error_callback): Remove. | |
2101 | (c_common_initialize_diagnostics): Don't call | |
2102 | register_warning_as_error_callback. | |
2103 | (c_common_handle_option): Handle -Werror=normalized= here. | |
2104 | ||
d8a07487 JM |
2105 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
2106 | ||
2107 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
2108 | in diagnostic. | |
2109 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
2110 | letter. | |
2111 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
2112 | Remove trailing '.' from diagnostics. | |
2113 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
2114 | ||
d5478783 JM |
2115 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
2116 | ||
2117 | * c-common.c (parse_optimize_options): Pass global_dc to | |
2118 | decode_options. | |
2119 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
2120 | set_Wstrict_aliasing. | |
2121 | * c.opt (v): Don't mark Common or document here. | |
2122 | ||
91ebb981 IS |
2123 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
2124 | ||
2125 | PR target/44981 | |
2126 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
2127 | (valid_stringptr_type_p): New. | |
2128 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
9faeb493 | 2129 | (check_format_string): Pass expected type, use |
91ebb981 IS |
2130 | valid_stringptr_type_p (), check that the format string types are |
2131 | consistent with the format specification. | |
2132 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
2133 | (format_types_orig): Add NSString. | |
2134 | (format_name): New. | |
2135 | (format_flags): New. | |
2136 | (check_format_arg): Handle format strings requiring an external parser. | |
2137 | first_target_format_type: New variable. | |
2138 | (handle_format_attribute): Set up first_target_format_type, pass the | |
2139 | expected format arg string type to check_format_string(). | |
2140 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
2141 | * stub-objc.c (objc_string_ref_type_p): New. | |
2142 | (objc_check_format_arg): New. | |
2143 | ||
bede2adc NP |
2144 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
2145 | ||
9faeb493 | 2146 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
bede2adc NP |
2147 | * c-common.h (objc_build_class_component_ref): New. |
2148 | * stub-objc.c (objc_build_class_component_ref): New. | |
2149 | ||
9a179d01 NP |
2150 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
2151 | ||
2152 | * c.opt (Wproperty-assign-default): New option. | |
2153 | ||
22d8d616 NP |
2154 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
2155 | ||
2156 | Implemented -fobjc-std=objc1 flag. | |
2157 | * c.opt (fobjc-std=objc1): New option. | |
2158 | ||
2debdb4f NP |
2159 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
2160 | ||
2161 | Implemented format and noreturn attributes for Objective-C methods. | |
2162 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
2163 | attribute for Objective-C methods. | |
2164 | ||
ec52b111 JM |
2165 | 2010-10-31 Jason Merrill <jason@redhat.com> |
2166 | ||
2167 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
2168 | EXPR_LOC_OR_HERE. | |
2169 | ||
46a88c12 NP |
2170 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
2171 | ||
2172 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
2173 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
2174 | (objc_add_property_declaration): Removed arguments for copies and | |
2175 | ivar. | |
2176 | (objc_build_getter_call): Renamed to | |
2177 | objc_maybe_build_component_ref. | |
2178 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
2179 | (objc_is_property_ref): New. | |
2180 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
2181 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
2182 | for copies and ivar. | |
2183 | (objc_build_getter_call): Renamed to | |
2184 | objc_maybe_build_component_ref. | |
2185 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
2186 | (objc_is_property_ref): New. | |
9faeb493 | 2187 | |
1e4bf85b AC |
2188 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
2189 | Matthew Gingell <gingell@adacore.com> | |
2190 | ||
2191 | * c-ada-spec.c (separate_class_package): New function. | |
2192 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
2193 | name of their enclosing package. | |
2194 | (print_ada_declaration): Use separate_class_package. | |
2195 | ||
81f0bab2 JM |
2196 | 2010-10-27 Jason Merrill <jason@redhat.com> |
2197 | ||
2b08f2c5 JM |
2198 | * c-common.c (c_common_reswords): Add __is_literal_type. |
2199 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
2200 | ||
81f0bab2 JM |
2201 | * c-common.c (check_case_value): Remove special C++ code. |
2202 | ||
200290f2 NP |
2203 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
2204 | ||
2205 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
2206 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
2207 | and RID_LAST_PATTR. | |
2208 | (objc_add_property_declaration): Added additional arguments. | |
2209 | (objc_property_attribute_kind): Removed. | |
2210 | (objc_set_property_attr): Removed. | |
2211 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
2212 | copy and nonatomic. | |
2213 | * stub-objc.c (objc_add_property_declaration): Added additional | |
2214 | arguments. | |
2215 | (objc_set_property_attr): Removed. | |
9faeb493 | 2216 | |
f614132b NP |
2217 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
2218 | ||
2219 | * c-common.h (objc_add_property_variable): Renamed to | |
2220 | objc_add_property_declaration. Added location argument. | |
2221 | * stub-objc.c (objc_add_property_variable): Same change. | |
2222 | ||
b8a18805 NP |
2223 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
2224 | ||
2225 | * c-common.h (objc_maybe_printable_name): New. | |
2226 | * stub-objc.c (objc_maybe_printable_name): New. | |
2227 | ||
30cd1c5d AS |
2228 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
2229 | Andrew Pinski <pinskia@gmail.com> | |
2230 | ||
2231 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
2232 | * c-common.c (c_common_mark_addressable_vec): New function. | |
2233 | ||
249a82c4 NP |
2234 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
2235 | ||
2236 | * c-common.h (objc_set_method_type): Removed. | |
2237 | (objc_add_method_declaration): Added boolean argument. | |
2238 | (objc_start_method_definition): Same change. | |
2239 | (objc_build_method_signature): Same change. | |
2240 | * stub-objc.c (objc_set_method_type): Removed. | |
2241 | (objc_add_method_declaration): Added boolean argument. | |
2242 | (objc_start_method_definition): Same change. | |
2243 | (objc_build_method_signature): Same change. | |
2244 | ||
977e30bc NP |
2245 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
2246 | ||
2247 | * c-common.h (finish_file): Removed. | |
2248 | (objc_write_global_declarations): New. | |
2249 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
2250 | * stub-objc.c (objc_write_global_declarations): New. | |
9faeb493 | 2251 | |
da57d1b9 NP |
2252 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
2253 | ||
2254 | Implemented parsing @synthesize and @dynamic for | |
2255 | Objective-C/Objective-C++. | |
2256 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
2257 | (objc_add_synthesize_declaration): New. | |
2258 | (objc_add_dynamic_declaration): New. | |
2259 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
2260 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
2261 | (objc_add_dynamic_declaration): New. | |
9faeb493 | 2262 | |
0069111f MM |
2263 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
2264 | ||
2265 | PR target/46041 | |
2266 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
2267 | builtins.c. Don't use the fma optab, instead just use the | |
2268 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
2269 | using -save-temps. | |
2270 | ||
e426b47b NP |
2271 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
2272 | ||
2273 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 2274 | |
e426b47b NP |
2275 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
2276 | ||
9faeb493 | 2277 | Radar 4330422 |
e426b47b NP |
2278 | * c-common.h (objc_non_volatilized_type): New declaration |
2279 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
2280 | ||
90fbfdc3 NP |
2281 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
2282 | ||
e426b47b | 2283 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 NP |
2284 | |
2285 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
2286 | ||
9faeb493 | 2287 | Radar 4133425 |
90fbfdc3 | 2288 | * c-common.h (objc_diagnose_private_ivar): New decl. |
0069111f | 2289 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 2290 | |
c37d8c30 IS |
2291 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
2292 | ||
2293 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
2294 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
2295 | (objc_ivar_visibility_kind): New enum. | |
2296 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 2297 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
2298 | visibility enum. |
2299 | ||
1b1562a5 MM |
2300 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
2301 | ||
2302 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
2303 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
2304 | has the appropriate fma builtins. | |
2305 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
2306 | ||
668ea4b1 IS |
2307 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
2308 | ||
1b1562a5 | 2309 | merge from FSF apple 'trunk' branch. |
668ea4b1 | 2310 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 2311 | |
668ea4b1 IS |
2312 | Radars 4436866, 4505126, 4506903, 4517826 |
2313 | * c-common.c (c_common_resword): Define @property and its attributes. | |
2314 | * c-common.h: Define property attribute enum entries. | |
2315 | (OBJC_IS_PATTR_KEYWORD): New. | |
2316 | (objc_property_attribute_kind): New enum. | |
2317 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
2318 | objc_build_getter_call () and objc_build_setter_call (). | |
2319 | * stub-objc.c (objc_set_property_attr): New stub. | |
2320 | (objc_add_property_variable): Likewise. | |
2321 | (objc_build_getter_call): Likewise. | |
2322 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 2323 | |
a1178b30 IS |
2324 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
2325 | ||
1b1562a5 | 2326 | merge from FSF apple 'trunk' branch. |
a1178b30 IS |
2327 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
2328 | ||
2329 | Radar 3803157 (method attributes) | |
2330 | * c-common.c (handle_deprecated_attribute): Recognize | |
2331 | objc methods as valid declarations. | |
2332 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 2333 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 2334 | |
a75bfaa6 JM |
2335 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
2336 | ||
2337 | * c-common.c (parse_optimize_options): Call | |
2338 | decode_cmdline_options_to_array_default_mask before | |
2339 | decode_options. Update arguments to decode_options. | |
2340 | * c-common.h (c_common_init_options_struct): Declare. | |
2341 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
2342 | c_common_init_options. | |
2343 | ||
f05b9d93 NP |
2344 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
2345 | ||
2346 | Implemented fast enumeration for Objective-C. | |
2347 | * c-common.h (objc_finish_foreach_loop): New. | |
2348 | * stub-objc.c (objc_finish_foreach_loop): New. | |
2349 | ||
1ebe4b4f JM |
2350 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
2351 | ||
2352 | * c-common.h (struct diagnostic_context): Don't declare here. | |
2353 | (c_common_initialize_diagnostics): Declare using | |
2354 | diagnostic_context typedef. | |
2355 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
2356 | handle_generated_option. | |
2357 | ||
d4d24ba4 JM |
2358 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
2359 | ||
2360 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
2361 | handle_generated_option. | |
2362 | ||
478a1c5b ILT |
2363 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
2364 | ||
2365 | * c.opt (-fplan9-extensions): New option. | |
2366 | ||
82a1c2fe FXC |
2367 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
2368 | ||
2369 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
2370 | Remove. | |
2371 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
2372 | of duplicating code. | |
2373 | ||
92902b1b IS |
2374 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
2375 | ||
2376 | * c-common.c: Add two new entries for @optional | |
2377 | and @required keywords. | |
2378 | ||
2379 | merge from FSF 'apple/trunk' branch. | |
2380 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
2381 | ||
2382 | Radar 4386773 | |
2383 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
2384 | objective-c keywords. | |
2385 | (objc_set_method_opt): New declaration. | |
2386 | * stub-objc.c (objc_set_method_opt): New stub. | |
9faeb493 | 2387 | |
46625112 JM |
2388 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
2389 | ||
2390 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
2391 | cl_optimization_save and cl_optimization_restore. | |
2392 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
2393 | handle_generated_option. | |
2394 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
2395 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
2396 | &global_options to cl_optimization_restore. | |
2397 | ||
49b91f05 NP |
2398 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
2399 | ||
2400 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
2401 | Objective-C/Objective-C++ keywords. | |
2402 | ||
13ed556f | 2403 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 | 2404 | |
9faeb493 UB |
2405 | Merge from 'apple/trunk' branch on FSF servers. |
2406 | ||
a6341d57 NP |
2407 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
2408 | ||
2409 | Radar 4281748 | |
2410 | * c-common.h (objc_check_global_decl): New declaration. | |
2411 | * stub-objc.c (objc_check_global_decl): New stub. | |
2412 | ||
f0036cca JM |
2413 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
2414 | ||
2415 | * c.opt: Don't use VarExists. | |
2416 | ||
e3339d0f JM |
2417 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
2418 | ||
2419 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
2420 | members. | |
2421 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
2422 | cl_optimization members. | |
2423 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
2424 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
2425 | members. | |
2426 | ||
1973201f NP |
2427 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
2428 | ||
2429 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
2430 | (objc_is_reserved_word): Removed. | |
2431 | * c-common.c: Updated comments. | |
2432 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
2433 | objc_is_reserved_word. | |
2434 | * stub-objc.c (objc_is_reserved_word): Removed. | |
2435 | ||
f7e71da5 IS |
2436 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
2437 | ||
9faeb493 | 2438 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
f7e71da5 IS |
2439 | include attributes. |
2440 | (objc_start_method_definition): Likewise. | |
2441 | (objc_build_keyword_decl): Likewise. | |
2442 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
2443 | (objc_start_method_definition): Likewise. | |
2444 | (objc_build_keyword_decl): Likewise. | |
2445 | ||
c165dca7 IS |
2446 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
2447 | ||
2448 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
2449 | (objc_start_category_interface): Likewise. | |
2450 | (objc_start_protocol): Likewise. | |
2451 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
2452 | (objc_start_class_interface): Likewise. | |
2453 | (objc_start_category_interface): Likewise. | |
2454 | ||
7458026b ILT |
2455 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
2456 | ||
2457 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
2458 | (handle_no_split_stack_attribute): New static function. | |
2459 | ||
b581b85b NP |
2460 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
2461 | ||
9faeb493 | 2462 | Merge from 'apple/trunk' branch on FSF servers. |
b581b85b NP |
2463 | |
2464 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
2465 | ||
9faeb493 | 2466 | Radar 4229905 |
b581b85b NP |
2467 | * c-common.h (objc_have_common_type): New declaration. |
2468 | * stub-objc.c (objc_have_common_type): New stub. | |
2469 | ||
2470 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
2471 | ||
2472 | Radar 4154928 | |
2473 | * c-common.h (objc_common_type): New prototype. | |
9faeb493 | 2474 | * stub-objc.c (objc_common_type): New stub. |
b581b85b | 2475 | |
46a4da10 JH |
2476 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
2477 | ||
2478 | * c-common.c (handle_leaf_attribute): New function. | |
2479 | (struct attribute_spec c_common_att): Add leaf. | |
2480 | ||
e200444e JM |
2481 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
2482 | ||
2483 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
2484 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
2485 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
2486 | -include-barrier, -include-directory, -include-directory=, | |
2487 | -include-directory-after, -include-directory-after=, | |
2488 | -include-prefix, -include-prefix=, -include-with-prefix, | |
2489 | -include-with-prefix=, -include-with-prefix-after, | |
2490 | -include-with-prefix-after=, -include-with-prefix-before, | |
2491 | -include-with-prefix-before=, -no-integrated-cpp, | |
2492 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
2493 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
2494 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
2495 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
2496 | -user-dependencies, -verbose, -write-dependencies, | |
2497 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
2498 | ||
29a80ea6 NP |
2499 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
2500 | ||
2501 | PR objc/23710 | |
ac1fc2fc NP |
2502 | * c-common.h (objc_start_method_definition): Return bool instead |
2503 | of void. | |
2504 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
2505 | of void. | |
2506 | ||
2507 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
2508 | ||
2509 | PR objc/25965 | |
2510 | * c-common.h (objc_get_interface_ivars): New declaration. | |
2511 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 2512 | |
de621752 ILT |
2513 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
2514 | ||
2515 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 2516 | messages. Remove period at end of warning message. |
de621752 | 2517 | |
ba885ec5 NS |
2518 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
2519 | ||
2520 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
2521 | (handle_alias_attribute): ... here. | |
2522 | (handle_ifunc_attribute): New. | |
2523 | ||
c5ee1358 MM |
2524 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
2525 | ||
2526 | * c-common.h (do_warn_double_promotion): Declare. | |
2527 | * c-common.c (do_warn_double_promotion): Define. | |
2528 | ||
0a0b3574 MM |
2529 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
2530 | ||
2531 | * c.opt (Wdouble-promotion): New. | |
2532 | ||
d1779886 JM |
2533 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
2534 | ||
2535 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
2536 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
2537 | ||
2d2bd949 JM |
2538 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
2539 | ||
2540 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
2541 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
2542 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
2543 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
2544 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
2545 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
2546 | applicable. | |
2547 | (fhandle-exceptions): Mark with Alias and Warn. | |
2548 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
2549 | as ignored. | |
2550 | ||
5de8299c JM |
2551 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
2552 | ||
2553 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
2554 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
2555 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
2556 | aliases. | |
2557 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
2558 | OPT_Wcomments. | |
2559 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
2560 | Don't handle options marked as aliases. | |
2561 | ||
0ceb0201 RG |
2562 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
2563 | ||
2564 | * c-common.c (c_common_get_alias_set): Remove special | |
2565 | handling for pointers. | |
2566 | ||
ac47786e NF |
2567 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
2568 | ||
2569 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
2570 | * c-gimplify.c: Likewise. | |
2571 | * c-pragma.c: Likewise. | |
2572 | ||
c878765b JM |
2573 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
2574 | ||
2575 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
2576 | RejectDriver. | |
2577 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
2578 | RejectDriver. | |
2579 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
2580 | instead of OPT_MDX and OPT_MMDX. | |
2581 | ||
603349bf JM |
2582 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
2583 | ||
2584 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
2585 | ||
644fa7ac JM |
2586 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
2587 | ||
2588 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
2589 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
2590 | ||
481e1176 JM |
2591 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
2592 | ||
2593 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
2594 | instead of handle_option. | |
2595 | ||
ac8dc9f7 NF |
2596 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
2597 | ||
2598 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
2599 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
2600 | ||
4f8c876d NF |
2601 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
2602 | ||
2603 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
2604 | (pending_redefine_extname): Change type to a VEC. | |
2605 | (add_to_renaming_pragma_list): Update for new type of | |
2606 | pending_redefine_extname. | |
ac8dc9f7 | 2607 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 2608 | |
3b0c690e AC |
2609 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
2610 | ||
2611 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
2612 | visited. | |
2613 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
2614 | decide whether a type has already been declared/seen. | |
2615 | Do not go to the original type. | |
2616 | (dump_nested_types): New parameter forward. | |
2617 | Generate forward declaration if needed and mark type as visited. | |
2618 | (print_ada_declaration): Call dump_nested_types if not already done. | |
2619 | Mark types as visited. | |
2620 | ||
1890bccc JM |
2621 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
2622 | ||
2623 | * c.opt (-print-pch-checksum): Remove option. | |
2624 | * c-opts.c (c_common_handle_option): Don't handle | |
2625 | OPT_print_pch_checksum. | |
2626 | ||
5f20c657 JM |
2627 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
2628 | ||
2629 | * c-common.h (c_common_handle_option): Update prototype and return | |
2630 | value type. | |
2631 | * c-opts.c (c_common_handle_option): Update prototype and return | |
2632 | value type. Update calls to handle_option and | |
2633 | enable_warning_as_error. | |
2634 | ||
f551f80c JJ |
2635 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
2636 | ||
2637 | PR c/45079 | |
2638 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
2639 | ||
61ff2bdc JM |
2640 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
2641 | ||
2642 | * c-common.h (c_common_missing_argument): Remove. | |
2643 | * c-opts.c (c_common_missing_argument): Remove. | |
2644 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
2645 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
2646 | MissingArgError. | |
2647 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
2648 | ||
7a9bf9a4 JM |
2649 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
2650 | ||
2651 | * c-common.h (c_common_option_lang_mask, | |
2652 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
2653 | New. | |
2654 | (c_common_init_options): Update prototype. | |
2655 | * c-opts.c (c_common_option_lang_mask): New. | |
2656 | (c_common_initialize_diagnostics): Split out of | |
2657 | c_common_init_options. | |
2658 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
2659 | New. | |
2660 | (c_common_init_options): Update prototype. Use decoded options in | |
2661 | search for -lang-asm. | |
2662 | ||
910ad8de NF |
2663 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
2664 | ||
2665 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
2666 | * c-format.c: Likewise. | |
2667 | ||
718f9c0f MLI |
2668 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2669 | ||
2670 | * c-common.h: Include diagnostic-core.h. Error if already | |
2671 | included. | |
2672 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
2673 | ||
4d451982 MLI |
2674 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2675 | ||
2676 | * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. | |
2677 | Do not include expr.h | |
2678 | (vector_mode_valid_p): Move here. | |
2679 | ||
119fe915 SB |
2680 | 2010-06-21 DJ Delorie <dj@redhat.com> |
2681 | ||
2682 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
2683 | allow these pragmas anywhere. | |
2684 | ||
2685 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
2686 | ||
2687 | PR bootstrap/44509 | |
2688 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
2689 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
2690 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
2691 | ggc_strdup instead of xstrdup. | |
2692 | ||
2693 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
2694 | ||
2695 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
2696 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
2697 | (lazy_hex_fp_value): New function. | |
2698 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
2699 | ||
6662d794 MLI |
2700 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2701 | ||
2702 | * c-gimplify.c: Do not include tree-flow.h | |
2703 | ||
38f8b050 JR |
2704 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
2705 | ||
2706 | PR other/44034 | |
2707 | * c-common.c: Rename targetm member: | |
2708 | targetm.enum_va_list -> targetm.enum_va_list_p | |
2709 | ||
9589f23e AS |
2710 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
2711 | ||
2712 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
2713 | ||
3b06d379 SB |
2714 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
2715 | ||
2716 | * c-cppbuiltin.c: Do not include except.h. | |
2717 | ||
d166d4c3 AK |
2718 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
2719 | ||
9faeb493 UB |
2720 | * c-common.c (warn_for_omitted_condop): New. |
2721 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
d166d4c3 | 2722 | |
70cb8be6 JM |
2723 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
2724 | ||
2725 | * c.opt (lang-objc): Remove. | |
2726 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
2727 | ||
a4c97feb JR |
2728 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
2729 | ||
2730 | * c-opts.c: Include "tm_p.h". | |
2731 | ||
6e2f1956 JM |
2732 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
2733 | ||
2734 | * c-common.c (parse_optimize_options): Update call to | |
2735 | decode_options. | |
2736 | ||
bc87224e NF |
2737 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
2738 | ||
2739 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
2740 | new type of types_used_by_cur_var_decl. | |
2741 | ||
b49cf425 JR |
2742 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
2743 | ||
2744 | PR bootstrap/44512 | |
2745 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
2746 | for C++ standard compliance. | |
2747 | ||
59f9c2ed JM |
2748 | 2010-06-16 Jason Merrill <jason@redhat.com> |
2749 | ||
2750 | * c.opt: Add -Wnoexcept. | |
2751 | ||
33766b66 RG |
2752 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
2753 | ||
2754 | PR c/44555 | |
2755 | * c-common.c (c_common_truthvalue_conversion): Remove | |
2756 | premature and wrong optimization concering ADDR_EXPRs. | |
2757 | ||
eff7e30c AC |
2758 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
2759 | ||
2760 | * c-ada-spec.c (dump_sloc): Remove column info. | |
2761 | (is_simple_enum): New function. | |
2762 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
2763 | enum types when relevant. | |
2764 | ||
6312e84d MLI |
2765 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2766 | ||
9faeb493 | 2767 | * c-common.c (conversion_warning): Warn at expression |
6312e84d MLI |
2768 | location. |
2769 | ||
1cb42611 JM |
2770 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
2771 | ||
2772 | * c-opts.c (c_common_handle_option): Don't handle | |
2773 | OPT_fshow_column. | |
2774 | ||
a9429e29 LB |
2775 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
2776 | ||
2777 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
2778 | (handle_pragma_push_options): Likewise. | |
2779 | ||
2780 | * c-common.c (parse_optimize_options): Likewise. | |
2781 | ||
2782 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
2783 | option. | |
2784 | ||
5498f011 JM |
2785 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
2786 | ||
2787 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
2788 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
2789 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
2790 | flag_signed_bitfields, warn_strict_null_sentinel, | |
2791 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
2792 | flag_gen_declaration, flag_no_gnu_keywords, | |
2793 | flag_implement_inlines, flag_implicit_templates, | |
2794 | flag_implicit_inline_templates, flag_optional_diags, | |
2795 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
2796 | flag_conserve_space, flag_access_control, flag_check_new, | |
2797 | flag_new_for_scope, flag_weak, flag_working_directory, | |
2798 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
2799 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
2800 | flag_pretty_templates): Remove. | |
2801 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
2802 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
2803 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
2804 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
2805 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
2806 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
2807 | flag_no_gnu_keywords, flag_implement_inlines, | |
2808 | flag_implicit_templates, flag_implicit_inline_templates, | |
2809 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
2810 | flag_rtti, flag_conserve_space, flag_access_control, | |
2811 | flag_check_new, flag_new_for_scope, flag_weak, | |
2812 | flag_working_directory, flag_use_cxa_atexit, | |
2813 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
2814 | flag_threadsafe_statics, flag_pretty_templates, | |
2815 | warn_strict_null_sentinel): Remove. | |
2816 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
2817 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
2818 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
2819 | fimplicit-inline-templates, fimplicit-templates, | |
2820 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
2821 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
2822 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
2823 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
2824 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
2825 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
2826 | gen-decls, undef): Use Var. | |
2827 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
2828 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
2829 | using Var. Mark ignored options as such. | |
2830 | ||
39dabefd SB |
2831 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
2832 | ||
9faeb493 | 2833 | * c-common.c: Moved to here from parent directory. |
39dabefd SB |
2834 | * c-common.def: Likewise. |
2835 | * c-common.h: Likewise. | |
2836 | * c-cppbuiltin.c: Likewise. | |
2837 | * c-dump.c: Likewise. | |
2838 | * c-format.c: Likewise. | |
2839 | * c-format.h : Likewise. | |
2840 | * c-gimplify.c: Likewise. | |
2841 | * c-lex.c: Likewise. | |
2842 | * c-omp.c: Likewise. | |
2843 | * c.opt: Likewise. | |
2844 | * c-opts.c: Likewise. | |
2845 | * c-pch.c: Likewise. | |
2846 | * c-ppoutput.c: Likewise. | |
2847 | * c-pragma.c: Likewise. | |
2848 | * c-pragma.h: Likewise. | |
2849 | * c-pretty-print.c: Likewise. | |
2850 | * c-pretty-print.h: Likewise. | |
2851 | * c-semantics.c: Likewise. | |
2852 | * stub-objc.c: Likewise. | |
2853 | ||
2854 | * c-common.c: Include gt-c-family-c-common.h. | |
2855 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
2856 | \f | |
d1e082c2 | 2857 | Copyright (C) 2010-2013 Free Software Foundation, Inc. |
39dabefd SB |
2858 | |
2859 | Copying and distribution of this file, with or without modification, | |
2860 | are permitted in any medium without royalty provided the copyright | |
2861 | notice and this notice are preserved. |