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