]>
Commit | Line | Data |
---|---|---|
d1ede5f4 BS |
1 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
2 | ||
3 | * c-family/c-common.c (DEF_ATTR_STRING): Define and undefine as | |
4 | necessary. | |
5 | ||
f2bc201f MLI |
6 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7 | ||
8 | PR 53063 | |
9 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
10 | Wreorder): Use LangEnabledBy. | |
11 | * c-opts.c (c_common_handle_option): Do not enable them | |
12 | explicitly. Call lang-specific generated functions. | |
13 | (c_common_post_options): Do not set them here. | |
14 | ||
95744782 MLI |
15 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
16 | ||
17 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
18 | Wmissing-field-initializers,Wmissing-parameter-type, | |
19 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
20 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
21 | ||
7d5a5747 MLI |
22 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
23 | ||
24 | PR 53063 | |
25 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
26 | to enable sub-options. | |
27 | ||
5a3c9cf2 PC |
28 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
29 | ||
30 | PR c++/53158 | |
31 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
32 | ||
3ac8781c RG |
33 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
34 | ||
35 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
36 | adjust commentary about TYPE_IS_SIZETYPE types. | |
37 | ||
1e537948 MLI |
38 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
39 | ||
40 | PR c++/53261 | |
41 | * c-common.c (warn_logical_operator): Check that argument of | |
42 | integer_zerop is not NULL. | |
43 | ||
f2c4a785 MLI |
44 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
45 | ||
46 | PR c/43772 | |
47 | * c-common.c (warn_logical_operator): Do not warn if either side | |
48 | is already true or false. | |
49 | ||
50f305ca MLI |
50 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
51 | ||
52 | PR c/51712 | |
53 | * c-common.c (expr_original_type): New. | |
54 | (shorten_compare): Do not warn for enumeration types. | |
55 | ||
0c3641b0 MLI |
56 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
57 | ||
58 | * c.opt (fpermissive): Add Var(flag_permissive). | |
59 | ||
7edaa4d2 MG |
60 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
61 | ||
62 | PR c++/51033 | |
63 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
64 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
65 | ||
b9c8da34 DS |
66 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
67 | ||
68 | Add -Wvarargs option | |
69 | * c.opt (Wvarargs): Define new option. | |
70 | ||
e6c69da0 MLI |
71 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
72 | ||
73 | * c-common.c (check_function_arguments): Replace | |
74 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
75 | ||
90137d8f MLI |
76 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
77 | ||
78 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
79 | Wmissing-format-attribute. | |
80 | * c-format.c (decode_format_type): Replace | |
81 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
82 | (check_function_format): Likewise. | |
83 | ||
7f5f5f98 OW |
84 | 2012-04-27 Ollie Wild <aaw@google.com> |
85 | ||
86 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
87 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
88 | * c.opt: Add Wliteral-suffix. | |
89 | ||
c1771a20 MLI |
90 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
91 | ||
92 | PR c/44774 | |
93 | * c.opt (Wpedantic): New. | |
94 | (pedantic): Alias Wpedantic. | |
95 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
96 | (c_common_post_options): Likewise. | |
97 | (sanitize_cpp_opts): Likewise. | |
98 | * c-lex.c (interpret_float): Likewise. | |
99 | * c-format.c (check_format_types): Likewise. | |
100 | * c-common.c (pointer_int_sum): Likewise. | |
101 | (c_sizeof_or_alignof_type): Likewise. | |
102 | (c_add_case_label): Likewise. | |
103 | (c_do_switch_warnings): Likewise. | |
104 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
105 | ||
04b391c1 JM |
106 | 2012-04-15 Jason Merrill <jason@redhat.com> |
107 | ||
108 | PR c++/52818 | |
109 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
110 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
111 | ||
ac868f29 EB |
112 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
113 | ||
114 | PR target/52624 | |
115 | * c-common.h (uint16_type_node): Rename into... | |
116 | (c_uint16_type_node): ...this. | |
117 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
118 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
119 | ||
fd4116f4 MLI |
120 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
121 | ||
122 | * c-common.c (warn_if_unused_value): Move definition to here. | |
123 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
124 | ||
573ac65e WB |
125 | 2012-03-23 William Bader <williambader@hotmail.com> |
126 | ||
127 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
128 | ||
552b8185 JM |
129 | 2012-03-20 Jason Merrill <jason@redhat.com> |
130 | ||
131 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
132 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
133 | test. | |
134 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
135 | * c-opts.c (c_common_post_options): Likewise. | |
136 | (set_std_cxx1y): New. | |
137 | (c_common_handle_option): Call it. | |
138 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
139 | ||
04398fa8 PC |
140 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
141 | ||
142 | PR c++/14710 | |
143 | * c.opt ([Wuseless-cast]): Add. | |
144 | ||
d2a12ae7 RG |
145 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
146 | ||
147 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
148 | ||
a12bf402 MLI |
149 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
150 | ||
151 | PR c++/44783 | |
152 | * c.opt (ftemplate-backtrace-limit) Add. | |
153 | ||
5c30094f RO |
154 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
155 | ||
156 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
157 | handling. | |
158 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
159 | (init_pragma): Don't register extern_prefix. | |
160 | ||
21fa2faf RG |
161 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
162 | ||
163 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
164 | (builtin_type_for_size): Likewise. | |
165 | ||
e3793c6f JJ |
166 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
167 | ||
168 | PR c++/52215 | |
169 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
170 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
171 | is unsigned INTEGER_TYPE. | |
172 | ||
93286335 PC |
173 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
174 | ||
175 | PR c/52118 | |
176 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
177 | ||
7a421706 MS |
178 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
179 | ||
180 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
181 | exactly. | |
182 | ||
ba9b1f11 RG |
183 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
184 | ||
185 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
186 | we are about to generate a PCH. | |
187 | ||
465406be PC |
188 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
189 | ||
190 | PR c++/51777 | |
191 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
192 | use pp_unsigned_wide_integer. | |
193 | ||
aee15221 RG |
194 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
195 | ||
196 | PR middle-end/51806 | |
197 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
198 | to language independent code. | |
199 | ||
5720c0dc RG |
200 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
201 | ||
202 | PR middle-end/51764 | |
203 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
204 | from common.opt. | |
205 | ||
73ac190a PC |
206 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
207 | ||
208 | PR c++/51316 | |
209 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
210 | of array types with an unknown bound. | |
211 | ||
48b0b196 JM |
212 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
213 | ||
214 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
215 | (flag_isoc1x): Change to flag_isoc11. | |
216 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
217 | (flag_isoc1x): Change to flag_isoc11. | |
218 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
219 | C11. | |
220 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
221 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
222 | Call set_std_c11. | |
223 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
224 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
225 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
226 | standard. | |
227 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
228 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
229 | (std=gnu1x): Make alias of std=gnu11. | |
230 | ||
d58d6eb5 JM |
231 | 2011-12-19 Jason Merrill <jason@redhat.com> |
232 | ||
233 | PR c++/51228 | |
234 | * c-common.c (handle_transparent_union_attribute): Check the first | |
235 | field if the type is complete. | |
236 | ||
b3908fcc JW |
237 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
238 | ||
239 | PR libstdc++/51365 | |
240 | * c-common.c (RID_IS_FINAL): Add. | |
241 | * c-common.h (RID_IS_FINAL): Add. | |
242 | ||
fea3ca91 IS |
243 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
244 | ||
245 | * c.opt (fgnu-runtime): Provide full description. | |
246 | (fnext-runtime): Likewise. | |
247 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
248 | ||
62bad7cd AM |
249 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
250 | ||
251 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
252 | predefines in one place. Add LOCK_FREE predefines. | |
253 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
254 | new func. | |
255 | ||
c466c4ff AM |
256 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
257 | ||
258 | PR c/51256 | |
259 | * c-common.c (get_atomic_generic_size): Check for various error | |
260 | conditions | |
261 | (resolve_overloaded_atomic_exchange, | |
262 | resolve_overloaded_atomic_compare_exchange, | |
263 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return | |
264 | error_mark_node for error conditions. | |
265 | ||
a5952633 RG |
266 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
267 | ||
268 | PR middle-end/51010 | |
269 | c-family/ | |
270 | ||
0a35513e AH |
271 | 2011-11-07 Richard Henderson <rth@redhat.com> |
272 | Aldy Hernandez <aldyh@redhat.com> | |
273 | Torvald Riegel <triegel@redhat.com> | |
274 | ||
275 | Merged from transactional-memory. | |
276 | ||
277 | * c-common.c (handle_tm_wrap_attribute, | |
278 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
279 | (struct c_common_reswords): Added __transaction* keywords. | |
280 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
281 | attributes. | |
282 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
283 | masks. | |
284 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
285 | find_tm_attribute): Declare. | |
286 | ||
6d87092d JM |
287 | 2011-11-07 Jason Merrill <jason@redhat.com> |
288 | ||
289 | PR c++/35688 | |
290 | * c-common.c, c-common.h: Revert yesterday's changes. | |
291 | ||
8e7860a1 JM |
292 | 2011-11-06 Jason Merrill <jason@redhat.com> |
293 | ||
294 | PR c++/35688 | |
295 | * c-common.c (decl_has_visibility_attr): Split out from... | |
296 | (c_determine_visibility): ...here. | |
297 | * c-common.h: Declare it. | |
298 | ||
d19fa6b5 JM |
299 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
300 | ||
301 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
302 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
303 | type. | |
304 | (check_user_alignment): New. Split out of | |
305 | handle_aligned_attribute. Disallow integer constants with | |
306 | noninteger types. Conditionally allow zero. | |
307 | (handle_aligned_attribute): Use check_user_alignment. | |
308 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
309 | ||
86951993 AM |
310 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
311 | Richard Henderson <rth@redhat.com> | |
312 | ||
313 | Merged from cxx-mem-model. | |
314 | ||
315 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
316 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak | |
317 | parameters that are the same type size. | |
318 | (get_atomic_generic_size): New. Find size of generic | |
319 | atomic function parameters and do typechecking. | |
320 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
321 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
322 | either __atomic_exchange_n or external library call. | |
323 | (resolve_overloaded_atomic_compare_exchange): Restructure | |
324 | __atomic_compare_exchange to either _n variant or external library call. | |
325 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either | |
326 | __atomic_load_n or an external library call. | |
327 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
328 | __atomic_store_n or an external library call. | |
329 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
330 | ||
cf9e9959 EB |
331 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
332 | ||
333 | PR c++/50608 | |
334 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
335 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
336 | <INDIRECT_REF>: Return the argument. | |
337 | <ARRAY_REF>: Remove special code for negative offset. | |
338 | Call fold_build_pointer_plus instead of size_binop. | |
339 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
340 | * c-common.h (fold_offsetof_1): Declare. | |
341 | (fold_offsetof): Remove STOP_REF argument. | |
342 | ||
25339f10 JM |
343 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
344 | ||
345 | PR c++/50810 | |
346 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
347 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
348 | Wnarrowing for C++0x and C++98. | |
349 | * c.opt ([Wnarrowing]): Update. | |
350 | ||
89401152 PC |
351 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
352 | ||
353 | PR c++/44277 | |
354 | * c.opt: Add Wzero-as-null-pointer-constant. | |
355 | ||
97e3ad20 JM |
356 | 2011-10-31 Jason Merrill <jason@redhat.com> |
357 | ||
15694fdd JM |
358 | * c.opt (-fdeduce-init-list): Off by default. |
359 | ||
97e3ad20 JM |
360 | PR c++/50920 |
361 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
362 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
363 | and -Wc++11-compat. | |
364 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
365 | ||
fb9120e3 RAV |
366 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
367 | ||
368 | PR c++/30066 | |
369 | * c.opt (fvisibility-inlines-hidden): Description change. | |
370 | ||
3ce4f9e4 ESR |
371 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
372 | ||
373 | Implement C++11 user-defined literals. | |
374 | * c-common.c (build_userdef_literal): New. | |
375 | * c-common.def: New tree code. | |
376 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
377 | * c-lex.c (interpret_float): Add suffix parm. | |
378 | (c_lex_with_flags): Build literal tokens. | |
379 | ||
5f53c243 PC |
380 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
381 | ||
382 | PR c++/50841 | |
383 | Revert: | |
384 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
385 | ||
386 | PR c++/50810 | |
387 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
388 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
389 | Wnarrowing for C++0x and C++98. | |
390 | * c.opt ([Wnarrowing]): Update. | |
391 | ||
263734e1 PC |
392 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
393 | ||
394 | PR c++/50810 | |
395 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
396 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
397 | Wnarrowing for C++0x and C++98. | |
398 | * c.opt ([Wnarrowing]): Update. | |
399 | ||
d2e312d7 PC |
400 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
401 | ||
402 | PR c++/45385 | |
403 | * c-common.c (conversion_warning): Remove code looking for | |
404 | artificial operands. | |
405 | ||
d17687f6 DS |
406 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
407 | ||
408 | PR bootstrap/50760 | |
409 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
410 | !NO_IMPLICIT_EXTERN_C. | |
411 | ||
fc8396e9 PC |
412 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
413 | ||
414 | * c-common.c (c_common_reswords): Add __bases, | |
415 | __direct_bases. | |
416 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
417 | ||
418 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
419 | ||
420 | PR c++/50757 | |
421 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
422 | ||
847e697a TT |
423 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
424 | Dodji Seketeli <dodji@redhat.com> | |
425 | ||
426 | * c.opt (fdebug-cpp): New option. | |
427 | * c-opts.c (c_common_handle_option): Handle the option. | |
428 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
429 | output stream in parameter. Factorized from ... | |
430 | (maybe_print_line): ... this. Dump location debug information when | |
431 | -fdebug-cpp is in effect. | |
432 | (print_line_1): New static function. Takes an output stream in | |
433 | parameter. Factorized from ... | |
434 | (print_line): ... here. Dump location information when -fdebug-cpp | |
435 | is in effect. | |
436 | (scan_translation_unit): Dump location information when | |
437 | -fdebug-cpp is in effect. | |
438 | ||
92582b75 TT |
439 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
440 | Dodji Seketeli <dodji@redhat.com> | |
441 | ||
442 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
443 | without argument. | |
444 | * c-opts.c (c_common_handle_option)<case | |
445 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
446 | cases. Handle -ftrack-macro-expansion with and without argument. | |
447 | ||
46427374 TT |
448 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
449 | Dodji Seketeli <dodji@redhat.com> | |
450 | ||
451 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
452 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
453 | the internals of struct line_map. Use the public API instead. | |
454 | * c-pch.c (c_common_read_pch): Likewise. | |
455 | * c-lex.c (fe_file_change): Likewise. | |
456 | ||
fc8396e9 PC |
457 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
458 | ||
459 | PR c++/17212 | |
460 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
461 | ||
462 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
463 | ||
464 | PR c++/33067 | |
465 | * c-pretty-print.c (pp_c_floating_constant): Output | |
466 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
467 | ||
e79983f4 MM |
468 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
469 | ||
470 | * c-common.c (def_builtin_1): Delete old interface with two | |
471 | parallel arrays to hold standard builtin declarations, and replace | |
472 | it with a function based interface that can support creating | |
473 | builtins on the fly in the future. Change all uses, and poison | |
474 | the old names. Make sure 0 is not a legitimate builtin index. | |
475 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
476 | (c_finish_omp_taskwait): Ditto. | |
477 | (c_finish_omp_flush): Ditto. | |
478 | ||
6637388f TG |
479 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
480 | ||
481 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
482 | ||
3797cb21 DS |
483 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
484 | ||
485 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
486 | * c-common.h (struct c_language_function::local_typedefs): New | |
487 | field. | |
488 | (record_locally_defined_typedef, maybe_record_typedef_use) | |
489 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
490 | * c-common.c (record_locally_defined_typedef) | |
491 | (maybe_record_typedef_use) | |
492 | (maybe_warn_unused_local_typedefs): Define new functions. | |
493 | * c.opt: Declare new -Wunused-local-typedefs flag. | |
494 | ||
693ddb1b EB |
495 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
496 | ||
497 | PR middle-end/50266 | |
498 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
499 | computations. | |
500 | ||
830c740f RG |
501 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
502 | ||
503 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
504 | of integer_minus_one_node for empty array upper bounds. | |
505 | ||
892a371f DS |
506 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
507 | ||
508 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
509 | it's the first time it's being called on this main TU. | |
510 | ||
0e3fdb48 RB |
511 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
512 | ||
513 | PR c/49396 | |
514 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
515 | ||
516 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
e3dfef44 GC |
517 | |
518 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
519 | defined in cpp_init_builtins and c_cpp_builtins. | |
520 | ||
d4a83c10 JM |
521 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
522 | ||
523 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
524 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
525 | ||
bbceee64 JM |
526 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
527 | ||
528 | * c-common.c (c_common_reswords): Add _Noreturn. | |
529 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
530 | * c-common.h (RID_NORETURN): New. | |
531 | ||
0e3a99ae AS |
532 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
533 | ||
534 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
535 | unsafe to convert an expression to the type. | |
536 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
537 | * c-common.h (unsafe_conversion_p): New function declaration. | |
538 | ||
20906c66 JJ |
539 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
540 | ||
541 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
542 | (c_finish_omp_taskyield): New prototype. | |
543 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
544 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
545 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
546 | or RHS1 have side-effects, evaluate those too in the right spot, | |
547 | if it is a decl and LHS is also a decl, error out if they | |
548 | aren't the same. | |
549 | (c_finish_omp_taskyield): New function. | |
550 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
551 | * c-pragma.c (omp_pragmas): Add taskyield. | |
552 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
553 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
554 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
555 | ||
770e5a2e DS |
556 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
557 | ||
558 | * c-common.h (set_underlying_type): Remove parm name from | |
559 | declaration. | |
560 | ||
1baae426 RG |
561 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
562 | ||
563 | * c-pretty-print.h: Search c-common.h in c-family. | |
564 | ||
fcb21722 JM |
565 | 2011-07-22 Jason Merrill <jason@redhat.com> |
566 | ||
76f86d00 JM |
567 | PR c++/49793 |
568 | * c.opt (Wnarrowing): New. | |
569 | ||
3a636414 JM |
570 | PR c++/30112 |
571 | * c-common.h: Declare c_linkage_bindings. | |
572 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
573 | ||
fcb21722 JM |
574 | PR c++/49813 |
575 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
576 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
577 | as flag_isoc99 for 'restrict'. | |
578 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
579 | ||
02614448 ILT |
580 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
581 | ||
582 | PR middle-end/49705 | |
583 | * c-common.c (c_disable_warnings): New static function. | |
584 | (c_enable_warnings): New static function. | |
585 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
586 | c_disable_warnings and c_enable_warnings rather than change | |
587 | c_inhibit_evaluation_warnings. | |
588 | ||
34429675 JM |
589 | 2011-07-20 Jason Merrill <jason@redhat.com> |
590 | ||
591 | PR c++/6709 (DR 743) | |
592 | PR c++/42603 (DR 950) | |
593 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
594 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
595 | (CPP_DECLTYPE): New. | |
596 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
597 | ||
5d49b6a7 RG |
598 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
599 | ||
600 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
601 | * c-omp.c (c_finish_omp_for): Likewise. | |
602 | ||
e84a58ff EB |
603 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
604 | ||
605 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
606 | body on the next line. | |
607 | ||
329af3c7 JM |
608 | 2011-07-08 Jason Merrill <jason@redhat.com> |
609 | ||
4063e61b JM |
610 | PR c++/45437 |
611 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
612 | ||
329af3c7 JM |
613 | PR c++/49673 |
614 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
615 | TYPE_NEEDS_CONSTRUCTING. | |
616 | ||
1a072294 RG |
617 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
618 | ||
619 | * c-common.c (c_common_nodes_and_builtins): | |
620 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
621 | ||
fce5dddd RG |
622 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
623 | ||
624 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
625 | tree nodes first. | |
626 | ||
45d439ac JJ |
627 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
628 | ||
56300785 JJ |
629 | * c-common.h (c_tree_chain_next): New static inline function. |
630 | ||
45d439ac JJ |
631 | * c-common.c (check_builtin_function_arguments): Handle |
632 | BUILT_IN_ASSUME_ALIGNED. | |
633 | ||
e0a8ecf2 AM |
634 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
635 | ||
636 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
637 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
dfb43cd5 PV |
638 | |
639 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
640 | ||
641 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
642 | handler. | |
643 | (gen_pragma_handler): New union. | |
644 | (internal_pragma_handler): New type. | |
645 | (c_register_pragma_with_data) | |
646 | (c_register_pragma_with_expansion_and_data): New functions. | |
647 | ||
648 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
649 | (c_register_pragma, c_register_pragma_with_expansion) | |
650 | (c_invoke_pragma_handler): Changed to work with | |
651 | internal_pragma_handler. | |
652 | (c_register_pragma_with_data) | |
653 | (c_register_pragma_with_expansion_and_data): New functions. | |
654 | ||
677f3fa8 JM |
655 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
656 | ||
657 | * c-common.c: Include common/common-target.h. | |
658 | (handle_section_attribute): Use | |
659 | targetm_common.have_named_sections. | |
660 | * c-cppbuiltin.c: Include common/common-target.h. | |
661 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
662 | ||
d7fc8c14 RG |
663 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
664 | ||
665 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
666 | to print a IDENTIFIER_NODE. | |
667 | ||
10e48e39 RO |
668 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
669 | Joseph Myers <joseph@codesourcery.com> | |
670 | ||
671 | * c.opt (fbuilding-libgcc): New option. | |
672 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
673 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
674 | ||
6976ae51 JM |
675 | 2011-06-07 Jason Merrill <jason@redhat.com> |
676 | ||
3ff60975 JM |
677 | * c-common.c (max_tinst_depth): Lower default to 900. |
678 | ||
6976ae51 JM |
679 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
680 | ||
009db074 RG |
681 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
682 | ||
683 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
684 | size_type_node or call set_sizetype. | |
685 | ||
b4592b92 DS |
686 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
687 | ||
688 | PR debug/49130 | |
689 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
690 | type when using pointer comparison to compare types. | |
691 | ||
014ab419 JW |
692 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
693 | ||
694 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
695 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
696 | ||
4f60111f NF |
697 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
698 | ||
699 | PR bootstrap/49190 | |
700 | ||
701 | Revert: | |
702 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
703 | ||
704 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
705 | not tree_common. | |
706 | ||
4cc4f2f4 JJ |
707 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
708 | ||
709 | PR c++/49165 | |
710 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
711 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
712 | ||
38e01f9e NF |
713 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
714 | ||
715 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
716 | (stmt_list_stack): Define. | |
717 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
718 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
719 | ||
92e948a8 NF |
720 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
721 | ||
722 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
723 | ||
a2fc3e63 NF |
724 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
725 | ||
726 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
727 | not tree_common. | |
728 | ||
0957c029 JJ |
729 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
730 | ||
731 | * c-common.c (def_fn_type): Remove extra va_end. | |
732 | ||
828fb3ba JM |
733 | 2011-05-23 Jason Merrill <jason@redhat.com> |
734 | ||
735 | PR c++/48106 | |
736 | * c-common.c (c_common_get_narrower): New. | |
737 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
738 | ||
dde05067 NF |
739 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
740 | ||
741 | * c-common.h (check_function_arguments): Tweak prototype of | |
742 | check_function_arguments. | |
743 | * c-common.c (check_function_arguments): Likewise. Adjust | |
744 | calls to check_function_nonnull, check_function_format, and | |
745 | check_function_sentinel. | |
746 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
747 | separate attributes and typelist arguments. Use | |
748 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
749 | ||
3c0d13bf PC |
750 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
751 | ||
752 | * c-common.c (c_common_reswords): Reorder. | |
753 | * c-common.h (rid): Likewise. | |
754 | ||
8242dd04 NF |
755 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
756 | ||
757 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
758 | build_function_type_array or build_varargs_function_type_array | |
759 | instead. | |
760 | (c_common_nodes_and_builtins): Likewise. | |
761 | ||
3d528853 NF |
762 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
763 | ||
764 | * c-common.c (c_add_case_label): Omit the loc argument to | |
765 | build_case_label. | |
766 | * c-common.h (build_case_label): Remove. | |
767 | * c-semantics.c (build_case_label): Remove. | |
768 | ||
a04a722b JM |
769 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
770 | ||
771 | * c-objc.h (objc_start_method_definition): Update prototype. | |
772 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
773 | ||
e19a18d4 NF |
774 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
775 | ||
776 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
777 | TYPE_ARG_TYPES directly. | |
778 | (handle_nonnull_attribute): Likewise. | |
779 | (sync_resolve_params): Likewise. | |
780 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
781 | to check_format_string. | |
782 | (handle_format_attribute): Likewise. | |
783 | (check_format_string): Take a function type to examine instead of | |
784 | a type list. Use a function_arg_iterator to step through argument | |
785 | types. | |
786 | ||
c62c040f RG |
787 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
788 | ||
789 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
790 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
791 | (c_init_attributes): Likewise. | |
792 | * c-lex.c (c_lex_with_flags): Likewise. | |
793 | ||
c12ff9d8 JM |
794 | 2011-04-27 Jason Merrill <jason@redhat.com> |
795 | ||
796 | * c-common.c (make_tree_vector_from_list): New. | |
797 | * c-common.h: Declare it. | |
798 | ||
304dfbe3 RG |
799 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
800 | ||
801 | PR preprocessor/48248 | |
802 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
803 | for output size with -P. | |
804 | ||
3c0d13bf PC |
805 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
806 | ||
807 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
808 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
809 | ||
04695783 JM |
810 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
811 | ||
812 | * c-format.c (init_dollar_format_checking): Remove useless | |
813 | if-before-free. | |
814 | ||
0dc33c3c NP |
815 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
816 | ||
817 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 818 | (objc_detect_field_duplicates): New. |
0dc33c3c | 819 | * stub-objc.c: Likewise. |
3c0d13bf | 820 | |
c59633d9 NP |
821 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
822 | ||
823 | * stub-objc.c (objc_declare_protocols): Renamed to | |
824 | objc_declare_protocol. | |
825 | * c-objc.h: Likewise. | |
3c0d13bf | 826 | |
32dabdaf NP |
827 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
828 | ||
829 | * stub-objc.c (objc_declare_class): Updated argument name. | |
830 | ||
81f653d6 NF |
831 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
832 | ||
833 | * c-common.h (c_common_init_ts): Declare. | |
834 | * c-common.c (c_common_init_ts): Define. | |
835 | ||
eb345401 NP |
836 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
837 | ||
838 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
839 | * stub-objc.c (objc_build_message_expr): Likewise. | |
840 | ||
a358e188 MJ |
841 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
842 | ||
843 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
844 | of cgraph_node. | |
845 | ||
e6313a78 RG |
846 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
847 | ||
848 | * c-common.c (complete_array_type): Build a range type of | |
849 | proper type. | |
850 | ||
dcf0c47e NF |
851 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
852 | ||
853 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
854 | (handle_type_generic_attribute): Likewise. | |
855 | ||
1ee44b26 JM |
856 | 2011-04-07 Jason Merrill <jason@redhat.com> |
857 | ||
858 | PR c++/48450 | |
859 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
860 | conversion from C++0x scoped enum. | |
861 | ||
acce4e77 JM |
862 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
863 | ||
864 | * c-target-def.h: New file. | |
865 | * c-target.def: New file. | |
866 | * c-target.h: New file. | |
867 | * c-common.c (targetcm): Don't define here. | |
868 | * c-common.h (default_handle_c_option): Declare. | |
869 | * c-format.c: Include c-target.h instead of target.h. | |
870 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
871 | include tm.h. | |
872 | (default_handle_c_option): Move from targhooks.c. | |
873 | ||
e2eefb55 JJ |
874 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
875 | ||
876 | PR preprocessor/48248 | |
877 | * c-ppoutput.c (print): Add src_file field. | |
878 | (init_pp_output): Initialize it. | |
879 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
880 | if map->to_file and print.src_file are different file. | |
881 | (print_line): Update print.src_file. | |
882 | ||
ba78087b KT |
883 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
884 | ||
885 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
886 | instead of strcmp for filename. | |
887 | ||
0edf1bb2 JL |
888 | 2011-03-25 Jeff Law <law@redhat.com> |
889 | ||
890 | * c-family/c-common.c (def_fn_type): Add missing va_end. | |
891 | ||
c7dc8804 JM |
892 | 2011-03-25 Jason Merrill <jason@redhat.com> |
893 | ||
894 | * c.opt: Add -std=c++03. | |
895 | ||
d1d879b1 EB |
896 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
897 | ||
898 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
899 | ||
62d784f7 KT |
900 | 2011-03-17 Kai Tietz |
901 | ||
902 | PR target/12171 | |
5050afdf KT |
903 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
904 | Display allowed attributes for function pointer types. | |
905 | (pp_c_attributes_display): New function to display | |
906 | attributes having affects_type_identity flag set to true. | |
907 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
908 | ||
62d784f7 KT |
909 | * c-common.c (c_common_attribute_table): |
910 | Add new element. | |
911 | (c_common_format_attribute_table): Likewise. | |
912 | ||
82d37118 JM |
913 | 2011-03-18 Jason Merrill <jason@redhat.com> |
914 | ||
49a000c3 JM |
915 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
916 | * c-common.h: Don't declare it here. | |
917 | * c-common.c: Or define it here. | |
918 | * c-opts.c (c_common_handle_option): Or set it here. | |
919 | ||
82d37118 JM |
920 | PR c++/35315 |
921 | * c-common.c (handle_transparent_union_attribute): Don't | |
922 | make a duplicate type in C++. | |
923 | ||
17bc631c JM |
924 | 2011-03-15 Jason Merrill <jason@redhat.com> |
925 | ||
926 | * c-common.c (max_constexpr_depth): New. | |
927 | * c-common.h: Declare it. | |
928 | * c-opts.c (c_common_handle_option): Set it. | |
929 | * c.opt (fconstexpr-depth): New option. | |
930 | ||
1b9b91a6 JM |
931 | 2011-03-11 Jason Merrill <jason@redhat.com> |
932 | ||
f231b5ff JM |
933 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
934 | ||
1b9b91a6 JM |
935 | PR c++/46803 |
936 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
937 | unknown attribute takes an identifier. | |
938 | ||
a19e4d44 NF |
939 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
940 | ||
941 | PR c/47786 | |
942 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
943 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
944 | ||
982d62f6 JJ |
945 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
946 | ||
947 | PR c/47809 | |
948 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
949 | ||
0a256240 NP |
950 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
951 | ||
952 | * c.opt (fobjc-abi-version=) New. | |
953 | (fobjc-nilcheck): New. | |
954 | ||
ba9e6dd5 NF |
955 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
956 | ||
957 | PR c++/46890 | |
958 | * c-common.h (keyword_is_decl_specifier): Declare. | |
959 | * c-common.c (keyword_is_decl_specifier): Define. | |
960 | (keyword_is_function_specifier): New function. | |
961 | ||
7273813a JJ |
962 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
963 | ||
964 | PR c/47473 | |
965 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
966 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
967 | REAL_TYPE. | |
968 | ||
908ef79b AC |
969 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
970 | ||
971 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
972 | ||
237e9384 JJ |
973 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
974 | ||
975 | PR pch/47430 | |
976 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
977 | after init_c_lex if pch_file is set. | |
978 | ||
47ea1edf DK |
979 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
980 | ||
d4dba752 | 981 | PR c++/43601 |
47ea1edf DK |
982 | * c.opt (-fkeep-inline-dllexport): New switch. |
983 | ||
2aa9c6ae RG |
984 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
985 | ||
986 | PR middle-end/32511 | |
987 | * c-common.c (handle_weak_attribute): Warn instead of error | |
988 | on declaring an inline function weak. | |
989 | ||
7bd11157 TT |
990 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
991 | ||
992 | * c-common.h (lvalue_error): Update. | |
993 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
994 | not error. | |
995 | ||
0e66e494 NP |
996 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
997 | ||
b4f588c4 NP |
998 | PR objc/47075 |
999 | * c-objc.h (objc_finish_message_expr): Added argument to | |
1000 | prototype. | |
1001 | ||
f4da8dce NF |
1002 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
1003 | ||
1004 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
1005 | Use prototype_p. | |
1006 | ||
46270f14 NP |
1007 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1008 | ||
1009 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
1010 | * stub-objc.c (objc_maybe_warn_exceptions): New. | |
1011 | ||
4816c593 NF |
1012 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
1013 | ||
1014 | * c-common.h (readonly_error): Declare. | |
1015 | * c-common.c (readonly_error): Define. | |
1016 | ||
7a6daeb0 NF |
1017 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
1018 | ||
1019 | * c-common.h (invalid_indirection_error): Declare. | |
1020 | * c-common.c (invalid_indirection_error): Define. | |
1021 | ||
892f6119 RG |
1022 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
1023 | ||
1024 | PR c/46745 | |
1025 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
1026 | (pp_c_unary_expression): Likewise. | |
1027 | (pp_c_expression): Likewise. | |
1028 | ||
6c39e757 NP |
1029 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1030 | ||
1031 | * c-common.h (objc_finish_function): New. | |
1032 | (objc_non_volatilized_type): Removed. | |
1033 | (objc_type_quals_match): Removed. | |
1034 | * stub-objc.c (objc_finish_function): New. | |
1035 | (objc_non_volatilized_type): Removed. | |
1036 | (objc_type_quals_match): Removed. | |
1037 | ||
7c475d11 JM |
1038 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
1039 | ||
1040 | * c-common.h (parse_optimize_options): Declare. | |
1041 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
1042 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
1043 | ||
71f3e391 JM |
1044 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
1045 | ||
1046 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
1047 | GET_ENVIRONMENT. | |
1048 | * c-pch.c (O_BINARY): Don't define here. | |
1049 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
1050 | ||
d5fabb58 JM |
1051 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
1052 | ||
1053 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
1054 | targetm.except_unwind_info. | |
1055 | ||
299404a1 JM |
1056 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
1057 | ||
1058 | * c-opts.c (c_common_handle_option): Pass location to | |
1059 | set_struct_debug_option. | |
1060 | ||
c98cd5bf JM |
1061 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
1062 | ||
1063 | * c-common.c (visibility_options): Move from ../opts.c. | |
1064 | * c-common.h (struct visibility_flags, visibility_options): | |
1065 | Declare here. | |
1066 | * c-opts.c (finish_options): Rename to c_finish_options. | |
1067 | (c_common_init): Update call to finish_options. | |
1068 | ||
a9546771 NP |
1069 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
1070 | ||
1071 | PR objc/34033 | |
1072 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
1073 | string concat sequence starts with either one or zero '@', and | |
1074 | that there are no spurious '@' signs at the end. | |
1075 | ||
24a57808 JM |
1076 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
1077 | ||
1078 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
1079 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
1080 | HANDLE_PRAGMA_VISIBILITY. | |
1081 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
1082 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
1083 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
1084 | ||
a9aa2c3a NF |
1085 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
1086 | ||
1087 | PR c++/16189 | |
1088 | PR c++/36888 | |
1089 | PR c++/45331 | |
1090 | * c-common.h (keyword_begins_type_specifier): Declare. | |
1091 | (keyword_is_storage_class_specifier): Declare. | |
1092 | (keyword_is_type_qualifier): Declare. | |
1093 | * c-common.c (keyword_begins_type_specifier): New function. | |
1094 | (keyword_is_storage_class_specifier): New function. | |
1095 | (keyword_is_type_qualifier): Declare. | |
1096 | ||
5386338c JM |
1097 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
1098 | ||
1099 | PR c/46547 | |
1100 | * c-common.c (in_late_binary_op): Define. | |
1101 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
1102 | calling c_save_expr. | |
1103 | * c-common.h (in_late_binary_op): Declare. | |
1104 | ||
69ccdddb JM |
1105 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
1106 | ||
1107 | * c-opts.c (c_common_handle_option): Update calls to | |
1108 | set_struct_debug_option. | |
1109 | ||
6b192a09 NP |
1110 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
1111 | ||
1112 | * c-common.h (objc_declare_protocols): Added additional argument. | |
1113 | * stub-objc.c (objc_declare_protocol): Same change. | |
1114 | ||
fb52b50a NF |
1115 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
1116 | ||
1117 | PR c/33193 | |
1118 | * c-common.h (build_real_imag_expr): Declare. | |
1119 | * c-semantics.c (build_real_imag_expr): Define. | |
1120 | ||
b37421c6 JM |
1121 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
1122 | ||
1123 | * c-opts.c (c_common_parse_file): Take no arguments. | |
1124 | * c-common.h (c_common_parse_file): Update prototype. | |
1125 | ||
07078664 JJ |
1126 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
1127 | ||
1128 | PR c++/46401 | |
1129 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
1130 | or STRING_CSTs. | |
1131 | ||
c6a13190 ILT |
1132 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
1133 | ||
1134 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
1135 | flag_dump_go_spec is set. | |
1136 | ||
925e8657 NP |
1137 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
1138 | ||
1139 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
1140 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
1141 | ||
bb0a9581 NF |
1142 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
1143 | ||
1144 | PR preprocessor/45038 | |
1145 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
1146 | dialects. | |
1147 | ||
c5fa0890 JM |
1148 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
1149 | ||
1150 | * c-common.h (c_family_lang_mask): Declare. | |
1151 | * c-opts.c (c_family_lang_mask): Make extern. | |
1152 | * c-pragma.c (handle_pragma_diagnostic): Use | |
1153 | control_warning_option. | |
1154 | ||
a4d8c676 JM |
1155 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
1156 | ||
1157 | * c-common.c (parse_optimize_options): Update call to | |
1158 | decode_options. | |
1159 | * c-common.h (c_common_handle_option): Update prototype. | |
1160 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
1161 | pass it to other functions. | |
1162 | ||
f954bd2c JM |
1163 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
1164 | ||
1165 | * c-opts.c (warning_as_error_callback): Remove. | |
1166 | (c_common_initialize_diagnostics): Don't call | |
1167 | register_warning_as_error_callback. | |
1168 | (c_common_handle_option): Handle -Werror=normalized= here. | |
1169 | ||
d8a07487 JM |
1170 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
1171 | ||
1172 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
1173 | in diagnostic. | |
1174 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
1175 | letter. | |
1176 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
1177 | Remove trailing '.' from diagnostics. | |
1178 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
1179 | ||
d5478783 JM |
1180 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
1181 | ||
1182 | * c-common.c (parse_optimize_options): Pass global_dc to | |
1183 | decode_options. | |
1184 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
1185 | set_Wstrict_aliasing. | |
1186 | * c.opt (v): Don't mark Common or document here. | |
1187 | ||
91ebb981 IS |
1188 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
1189 | ||
1190 | PR target/44981 | |
1191 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
1192 | (valid_stringptr_type_p): New. | |
1193 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
1194 | (check_format_string): Pass expected type, use | |
1195 | valid_stringptr_type_p (), check that the format string types are | |
1196 | consistent with the format specification. | |
1197 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
1198 | (format_types_orig): Add NSString. | |
1199 | (format_name): New. | |
1200 | (format_flags): New. | |
1201 | (check_format_arg): Handle format strings requiring an external parser. | |
1202 | first_target_format_type: New variable. | |
1203 | (handle_format_attribute): Set up first_target_format_type, pass the | |
1204 | expected format arg string type to check_format_string(). | |
1205 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
1206 | * stub-objc.c (objc_string_ref_type_p): New. | |
1207 | (objc_check_format_arg): New. | |
1208 | ||
bede2adc NP |
1209 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
1210 | ||
1211 | Fixed using the Objective-C 2.0 dot-syntax with class names. | |
1212 | * c-common.h (objc_build_class_component_ref): New. | |
1213 | * stub-objc.c (objc_build_class_component_ref): New. | |
1214 | ||
9a179d01 NP |
1215 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
1216 | ||
1217 | * c.opt (Wproperty-assign-default): New option. | |
1218 | ||
22d8d616 NP |
1219 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
1220 | ||
1221 | Implemented -fobjc-std=objc1 flag. | |
1222 | * c.opt (fobjc-std=objc1): New option. | |
1223 | ||
2debdb4f NP |
1224 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
1225 | ||
1226 | Implemented format and noreturn attributes for Objective-C methods. | |
1227 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
1228 | attribute for Objective-C methods. | |
1229 | ||
ec52b111 JM |
1230 | 2010-10-31 Jason Merrill <jason@redhat.com> |
1231 | ||
1232 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
1233 | EXPR_LOC_OR_HERE. | |
1234 | ||
46a88c12 NP |
1235 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1236 | ||
1237 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
1238 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
1239 | (objc_add_property_declaration): Removed arguments for copies and | |
1240 | ivar. | |
1241 | (objc_build_getter_call): Renamed to | |
1242 | objc_maybe_build_component_ref. | |
1243 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
1244 | (objc_is_property_ref): New. | |
1245 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
1246 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
1247 | for copies and ivar. | |
1248 | (objc_build_getter_call): Renamed to | |
1249 | objc_maybe_build_component_ref. | |
1250 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
1251 | (objc_is_property_ref): New. | |
1252 | ||
1e4bf85b AC |
1253 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
1254 | Matthew Gingell <gingell@adacore.com> | |
1255 | ||
1256 | * c-ada-spec.c (separate_class_package): New function. | |
1257 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
1258 | name of their enclosing package. | |
1259 | (print_ada_declaration): Use separate_class_package. | |
1260 | ||
81f0bab2 JM |
1261 | 2010-10-27 Jason Merrill <jason@redhat.com> |
1262 | ||
2b08f2c5 JM |
1263 | * c-common.c (c_common_reswords): Add __is_literal_type. |
1264 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
1265 | ||
81f0bab2 JM |
1266 | * c-common.c (check_case_value): Remove special C++ code. |
1267 | ||
200290f2 NP |
1268 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
1269 | ||
1270 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
1271 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
1272 | and RID_LAST_PATTR. | |
1273 | (objc_add_property_declaration): Added additional arguments. | |
1274 | (objc_property_attribute_kind): Removed. | |
1275 | (objc_set_property_attr): Removed. | |
1276 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
1277 | copy and nonatomic. | |
1278 | * stub-objc.c (objc_add_property_declaration): Added additional | |
1279 | arguments. | |
1280 | (objc_set_property_attr): Removed. | |
1281 | ||
f614132b NP |
1282 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
1283 | ||
1284 | * c-common.h (objc_add_property_variable): Renamed to | |
1285 | objc_add_property_declaration. Added location argument. | |
1286 | * stub-objc.c (objc_add_property_variable): Same change. | |
1287 | ||
b8a18805 NP |
1288 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
1289 | ||
1290 | * c-common.h (objc_maybe_printable_name): New. | |
1291 | * stub-objc.c (objc_maybe_printable_name): New. | |
1292 | ||
30cd1c5d AS |
1293 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
1294 | Andrew Pinski <pinskia@gmail.com> | |
1295 | ||
1296 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
1297 | * c-common.c (c_common_mark_addressable_vec): New function. | |
1298 | ||
249a82c4 NP |
1299 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
1300 | ||
1301 | * c-common.h (objc_set_method_type): Removed. | |
1302 | (objc_add_method_declaration): Added boolean argument. | |
1303 | (objc_start_method_definition): Same change. | |
1304 | (objc_build_method_signature): Same change. | |
1305 | * stub-objc.c (objc_set_method_type): Removed. | |
1306 | (objc_add_method_declaration): Added boolean argument. | |
1307 | (objc_start_method_definition): Same change. | |
1308 | (objc_build_method_signature): Same change. | |
1309 | ||
977e30bc NP |
1310 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
1311 | ||
1312 | * c-common.h (finish_file): Removed. | |
1313 | (objc_write_global_declarations): New. | |
1314 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
1315 | * stub-objc.c (objc_write_global_declarations): New. | |
1316 | ||
da57d1b9 NP |
1317 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1318 | ||
1319 | Implemented parsing @synthesize and @dynamic for | |
1320 | Objective-C/Objective-C++. | |
1321 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
1322 | (objc_add_synthesize_declaration): New. | |
1323 | (objc_add_dynamic_declaration): New. | |
1324 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
1325 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
1326 | (objc_add_dynamic_declaration): New. | |
1327 | ||
0069111f MM |
1328 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
1329 | ||
1330 | PR target/46041 | |
1331 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
1332 | builtins.c. Don't use the fma optab, instead just use the | |
1333 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
1334 | using -save-temps. | |
1335 | ||
e426b47b NP |
1336 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1337 | ||
1338 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 1339 | |
e426b47b NP |
1340 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
1341 | ||
1342 | Radar 4330422 | |
1343 | * c-common.h (objc_non_volatilized_type): New declaration | |
1344 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
1345 | ||
90fbfdc3 NP |
1346 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
1347 | ||
e426b47b | 1348 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 NP |
1349 | |
1350 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
1351 | ||
1352 | Radar 4133425 | |
1353 | * c-common.h (objc_diagnose_private_ivar): New decl. | |
0069111f | 1354 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 1355 | |
c37d8c30 IS |
1356 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
1357 | ||
1358 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
1359 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
1360 | (objc_ivar_visibility_kind): New enum. | |
1361 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 1362 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
1363 | visibility enum. |
1364 | ||
1b1562a5 MM |
1365 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
1366 | ||
1367 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
1368 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
1369 | has the appropriate fma builtins. | |
1370 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
1371 | ||
668ea4b1 IS |
1372 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
1373 | ||
1b1562a5 | 1374 | merge from FSF apple 'trunk' branch. |
668ea4b1 | 1375 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 1376 | |
668ea4b1 IS |
1377 | Radars 4436866, 4505126, 4506903, 4517826 |
1378 | * c-common.c (c_common_resword): Define @property and its attributes. | |
1379 | * c-common.h: Define property attribute enum entries. | |
1380 | (OBJC_IS_PATTR_KEYWORD): New. | |
1381 | (objc_property_attribute_kind): New enum. | |
1382 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
1383 | objc_build_getter_call () and objc_build_setter_call (). | |
1384 | * stub-objc.c (objc_set_property_attr): New stub. | |
1385 | (objc_add_property_variable): Likewise. | |
1386 | (objc_build_getter_call): Likewise. | |
1387 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 1388 | |
a1178b30 IS |
1389 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
1390 | ||
1b1562a5 | 1391 | merge from FSF apple 'trunk' branch. |
a1178b30 IS |
1392 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
1393 | ||
1394 | Radar 3803157 (method attributes) | |
1395 | * c-common.c (handle_deprecated_attribute): Recognize | |
1396 | objc methods as valid declarations. | |
1397 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 1398 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 1399 | |
a75bfaa6 JM |
1400 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
1401 | ||
1402 | * c-common.c (parse_optimize_options): Call | |
1403 | decode_cmdline_options_to_array_default_mask before | |
1404 | decode_options. Update arguments to decode_options. | |
1405 | * c-common.h (c_common_init_options_struct): Declare. | |
1406 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
1407 | c_common_init_options. | |
1408 | ||
f05b9d93 NP |
1409 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
1410 | ||
1411 | Implemented fast enumeration for Objective-C. | |
1412 | * c-common.h (objc_finish_foreach_loop): New. | |
1413 | * stub-objc.c (objc_finish_foreach_loop): New. | |
1414 | ||
1ebe4b4f JM |
1415 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
1416 | ||
1417 | * c-common.h (struct diagnostic_context): Don't declare here. | |
1418 | (c_common_initialize_diagnostics): Declare using | |
1419 | diagnostic_context typedef. | |
1420 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
1421 | handle_generated_option. | |
1422 | ||
d4d24ba4 JM |
1423 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
1424 | ||
1425 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
1426 | handle_generated_option. | |
1427 | ||
478a1c5b ILT |
1428 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
1429 | ||
1430 | * c.opt (-fplan9-extensions): New option. | |
1431 | ||
82a1c2fe FXC |
1432 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
1433 | ||
1434 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
1435 | Remove. | |
1436 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
1437 | of duplicating code. | |
1438 | ||
92902b1b IS |
1439 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
1440 | ||
1441 | * c-common.c: Add two new entries for @optional | |
1442 | and @required keywords. | |
1443 | ||
1444 | merge from FSF 'apple/trunk' branch. | |
1445 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
1446 | ||
1447 | Radar 4386773 | |
1448 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
1449 | objective-c keywords. | |
1450 | (objc_set_method_opt): New declaration. | |
1451 | * stub-objc.c (objc_set_method_opt): New stub. | |
1452 | ||
46625112 JM |
1453 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
1454 | ||
1455 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
1456 | cl_optimization_save and cl_optimization_restore. | |
1457 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
1458 | handle_generated_option. | |
1459 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
1460 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
1461 | &global_options to cl_optimization_restore. | |
1462 | ||
49b91f05 NP |
1463 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1464 | ||
1465 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
1466 | Objective-C/Objective-C++ keywords. | |
1467 | ||
13ed556f | 1468 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 NP |
1469 | |
1470 | Merge from 'apple/trunk' branch on FSF servers. | |
1471 | ||
1472 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> | |
1473 | ||
1474 | Radar 4281748 | |
1475 | * c-common.h (objc_check_global_decl): New declaration. | |
1476 | * stub-objc.c (objc_check_global_decl): New stub. | |
1477 | ||
f0036cca JM |
1478 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
1479 | ||
1480 | * c.opt: Don't use VarExists. | |
1481 | ||
e3339d0f JM |
1482 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
1483 | ||
1484 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
1485 | members. | |
1486 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
1487 | cl_optimization members. | |
1488 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
1489 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
1490 | members. | |
1491 | ||
1973201f NP |
1492 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
1493 | ||
1494 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
1495 | (objc_is_reserved_word): Removed. | |
1496 | * c-common.c: Updated comments. | |
1497 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
1498 | objc_is_reserved_word. | |
1499 | * stub-objc.c (objc_is_reserved_word): Removed. | |
1500 | ||
f7e71da5 IS |
1501 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
1502 | ||
1503 | * c-common.h (objc_add_method_declaration): Adjust prototype to | |
1504 | include attributes. | |
1505 | (objc_start_method_definition): Likewise. | |
1506 | (objc_build_keyword_decl): Likewise. | |
1507 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
1508 | (objc_start_method_definition): Likewise. | |
1509 | (objc_build_keyword_decl): Likewise. | |
1510 | ||
c165dca7 IS |
1511 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
1512 | ||
1513 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
1514 | (objc_start_category_interface): Likewise. | |
1515 | (objc_start_protocol): Likewise. | |
1516 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
1517 | (objc_start_class_interface): Likewise. | |
1518 | (objc_start_category_interface): Likewise. | |
1519 | ||
7458026b ILT |
1520 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
1521 | ||
1522 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
1523 | (handle_no_split_stack_attribute): New static function. | |
1524 | ||
b581b85b NP |
1525 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
1526 | ||
1527 | Merge from 'apple/trunk' branch on FSF servers. | |
1528 | ||
1529 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
1530 | ||
1531 | Radar 4229905 | |
1532 | * c-common.h (objc_have_common_type): New declaration. | |
1533 | * stub-objc.c (objc_have_common_type): New stub. | |
1534 | ||
1535 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
1536 | ||
1537 | Radar 4154928 | |
1538 | * c-common.h (objc_common_type): New prototype. | |
1539 | * stub-objc.c (objc_common_type): New stub. | |
1540 | ||
46a4da10 JH |
1541 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
1542 | ||
1543 | * c-common.c (handle_leaf_attribute): New function. | |
1544 | (struct attribute_spec c_common_att): Add leaf. | |
1545 | ||
e200444e JM |
1546 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
1547 | ||
1548 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
1549 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
1550 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
1551 | -include-barrier, -include-directory, -include-directory=, | |
1552 | -include-directory-after, -include-directory-after=, | |
1553 | -include-prefix, -include-prefix=, -include-with-prefix, | |
1554 | -include-with-prefix=, -include-with-prefix-after, | |
1555 | -include-with-prefix-after=, -include-with-prefix-before, | |
1556 | -include-with-prefix-before=, -no-integrated-cpp, | |
1557 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
1558 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
1559 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
1560 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
1561 | -user-dependencies, -verbose, -write-dependencies, | |
1562 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
1563 | ||
29a80ea6 NP |
1564 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
1565 | ||
1566 | PR objc/23710 | |
ac1fc2fc NP |
1567 | * c-common.h (objc_start_method_definition): Return bool instead |
1568 | of void. | |
1569 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
1570 | of void. | |
1571 | ||
1572 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
1573 | ||
1574 | PR objc/25965 | |
1575 | * c-common.h (objc_get_interface_ivars): New declaration. | |
1576 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 1577 | |
de621752 ILT |
1578 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
1579 | ||
1580 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 1581 | messages. Remove period at end of warning message. |
de621752 | 1582 | |
ba885ec5 NS |
1583 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
1584 | ||
1585 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
1586 | (handle_alias_attribute): ... here. | |
1587 | (handle_ifunc_attribute): New. | |
1588 | ||
c5ee1358 MM |
1589 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
1590 | ||
1591 | * c-common.h (do_warn_double_promotion): Declare. | |
1592 | * c-common.c (do_warn_double_promotion): Define. | |
1593 | ||
0a0b3574 MM |
1594 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
1595 | ||
1596 | * c.opt (Wdouble-promotion): New. | |
1597 | ||
d1779886 JM |
1598 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
1599 | ||
1600 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
1601 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
1602 | ||
2d2bd949 JM |
1603 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
1604 | ||
1605 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
1606 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
1607 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
1608 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
1609 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
1610 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
1611 | applicable. | |
1612 | (fhandle-exceptions): Mark with Alias and Warn. | |
1613 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
1614 | as ignored. | |
1615 | ||
5de8299c JM |
1616 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
1617 | ||
1618 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
1619 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
1620 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
1621 | aliases. | |
1622 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
1623 | OPT_Wcomments. | |
1624 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
1625 | Don't handle options marked as aliases. | |
1626 | ||
0ceb0201 RG |
1627 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
1628 | ||
1629 | * c-common.c (c_common_get_alias_set): Remove special | |
1630 | handling for pointers. | |
1631 | ||
ac47786e NF |
1632 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
1633 | ||
1634 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
1635 | * c-gimplify.c: Likewise. | |
1636 | * c-pragma.c: Likewise. | |
1637 | ||
c878765b JM |
1638 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
1639 | ||
1640 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
1641 | RejectDriver. | |
1642 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
1643 | RejectDriver. | |
1644 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
1645 | instead of OPT_MDX and OPT_MMDX. | |
1646 | ||
603349bf JM |
1647 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
1648 | ||
1649 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
1650 | ||
644fa7ac JM |
1651 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
1652 | ||
1653 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
1654 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
1655 | ||
481e1176 JM |
1656 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
1657 | ||
1658 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
1659 | instead of handle_option. | |
1660 | ||
ac8dc9f7 NF |
1661 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
1662 | ||
1663 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
1664 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
1665 | ||
4f8c876d NF |
1666 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
1667 | ||
1668 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
1669 | (pending_redefine_extname): Change type to a VEC. | |
1670 | (add_to_renaming_pragma_list): Update for new type of | |
1671 | pending_redefine_extname. | |
ac8dc9f7 | 1672 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 1673 | |
3b0c690e AC |
1674 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
1675 | ||
1676 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
1677 | visited. | |
1678 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
1679 | decide whether a type has already been declared/seen. | |
1680 | Do not go to the original type. | |
1681 | (dump_nested_types): New parameter forward. | |
1682 | Generate forward declaration if needed and mark type as visited. | |
1683 | (print_ada_declaration): Call dump_nested_types if not already done. | |
1684 | Mark types as visited. | |
1685 | ||
1890bccc JM |
1686 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
1687 | ||
1688 | * c.opt (-print-pch-checksum): Remove option. | |
1689 | * c-opts.c (c_common_handle_option): Don't handle | |
1690 | OPT_print_pch_checksum. | |
1691 | ||
5f20c657 JM |
1692 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
1693 | ||
1694 | * c-common.h (c_common_handle_option): Update prototype and return | |
1695 | value type. | |
1696 | * c-opts.c (c_common_handle_option): Update prototype and return | |
1697 | value type. Update calls to handle_option and | |
1698 | enable_warning_as_error. | |
1699 | ||
f551f80c JJ |
1700 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
1701 | ||
1702 | PR c/45079 | |
1703 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
1704 | ||
61ff2bdc JM |
1705 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
1706 | ||
1707 | * c-common.h (c_common_missing_argument): Remove. | |
1708 | * c-opts.c (c_common_missing_argument): Remove. | |
1709 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
1710 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
1711 | MissingArgError. | |
1712 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
1713 | ||
7a9bf9a4 JM |
1714 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
1715 | ||
1716 | * c-common.h (c_common_option_lang_mask, | |
1717 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
1718 | New. | |
1719 | (c_common_init_options): Update prototype. | |
1720 | * c-opts.c (c_common_option_lang_mask): New. | |
1721 | (c_common_initialize_diagnostics): Split out of | |
1722 | c_common_init_options. | |
1723 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
1724 | New. | |
1725 | (c_common_init_options): Update prototype. Use decoded options in | |
1726 | search for -lang-asm. | |
1727 | ||
910ad8de NF |
1728 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
1729 | ||
1730 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
1731 | * c-format.c: Likewise. | |
1732 | ||
718f9c0f MLI |
1733 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1734 | ||
1735 | * c-common.h: Include diagnostic-core.h. Error if already | |
1736 | included. | |
1737 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
1738 | ||
4d451982 MLI |
1739 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1740 | ||
1741 | * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. | |
1742 | Do not include expr.h | |
1743 | (vector_mode_valid_p): Move here. | |
1744 | ||
119fe915 SB |
1745 | 2010-06-21 DJ Delorie <dj@redhat.com> |
1746 | ||
1747 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
1748 | allow these pragmas anywhere. | |
1749 | ||
1750 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
1751 | ||
1752 | PR bootstrap/44509 | |
1753 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
1754 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
1755 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
1756 | ggc_strdup instead of xstrdup. | |
1757 | ||
1758 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
1759 | ||
1760 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
1761 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
1762 | (lazy_hex_fp_value): New function. | |
1763 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
1764 | ||
6662d794 MLI |
1765 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1766 | ||
1767 | * c-gimplify.c: Do not include tree-flow.h | |
1768 | ||
38f8b050 JR |
1769 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
1770 | ||
1771 | PR other/44034 | |
1772 | * c-common.c: Rename targetm member: | |
1773 | targetm.enum_va_list -> targetm.enum_va_list_p | |
1774 | ||
9589f23e AS |
1775 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
1776 | ||
1777 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
1778 | ||
3b06d379 SB |
1779 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
1780 | ||
1781 | * c-cppbuiltin.c: Do not include except.h. | |
1782 | ||
d166d4c3 AK |
1783 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
1784 | ||
1785 | * c-common.c (warn_for_omitted_condop): New. | |
1786 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
1787 | ||
70cb8be6 JM |
1788 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
1789 | ||
1790 | * c.opt (lang-objc): Remove. | |
1791 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
1792 | ||
a4c97feb JR |
1793 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
1794 | ||
1795 | * c-opts.c: Include "tm_p.h". | |
1796 | ||
6e2f1956 JM |
1797 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
1798 | ||
1799 | * c-common.c (parse_optimize_options): Update call to | |
1800 | decode_options. | |
1801 | ||
bc87224e NF |
1802 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
1803 | ||
1804 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
1805 | new type of types_used_by_cur_var_decl. | |
1806 | ||
b49cf425 JR |
1807 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
1808 | ||
1809 | PR bootstrap/44512 | |
1810 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
1811 | for C++ standard compliance. | |
1812 | ||
59f9c2ed JM |
1813 | 2010-06-16 Jason Merrill <jason@redhat.com> |
1814 | ||
1815 | * c.opt: Add -Wnoexcept. | |
1816 | ||
33766b66 RG |
1817 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
1818 | ||
1819 | PR c/44555 | |
1820 | * c-common.c (c_common_truthvalue_conversion): Remove | |
1821 | premature and wrong optimization concering ADDR_EXPRs. | |
1822 | ||
eff7e30c AC |
1823 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
1824 | ||
1825 | * c-ada-spec.c (dump_sloc): Remove column info. | |
1826 | (is_simple_enum): New function. | |
1827 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
1828 | enum types when relevant. | |
1829 | ||
6312e84d MLI |
1830 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1831 | ||
1832 | * c-common.c (conversion_warning): Warn at expression | |
1833 | location. | |
1834 | ||
1cb42611 JM |
1835 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
1836 | ||
1837 | * c-opts.c (c_common_handle_option): Don't handle | |
1838 | OPT_fshow_column. | |
1839 | ||
a9429e29 LB |
1840 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
1841 | ||
1842 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
1843 | (handle_pragma_push_options): Likewise. | |
1844 | ||
1845 | * c-common.c (parse_optimize_options): Likewise. | |
1846 | ||
1847 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
1848 | option. | |
1849 | ||
5498f011 JM |
1850 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
1851 | ||
1852 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
1853 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
1854 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
1855 | flag_signed_bitfields, warn_strict_null_sentinel, | |
1856 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
1857 | flag_gen_declaration, flag_no_gnu_keywords, | |
1858 | flag_implement_inlines, flag_implicit_templates, | |
1859 | flag_implicit_inline_templates, flag_optional_diags, | |
1860 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
1861 | flag_conserve_space, flag_access_control, flag_check_new, | |
1862 | flag_new_for_scope, flag_weak, flag_working_directory, | |
1863 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
1864 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
1865 | flag_pretty_templates): Remove. | |
1866 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
1867 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
1868 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
1869 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
1870 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
1871 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
1872 | flag_no_gnu_keywords, flag_implement_inlines, | |
1873 | flag_implicit_templates, flag_implicit_inline_templates, | |
1874 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
1875 | flag_rtti, flag_conserve_space, flag_access_control, | |
1876 | flag_check_new, flag_new_for_scope, flag_weak, | |
1877 | flag_working_directory, flag_use_cxa_atexit, | |
1878 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
1879 | flag_threadsafe_statics, flag_pretty_templates, | |
1880 | warn_strict_null_sentinel): Remove. | |
1881 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
1882 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
1883 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
1884 | fimplicit-inline-templates, fimplicit-templates, | |
1885 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
1886 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
1887 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
1888 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
1889 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
1890 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
1891 | gen-decls, undef): Use Var. | |
1892 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
1893 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
1894 | using Var. Mark ignored options as such. | |
1895 | ||
39dabefd SB |
1896 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
1897 | ||
1898 | * c-common.c: Moved to here from parent directory. | |
1899 | * c-common.def: Likewise. | |
1900 | * c-common.h: Likewise. | |
1901 | * c-cppbuiltin.c: Likewise. | |
1902 | * c-dump.c: Likewise. | |
1903 | * c-format.c: Likewise. | |
1904 | * c-format.h : Likewise. | |
1905 | * c-gimplify.c: Likewise. | |
1906 | * c-lex.c: Likewise. | |
1907 | * c-omp.c: Likewise. | |
1908 | * c.opt: Likewise. | |
1909 | * c-opts.c: Likewise. | |
1910 | * c-pch.c: Likewise. | |
1911 | * c-ppoutput.c: Likewise. | |
1912 | * c-pragma.c: Likewise. | |
1913 | * c-pragma.h: Likewise. | |
1914 | * c-pretty-print.c: Likewise. | |
1915 | * c-pretty-print.h: Likewise. | |
1916 | * c-semantics.c: Likewise. | |
1917 | * stub-objc.c: Likewise. | |
1918 | ||
1919 | * c-common.c: Include gt-c-family-c-common.h. | |
1920 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
1921 | \f | |
04695783 | 1922 | Copyright (C) 2010, 2011 Free Software Foundation, Inc. |
39dabefd SB |
1923 | |
1924 | Copying and distribution of this file, with or without modification, | |
1925 | are permitted in any medium without royalty provided the copyright | |
1926 | notice and this notice are preserved. |