]>
Commit | Line | Data |
---|---|---|
90e2341f | 1 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
2 | ||
3 | PR middle-end/51806 | |
4 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
5 | to language independent code. | |
6 | ||
9ea022ce | 7 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
8 | ||
9 | PR middle-end/51764 | |
10 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
11 | from common.opt. | |
12 | ||
3df19e1b | 13 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
14 | ||
15 | PR c++/51316 | |
16 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
17 | of array types with an unknown bound. | |
18 | ||
32074525 | 19 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
20 | ||
21 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
22 | (flag_isoc1x): Change to flag_isoc11. | |
23 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
24 | (flag_isoc1x): Change to flag_isoc11. | |
25 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
26 | C11. | |
27 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
28 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
29 | Call set_std_c11. | |
30 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
31 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
32 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
33 | standard. | |
34 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
35 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
36 | (std=gnu1x): Make alias of std=gnu11. | |
37 | ||
fca86134 | 38 | 2011-12-19 Jason Merrill <jason@redhat.com> |
39 | ||
40 | PR c++/51228 | |
41 | * c-common.c (handle_transparent_union_attribute): Check the first | |
42 | field if the type is complete. | |
43 | ||
aa4313eb | 44 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
45 | ||
46 | PR libstdc++/51365 | |
47 | * c-common.c (RID_IS_FINAL): Add. | |
48 | * c-common.h (RID_IS_FINAL): Add. | |
49 | ||
3f3d5ad4 | 50 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
51 | ||
52 | * c.opt (fgnu-runtime): Provide full description. | |
53 | (fnext-runtime): Likewise. | |
54 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
55 | ||
c4606d19 | 56 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
57 | ||
58 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
59 | predefines in one place. Add LOCK_FREE predefines. | |
60 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
61 | new func. | |
62 | ||
1d581089 | 63 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
64 | ||
65 | PR c/51256 | |
66 | * c-common.c (get_atomic_generic_size): Check for various error | |
67 | conditions | |
68 | (resolve_overloaded_atomic_exchange, | |
69 | resolve_overloaded_atomic_compare_exchange, | |
70 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return | |
71 | error_mark_node for error conditions. | |
72 | ||
6aa221fa | 73 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
74 | ||
75 | PR middle-end/51010 | |
76 | c-family/ | |
77 | ||
4c0315d0 | 78 | 2011-11-07 Richard Henderson <rth@redhat.com> |
79 | Aldy Hernandez <aldyh@redhat.com> | |
80 | Torvald Riegel <triegel@redhat.com> | |
81 | ||
82 | Merged from transactional-memory. | |
83 | ||
84 | * c-common.c (handle_tm_wrap_attribute, | |
85 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
86 | (struct c_common_reswords): Added __transaction* keywords. | |
87 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
88 | attributes. | |
89 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
90 | masks. | |
91 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
92 | find_tm_attribute): Declare. | |
93 | ||
920f5a70 | 94 | 2011-11-07 Jason Merrill <jason@redhat.com> |
95 | ||
96 | PR c++/35688 | |
97 | * c-common.c, c-common.h: Revert yesterday's changes. | |
98 | ||
b4f861b4 | 99 | 2011-11-06 Jason Merrill <jason@redhat.com> |
100 | ||
101 | PR c++/35688 | |
102 | * c-common.c (decl_has_visibility_attr): Split out from... | |
103 | (c_determine_visibility): ...here. | |
104 | * c-common.h: Declare it. | |
105 | ||
83e25171 | 106 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
107 | ||
108 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
109 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
110 | type. | |
111 | (check_user_alignment): New. Split out of | |
112 | handle_aligned_attribute. Disallow integer constants with | |
113 | noninteger types. Conditionally allow zero. | |
114 | (handle_aligned_attribute): Use check_user_alignment. | |
115 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
116 | ||
1cd6e20d | 117 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
118 | Richard Henderson <rth@redhat.com> | |
119 | ||
120 | Merged from cxx-mem-model. | |
121 | ||
122 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
123 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak | |
124 | parameters that are the same type size. | |
125 | (get_atomic_generic_size): New. Find size of generic | |
126 | atomic function parameters and do typechecking. | |
127 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
128 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
129 | either __atomic_exchange_n or external library call. | |
130 | (resolve_overloaded_atomic_compare_exchange): Restructure | |
131 | __atomic_compare_exchange to either _n variant or external library call. | |
132 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either | |
133 | __atomic_load_n or an external library call. | |
134 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
135 | __atomic_store_n or an external library call. | |
136 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
137 | ||
7549df0d | 138 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
139 | ||
140 | PR c++/50608 | |
141 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
142 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
143 | <INDIRECT_REF>: Return the argument. | |
144 | <ARRAY_REF>: Remove special code for negative offset. | |
145 | Call fold_build_pointer_plus instead of size_binop. | |
146 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
147 | * c-common.h (fold_offsetof_1): Declare. | |
148 | (fold_offsetof): Remove STOP_REF argument. | |
149 | ||
7e783eb3 | 150 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
151 | ||
152 | PR c++/50810 | |
153 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
154 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
155 | Wnarrowing for C++0x and C++98. | |
156 | * c.opt ([Wnarrowing]): Update. | |
157 | ||
8fe701f5 | 158 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
159 | ||
160 | PR c++/44277 | |
161 | * c.opt: Add Wzero-as-null-pointer-constant. | |
162 | ||
0d84dc2d | 163 | 2011-10-31 Jason Merrill <jason@redhat.com> |
164 | ||
67031f52 | 165 | * c.opt (-fdeduce-init-list): Off by default. |
166 | ||
0d84dc2d | 167 | PR c++/50920 |
168 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
169 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
170 | and -Wc++11-compat. | |
171 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
172 | ||
66f24c41 | 173 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
174 | ||
175 | PR c++/30066 | |
176 | * c.opt (fvisibility-inlines-hidden): Description change. | |
177 | ||
244db24d | 178 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
179 | ||
180 | Implement C++11 user-defined literals. | |
181 | * c-common.c (build_userdef_literal): New. | |
182 | * c-common.def: New tree code. | |
183 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
184 | * c-lex.c (interpret_float): Add suffix parm. | |
185 | (c_lex_with_flags): Build literal tokens. | |
186 | ||
235be70f | 187 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
188 | ||
189 | PR c++/50841 | |
190 | Revert: | |
191 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
192 | ||
193 | PR c++/50810 | |
194 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
195 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
196 | Wnarrowing for C++0x and C++98. | |
197 | * c.opt ([Wnarrowing]): Update. | |
198 | ||
4fe0fb1c | 199 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
200 | ||
201 | PR c++/50810 | |
202 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
203 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
204 | Wnarrowing for C++0x and C++98. | |
205 | * c.opt ([Wnarrowing]): Update. | |
206 | ||
5f7504f9 | 207 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
208 | ||
209 | PR c++/45385 | |
210 | * c-common.c (conversion_warning): Remove code looking for | |
211 | artificial operands. | |
212 | ||
2a688977 | 213 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
214 | ||
215 | PR bootstrap/50760 | |
216 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
217 | !NO_IMPLICIT_EXTERN_C. | |
218 | ||
326e3391 | 219 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
220 | ||
221 | * c-common.c (c_common_reswords): Add __bases, | |
222 | __direct_bases. | |
223 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
224 | ||
225 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
226 | ||
227 | PR c++/50757 | |
228 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
229 | ||
62db153a | 230 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
231 | Dodji Seketeli <dodji@redhat.com> | |
232 | ||
233 | * c.opt (fdebug-cpp): New option. | |
234 | * c-opts.c (c_common_handle_option): Handle the option. | |
235 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
236 | output stream in parameter. Factorized from ... | |
237 | (maybe_print_line): ... this. Dump location debug information when | |
238 | -fdebug-cpp is in effect. | |
239 | (print_line_1): New static function. Takes an output stream in | |
240 | parameter. Factorized from ... | |
241 | (print_line): ... here. Dump location information when -fdebug-cpp | |
242 | is in effect. | |
243 | (scan_translation_unit): Dump location information when | |
244 | -fdebug-cpp is in effect. | |
245 | ||
ce70f433 | 246 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
247 | Dodji Seketeli <dodji@redhat.com> | |
248 | ||
249 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
250 | without argument. | |
251 | * c-opts.c (c_common_handle_option)<case | |
252 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
253 | cases. Handle -ftrack-macro-expansion with and without argument. | |
254 | ||
97bfb9ef | 255 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
256 | Dodji Seketeli <dodji@redhat.com> | |
257 | ||
258 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
259 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
260 | the internals of struct line_map. Use the public API instead. | |
261 | * c-pch.c (c_common_read_pch): Likewise. | |
262 | * c-lex.c (fe_file_change): Likewise. | |
263 | ||
326e3391 | 264 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
265 | ||
266 | PR c++/17212 | |
267 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
268 | ||
269 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
270 | ||
271 | PR c++/33067 | |
272 | * c-pretty-print.c (pp_c_floating_constant): Output | |
273 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
274 | ||
b9a16870 | 275 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
276 | ||
277 | * c-common.c (def_builtin_1): Delete old interface with two | |
278 | parallel arrays to hold standard builtin declarations, and replace | |
279 | it with a function based interface that can support creating | |
280 | builtins on the fly in the future. Change all uses, and poison | |
281 | the old names. Make sure 0 is not a legitimate builtin index. | |
282 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
283 | (c_finish_omp_taskwait): Ditto. | |
284 | (c_finish_omp_flush): Ditto. | |
285 | ||
c7964868 | 286 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
287 | ||
288 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
289 | ||
a4e3ffad | 290 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
291 | ||
292 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
293 | * c-common.h (struct c_language_function::local_typedefs): New | |
294 | field. | |
295 | (record_locally_defined_typedef, maybe_record_typedef_use) | |
296 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
297 | * c-common.c (record_locally_defined_typedef) | |
298 | (maybe_record_typedef_use) | |
299 | (maybe_warn_unused_local_typedefs): Define new functions. | |
300 | * c.opt: Declare new -Wunused-local-typedefs flag. | |
301 | ||
737a23cc | 302 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
303 | ||
304 | PR middle-end/50266 | |
305 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
306 | computations. | |
307 | ||
7542c3b4 | 308 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
309 | ||
310 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
311 | of integer_minus_one_node for empty array upper bounds. | |
312 | ||
1dc92c59 | 313 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
314 | ||
315 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
316 | it's the first time it's being called on this main TU. | |
317 | ||
2bdf2b6e | 318 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
319 | ||
320 | PR c/49396 | |
321 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
322 | ||
323 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
6ea2c7a3 | 324 | |
325 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
326 | defined in cpp_init_builtins and c_cpp_builtins. | |
327 | ||
bff4ad11 | 328 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
329 | ||
330 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
331 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
332 | ||
985c6e3a | 333 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
334 | ||
335 | * c-common.c (c_common_reswords): Add _Noreturn. | |
336 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
337 | * c-common.h (RID_NORETURN): New. | |
338 | ||
7dfa155b | 339 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
340 | ||
341 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
342 | unsafe to convert an expression to the type. | |
343 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
344 | * c-common.h (unsafe_conversion_p): New function declaration. | |
345 | ||
2169f33b | 346 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
347 | ||
348 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
349 | (c_finish_omp_taskyield): New prototype. | |
350 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
351 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
352 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
353 | or RHS1 have side-effects, evaluate those too in the right spot, | |
354 | if it is a decl and LHS is also a decl, error out if they | |
355 | aren't the same. | |
356 | (c_finish_omp_taskyield): New function. | |
357 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
358 | * c-pragma.c (omp_pragmas): Add taskyield. | |
359 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
360 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
361 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
362 | ||
ab77850e | 363 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
364 | ||
365 | * c-common.h (set_underlying_type): Remove parm name from | |
366 | declaration. | |
367 | ||
6ee97920 | 368 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
369 | ||
370 | * c-pretty-print.h: Search c-common.h in c-family. | |
371 | ||
dc251364 | 372 | 2011-07-22 Jason Merrill <jason@redhat.com> |
373 | ||
1a2a35f0 | 374 | PR c++/49793 |
375 | * c.opt (Wnarrowing): New. | |
376 | ||
27282252 | 377 | PR c++/30112 |
378 | * c-common.h: Declare c_linkage_bindings. | |
379 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
380 | ||
dc251364 | 381 | PR c++/49813 |
382 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
383 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
384 | as flag_isoc99 for 'restrict'. | |
385 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
386 | ||
fc501191 | 387 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
388 | ||
389 | PR middle-end/49705 | |
390 | * c-common.c (c_disable_warnings): New static function. | |
391 | (c_enable_warnings): New static function. | |
392 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
393 | c_disable_warnings and c_enable_warnings rather than change | |
394 | c_inhibit_evaluation_warnings. | |
395 | ||
07b8f133 | 396 | 2011-07-20 Jason Merrill <jason@redhat.com> |
397 | ||
398 | PR c++/6709 (DR 743) | |
399 | PR c++/42603 (DR 950) | |
400 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
401 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
402 | (CPP_DECLTYPE): New. | |
403 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
404 | ||
2cc66f2a | 405 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
406 | ||
407 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
408 | * c-omp.c (c_finish_omp_for): Likewise. | |
409 | ||
3c802a1e | 410 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
411 | ||
412 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
413 | body on the next line. | |
414 | ||
98a33d9f | 415 | 2011-07-08 Jason Merrill <jason@redhat.com> |
416 | ||
3115bda0 | 417 | PR c++/45437 |
418 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
419 | ||
98a33d9f | 420 | PR c++/49673 |
421 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
422 | TYPE_NEEDS_CONSTRUCTING. | |
423 | ||
c38a75b7 | 424 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
425 | ||
426 | * c-common.c (c_common_nodes_and_builtins): | |
427 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
428 | ||
e593356b | 429 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
430 | ||
431 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
432 | tree nodes first. | |
433 | ||
fca0886c | 434 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
435 | ||
a68f7a8d | 436 | * c-common.h (c_tree_chain_next): New static inline function. |
437 | ||
fca0886c | 438 | * c-common.c (check_builtin_function_arguments): Handle |
439 | BUILT_IN_ASSUME_ALIGNED. | |
440 | ||
2797f13a | 441 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
442 | ||
443 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
444 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
9cad95b7 | 445 | |
446 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
447 | ||
448 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
449 | handler. | |
450 | (gen_pragma_handler): New union. | |
451 | (internal_pragma_handler): New type. | |
452 | (c_register_pragma_with_data) | |
453 | (c_register_pragma_with_expansion_and_data): New functions. | |
454 | ||
455 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
456 | (c_register_pragma, c_register_pragma_with_expansion) | |
457 | (c_invoke_pragma_handler): Changed to work with | |
458 | internal_pragma_handler. | |
459 | (c_register_pragma_with_data) | |
460 | (c_register_pragma_with_expansion_and_data): New functions. | |
461 | ||
218e3e4e | 462 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
463 | ||
464 | * c-common.c: Include common/common-target.h. | |
465 | (handle_section_attribute): Use | |
466 | targetm_common.have_named_sections. | |
467 | * c-cppbuiltin.c: Include common/common-target.h. | |
468 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
469 | ||
41e53ed2 | 470 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
471 | ||
472 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
473 | to print a IDENTIFIER_NODE. | |
474 | ||
a6f06169 | 475 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
476 | Joseph Myers <joseph@codesourcery.com> | |
477 | ||
478 | * c.opt (fbuilding-libgcc): New option. | |
479 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
480 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
481 | ||
1ea9269b | 482 | 2011-06-07 Jason Merrill <jason@redhat.com> |
483 | ||
8ce59854 | 484 | * c-common.c (max_tinst_depth): Lower default to 900. |
485 | ||
1ea9269b | 486 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
487 | ||
1af0124d | 488 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
489 | ||
490 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
491 | size_type_node or call set_sizetype. | |
492 | ||
0e9a4c01 | 493 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
494 | ||
495 | PR debug/49130 | |
496 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
497 | type when using pointer comparison to compare types. | |
498 | ||
90b40725 | 499 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
500 | ||
501 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
502 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
503 | ||
fc9c9e87 | 504 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
505 | ||
506 | PR bootstrap/49190 | |
507 | ||
508 | Revert: | |
509 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
510 | ||
511 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
512 | not tree_common. | |
513 | ||
d0389adc | 514 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
515 | ||
516 | PR c++/49165 | |
517 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
518 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
519 | ||
cacfdc02 | 520 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
521 | ||
522 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
523 | (stmt_list_stack): Define. | |
524 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
525 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
526 | ||
027fc6ef | 527 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
528 | ||
529 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
530 | ||
f21317a1 | 531 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
532 | ||
533 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
534 | not tree_common. | |
535 | ||
789e953d | 536 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
537 | ||
538 | * c-common.c (def_fn_type): Remove extra va_end. | |
539 | ||
7f506bca | 540 | 2011-05-23 Jason Merrill <jason@redhat.com> |
541 | ||
542 | PR c++/48106 | |
543 | * c-common.c (c_common_get_narrower): New. | |
544 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
545 | ||
774e9d58 | 546 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
547 | ||
548 | * c-common.h (check_function_arguments): Tweak prototype of | |
549 | check_function_arguments. | |
550 | * c-common.c (check_function_arguments): Likewise. Adjust | |
551 | calls to check_function_nonnull, check_function_format, and | |
552 | check_function_sentinel. | |
553 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
554 | separate attributes and typelist arguments. Use | |
555 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
556 | ||
23407dc9 | 557 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
558 | ||
559 | * c-common.c (c_common_reswords): Reorder. | |
560 | * c-common.h (rid): Likewise. | |
561 | ||
3a939d12 | 562 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
563 | ||
564 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
565 | build_function_type_array or build_varargs_function_type_array | |
566 | instead. | |
567 | (c_common_nodes_and_builtins): Likewise. | |
568 | ||
b6e3dd65 | 569 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
570 | ||
571 | * c-common.c (c_add_case_label): Omit the loc argument to | |
572 | build_case_label. | |
573 | * c-common.h (build_case_label): Remove. | |
574 | * c-semantics.c (build_case_label): Remove. | |
575 | ||
4232a958 | 576 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
577 | ||
578 | * c-objc.h (objc_start_method_definition): Update prototype. | |
579 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
580 | ||
d0af78c5 | 581 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
582 | ||
583 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
584 | TYPE_ARG_TYPES directly. | |
585 | (handle_nonnull_attribute): Likewise. | |
586 | (sync_resolve_params): Likewise. | |
587 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
588 | to check_format_string. | |
589 | (handle_format_attribute): Likewise. | |
590 | (check_format_string): Take a function type to examine instead of | |
591 | a type list. Use a function_arg_iterator to step through argument | |
592 | types. | |
593 | ||
ceb7b692 | 594 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
595 | ||
596 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
597 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
598 | (c_init_attributes): Likewise. | |
599 | * c-lex.c (c_lex_with_flags): Likewise. | |
600 | ||
c66c81be | 601 | 2011-04-27 Jason Merrill <jason@redhat.com> |
602 | ||
603 | * c-common.c (make_tree_vector_from_list): New. | |
604 | * c-common.h: Declare it. | |
605 | ||
16930c72 | 606 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
607 | ||
608 | PR preprocessor/48248 | |
609 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
610 | for output size with -P. | |
611 | ||
23407dc9 | 612 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
613 | ||
614 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
615 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
616 | ||
dd045aee | 617 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
618 | ||
619 | * c-format.c (init_dollar_format_checking): Remove useless | |
620 | if-before-free. | |
621 | ||
394dd737 | 622 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
623 | ||
624 | * c-objc.h (objc_get_interface_ivars): Removed. | |
23407dc9 | 625 | (objc_detect_field_duplicates): New. |
394dd737 | 626 | * stub-objc.c: Likewise. |
23407dc9 | 627 | |
a758bf7d | 628 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
629 | ||
630 | * stub-objc.c (objc_declare_protocols): Renamed to | |
631 | objc_declare_protocol. | |
632 | * c-objc.h: Likewise. | |
23407dc9 | 633 | |
29d7200d | 634 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
635 | ||
636 | * stub-objc.c (objc_declare_class): Updated argument name. | |
637 | ||
9b88d08d | 638 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
639 | ||
640 | * c-common.h (c_common_init_ts): Declare. | |
641 | * c-common.c (c_common_init_ts): Define. | |
642 | ||
4185cf58 | 643 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
644 | ||
645 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
646 | * stub-objc.c (objc_build_message_expr): Likewise. | |
647 | ||
5a90471f | 648 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
649 | ||
650 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
651 | of cgraph_node. | |
652 | ||
783bb57e | 653 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
654 | ||
655 | * c-common.c (complete_array_type): Build a range type of | |
656 | proper type. | |
657 | ||
c33080b9 | 658 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
659 | ||
660 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
661 | (handle_type_generic_attribute): Likewise. | |
662 | ||
f8913d47 | 663 | 2011-04-07 Jason Merrill <jason@redhat.com> |
664 | ||
665 | PR c++/48450 | |
666 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
667 | conversion from C++0x scoped enum. | |
668 | ||
c94b1d0e | 669 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
670 | ||
671 | * c-target-def.h: New file. | |
672 | * c-target.def: New file. | |
673 | * c-target.h: New file. | |
674 | * c-common.c (targetcm): Don't define here. | |
675 | * c-common.h (default_handle_c_option): Declare. | |
676 | * c-format.c: Include c-target.h instead of target.h. | |
677 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
678 | include tm.h. | |
679 | (default_handle_c_option): Move from targhooks.c. | |
680 | ||
acb10f41 | 681 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
682 | ||
683 | PR preprocessor/48248 | |
684 | * c-ppoutput.c (print): Add src_file field. | |
685 | (init_pp_output): Initialize it. | |
686 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
687 | if map->to_file and print.src_file are different file. | |
688 | (print_line): Update print.src_file. | |
689 | ||
82715bcd | 690 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
691 | ||
692 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
693 | instead of strcmp for filename. | |
694 | ||
451c8e2f | 695 | 2011-03-25 Jeff Law <law@redhat.com> |
696 | ||
697 | * c-family/c-common.c (def_fn_type): Add missing va_end. | |
698 | ||
3c47771c | 699 | 2011-03-25 Jason Merrill <jason@redhat.com> |
700 | ||
701 | * c.opt: Add -std=c++03. | |
702 | ||
97e6200f | 703 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
704 | ||
705 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
706 | ||
ac86af5d | 707 | 2011-03-17 Kai Tietz |
708 | ||
709 | PR target/12171 | |
ee212425 | 710 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
711 | Display allowed attributes for function pointer types. | |
712 | (pp_c_attributes_display): New function to display | |
713 | attributes having affects_type_identity flag set to true. | |
714 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
715 | ||
ac86af5d | 716 | * c-common.c (c_common_attribute_table): |
717 | Add new element. | |
718 | (c_common_format_attribute_table): Likewise. | |
719 | ||
914d1151 | 720 | 2011-03-18 Jason Merrill <jason@redhat.com> |
721 | ||
69788bdf | 722 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
723 | * c-common.h: Don't declare it here. | |
724 | * c-common.c: Or define it here. | |
725 | * c-opts.c (c_common_handle_option): Or set it here. | |
726 | ||
914d1151 | 727 | PR c++/35315 |
728 | * c-common.c (handle_transparent_union_attribute): Don't | |
729 | make a duplicate type in C++. | |
730 | ||
54cf6eed | 731 | 2011-03-15 Jason Merrill <jason@redhat.com> |
732 | ||
733 | * c-common.c (max_constexpr_depth): New. | |
734 | * c-common.h: Declare it. | |
735 | * c-opts.c (c_common_handle_option): Set it. | |
736 | * c.opt (fconstexpr-depth): New option. | |
737 | ||
02cb1060 | 738 | 2011-03-11 Jason Merrill <jason@redhat.com> |
739 | ||
9bf1c74e | 740 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
741 | ||
02cb1060 | 742 | PR c++/46803 |
743 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
744 | unknown attribute takes an identifier. | |
745 | ||
ecf2703d | 746 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
747 | ||
748 | PR c/47786 | |
749 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
750 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
751 | ||
2b19dfe4 | 752 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
753 | ||
754 | PR c/47809 | |
755 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
756 | ||
29cf2335 | 757 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
758 | ||
759 | * c.opt (fobjc-abi-version=) New. | |
760 | (fobjc-nilcheck): New. | |
761 | ||
fad3f658 | 762 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
763 | ||
764 | PR c++/46890 | |
765 | * c-common.h (keyword_is_decl_specifier): Declare. | |
766 | * c-common.c (keyword_is_decl_specifier): Define. | |
767 | (keyword_is_function_specifier): New function. | |
768 | ||
a12319b3 | 769 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
770 | ||
771 | PR c/47473 | |
772 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
773 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
774 | REAL_TYPE. | |
775 | ||
5c128dc8 | 776 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
777 | ||
778 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
779 | ||
8d67b0c7 | 780 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
781 | ||
782 | PR pch/47430 | |
783 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
784 | after init_c_lex if pch_file is set. | |
785 | ||
0675168d | 786 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
787 | ||
e8911163 | 788 | PR c++/43601 |
0675168d | 789 | * c.opt (-fkeep-inline-dllexport): New switch. |
790 | ||
0725e25c | 791 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
792 | ||
793 | PR middle-end/32511 | |
794 | * c-common.c (handle_weak_attribute): Warn instead of error | |
795 | on declaring an inline function weak. | |
796 | ||
fdd84b77 | 797 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
798 | ||
799 | * c-common.h (lvalue_error): Update. | |
800 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
801 | not error. | |
802 | ||
e6e73d14 | 803 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
804 | ||
d67e8485 | 805 | PR objc/47075 |
806 | * c-objc.h (objc_finish_message_expr): Added argument to | |
807 | prototype. | |
808 | ||
a36cf284 | 809 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
810 | ||
811 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
812 | Use prototype_p. | |
813 | ||
33b3681f | 814 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
815 | ||
816 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
817 | * stub-objc.c (objc_maybe_warn_exceptions): New. | |
818 | ||
a1f90215 | 819 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
820 | ||
821 | * c-common.h (readonly_error): Declare. | |
822 | * c-common.c (readonly_error): Define. | |
823 | ||
b1bbc8e5 | 824 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
825 | ||
826 | * c-common.h (invalid_indirection_error): Declare. | |
827 | * c-common.c (invalid_indirection_error): Define. | |
828 | ||
b0d55af9 | 829 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
830 | ||
831 | PR c/46745 | |
832 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
833 | (pp_c_unary_expression): Likewise. | |
834 | (pp_c_expression): Likewise. | |
835 | ||
d7489d8d | 836 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
837 | ||
838 | * c-common.h (objc_finish_function): New. | |
839 | (objc_non_volatilized_type): Removed. | |
840 | (objc_type_quals_match): Removed. | |
841 | * stub-objc.c (objc_finish_function): New. | |
842 | (objc_non_volatilized_type): Removed. | |
843 | (objc_type_quals_match): Removed. | |
844 | ||
92468061 | 845 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
846 | ||
847 | * c-common.h (parse_optimize_options): Declare. | |
848 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
849 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
850 | ||
967958e4 | 851 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
852 | ||
853 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
854 | GET_ENVIRONMENT. | |
855 | * c-pch.c (O_BINARY): Don't define here. | |
856 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
857 | ||
b213bf24 | 858 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
859 | ||
860 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
861 | targetm.except_unwind_info. | |
862 | ||
9faf44d6 | 863 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
864 | ||
865 | * c-opts.c (c_common_handle_option): Pass location to | |
866 | set_struct_debug_option. | |
867 | ||
79396169 | 868 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
869 | ||
870 | * c-common.c (visibility_options): Move from ../opts.c. | |
871 | * c-common.h (struct visibility_flags, visibility_options): | |
872 | Declare here. | |
873 | * c-opts.c (finish_options): Rename to c_finish_options. | |
874 | (c_common_init): Update call to finish_options. | |
875 | ||
b4aa4123 | 876 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
877 | ||
878 | PR objc/34033 | |
879 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
880 | string concat sequence starts with either one or zero '@', and | |
881 | that there are no spurious '@' signs at the end. | |
882 | ||
3e0e49f2 | 883 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
884 | ||
885 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
886 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
887 | HANDLE_PRAGMA_VISIBILITY. | |
888 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
889 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
890 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
891 | ||
a9ffdd35 | 892 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
893 | ||
894 | PR c++/16189 | |
895 | PR c++/36888 | |
896 | PR c++/45331 | |
897 | * c-common.h (keyword_begins_type_specifier): Declare. | |
898 | (keyword_is_storage_class_specifier): Declare. | |
899 | (keyword_is_type_qualifier): Declare. | |
900 | * c-common.c (keyword_begins_type_specifier): New function. | |
901 | (keyword_is_storage_class_specifier): New function. | |
902 | (keyword_is_type_qualifier): Declare. | |
903 | ||
93be21c0 | 904 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
905 | ||
906 | PR c/46547 | |
907 | * c-common.c (in_late_binary_op): Define. | |
908 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
909 | calling c_save_expr. | |
910 | * c-common.h (in_late_binary_op): Declare. | |
911 | ||
d7175aef | 912 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
913 | ||
914 | * c-opts.c (c_common_handle_option): Update calls to | |
915 | set_struct_debug_option. | |
916 | ||
c213e196 | 917 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
918 | ||
919 | * c-common.h (objc_declare_protocols): Added additional argument. | |
920 | * stub-objc.c (objc_declare_protocol): Same change. | |
921 | ||
0b5fc5d6 | 922 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
923 | ||
924 | PR c/33193 | |
925 | * c-common.h (build_real_imag_expr): Declare. | |
926 | * c-semantics.c (build_real_imag_expr): Define. | |
927 | ||
b8ba44e7 | 928 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
929 | ||
930 | * c-opts.c (c_common_parse_file): Take no arguments. | |
931 | * c-common.h (c_common_parse_file): Update prototype. | |
932 | ||
6ef8d12f | 933 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
934 | ||
935 | PR c++/46401 | |
936 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
937 | or STRING_CSTs. | |
938 | ||
929d2a90 | 939 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
940 | ||
941 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
942 | flag_dump_go_spec is set. | |
943 | ||
e4a7640a | 944 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
945 | ||
946 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
947 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
948 | ||
597d2d81 | 949 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
950 | ||
951 | PR preprocessor/45038 | |
952 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
953 | dialects. | |
954 | ||
c123f04d | 955 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
956 | ||
957 | * c-common.h (c_family_lang_mask): Declare. | |
958 | * c-opts.c (c_family_lang_mask): Make extern. | |
959 | * c-pragma.c (handle_pragma_diagnostic): Use | |
960 | control_warning_option. | |
961 | ||
3c6c0e40 | 962 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
963 | ||
964 | * c-common.c (parse_optimize_options): Update call to | |
965 | decode_options. | |
966 | * c-common.h (c_common_handle_option): Update prototype. | |
967 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
968 | pass it to other functions. | |
969 | ||
19ec5c9e | 970 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
971 | ||
972 | * c-opts.c (warning_as_error_callback): Remove. | |
973 | (c_common_initialize_diagnostics): Don't call | |
974 | register_warning_as_error_callback. | |
975 | (c_common_handle_option): Handle -Werror=normalized= here. | |
976 | ||
bf776685 | 977 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
978 | ||
979 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
980 | in diagnostic. | |
981 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
982 | letter. | |
983 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
984 | Remove trailing '.' from diagnostics. | |
985 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
986 | ||
6bd9d862 | 987 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
988 | ||
989 | * c-common.c (parse_optimize_options): Pass global_dc to | |
990 | decode_options. | |
991 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
992 | set_Wstrict_aliasing. | |
993 | * c.opt (v): Don't mark Common or document here. | |
994 | ||
1f6616ee | 995 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
996 | ||
997 | PR target/44981 | |
998 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
999 | (valid_stringptr_type_p): New. | |
1000 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
1001 | (check_format_string): Pass expected type, use | |
1002 | valid_stringptr_type_p (), check that the format string types are | |
1003 | consistent with the format specification. | |
1004 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
1005 | (format_types_orig): Add NSString. | |
1006 | (format_name): New. | |
1007 | (format_flags): New. | |
1008 | (check_format_arg): Handle format strings requiring an external parser. | |
1009 | first_target_format_type: New variable. | |
1010 | (handle_format_attribute): Set up first_target_format_type, pass the | |
1011 | expected format arg string type to check_format_string(). | |
1012 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
1013 | * stub-objc.c (objc_string_ref_type_p): New. | |
1014 | (objc_check_format_arg): New. | |
1015 | ||
b0d0931f | 1016 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
1017 | ||
1018 | Fixed using the Objective-C 2.0 dot-syntax with class names. | |
1019 | * c-common.h (objc_build_class_component_ref): New. | |
1020 | * stub-objc.c (objc_build_class_component_ref): New. | |
1021 | ||
f26877d5 | 1022 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
1023 | ||
1024 | * c.opt (Wproperty-assign-default): New option. | |
1025 | ||
1ef143b6 | 1026 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
1027 | ||
1028 | Implemented -fobjc-std=objc1 flag. | |
1029 | * c.opt (fobjc-std=objc1): New option. | |
1030 | ||
8c582e4f | 1031 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
1032 | ||
1033 | Implemented format and noreturn attributes for Objective-C methods. | |
1034 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
1035 | attribute for Objective-C methods. | |
1036 | ||
8637f1db | 1037 | 2010-10-31 Jason Merrill <jason@redhat.com> |
1038 | ||
1039 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
1040 | EXPR_LOC_OR_HERE. | |
1041 | ||
9d9f5bb3 | 1042 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1043 | ||
1044 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
1045 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
1046 | (objc_add_property_declaration): Removed arguments for copies and | |
1047 | ivar. | |
1048 | (objc_build_getter_call): Renamed to | |
1049 | objc_maybe_build_component_ref. | |
1050 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
1051 | (objc_is_property_ref): New. | |
1052 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
1053 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
1054 | for copies and ivar. | |
1055 | (objc_build_getter_call): Renamed to | |
1056 | objc_maybe_build_component_ref. | |
1057 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
1058 | (objc_is_property_ref): New. | |
1059 | ||
56f907a0 | 1060 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
1061 | Matthew Gingell <gingell@adacore.com> | |
1062 | ||
1063 | * c-ada-spec.c (separate_class_package): New function. | |
1064 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
1065 | name of their enclosing package. | |
1066 | (print_ada_declaration): Use separate_class_package. | |
1067 | ||
b5fa273e | 1068 | 2010-10-27 Jason Merrill <jason@redhat.com> |
1069 | ||
5290e253 | 1070 | * c-common.c (c_common_reswords): Add __is_literal_type. |
1071 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
1072 | ||
b5fa273e | 1073 | * c-common.c (check_case_value): Remove special C++ code. |
1074 | ||
7590f0e5 | 1075 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
1076 | ||
1077 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
1078 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
1079 | and RID_LAST_PATTR. | |
1080 | (objc_add_property_declaration): Added additional arguments. | |
1081 | (objc_property_attribute_kind): Removed. | |
1082 | (objc_set_property_attr): Removed. | |
1083 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
1084 | copy and nonatomic. | |
1085 | * stub-objc.c (objc_add_property_declaration): Added additional | |
1086 | arguments. | |
1087 | (objc_set_property_attr): Removed. | |
1088 | ||
1d894bcf | 1089 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
1090 | ||
1091 | * c-common.h (objc_add_property_variable): Renamed to | |
1092 | objc_add_property_declaration. Added location argument. | |
1093 | * stub-objc.c (objc_add_property_variable): Same change. | |
1094 | ||
e23bf1fb | 1095 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
1096 | ||
1097 | * c-common.h (objc_maybe_printable_name): New. | |
1098 | * stub-objc.c (objc_maybe_printable_name): New. | |
1099 | ||
93426222 | 1100 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
1101 | Andrew Pinski <pinskia@gmail.com> | |
1102 | ||
1103 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
1104 | * c-common.c (c_common_mark_addressable_vec): New function. | |
1105 | ||
45b2b110 | 1106 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
1107 | ||
1108 | * c-common.h (objc_set_method_type): Removed. | |
1109 | (objc_add_method_declaration): Added boolean argument. | |
1110 | (objc_start_method_definition): Same change. | |
1111 | (objc_build_method_signature): Same change. | |
1112 | * stub-objc.c (objc_set_method_type): Removed. | |
1113 | (objc_add_method_declaration): Added boolean argument. | |
1114 | (objc_start_method_definition): Same change. | |
1115 | (objc_build_method_signature): Same change. | |
1116 | ||
64cd9619 | 1117 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
1118 | ||
1119 | * c-common.h (finish_file): Removed. | |
1120 | (objc_write_global_declarations): New. | |
1121 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
1122 | * stub-objc.c (objc_write_global_declarations): New. | |
1123 | ||
e1f293c0 | 1124 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1125 | ||
1126 | Implemented parsing @synthesize and @dynamic for | |
1127 | Objective-C/Objective-C++. | |
1128 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
1129 | (objc_add_synthesize_declaration): New. | |
1130 | (objc_add_dynamic_declaration): New. | |
1131 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
1132 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
1133 | (objc_add_dynamic_declaration): New. | |
1134 | ||
ef97a312 | 1135 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
1136 | ||
1137 | PR target/46041 | |
1138 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
1139 | builtins.c. Don't use the fma optab, instead just use the | |
1140 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
1141 | using -save-temps. | |
1142 | ||
69b07042 | 1143 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1144 | ||
1145 | Merge from 'apple/trunk' branch on FSF servers. | |
ef97a312 | 1146 | |
69b07042 | 1147 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
1148 | ||
1149 | Radar 4330422 | |
1150 | * c-common.h (objc_non_volatilized_type): New declaration | |
1151 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
1152 | ||
f15f2e56 | 1153 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
1154 | ||
69b07042 | 1155 | Merge from 'apple/trunk' branch on FSF servers. |
f15f2e56 | 1156 | |
1157 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
1158 | ||
1159 | Radar 4133425 | |
1160 | * c-common.h (objc_diagnose_private_ivar): New decl. | |
ef97a312 | 1161 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
f15f2e56 | 1162 | |
4a8875ed | 1163 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
1164 | ||
1165 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
1166 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
1167 | (objc_ivar_visibility_kind): New enum. | |
1168 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
ef97a312 | 1169 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
4a8875ed | 1170 | visibility enum. |
1171 | ||
7e0713b1 | 1172 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
1173 | ||
1174 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
1175 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
1176 | has the appropriate fma builtins. | |
1177 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
1178 | ||
86c110ac | 1179 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
1180 | ||
7e0713b1 | 1181 | merge from FSF apple 'trunk' branch. |
86c110ac | 1182 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
7e0713b1 | 1183 | |
86c110ac | 1184 | Radars 4436866, 4505126, 4506903, 4517826 |
1185 | * c-common.c (c_common_resword): Define @property and its attributes. | |
1186 | * c-common.h: Define property attribute enum entries. | |
1187 | (OBJC_IS_PATTR_KEYWORD): New. | |
1188 | (objc_property_attribute_kind): New enum. | |
1189 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
1190 | objc_build_getter_call () and objc_build_setter_call (). | |
1191 | * stub-objc.c (objc_set_property_attr): New stub. | |
1192 | (objc_add_property_variable): Likewise. | |
1193 | (objc_build_getter_call): Likewise. | |
1194 | (objc_build_setter_call) Likewise. | |
7e0713b1 | 1195 | |
40c8d1dd | 1196 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
1197 | ||
7e0713b1 | 1198 | merge from FSF apple 'trunk' branch. |
40c8d1dd | 1199 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
1200 | ||
1201 | Radar 3803157 (method attributes) | |
1202 | * c-common.c (handle_deprecated_attribute): Recognize | |
1203 | objc methods as valid declarations. | |
1204 | * c-common.h: Declare objc_method_decl (). | |
7e0713b1 | 1205 | * stub-objc.c (objc_method_decl): New stub. |
40c8d1dd | 1206 | |
f3f006ad | 1207 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
1208 | ||
1209 | * c-common.c (parse_optimize_options): Call | |
1210 | decode_cmdline_options_to_array_default_mask before | |
1211 | decode_options. Update arguments to decode_options. | |
1212 | * c-common.h (c_common_init_options_struct): Declare. | |
1213 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
1214 | c_common_init_options. | |
1215 | ||
0a65c3bb | 1216 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
1217 | ||
1218 | Implemented fast enumeration for Objective-C. | |
1219 | * c-common.h (objc_finish_foreach_loop): New. | |
1220 | * stub-objc.c (objc_finish_foreach_loop): New. | |
1221 | ||
24ca3b4e | 1222 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
1223 | ||
1224 | * c-common.h (struct diagnostic_context): Don't declare here. | |
1225 | (c_common_initialize_diagnostics): Declare using | |
1226 | diagnostic_context typedef. | |
1227 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
1228 | handle_generated_option. | |
1229 | ||
f83b64ca | 1230 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
1231 | ||
1232 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
1233 | handle_generated_option. | |
1234 | ||
2fdec027 | 1235 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
1236 | ||
1237 | * c.opt (-fplan9-extensions): New option. | |
1238 | ||
41acdfa4 | 1239 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
1240 | ||
1241 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
1242 | Remove. | |
1243 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
1244 | of duplicating code. | |
1245 | ||
069761fb | 1246 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
1247 | ||
1248 | * c-common.c: Add two new entries for @optional | |
1249 | and @required keywords. | |
1250 | ||
1251 | merge from FSF 'apple/trunk' branch. | |
1252 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
1253 | ||
1254 | Radar 4386773 | |
1255 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
1256 | objective-c keywords. | |
1257 | (objc_set_method_opt): New declaration. | |
1258 | * stub-objc.c (objc_set_method_opt): New stub. | |
1259 | ||
2c5d2e39 | 1260 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
1261 | ||
1262 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
1263 | cl_optimization_save and cl_optimization_restore. | |
1264 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
1265 | handle_generated_option. | |
1266 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
1267 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
1268 | &global_options to cl_optimization_restore. | |
1269 | ||
e5c75ac3 | 1270 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1271 | ||
1272 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
1273 | Objective-C/Objective-C++ keywords. | |
1274 | ||
3511333e | 1275 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
e147d6aa | 1276 | |
1277 | Merge from 'apple/trunk' branch on FSF servers. | |
1278 | ||
1279 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> | |
1280 | ||
1281 | Radar 4281748 | |
1282 | * c-common.h (objc_check_global_decl): New declaration. | |
1283 | * stub-objc.c (objc_check_global_decl): New stub. | |
1284 | ||
5461e683 | 1285 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
1286 | ||
1287 | * c.opt: Don't use VarExists. | |
1288 | ||
5ae82d58 | 1289 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
1290 | ||
1291 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
1292 | members. | |
1293 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
1294 | cl_optimization members. | |
1295 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
1296 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
1297 | members. | |
1298 | ||
b27e241e | 1299 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
1300 | ||
1301 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
1302 | (objc_is_reserved_word): Removed. | |
1303 | * c-common.c: Updated comments. | |
1304 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
1305 | objc_is_reserved_word. | |
1306 | * stub-objc.c (objc_is_reserved_word): Removed. | |
1307 | ||
03fc2271 | 1308 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
1309 | ||
1310 | * c-common.h (objc_add_method_declaration): Adjust prototype to | |
1311 | include attributes. | |
1312 | (objc_start_method_definition): Likewise. | |
1313 | (objc_build_keyword_decl): Likewise. | |
1314 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
1315 | (objc_start_method_definition): Likewise. | |
1316 | (objc_build_keyword_decl): Likewise. | |
1317 | ||
a336eb4b | 1318 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
1319 | ||
1320 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
1321 | (objc_start_category_interface): Likewise. | |
1322 | (objc_start_protocol): Likewise. | |
1323 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
1324 | (objc_start_class_interface): Likewise. | |
1325 | (objc_start_category_interface): Likewise. | |
1326 | ||
48b14f50 | 1327 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
1328 | ||
1329 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
1330 | (handle_no_split_stack_attribute): New static function. | |
1331 | ||
4abfc532 | 1332 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
1333 | ||
1334 | Merge from 'apple/trunk' branch on FSF servers. | |
1335 | ||
1336 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
1337 | ||
1338 | Radar 4229905 | |
1339 | * c-common.h (objc_have_common_type): New declaration. | |
1340 | * stub-objc.c (objc_have_common_type): New stub. | |
1341 | ||
1342 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
1343 | ||
1344 | Radar 4154928 | |
1345 | * c-common.h (objc_common_type): New prototype. | |
1346 | * stub-objc.c (objc_common_type): New stub. | |
1347 | ||
7bd95dfd | 1348 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
1349 | ||
1350 | * c-common.c (handle_leaf_attribute): New function. | |
1351 | (struct attribute_spec c_common_att): Add leaf. | |
1352 | ||
5789e05b | 1353 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
1354 | ||
1355 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
1356 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
1357 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
1358 | -include-barrier, -include-directory, -include-directory=, | |
1359 | -include-directory-after, -include-directory-after=, | |
1360 | -include-prefix, -include-prefix=, -include-with-prefix, | |
1361 | -include-with-prefix=, -include-with-prefix-after, | |
1362 | -include-with-prefix-after=, -include-with-prefix-before, | |
1363 | -include-with-prefix-before=, -no-integrated-cpp, | |
1364 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
1365 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
1366 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
1367 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
1368 | -user-dependencies, -verbose, -write-dependencies, | |
1369 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
1370 | ||
e6fb54ba | 1371 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
1372 | ||
1373 | PR objc/23710 | |
9b60f3b0 | 1374 | * c-common.h (objc_start_method_definition): Return bool instead |
1375 | of void. | |
1376 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
1377 | of void. | |
1378 | ||
1379 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
1380 | ||
1381 | PR objc/25965 | |
1382 | * c-common.h (objc_get_interface_ivars): New declaration. | |
1383 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
e6fb54ba | 1384 | |
e44b0a1f | 1385 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
1386 | ||
1387 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
ebd7c4c1 | 1388 | messages. Remove period at end of warning message. |
e44b0a1f | 1389 | |
85c0a25c | 1390 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
1391 | ||
1392 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
1393 | (handle_alias_attribute): ... here. | |
1394 | (handle_ifunc_attribute): New. | |
1395 | ||
5ba33bf4 | 1396 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
1397 | ||
1398 | * c-common.h (do_warn_double_promotion): Declare. | |
1399 | * c-common.c (do_warn_double_promotion): Define. | |
1400 | ||
c920faa3 | 1401 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
1402 | ||
1403 | * c.opt (Wdouble-promotion): New. | |
1404 | ||
9604e070 | 1405 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
1406 | ||
1407 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
1408 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
1409 | ||
3b0273a1 | 1410 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
1411 | ||
1412 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
1413 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
1414 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
1415 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
1416 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
1417 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
1418 | applicable. | |
1419 | (fhandle-exceptions): Mark with Alias and Warn. | |
1420 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
1421 | as ignored. | |
1422 | ||
67089c6b | 1423 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
1424 | ||
1425 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
1426 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
1427 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
1428 | aliases. | |
1429 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
1430 | OPT_Wcomments. | |
1431 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
1432 | Don't handle options marked as aliases. | |
1433 | ||
2af087f2 | 1434 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
1435 | ||
1436 | * c-common.c (c_common_get_alias_set): Remove special | |
1437 | handling for pointers. | |
1438 | ||
48148244 | 1439 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
1440 | ||
1441 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
1442 | * c-gimplify.c: Likewise. | |
1443 | * c-pragma.c: Likewise. | |
1444 | ||
89c69892 | 1445 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
1446 | ||
1447 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
1448 | RejectDriver. | |
1449 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
1450 | RejectDriver. | |
1451 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
1452 | instead of OPT_MDX and OPT_MMDX. | |
1453 | ||
e28aa114 | 1454 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
1455 | ||
1456 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
1457 | ||
99b66d21 | 1458 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
1459 | ||
1460 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
1461 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
1462 | ||
666f4bf0 | 1463 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
1464 | ||
1465 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
1466 | instead of handle_option. | |
1467 | ||
5ec815f6 | 1468 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
1469 | ||
1470 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
1471 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
1472 | ||
d13143cf | 1473 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
1474 | ||
1475 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
1476 | (pending_redefine_extname): Change type to a VEC. | |
1477 | (add_to_renaming_pragma_list): Update for new type of | |
1478 | pending_redefine_extname. | |
5ec815f6 | 1479 | (maybe_apply_renaming_pragma): Likewise. |
d13143cf | 1480 | |
2008c983 | 1481 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
1482 | ||
1483 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
1484 | visited. | |
1485 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
1486 | decide whether a type has already been declared/seen. | |
1487 | Do not go to the original type. | |
1488 | (dump_nested_types): New parameter forward. | |
1489 | Generate forward declaration if needed and mark type as visited. | |
1490 | (print_ada_declaration): Call dump_nested_types if not already done. | |
1491 | Mark types as visited. | |
1492 | ||
9b091a73 | 1493 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
1494 | ||
1495 | * c.opt (-print-pch-checksum): Remove option. | |
1496 | * c-opts.c (c_common_handle_option): Don't handle | |
1497 | OPT_print_pch_checksum. | |
1498 | ||
b78351e5 | 1499 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
1500 | ||
1501 | * c-common.h (c_common_handle_option): Update prototype and return | |
1502 | value type. | |
1503 | * c-opts.c (c_common_handle_option): Update prototype and return | |
1504 | value type. Update calls to handle_option and | |
1505 | enable_warning_as_error. | |
1506 | ||
34416a90 | 1507 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
1508 | ||
1509 | PR c/45079 | |
1510 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
1511 | ||
fecf9011 | 1512 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
1513 | ||
1514 | * c-common.h (c_common_missing_argument): Remove. | |
1515 | * c-opts.c (c_common_missing_argument): Remove. | |
1516 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
1517 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
1518 | MissingArgError. | |
1519 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
1520 | ||
e88d34f6 | 1521 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
1522 | ||
1523 | * c-common.h (c_common_option_lang_mask, | |
1524 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
1525 | New. | |
1526 | (c_common_init_options): Update prototype. | |
1527 | * c-opts.c (c_common_option_lang_mask): New. | |
1528 | (c_common_initialize_diagnostics): Split out of | |
1529 | c_common_init_options. | |
1530 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
1531 | New. | |
1532 | (c_common_init_options): Update prototype. Use decoded options in | |
1533 | search for -lang-asm. | |
1534 | ||
1767a056 | 1535 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
1536 | ||
1537 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
1538 | * c-format.c: Likewise. | |
1539 | ||
0b205f4c | 1540 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1541 | ||
1542 | * c-common.h: Include diagnostic-core.h. Error if already | |
1543 | included. | |
1544 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
1545 | ||
1c58e3f1 | 1546 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1547 | ||
1548 | * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. | |
1549 | Do not include expr.h | |
1550 | (vector_mode_valid_p): Move here. | |
1551 | ||
33cc157c | 1552 | 2010-06-21 DJ Delorie <dj@redhat.com> |
1553 | ||
1554 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
1555 | allow these pragmas anywhere. | |
1556 | ||
1557 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
1558 | ||
1559 | PR bootstrap/44509 | |
1560 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
1561 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
1562 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
1563 | ggc_strdup instead of xstrdup. | |
1564 | ||
1565 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
1566 | ||
1567 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
1568 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
1569 | (lazy_hex_fp_value): New function. | |
1570 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
1571 | ||
9b40bfbf | 1572 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1573 | ||
1574 | * c-gimplify.c: Do not include tree-flow.h | |
1575 | ||
202d6e5f | 1576 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
1577 | ||
1578 | PR other/44034 | |
1579 | * c-common.c: Rename targetm member: | |
1580 | targetm.enum_va_list -> targetm.enum_va_list_p | |
1581 | ||
d3237426 | 1582 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
1583 | ||
1584 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
1585 | ||
596981c8 | 1586 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
1587 | ||
1588 | * c-cppbuiltin.c: Do not include except.h. | |
1589 | ||
b9bdfa0b | 1590 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
1591 | ||
1592 | * c-common.c (warn_for_omitted_condop): New. | |
1593 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
1594 | ||
55ad092d | 1595 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
1596 | ||
1597 | * c.opt (lang-objc): Remove. | |
1598 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
1599 | ||
9e7c2572 | 1600 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
1601 | ||
1602 | * c-opts.c: Include "tm_p.h". | |
1603 | ||
615ef0bb | 1604 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
1605 | ||
1606 | * c-common.c (parse_optimize_options): Update call to | |
1607 | decode_options. | |
1608 | ||
aef48c9a | 1609 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
1610 | ||
1611 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
1612 | new type of types_used_by_cur_var_decl. | |
1613 | ||
d74003b4 | 1614 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
1615 | ||
1616 | PR bootstrap/44512 | |
1617 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
1618 | for C++ standard compliance. | |
1619 | ||
1194d077 | 1620 | 2010-06-16 Jason Merrill <jason@redhat.com> |
1621 | ||
1622 | * c.opt: Add -Wnoexcept. | |
1623 | ||
d473d901 | 1624 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
1625 | ||
1626 | PR c/44555 | |
1627 | * c-common.c (c_common_truthvalue_conversion): Remove | |
1628 | premature and wrong optimization concering ADDR_EXPRs. | |
1629 | ||
b62dbfd3 | 1630 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
1631 | ||
1632 | * c-ada-spec.c (dump_sloc): Remove column info. | |
1633 | (is_simple_enum): New function. | |
1634 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
1635 | enum types when relevant. | |
1636 | ||
200dd99c | 1637 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1638 | ||
1639 | * c-common.c (conversion_warning): Warn at expression | |
1640 | location. | |
1641 | ||
abf6a617 | 1642 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
1643 | ||
1644 | * c-opts.c (c_common_handle_option): Don't handle | |
1645 | OPT_fshow_column. | |
1646 | ||
ba72912a | 1647 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
1648 | ||
1649 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
1650 | (handle_pragma_push_options): Likewise. | |
1651 | ||
1652 | * c-common.c (parse_optimize_options): Likewise. | |
1653 | ||
1654 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
1655 | option. | |
1656 | ||
4aafe913 | 1657 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
1658 | ||
1659 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
1660 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
1661 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
1662 | flag_signed_bitfields, warn_strict_null_sentinel, | |
1663 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
1664 | flag_gen_declaration, flag_no_gnu_keywords, | |
1665 | flag_implement_inlines, flag_implicit_templates, | |
1666 | flag_implicit_inline_templates, flag_optional_diags, | |
1667 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
1668 | flag_conserve_space, flag_access_control, flag_check_new, | |
1669 | flag_new_for_scope, flag_weak, flag_working_directory, | |
1670 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
1671 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
1672 | flag_pretty_templates): Remove. | |
1673 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
1674 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
1675 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
1676 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
1677 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
1678 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
1679 | flag_no_gnu_keywords, flag_implement_inlines, | |
1680 | flag_implicit_templates, flag_implicit_inline_templates, | |
1681 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
1682 | flag_rtti, flag_conserve_space, flag_access_control, | |
1683 | flag_check_new, flag_new_for_scope, flag_weak, | |
1684 | flag_working_directory, flag_use_cxa_atexit, | |
1685 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
1686 | flag_threadsafe_statics, flag_pretty_templates, | |
1687 | warn_strict_null_sentinel): Remove. | |
1688 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
1689 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
1690 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
1691 | fimplicit-inline-templates, fimplicit-templates, | |
1692 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
1693 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
1694 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
1695 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
1696 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
1697 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
1698 | gen-decls, undef): Use Var. | |
1699 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
1700 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
1701 | using Var. Mark ignored options as such. | |
1702 | ||
7bedc3a0 | 1703 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
1704 | ||
1705 | * c-common.c: Moved to here from parent directory. | |
1706 | * c-common.def: Likewise. | |
1707 | * c-common.h: Likewise. | |
1708 | * c-cppbuiltin.c: Likewise. | |
1709 | * c-dump.c: Likewise. | |
1710 | * c-format.c: Likewise. | |
1711 | * c-format.h : Likewise. | |
1712 | * c-gimplify.c: Likewise. | |
1713 | * c-lex.c: Likewise. | |
1714 | * c-omp.c: Likewise. | |
1715 | * c.opt: Likewise. | |
1716 | * c-opts.c: Likewise. | |
1717 | * c-pch.c: Likewise. | |
1718 | * c-ppoutput.c: Likewise. | |
1719 | * c-pragma.c: Likewise. | |
1720 | * c-pragma.h: Likewise. | |
1721 | * c-pretty-print.c: Likewise. | |
1722 | * c-pretty-print.h: Likewise. | |
1723 | * c-semantics.c: Likewise. | |
1724 | * stub-objc.c: Likewise. | |
1725 | ||
1726 | * c-common.c: Include gt-c-family-c-common.h. | |
1727 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
1728 | \f | |
dd045aee | 1729 | Copyright (C) 2010, 2011 Free Software Foundation, Inc. |
7bedc3a0 | 1730 | |
1731 | Copying and distribution of this file, with or without modification, | |
1732 | are permitted in any medium without royalty provided the copyright | |
1733 | notice and this notice are preserved. |